From b443176ff84fb83d4dd7c3916ef6ba3b79b2685a Mon Sep 17 00:00:00 2001 From: michaelkad Date: Fri, 20 Oct 2023 20:04:28 -0500 Subject: [PATCH 01/58] - Add power datacenter data source - Add power datacenters data source - Add power workspace data source - Add power workspaces data source --- go.mod | 28 ++-- go.sum | 108 ++++++---------- ibm/provider/provider.go | 4 + .../power/data_source_ibm_pi_datacenter.go | 94 ++++++++++++++ .../data_source_ibm_pi_datacenter_test.go | 35 +++++ .../power/data_source_ibm_pi_datacenters.go | 97 ++++++++++++++ .../data_source_ibm_pi_datacenters_test.go | 31 +++++ .../power/data_source_ibm_pi_workspace.go | 103 +++++++++++++++ .../data_source_ibm_pi_workspace_test.go | 34 +++++ .../power/data_source_ibm_pi_workspaces.go | 120 ++++++++++++++++++ .../data_source_ibm_pi_workspaces_test.go | 35 +++++ ibm/service/power/ibm_pi_constants.go | 17 +++ website/docs/d/pi_datacenter.html.markdown | 64 ++++++++++ website/docs/d/pi_datacenters.html.markdown | 61 +++++++++ website/docs/d/pi_workspace.html.markdown | 71 +++++++++++ website/docs/d/pi_workspaces.html.markdown | 73 +++++++++++ 16 files changed, 901 insertions(+), 74 deletions(-) create mode 100644 ibm/service/power/data_source_ibm_pi_datacenter.go create mode 100644 ibm/service/power/data_source_ibm_pi_datacenter_test.go create mode 100644 ibm/service/power/data_source_ibm_pi_datacenters.go create mode 100644 ibm/service/power/data_source_ibm_pi_datacenters_test.go create mode 100644 ibm/service/power/data_source_ibm_pi_workspace.go create mode 100644 ibm/service/power/data_source_ibm_pi_workspace_test.go create mode 100644 ibm/service/power/data_source_ibm_pi_workspaces.go create mode 100644 ibm/service/power/data_source_ibm_pi_workspaces_test.go create mode 100644 website/docs/d/pi_datacenter.html.markdown create mode 100644 website/docs/d/pi_datacenters.html.markdown create mode 100644 website/docs/d/pi_workspace.html.markdown create mode 100644 website/docs/d/pi_workspaces.html.markdown diff --git a/go.mod b/go.mod index e69954efcd..0f856814ab 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( github.com/IBM-Cloud/bluemix-go v0.0.0-20231017073329-75ebe90c98ba github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20230822142550-30562e113de9 - github.com/IBM-Cloud/power-go-client v1.2.4 + github.com/IBM-Cloud/power-go-client v1.5.2 github.com/IBM/apigateway-go-sdk v0.0.0-20210714141226-a5d5d49caaca github.com/IBM/appconfiguration-go-admin-sdk v0.3.0 github.com/IBM/appid-management-go-sdk v0.0.0-20210908164609-dd0e0eaf732f @@ -70,6 +70,7 @@ require ( require ( cloud.google.com/go/kms v1.10.1 // indirect cloud.google.com/go/monitoring v1.13.0 // indirect + github.com/Bowery/prompt v0.0.0-20190916142128-fa8279994f75 // indirect github.com/Logicalis/asn1 v0.0.0-20190312173541-d60463189a56 // indirect github.com/PromonLogicalis/asn1 v0.0.0-20190312173541-d60463189a56 // indirect github.com/agext/levenshtein v1.2.2 // indirect @@ -86,6 +87,7 @@ require ( github.com/coreos/pkg v0.0.0-20220810130054-c7d1c02cb6cf // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/dchest/bcrypt_pbkdf v0.0.0-20150205184540-83f37f9c154a // indirect + github.com/dchest/safefile v0.0.0-20151022103144-855e8d98f185 // indirect github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect github.com/eapache/go-resiliency v1.4.0 // indirect github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 // indirect @@ -97,15 +99,16 @@ require ( github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/go-jose/go-jose/v3 v3.0.0 // indirect github.com/go-logr/logr v1.2.4 // indirect - github.com/go-openapi/analysis v0.21.2 // indirect - github.com/go-openapi/errors v0.20.3 // indirect + github.com/go-logr/stdr v1.2.2 // indirect + github.com/go-openapi/analysis v0.21.4 // indirect + github.com/go-openapi/errors v0.20.4 // indirect github.com/go-openapi/jsonpointer v0.19.5 // indirect github.com/go-openapi/jsonreference v0.20.0 // indirect - github.com/go-openapi/loads v0.21.1 // indirect - github.com/go-openapi/runtime v0.23.0 // indirect - github.com/go-openapi/spec v0.20.4 // indirect - github.com/go-openapi/swag v0.22.3 // indirect - github.com/go-openapi/validate v0.20.3 // indirect + github.com/go-openapi/loads v0.21.2 // indirect + github.com/go-openapi/runtime v0.26.0 // indirect + github.com/go-openapi/spec v0.20.8 // indirect + github.com/go-openapi/swag v0.22.4 // indirect + github.com/go-openapi/validate v0.22.1 // indirect github.com/go-ozzo/ozzo-validation/v4 v4.3.0 // indirect github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect @@ -116,6 +119,7 @@ require ( github.com/google/gnostic v0.6.9 // indirect github.com/google/go-querystring v1.1.0 // indirect github.com/google/gofuzz v1.2.0 // indirect + github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-checkpoint v0.5.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect @@ -156,6 +160,7 @@ require ( github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect + github.com/kardianos/govendor v1.0.9 // indirect github.com/klauspost/compress v1.16.7 // indirect github.com/kube-object-storage/lib-bucket-provisioner v0.0.0-20221122204822-d1a8c34382f1 // indirect github.com/leodido/go-urn v1.2.3 // indirect @@ -167,6 +172,8 @@ require ( github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-testing-interface v1.14.1 // indirect github.com/mitchellh/go-wordwrap v1.0.0 // indirect + github.com/mitchellh/gox v1.0.1 // indirect + github.com/mitchellh/iochan v1.0.0 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/moby/spdystream v0.2.0 // indirect @@ -198,6 +205,8 @@ require ( github.com/vmihailenco/tagparser v0.1.1 // indirect github.com/zclconf/go-cty v1.11.0 // indirect go.mongodb.org/mongo-driver v1.11.6 // indirect + go.opentelemetry.io/otel v1.14.0 // indirect + go.opentelemetry.io/otel/trace v1.14.0 // indirect go.uber.org/ratelimit v0.2.0 // indirect golang.org/x/net v0.17.0 // indirect golang.org/x/oauth2 v0.7.0 // indirect @@ -205,6 +214,9 @@ require ( golang.org/x/term v0.13.0 // indirect golang.org/x/text v0.13.0 // indirect golang.org/x/time v0.3.0 // indirect + golang.org/x/tools v0.12.0 // indirect + golang.org/x/tools/cmd/cover v0.1.0-deprecated // indirect + golang.org/x/tools/go/vcs v0.1.0-deprecated // indirect gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19 // indirect diff --git a/go.sum b/go.sum index 4c0c671a2e..cc2b8dfaf4 100644 --- a/go.sum +++ b/go.sum @@ -93,6 +93,8 @@ github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZ github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk= github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUMfuitfgcfuo= github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= +github.com/Bowery/prompt v0.0.0-20190916142128-fa8279994f75 h1:xGHheKK44eC6K0u5X+DZW/fRaR1LnDdqPHMZMWx5fv8= +github.com/Bowery/prompt v0.0.0-20190916142128-fa8279994f75/go.mod h1:4/6eNcqZ09BZ9wLK3tZOjBA1nDj+B0728nlX5YRlSmQ= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/toml v1.2.0 h1:Rt8g24XnyGTyglgET/PRUNlrUeu9F5L+7FilkXfZgs0= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= @@ -105,8 +107,8 @@ github.com/IBM-Cloud/bluemix-go v0.0.0-20231017073329-75ebe90c98ba/go.mod h1:mt+ github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20230822142550-30562e113de9 h1:sXRzCK3Glxpyu66Tu2NjztLdT5sDwj4qly+MJKRhdWY= github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20230822142550-30562e113de9/go.mod h1:xUQL9SGAjoZFd4GNjrjjtEpjpkgU7RFXRyHesbKTjiY= github.com/IBM-Cloud/ibm-cloud-cli-sdk v0.5.3/go.mod h1:RiUvKuHKTBmBApDMUQzBL14pQUGKcx/IioKQPIcRQjs= -github.com/IBM-Cloud/power-go-client v1.2.4 h1:4y/ubiOXpMg3xyBryfgfsa8hae/9Dn5WLdvphoxvgsQ= -github.com/IBM-Cloud/power-go-client v1.2.4/go.mod h1:0YVWoIQN5I5IvyhO/m4yxgPJqCh9QjceN2FNlVpYlOQ= +github.com/IBM-Cloud/power-go-client v1.5.2 h1:p8+vY9+wtr4BIa2+Y4EVI0jlvRg+FLWsbOpWYNlKXDw= +github.com/IBM-Cloud/power-go-client v1.5.2/go.mod h1:Vd8aSxWA30soUhE2U+tmzaYDUVNOmQE3/npny7BsN6Y= github.com/IBM-Cloud/softlayer-go v1.0.5-tf h1:koUAyF9b6X78lLLruGYPSOmrfY2YcGYKOj/Ug9nbKNw= github.com/IBM-Cloud/softlayer-go v1.0.5-tf/go.mod h1:6HepcfAXROz0Rf63krk5hPZyHT6qyx2MNvYyHof7ik4= github.com/IBM/apigateway-go-sdk v0.0.0-20210714141226-a5d5d49caaca h1:crniVcf+YcmgF03NmmfonXwSQ73oJF+IohFYBwknMxs= @@ -139,7 +141,6 @@ github.com/IBM/go-sdk-core/v5 v5.7.0/go.mod h1:+YbdhrjCHC84ls4MeBp+Hj4NZCni+tDAc github.com/IBM/go-sdk-core/v5 v5.9.2/go.mod h1:YlOwV9LeuclmT/qi/LAK2AsobbAP42veV0j68/rlZsE= github.com/IBM/go-sdk-core/v5 v5.9.5/go.mod h1:YlOwV9LeuclmT/qi/LAK2AsobbAP42veV0j68/rlZsE= github.com/IBM/go-sdk-core/v5 v5.10.2/go.mod h1:WZPFasUzsKab/2mzt29xPcfruSk5js2ywAPwW4VJjdI= -github.com/IBM/go-sdk-core/v5 v5.12.1/go.mod h1:WZPFasUzsKab/2mzt29xPcfruSk5js2ywAPwW4VJjdI= github.com/IBM/go-sdk-core/v5 v5.14.1 h1:WR1r0zz+gDW++xzZjF41r9ueY4JyjS2vgZjiYs8lO3c= github.com/IBM/go-sdk-core/v5 v5.14.1/go.mod h1:MUvIr/1mgGh198ZXL+ByKz9Qs1JoEh80v/96x8jPXNY= github.com/IBM/ibm-cos-sdk-go v1.3.1/go.mod h1:YLBAYobEA8bD27P7xpMwSQeNQu6W3DNBtBComXrRzRY= @@ -267,7 +268,6 @@ github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkY github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= github.com/asaskevich/govalidator v0.0.0-20200108200545-475eaeb16496/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg= -github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg= github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so= @@ -362,6 +362,8 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1 github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dchest/bcrypt_pbkdf v0.0.0-20150205184540-83f37f9c154a h1:saTgr5tMLFnmy/yg3qDTft4rE5DY2uJ/cCxCe3q0XTU= github.com/dchest/bcrypt_pbkdf v0.0.0-20150205184540-83f37f9c154a/go.mod h1:Bw9BbhOJVNR+t0jCqx2GC6zv0TGBsShs56Y3gfSCvl0= +github.com/dchest/safefile v0.0.0-20151022103144-855e8d98f185 h1:3T8ZyTDp5QxTx3NU48JVb2u+75xc040fofcBaN+6jPA= +github.com/dchest/safefile v0.0.0-20151022103144-855e8d98f185/go.mod h1:cFRxtTwTOJkz2x3rQUNCYKWC93yP1VKjR8NUhqFxZNU= github.com/denisenkom/go-mssqldb v0.0.0-20190412130859-3b1d194e553a/go.mod h1:zAg7JM8CkOJ43xKXIj7eRO9kmWm/TW578qo+oDO6tuM= github.com/denverdino/aliyungo v0.0.0-20190125010748-a747050bb1ba h1:p6poVbjHDkKa+wtC8frBMwQtT3BmqGYBjzMwJ63tuR4= github.com/dgryski/go-metro v0.0.0-20180109044635-280f6062b5bc h1:8WFBn63wegobsYAX0YjD+8suexZDga5CctH4CCTx2+8= @@ -486,9 +488,12 @@ github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KE github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= github.com/go-logr/logr v1.2.0/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-logr/zapr v0.1.0/go.mod h1:tabnROwaDl0UNxkVeFRbY8bwB37GwRv0P8lg6aAiEnk= github.com/go-logr/zapr v1.2.3 h1:a9vnzlIBPQBBkeaR9IuMUfmVOrQlkoC4YfPoFkX3T7A= github.com/go-martini/martini v0.0.0-20170121215854-22fa46961aab/go.mod h1:/P9AEU963A2AYjv4d1V5eVL1CQbEJq6aCNHDDjibzu8= @@ -498,27 +503,20 @@ github.com/go-openapi/analysis v0.0.0-20180825180245-b006789cd277/go.mod h1:k70t github.com/go-openapi/analysis v0.17.0/go.mod h1:IowGgpVeD0vNm45So8nr+IcQ3pxVtpRoBWb8PVZO0ik= github.com/go-openapi/analysis v0.18.0/go.mod h1:IowGgpVeD0vNm45So8nr+IcQ3pxVtpRoBWb8PVZO0ik= github.com/go-openapi/analysis v0.19.2/go.mod h1:3P1osvZa9jKjb8ed2TPng3f0i/UY9snX6gxi44djMjk= -github.com/go-openapi/analysis v0.19.4/go.mod h1:3P1osvZa9jKjb8ed2TPng3f0i/UY9snX6gxi44djMjk= github.com/go-openapi/analysis v0.19.5/go.mod h1:hkEAkxagaIvIP7VTn8ygJNkd4kAYON2rCu0v0ObL0AU= -github.com/go-openapi/analysis v0.19.10/go.mod h1:qmhS3VNFxBlquFJ0RGoDtylO9y4pgTAUNE9AEEMdlJQ= -github.com/go-openapi/analysis v0.19.16/go.mod h1:GLInF007N83Ad3m8a/CbQ5TPzdnGT7workfHwuVjNVk= -github.com/go-openapi/analysis v0.20.0/go.mod h1:BMchjvaHDykmRMsK40iPtvyOfFdMMxlOmQr9FBZk+Og= -github.com/go-openapi/analysis v0.20.1/go.mod h1:BMchjvaHDykmRMsK40iPtvyOfFdMMxlOmQr9FBZk+Og= -github.com/go-openapi/analysis v0.21.2 h1:hXFrOYFHUAMQdu6zwAiKKJHJQ8kqZs1ux/ru1P1wLJU= github.com/go-openapi/analysis v0.21.2/go.mod h1:HZwRk4RRisyG8vx2Oe6aqeSQcoxRp47Xkp3+K6q+LdY= +github.com/go-openapi/analysis v0.21.4 h1:ZDFLvSNxpDaomuCueM0BlSXxpANBlFYiBvr+GXrvIHc= +github.com/go-openapi/analysis v0.21.4/go.mod h1:4zQ35W4neeZTqh3ol0rv/O8JBbka9QyAgQRPp9y3pfo= github.com/go-openapi/errors v0.17.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= github.com/go-openapi/errors v0.18.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= github.com/go-openapi/errors v0.19.2/go.mod h1:qX0BLWsyaKfvhluLejVpVNwNRdXZhEbTA4kxxpKBC94= -github.com/go-openapi/errors v0.19.3/go.mod h1:qX0BLWsyaKfvhluLejVpVNwNRdXZhEbTA4kxxpKBC94= -github.com/go-openapi/errors v0.19.6/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= -github.com/go-openapi/errors v0.19.7/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= github.com/go-openapi/errors v0.19.8/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= github.com/go-openapi/errors v0.19.9/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= github.com/go-openapi/errors v0.20.0/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= -github.com/go-openapi/errors v0.20.1/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= github.com/go-openapi/errors v0.20.2/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= -github.com/go-openapi/errors v0.20.3 h1:rz6kiC84sqNQoqrtulzaL/VERgkoCyB6WdEkc2ujzUc= github.com/go-openapi/errors v0.20.3/go.mod h1:Z3FlZ4I8jEGxjUK+bugx3on2mIAk4txuAOhlsB1FSgk= +github.com/go-openapi/errors v0.20.4 h1:unTcVm6PispJsMECE3zWgvG4xTiKda1LIR5rCRWLG6M= +github.com/go-openapi/errors v0.20.4/go.mod h1:Z3FlZ4I8jEGxjUK+bugx3on2mIAk4txuAOhlsB1FSgk= github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1/go.mod h1:+35s3my2LFTysnkMfxsJBAMHj/DoqoB9knIWoYG/Vk0= github.com/go-openapi/jsonpointer v0.17.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= github.com/go-openapi/jsonpointer v0.18.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= @@ -531,7 +529,6 @@ github.com/go-openapi/jsonreference v0.17.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3Hfo github.com/go-openapi/jsonreference v0.18.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= -github.com/go-openapi/jsonreference v0.19.5/go.mod h1:RdybgQwPxbL4UEjuAruzK1x3nE69AqPYEJeo/TWfEeg= github.com/go-openapi/jsonreference v0.19.6/go.mod h1:diGHMEHg2IqXZGKxqyvWdfWU/aim5Dprw5bqpKkTvns= github.com/go-openapi/jsonreference v0.20.0 h1:MYlu0sBgChmCfJxxUKZ8g1cPWFOB37YSZqewK7OKeyA= github.com/go-openapi/jsonreference v0.20.0/go.mod h1:Ag74Ico3lPc+zR+qjn4XBUmXymS4zJbYVCZmcgkasdo= @@ -539,47 +536,30 @@ github.com/go-openapi/loads v0.17.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf github.com/go-openapi/loads v0.18.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= github.com/go-openapi/loads v0.19.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= github.com/go-openapi/loads v0.19.2/go.mod h1:QAskZPMX5V0C2gvfkGZzJlINuP7Hx/4+ix5jWFxsNPs= -github.com/go-openapi/loads v0.19.3/go.mod h1:YVfqhUCdahYwR3f3iiwQLhicVRvLlU/WO5WPaZvcvSI= github.com/go-openapi/loads v0.19.4/go.mod h1:zZVHonKd8DXyxyw4yfnVjPzBjIQcLt0CCsn0N0ZrQsk= -github.com/go-openapi/loads v0.19.5/go.mod h1:dswLCAdonkRufe/gSUC3gN8nTSaB9uaS2es0x5/IbjY= -github.com/go-openapi/loads v0.19.6/go.mod h1:brCsvE6j8mnbmGBh103PT/QLHfbyDxA4hsKvYBNEGVc= -github.com/go-openapi/loads v0.19.7/go.mod h1:brCsvE6j8mnbmGBh103PT/QLHfbyDxA4hsKvYBNEGVc= -github.com/go-openapi/loads v0.20.0/go.mod h1:2LhKquiE513rN5xC6Aan6lYOSddlL8Mp20AW9kpviM4= -github.com/go-openapi/loads v0.20.2/go.mod h1:hTVUotJ+UonAMMZsvakEgmWKgtulweO9vYP2bQYKA/o= -github.com/go-openapi/loads v0.21.0/go.mod h1:rHYve9nZrQ4CJhyeIIFJINGCg1tQpx2yJrrNo8sf1ws= -github.com/go-openapi/loads v0.21.1 h1:Wb3nVZpdEzDTcly8S4HMkey6fjARRzb7iEaySimlDW0= github.com/go-openapi/loads v0.21.1/go.mod h1:/DtAMXXneXFjbQMGEtbamCZb+4x7eGwkvZCvBmwUG+g= +github.com/go-openapi/loads v0.21.2 h1:r2a/xFIYeZ4Qd2TnGpWDIQNcP80dIaZgf704za8enro= +github.com/go-openapi/loads v0.21.2/go.mod h1:Jq58Os6SSGz0rzh62ptiu8Z31I+OTHqmULx5e/gJbNw= github.com/go-openapi/runtime v0.0.0-20180920151709-4f900dc2ade9/go.mod h1:6v9a6LTXWQCdL8k1AO3cvqx5OtZY/Y9wKTgaoP6YRfA= github.com/go-openapi/runtime v0.19.0/go.mod h1:OwNfisksmmaZse4+gpV3Ne9AyMOlP1lt4sK4FXt0O64= github.com/go-openapi/runtime v0.19.4/go.mod h1:X277bwSUBxVlCYR3r7xgZZGKVvBd/29gLDlFGtJ8NL4= -github.com/go-openapi/runtime v0.19.15/go.mod h1:dhGWCTKRXlAfGnQG0ONViOZpjfg0m2gUt9nTQPQZuoo= -github.com/go-openapi/runtime v0.19.16/go.mod h1:5P9104EJgYcizotuXhEuUrzVc+j1RiSjahULvYmlv98= -github.com/go-openapi/runtime v0.19.24/go.mod h1:Lm9YGCeecBnUUkFTxPC4s1+lwrkJ0pthx8YvyjCfkgk= -github.com/go-openapi/runtime v0.23.0 h1:HX6ET2sHCIvaKeDDQoU01CtO1ekg5EkekHSkLTtWXH0= -github.com/go-openapi/runtime v0.23.0/go.mod h1:aQg+kaIQEn+A2CRSY1TxbM8+sT9g2V3aLc1FbIAnbbs= +github.com/go-openapi/runtime v0.26.0 h1:HYOFtG00FM1UvqrcxbEJg/SwvDRvYLQKGhw2zaQjTcc= +github.com/go-openapi/runtime v0.26.0/go.mod h1:QgRGeZwrUcSHdeh4Ka9Glvo0ug1LC5WyE+EV88plZrQ= github.com/go-openapi/spec v0.0.0-20160808142527-6aced65f8501/go.mod h1:J8+jY1nAiCcj+friV/PDoE1/3eeccG9LYBs0tYvLOWc= github.com/go-openapi/spec v0.17.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= github.com/go-openapi/spec v0.18.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= github.com/go-openapi/spec v0.19.2/go.mod h1:sCxk3jxKgioEJikev4fgkNmwS+3kuYdJtcsZsD5zxMY= github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= -github.com/go-openapi/spec v0.19.6/go.mod h1:Hm2Jr4jv8G1ciIAo+frC/Ft+rR2kQDh8JHKHb3gWUSk= -github.com/go-openapi/spec v0.19.8/go.mod h1:Hm2Jr4jv8G1ciIAo+frC/Ft+rR2kQDh8JHKHb3gWUSk= -github.com/go-openapi/spec v0.19.15/go.mod h1:+81FIL1JwC5P3/Iuuozq3pPE9dXdIEGxFutcFKaVbmU= -github.com/go-openapi/spec v0.20.0/go.mod h1:+81FIL1JwC5P3/Iuuozq3pPE9dXdIEGxFutcFKaVbmU= -github.com/go-openapi/spec v0.20.1/go.mod h1:93x7oh+d+FQsmsieroS4cmR3u0p/ywH649a3qwC9OsQ= -github.com/go-openapi/spec v0.20.3/go.mod h1:gG4F8wdEDN+YPBMVnzE85Rbhf+Th2DTvA9nFPQ5AYEg= -github.com/go-openapi/spec v0.20.4 h1:O8hJrt0UMnhHcluhIdUgCLRWyM2x7QkBXRvOs7m+O1M= github.com/go-openapi/spec v0.20.4/go.mod h1:faYFR1CvsJZ0mNsmsphTMSoRrNV3TEDoAM7FOEWeq8I= +github.com/go-openapi/spec v0.20.6/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= +github.com/go-openapi/spec v0.20.8 h1:ubHmXNY3FCIOinT8RNrrPfGc9t7I1qhPtdOGoG2AxRU= +github.com/go-openapi/spec v0.20.8/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= github.com/go-openapi/strfmt v0.17.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= github.com/go-openapi/strfmt v0.18.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= github.com/go-openapi/strfmt v0.19.0/go.mod h1:+uW+93UVvGGq2qGaZxdDeJqSAqBqBdl+ZPMF/cC8nDY= -github.com/go-openapi/strfmt v0.19.2/go.mod h1:0yX7dbo8mKIvc3XSKp7MNfxw4JytCfCD6+bY1AVL9LU= github.com/go-openapi/strfmt v0.19.3/go.mod h1:0yX7dbo8mKIvc3XSKp7MNfxw4JytCfCD6+bY1AVL9LU= github.com/go-openapi/strfmt v0.19.4/go.mod h1:eftuHTlB/dI8Uq8JJOyRlieZf+WkkxUuk0dgdHXr2Qk= -github.com/go-openapi/strfmt v0.19.5/go.mod h1:eftuHTlB/dI8Uq8JJOyRlieZf+WkkxUuk0dgdHXr2Qk= github.com/go-openapi/strfmt v0.19.10/go.mod h1:qBBipho+3EoIqn6YDI+4RnQEtj6jT/IdKm+PAlXxSUc= -github.com/go-openapi/strfmt v0.19.11/go.mod h1:UukAYgTaQfqJuAFlNxxMWNvMYiwiXtLsF2VwmoFtbtc= -github.com/go-openapi/strfmt v0.20.0/go.mod h1:UukAYgTaQfqJuAFlNxxMWNvMYiwiXtLsF2VwmoFtbtc= github.com/go-openapi/strfmt v0.20.1/go.mod h1:43urheQI9dNtE5lTZQfuFJvjYJKPrxicATpEfZwHUNk= github.com/go-openapi/strfmt v0.20.2/go.mod h1:43urheQI9dNtE5lTZQfuFJvjYJKPrxicATpEfZwHUNk= github.com/go-openapi/strfmt v0.21.0/go.mod h1:ZRQ409bWMj+SOgXofQAGTIo2Ebu72Gs+WaRADcS5iNg= @@ -593,24 +573,15 @@ github.com/go-openapi/swag v0.17.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/ github.com/go-openapi/swag v0.18.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/swag v0.19.7/go.mod h1:ao+8BpOPyKdpQz3AOJfbeEVpLmWAvlT1IfTe5McPyhY= -github.com/go-openapi/swag v0.19.9/go.mod h1:ao+8BpOPyKdpQz3AOJfbeEVpLmWAvlT1IfTe5McPyhY= -github.com/go-openapi/swag v0.19.12/go.mod h1:eFdyEBkTdoAf/9RXBvj4cr1nH7GD8Kzo5HTt47gr72M= -github.com/go-openapi/swag v0.19.13/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= -github.com/go-openapi/swag v0.19.14/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= github.com/go-openapi/swag v0.19.15/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= -github.com/go-openapi/swag v0.22.3 h1:yMBqmnQ0gyZvEb/+KzuWZOXgllrXT4SADYbvDaXHv/g= -github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= +github.com/go-openapi/swag v0.21.1/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= +github.com/go-openapi/swag v0.22.4 h1:QLMzNJnMGPRNDCbySlcj1x01tzU8/9LTTL9hZZZogBU= +github.com/go-openapi/swag v0.22.4/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= github.com/go-openapi/validate v0.18.0/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+MYsct2VUrAJ4= github.com/go-openapi/validate v0.19.2/go.mod h1:1tRCw7m3jtI8eNWEEliiAqUIcBztB2KDnRCRMUi7GTA= -github.com/go-openapi/validate v0.19.3/go.mod h1:90Vh6jjkTn+OT1Eefm0ZixWNFjhtOH7vS9k0lo6zwJo= github.com/go-openapi/validate v0.19.5/go.mod h1:8DJv2CVJQ6kGNpFW6eV9N3JviE1C85nY1c2z52x1Gk4= -github.com/go-openapi/validate v0.19.10/go.mod h1:RKEZTUWDkxKQxN2jDT7ZnZi2bhZlbNMAuKvKB+IaGx8= -github.com/go-openapi/validate v0.19.12/go.mod h1:Rzou8hA/CBw8donlS6WNEUQupNvUZ0waH08tGe6kAQ4= -github.com/go-openapi/validate v0.19.15/go.mod h1:tbn/fdOwYHgrhPBzidZfJC2MIVvs9GA7monOmWBbeCI= -github.com/go-openapi/validate v0.20.1/go.mod h1:b60iJT+xNNLfaQJUqLI7946tYiFEOuE9E4k54HpKcJ0= -github.com/go-openapi/validate v0.20.3 h1:GZPPhhKSZrE8HjB4eEkoYAZmoWA4+tCemSgINH1/vKw= -github.com/go-openapi/validate v0.20.3/go.mod h1:goDdqVGiigM3jChcrYJxD2joalke3ZXeftD16byIjA4= +github.com/go-openapi/validate v0.22.1 h1:G+c2ub6q47kfX1sOBLwIQwzBVt8qmOAARyo/9Fqs9NU= +github.com/go-openapi/validate v0.22.1/go.mod h1:rjnrwK57VJ7A8xqfpAOEKRH8yQSGUriMu5/zuPSQ1hg= github.com/go-ozzo/ozzo-validation v3.6.0+incompatible h1:msy24VGS42fKO9K1vLz82/GeYW1cILu7Nuuj1N3BBkE= github.com/go-ozzo/ozzo-validation/v4 v4.3.0 h1:byhDUpfEwjsVQb1vBunvIjh2BHQ9ead57VkAEY4V+Es= github.com/go-ozzo/ozzo-validation/v4 v4.3.0/go.mod h1:2NKgrcHl3z6cJs+3Oo940FPRiTzuqKbvfrL2RxCj6Ew= @@ -768,6 +739,8 @@ github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20230510103437-eeec1cb781c3 h1:2XF1Vzq06X+inNqgJ9tRnGuw+ZVCB3FazXODD6JE1R8= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= +github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -917,6 +890,7 @@ github.com/hashicorp/go-uuid v1.0.2-0.20191001231223-f32f5fe8d6a8/go.mod h1:6SBZ github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-version v1.0.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.5.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= @@ -1101,6 +1075,8 @@ github.com/jtolds/gls v4.2.1+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVY github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= +github.com/kardianos/govendor v1.0.9 h1:WOH3FcVI9eOgnIZYg96iwUwrL4eOVx+aQ66oyX2R8Yc= +github.com/kardianos/govendor v1.0.9/go.mod h1:yvmR6q9ZZ7nSF5Wvh40v0wfP+3TwwL8zYQp+itoZSVM= github.com/karrick/godirwalk v1.8.0/go.mod h1:H5KPZjojv4lE+QYImBI8xVtrBRgYrIVsaRPx4tDPEn4= github.com/karrick/godirwalk v1.10.3/go.mod h1:RoGL9dQei4vP9ilrpETWE8CLOZ1kiN0LhBygSwrAsHA= github.com/kelseyhightower/envconfig v1.3.0/go.mod h1:cccZRl6mQpaq41TPp5QxidR+Sa3axMbJDNb//FQX6Gg= @@ -1158,7 +1134,6 @@ github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod h1:C1wdFJiN github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.7.0/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= -github.com/mailru/easyjson v0.7.1/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= @@ -1216,13 +1191,14 @@ github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp github.com/mitchellh/go-wordwrap v1.0.0 h1:6GlHJ/LTGMrIJbwgdqdl2eEH8o+Exx/0m8ir9Gns0u4= github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= +github.com/mitchellh/gox v1.0.1 h1:x0jD3dcHk9a9xPSDN6YEL4xL6Qz0dvNYm8yZqui5chI= +github.com/mitchellh/gox v1.0.1/go.mod h1:ED6BioOGXMswlXa2zxfh/xdd5QhwYliBFn9V18Ap4z4= github.com/mitchellh/hashstructure v1.0.0/go.mod h1:QjSHrPWS+BGUVBYkbTZWEnOh3G1DutKwClXU/ABz6AQ= +github.com/mitchellh/iochan v1.0.0 h1:C+X3KsSTLFVBr/tK1eYN/vs4rJcvsiLU338UhYPJWeY= github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.3.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/mapstructure v1.4.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= @@ -1321,7 +1297,6 @@ github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAl github.com/onsi/gomega v1.18.0/go.mod h1:0q+aL8jAiMXy9hbwj2mr5GziHiwhAIQpFmmtT5hitRs= github.com/onsi/gomega v1.18.1/go.mod h1:0q+aL8jAiMXy9hbwj2mr5GziHiwhAIQpFmmtT5hitRs= github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= -github.com/onsi/gomega v1.20.0/go.mod h1:DtrZpjmvpn2mPm4YWQa0/ALMDj9v4YxLgojwPeREyVo= github.com/onsi/gomega v1.20.1/go.mod h1:DtrZpjmvpn2mPm4YWQa0/ALMDj9v4YxLgojwPeREyVo= github.com/onsi/gomega v1.21.1/go.mod h1:iYAIXgPSaDHak0LCMA+AWBpIKBr8WZicMxnE8luStNc= github.com/onsi/gomega v1.22.1/go.mod h1:x6n7VNe4hw0vkyYUM4mjIXx3JbLiPaBPNgB7PRQ1tuM= @@ -1349,7 +1324,6 @@ github.com/openshift/build-machinery-go v0.0.0-20200917070002-f171684f77ab/go.mo github.com/openshift/client-go v0.0.0-20210112165513-ebc401615f47/go.mod h1:u7NRAjtYVAKokiI9LouzTv4mhds8P4S1TwdVAfbjKSk= github.com/openshift/client-go v0.0.0-20230324103026-3f1513df25e0 h1:ftAVjdiw4/Bnav0Fvw9mxoa0kU1lGK8GKRn28eja8Ik= github.com/openshift/client-go v0.0.0-20230324103026-3f1513df25e0/go.mod h1:8jtoeGR9UNGacP00O4WBeSFY3WaP7t0gkm9NZOSSWmg= -github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b h1:FfH+VrHHk6Lxt9HdVS0PXzSXFyS2NbZKXv33FYPol0A= github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b/go.mod h1:AC62GU6hc0BrNm+9RK9VSiwa/EUe1bkIeFORAMcHvJU= github.com/openzipkin/zipkin-go v0.1.3/go.mod h1:NtoC/o8u3JlF1lSlyPNswIbeQH9bJTmOf0Erfk+hxe8= @@ -1371,7 +1345,6 @@ github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTK github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/pelletier/go-toml v1.4.0/go.mod h1:PN7xzY2wHTK0K9p34ErDQMlFxa51Fk0OUruD3k1mMwo= github.com/pelletier/go-toml v1.6.0/go.mod h1:5N711Q9dKgbdkxHL+MEfF31hpT7l0S0s/t2kKREewys= github.com/pelletier/go-toml v1.7.0 h1:7utD74fnzVc/cpcyy8sjrlFr5vYpypUixARcHIMIGuI= github.com/pelletier/go-toml v1.7.0/go.mod h1:vwGMzjaWMwyfHwgIBhI2YUM4fB6nL6lVAvS1LBMMhTE= @@ -1619,12 +1592,7 @@ go.mongodb.org/mongo-driver v1.0.3/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qL go.mongodb.org/mongo-driver v1.1.1/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= go.mongodb.org/mongo-driver v1.1.2/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= go.mongodb.org/mongo-driver v1.2.1/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= -go.mongodb.org/mongo-driver v1.3.0/go.mod h1:MSWZXKOynuguX+JSvwP8i+58jYCXxbia8HS3gZBapIE= -go.mongodb.org/mongo-driver v1.3.4/go.mod h1:MSWZXKOynuguX+JSvwP8i+58jYCXxbia8HS3gZBapIE= go.mongodb.org/mongo-driver v1.4.2/go.mod h1:WcMNYLx/IlOxLe6JRJiv2uXuCz6zBLndR4SoGjYphSc= -go.mongodb.org/mongo-driver v1.4.3/go.mod h1:WcMNYLx/IlOxLe6JRJiv2uXuCz6zBLndR4SoGjYphSc= -go.mongodb.org/mongo-driver v1.4.4/go.mod h1:WcMNYLx/IlOxLe6JRJiv2uXuCz6zBLndR4SoGjYphSc= -go.mongodb.org/mongo-driver v1.4.6/go.mod h1:WcMNYLx/IlOxLe6JRJiv2uXuCz6zBLndR4SoGjYphSc= go.mongodb.org/mongo-driver v1.5.1/go.mod h1:gRXCHX4Jo7J0IJ1oDQyUxF7jfy19UfxniMS4xxMmUqw= go.mongodb.org/mongo-driver v1.7.0/go.mod h1:Q4oFMbo1+MSNqICAdYMlC/zSTrwCogR4R8NzkI+yfU8= go.mongodb.org/mongo-driver v1.7.3/go.mod h1:NqaYOwnXWr5Pm7AOpO5QFxKJ503nbMse/R79oO62zWg= @@ -1644,6 +1612,11 @@ go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= +go.opentelemetry.io/otel v1.14.0 h1:/79Huy8wbf5DnIPhemGB+zEPVwnN6fuQybr/SRXa6hM= +go.opentelemetry.io/otel v1.14.0/go.mod h1:o4buv+dJzx8rohcUeRmWUZhqupFvzWis188WlggnNeU= +go.opentelemetry.io/otel/sdk v1.14.0 h1:PDCppFRDq8A1jL9v6KMI6dYesaq+DFcDZvjsoGvxGzY= +go.opentelemetry.io/otel/trace v1.14.0 h1:wp2Mmvj41tDsyAJXiWDWpfNsOiIyd38fy85pyKcFq/M= +go.opentelemetry.io/otel/trace v1.14.0/go.mod h1:8avnQLK+CG77yNLUae4ea2JDQ6iT+gozhnZjy/rw9G8= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= @@ -1787,7 +1760,6 @@ golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/ golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200602114024-627f9648deb9/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= @@ -2100,6 +2072,10 @@ golang.org/x/tools v0.9.1/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc= golang.org/x/tools v0.9.3/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc= golang.org/x/tools v0.12.0 h1:YW6HUoUmYBpwSgyaGaZq1fHjrBjX1rlpZ54T6mu2kss= golang.org/x/tools v0.12.0/go.mod h1:Sc0INKfu04TlqNoRA1hgpFZbhYXHPr4V5DzpSBTPqQM= +golang.org/x/tools/cmd/cover v0.1.0-deprecated h1:Rwy+mWYz6loAF+LnG1jHG/JWMHRMMC2/1XX3Ejkx9lA= +golang.org/x/tools/cmd/cover v0.1.0-deprecated/go.mod h1:hMDiIvlpN1NoVgmjLjUJE9tMHyxHjFX7RuQ+rW12mSA= +golang.org/x/tools/go/vcs v0.1.0-deprecated h1:cOIJqWBl99H1dH5LWizPa+0ImeeJq3t3cJjaeOWUAL4= +golang.org/x/tools/go/vcs v0.1.0-deprecated/go.mod h1:zUrvATBAvEI9535oC0yWYsLsHIV4Z7g63sNPVMtuBy8= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/ibm/provider/provider.go b/ibm/provider/provider.go index 81f78432a6..3c7690974b 100644 --- a/ibm/provider/provider.go +++ b/ibm/provider/provider.go @@ -619,6 +619,10 @@ func Provider() *schema.Provider { "ibm_pi_volume_remote_copy_relationship": power.DataSourceIBMPIVolumeRemoteCopyRelationship(), "ibm_pi_volume_onboardings": power.DataSourceIBMPIVolumeOnboardings(), "ibm_pi_volume_onboarding": power.DataSourceIBMPIVolumeOnboarding(), + "ibm_pi_workspace": power.DatasourceIBMPIWorkspace(), + "ibm_pi_workspaces": power.DatasourceIBMPIWorkspaces(), + "ibm_pi_datacenter": power.DataSourceIBMPIDatacenter(), + "ibm_pi_datacenters": power.DataSourceIBMPIDatacenters(), // Added for private dns zones diff --git a/ibm/service/power/data_source_ibm_pi_datacenter.go b/ibm/service/power/data_source_ibm_pi_datacenter.go new file mode 100644 index 0000000000..2404570273 --- /dev/null +++ b/ibm/service/power/data_source_ibm_pi_datacenter.go @@ -0,0 +1,94 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package power + +import ( + "context" + + "github.com/IBM-Cloud/power-go-client/clients/instance" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/hashicorp/go-uuid" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" +) + +const ( + DatacenterRegion = "region" + DatacenterType = "type" + DatacenterUrl = "url" +) + +func DataSourceIBMPIDatacenter() *schema.Resource { + return &schema.Resource{ + ReadContext: dataSourceIBMPIDatacenterRead, + Schema: map[string]*schema.Schema{ + Arg_DatacenterZone: { + Type: schema.TypeString, + Optional: true, + ValidateFunc: validation.NoZeroValues, + }, + Attr_DatacenterCapabilities: { + Type: schema.TypeMap, + Computed: true, + Description: "Datacenter Capabilities", + Elem: &schema.Schema{ + Type: schema.TypeBool, + }, + }, + Attr_DatacenterHref: { + Type: schema.TypeString, + Computed: true, + Description: "Datacenter href", + }, + Attr_DatacenterLocation: { + Type: schema.TypeMap, + Computed: true, + Description: "Datacenter location", + }, + Attr_DatacenterStatus: { + Type: schema.TypeString, + Computed: true, + Description: "Datacenter status", + }, + Attr_DatacenterType: { + Type: schema.TypeString, + Computed: true, + Description: "Datacenter type", + }, + }, + } +} +func dataSourceIBMPIDatacenterRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + // session + sess, err := meta.(conns.ClientSession).IBMPISession() + if err != nil { + return diag.FromErr(err) + } + + datacenterZone := sess.Options.Zone + if region, ok := d.GetOk(Arg_DatacenterZone); ok { + datacenterZone = region.(string) + } + client := instance.NewIBMPIDatacenterClient(ctx, sess, "") + dcData, err := client.Get(datacenterZone) + if err != nil { + return diag.FromErr(err) + } + var genID, _ = uuid.GenerateUUID() + d.SetId(genID) + d.Set(Attr_DatacenterCapabilities, dcData.Capabilities) + dclocation := map[string]interface{}{ + DatacenterRegion: *dcData.Location.Region, + DatacenterType: *dcData.Location.Type, + DatacenterUrl: *dcData.Location.URL, + } + d.Set(Attr_DatacenterLocation, flex.Flatten(dclocation)) + d.Set(Attr_DatacenterStatus, dcData.Status) + d.Set(Attr_DatacenterType, dcData.Type) + d.Set(Attr_DatacenterHref, dcData.Href) + + return nil +} diff --git a/ibm/service/power/data_source_ibm_pi_datacenter_test.go b/ibm/service/power/data_source_ibm_pi_datacenter_test.go new file mode 100644 index 0000000000..cc289ca32d --- /dev/null +++ b/ibm/service/power/data_source_ibm_pi_datacenter_test.go @@ -0,0 +1,35 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package power_test + +import ( + "fmt" + "testing" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccIBMPIDatacenterDataSourceBasic(t *testing.T) { + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMPIDatacenterDataSourceConfig(), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_pi_datacenter.test", "id"), + ), + }, + }, + }) +} + +func testAccCheckIBMPIDatacenterDataSourceConfig() string { + return fmt.Sprintf(` + data "ibm_pi_datacenter" "test" { + pi_datacenter_zone = "dal12" + } + `) +} diff --git a/ibm/service/power/data_source_ibm_pi_datacenters.go b/ibm/service/power/data_source_ibm_pi_datacenters.go new file mode 100644 index 0000000000..949ba4741a --- /dev/null +++ b/ibm/service/power/data_source_ibm_pi_datacenters.go @@ -0,0 +1,97 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package power + +import ( + "context" + + "github.com/IBM-Cloud/power-go-client/clients/instance" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/hashicorp/go-uuid" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" +) + +const ( + Datacenters = "datacenters" +) + +func DataSourceIBMPIDatacenters() *schema.Resource { + return &schema.Resource{ + ReadContext: dataSourceIBMPIDatacentersRead, + Schema: map[string]*schema.Schema{ + Datacenters: { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + + Attr_DatacenterCapabilities: { + Type: schema.TypeMap, + Computed: true, + Description: "Datacenter Capabilities", + Elem: &schema.Schema{ + Type: schema.TypeBool, + }, + }, + Attr_DatacenterHref: { + Type: schema.TypeString, + Computed: true, + Description: "Datacenter href", + }, + Attr_DatacenterLocation: { + Type: schema.TypeMap, + Computed: true, + Description: "Datacenter location", + }, + Attr_DatacenterStatus: { + Type: schema.TypeString, + Computed: true, + Description: "Datacenter status", + }, + Attr_DatacenterType: { + Type: schema.TypeString, + Computed: true, + Description: "Datacenter type", + }, + }, + }, + }, + }, + } +} +func dataSourceIBMPIDatacentersRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + // session + sess, err := meta.(conns.ClientSession).IBMPISession() + if err != nil { + return diag.FromErr(err) + } + client := instance.NewIBMPIDatacenterClient(ctx, sess, "") + datacentersData, err := client.GetAll() + if err != nil { + return diag.FromErr(err) + } + datacenters := make([]map[string]interface{}, 0, len(datacentersData.Datacenters)) + for _, datacenter := range datacentersData.Datacenters { + if datacenter != nil { + dc := map[string]interface{}{ + Attr_DatacenterCapabilities: datacenter.Capabilities, + Attr_DatacenterLocation: map[string]interface{}{ + DatacenterRegion: datacenter.Location.Region, + DatacenterType: datacenter.Location.Type, + DatacenterUrl: datacenter.Location.URL, + }, + Attr_DatacenterStatus: datacenter.Status, + Attr_DatacenterType: datacenter.Type, + Attr_DatacenterHref: datacenter.Href, + } + datacenters = append(datacenters, dc) + } + + } + var clientgenU, _ = uuid.GenerateUUID() + d.SetId(clientgenU) + d.Set(Datacenters, datacenters) + return nil +} diff --git a/ibm/service/power/data_source_ibm_pi_datacenters_test.go b/ibm/service/power/data_source_ibm_pi_datacenters_test.go new file mode 100644 index 0000000000..21271d7d54 --- /dev/null +++ b/ibm/service/power/data_source_ibm_pi_datacenters_test.go @@ -0,0 +1,31 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package power_test + +import ( + "fmt" + "testing" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccIBMPIDatacentersDataSourceBasic(t *testing.T) { + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMPIDatacentersDataSourceConfig(), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_pi_datacenters.test", "id"), + ), + }, + }, + }) +} + +func testAccCheckIBMPIDatacentersDataSourceConfig() string { + return fmt.Sprintf(`data "ibm_pi_datacenters" "test" {}`) +} diff --git a/ibm/service/power/data_source_ibm_pi_workspace.go b/ibm/service/power/data_source_ibm_pi_workspace.go new file mode 100644 index 0000000000..6fb23303ea --- /dev/null +++ b/ibm/service/power/data_source_ibm_pi_workspace.go @@ -0,0 +1,103 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package power + +import ( + "context" + + "github.com/IBM-Cloud/power-go-client/clients/instance" + "github.com/IBM-Cloud/power-go-client/helpers" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" +) + +const ( + WorkspaceCreationDate = "creation_date" + WorkspaceCRN = "crn" + WorkspaceRegion = "region" + WorkspaceType = "type" + WorkspaceUrl = "url" +) + +func DatasourceIBMPIWorkspace() *schema.Resource { + return &schema.Resource{ + ReadContext: dataSourceIBMPIWorkspaceRead, + Schema: map[string]*schema.Schema{ + Arg_CloudInstanceID: { + Type: schema.TypeString, + Required: true, + ValidateFunc: validation.NoZeroValues, + }, + Attr_WorkspaceCapabilities: { + Type: schema.TypeMap, + Computed: true, + Description: "Workspace Capabilities", + Elem: &schema.Schema{ + Type: schema.TypeBool, + }, + }, + Attr_WorkspaceDetails: { + Type: schema.TypeMap, + Computed: true, + Description: "Workspace information", + }, + Attr_WorkspaceLocation: { + Type: schema.TypeMap, + Computed: true, + Description: "Workspace location", + }, + Attr_WorkspaceName: { + Type: schema.TypeString, + Computed: true, + Description: "Workspace name", + }, + Attr_WorkspaceStatus: { + Type: schema.TypeString, + Computed: true, + Description: "Workspace status", + }, + Attr_WorkspaceType: { + Type: schema.TypeString, + Computed: true, + Description: "Workspace type", + }, + }, + } +} + +func dataSourceIBMPIWorkspaceRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + // session + sess, err := meta.(conns.ClientSession).IBMPISession() + if err != nil { + return diag.FromErr(err) + } + + cloudInstanceID := d.Get(helpers.PICloudInstanceId).(string) + client := instance.NewIBMPIWorkspacesClient(ctx, sess, cloudInstanceID) + wsData, err := client.Get(cloudInstanceID) + if err != nil { + return diag.FromErr(err) + } + + d.Set(Attr_WorkspaceName, wsData.Name) + d.Set(Attr_WorkspaceStatus, wsData.Status) + d.Set(Attr_WorkspaceType, wsData.Type) + d.Set(Attr_WorkspaceCapabilities, wsData.Capabilities) + wsdetails := map[string]interface{}{ + WorkspaceCreationDate: wsData.Details.CreationDate.String(), + WorkspaceCRN: *wsData.Details.Crn, + } + d.Set(Attr_WorkspaceDetails, flex.Flatten(wsdetails)) + wslocation := map[string]interface{}{ + WorkspaceRegion: *wsData.Location.Region, + WorkspaceType: wsData.Location.Type, + WorkspaceUrl: wsData.Location.URL, + } + d.Set(Attr_WorkspaceLocation, flex.Flatten(wslocation)) + d.SetId(*wsData.ID) + return nil +} diff --git a/ibm/service/power/data_source_ibm_pi_workspace_test.go b/ibm/service/power/data_source_ibm_pi_workspace_test.go new file mode 100644 index 0000000000..b2adea8072 --- /dev/null +++ b/ibm/service/power/data_source_ibm_pi_workspace_test.go @@ -0,0 +1,34 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package power_test + +import ( + "fmt" + "testing" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccIBMPIWorkspaceDataSourceBasic(t *testing.T) { + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMPIWorkspaceDataSourceConfig(), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_pi_workspace.test", "pi_workspace_name"), + ), + }, + }, + }) +} +func testAccCheckIBMPIWorkspaceDataSourceConfig() string { + return fmt.Sprintf(` + data "ibm_pi_workspace" "test" { + pi_cloud_instance_id = "%s" + } + `, acc.Pi_cloud_instance_id) +} diff --git a/ibm/service/power/data_source_ibm_pi_workspaces.go b/ibm/service/power/data_source_ibm_pi_workspaces.go new file mode 100644 index 0000000000..c66e924b63 --- /dev/null +++ b/ibm/service/power/data_source_ibm_pi_workspaces.go @@ -0,0 +1,120 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package power + +import ( + "context" + + "github.com/IBM-Cloud/power-go-client/clients/instance" + "github.com/IBM-Cloud/power-go-client/helpers" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/hashicorp/go-uuid" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" +) + +const ( + Workspaces = "workspaces" +) + +func DatasourceIBMPIWorkspaces() *schema.Resource { + return &schema.Resource{ + ReadContext: dataSourceIBMPIWorkspacesRead, + Schema: map[string]*schema.Schema{ + Arg_CloudInstanceID: { + Type: schema.TypeString, + Required: true, + ValidateFunc: validation.NoZeroValues, + }, + Workspaces: { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + + Attr_WorkspaceCapabilities: { + Type: schema.TypeMap, + Computed: true, + Description: "Workspace Capabilities", + Elem: &schema.Schema{ + Type: schema.TypeBool, + }, + }, + Attr_WorkspaceDetails: { + Type: schema.TypeMap, + Computed: true, + Description: "Workspace information", + }, + Attr_WorkspaceID: { + Type: schema.TypeString, + Computed: true, + Description: "Workspace ID", + }, + Attr_WorkspaceLocation: { + Type: schema.TypeMap, + Computed: true, + Description: "Workspace location", + }, + Attr_WorkspaceName: { + Type: schema.TypeString, + Computed: true, + Description: "Workspace name", + }, + Attr_WorkspaceStatus: { + Type: schema.TypeString, + Computed: true, + Description: "Workspace status", + }, + Attr_WorkspaceType: { + Type: schema.TypeString, + Computed: true, + Description: "Workspace type", + }, + }, + }, + }, + }, + } +} +func dataSourceIBMPIWorkspacesRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + // session + sess, err := meta.(conns.ClientSession).IBMPISession() + if err != nil { + return diag.FromErr(err) + } + + cloudInstanceID := d.Get(helpers.PICloudInstanceId).(string) + client := instance.NewIBMPIWorkspacesClient(ctx, sess, cloudInstanceID) + wsData, err := client.GetAll() + if err != nil { + return diag.FromErr(err) + } + workspaces := make([]map[string]interface{}, 0, len(wsData.Workspaces)) + for _, ws := range wsData.Workspaces { + if ws != nil { + workspace := map[string]interface{}{ + Attr_WorkspaceName: ws.Name, + Attr_WorkspaceID: ws.ID, + Attr_WorkspaceStatus: ws.Status, + Attr_WorkspaceType: ws.Type, + Attr_WorkspaceCapabilities: ws.Capabilities, + Attr_WorkspaceDetails: map[string]interface{}{ + WorkspaceCreationDate: ws.Details.CreationDate.String(), + WorkspaceCRN: *ws.Details.Crn, + }, + Attr_WorkspaceLocation: map[string]interface{}{ + WorkspaceRegion: *ws.Location.Region, + WorkspaceType: ws.Location.Type, + WorkspaceUrl: ws.Location.URL, + }, + } + workspaces = append(workspaces, workspace) + } + } + var clientgenU, _ = uuid.GenerateUUID() + d.SetId(clientgenU) + d.Set(Workspaces, workspaces) + return nil +} diff --git a/ibm/service/power/data_source_ibm_pi_workspaces_test.go b/ibm/service/power/data_source_ibm_pi_workspaces_test.go new file mode 100644 index 0000000000..076d65a342 --- /dev/null +++ b/ibm/service/power/data_source_ibm_pi_workspaces_test.go @@ -0,0 +1,35 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package power_test + +import ( + "fmt" + "testing" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccIBMPIWorkspacesDataSourceBasic(t *testing.T) { + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMPIWorkspacesDataSourceConfig(), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_pi_workspaces.test", "id"), + ), + }, + }, + }) +} + +func testAccCheckIBMPIWorkspacesDataSourceConfig() string { + return fmt.Sprintf(` + data "ibm_pi_workspaces" "test" { + pi_cloud_instance_id = "%s" + } + `, acc.Pi_cloud_instance_id) +} diff --git a/ibm/service/power/ibm_pi_constants.go b/ibm/service/power/ibm_pi_constants.go index 40e8dbf0a5..ee62773462 100644 --- a/ibm/service/power/ibm_pi_constants.go +++ b/ibm/service/power/ibm_pi_constants.go @@ -148,4 +148,21 @@ const ( StatusPending = "PENDING" SctionStart = "start" SctionStop = "stop" + + // Workspaces + Attr_WorkspaceCapabilities = "pi_workspace_capabilities" + Attr_WorkspaceDetails = "pi_workspace_details" + Attr_WorkspaceID = "pi_workspace_id" + Attr_WorkspaceLocation = "pi_workspace_location" + Attr_WorkspaceName = "pi_workspace_name" + Attr_WorkspaceStatus = "pi_workspace_status" + Attr_WorkspaceType = "pi_workspace_type" + + // Datacenter + Arg_DatacenterZone = "pi_datacenter_zone" + Attr_DatacenterCapabilities = "pi_datacenter_capabilities" + Attr_DatacenterLocation = "pi_datacenter_location" + Attr_DatacenterStatus = "pi_datacenter_status" + Attr_DatacenterType = "pi_datacenter_type" + Attr_DatacenterHref = "pi_datacenter_href" ) diff --git a/website/docs/d/pi_datacenter.html.markdown b/website/docs/d/pi_datacenter.html.markdown new file mode 100644 index 0000000000..36cdd88493 --- /dev/null +++ b/website/docs/d/pi_datacenter.html.markdown @@ -0,0 +1,64 @@ +--- + +subcategory: "Power Systems" +layout: "ibm" +page_title: "IBM: pi_datacenter" +description: |- + Manages a Datacenter in the Power Virtual Server cloud. +--- + +# ibm_pi_datacenter + +Retrieve information about a Power Systems Datacenter. + +## Example usage + +```terraform +data "ibm_pi_datacenter" "datacenter" { + pi_datacenter_zone= "dal12" +} +``` + +## Notes + +- Please find [supported Regions](https://cloud.ibm.com/apidocs/power-cloud#endpoint) for endpoints. +- If a Power cloud instance is provisioned at `lon04`, The provider level attributes should be as follows: + - `region` - `lon` + - `zone` - `lon04` + +Example usage: + + ```terraform + provider "ibm" { + region = "lon" + zone = "lon04" + } + ``` + +## Argument reference + +Review the argument references that you can specify for your data source. + +- `pi_datacenter_zone` - (Optional, String) Datacenter zone you want to retrieve. If no value is supplied, the `zone` configured within the IBM provider will be utilized. + +## Attribute reference + +In addition to all argument reference list, you can access the following attribute references after your data source is created. + +- `pi_datacenter_capabilities` - (Map) Datacenter Capabilities. + + Nested schema for `pi_datacenter_capabilities`: + - `cloud-connections` - (Bool) Cloud-connections capability. + - `disaster-recovery-site` - (Bool) Disaster recovery site. + - `power-edge-router` - (Bool) Power edge router capability. + - `vpn-connections`- (Bool) VPN-connections capability. + - `sysdig-enabled`- (Bool) Sysdig-enabled capability. + +- `pi_datacenter_location` - (Map) Datacenter location. + + Nested schema for `pi_datacenter_location`: + - `region` - (String) The Datacenter location region zone. + - `type` - (String) The Datacenter location region type. + - `url`- (String) The Datacenter location region url. +- `pi_datacenter_status` - (String) The Datacenter status, `ACTIVE`,`MAINTENANCE` or `DOWN`. +- `pi_datacenter_type` - (String) The Datacenter type, `Public Cloud` or `Private Cloud`. diff --git a/website/docs/d/pi_datacenters.html.markdown b/website/docs/d/pi_datacenters.html.markdown new file mode 100644 index 0000000000..3d56abeca3 --- /dev/null +++ b/website/docs/d/pi_datacenters.html.markdown @@ -0,0 +1,61 @@ +--- + +subcategory: "Power Systems" +layout: "ibm" +page_title: "IBM: pi_datacenters" +description: |- + Manages Datacenters in the Power Virtual Server cloud. +--- + +# ibm_pi_datacenters + +Retrieve information about Power Systems Datacenters. + +## Example usage + +The following example retrieves information about Power Systems Datacenters. + +```terraform +data "ibm_pi_datacenters" "datacenters" {} +``` + +## Notes + +- Please find [supported Regions](https://cloud.ibm.com/apidocs/power-cloud#endpoint) for endpoints. +- If a Power cloud instance is provisioned at `lon04`, The provider level attributes should be as follows: + - `region` - `lon` + - `zone` - `lon04` + +Example usage: + + ```terraform + provider "ibm" { + region = "lon" + zone = "lon04" + } + ``` + +## Attribute reference + +In addition to all argument reference list, you can access the following attribute references after your data source is created. + +- `datacenters` - List of Datacenters + + Nested schema for `datacenters` + - `pi_datacenter_capabilities` - (Map) Datacenter Capabilities. + + Nested schema for `pi_datacenter_capabilities`; are (Bool) `true` or `false`: + - `cloud-connections` - (Bool) Cloud-connections capability. + - `disaster-recovery-site` - (Bool) Disaster recovery site. + - `power-edge-router` - (Bool) Power edge router capability. + - `vpn-connections`- (Bool) VPN-connections capability. + - `sysdig-enabled`- (Bool) Sysdig-enabled capability. + + - `pi_datacenter_location` - (Map) Datacenter location. + + Nested schema for `pi_datacenter_location`: + - `region` - (String) The Datacenter location region zone. + - `type` - (String) The Datacenter location region type. + - `url`- (String) The Datacenter location region url. + - `pi_datacenter_status` - (String) The Datacenter status, `ACTIVE`,`MAINTENANCE` or `DOWN`. + - `pi_datacenter_type` - (String) The Datacenter type, `Public Cloud` or `Private Cloud`. diff --git a/website/docs/d/pi_workspace.html.markdown b/website/docs/d/pi_workspace.html.markdown new file mode 100644 index 0000000000..e82301e99b --- /dev/null +++ b/website/docs/d/pi_workspace.html.markdown @@ -0,0 +1,71 @@ +--- + +subcategory: "Power Systems" +layout: "ibm" +page_title: "IBM: pi_workspace" +description: |- + Manages a workspace in the Power Virtual Server cloud. +--- + +# ibm_pi_workspace + +Retrieve information about your Power Systems account workspace. + +## Example usage + +```terraform +data "ibm_pi_workspace" "workspace" { + pi_cloud_instance_id = "99fba9c9-66f9-99bc-9999-aca999ee9d9b" +} +``` + +## Notes + +- Please find [supported Regions](https://cloud.ibm.com/apidocs/power-cloud#endpoint) for endpoints. +- If a Power cloud instance is provisioned at `lon04`, The provider level attributes should be as follows: + - `region` - `lon` + - `zone` - `lon04` + +Example usage: + + ```terraform + provider "ibm" { + region = "lon" + zone = "lon04" + } + ``` + +## Argument reference + +Review the argument references that you can specify for your data source. + +- `pi_cloud_instance_id` - (Required, String) Cloud Instance ID of a PCloud Instance under your account. + +## Attribute reference + +In addition to all argument reference list, you can access the following attribute references after your data source is created. + +- `id - (String) Workspace ID. +- `pi_workspace_capabilities` - (Map) Workspace Capabilities. + + Nested schema for `pi_workspace_capabilities`: + - `cloud-connections` - (Bool) Cloud-connections capability. + - `custom-virtual-cores`- (Bool) Custom virtual cores capability. + - `power-edge-router` - (Bool) Power edge router capability. + - `transit-gateway-connection` - (Bool) Transit gateway connection capability. + - `vpn-connections`- (Bool) VPN-connections capability. + +- `pi_workspace_details` - (Map) Workspace information. + + Nested schema for `pi_workspace_details`: + - `creation_date` - (String) Workspace creation date. + - `crn` - (String) Workspace crn. +- `pi_workspace_location` - (Map) Workspace location. + + Nested schema for `Workspace location`: + - `region` - (String) The Workspace location region zone. + - `type` - (String) The Workspace location region type. + - `url`- (String) The Workspace location region url. +- `pi_workspace_name` - (String) The Workspace name. +- `pi_workspace_status` - (String) The Workspace status, `ACTIVE` or `FAILED`. +- `pi_workspace_type` - (String) The Workspace type, `Public Cloud` or `Private Cloud`. diff --git a/website/docs/d/pi_workspaces.html.markdown b/website/docs/d/pi_workspaces.html.markdown new file mode 100644 index 0000000000..75acc3baba --- /dev/null +++ b/website/docs/d/pi_workspaces.html.markdown @@ -0,0 +1,73 @@ +--- + +subcategory: "Power Systems" +layout: "ibm" +page_title: "IBM: pi_workspaces" +description: |- + Manages workspaces in the Power Virtual Server cloud. +--- + +# ibm_pi_workspaces + +Retrieve information about Power Systems workspaces. + +## Example usage + +```terraform +data "ibm_pi_workspaces" "workspaces" { + pi_cloud_instance_id = "99fba9c9-66f9-99bc-9999-aca999ee9d9b" +} +``` + +## Notes + +- Please find [supported Regions](https://cloud.ibm.com/apidocs/power-cloud#endpoint) for endpoints. +- If a Power cloud instance is provisioned at `lon04`, The provider level attributes should be as follows: + - `region` - `lon` + - `zone` - `lon04` + +Example usage: + + ```terraform + provider "ibm" { + region = "lon" + zone = "lon04" + } + ``` + +## Argument reference + +Review the argument references that you can specify for your data source. + +- `pi_cloud_instance_id` - (Required, String) Cloud Instance ID of a PCloud Instance. + +## Attribute reference + +In addition to all argument reference list, you can access the following attribute references after your data source is created. + +- `workspaces` - List of all Workspaces. + Nested schema for `workspaces` + - `pi_workspace_capabilities` - (Map) Workspace Capabilities. + + Nested schema for `pi_workspace_capabilities`; are (Bool) `true` or `false`: + - `cloud-connections` - (Bool) Cloud-connections capability. + - `custom-virtual-cores`- (Bool) Custom virtual cores capability. + - `power-edge-router` - (Bool) Power edge router capability. + - `transit-gateway-connection` - (Bool) Transit gateway connection capability. + - `vpn-connections`- (Bool) VPN-connections capability. + + - `pi_workspace_details` - (Map) Workspace information. + + Nested schema for `pi_workspace_details`: + - `creation_date` - (String) Workspace creation date. + - `crn` - (String) Workspace crn. + - `pi_workspace_id` - (String) Workspace ID. + - `pi_workspace_location` - (Map) Workspace location. + + Nested schema for `Workspace location`: + - `region` - (String) The Workspace location region zone. + - `type` - (String) The Workspace location region type. + - `url`- (String) The Workspace location region url. + - `pi_workspace_name` - (String) The Workspace name. + - `pi_workspace_status` - (String) The Workspace status, `ACTIVE` or `FAILED`. + - `pi_workspace_type` - (String) The Workspace type, `Public Cloud` or `Private Cloud`. From 798e34df42eb1c63713f59f95344ac38e3c2ecdb Mon Sep 17 00:00:00 2001 From: sreee9 Date: Fri, 13 Oct 2023 13:03:19 +0530 Subject: [PATCH 02/58] update terraform as per latest eventstreams go sdk release 1.4.0 --- go.mod | 2 +- go.sum | 2 ++ .../resource_ibm_event_streams_schema.go | 12 +++++++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 0f856814ab..f10ff4b8e9 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/IBM/container-registry-go-sdk v1.1.0 github.com/IBM/continuous-delivery-go-sdk v1.2.0 github.com/IBM/event-notifications-go-admin-sdk v0.2.4 - github.com/IBM/eventstreams-go-sdk v1.2.0 + github.com/IBM/eventstreams-go-sdk v1.4.0 github.com/IBM/go-sdk-core/v3 v3.2.4 github.com/IBM/go-sdk-core/v5 v5.14.1 github.com/IBM/ibm-cos-sdk-go v1.10.0 diff --git a/go.sum b/go.sum index cc2b8dfaf4..551ce399de 100644 --- a/go.sum +++ b/go.sum @@ -131,6 +131,8 @@ github.com/IBM/event-notifications-go-admin-sdk v0.2.4 h1:WWUxwrKQxvExEK+xaAQOs6 github.com/IBM/event-notifications-go-admin-sdk v0.2.4/go.mod h1:1TlGAFP47DybbovJfHtYYgSI8xpLL8Q0wao6vsAlb6c= github.com/IBM/eventstreams-go-sdk v1.2.0 h1:eP0afHArMGjwhGqvZAhhu/3EDKRch2JehpveqF1TUjs= github.com/IBM/eventstreams-go-sdk v1.2.0/go.mod h1:2tuAxaYLctfqfr5jvyqSrxxEQGMwYPm3yJGWSj85YVQ= +github.com/IBM/eventstreams-go-sdk v1.4.0 h1:yS/Ns29sBOe8W2tynQmz9HTKqQZ0ckse4Py5Oy/F2rM= +github.com/IBM/eventstreams-go-sdk v1.4.0/go.mod h1:2tuAxaYLctfqfr5jvyqSrxxEQGMwYPm3yJGWSj85YVQ= github.com/IBM/go-sdk-core/v3 v3.0.0/go.mod h1:JI5NS2+iCoY/D8Oq3JNEZNA7qO42agu6fnaUmDsRcJA= github.com/IBM/go-sdk-core/v3 v3.2.4 h1:WKYJYYKlZnw1y/gM+Qbf5EQVAL9xaoD54+ooJZz/iBQ= github.com/IBM/go-sdk-core/v3 v3.2.4/go.mod h1:lk9eOzNbNltPf3CBpcg1Ewkhw4qC3u2QCCKDRsUA2M0= diff --git a/ibm/service/eventstreams/resource_ibm_event_streams_schema.go b/ibm/service/eventstreams/resource_ibm_event_streams_schema.go index 7d4865eb9b..bc4a0d7125 100644 --- a/ibm/service/eventstreams/resource_ibm_event_streams_schema.go +++ b/ibm/service/eventstreams/resource_ibm_event_streams_schema.go @@ -293,7 +293,17 @@ func resourceIBMEventStreamsSchemaDelete(context context.Context, d *schema.Reso schemaID := d.Get("schema_id").(string) deleteSchemaOptions.SetID(schemaID) - response, err := schemaregistryClient.DeleteSchemaWithContext(context, deleteSchemaOptions) + setSchemaOptions := &schemaregistryv1.SetSchemaStateOptions{} + setSchemaOptions.SetID(schemaID) + setSchemaOptions.SetState("DISABLED") + + // set schema state to disabled before deleting + response, err := schemaregistryClient.SetSchemaStateWithContext(context, setSchemaOptions) + if err != nil { + log.Printf("[DEBUG] SetSchemaStateWithContext failed %s\n%s", err, response) + } + + response, err = schemaregistryClient.DeleteSchemaWithContext(context, deleteSchemaOptions) if err != nil { log.Printf("[DEBUG] DeleteSchemaWithContext failed %s\n%s", err, response) return diag.FromErr(fmt.Errorf("DeleteSchemaWithContext failed %s\n%s", err, response)) From de9e0f8e1108b5817c999eb7d14ee946bbe9e99a Mon Sep 17 00:00:00 2001 From: VaishnaviGopal Date: Wed, 25 Oct 2023 07:38:14 +0530 Subject: [PATCH 03/58] Terraform support for Schematics Agents (#4849) * Schematics agent related resources added * Schematics agent related data sources added * provider updated with schematics agent related resources and datasources * docs updated with schematics agent related resources and ds * schematics agent related example added * secrets baseline updated --- .secrets.baseline | 64 +- examples/ibm-schematics/README.md | 155 +- examples/ibm-schematics/main.tf | 144 ++ examples/ibm-schematics/outputs.tf | 32 + examples/ibm-schematics/variables.tf | 127 ++ examples/ibm-schematics/versions.tf | 14 +- ibm/provider/provider.go | 13 + .../data_source_ibm_schematics_agent.go | 972 ++++++++++++ ...data_source_ibm_schematics_agent_deploy.go | 132 ++ ...source_ibm_schematics_agent_deploy_test.go | 84 ++ ...data_source_ibm_schematics_agent_health.go | 124 ++ ...source_ibm_schematics_agent_health_test.go | 83 + .../data_source_ibm_schematics_agent_prs.go | 129 ++ ...ta_source_ibm_schematics_agent_prs_test.go | 83 + .../data_source_ibm_schematics_agent_test.go | 183 +++ .../data_source_ibm_schematics_agents.go | 363 +++++ .../data_source_ibm_schematics_agents_test.go | 36 + .../data_source_ibm_schematics_policies.go | 283 ++++ ...ata_source_ibm_schematics_policies_test.go | 37 + .../data_source_ibm_schematics_policy.go | 479 ++++++ .../data_source_ibm_schematics_policy_test.go | 133 ++ .../resource_ibm_schematics_agent.go | 1332 +++++++++++++++++ .../resource_ibm_schematics_agent_deploy.go | 286 ++++ ...source_ibm_schematics_agent_deploy_test.go | 163 ++ .../resource_ibm_schematics_agent_health.go | 228 +++ ...source_ibm_schematics_agent_health_test.go | 164 ++ .../resource_ibm_schematics_agent_prs.go | 225 +++ .../resource_ibm_schematics_agent_prs_test.go | 162 ++ .../resource_ibm_schematics_agent_test.go | 251 ++++ .../resource_ibm_schematics_policy.go | 769 ++++++++++ .../resource_ibm_schematics_policy_test.go | 196 +++ website/docs/d/schematics_agent.html.markdown | 163 ++ .../d/schematics_agent_deploy.html.markdown | 48 + .../d/schematics_agent_health.html.markdown | 46 + .../docs/d/schematics_agent_prs.html.markdown | 46 + .../docs/d/schematics_agents.html.markdown | 70 + .../docs/d/schematics_policies.html.markdown | 60 + .../docs/d/schematics_policy.html.markdown | 100 ++ .../r/en_destination_huawei.html.markdown | 2 +- website/docs/r/schematics_agent.html.markdown | 204 +++ .../r/schematics_agent_deploy.html.markdown | 57 + .../r/schematics_agent_health.html.markdown | 56 + .../docs/r/schematics_agent_prs.html.markdown | 56 + .../docs/r/schematics_policy.html.markdown | 124 ++ 44 files changed, 8441 insertions(+), 37 deletions(-) create mode 100644 ibm/service/schematics/data_source_ibm_schematics_agent.go create mode 100644 ibm/service/schematics/data_source_ibm_schematics_agent_deploy.go create mode 100644 ibm/service/schematics/data_source_ibm_schematics_agent_deploy_test.go create mode 100644 ibm/service/schematics/data_source_ibm_schematics_agent_health.go create mode 100644 ibm/service/schematics/data_source_ibm_schematics_agent_health_test.go create mode 100644 ibm/service/schematics/data_source_ibm_schematics_agent_prs.go create mode 100644 ibm/service/schematics/data_source_ibm_schematics_agent_prs_test.go create mode 100644 ibm/service/schematics/data_source_ibm_schematics_agent_test.go create mode 100644 ibm/service/schematics/data_source_ibm_schematics_agents.go create mode 100644 ibm/service/schematics/data_source_ibm_schematics_agents_test.go create mode 100644 ibm/service/schematics/data_source_ibm_schematics_policies.go create mode 100644 ibm/service/schematics/data_source_ibm_schematics_policies_test.go create mode 100644 ibm/service/schematics/data_source_ibm_schematics_policy.go create mode 100644 ibm/service/schematics/data_source_ibm_schematics_policy_test.go create mode 100644 ibm/service/schematics/resource_ibm_schematics_agent.go create mode 100644 ibm/service/schematics/resource_ibm_schematics_agent_deploy.go create mode 100644 ibm/service/schematics/resource_ibm_schematics_agent_deploy_test.go create mode 100644 ibm/service/schematics/resource_ibm_schematics_agent_health.go create mode 100644 ibm/service/schematics/resource_ibm_schematics_agent_health_test.go create mode 100644 ibm/service/schematics/resource_ibm_schematics_agent_prs.go create mode 100644 ibm/service/schematics/resource_ibm_schematics_agent_prs_test.go create mode 100644 ibm/service/schematics/resource_ibm_schematics_agent_test.go create mode 100644 ibm/service/schematics/resource_ibm_schematics_policy.go create mode 100644 ibm/service/schematics/resource_ibm_schematics_policy_test.go create mode 100644 website/docs/d/schematics_agent.html.markdown create mode 100644 website/docs/d/schematics_agent_deploy.html.markdown create mode 100644 website/docs/d/schematics_agent_health.html.markdown create mode 100644 website/docs/d/schematics_agent_prs.html.markdown create mode 100644 website/docs/d/schematics_agents.html.markdown create mode 100644 website/docs/d/schematics_policies.html.markdown create mode 100644 website/docs/d/schematics_policy.html.markdown create mode 100644 website/docs/r/schematics_agent.html.markdown create mode 100644 website/docs/r/schematics_agent_deploy.html.markdown create mode 100644 website/docs/r/schematics_agent_health.html.markdown create mode 100644 website/docs/r/schematics_agent_prs.html.markdown create mode 100644 website/docs/r/schematics_policy.html.markdown diff --git a/.secrets.baseline b/.secrets.baseline index 7bcb59e158..3716318f1b 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -3,8 +3,11 @@ "files": "go.mod|go.sum|.*.map|^.secrets.baseline$", "lines": null }, - "generated_at": "2023-10-06T11:01:49Z", + "generated_at": "2023-10-17T18:07:42Z", "plugins_used": [ + { + "name": "AWSKeyDetector" + }, { "name": "ArtifactoryDetector" }, @@ -18,6 +21,12 @@ { "name": "BasicAuthDetector" }, + { + "name": "BoxDetector" + }, + { + "name": "CloudantDetector" + }, { "ghe_instance": "github.ibm.com", "name": "GheDetector" @@ -42,6 +51,9 @@ "keyword_exclude": null, "name": "KeywordDetector" }, + { + "name": "MailchimpDetector" + }, { "name": "NpmDetector" }, @@ -56,6 +68,12 @@ }, { "name": "SquareOAuthDetector" + }, + { + "name": "StripeDetector" + }, + { + "name": "TwilioKeyDetector" } ], "results": { @@ -624,7 +642,7 @@ "hashed_secret": "ba02c5a1aad447298fcfbd962a953e7706b8b430", "is_secret": false, "is_verified": false, - "line_number": 25, + "line_number": 27, "type": "Hex High Entropy String", "verified_result": null } @@ -634,7 +652,7 @@ "hashed_secret": "5ffafdbd72224c86c3601bacfa0b6f04f308b9f6", "is_secret": false, "is_verified": false, - "line_number": 62, + "line_number": 67, "type": "Secret Keyword", "verified_result": null } @@ -724,7 +742,7 @@ "hashed_secret": "731438016c5ab94431f61820f35e3ae5f8ad6004", "is_secret": false, "is_verified": false, - "line_number": 355, + "line_number": 383, "type": "Secret Keyword", "verified_result": null }, @@ -732,7 +750,7 @@ "hashed_secret": "12da2e35d6b50c902c014f1ab9e3032650368df7", "is_secret": false, "is_verified": false, - "line_number": 361, + "line_number": 389, "type": "Secret Keyword", "verified_result": null }, @@ -740,7 +758,7 @@ "hashed_secret": "813274ccae5b6b509379ab56982d862f7b5969b6", "is_secret": false, "is_verified": false, - "line_number": 1072, + "line_number": 1100, "type": "Base64 High Entropy String", "verified_result": null } @@ -818,7 +836,7 @@ "hashed_secret": "1a0334cfa65f4be58b9d914b8e96e9d9478bfbac", "is_secret": false, "is_verified": false, - "line_number": 3242, + "line_number": 3226, "type": "Secret Keyword", "verified_result": null } @@ -828,7 +846,7 @@ "hashed_secret": "c8b6f5ef11b9223ac35a5663975a466ebe7ebba9", "is_secret": false, "is_verified": false, - "line_number": 1766, + "line_number": 1779, "type": "Secret Keyword", "verified_result": null }, @@ -836,7 +854,7 @@ "hashed_secret": "8abf4899c01104241510ba87685ad4de76b0c437", "is_secret": false, "is_verified": false, - "line_number": 1772, + "line_number": 1785, "type": "Secret Keyword", "verified_result": null } @@ -2882,7 +2900,7 @@ "hashed_secret": "83747cea2b26d7652ed39218ddcdb1461c570535", "is_secret": false, "is_verified": false, - "line_number": 80, + "line_number": 79, "type": "Hex High Entropy String", "verified_result": null } @@ -2922,7 +2940,7 @@ "hashed_secret": "49f3bb8f759241df51c899d3725d877bad58f66e", "is_secret": false, "is_verified": false, - "line_number": 1414, + "line_number": 1405, "type": "Secret Keyword", "verified_result": null }, @@ -2930,7 +2948,7 @@ "hashed_secret": "b732fb611fd46a38e8667f9972e0cde777fbe37f", "is_secret": false, "is_verified": false, - "line_number": 1417, + "line_number": 1408, "type": "Secret Keyword", "verified_result": null } @@ -2996,7 +3014,7 @@ "hashed_secret": "3046d9f6cfaaeea6eed9bb7a4ab010fe49b0cfd4", "is_secret": false, "is_verified": false, - "line_number": 181, + "line_number": 185, "type": "Secret Keyword", "verified_result": null }, @@ -3004,7 +3022,7 @@ "hashed_secret": "b732fb611fd46a38e8667f9972e0cde777fbe37f", "is_secret": false, "is_verified": false, - "line_number": 308, + "line_number": 312, "type": "Secret Keyword", "verified_result": null } @@ -3052,7 +3070,7 @@ "hashed_secret": "3046d9f6cfaaeea6eed9bb7a4ab010fe49b0cfd4", "is_secret": false, "is_verified": false, - "line_number": 193, + "line_number": 197, "type": "Secret Keyword", "verified_result": null }, @@ -3060,7 +3078,7 @@ "hashed_secret": "b732fb611fd46a38e8667f9972e0cde777fbe37f", "is_secret": false, "is_verified": false, - "line_number": 335, + "line_number": 339, "type": "Secret Keyword", "verified_result": null } @@ -3124,7 +3142,7 @@ "hashed_secret": "3046d9f6cfaaeea6eed9bb7a4ab010fe49b0cfd4", "is_secret": false, "is_verified": false, - "line_number": 296, + "line_number": 299, "type": "Secret Keyword", "verified_result": null }, @@ -3132,7 +3150,7 @@ "hashed_secret": "b732fb611fd46a38e8667f9972e0cde777fbe37f", "is_secret": false, "is_verified": false, - "line_number": 479, + "line_number": 482, "type": "Secret Keyword", "verified_result": null } @@ -3254,7 +3272,7 @@ "hashed_secret": "3046d9f6cfaaeea6eed9bb7a4ab010fe49b0cfd4", "is_secret": false, "is_verified": false, - "line_number": 158, + "line_number": 162, "type": "Secret Keyword", "verified_result": null }, @@ -3262,7 +3280,7 @@ "hashed_secret": "b732fb611fd46a38e8667f9972e0cde777fbe37f", "is_secret": false, "is_verified": false, - "line_number": 274, + "line_number": 278, "type": "Secret Keyword", "verified_result": null } @@ -3628,7 +3646,7 @@ "hashed_secret": "f855f5027fd8fdb2df3f6a6f1cf858fffcbedb0c", "is_secret": false, "is_verified": false, - "line_number": 92841, + "line_number": 93883, "type": "Secret Keyword", "verified_result": null }, @@ -3636,7 +3654,7 @@ "hashed_secret": "5fb0fa884132a8724a8d7cba55853737e442adbd", "is_secret": false, "is_verified": false, - "line_number": 115304, + "line_number": 116309, "type": "Secret Keyword", "verified_result": null }, @@ -3644,7 +3662,7 @@ "hashed_secret": "1e5c2f367f02e47a8c160cda1cd9d91decbac441", "is_secret": false, "is_verified": false, - "line_number": 145758, + "line_number": 147225, "type": "Secret Keyword", "verified_result": null } diff --git a/examples/ibm-schematics/README.md b/examples/ibm-schematics/README.md index db92621b68..8b277d348c 100644 --- a/examples/ibm-schematics/README.md +++ b/examples/ibm-schematics/README.md @@ -7,6 +7,11 @@ These types of resources are supported: * schematics_workspace * schematics_action * schematics_job +* schematics_policy +* schematics_agent +* schematics_agent_prs +* schematics_agent_deploy +* schematics_agent_health ## Usage @@ -89,6 +94,64 @@ resource "schematics_job" "schematics_job_instance" { x_github_token = var.schematics_job_x_github_token } ``` +schematics_policy resource: + +```hcl +resource "schematics_policy" "schematics_policy_instance" { + name = var.schematics_policy_name + description = var.schematics_policy_description + resource_group = var.schematics_policy_resource_group + tags = var.schematics_policy_tags + location = var.schematics_policy_location + state = var.schematics_policy_state + kind = var.schematics_policy_kind + target = var.schematics_policy_target + parameter = var.schematics_policy_parameter + scoped_resources = var.schematics_policy_scoped_resources +} +``` +schematics_agent resource: + +```hcl +resource "schematics_agent" "schematics_agent_instance" { + name = var.schematics_agent_name + resource_group = var.schematics_agent_resource_group + version = var.schematics_agent_version + schematics_location = var.schematics_agent_schematics_location + agent_location = var.schematics_agent_agent_location + agent_infrastructure = var.schematics_agent_agent_infrastructure + description = var.schematics_agent_description + tags = var.schematics_agent_tags + agent_metadata = var.schematics_agent_agent_metadata + agent_inputs = var.schematics_agent_agent_inputs + user_state = var.schematics_agent_user_state + agent_kpi = var.schematics_agent_agent_kpi +} +``` +schematics_agent_prs resource: + +```hcl +resource "schematics_agent_prs" "schematics_agent_prs_instance" { + agent_id = var.schematics_agent_prs_agent_id + force = var.schematics_agent_prs_force +} +``` +schematics_agent_deploy resource: + +```hcl +resource "schematics_agent_deploy" "schematics_agent_deploy_instance" { + agent_id = var.schematics_agent_deploy_agent_id + force = var.schematics_agent_deploy_force +} +``` +schematics_agent_health resource: + +```hcl +resource "schematics_agent_health" "schematics_agent_health_instance" { + agent_id = var.schematics_agent_health_agent_id + force = var.schematics_agent_health_force +} +``` ## SchematicsV1 Data sources @@ -128,6 +191,54 @@ data "schematics_job" "schematics_job_instance" { job_id = var.schematics_job_job_id } ``` +schematics_policies data source: + +```hcl +data "schematics_policies" "schematics_policies_instance" { + policy_kind = var.schematics_policies_policy_kind +} +``` +schematics_policy data source: + +```hcl +data "schematics_policy" "schematics_policy_instance" { + policy_id = var.schematics_policy_policy_id +} +``` +schematics_agents data source: + +```hcl +data "schematics_agents" "schematics_agents_instance" { +} +``` +schematics_agent data source: + +```hcl +data "schematics_agent" "schematics_agent_instance" { + agent_id = var.schematics_agent_agent_id +} +``` +schematics_agent_prs data source: + +```hcl +data "schematics_agent_prs" "schematics_agent_prs_instance" { + agent_id = var.schematics_agent_prs_agent_id +} +``` +schematics_agent_deploy data source: + +```hcl +data "schematics_agent_deploy" "schematics_agent_deploy_instance" { + agent_id = var.schematics_agent_deploy_agent_id +} +``` +schematics_agent_health data source: + +```hcl +data "schematics_agent_health" "schematics_agent_health_instance" { + agent_id = var.schematics_agent_health_agent_id +} +``` ## Assumptions @@ -141,13 +252,13 @@ data "schematics_job" "schematics_job_instance" { | Name | Version | |------|---------| -| terraform | ~> 0.12 | +| terraform | ~> 1.5 | ## Providers | Name | Version | |------|---------| -| ibm | 1.13.1 | +| ibm | 1.58.1 | ## Inputs @@ -207,7 +318,37 @@ data "schematics_job" "schematics_job_instance" { | workspace_id | The ID of the workspace for which you want to retrieve detailed information. To find the workspace ID, use the `GET /v1/workspaces` API. | `string` | true | | action_id | Use GET or actions API to look up the action IDs in your IBM Cloud account. | `string` | true | | job_id | Use GET jobs API to look up the Job IDs in your IBM Cloud account. | `string` | true | - +| schematics_policy_name | Name of Schematics customization policy. | `string` | true | +| schematics_policy_description | The description of Schematics customization policy. | `string` | false | +| schematics_policy_resource_group | The resource group name for the policy. By default, Policy will be created in `default` Resource Group. | `string` | false | +| schematics_policy_tags | Tags for the Schematics customization policy. | `list(string)` | false | +| schematics_policy_location | List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics. | `string` | false | +| schematics_policy_kind | Policy kind or categories for managing and deriving policy decision * `agent_assignment_policy` Agent assignment policy for job execution. | `string` | false | +| target | The objects for the Schematics policy. | `` | false | +| parameter | The parameter to tune the Schematics policy. | `` | false | +| scoped_resources | List of scoped Schematics resources targeted by the policy. | `list()` | false | +| schematics_agent_name | The name of the agent (must be unique, for an account). | `string` | true | +| schematics_agent_resource_group | The resource-group name for the agent. By default, agent will be registered in Default Resource Group. | `string` | true | +| schematics_agent_version | Agent version. | `string` | true | +| schematics_agent_schematics_location | List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit thejegccnhbrgfulbgbrnftiuudlikviubvnnhlbkcfrhl +e location of the IBM Cloud resources, provisioned using Schematics. | `string` | true | +| schematics_agent_agent_location | The location where agent is deployed in the user environment. | `string` | true | +| agent_infrastructure | The infrastructure parameters used by the agent. | `` | true | +| schematics_agent_description | Agent description. | `string` | false | +| schematics_agent_tags | Tags for the agent. | `list(string)` | false | +| agent_metadata | The metadata of an agent. | `list()` | false | +| agent_inputs | Additional input variables for the agent. | `list()` | false | +| user_state | User defined status of the agent. | `` | false | +| agent_kpi | Schematics Agent key performance indicators. | `` | false | +| schematics_agent_prs_agent_id | Agent ID to get the details of agent. | `string` | true | +| schematics_agent_prs_force | Equivalent to -force options in the command line, default is false. | `bool` | false | +| schematics_agent_deploy_agent_id | Agent ID to get the details of agent. | `string` | true | +| schematics_agent_deploy_force | Equivalent to -force options in the command line, default is false. | `bool` | false | +| schematics_agent_health_agent_id | Agent ID to get the details of agent. | `string` | true | +| schematics_agent_health_force | Equivalent to -force options in the command line, default is false. | `bool` | false | +| schematics_policies_policy_kind | Policy kind or categories for managing and deriving policy decision * `agent_assignment_policy` Agent assignment policy for job execution. | `string` | false | +| schematics_policy_policy_id | ID to get the details of policy. | `string` | true | +| schematics_agent_agent_id | Agent ID to get the details of agent. | `string` | true | ## Outputs | Name | Description | @@ -217,6 +358,8 @@ data "schematics_job" "schematics_job_instance" { | schematics_job | schematics_job object | | schematics_output | schematics_output object | | schematics_state | schematics_state object | -| schematics_workspace | schematics_workspace object | -| schematics_action | schematics_action object | -| schematics_job | schematics_job object | +| ibm_schematics_policy | schematics_policy resource instance | +| ibm_schematics_agent | schematics_agent resource instance | +| ibm_schematics_agent_prs | schematics_agent_prs resource instance | +| ibm_schematics_agent_deploy | schematics_agent_deploy resource instance | +| ibm_schematics_agent_health | schematics_agent_health resource instance | diff --git a/examples/ibm-schematics/main.tf b/examples/ibm-schematics/main.tf index 2ad82673fc..c1129177da 100644 --- a/examples/ibm-schematics/main.tf +++ b/examples/ibm-schematics/main.tf @@ -87,3 +87,147 @@ data "ibm_schematics_action" "schematics_action_instance" { data "ibm_schematics_job" "schematics_job_instance" { job_id = var.schematics_job_job_id } + +// Provision schematics_policy resource instance +resource "ibm_schematics_policy" "schematics_policy_instance" { + name = var.schematics_policy_name + description = var.schematics_policy_description + resource_group = var.schematics_policy_resource_group + tags = var.schematics_policy_tags + location = var.schematics_policy_location + kind = var.schematics_policy_kind + target { + selector_kind = "ids" + selector_ids = [ "selector_ids" ] + selector_scope { + kind = "workspace" + tags = [ "tags" ] + resource_groups = [ "resource_groups" ] + locations = [ "us-south" ] + } + } + parameter { + agent_assignment_policy_parameter { + selector_kind = "ids" + selector_ids = [ "selector_ids" ] + selector_scope { + kind = "workspace" + tags = [ "tags" ] + resource_groups = [ "resource_groups" ] + locations = [ "us-south" ] + } + } + } + scoped_resources { + kind = "workspace" + id = "id" + } +} + +// Provision schematics_agent resource instance +resource "ibm_schematics_agent" "schematics_agent_instance" { + name = var.schematics_agent_name + resource_group = var.schematics_agent_resource_group + version = var.schematics_agent_version + schematics_location = var.schematics_agent_schematics_location + agent_location = var.schematics_agent_agent_location + agent_infrastructure { + infra_type = "ibm_kubernetes" + cluster_id = "cluster_id" + cluster_resource_group = "cluster_resource_group" + cos_instance_name = "cos_instance_name" + cos_bucket_name = "cos_bucket_name" + cos_bucket_region = "cos_bucket_region" + } + description = var.schematics_agent_description + tags = var.schematics_agent_tags + agent_metadata { + name = "purpose" + value = ["git", "terraform", "ansible"] + } + agent_inputs { + name = "name" + value = "value" + use_default = true + metadata { + type = "boolean" + aliases = [ "aliases" ] + description = "description" + cloud_data_type = "cloud_data_type" + default_value = "default_value" + link_status = "normal" + secure = true + immutable = true + hidden = true + required = true + options = [ "options" ] + min_value = 1 + max_value = 1 + min_length = 1 + max_length = 1 + matches = "matches" + position = 1 + group_by = "group_by" + source = "source" + } + } + user_state { + state = "enable" + } + agent_kpi { + availability_indicator = "available" + lifecycle_indicator = "consistent" + percent_usage_indicator = "percent_usage_indicator" + application_indicators = [ null ] + infra_indicators = [ null ] + } +} + +// Provision schematics_agent_prs resource instance +resource "ibm_schematics_agent_prs" "schematics_agent_prs_instance" { + agent_id = var.schematics_agent_prs_agent_id + force = var.schematics_agent_prs_force +} + +// Provision schematics_agent_deploy resource instance +resource "ibm_schematics_agent_deploy" "schematics_agent_deploy_instance" { + agent_id = var.schematics_agent_deploy_agent_id + force = var.schematics_agent_deploy_force +} + +// Provision schematics_agent_health resource instance +resource "ibm_schematics_agent_health" "schematics_agent_health_instance" { + agent_id = var.schematics_agent_health_agent_id + force = var.schematics_agent_health_force +} + +// Create schematics_policies data source +data "ibm_schematics_policies" "schematics_policies_instance" { + policy_kind = var.schematics_policies_policy_kind +} + + +// Create schematics_policy data source +data "ibm_schematics_policy" "schematics_policy_instance" { + policy_id = ibm_schematics_policy.schematics_policy_instance.id +} + +// Create schematics_agents data source +data "ibm_schematics_agents" "schematics_agents_instance" { +} +// Create schematics_agent data source +data "ibm_schematics_agent" "schematics_agent_instance" { + agent_id = ibm_schematics_agent.schematics_agent_instance.id +} +// Create schematics_agent_prs data source +data "ibm_schematics_agent_prs" "schematics_agent_prs_instance" { + agent_id = ibm_schematics_agent.schematics_agent_instance.id +} +// Create schematics_agent_deploy data source +data "ibm_schematics_agent_deploy" "schematics_agent_deploy_instance" { + agent_id = ibm_schematics_agent.schematics_agent_instance.id +} +// Create schematics_agent_health data source +data "ibm_schematics_agent_health" "schematics_agent_health_instance" { + agent_id = ibm_schematics_agent.schematics_agent_instance.id +} \ No newline at end of file diff --git a/examples/ibm-schematics/outputs.tf b/examples/ibm-schematics/outputs.tf index c6804a05dd..cbd8cb9c1f 100644 --- a/examples/ibm-schematics/outputs.tf +++ b/examples/ibm-schematics/outputs.tf @@ -16,3 +16,35 @@ output "ibm_schematics_job" { value = ibm_schematics_job.schematics_job_instance description = "schematics_job resource instance" } + +// This allows schematics_policy data to be referenced by other resources and the terraform CLI +// Modify this if only certain data should be exposed +output "ibm_schematics_policy" { + value = ibm_schematics_policy.schematics_policy_instance + description = "schematics_policy resource instance" +} +// This allows schematics_agent data to be referenced by other resources and the terraform CLI +// Modify this if only certain data should be exposed +output "ibm_schematics_agent" { + value = ibm_schematics_agent.schematics_agent_instance + description = "schematics_agent resource instance" +} +// This allows schematics_agent_prs data to be referenced by other resources and the terraform CLI +// Modify this if only certain data should be exposed +output "ibm_schematics_agent_prs" { + value = ibm_schematics_agent_prs.schematics_agent_prs_instance + description = "schematics_agent_prs resource instance" +} +// This allows schematics_agent_deploy data to be referenced by other resources and the terraform CLI +// Modify this if only certain data should be exposed +output "ibm_schematics_agent_deploy" { + value = ibm_schematics_agent_deploy.schematics_agent_deploy_instance + description = "schematics_agent_deploy resource instance" +} +// This allows schematics_agent_health data to be referenced by other resources and the terraform CLI +// Modify this if only certain data should be exposed +output "ibm_schematics_agent_health" { + value = ibm_schematics_agent_health.schematics_agent_health_instance + description = "schematics_agent_health resource instance" +} + diff --git a/examples/ibm-schematics/variables.tf b/examples/ibm-schematics/variables.tf index 2e9d10dc1b..7d52f21bb1 100644 --- a/examples/ibm-schematics/variables.tf +++ b/examples/ibm-schematics/variables.tf @@ -287,3 +287,130 @@ variable "schematics_job_job_id" { type = string default = "job_id" } + + +// Resource arguments for schematics_policy +variable "schematics_policy_name" { + description = "Name of Schematics customization policy." + type = string + default = "Agent1-DevWS" +} +variable "schematics_policy_description" { + description = "The description of Schematics customization policy." + type = string + default = "Policy for job execution of secured workspaces on agent1" +} +variable "schematics_policy_resource_group" { + description = "The resource group name for the policy. By default, Policy will be created in `default` Resource Group." + type = string + default = "Default" +} +variable "schematics_policy_tags" { + description = "Tags for the Schematics customization policy." + type = list(string) + default = ["policy:secured-job"] +} +variable "schematics_policy_location" { + description = "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics." + type = string + default = "us-south" +} +variable "schematics_policy_kind" { + description = "Policy kind or categories for managing and deriving policy decision * `agent_assignment_policy` Agent assignment policy for job execution." + type = string + default = "agent_assignment_policy" +} + +// Resource arguments for schematics_agent +variable "schematics_agent_name" { + description = "The name of the agent (must be unique, for an account)." + type = string + default = "MyDevAgent" +} +variable "schematics_agent_resource_group" { + description = "The resource-group name for the agent. By default, agent will be registered in Default Resource Group." + type = string + default = "Default" +} +variable "schematics_agent_version" { + description = "Agent version." + type = string + default = "1.0.0-beta2" +} +variable "schematics_agent_schematics_location" { + description = "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics." + type = string + default = "us-south" +} +variable "schematics_agent_agent_location" { + description = "The location where agent is deployed in the user environment." + type = string + default = "us-south" +} +variable "schematics_agent_description" { + description = "Agent description." + type = string + default = "Create Agent" +} +variable "schematics_agent_tags" { + description = "Tags for the agent." + type = list(string) + default = [ "tags" ] +} + +// Resource arguments for schematics_agent_prs +variable "schematics_agent_prs_agent_id" { + description = "Agent ID to get the details of agent." + type = string + default = "agent_id" +} +variable "schematics_agent_prs_force" { + description = "Equivalent to -force options in the command line, default is false." + type = bool + default = true +} + +// Resource arguments for schematics_agent_deploy +variable "schematics_agent_deploy_agent_id" { + description = "Agent ID to get the details of agent." + type = string + default = "agent_id" +} +variable "schematics_agent_deploy_force" { + description = "Equivalent to -force options in the command line, default is false." + type = bool + default = true +} + +// Resource arguments for schematics_agent_health +variable "schematics_agent_health_agent_id" { + description = "Agent ID to get the details of agent." + type = string + default = "agent_id" +} +variable "schematics_agent_health_force" { + description = "Equivalent to -force options in the command line, default is false." + type = bool + default = true +} + +// Data source arguments for schematics_policies +variable "schematics_policies_policy_kind" { + description = "Policy kind or categories for managing and deriving policy decision * `agent_assignment_policy` Agent assignment policy for job execution." + type = string + default = "agent_assignment_policy" +} + +// Data source arguments for schematics_policy +variable "schematics_policy_policy_id" { + description = "ID to get the details of policy." + type = string + default = "policy_id" +} + +// Data source arguments for schematics_agent +variable "schematics_agent_agent_id" { + description = "Agent ID to get the details of agent." + type = string + default = "agent_id" +} \ No newline at end of file diff --git a/examples/ibm-schematics/versions.tf b/examples/ibm-schematics/versions.tf index 2c7021a3aa..f4431d843e 100644 --- a/examples/ibm-schematics/versions.tf +++ b/examples/ibm-schematics/versions.tf @@ -1,8 +1,8 @@ terraform { - required_providers { - ibm = { - source = "IBM-Cloud/ibm" - version = "1.19.0" - } - } - } \ No newline at end of file + required_providers { + ibm = { + source = "IBM-Cloud/ibm" + version = "1.58.1" + } + } +} \ No newline at end of file diff --git a/ibm/provider/provider.go b/ibm/provider/provider.go index 3c7690974b..237a8adb6e 100644 --- a/ibm/provider/provider.go +++ b/ibm/provider/provider.go @@ -570,6 +570,13 @@ func Provider() *schema.Provider { "ibm_schematics_job": schematics.DataSourceIBMSchematicsJob(), "ibm_schematics_inventory": schematics.DataSourceIBMSchematicsInventory(), "ibm_schematics_resource_query": schematics.DataSourceIBMSchematicsResourceQuery(), + "ibm_schematics_policies": schematics.DataSourceIbmSchematicsPolicies(), + "ibm_schematics_policy": schematics.DataSourceIbmSchematicsPolicy(), + "ibm_schematics_agents": schematics.DataSourceIbmSchematicsAgents(), + "ibm_schematics_agent": schematics.DataSourceIbmSchematicsAgent(), + "ibm_schematics_agent_prs": schematics.DataSourceIbmSchematicsAgentPrs(), + "ibm_schematics_agent_deploy": schematics.DataSourceIbmSchematicsAgentDeploy(), + "ibm_schematics_agent_health": schematics.DataSourceIbmSchematicsAgentHealth(), // Added for Power Resources "ibm_pi_catalog_images": power.DataSourceIBMPICatalogImages(), @@ -1211,6 +1218,11 @@ func Provider() *schema.Provider { "ibm_schematics_job": schematics.ResourceIBMSchematicsJob(), "ibm_schematics_inventory": schematics.ResourceIBMSchematicsInventory(), "ibm_schematics_resource_query": schematics.ResourceIBMSchematicsResourceQuery(), + "ibm_schematics_policy": schematics.ResourceIbmSchematicsPolicy(), + "ibm_schematics_agent": schematics.ResourceIbmSchematicsAgent(), + "ibm_schematics_agent_prs": schematics.ResourceIbmSchematicsAgentPrs(), + "ibm_schematics_agent_deploy": schematics.ResourceIbmSchematicsAgentDeploy(), + "ibm_schematics_agent_health": schematics.ResourceIbmSchematicsAgentHealth(), // Added for Secrets Manager "ibm_sm_secret_group": secretsmanager.AddInstanceFields(secretsmanager.ResourceIbmSmSecretGroup()), @@ -1503,6 +1515,7 @@ func Validator() validate.ValidatorDict { "ibm_schematics_workspace": schematics.ResourceIBMSchematicsWorkspaceValidator(), "ibm_schematics_inventory": schematics.ResourceIBMSchematicsInventoryValidator(), "ibm_schematics_resource_query": schematics.ResourceIBMSchematicsResourceQueryValidator(), + "ibm_schematics_policy": schematics.ResourceIbmSchematicsPolicyValidator(), "ibm_resource_instance": resourcecontroller.ResourceIBMResourceInstanceValidator(), "ibm_resource_key": resourcecontroller.ResourceIBMResourceKeyValidator(), "ibm_is_virtual_endpoint_gateway": vpc.ResourceIBMISEndpointGatewayValidator(), diff --git a/ibm/service/schematics/data_source_ibm_schematics_agent.go b/ibm/service/schematics/data_source_ibm_schematics_agent.go new file mode 100644 index 0000000000..a5c21acfd5 --- /dev/null +++ b/ibm/service/schematics/data_source_ibm_schematics_agent.go @@ -0,0 +1,972 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics + +import ( + "context" + "fmt" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/go-sdk-core/v3/core" + "github.com/IBM/schematics-go-sdk/schematicsv1" +) + +func DataSourceIbmSchematicsAgent() *schema.Resource { + return &schema.Resource{ + ReadContext: dataSourceIbmSchematicsAgentRead, + + Schema: map[string]*schema.Schema{ + "agent_id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "Agent ID to get the details of agent.", + }, + "name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The name of the agent (must be unique, for an account).", + }, + "description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Agent description.", + }, + "resource_group": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The resource-group name for the agent. By default, agent will be registered in Default Resource Group.", + }, + "tags": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Tags for the agent.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "version": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Agent version.", + }, + "schematics_location": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + }, + "agent_location": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The location where agent is deployed in the user environment.", + }, + "agent_infrastructure": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The infrastructure parameters used by the agent.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "infra_type": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Type of target agent infrastructure.", + }, + "cluster_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The cluster ID where agent services will be running.", + }, + "cluster_resource_group": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The resource group of the cluster (is it required?).", + }, + "cos_instance_name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The COS instance name to store the agent logs.", + }, + "cos_bucket_name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The COS bucket name used to store the logs.", + }, + "cos_bucket_region": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The COS bucket region.", + }, + }, + }, + }, + "agent_metadata": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The metadata of an agent.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Name of the metadata.", + }, + "value": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Value of the metadata name.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + }, + }, + }, + "agent_inputs": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Additional input variables for the agent.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The name of the variable. For example, `name = \"inventory username\"`.", + }, + "value": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The value for the variable or reference to the value. For example, `value = \"\"`. **Note** The SSH key should contain `\n` at the end of the key details in case of command line or API calls.", + }, + "use_default": &schema.Schema{ + Type: schema.TypeBool, + Computed: true, + Description: "True, will ignore the data in the value attribute, instead the data in metadata.default_value will be used.", + }, + "metadata": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "An user editable metadata for the variables.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Type of the variable.", + }, + "aliases": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The list of aliases for the variable name.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The description of the meta data.", + }, + "cloud_data_type": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Cloud data type of the variable. eg. resource_group_id, region, vpc_id.", + }, + "default_value": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Default value for the variable only if the override value is not specified.", + }, + "link_status": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The status of the link.", + }, + "secure": &schema.Schema{ + Type: schema.TypeBool, + Computed: true, + Description: "Is the variable secure or sensitive ?.", + }, + "immutable": &schema.Schema{ + Type: schema.TypeBool, + Computed: true, + Description: "Is the variable readonly ?.", + }, + "hidden": &schema.Schema{ + Type: schema.TypeBool, + Computed: true, + Description: "If **true**, the variable is not displayed on UI or Command line.", + }, + "required": &schema.Schema{ + Type: schema.TypeBool, + Computed: true, + Description: "If the variable required?.", + }, + "options": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The list of possible values for this variable. If type is **integer** or **date**, then the array of string is converted to array of integers or date during the runtime.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "min_value": &schema.Schema{ + Type: schema.TypeInt, + Computed: true, + Description: "The minimum value of the variable. Applicable for the integer type.", + }, + "max_value": &schema.Schema{ + Type: schema.TypeInt, + Computed: true, + Description: "The maximum value of the variable. Applicable for the integer type.", + }, + "min_length": &schema.Schema{ + Type: schema.TypeInt, + Computed: true, + Description: "The minimum length of the variable value. Applicable for the string type.", + }, + "max_length": &schema.Schema{ + Type: schema.TypeInt, + Computed: true, + Description: "The maximum length of the variable value. Applicable for the string type.", + }, + "matches": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The regex for the variable value.", + }, + "position": &schema.Schema{ + Type: schema.TypeInt, + Computed: true, + Description: "The relative position of this variable in a list.", + }, + "group_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The display name of the group this variable belongs to.", + }, + "source": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The source of this meta-data.", + }, + }, + }, + }, + "link": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The reference link to the variable value By default the expression points to `$self.value`.", + }, + }, + }, + }, + "user_state": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "User defined status of the agent.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "state": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "User-defined states * `enable` Agent is enabled by the user. * `disable` Agent is disbaled by the user.", + }, + "set_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Name of the User who set the state of the Object.", + }, + "set_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "When the User who set the state of the Object.", + }, + }, + }, + }, + "agent_crn": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The agent crn, obtained from the Schematics agent deployment configuration.", + }, + "id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The agent resource id.", + }, + "created_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The agent creation date-time.", + }, + "creation_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The email address of an user who created the agent.", + }, + "updated_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The agent registration updation time.", + }, + "updated_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Email address of user who updated the agent registration.", + }, + "system_state": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Computed state of the agent.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "status_code": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Agent Status.", + }, + "status_message": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The agent status message.", + }, + }, + }, + }, + "agent_kpi": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Schematics Agent key performance indicators.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "availability_indicator": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Overall availability indicator reported by the agent.", + }, + "lifecycle_indicator": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Overall lifecycle indicator reported by the agents.", + }, + "percent_usage_indicator": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Percentage usage of the agent resources.", + }, + "application_indicators": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Agent application key performance indicators.", + Elem: &schema.Schema{ + Type: schema.TypeMap, + }, + }, + "infra_indicators": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Agent infrastructure key performance indicators.", + Elem: &schema.Schema{ + Type: schema.TypeMap, + }, + }, + }, + }, + }, + "recent_prs_job": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Run a pre-requisite scanner for deploying agent.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "agent_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Id of the agent.", + }, + "job_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Job Id.", + }, + "updated_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The agent prs job updation time.", + }, + "updated_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Email address of user who ran the agent prs job.", + }, + "agent_version": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Agent version.", + }, + "status_code": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Final result of the pre-requisite scanner job.", + }, + "status_message": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The outcome of the pre-requisite scanner job, in a formatted log string.", + }, + "log_url": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "URL to the full pre-requisite scanner job logs.", + }, + }, + }, + }, + "recent_deploy_job": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Post-installations checks for Agent health.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "agent_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Id of the agent.", + }, + "job_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Job Id.", + }, + "updated_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The agent deploy job updation time.", + }, + "updated_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Email address of user who ran the agent deploy job.", + }, + "is_redeployed": &schema.Schema{ + Type: schema.TypeBool, + Computed: true, + Description: "True, when the same version of the agent was redeployed.", + }, + "agent_version": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Agent version.", + }, + "status_code": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Final result of the agent deployment job.", + }, + "status_message": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The outcome of the agent deployment job, in a formatted log string.", + }, + "log_url": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "URL to the full agent deployment job logs.", + }, + }, + }, + }, + "recent_health_job": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Agent health check.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "agent_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Id of the agent.", + }, + "job_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Job Id.", + }, + "updated_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The agent health check job updation time.", + }, + "updated_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Email address of user who ran the agent health check job.", + }, + "agent_version": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Agent version.", + }, + "status_code": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Final result of the health-check job.", + }, + "status_message": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The outcome of the health-check job, in a formatted log string.", + }, + "log_url": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "URL to the full health-check job logs.", + }, + }, + }, + }, + }, + } +} + +func dataSourceIbmSchematicsAgentRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + + getAgentDataOptions := &schematicsv1.GetAgentDataOptions{ + XFeatureAgents: core.BoolPtr(true), + Profile: core.StringPtr("detailed"), + } + + getAgentDataOptions.SetAgentID(d.Get("agent_id").(string)) + + agentData, response, err := schematicsClient.GetAgentDataWithContext(context, getAgentDataOptions) + if err != nil { + log.Printf("[DEBUG] GetAgentDataWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("GetAgentDataWithContext failed %s\n%s", err, response)) + } + + d.SetId(fmt.Sprintf("%s", *getAgentDataOptions.AgentID)) + + if err = d.Set("name", agentData.Name); err != nil { + return diag.FromErr(fmt.Errorf("Error setting name: %s", err)) + } + + if err = d.Set("description", agentData.Description); err != nil { + return diag.FromErr(fmt.Errorf("Error setting description: %s", err)) + } + + if err = d.Set("resource_group", agentData.ResourceGroup); err != nil { + return diag.FromErr(fmt.Errorf("Error setting resource_group: %s", err)) + } + + if err = d.Set("version", agentData.Version); err != nil { + return diag.FromErr(fmt.Errorf("Error setting version: %s", err)) + } + + if err = d.Set("schematics_location", agentData.SchematicsLocation); err != nil { + return diag.FromErr(fmt.Errorf("Error setting schematics_location: %s", err)) + } + + if err = d.Set("agent_location", agentData.AgentLocation); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_location: %s", err)) + } + + agentInfrastructure := []map[string]interface{}{} + if agentData.AgentInfrastructure != nil { + modelMap, err := dataSourceIbmSchematicsAgentAgentInfrastructureToMap(agentData.AgentInfrastructure) + if err != nil { + return diag.FromErr(err) + } + agentInfrastructure = append(agentInfrastructure, modelMap) + } + if err = d.Set("agent_infrastructure", agentInfrastructure); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_infrastructure %s", err)) + } + + agentMetadata := []map[string]interface{}{} + if agentData.AgentMetadata != nil { + for _, modelItem := range agentData.AgentMetadata { + modelMap, err := dataSourceIbmSchematicsAgentAgentMetadataInfoToMap(&modelItem) + if err != nil { + return diag.FromErr(err) + } + agentMetadata = append(agentMetadata, modelMap) + } + } + if err = d.Set("agent_metadata", agentMetadata); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_metadata %s", err)) + } + + agentInputs := []map[string]interface{}{} + if agentData.AgentInputs != nil { + for _, modelItem := range agentData.AgentInputs { + modelMap, err := dataSourceIbmSchematicsAgentVariableDataToMap(&modelItem) + if err != nil { + return diag.FromErr(err) + } + agentInputs = append(agentInputs, modelMap) + } + } + if err = d.Set("agent_inputs", agentInputs); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_inputs %s", err)) + } + + userState := []map[string]interface{}{} + if agentData.UserState != nil { + modelMap, err := dataSourceIbmSchematicsAgentAgentUserStateToMap(agentData.UserState) + if err != nil { + return diag.FromErr(err) + } + userState = append(userState, modelMap) + } + if err = d.Set("user_state", userState); err != nil { + return diag.FromErr(fmt.Errorf("Error setting user_state %s", err)) + } + + if err = d.Set("agent_crn", agentData.AgentCrn); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_crn: %s", err)) + } + + if err = d.Set("id", agentData.ID); err != nil { + return diag.FromErr(fmt.Errorf("Error setting id: %s", err)) + } + + if err = d.Set("created_at", flex.DateTimeToString(agentData.CreatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting created_at: %s", err)) + } + + if err = d.Set("creation_by", agentData.CreationBy); err != nil { + return diag.FromErr(fmt.Errorf("Error setting creation_by: %s", err)) + } + + if err = d.Set("updated_at", flex.DateTimeToString(agentData.UpdatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting updated_at: %s", err)) + } + + if err = d.Set("updated_by", agentData.UpdatedBy); err != nil { + return diag.FromErr(fmt.Errorf("Error setting updated_by: %s", err)) + } + + systemState := []map[string]interface{}{} + if agentData.SystemState != nil { + modelMap, err := dataSourceIbmSchematicsAgentAgentSystemStatusToMap(agentData.SystemState) + if err != nil { + return diag.FromErr(err) + } + systemState = append(systemState, modelMap) + } + if err = d.Set("system_state", systemState); err != nil { + return diag.FromErr(fmt.Errorf("Error setting system_state %s", err)) + } + + agentKpi := []map[string]interface{}{} + if agentData.AgentKpi != nil { + modelMap, err := dataSourceIbmSchematicsAgentAgentKPIDataToMap(agentData.AgentKpi) + if err != nil { + return diag.FromErr(err) + } + agentKpi = append(agentKpi, modelMap) + } + if err = d.Set("agent_kpi", agentKpi); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_kpi %s", err)) + } + + recentPrsJob := []map[string]interface{}{} + if agentData.RecentPrsJob != nil { + modelMap, err := dataSourceIbmSchematicsAgentAgentDataRecentPrsJobToMap(agentData.RecentPrsJob) + if err != nil { + return diag.FromErr(err) + } + recentPrsJob = append(recentPrsJob, modelMap) + } + if err = d.Set("recent_prs_job", recentPrsJob); err != nil { + return diag.FromErr(fmt.Errorf("Error setting recent_prs_job %s", err)) + } + + recentDeployJob := []map[string]interface{}{} + if agentData.RecentDeployJob != nil { + modelMap, err := dataSourceIbmSchematicsAgentAgentDataRecentDeployJobToMap(agentData.RecentDeployJob) + if err != nil { + return diag.FromErr(err) + } + recentDeployJob = append(recentDeployJob, modelMap) + } + if err = d.Set("recent_deploy_job", recentDeployJob); err != nil { + return diag.FromErr(fmt.Errorf("Error setting recent_deploy_job %s", err)) + } + + recentHealthJob := []map[string]interface{}{} + if agentData.RecentHealthJob != nil { + modelMap, err := dataSourceIbmSchematicsAgentAgentDataRecentHealthJobToMap(agentData.RecentHealthJob) + if err != nil { + return diag.FromErr(err) + } + recentHealthJob = append(recentHealthJob, modelMap) + } + if err = d.Set("recent_health_job", recentHealthJob); err != nil { + return diag.FromErr(fmt.Errorf("Error setting recent_health_job %s", err)) + } + + return nil +} + +func dataSourceIbmSchematicsAgentAgentInfrastructureToMap(model *schematicsv1.AgentInfrastructure) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.InfraType != nil { + modelMap["infra_type"] = *model.InfraType + } + if model.ClusterID != nil { + modelMap["cluster_id"] = *model.ClusterID + } + if model.ClusterResourceGroup != nil { + modelMap["cluster_resource_group"] = *model.ClusterResourceGroup + } + if model.CosInstanceName != nil { + modelMap["cos_instance_name"] = *model.CosInstanceName + } + if model.CosBucketName != nil { + modelMap["cos_bucket_name"] = *model.CosBucketName + } + if model.CosBucketRegion != nil { + modelMap["cos_bucket_region"] = *model.CosBucketRegion + } + return modelMap, nil +} + +func dataSourceIbmSchematicsAgentAgentMetadataInfoToMap(model *schematicsv1.AgentMetadataInfo) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Name != nil { + modelMap["name"] = *model.Name + } + if model.Value != nil { + modelMap["value"] = model.Value + } + return modelMap, nil +} + +func dataSourceIbmSchematicsAgentVariableDataToMap(model *schematicsv1.VariableData) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Name != nil { + modelMap["name"] = *model.Name + } + if model.Value != nil { + modelMap["value"] = *model.Value + } + if model.UseDefault != nil { + modelMap["use_default"] = *model.UseDefault + } + if model.Metadata != nil { + metadataMap, err := dataSourceIbmSchematicsAgentVariableMetadataToMap(model.Metadata) + if err != nil { + return modelMap, err + } + modelMap["metadata"] = []map[string]interface{}{metadataMap} + } + if model.Link != nil { + modelMap["link"] = *model.Link + } + return modelMap, nil +} + +func dataSourceIbmSchematicsAgentVariableMetadataToMap(model *schematicsv1.VariableMetadata) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Type != nil { + modelMap["type"] = *model.Type + } + if model.Aliases != nil { + modelMap["aliases"] = model.Aliases + } + if model.Description != nil { + modelMap["description"] = *model.Description + } + if model.CloudDataType != nil { + modelMap["cloud_data_type"] = *model.CloudDataType + } + if model.DefaultValue != nil { + modelMap["default_value"] = *model.DefaultValue + } + if model.LinkStatus != nil { + modelMap["link_status"] = *model.LinkStatus + } + if model.Secure != nil { + modelMap["secure"] = *model.Secure + } + if model.Immutable != nil { + modelMap["immutable"] = *model.Immutable + } + if model.Hidden != nil { + modelMap["hidden"] = *model.Hidden + } + if model.Required != nil { + modelMap["required"] = *model.Required + } + if model.Options != nil { + modelMap["options"] = model.Options + } + if model.MinValue != nil { + modelMap["min_value"] = *model.MinValue + } + if model.MaxValue != nil { + modelMap["max_value"] = *model.MaxValue + } + if model.MinLength != nil { + modelMap["min_length"] = *model.MinLength + } + if model.MaxLength != nil { + modelMap["max_length"] = *model.MaxLength + } + if model.Matches != nil { + modelMap["matches"] = *model.Matches + } + if model.Position != nil { + modelMap["position"] = *model.Position + } + if model.GroupBy != nil { + modelMap["group_by"] = *model.GroupBy + } + if model.Source != nil { + modelMap["source"] = *model.Source + } + return modelMap, nil +} + +func dataSourceIbmSchematicsAgentAgentUserStateToMap(model *schematicsv1.AgentUserState) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.State != nil { + modelMap["state"] = *model.State + } + if model.SetBy != nil { + modelMap["set_by"] = *model.SetBy + } + if model.SetAt != nil { + modelMap["set_at"] = model.SetAt.String() + } + return modelMap, nil +} + +func dataSourceIbmSchematicsAgentAgentSystemStatusToMap(model *schematicsv1.AgentSystemStatus) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.StatusCode != nil { + modelMap["status_code"] = *model.StatusCode + } + if model.StatusMessage != nil { + modelMap["status_message"] = *model.StatusMessage + } + return modelMap, nil +} + +func dataSourceIbmSchematicsAgentAgentKPIDataToMap(model *schematicsv1.AgentKPIData) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.AvailabilityIndicator != nil { + modelMap["availability_indicator"] = *model.AvailabilityIndicator + } + if model.LifecycleIndicator != nil { + modelMap["lifecycle_indicator"] = *model.LifecycleIndicator + } + if model.PercentUsageIndicator != nil { + modelMap["percent_usage_indicator"] = *model.PercentUsageIndicator + } + if model.ApplicationIndicators != nil { + } + if model.InfraIndicators != nil { + } + return modelMap, nil +} + +func dataSourceIbmSchematicsAgentAgentDataRecentPrsJobToMap(model *schematicsv1.AgentDataRecentPrsJob) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.AgentID != nil { + modelMap["agent_id"] = *model.AgentID + } + if model.JobID != nil { + modelMap["job_id"] = *model.JobID + } + if model.UpdatedAt != nil { + modelMap["updated_at"] = model.UpdatedAt.String() + } + if model.UpdatedBy != nil { + modelMap["updated_by"] = *model.UpdatedBy + } + if model.AgentVersion != nil { + modelMap["agent_version"] = *model.AgentVersion + } + if model.StatusCode != nil { + modelMap["status_code"] = *model.StatusCode + } + if model.StatusMessage != nil { + modelMap["status_message"] = *model.StatusMessage + } + if model.LogURL != nil { + modelMap["log_url"] = *model.LogURL + } + return modelMap, nil +} + +func dataSourceIbmSchematicsAgentAgentDataRecentDeployJobToMap(model *schematicsv1.AgentDataRecentDeployJob) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.AgentID != nil { + modelMap["agent_id"] = *model.AgentID + } + if model.JobID != nil { + modelMap["job_id"] = *model.JobID + } + if model.UpdatedAt != nil { + modelMap["updated_at"] = model.UpdatedAt.String() + } + if model.UpdatedBy != nil { + modelMap["updated_by"] = *model.UpdatedBy + } + if model.IsRedeployed != nil { + modelMap["is_redeployed"] = *model.IsRedeployed + } + if model.AgentVersion != nil { + modelMap["agent_version"] = *model.AgentVersion + } + if model.StatusCode != nil { + modelMap["status_code"] = *model.StatusCode + } + if model.StatusMessage != nil { + modelMap["status_message"] = *model.StatusMessage + } + if model.LogURL != nil { + modelMap["log_url"] = *model.LogURL + } + return modelMap, nil +} + +func dataSourceIbmSchematicsAgentAgentDataRecentHealthJobToMap(model *schematicsv1.AgentDataRecentHealthJob) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.AgentID != nil { + modelMap["agent_id"] = *model.AgentID + } + if model.JobID != nil { + modelMap["job_id"] = *model.JobID + } + if model.UpdatedAt != nil { + modelMap["updated_at"] = model.UpdatedAt.String() + } + if model.UpdatedBy != nil { + modelMap["updated_by"] = *model.UpdatedBy + } + if model.AgentVersion != nil { + modelMap["agent_version"] = *model.AgentVersion + } + if model.StatusCode != nil { + modelMap["status_code"] = *model.StatusCode + } + if model.StatusMessage != nil { + modelMap["status_message"] = *model.StatusMessage + } + if model.LogURL != nil { + modelMap["log_url"] = *model.LogURL + } + return modelMap, nil +} diff --git a/ibm/service/schematics/data_source_ibm_schematics_agent_deploy.go b/ibm/service/schematics/data_source_ibm_schematics_agent_deploy.go new file mode 100644 index 0000000000..7fa062e5b4 --- /dev/null +++ b/ibm/service/schematics/data_source_ibm_schematics_agent_deploy.go @@ -0,0 +1,132 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics + +import ( + "context" + "fmt" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/go-sdk-core/v3/core" + "github.com/IBM/schematics-go-sdk/schematicsv1" +) + +func DataSourceIbmSchematicsAgentDeploy() *schema.Resource { + return &schema.Resource{ + ReadContext: dataSourceIbmSchematicsAgentDeployRead, + + Schema: map[string]*schema.Schema{ + "agent_id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "Agent ID to get the details of agent.", + }, + "job_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Job Id.", + }, + "updated_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The agent deploy job updation time.", + }, + "updated_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Email address of user who ran the agent deploy job.", + }, + "is_redeployed": &schema.Schema{ + Type: schema.TypeBool, + Computed: true, + Description: "True, when the same version of the agent was redeployed.", + }, + "agent_version": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Agent version.", + }, + "status_code": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Final result of the agent deployment job.", + }, + "status_message": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The outcome of the agent deployment job, in a formatted log string.", + }, + "log_url": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "URL to the full agent deployment job logs.", + }, + }, + } +} + +func dataSourceIbmSchematicsAgentDeployRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + + getAgentDataOptions := &schematicsv1.GetAgentDataOptions{ + XFeatureAgents: core.BoolPtr(true), + Profile: core.StringPtr("detailed"), + } + getAgentDataOptions.SetAgentID(d.Get("agent_id").(string)) + + agentData, response, err := schematicsClient.GetAgentDataWithContext(context, getAgentDataOptions) + if err != nil { + if response != nil && response.StatusCode == 404 { + d.SetId(DataSourceIBMSchematicsAgentID(d)) + return nil + } + log.Printf("[DEBUG] GetAgentDataWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("GetAgentDataWithContext failed %s\n%s", err, response)) + } + d.SetId(DataSourceIBMSchematicsAgentID(d)) + + if agentData.RecentDeployJob != nil { + + if err = d.Set("agent_id", getAgentDataOptions.AgentID); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_id: %s", err)) + } + if err = d.Set("job_id", agentData.RecentDeployJob.JobID); err != nil { + return diag.FromErr(fmt.Errorf("Error setting job_id: %s", err)) + } else if agentData.RecentDeployJob.JobID != nil { + d.SetId(fmt.Sprintf("%s", *agentData.RecentDeployJob.JobID)) + } + if err = d.Set("updated_at", flex.DateTimeToString(agentData.RecentDeployJob.UpdatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting updated_at: %s", err)) + } + if err = d.Set("updated_by", agentData.RecentDeployJob.UpdatedBy); err != nil { + return diag.FromErr(fmt.Errorf("Error setting updated_by: %s", err)) + } + if err = d.Set("is_redeployed", agentData.RecentDeployJob.IsRedeployed); err != nil { + return diag.FromErr(fmt.Errorf("Error setting is_redeployed: %s", err)) + } + if err = d.Set("agent_version", agentData.Version); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_version: %s", err)) + } + if err = d.Set("status_code", agentData.RecentDeployJob.StatusCode); err != nil { + return diag.FromErr(fmt.Errorf("Error setting status_code: %s", err)) + } + if err = d.Set("status_message", agentData.RecentDeployJob.StatusMessage); err != nil { + return diag.FromErr(fmt.Errorf("Error setting status_message: %s", err)) + } + if err = d.Set("log_url", agentData.RecentDeployJob.LogURL); err != nil { + return diag.FromErr(fmt.Errorf("Error setting log_url: %s", err)) + } + + } + return nil +} diff --git a/ibm/service/schematics/data_source_ibm_schematics_agent_deploy_test.go b/ibm/service/schematics/data_source_ibm_schematics_agent_deploy_test.go new file mode 100644 index 0000000000..dc89e8d162 --- /dev/null +++ b/ibm/service/schematics/data_source_ibm_schematics_agent_deploy_test.go @@ -0,0 +1,84 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" +) + +func TestAccIbmSchematicsAgentDeployDataSourceBasic(t *testing.T) { + agentDeployJobAgentID := fmt.Sprintf("tf_agent_id_%d", acctest.RandIntRange(10, 100)) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentDeployDataSourceConfigBasic(agentDeployJobAgentID), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_deploy.schematics_agent_deploy_instance", "id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_deploy.schematics_agent_deploy_instance", "agent_id"), + ), + }, + }, + }) +} + +func TestAccIbmSchematicsAgentDeployDataSourceAllArgs(t *testing.T) { + agentDeployJobAgentID := fmt.Sprintf("tf_agent_id_%d", acctest.RandIntRange(10, 100)) + agentDeployJobForce := "false" + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentDeployDataSourceConfig(agentDeployJobAgentID, agentDeployJobForce), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_deploy.schematics_agent_deploy_instance", "id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_deploy.schematics_agent_deploy_instance", "agent_id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_deploy.schematics_agent_deploy_instance", "job_id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_deploy.schematics_agent_deploy_instance", "updated_at"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_deploy.schematics_agent_deploy_instance", "updated_by"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_deploy.schematics_agent_deploy_instance", "is_redeployed"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_deploy.schematics_agent_deploy_instance", "agent_version"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_deploy.schematics_agent_deploy_instance", "status_code"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_deploy.schematics_agent_deploy_instance", "status_message"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_deploy.schematics_agent_deploy_instance", "log_url"), + ), + }, + }, + }) +} + +func testAccCheckIbmSchematicsAgentDeployDataSourceConfigBasic(agentDeployJobAgentID string) string { + return fmt.Sprintf(` + + resource "ibm_schematics_agent_deploy" "schematics_agent_deploy_instance" { + agent_id = "%s" + } + data "ibm_schematics_agent_deploy" "schematics_agent_deploy_instance" { + agent_id = ibm_schematics_agent_deploy.schematics_agent_deploy_instance.agent_id + } + `, agentDeployJobAgentID) +} + +func testAccCheckIbmSchematicsAgentDeployDataSourceConfig(agentDeployJobAgentID string, agentDeployJobForce string) string { + return fmt.Sprintf(` + resource "ibm_schematics_agent_deploy" "schematics_agent_deploy_instance" { + agent_id = "%s" + force = %s + } + + data "ibm_schematics_agent_deploy" "schematics_agent_deploy_instance" { + agent_id = ibm_schematics_agent_deploy.schematics_agent_deploy_instance.agent_id + } + `, agentDeployJobAgentID, agentDeployJobForce) +} diff --git a/ibm/service/schematics/data_source_ibm_schematics_agent_health.go b/ibm/service/schematics/data_source_ibm_schematics_agent_health.go new file mode 100644 index 0000000000..87ea05609d --- /dev/null +++ b/ibm/service/schematics/data_source_ibm_schematics_agent_health.go @@ -0,0 +1,124 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics + +import ( + "context" + "fmt" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/go-sdk-core/v3/core" + "github.com/IBM/schematics-go-sdk/schematicsv1" +) + +func DataSourceIbmSchematicsAgentHealth() *schema.Resource { + return &schema.Resource{ + ReadContext: dataSourceIbmSchematicsAgentHealthRead, + + Schema: map[string]*schema.Schema{ + "agent_id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "Agent ID to get the details of agent.", + }, + "job_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Job Id.", + }, + "updated_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The agent health check job updation time.", + }, + "updated_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Email address of user who ran the agent health check job.", + }, + "agent_version": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Agent version.", + }, + "status_code": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Final result of the health-check job.", + }, + "status_message": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The outcome of the health-check job, in a formatted log string.", + }, + "log_url": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "URL to the full health-check job logs.", + }, + }, + } +} + +func dataSourceIbmSchematicsAgentHealthRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + + getAgentDataOptions := &schematicsv1.GetAgentDataOptions{ + XFeatureAgents: core.BoolPtr(true), + Profile: core.StringPtr("detailed"), + } + getAgentDataOptions.SetAgentID(d.Get("agent_id").(string)) + + agentData, response, err := schematicsClient.GetAgentDataWithContext(context, getAgentDataOptions) + if err != nil { + if response != nil && response.StatusCode == 404 { + d.SetId(DataSourceIBMSchematicsAgentID(d)) + return nil + } + log.Printf("[DEBUG] GetAgentDataWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("GetAgentDataWithContext failed %s\n%s", err, response)) + } + d.SetId(DataSourceIBMSchematicsAgentID(d)) + + if agentData.RecentHealthJob != nil { + + if err = d.Set("agent_id", getAgentDataOptions.AgentID); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_id: %s", err)) + } + if err = d.Set("job_id", agentData.RecentHealthJob.JobID); err != nil { + return diag.FromErr(fmt.Errorf("Error setting job_id: %s", err)) + } else if agentData.RecentHealthJob.JobID != nil { + d.SetId(fmt.Sprintf("%s", *agentData.RecentHealthJob.JobID)) + } + if err = d.Set("updated_at", flex.DateTimeToString(agentData.RecentHealthJob.UpdatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting updated_at: %s", err)) + } + if err = d.Set("updated_by", agentData.RecentHealthJob.UpdatedBy); err != nil { + return diag.FromErr(fmt.Errorf("Error setting updated_by: %s", err)) + } + if err = d.Set("agent_version", agentData.Version); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_version: %s", err)) + } + if err = d.Set("status_code", agentData.RecentHealthJob.StatusCode); err != nil { + return diag.FromErr(fmt.Errorf("Error setting status_code: %s", err)) + } + if err = d.Set("status_message", agentData.RecentHealthJob.StatusMessage); err != nil { + return diag.FromErr(fmt.Errorf("Error setting status_message: %s", err)) + } + if err = d.Set("log_url", agentData.RecentHealthJob.LogURL); err != nil { + return diag.FromErr(fmt.Errorf("Error setting log_url: %s", err)) + } + + } + return nil +} diff --git a/ibm/service/schematics/data_source_ibm_schematics_agent_health_test.go b/ibm/service/schematics/data_source_ibm_schematics_agent_health_test.go new file mode 100644 index 0000000000..e7351e4e8e --- /dev/null +++ b/ibm/service/schematics/data_source_ibm_schematics_agent_health_test.go @@ -0,0 +1,83 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" +) + +func TestAccIbmSchematicsAgentHealthDataSourceBasic(t *testing.T) { + agentHealthJobAgentID := fmt.Sprintf("tf_agent_id_%d", acctest.RandIntRange(10, 100)) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentHealthDataSourceConfigBasic(agentHealthJobAgentID), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_health.schematics_agent_health_instance", "id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_health.schematics_agent_health_instance", "agent_id"), + ), + }, + }, + }) +} + +func TestAccIbmSchematicsAgentHealthDataSourceAllArgs(t *testing.T) { + agentHealthJobAgentID := fmt.Sprintf("tf_agent_id_%d", acctest.RandIntRange(10, 100)) + agentHealthJobForce := "false" + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentHealthDataSourceConfig(agentHealthJobAgentID, agentHealthJobForce), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_health.schematics_agent_health_instance", "id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_health.schematics_agent_health_instance", "agent_id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_health.schematics_agent_health_instance", "job_id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_health.schematics_agent_health_instance", "updated_at"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_health.schematics_agent_health_instance", "updated_by"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_health.schematics_agent_health_instance", "agent_version"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_health.schematics_agent_health_instance", "status_code"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_health.schematics_agent_health_instance", "status_message"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_health.schematics_agent_health_instance", "log_url"), + ), + }, + }, + }) +} + +func testAccCheckIbmSchematicsAgentHealthDataSourceConfigBasic(agentHealthJobAgentID string) string { + return fmt.Sprintf(` + resource "ibm_schematics_agent_health" "schematics_agent_health_instance" { + agent_id = "%s" + } + + data "ibm_schematics_agent_health" "schematics_agent_health_instance" { + agent_id = ibm_schematics_agent_health.schematics_agent_health.agent_id + } + `, agentHealthJobAgentID) +} + +func testAccCheckIbmSchematicsAgentHealthDataSourceConfig(agentHealthJobAgentID string, agentHealthJobForce string) string { + return fmt.Sprintf(` + resource "ibm_schematics_agent_health" "schematics_agent_health_instance" { + agent_id = "%s" + force = %s + } + + data "ibm_schematics_agent_health" "schematics_agent_health_instance" { + agent_id = ibm_schematics_agent_health.schematics_agent_health.agent_id + } + `, agentHealthJobAgentID, agentHealthJobForce) +} diff --git a/ibm/service/schematics/data_source_ibm_schematics_agent_prs.go b/ibm/service/schematics/data_source_ibm_schematics_agent_prs.go new file mode 100644 index 0000000000..e0c4eb613f --- /dev/null +++ b/ibm/service/schematics/data_source_ibm_schematics_agent_prs.go @@ -0,0 +1,129 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics + +import ( + "context" + "fmt" + "log" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/go-sdk-core/v3/core" + "github.com/IBM/schematics-go-sdk/schematicsv1" +) + +func DataSourceIbmSchematicsAgentPrs() *schema.Resource { + return &schema.Resource{ + ReadContext: dataSourceIbmSchematicsAgentPrsRead, + + Schema: map[string]*schema.Schema{ + "agent_id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "Agent ID to get the details of agent.", + }, + "job_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Job Id.", + }, + "updated_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The agent prs job updation time.", + }, + "updated_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Email address of user who ran the agent prs job.", + }, + "agent_version": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Agent version.", + }, + "status_code": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Final result of the pre-requisite scanner job.", + }, + "status_message": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The outcome of the pre-requisite scanner job, in a formatted log string.", + }, + "log_url": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "URL to the full pre-requisite scanner job logs.", + }, + }, + } +} + +func dataSourceIbmSchematicsAgentPrsRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + + getAgentDataOptions := &schematicsv1.GetAgentDataOptions{ + XFeatureAgents: core.BoolPtr(true), + Profile: core.StringPtr("detailed"), + } + getAgentDataOptions.SetAgentID(d.Get("agent_id").(string)) + + agentData, response, err := schematicsClient.GetAgentDataWithContext(context, getAgentDataOptions) + if err != nil { + if response != nil && response.StatusCode == 404 { + d.SetId(DataSourceIBMSchematicsAgentID(d)) + return nil + } + log.Printf("[DEBUG] GetAgentDataWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("GetAgentDataWithContext failed %s\n%s", err, response)) + } + d.SetId(DataSourceIBMSchematicsAgentID(d)) + + if agentData.RecentPrsJob != nil { + + if err = d.Set("agent_id", getAgentDataOptions.AgentID); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_id: %s", err)) + } + if err = d.Set("job_id", agentData.RecentPrsJob.JobID); err != nil { + return diag.FromErr(fmt.Errorf("Error setting job_id: %s", err)) + } else if agentData.RecentPrsJob.JobID != nil { + d.SetId(fmt.Sprintf("%s", *agentData.RecentPrsJob.JobID)) + } + if err = d.Set("updated_at", flex.DateTimeToString(agentData.RecentPrsJob.UpdatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting updated_at: %s", err)) + } + if err = d.Set("updated_by", agentData.RecentPrsJob.UpdatedBy); err != nil { + return diag.FromErr(fmt.Errorf("Error setting updated_by: %s", err)) + } + if err = d.Set("agent_version", agentData.Version); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_version: %s", err)) + } + if err = d.Set("status_code", agentData.RecentPrsJob.StatusCode); err != nil { + return diag.FromErr(fmt.Errorf("Error setting status_code: %s", err)) + } + if err = d.Set("status_message", agentData.RecentPrsJob.StatusMessage); err != nil { + return diag.FromErr(fmt.Errorf("Error setting status_message: %s", err)) + } + if err = d.Set("log_url", agentData.RecentPrsJob.LogURL); err != nil { + return diag.FromErr(fmt.Errorf("Error setting log_url: %s", err)) + } + + } + return nil +} + +// DataSourceIBMSchematicsAgentID returns a reasonable ID +func DataSourceIBMSchematicsAgentID(d *schema.ResourceData) string { + return time.Now().UTC().String() +} diff --git a/ibm/service/schematics/data_source_ibm_schematics_agent_prs_test.go b/ibm/service/schematics/data_source_ibm_schematics_agent_prs_test.go new file mode 100644 index 0000000000..3a1e4be7fd --- /dev/null +++ b/ibm/service/schematics/data_source_ibm_schematics_agent_prs_test.go @@ -0,0 +1,83 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" +) + +func TestAccIbmSchematicsAgentPrsDataSourceBasic(t *testing.T) { + agentPRSJobAgentID := fmt.Sprintf("tf_agent_id_%d", acctest.RandIntRange(10, 100)) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentPrsDataSourceConfigBasic(agentPRSJobAgentID), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_prs.schematics_agent_prs_instance", "id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_prs.schematics_agent_prs_instance", "agent_id"), + ), + }, + }, + }) +} + +func TestAccIbmSchematicsAgentPrsDataSourceAllArgs(t *testing.T) { + agentPRSJobAgentID := fmt.Sprintf("tf_agent_id_%d", acctest.RandIntRange(10, 100)) + agentPRSJobForce := "false" + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentPrsDataSourceConfig(agentPRSJobAgentID, agentPRSJobForce), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_prs.schematics_agent_prs_instance", "id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_prs.schematics_agent_prs_instance", "agent_id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_prs.schematics_agent_prs_instance", "job_id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_prs.schematics_agent_prs_instance", "updated_at"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_prs.schematics_agent_prs_instance", "updated_by"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_prs.schematics_agent_prs_instance", "agent_version"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_prs.schematics_agent_prs_instance", "status_code"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_prs.schematics_agent_prs_instance", "status_message"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent_prs.schematics_agent_prs_instance", "log_url"), + ), + }, + }, + }) +} + +func testAccCheckIbmSchematicsAgentPrsDataSourceConfigBasic(agentPRSJobAgentID string) string { + return fmt.Sprintf(` + resource "ibm_schematics_agent_prs" "schematics_agent_prs_instance" { + agent_id = "%s" + } + + data "ibm_schematics_agent_prs" "schematics_agent_prs_instance" { + agent_id = ibm_schematics_agent_prs.schematics_agent_prs_instance.agent_id + } + `, agentPRSJobAgentID) +} + +func testAccCheckIbmSchematicsAgentPrsDataSourceConfig(agentPRSJobAgentID string, agentPRSJobForce string) string { + return fmt.Sprintf(` + resource "ibm_schematics_agent_prs" "schematics_agent_prs_instance" { + agent_id = "%s" + force = %s + } + + data "ibm_schematics_agent_prs" "schematics_agent_prs_instance" { + agent_id = ibm_schematics_agent_prs.schematics_agent_prs_instance.agent_id + } + `, agentPRSJobAgentID, agentPRSJobForce) +} diff --git a/ibm/service/schematics/data_source_ibm_schematics_agent_test.go b/ibm/service/schematics/data_source_ibm_schematics_agent_test.go new file mode 100644 index 0000000000..f3ec02934b --- /dev/null +++ b/ibm/service/schematics/data_source_ibm_schematics_agent_test.go @@ -0,0 +1,183 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" +) + +func TestAccIbmSchematicsAgentDataSourceBasic(t *testing.T) { + agentDataName := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) + agentDataVersion := "1.0.0-beta2" + agentDataSchematicsLocation := "us-south" + agentDataAgentLocation := "eu-de" + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentDataSourceConfigBasic(agentDataName, agentDataVersion, agentDataSchematicsLocation, agentDataAgentLocation), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "agent_id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "name"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "resource_group"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "version"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "schematics_location"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "agent_location"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "agent_infrastructure.#"), + ), + }, + }, + }) +} + +func TestAccIbmSchematicsAgentDataSourceAllArgs(t *testing.T) { + agentDataName := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) + agentDataVersion := "1.0.0-beta2" + agentDataSchematicsLocation := "us-south" + agentDataAgentLocation := "eu-de" + agentDataDescription := fmt.Sprintf("tf_description_%d", acctest.RandIntRange(10, 100)) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentDataSourceConfig(agentDataName, agentDataVersion, agentDataSchematicsLocation, agentDataAgentLocation, agentDataDescription), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "agent_id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "name"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "description"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "resource_group"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "tags.#"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "version"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "schematics_location"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "agent_location"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "agent_infrastructure.#"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "agent_metadata.#"), + resource.TestCheckResourceAttr("data.ibm_schematics_agent.schematics_agent_instance", "agent_metadata.0.name", agentDataName), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "agent_inputs.#"), + resource.TestCheckResourceAttr("data.ibm_schematics_agent.schematics_agent_instance", "agent_inputs.0.name", agentDataName), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "agent_inputs.0.value"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "agent_inputs.0.use_default"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "agent_inputs.0.link"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "user_state.#"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "agent_crn"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "created_at"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "creation_by"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "updated_at"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "updated_by"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "system_state.#"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "agent_kpi.#"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "recent_prs_job.#"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "recent_deploy_job.#"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agent.schematics_agent_instance", "recent_health_job.#"), + ), + }, + }, + }) +} + +func testAccCheckIbmSchematicsAgentDataSourceConfigBasic(agentDataName string, agentDataVersion string, agentDataSchematicsLocation string, agentDataAgentLocation string) string { + return fmt.Sprintf(` + resource "ibm_schematics_agent" "schematics_agent_instance" { + name = "%s" + resource_group = "Default" + version = "%s" + schematics_location = "%s" + agent_location = "%s" + agent_infrastructure { + infra_type = "ibm_kubernetes" + cluster_id = "cluster_id" + cluster_resource_group = "cluster_resource_group" + cos_instance_name = "cos_instance_name" + cos_bucket_name = "cos_bucket_name" + cos_bucket_region = "cos_bucket_region" + } + } + + data "ibm_schematics_agent" "schematics_agent_instance" { + agent_id = ibm_schematics_agent.schematics_agent_instance.id + } + `, agentDataName, agentDataVersion, agentDataSchematicsLocation, agentDataAgentLocation) +} + +func testAccCheckIbmSchematicsAgentDataSourceConfig(agentDataName string, agentDataVersion string, agentDataSchematicsLocation string, agentDataAgentLocation string, agentDataDescription string) string { + return fmt.Sprintf(` + resource "ibm_schematics_agent" "schematics_agent_instance" { + name = "%s" + resource_group = "Default" + version = "%s" + schematics_location = "%s" + agent_location = "%s" + agent_infrastructure { + infra_type = "ibm_kubernetes" + cluster_id = "cluster_id" + cluster_resource_group = "cluster_resource_group" + cos_instance_name = "cos_instance_name" + cos_bucket_name = "cos_bucket_name" + cos_bucket_region = "cos_bucket_region" + } + description = "%s" + tags = "FIXME" + agent_metadata { + name = "purpose" + value = ["git", "terraform", "ansible"] + } + agent_inputs { + name = "name" + value = "value" + use_default = true + metadata { + type = "boolean" + aliases = [ "aliases" ] + description = "description" + cloud_data_type = "cloud_data_type" + default_value = "default_value" + link_status = "normal" + secure = true + immutable = true + hidden = true + required = true + options = [ "options" ] + min_value = 1 + max_value = 1 + min_length = 1 + max_length = 1 + matches = "matches" + position = 1 + group_by = "group_by" + source = "source" + } + link = "link" + } + user_state { + state = "enable" + set_by = "set_by" + set_at = "2021-01-31T09:44:12Z" + } + agent_kpi { + availability_indicator = "available" + lifecycle_indicator = "consistent" + percent_usage_indicator = "percent_usage_indicator" + application_indicators = [ null ] + infra_indicators = [ null ] + } + } + + data "ibm_schematics_agent" "schematics_agent_instance" { + agent_id = ibm_schematics_agent.schematics_agent_instance.id + } + `, agentDataName, agentDataVersion, agentDataSchematicsLocation, agentDataAgentLocation, agentDataDescription) +} diff --git a/ibm/service/schematics/data_source_ibm_schematics_agents.go b/ibm/service/schematics/data_source_ibm_schematics_agents.go new file mode 100644 index 0000000000..2b37171461 --- /dev/null +++ b/ibm/service/schematics/data_source_ibm_schematics_agents.go @@ -0,0 +1,363 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics + +import ( + "context" + "fmt" + "log" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/schematics-go-sdk/schematicsv1" +) + +func DataSourceIbmSchematicsAgents() *schema.Resource { + return &schema.Resource{ + ReadContext: dataSourceIbmSchematicsAgentsRead, + + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The name of the agent (must be unique, for an account).", + }, + "total_count": &schema.Schema{ + Type: schema.TypeInt, + Computed: true, + Description: "The total number of records.", + }, + "limit": &schema.Schema{ + Type: schema.TypeInt, + Computed: true, + Description: "The number of records returned.", + }, + "offset": &schema.Schema{ + Type: schema.TypeInt, + Computed: true, + Description: "The skipped number of records.", + }, + "agents": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The list of agents in the account.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The name of the agent (must be unique, for an account).", + }, + "description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Agent description.", + }, + "resource_group": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The resource-group name for the agent. By default, Agent will be registered in Default Resource Group.", + }, + "tags": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Tags for the agent.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "agent_location": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The location where agent is deployed in the user environment.", + }, + "location": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + }, + "profile_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The IAM trusted profile id, used by the Agent instance.", + }, + "agent_crn": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The Agent crn, obtained from the Schematics Agent deployment configuration.", + }, + "id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The Agent registration id.", + }, + "registered_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The Agent registration date-time.", + }, + "registered_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The email address of an user who registered the Agent.", + }, + "updated_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The Agent registration updation time.", + }, + "updated_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Email address of user who updated the Agent registration.", + }, + "user_state": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "User defined status of the agent.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "state": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "User-defined states * `enable` Agent is enabled by the user. * `disable` Agent is disbaled by the user.", + }, + "set_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Name of the User who set the state of the Object.", + }, + "set_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "When the User who set the state of the Object.", + }, + }, + }, + }, + "connection_state": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Connection status of the agent.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "state": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Agent Connection Status * `Connected` When Schematics is able to connect to the agent. * `Disconnected` When Schematics is able not connect to the agent.", + }, + "checked_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "When the connection state is modified.", + }, + }, + }, + }, + "system_state": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Computed state of the agent.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "state": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Agent Status.", + }, + "message": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The Agent status message.", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +func dataSourceIbmSchematicsAgentsRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + + listAgentOptions := &schematicsv1.ListAgentOptions{} + + agentList, response, err := schematicsClient.ListAgentWithContext(context, listAgentOptions) + if err != nil { + log.Printf("[DEBUG] ListAgentWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("ListAgentWithContext failed %s\n%s", err, response)) + } + + // Use the provided filter argument and construct a new list with only the requested resource(s) + var matchAgents []schematicsv1.Agent + var name string + var suppliedFilter bool + + if v, ok := d.GetOk("name"); ok { + name = v.(string) + suppliedFilter = true + for _, data := range agentList.Agents { + if *data.Name == name { + matchAgents = append(matchAgents, data) + } + } + } else { + matchAgents = agentList.Agents + } + agentList.Agents = matchAgents + + if suppliedFilter { + if len(agentList.Agents) == 0 { + log.Printf("[DEBUG] no Agents found with name %s\n", name) + // return diag.FromErr(fmt.Errorf("no Agents found with name %s", name)) + } + d.SetId(name) + } else { + d.SetId(dataSourceIbmSchematicsAgentsID(d)) + } + + if err = d.Set("total_count", flex.IntValue(agentList.TotalCount)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting total_count: %s", err)) + } + + if err = d.Set("limit", flex.IntValue(agentList.Limit)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting limit: %s", err)) + } + + if err = d.Set("offset", flex.IntValue(agentList.Offset)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting offset: %s", err)) + } + + agents := []map[string]interface{}{} + if agentList.Agents != nil { + for _, modelItem := range agentList.Agents { + modelMap, err := dataSourceIbmSchematicsAgentsAgentToMap(&modelItem) + if err != nil { + return diag.FromErr(err) + } + agents = append(agents, modelMap) + } + } + if err = d.Set("agents", agents); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agents %s", err)) + } + + return nil +} + +// dataSourceIbmSchematicsAgentsID returns a reasonable ID for the list. +func dataSourceIbmSchematicsAgentsID(d *schema.ResourceData) string { + return time.Now().UTC().String() +} + +func dataSourceIbmSchematicsAgentsAgentToMap(model *schematicsv1.Agent) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Name != nil { + modelMap["name"] = *model.Name + } + if model.Description != nil { + modelMap["description"] = *model.Description + } + if model.ResourceGroup != nil { + modelMap["resource_group"] = *model.ResourceGroup + } + if model.Tags != nil { + modelMap["tags"] = model.Tags + } + if model.AgentLocation != nil { + modelMap["agent_location"] = *model.AgentLocation + } + if model.Location != nil { + modelMap["location"] = *model.Location + } + if model.ProfileID != nil { + modelMap["profile_id"] = *model.ProfileID + } + if model.AgentCrn != nil { + modelMap["agent_crn"] = *model.AgentCrn + } + if model.ID != nil { + modelMap["id"] = *model.ID + } + if model.RegisteredAt != nil { + modelMap["registered_at"] = model.RegisteredAt.String() + } + if model.RegisteredBy != nil { + modelMap["registered_by"] = *model.RegisteredBy + } + if model.UpdatedAt != nil { + modelMap["updated_at"] = model.UpdatedAt.String() + } + if model.UpdatedBy != nil { + modelMap["updated_by"] = *model.UpdatedBy + } + if model.UserState != nil { + userStateMap, err := dataSourceIbmSchematicsAgentsAgentUserStateToMap(model.UserState) + if err != nil { + return modelMap, err + } + modelMap["user_state"] = []map[string]interface{}{userStateMap} + } + if model.ConnectionState != nil { + connectionStateMap, err := dataSourceIbmSchematicsAgentsConnectionStateToMap(model.ConnectionState) + if err != nil { + return modelMap, err + } + modelMap["connection_state"] = []map[string]interface{}{connectionStateMap} + } + if model.SystemState != nil { + systemStateMap, err := dataSourceIbmSchematicsAgentsAgentSystemStateToMap(model.SystemState) + if err != nil { + return modelMap, err + } + modelMap["system_state"] = []map[string]interface{}{systemStateMap} + } + return modelMap, nil +} + +func dataSourceIbmSchematicsAgentsAgentUserStateToMap(model *schematicsv1.AgentUserState) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.State != nil { + modelMap["state"] = *model.State + } + if model.SetBy != nil { + modelMap["set_by"] = *model.SetBy + } + if model.SetAt != nil { + modelMap["set_at"] = model.SetAt.String() + } + return modelMap, nil +} + +func dataSourceIbmSchematicsAgentsConnectionStateToMap(model *schematicsv1.ConnectionState) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.State != nil { + modelMap["state"] = *model.State + } + if model.CheckedAt != nil { + modelMap["checked_at"] = model.CheckedAt.String() + } + return modelMap, nil +} + +func dataSourceIbmSchematicsAgentsAgentSystemStateToMap(model *schematicsv1.AgentSystemState) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.State != nil { + modelMap["state"] = *model.State + } + if model.Message != nil { + modelMap["message"] = *model.Message + } + return modelMap, nil +} diff --git a/ibm/service/schematics/data_source_ibm_schematics_agents_test.go b/ibm/service/schematics/data_source_ibm_schematics_agents_test.go new file mode 100644 index 0000000000..ea9b65b48a --- /dev/null +++ b/ibm/service/schematics/data_source_ibm_schematics_agents_test.go @@ -0,0 +1,36 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" +) + +func TestAccIbmSchematicsAgentsDataSourceBasic(t *testing.T) { + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentsDataSourceConfigBasic(), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_schematics_agents.schematics_agents_instance", "id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_agents.schematics_agents_instance", "offset"), + ), + }, + }, + }) +} + +func testAccCheckIbmSchematicsAgentsDataSourceConfigBasic() string { + return fmt.Sprintf(` + data "ibm_schematics_agents" "schematics_agents_instance" { + } + `) +} diff --git a/ibm/service/schematics/data_source_ibm_schematics_policies.go b/ibm/service/schematics/data_source_ibm_schematics_policies.go new file mode 100644 index 0000000000..7cfe407d0e --- /dev/null +++ b/ibm/service/schematics/data_source_ibm_schematics_policies.go @@ -0,0 +1,283 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics + +import ( + "context" + "fmt" + "log" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/schematics-go-sdk/schematicsv1" +) + +func DataSourceIbmSchematicsPolicies() *schema.Resource { + return &schema.Resource{ + ReadContext: dataSourceIbmSchematicsPoliciesRead, + + Schema: map[string]*schema.Schema{ + "policy_kind": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "Policy kind or categories for managing and deriving policy decision * `agent_assignment_policy` Agent assignment policy for job execution.", + }, + "total_count": &schema.Schema{ + Type: schema.TypeInt, + Computed: true, + Description: "The total number of policy records.", + }, + "limit": &schema.Schema{ + Type: schema.TypeInt, + Computed: true, + Description: "The number of policy records returned.", + }, + "offset": &schema.Schema{ + Type: schema.TypeInt, + Computed: true, + Description: "The skipped number of policy records.", + }, + "policies": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The list of Schematics policies.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The name of Schematics customization policy.", + }, + "id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The system generated Policy Id.", + }, + "crn": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The policy CRN.", + }, + "account": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The Account id.", + }, + "description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The description of Schematics customization policy.", + }, + "resource_group": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Resource-group name for the Policy. By default, Policy will be created in Default Resource Group.", + }, + "tags": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Tags for the Schematics customization policy.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "location": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + }, + "state": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "User defined status of the Schematics object.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "state": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution.", + }, + "set_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Name of the User who set the state of the Object.", + }, + "set_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "When the User who set the state of the Object.", + }, + }, + }, + }, + "policy_kind": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Policy kind or categories for managing and deriving policy decision * `agent_assignment_policy` Agent assignment policy for job execution.", + }, + "created_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The policy creation time.", + }, + "created_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The user who created the Policy.", + }, + "updated_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The policy updation time.", + }, + }, + }, + }, + }, + } +} + +func dataSourceIbmSchematicsPoliciesRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + + listPolicyOptions := &schematicsv1.ListPolicyOptions{} + + policyList, response, err := schematicsClient.ListPolicyWithContext(context, listPolicyOptions) + if err != nil { + log.Printf("[DEBUG] ListPolicyWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("ListPolicyWithContext failed %s\n%s", err, response)) + } + + // Use the provided filter argument and construct a new list with only the requested resource(s) + var matchPolicies []schematicsv1.PolicyLite + var policyKind string + var suppliedFilter bool + + if v, ok := d.GetOk("policy_kind"); ok { + policyKind = v.(string) + suppliedFilter = true + for _, data := range policyList.Policies { + if data.PolicyKind != nil { + if *data.PolicyKind == policyKind { + matchPolicies = append(matchPolicies, data) + } + } + } + } else { + matchPolicies = policyList.Policies + } + policyList.Policies = matchPolicies + + if suppliedFilter { + if len(policyList.Policies) == 0 { + log.Printf("[DEBUG] no Policies found with policyKind %s\n", policyKind) + // return diag.FromErr(fmt.Errorf("no Policies found with policyKind %s", policyKind)) + } + d.SetId(policyKind) + } else { + d.SetId(dataSourceIbmSchematicsPoliciesID(d)) + } + + if err = d.Set("total_count", flex.IntValue(policyList.TotalCount)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting total_count: %s", err)) + } + + if err = d.Set("limit", flex.IntValue(policyList.Limit)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting limit: %s", err)) + } + + if err = d.Set("offset", flex.IntValue(policyList.Offset)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting offset: %s", err)) + } + + policies := []map[string]interface{}{} + if policyList.Policies != nil { + for _, modelItem := range policyList.Policies { + modelMap, err := dataSourceIbmSchematicsPoliciesPolicyLiteToMap(&modelItem) + if err != nil { + return diag.FromErr(err) + } + policies = append(policies, modelMap) + } + } + if err = d.Set("policies", policies); err != nil { + return diag.FromErr(fmt.Errorf("Error setting policies %s", err)) + } + + return nil +} + +// dataSourceIbmSchematicsPoliciesID returns a reasonable ID for the list. +func dataSourceIbmSchematicsPoliciesID(d *schema.ResourceData) string { + return time.Now().UTC().String() +} + +func dataSourceIbmSchematicsPoliciesPolicyLiteToMap(model *schematicsv1.PolicyLite) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Name != nil { + modelMap["name"] = *model.Name + } + if model.ID != nil { + modelMap["id"] = *model.ID + } + if model.Crn != nil { + modelMap["crn"] = *model.Crn + } + if model.Account != nil { + modelMap["account"] = *model.Account + } + if model.Description != nil { + modelMap["description"] = *model.Description + } + if model.ResourceGroup != nil { + modelMap["resource_group"] = *model.ResourceGroup + } + if model.Tags != nil { + modelMap["tags"] = model.Tags + } + if model.Location != nil { + modelMap["location"] = *model.Location + } + if model.State != nil { + stateMap, err := dataSourceIbmSchematicsPoliciesUserStateToMap(model.State) + if err != nil { + return modelMap, err + } + modelMap["state"] = []map[string]interface{}{stateMap} + } + if model.PolicyKind != nil { + modelMap["policy_kind"] = *model.PolicyKind + } + if model.CreatedAt != nil { + modelMap["created_at"] = model.CreatedAt.String() + } + if model.CreatedBy != nil { + modelMap["created_by"] = *model.CreatedBy + } + if model.UpdatedAt != nil { + modelMap["updated_at"] = model.UpdatedAt.String() + } + return modelMap, nil +} + +func dataSourceIbmSchematicsPoliciesUserStateToMap(model *schematicsv1.UserState) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.State != nil { + modelMap["state"] = *model.State + } + if model.SetBy != nil { + modelMap["set_by"] = *model.SetBy + } + if model.SetAt != nil { + modelMap["set_at"] = model.SetAt.String() + } + return modelMap, nil +} diff --git a/ibm/service/schematics/data_source_ibm_schematics_policies_test.go b/ibm/service/schematics/data_source_ibm_schematics_policies_test.go new file mode 100644 index 0000000000..a1ed441df9 --- /dev/null +++ b/ibm/service/schematics/data_source_ibm_schematics_policies_test.go @@ -0,0 +1,37 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" +) + +func TestAccIbmSchematicsPoliciesDataSourceBasic(t *testing.T) { + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsPoliciesDataSourceConfigBasic(), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_schematics_policies.schematics_policies_instance", "id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_policies.schematics_policies_instance", "offset"), + ), + }, + }, + }) +} + +func testAccCheckIbmSchematicsPoliciesDataSourceConfigBasic() string { + return fmt.Sprintf(` + data "ibm_schematics_policies" "schematics_policies_instance" { + policy_kind = "agent_assignment_policy" + } + `) +} diff --git a/ibm/service/schematics/data_source_ibm_schematics_policy.go b/ibm/service/schematics/data_source_ibm_schematics_policy.go new file mode 100644 index 0000000000..51b2c40256 --- /dev/null +++ b/ibm/service/schematics/data_source_ibm_schematics_policy.go @@ -0,0 +1,479 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics + +import ( + "context" + "fmt" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/schematics-go-sdk/schematicsv1" +) + +func DataSourceIbmSchematicsPolicy() *schema.Resource { + return &schema.Resource{ + ReadContext: dataSourceIbmSchematicsPolicyRead, + + Schema: map[string]*schema.Schema{ + "policy_id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "ID to get the details of policy.", + }, + "name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Name of Schematics customization policy.", + }, + "description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The description of Schematics customization policy.", + }, + "resource_group": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The resource group name for the policy. By default, Policy will be created in `default` Resource Group.", + }, + "tags": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Tags for the Schematics customization policy.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "location": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + }, + "state": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "User defined status of the Schematics object.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "state": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution.", + }, + "set_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Name of the User who set the state of the Object.", + }, + "set_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "When the User who set the state of the Object.", + }, + }, + }, + }, + "kind": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Policy kind or categories for managing and deriving policy decision * `agent_assignment_policy` Agent assignment policy for job execution.", + }, + "target": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The objects for the Schematics policy.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "selector_kind": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Types of schematics object selector.", + }, + "selector_ids": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Static selectors of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "selector_scope": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Selectors to dynamically list of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "kind": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Name of the Schematics automation resource.", + }, + "tags": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The tag based selector.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "resource_groups": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The resource group based selector.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "locations": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The location based selector.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + }, + }, + }, + }, + }, + }, + "parameter": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The parameter to tune the Schematics policy.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "agent_assignment_policy_parameter": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Parameters for the `agent_assignment_policy`.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "selector_kind": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Types of schematics object selector.", + }, + "selector_ids": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The static selectors of schematics object ids (workspace, action or blueprint) for the Schematics policy.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "selector_scope": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The selectors to dynamically list of schematics object ids (workspace, action or blueprint) for the Schematics policy.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "kind": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Name of the Schematics automation resource.", + }, + "tags": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The tag based selector.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "resource_groups": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The resource group based selector.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "locations": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The location based selector.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + }, + }, + }, + }, + }, + }, + }, + }, + }, + "id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The system generated policy Id.", + }, + "crn": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The policy CRN.", + }, + "account": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The Account id.", + }, + "scoped_resources": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "List of scoped Schematics resources targeted by the policy.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "kind": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Name of the Schematics automation resource.", + }, + "id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Schematics resource Id.", + }, + }, + }, + }, + "created_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The policy creation time.", + }, + "created_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The user who created the policy.", + }, + "updated_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The policy updation time.", + }, + }, + } +} + +func dataSourceIbmSchematicsPolicyRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + + getPolicyOptions := &schematicsv1.GetPolicyOptions{} + + getPolicyOptions.SetPolicyID(d.Get("policy_id").(string)) + + policy, response, err := schematicsClient.GetPolicyWithContext(context, getPolicyOptions) + if err != nil { + log.Printf("[DEBUG] GetPolicyWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("GetPolicyWithContext failed %s\n%s", err, response)) + } + + d.SetId(fmt.Sprintf("%s", *getPolicyOptions.PolicyID)) + + if err = d.Set("name", policy.Name); err != nil { + return diag.FromErr(fmt.Errorf("Error setting name: %s", err)) + } + + if err = d.Set("description", policy.Description); err != nil { + return diag.FromErr(fmt.Errorf("Error setting description: %s", err)) + } + + if err = d.Set("resource_group", policy.ResourceGroup); err != nil { + return diag.FromErr(fmt.Errorf("Error setting resource_group: %s", err)) + } + + if err = d.Set("location", policy.Location); err != nil { + return diag.FromErr(fmt.Errorf("Error setting location: %s", err)) + } + + state := []map[string]interface{}{} + if policy.State != nil { + modelMap, err := dataSourceIbmSchematicsPolicyUserStateToMap(policy.State) + if err != nil { + return diag.FromErr(err) + } + state = append(state, modelMap) + } + if err = d.Set("state", state); err != nil { + return diag.FromErr(fmt.Errorf("Error setting state %s", err)) + } + + if err = d.Set("kind", policy.Kind); err != nil { + return diag.FromErr(fmt.Errorf("Error setting kind: %s", err)) + } + + target := []map[string]interface{}{} + if policy.Target != nil { + modelMap, err := dataSourceIbmSchematicsPolicyPolicyObjectsToMap(policy.Target) + if err != nil { + return diag.FromErr(err) + } + target = append(target, modelMap) + } + if err = d.Set("target", target); err != nil { + return diag.FromErr(fmt.Errorf("Error setting target %s", err)) + } + + parameter := []map[string]interface{}{} + if policy.Parameter != nil { + modelMap, err := dataSourceIbmSchematicsPolicyPolicyParameterToMap(policy.Parameter) + if err != nil { + return diag.FromErr(err) + } + parameter = append(parameter, modelMap) + } + if err = d.Set("parameter", parameter); err != nil { + return diag.FromErr(fmt.Errorf("Error setting parameter %s", err)) + } + + if err = d.Set("id", policy.ID); err != nil { + return diag.FromErr(fmt.Errorf("Error setting id: %s", err)) + } + + if err = d.Set("crn", policy.Crn); err != nil { + return diag.FromErr(fmt.Errorf("Error setting crn: %s", err)) + } + + if err = d.Set("account", policy.Account); err != nil { + return diag.FromErr(fmt.Errorf("Error setting account: %s", err)) + } + + scopedResources := []map[string]interface{}{} + if policy.ScopedResources != nil { + for _, modelItem := range policy.ScopedResources { + modelMap, err := dataSourceIbmSchematicsPolicyScopedResourceToMap(&modelItem) + if err != nil { + return diag.FromErr(err) + } + scopedResources = append(scopedResources, modelMap) + } + } + if err = d.Set("scoped_resources", scopedResources); err != nil { + return diag.FromErr(fmt.Errorf("Error setting scoped_resources %s", err)) + } + + if err = d.Set("created_at", flex.DateTimeToString(policy.CreatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting created_at: %s", err)) + } + + if err = d.Set("created_by", policy.CreatedBy); err != nil { + return diag.FromErr(fmt.Errorf("Error setting created_by: %s", err)) + } + + if err = d.Set("updated_at", flex.DateTimeToString(policy.UpdatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting updated_at: %s", err)) + } + + return nil +} + +func dataSourceIbmSchematicsPolicyUserStateToMap(model *schematicsv1.UserState) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.State != nil { + modelMap["state"] = *model.State + } + if model.SetBy != nil { + modelMap["set_by"] = *model.SetBy + } + if model.SetAt != nil { + modelMap["set_at"] = model.SetAt.String() + } + return modelMap, nil +} + +func dataSourceIbmSchematicsPolicyPolicyObjectsToMap(model *schematicsv1.PolicyObjects) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.SelectorKind != nil { + modelMap["selector_kind"] = *model.SelectorKind + } + if model.SelectorIds != nil { + modelMap["selector_ids"] = model.SelectorIds + } + if model.SelectorScope != nil { + selectorScope := []map[string]interface{}{} + for _, selectorScopeItem := range model.SelectorScope { + selectorScopeItemMap, err := dataSourceIbmSchematicsPolicyPolicyObjectSelectorToMap(&selectorScopeItem) + if err != nil { + return modelMap, err + } + selectorScope = append(selectorScope, selectorScopeItemMap) + } + modelMap["selector_scope"] = selectorScope + } + return modelMap, nil +} + +func dataSourceIbmSchematicsPolicyPolicyObjectSelectorToMap(model *schematicsv1.PolicyObjectSelector) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Kind != nil { + modelMap["kind"] = *model.Kind + } + if model.Tags != nil { + modelMap["tags"] = model.Tags + } + if model.ResourceGroups != nil { + modelMap["resource_groups"] = model.ResourceGroups + } + if model.Locations != nil { + modelMap["locations"] = model.Locations + } + return modelMap, nil +} + +func dataSourceIbmSchematicsPolicyPolicyParameterToMap(model *schematicsv1.PolicyParameter) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.AgentAssignmentPolicyParameter != nil { + agentAssignmentPolicyParameterMap, err := dataSourceIbmSchematicsPolicyAgentAssignmentPolicyParameterToMap(model.AgentAssignmentPolicyParameter) + if err != nil { + return modelMap, err + } + modelMap["agent_assignment_policy_parameter"] = []map[string]interface{}{agentAssignmentPolicyParameterMap} + } + return modelMap, nil +} + +func dataSourceIbmSchematicsPolicyAgentAssignmentPolicyParameterToMap(model *schematicsv1.AgentAssignmentPolicyParameter) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.SelectorKind != nil { + modelMap["selector_kind"] = *model.SelectorKind + } + if model.SelectorIds != nil { + modelMap["selector_ids"] = model.SelectorIds + } + if model.SelectorScope != nil { + selectorScope := []map[string]interface{}{} + for _, selectorScopeItem := range model.SelectorScope { + selectorScopeItemMap, err := dataSourceIbmSchematicsPolicyPolicyObjectSelectorToMap(&selectorScopeItem) + if err != nil { + return modelMap, err + } + selectorScope = append(selectorScope, selectorScopeItemMap) + } + modelMap["selector_scope"] = selectorScope + } + return modelMap, nil +} + +func dataSourceIbmSchematicsPolicyScopedResourceToMap(model *schematicsv1.ScopedResource) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Kind != nil { + modelMap["kind"] = *model.Kind + } + if model.ID != nil { + modelMap["id"] = *model.ID + } + return modelMap, nil +} diff --git a/ibm/service/schematics/data_source_ibm_schematics_policy_test.go b/ibm/service/schematics/data_source_ibm_schematics_policy_test.go new file mode 100644 index 0000000000..a31976aa94 --- /dev/null +++ b/ibm/service/schematics/data_source_ibm_schematics_policy_test.go @@ -0,0 +1,133 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" +) + +func TestAccIbmSchematicsPolicyDataSourceBasic(t *testing.T) { + policyName := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) + policyKind := "agent_assignment_policy" + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsPolicyDataSourceConfigBasic(policyName, policyKind), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "policy_id"), + ), + }, + }, + }) +} + +func TestAccIbmSchematicsPolicyDataSourceAllArgs(t *testing.T) { + policyName := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) + policyDescription := fmt.Sprintf("tf_description_%d", acctest.RandIntRange(10, 100)) + policyResourceGroup := fmt.Sprintf("tf_resource_group_%d", acctest.RandIntRange(10, 100)) + policyLocation := "us-south" + policyKind := "agent_assignment_policy" + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsPolicyDataSourceConfig(policyName, policyDescription, policyResourceGroup, policyLocation, policyKind), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "policy_id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "name"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "description"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "resource_group"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "tags.#"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "location"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "state.#"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "kind"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "target.#"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "parameter.#"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "crn"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "account"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "scoped_resources.#"), + resource.TestCheckResourceAttr("data.ibm_schematics_policy.schematics_policy_instance", "scoped_resources.0.kind", policyKind), + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "scoped_resources.0.id"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "created_at"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "created_by"), + resource.TestCheckResourceAttrSet("data.ibm_schematics_policy.schematics_policy_instance", "updated_at"), + ), + }, + }, + }) +} + +func testAccCheckIbmSchematicsPolicyDataSourceConfigBasic(policyName, policyKind string) string { + return fmt.Sprintf(` + resource "ibm_schematics_policy" "schematics_policy_instance" { + name = "%s" + kind = "%s" + } + + data "ibm_schematics_policy" "schematics_policy_instance" { + policy_id = ibm_schematics_policy.schematics_policy_instance.id + } + `, policyName, policyKind) +} + +func testAccCheckIbmSchematicsPolicyDataSourceConfig(policyName string, policyDescription string, policyResourceGroup string, policyLocation string, policyKind string) string { + return fmt.Sprintf(` + resource "ibm_schematics_policy" "schematics_policy_instance" { + name = "%s" + description = "%s" + resource_group = "%s" + tags = "FIXME" + location = "%s" + state { + state = "draft" + set_by = "set_by" + set_at = "2021-01-31T09:44:12Z" + } + kind = "%s" + target { + selector_kind = "ids" + selector_ids = [ "selector_ids" ] + selector_scope { + kind = "workspace" + tags = [ "tags" ] + resource_groups = [ "resource_groups" ] + locations = [ "us-south" ] + } + } + parameter { + agent_assignment_policy_parameter { + selector_kind = "ids" + selector_ids = [ "selector_ids" ] + selector_scope { + kind = "workspace" + tags = [ "tags" ] + resource_groups = [ "resource_groups" ] + locations = [ "us-south" ] + } + } + } + scoped_resources { + kind = "workspace" + id = "id" + } + } + + data "ibm_schematics_policy" "schematics_policy_instance" { + policy_id = ibm_schematics_policy.schematics_policy_instance.id + } + `, policyName, policyDescription, policyResourceGroup, policyLocation, policyKind) +} diff --git a/ibm/service/schematics/resource_ibm_schematics_agent.go b/ibm/service/schematics/resource_ibm_schematics_agent.go new file mode 100644 index 0000000000..edfbf33540 --- /dev/null +++ b/ibm/service/schematics/resource_ibm_schematics_agent.go @@ -0,0 +1,1332 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics + +import ( + "context" + "fmt" + "log" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/go-sdk-core/v5/core" + "github.com/IBM/schematics-go-sdk/schematicsv1" +) + +func ResourceIbmSchematicsAgent() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceIbmSchematicsAgentCreate, + ReadContext: resourceIbmSchematicsAgentRead, + UpdateContext: resourceIbmSchematicsAgentUpdate, + DeleteContext: resourceIbmSchematicsAgentDelete, + Importer: &schema.ResourceImporter{}, + Timeouts: &schema.ResourceTimeout{ + Create: schema.DefaultTimeout(10 * time.Minute), + Update: schema.DefaultTimeout(10 * time.Minute), + Delete: schema.DefaultTimeout(10 * time.Minute), + }, + + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The name of the agent (must be unique, for an account).", + }, + "resource_group": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The resource-group name for the agent. By default, agent will be registered in Default Resource Group.", + }, + "version": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "Agent version.", + }, + "schematics_location": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + }, + "agent_location": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The location where agent is deployed in the user environment.", + }, + "agent_infrastructure": &schema.Schema{ + Type: schema.TypeList, + MinItems: 1, + MaxItems: 1, + Required: true, + Description: "The infrastructure parameters used by the agent.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "infra_type": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "Type of target agent infrastructure.", + }, + "cluster_id": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The cluster ID where agent services will be running.", + }, + "cluster_resource_group": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The resource group of the cluster (is it required?).", + }, + "cos_instance_name": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The COS instance name to store the agent logs.", + }, + "cos_bucket_name": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The COS bucket name used to store the logs.", + }, + "cos_bucket_region": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The COS bucket region.", + }, + }, + }, + }, + "description": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "Agent description.", + }, + "tags": &schema.Schema{ + Type: schema.TypeList, + Optional: true, + Description: "Tags for the agent.", + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "agent_metadata": &schema.Schema{ + Type: schema.TypeList, + Optional: true, + Description: "The metadata of an agent.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "Name of the metadata.", + }, + "value": &schema.Schema{ + Type: schema.TypeList, + Optional: true, + Description: "Value of the metadata name.", + Elem: &schema.Schema{Type: schema.TypeString}, + }, + }, + }, + }, + "agent_inputs": &schema.Schema{ + Type: schema.TypeList, + Optional: true, + Description: "Additional input variables for the agent.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The name of the variable. For example, `name = \"inventory username\"`.", + }, + "value": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The value for the variable or reference to the value. For example, `value = \"\"`. **Note** The SSH key should contain `\n` at the end of the key details in case of command line or API calls.", + }, + "use_default": &schema.Schema{ + Type: schema.TypeBool, + Optional: true, + Description: "True, will ignore the data in the value attribute, instead the data in metadata.default_value will be used.", + }, + "metadata": &schema.Schema{ + Type: schema.TypeList, + MaxItems: 1, + Optional: true, + Description: "An user editable metadata for the variables.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "Type of the variable.", + }, + "aliases": &schema.Schema{ + Type: schema.TypeList, + Optional: true, + Description: "The list of aliases for the variable name.", + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "description": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The description of the meta data.", + }, + "cloud_data_type": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "Cloud data type of the variable. eg. resource_group_id, region, vpc_id.", + }, + "default_value": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "Default value for the variable only if the override value is not specified.", + }, + "link_status": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The status of the link.", + }, + "secure": &schema.Schema{ + Type: schema.TypeBool, + Optional: true, + Description: "Is the variable secure or sensitive ?.", + }, + "immutable": &schema.Schema{ + Type: schema.TypeBool, + Optional: true, + Description: "Is the variable readonly ?.", + }, + "hidden": &schema.Schema{ + Type: schema.TypeBool, + Optional: true, + Description: "If **true**, the variable is not displayed on UI or Command line.", + }, + "required": &schema.Schema{ + Type: schema.TypeBool, + Optional: true, + Description: "If the variable required?.", + }, + "options": &schema.Schema{ + Type: schema.TypeList, + Optional: true, + Description: "The list of possible values for this variable. If type is **integer** or **date**, then the array of string is converted to array of integers or date during the runtime.", + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "min_value": &schema.Schema{ + Type: schema.TypeInt, + Optional: true, + Description: "The minimum value of the variable. Applicable for the integer type.", + }, + "max_value": &schema.Schema{ + Type: schema.TypeInt, + Optional: true, + Description: "The maximum value of the variable. Applicable for the integer type.", + }, + "min_length": &schema.Schema{ + Type: schema.TypeInt, + Optional: true, + Description: "The minimum length of the variable value. Applicable for the string type.", + }, + "max_length": &schema.Schema{ + Type: schema.TypeInt, + Optional: true, + Description: "The maximum length of the variable value. Applicable for the string type.", + }, + "matches": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The regex for the variable value.", + }, + "position": &schema.Schema{ + Type: schema.TypeInt, + Optional: true, + Description: "The relative position of this variable in a list.", + }, + "group_by": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The display name of the group this variable belongs to.", + }, + "source": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The source of this meta-data.", + }, + }, + }, + }, + "link": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The reference link to the variable value By default the expression points to `$self.value`.", + }, + }, + }, + }, + "user_state": &schema.Schema{ + Type: schema.TypeList, + MaxItems: 1, + Optional: true, + Computed: true, + Description: "User defined status of the agent.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "state": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "User-defined states * `enable` Agent is enabled by the user. * `disable` Agent is disbaled by the user.", + }, + "set_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Name of the User who set the state of the Object.", + }, + "set_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "When the User who set the state of the Object.", + }, + }, + }, + }, + "agent_kpi": &schema.Schema{ + Type: schema.TypeList, + MaxItems: 1, + Optional: true, + Computed: true, + Description: "Schematics Agent key performance indicators.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "availability_indicator": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Overall availability indicator reported by the agent.", + }, + "lifecycle_indicator": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Overall lifecycle indicator reported by the agents.", + }, + "percent_usage_indicator": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Percentage usage of the agent resources.", + }, + "application_indicators": &schema.Schema{ + Type: schema.TypeList, + Optional: true, + Computed: true, + Description: "Agent application key performance indicators.", + Elem: &schema.Schema{Type: schema.TypeMap}, + }, + "infra_indicators": &schema.Schema{ + Type: schema.TypeList, + Optional: true, + Computed: true, + Description: "Agent infrastructure key performance indicators.", + Elem: &schema.Schema{Type: schema.TypeMap}, + }, + }, + }, + }, + "agent_crn": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The agent crn, obtained from the Schematics agent deployment configuration.", + }, + "created_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The agent creation date-time.", + }, + "creation_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The email address of an user who created the agent.", + }, + "updated_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The agent registration updation time.", + }, + "updated_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Email address of user who updated the agent registration.", + }, + "system_state": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Computed state of the agent.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "status_code": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Agent Status.", + }, + "status_message": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "The agent status message.", + }, + }, + }, + }, + "recent_prs_job": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Run a pre-requisite scanner for deploying agent.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "agent_id": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Id of the agent.", + }, + "job_id": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Job Id.", + }, + "updated_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The agent prs job updation time.", + }, + "updated_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Email address of user who ran the agent prs job.", + }, + "agent_version": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Agent version.", + }, + "status_code": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Final result of the pre-requisite scanner job.", + }, + "status_message": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "The outcome of the pre-requisite scanner job, in a formatted log string.", + }, + "log_url": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "URL to the full pre-requisite scanner job logs.", + }, + }, + }, + }, + "recent_deploy_job": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Post-installations checks for Agent health.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "agent_id": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Id of the agent.", + }, + "job_id": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Job Id.", + }, + "updated_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The agent deploy job updation time.", + }, + "updated_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Email address of user who ran the agent deploy job.", + }, + "is_redeployed": &schema.Schema{ + Type: schema.TypeBool, + Optional: true, + Computed: true, + Description: "True, when the same version of the agent was redeployed.", + }, + "agent_version": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Agent version.", + }, + "status_code": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Final result of the agent deployment job.", + }, + "status_message": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "The outcome of the agent deployment job, in a formatted log string.", + }, + "log_url": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "URL to the full agent deployment job logs.", + }, + }, + }, + }, + "recent_health_job": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Agent health check.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "agent_id": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Id of the agent.", + }, + "job_id": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Job Id.", + }, + "updated_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The agent health check job updation time.", + }, + "updated_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Email address of user who ran the agent health check job.", + }, + "agent_version": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Agent version.", + }, + "status_code": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Final result of the health-check job.", + }, + "status_message": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "The outcome of the health-check job, in a formatted log string.", + }, + "log_url": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "URL to the full health-check job logs.", + }, + }, + }, + }, + }, + } +} + +func resourceIbmSchematicsAgentCreate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + + createAgentDataOptions := &schematicsv1.CreateAgentDataOptions{ + XFeatureAgents: core.BoolPtr(true), + } + + createAgentDataOptions.SetName(d.Get("name").(string)) + createAgentDataOptions.SetResourceGroup(d.Get("resource_group").(string)) + createAgentDataOptions.SetVersion(d.Get("version").(string)) + createAgentDataOptions.SetSchematicsLocation(d.Get("schematics_location").(string)) + createAgentDataOptions.SetAgentLocation(d.Get("agent_location").(string)) + agentInfrastructureModel, err := resourceIbmSchematicsAgentMapToAgentInfrastructure(d.Get("agent_infrastructure.0").(map[string]interface{})) + if err != nil { + return diag.FromErr(err) + } + createAgentDataOptions.SetAgentInfrastructure(agentInfrastructureModel) + if _, ok := d.GetOk("description"); ok { + createAgentDataOptions.SetDescription(d.Get("description").(string)) + } + if _, ok := d.GetOk("tags"); ok { + createAgentDataOptions.SetTags(d.Get("tags").([]string)) + } + if _, ok := d.GetOk("agent_metadata"); ok { + var agentMetadata []schematicsv1.AgentMetadataInfo + for _, e := range d.Get("agent_metadata").([]interface{}) { + value := e.(map[string]interface{}) + agentMetadataItem, err := resourceIbmSchematicsAgentMapToAgentMetadataInfo(value) + if err != nil { + return diag.FromErr(err) + } + agentMetadata = append(agentMetadata, *agentMetadataItem) + } + createAgentDataOptions.SetAgentMetadata(agentMetadata) + } + if _, ok := d.GetOk("agent_inputs"); ok { + var agentInputs []schematicsv1.VariableData + for _, e := range d.Get("agent_inputs").([]interface{}) { + value := e.(map[string]interface{}) + agentInputsItem, err := resourceIbmSchematicsAgentMapToVariableData(value) + if err != nil { + return diag.FromErr(err) + } + agentInputs = append(agentInputs, *agentInputsItem) + } + createAgentDataOptions.SetAgentInputs(agentInputs) + } + if _, ok := d.GetOk("user_state"); ok { + userStateModel, err := resourceIbmSchematicsAgentMapToAgentUserState(d.Get("user_state.0").(map[string]interface{})) + if err != nil { + return diag.FromErr(err) + } + createAgentDataOptions.SetUserState(userStateModel) + } + if _, ok := d.GetOk("agent_kpi"); ok { + agentKpiModel, err := resourceIbmSchematicsAgentMapToAgentKPIData(d.Get("agent_kpi.0").(map[string]interface{})) + if err != nil { + return diag.FromErr(err) + } + createAgentDataOptions.SetAgentKpi(agentKpiModel) + } + + agentData, response, err := schematicsClient.CreateAgentDataWithContext(context, createAgentDataOptions) + if err != nil { + log.Printf("[DEBUG] CreateAgentDataWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("CreateAgentDataWithContext failed %s\n%s", err, response)) + } + + d.SetId(*agentData.ID) + + return resourceIbmSchematicsAgentRead(context, d, meta) +} + +func resourceIbmSchematicsAgentRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + + getAgentDataOptions := &schematicsv1.GetAgentDataOptions{ + XFeatureAgents: core.BoolPtr(true), + Profile: core.StringPtr("detailed"), + } + + getAgentDataOptions.SetAgentID(d.Id()) + + agentData, response, err := schematicsClient.GetAgentDataWithContext(context, getAgentDataOptions) + if err != nil { + if response != nil && response.StatusCode == 404 { + d.SetId("") + return nil + } + log.Printf("[DEBUG] GetAgentDataWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("GetAgentDataWithContext failed %s\n%s", err, response)) + } + + if err = d.Set("name", agentData.Name); err != nil { + return diag.FromErr(fmt.Errorf("Error setting name: %s", err)) + } + if err = d.Set("resource_group", agentData.ResourceGroup); err != nil { + return diag.FromErr(fmt.Errorf("Error setting resource_group: %s", err)) + } + if err = d.Set("version", agentData.Version); err != nil { + return diag.FromErr(fmt.Errorf("Error setting version: %s", err)) + } + if err = d.Set("schematics_location", agentData.SchematicsLocation); err != nil { + return diag.FromErr(fmt.Errorf("Error setting schematics_location: %s", err)) + } + if err = d.Set("agent_location", agentData.AgentLocation); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_location: %s", err)) + } + agentInfrastructureMap, err := resourceIbmSchematicsAgentAgentInfrastructureToMap(agentData.AgentInfrastructure) + if err != nil { + return diag.FromErr(err) + } + if err = d.Set("agent_infrastructure", []map[string]interface{}{agentInfrastructureMap}); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_infrastructure: %s", err)) + } + if err = d.Set("description", agentData.Description); err != nil { + return diag.FromErr(fmt.Errorf("Error setting description: %s", err)) + } + if agentData.Tags != nil { + if err = d.Set("tags", agentData.Tags); err != nil { + return diag.FromErr(fmt.Errorf("Error setting tags: %s", err)) + } + } + agentMetadata := []map[string]interface{}{} + if agentData.AgentMetadata != nil { + for _, agentMetadataItem := range agentData.AgentMetadata { + agentMetadataItemMap, err := resourceIbmSchematicsAgentAgentMetadataInfoToMap(&agentMetadataItem) + if err != nil { + return diag.FromErr(err) + } + agentMetadata = append(agentMetadata, agentMetadataItemMap) + } + } + if err = d.Set("agent_metadata", agentMetadata); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_metadata: %s", err)) + } + agentInputs := []map[string]interface{}{} + if agentData.AgentInputs != nil { + for _, agentInputsItem := range agentData.AgentInputs { + agentInputsItemMap, err := resourceIbmSchematicsAgentVariableDataToMap(&agentInputsItem) + if err != nil { + return diag.FromErr(err) + } + agentInputs = append(agentInputs, agentInputsItemMap) + } + } + if err = d.Set("agent_inputs", agentInputs); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_inputs: %s", err)) + } + if agentData.UserState != nil { + userStateMap, err := resourceIbmSchematicsAgentAgentUserStateToMap(agentData.UserState) + if err != nil { + return diag.FromErr(err) + } + if err = d.Set("user_state", []map[string]interface{}{userStateMap}); err != nil { + return diag.FromErr(fmt.Errorf("Error setting user_state: %s", err)) + } + } + if agentData.AgentKpi != nil { + agentKpiMap, err := resourceIbmSchematicsAgentAgentKPIDataToMap(agentData.AgentKpi) + if err != nil { + return diag.FromErr(err) + } + if err = d.Set("agent_kpi", []map[string]interface{}{agentKpiMap}); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_kpi: %s", err)) + } + } + if err = d.Set("agent_crn", agentData.AgentCrn); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_crn: %s", err)) + } + if err = d.Set("created_at", flex.DateTimeToString(agentData.CreatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting created_at: %s", err)) + } + if err = d.Set("creation_by", agentData.CreationBy); err != nil { + return diag.FromErr(fmt.Errorf("Error setting creation_by: %s", err)) + } + if err = d.Set("updated_at", flex.DateTimeToString(agentData.UpdatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting updated_at: %s", err)) + } + if err = d.Set("updated_by", agentData.UpdatedBy); err != nil { + return diag.FromErr(fmt.Errorf("Error setting updated_by: %s", err)) + } + if agentData.SystemState != nil { + systemStateMap, err := resourceIbmSchematicsAgentAgentSystemStatusToMap(agentData.SystemState) + if err != nil { + return diag.FromErr(err) + } + if err = d.Set("system_state", []map[string]interface{}{systemStateMap}); err != nil { + return diag.FromErr(fmt.Errorf("Error setting system_state: %s", err)) + } + } + if agentData.RecentPrsJob != nil { + recentPrsJobMap, err := resourceIbmSchematicsAgentAgentDataRecentPrsJobToMap(agentData.RecentPrsJob) + if err != nil { + return diag.FromErr(err) + } + if err = d.Set("recent_prs_job", []map[string]interface{}{recentPrsJobMap}); err != nil { + return diag.FromErr(fmt.Errorf("Error setting recent_prs_job: %s", err)) + } + } + if agentData.RecentDeployJob != nil { + recentDeployJobMap, err := resourceIbmSchematicsAgentAgentDataRecentDeployJobToMap(agentData.RecentDeployJob) + if err != nil { + return diag.FromErr(err) + } + if err = d.Set("recent_deploy_job", []map[string]interface{}{recentDeployJobMap}); err != nil { + return diag.FromErr(fmt.Errorf("Error setting recent_deploy_job: %s", err)) + } + } + if agentData.RecentHealthJob != nil { + recentHealthJobMap, err := resourceIbmSchematicsAgentAgentDataRecentHealthJobToMap(agentData.RecentHealthJob) + if err != nil { + return diag.FromErr(err) + } + if err = d.Set("recent_health_job", []map[string]interface{}{recentHealthJobMap}); err != nil { + return diag.FromErr(fmt.Errorf("Error setting recent_health_job: %s", err)) + } + } + + return nil +} + +func resourceIbmSchematicsAgentUpdate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + + updateAgentDataOptions := &schematicsv1.UpdateAgentDataOptions{ + XFeatureAgents: core.BoolPtr(true), + } + + updateAgentDataOptions.SetAgentID(d.Id()) + + hasChange := false + + if d.HasChange("name") || d.HasChange("resource_group") || d.HasChange("version") || d.HasChange("schematics_location") || d.HasChange("agent_location") || d.HasChange("agent_infrastructure") { + updateAgentDataOptions.SetName(d.Get("name").(string)) + updateAgentDataOptions.SetResourceGroup(d.Get("resource_group").(string)) + updateAgentDataOptions.SetVersion(d.Get("version").(string)) + updateAgentDataOptions.SetSchematicsLocation(d.Get("schematics_location").(string)) + updateAgentDataOptions.SetAgentLocation(d.Get("agent_location").(string)) + agentInfrastructure, err := resourceIbmSchematicsAgentMapToAgentInfrastructure(d.Get("agent_infrastructure.0").(map[string]interface{})) + if err != nil { + return diag.FromErr(err) + } + updateAgentDataOptions.SetAgentInfrastructure(agentInfrastructure) + hasChange = true + } + if d.HasChange("description") { + updateAgentDataOptions.SetDescription(d.Get("description").(string)) + hasChange = true + } + if d.HasChange("tags") { + updateAgentDataOptions.SetTags(d.Get("tags").([]string)) + hasChange = true + } + if d.HasChange("agent_metadata") { + var agentMetadata []schematicsv1.AgentMetadataInfo + for _, e := range d.Get("agent_metadata").([]interface{}) { + value := e.(map[string]interface{}) + agentMetadataItem, err := resourceIbmSchematicsAgentMapToAgentMetadataInfo(value) + if err != nil { + return diag.FromErr(err) + } + agentMetadata = append(agentMetadata, *agentMetadataItem) + } + updateAgentDataOptions.SetAgentMetadata(agentMetadata) + hasChange = true + } + if d.HasChange("agent_inputs") { + // TODO: handle AgentInputs of type TypeList -- not primitive, not model + var agentInputs []schematicsv1.VariableData + for _, e := range d.Get("agent_inputs").([]interface{}) { + value := e.(map[string]interface{}) + agentInputsItem, err := resourceIbmSchematicsAgentMapToVariableData(value) + if err != nil { + return diag.FromErr(err) + } + agentInputs = append(agentInputs, *agentInputsItem) + } + updateAgentDataOptions.SetAgentInputs(agentInputs) + hasChange = true + } + if d.HasChange("user_state") { + userState, err := resourceIbmSchematicsAgentMapToAgentUserState(d.Get("user_state.0").(map[string]interface{})) + if err != nil { + return diag.FromErr(err) + } + updateAgentDataOptions.SetUserState(userState) + hasChange = true + } + if d.HasChange("agent_kpi") { + agentKpi, err := resourceIbmSchematicsAgentMapToAgentKPIData(d.Get("agent_kpi.0").(map[string]interface{})) + if err != nil { + return diag.FromErr(err) + } + updateAgentDataOptions.SetAgentKpi(agentKpi) + hasChange = true + } + + if hasChange { + _, response, err := schematicsClient.UpdateAgentDataWithContext(context, updateAgentDataOptions) + if err != nil { + log.Printf("[DEBUG] UpdateAgentDataWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("UpdateAgentDataWithContext failed %s\n%s", err, response)) + } + } + + return resourceIbmSchematicsAgentRead(context, d, meta) +} + +func resourceIbmSchematicsAgentDelete(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + + deleteAgentDataOptions := &schematicsv1.DeleteAgentDataOptions{ + XFeatureAgents: core.BoolPtr(true), + } + + deleteAgentDataOptions.SetAgentID(d.Id()) + + response, err := schematicsClient.DeleteAgentDataWithContext(context, deleteAgentDataOptions) + if err != nil { + log.Printf("[DEBUG] DeleteAgentDataWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("DeleteAgentDataWithContext failed %s\n%s", err, response)) + } + + d.SetId("") + + return nil +} + +func resourceIbmSchematicsAgentMapToAgentInfrastructure(modelMap map[string]interface{}) (*schematicsv1.AgentInfrastructure, error) { + model := &schematicsv1.AgentInfrastructure{} + if modelMap["infra_type"] != nil && modelMap["infra_type"].(string) != "" { + model.InfraType = core.StringPtr(modelMap["infra_type"].(string)) + } + if modelMap["cluster_id"] != nil && modelMap["cluster_id"].(string) != "" { + model.ClusterID = core.StringPtr(modelMap["cluster_id"].(string)) + } + if modelMap["cluster_resource_group"] != nil && modelMap["cluster_resource_group"].(string) != "" { + model.ClusterResourceGroup = core.StringPtr(modelMap["cluster_resource_group"].(string)) + } + if modelMap["cos_instance_name"] != nil && modelMap["cos_instance_name"].(string) != "" { + model.CosInstanceName = core.StringPtr(modelMap["cos_instance_name"].(string)) + } + if modelMap["cos_bucket_name"] != nil && modelMap["cos_bucket_name"].(string) != "" { + model.CosBucketName = core.StringPtr(modelMap["cos_bucket_name"].(string)) + } + if modelMap["cos_bucket_region"] != nil && modelMap["cos_bucket_region"].(string) != "" { + model.CosBucketRegion = core.StringPtr(modelMap["cos_bucket_region"].(string)) + } + return model, nil +} + +func resourceIbmSchematicsAgentMapToAgentMetadataInfo(modelMap map[string]interface{}) (*schematicsv1.AgentMetadataInfo, error) { + model := &schematicsv1.AgentMetadataInfo{} + if modelMap["name"] != nil && modelMap["name"].(string) != "" { + model.Name = core.StringPtr(modelMap["name"].(string)) + } + if modelMap["value"] != nil { + value := []string{} + for _, valueItem := range modelMap["value"].([]interface{}) { + value = append(value, valueItem.(string)) + } + model.Value = value + } + return model, nil +} + +func resourceIbmSchematicsAgentMapToVariableData(modelMap map[string]interface{}) (*schematicsv1.VariableData, error) { + model := &schematicsv1.VariableData{} + if modelMap["name"] != nil && modelMap["name"].(string) != "" { + model.Name = core.StringPtr(modelMap["name"].(string)) + } + if modelMap["value"] != nil && modelMap["value"].(string) != "" { + model.Value = core.StringPtr(modelMap["value"].(string)) + } + if modelMap["use_default"] != nil { + model.UseDefault = core.BoolPtr(modelMap["use_default"].(bool)) + } + if modelMap["metadata"] != nil && len(modelMap["metadata"].([]interface{})) > 0 { + MetadataModel, err := resourceIbmSchematicsAgentMapToVariableMetadata(modelMap["metadata"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.Metadata = MetadataModel + } + if modelMap["link"] != nil && modelMap["link"].(string) != "" { + model.Link = core.StringPtr(modelMap["link"].(string)) + } + return model, nil +} + +func resourceIbmSchematicsAgentMapToVariableMetadata(modelMap map[string]interface{}) (*schematicsv1.VariableMetadata, error) { + model := &schematicsv1.VariableMetadata{} + if modelMap["type"] != nil && modelMap["type"].(string) != "" { + model.Type = core.StringPtr(modelMap["type"].(string)) + } + if modelMap["aliases"] != nil { + aliases := []string{} + for _, aliasesItem := range modelMap["aliases"].([]interface{}) { + aliases = append(aliases, aliasesItem.(string)) + } + model.Aliases = aliases + } + if modelMap["description"] != nil && modelMap["description"].(string) != "" { + model.Description = core.StringPtr(modelMap["description"].(string)) + } + if modelMap["cloud_data_type"] != nil && modelMap["cloud_data_type"].(string) != "" { + model.CloudDataType = core.StringPtr(modelMap["cloud_data_type"].(string)) + } + if modelMap["default_value"] != nil && modelMap["default_value"].(string) != "" { + model.DefaultValue = core.StringPtr(modelMap["default_value"].(string)) + } + if modelMap["link_status"] != nil && modelMap["link_status"].(string) != "" { + model.LinkStatus = core.StringPtr(modelMap["link_status"].(string)) + } + if modelMap["secure"] != nil { + model.Secure = core.BoolPtr(modelMap["secure"].(bool)) + } + if modelMap["immutable"] != nil { + model.Immutable = core.BoolPtr(modelMap["immutable"].(bool)) + } + if modelMap["hidden"] != nil { + model.Hidden = core.BoolPtr(modelMap["hidden"].(bool)) + } + if modelMap["required"] != nil { + model.Required = core.BoolPtr(modelMap["required"].(bool)) + } + if modelMap["options"] != nil { + options := []string{} + for _, optionsItem := range modelMap["options"].([]interface{}) { + options = append(options, optionsItem.(string)) + } + model.Options = options + } + if modelMap["min_value"] != nil { + model.MinValue = core.Int64Ptr(int64(modelMap["min_value"].(int))) + } + if modelMap["max_value"] != nil { + model.MaxValue = core.Int64Ptr(int64(modelMap["max_value"].(int))) + } + if modelMap["min_length"] != nil { + model.MinLength = core.Int64Ptr(int64(modelMap["min_length"].(int))) + } + if modelMap["max_length"] != nil { + model.MaxLength = core.Int64Ptr(int64(modelMap["max_length"].(int))) + } + if modelMap["matches"] != nil && modelMap["matches"].(string) != "" { + model.Matches = core.StringPtr(modelMap["matches"].(string)) + } + if modelMap["position"] != nil { + model.Position = core.Int64Ptr(int64(modelMap["position"].(int))) + } + if modelMap["group_by"] != nil && modelMap["group_by"].(string) != "" { + model.GroupBy = core.StringPtr(modelMap["group_by"].(string)) + } + if modelMap["source"] != nil && modelMap["source"].(string) != "" { + model.Source = core.StringPtr(modelMap["source"].(string)) + } + return model, nil +} + +func resourceIbmSchematicsAgentMapToAgentUserState(modelMap map[string]interface{}) (*schematicsv1.AgentUserState, error) { + model := &schematicsv1.AgentUserState{} + if modelMap["state"] != nil && modelMap["state"].(string) != "" { + model.State = core.StringPtr(modelMap["state"].(string)) + } + if modelMap["set_by"] != nil && modelMap["set_by"].(string) != "" { + model.SetBy = core.StringPtr(modelMap["set_by"].(string)) + } + if modelMap["set_at"] != nil { + + } + return model, nil +} + +func resourceIbmSchematicsAgentMapToAgentKPIData(modelMap map[string]interface{}) (*schematicsv1.AgentKPIData, error) { + model := &schematicsv1.AgentKPIData{} + if modelMap["availability_indicator"] != nil && modelMap["availability_indicator"].(string) != "" { + model.AvailabilityIndicator = core.StringPtr(modelMap["availability_indicator"].(string)) + } + if modelMap["lifecycle_indicator"] != nil && modelMap["lifecycle_indicator"].(string) != "" { + model.LifecycleIndicator = core.StringPtr(modelMap["lifecycle_indicator"].(string)) + } + if modelMap["percent_usage_indicator"] != nil && modelMap["percent_usage_indicator"].(string) != "" { + model.PercentUsageIndicator = core.StringPtr(modelMap["percent_usage_indicator"].(string)) + } + if modelMap["application_indicators"] != nil { + applicationIndicators := []interface{}{} + for _, applicationIndicatorsItem := range modelMap["application_indicators"].([]interface{}) { + applicationIndicators = append(applicationIndicators, applicationIndicatorsItem) + } + model.ApplicationIndicators = applicationIndicators + } + if modelMap["infra_indicators"] != nil { + infraIndicators := []interface{}{} + for _, infraIndicatorsItem := range modelMap["infra_indicators"].([]interface{}) { + infraIndicators = append(infraIndicators, infraIndicatorsItem) + } + model.InfraIndicators = infraIndicators + } + return model, nil +} + +func resourceIbmSchematicsAgentAgentInfrastructureToMap(model *schematicsv1.AgentInfrastructure) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.InfraType != nil { + modelMap["infra_type"] = model.InfraType + } + if model.ClusterID != nil { + modelMap["cluster_id"] = model.ClusterID + } + if model.ClusterResourceGroup != nil { + modelMap["cluster_resource_group"] = model.ClusterResourceGroup + } + if model.CosInstanceName != nil { + modelMap["cos_instance_name"] = model.CosInstanceName + } + if model.CosBucketName != nil { + modelMap["cos_bucket_name"] = model.CosBucketName + } + if model.CosBucketRegion != nil { + modelMap["cos_bucket_region"] = model.CosBucketRegion + } + return modelMap, nil +} + +func resourceIbmSchematicsAgentAgentMetadataInfoToMap(model *schematicsv1.AgentMetadataInfo) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Name != nil { + modelMap["name"] = model.Name + } + if model.Value != nil { + modelMap["value"] = model.Value + } + return modelMap, nil +} + +func resourceIbmSchematicsAgentVariableDataToMap(model *schematicsv1.VariableData) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Name != nil { + modelMap["name"] = model.Name + } + if model.Value != nil { + modelMap["value"] = model.Value + } + if model.UseDefault != nil { + modelMap["use_default"] = model.UseDefault + } + if model.Metadata != nil { + metadataMap, err := resourceIbmSchematicsAgentVariableMetadataToMap(model.Metadata) + if err != nil { + return modelMap, err + } + modelMap["metadata"] = []map[string]interface{}{metadataMap} + } + if model.Link != nil { + modelMap["link"] = model.Link + } + return modelMap, nil +} + +func resourceIbmSchematicsAgentVariableMetadataToMap(model *schematicsv1.VariableMetadata) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Type != nil { + modelMap["type"] = model.Type + } + if model.Aliases != nil { + modelMap["aliases"] = model.Aliases + } + if model.Description != nil { + modelMap["description"] = model.Description + } + if model.CloudDataType != nil { + modelMap["cloud_data_type"] = model.CloudDataType + } + if model.DefaultValue != nil { + modelMap["default_value"] = model.DefaultValue + } + if model.LinkStatus != nil { + modelMap["link_status"] = model.LinkStatus + } + if model.Secure != nil { + modelMap["secure"] = model.Secure + } + if model.Immutable != nil { + modelMap["immutable"] = model.Immutable + } + if model.Hidden != nil { + modelMap["hidden"] = model.Hidden + } + if model.Required != nil { + modelMap["required"] = model.Required + } + if model.Options != nil { + modelMap["options"] = model.Options + } + if model.MinValue != nil { + modelMap["min_value"] = flex.IntValue(model.MinValue) + } + if model.MaxValue != nil { + modelMap["max_value"] = flex.IntValue(model.MaxValue) + } + if model.MinLength != nil { + modelMap["min_length"] = flex.IntValue(model.MinLength) + } + if model.MaxLength != nil { + modelMap["max_length"] = flex.IntValue(model.MaxLength) + } + if model.Matches != nil { + modelMap["matches"] = model.Matches + } + if model.Position != nil { + modelMap["position"] = flex.IntValue(model.Position) + } + if model.GroupBy != nil { + modelMap["group_by"] = model.GroupBy + } + if model.Source != nil { + modelMap["source"] = model.Source + } + return modelMap, nil +} + +func resourceIbmSchematicsAgentAgentUserStateToMap(model *schematicsv1.AgentUserState) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.State != nil { + modelMap["state"] = model.State + } + if model.SetBy != nil { + modelMap["set_by"] = model.SetBy + } + if model.SetAt != nil { + modelMap["set_at"] = model.SetAt.String() + } + return modelMap, nil +} + +func resourceIbmSchematicsAgentAgentKPIDataToMap(model *schematicsv1.AgentKPIData) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.AvailabilityIndicator != nil { + modelMap["availability_indicator"] = model.AvailabilityIndicator + } + if model.LifecycleIndicator != nil { + modelMap["lifecycle_indicator"] = model.LifecycleIndicator + } + if model.PercentUsageIndicator != nil { + modelMap["percent_usage_indicator"] = model.PercentUsageIndicator + } + if model.ApplicationIndicators != nil { + applicationIndicators := []map[string]interface{}{} + for _, applicationIndicatorsItem := range model.ApplicationIndicators { + applicationIndicators = append(applicationIndicators, applicationIndicatorsItem.(map[string]interface{})) + } + modelMap["application_indicators"] = applicationIndicators + } + if model.InfraIndicators != nil { + infraIndicators := []map[string]interface{}{} + for _, infraIndicatorsItem := range model.InfraIndicators { + infraIndicators = append(infraIndicators, infraIndicatorsItem.(map[string]interface{})) + } + modelMap["infra_indicators"] = infraIndicators + } + return modelMap, nil +} + +func resourceIbmSchematicsAgentAgentSystemStatusToMap(model *schematicsv1.AgentSystemStatus) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.StatusCode != nil { + modelMap["status_code"] = model.StatusCode + } + if model.StatusMessage != nil { + modelMap["status_message"] = model.StatusMessage + } + return modelMap, nil +} + +func resourceIbmSchematicsAgentAgentDataRecentPrsJobToMap(model *schematicsv1.AgentDataRecentPrsJob) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.AgentID != nil { + modelMap["agent_id"] = model.AgentID + } + if model.JobID != nil { + modelMap["job_id"] = model.JobID + } + if model.UpdatedAt != nil { + modelMap["updated_at"] = model.UpdatedAt.String() + } + if model.UpdatedBy != nil { + modelMap["updated_by"] = model.UpdatedBy + } + if model.AgentVersion != nil { + modelMap["agent_version"] = model.AgentVersion + } + if model.StatusCode != nil { + modelMap["status_code"] = model.StatusCode + } + if model.StatusMessage != nil { + modelMap["status_message"] = model.StatusMessage + } + if model.LogURL != nil { + modelMap["log_url"] = model.LogURL + } + return modelMap, nil +} + +func resourceIbmSchematicsAgentAgentDataRecentDeployJobToMap(model *schematicsv1.AgentDataRecentDeployJob) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.AgentID != nil { + modelMap["agent_id"] = model.AgentID + } + if model.JobID != nil { + modelMap["job_id"] = model.JobID + } + if model.UpdatedAt != nil { + modelMap["updated_at"] = model.UpdatedAt.String() + } + if model.UpdatedBy != nil { + modelMap["updated_by"] = model.UpdatedBy + } + if model.IsRedeployed != nil { + modelMap["is_redeployed"] = model.IsRedeployed + } + if model.AgentVersion != nil { + modelMap["agent_version"] = model.AgentVersion + } + if model.StatusCode != nil { + modelMap["status_code"] = model.StatusCode + } + if model.StatusMessage != nil { + modelMap["status_message"] = model.StatusMessage + } + if model.LogURL != nil { + modelMap["log_url"] = model.LogURL + } + return modelMap, nil +} + +func resourceIbmSchematicsAgentAgentDataRecentHealthJobToMap(model *schematicsv1.AgentDataRecentHealthJob) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.AgentID != nil { + modelMap["agent_id"] = model.AgentID + } + if model.JobID != nil { + modelMap["job_id"] = model.JobID + } + if model.UpdatedAt != nil { + modelMap["updated_at"] = model.UpdatedAt.String() + } + if model.UpdatedBy != nil { + modelMap["updated_by"] = model.UpdatedBy + } + if model.AgentVersion != nil { + modelMap["agent_version"] = model.AgentVersion + } + if model.StatusCode != nil { + modelMap["status_code"] = model.StatusCode + } + if model.StatusMessage != nil { + modelMap["status_message"] = model.StatusMessage + } + if model.LogURL != nil { + modelMap["log_url"] = model.LogURL + } + return modelMap, nil +} diff --git a/ibm/service/schematics/resource_ibm_schematics_agent_deploy.go b/ibm/service/schematics/resource_ibm_schematics_agent_deploy.go new file mode 100644 index 0000000000..ec9564c686 --- /dev/null +++ b/ibm/service/schematics/resource_ibm_schematics_agent_deploy.go @@ -0,0 +1,286 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics + +import ( + "context" + "fmt" + "log" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/go-sdk-core/v3/core" + "github.com/IBM/schematics-go-sdk/schematicsv1" +) + +func ResourceIbmSchematicsAgentDeploy() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceIbmSchematicsAgentDeployCreate, + ReadContext: resourceIbmSchematicsAgentDeployRead, + UpdateContext: resourceIbmSchematicsAgentDeployUpdate, + DeleteContext: resourceIbmSchematicsAgentDeployDelete, + Importer: &schema.ResourceImporter{}, + Timeouts: &schema.ResourceTimeout{ + Create: schema.DefaultTimeout(10 * time.Minute), + Update: schema.DefaultTimeout(10 * time.Minute), + Delete: schema.DefaultTimeout(10 * time.Minute), + }, + + Schema: map[string]*schema.Schema{ + "agent_id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "Agent ID to get the details of agent.", + }, + "force": &schema.Schema{ + Type: schema.TypeBool, + Optional: true, + Description: "Equivalent to -force options in the command line, default is false.", + }, + "job_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Job Id.", + }, + "updated_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The agent deploy job updation time.", + }, + "updated_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Email address of user who ran the agent deploy job.", + }, + "is_redeployed": &schema.Schema{ + Type: schema.TypeBool, + Computed: true, + Description: "True, when the same version of the agent was redeployed.", + }, + "agent_version": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Agent version.", + }, + "status_code": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Final result of the agent deployment job.", + }, + "status_message": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The outcome of the agent deployment job, in a formatted log string.", + }, + "log_url": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "URL to the full agent deployment job logs.", + }, + }, + } +} + +func resourceIbmSchematicsAgentDeployCreate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + session, err := meta.(conns.ClientSession).BluemixSession() + if err != nil { + return diag.FromErr(err) + } + iamAccessToken := session.Config.IAMAccessToken + iamRefreshToken := session.Config.IAMRefreshToken + + deployAgentJobOptions := &schematicsv1.DeployAgentJobOptions{} + ff := map[string]string{ + "X-Feature-Agents": "true", + "Authorization": iamAccessToken, + "refresh_token": iamRefreshToken, + } + deployAgentJobOptions.Headers = ff + deployAgentJobOptions.SetAgentID(d.Get("agent_id").(string)) + if _, ok := d.GetOk("force"); ok { + deployAgentJobOptions.SetForce(d.Get("force").(bool)) + } + + agentDeployJob, response, err := schematicsClient.DeployAgentJobWithContext(context, deployAgentJobOptions) + if err != nil { + log.Printf("[DEBUG] DeployAgentJobWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("DeployAgentJobWithContext failed %s\n%s", err, response)) + } + + d.SetId(fmt.Sprintf("%s/%s", *deployAgentJobOptions.AgentID, *agentDeployJob.JobID)) + log.Printf("[INFO] Agent : %s", *deployAgentJobOptions.AgentID) + d.Set("status_message", *agentDeployJob.StatusMessage) + + _, err = isWaitForAgentAvailable(context, schematicsClient, *deployAgentJobOptions.AgentID, d.Timeout(schema.TimeoutCreate)) + if err != nil { + return diag.FromErr(fmt.Errorf("Waiting for agent to be available failed %s", err)) + } + + return resourceIbmSchematicsAgentDeployRead(context, d, meta) +} + +const ( + agentProvisioningTriggered = "Triggered deployment" + agentProvisioningDone = "success" + agentProvisioningPending = "PENDING" + agentProvisioninFailed = "Job Failed" +) + +func isWaitForAgentAvailable(context context.Context, schematicsClient *schematicsv1.SchematicsV1, id string, timeout time.Duration) (interface{}, error) { + log.Printf("Waiting for agent (%s) to be available.", id) + stateConf := &resource.StateChangeConf{ + Pending: []string{"retry", agentProvisioningPending, agentProvisioningTriggered}, + Target: []string{agentProvisioningDone, agentProvisioninFailed, ""}, + Refresh: agentRefreshFunc(schematicsClient, id), + Timeout: timeout, + Delay: 10 * time.Second, + MinTimeout: 10 * time.Second, + } + return stateConf.WaitForStateContext(context) +} +func agentRefreshFunc(schematicsClient *schematicsv1.SchematicsV1, id string) resource.StateRefreshFunc { + return func() (interface{}, string, error) { + getAgentDataOptions := &schematicsv1.GetAgentDataOptions{ + AgentID: core.StringPtr(id), + XFeatureAgents: core.BoolPtr(true), + Profile: core.StringPtr("detailed"), + } + + agent, response, err := schematicsClient.GetAgentData(getAgentDataOptions) + if err != nil { + return nil, "", fmt.Errorf("[ERROR] Error Getting Agent: %s\n%s", err, response) + } + if *agent.RecentDeployJob.StatusMessage == agentProvisioninFailed || *agent.RecentDeployJob.StatusMessage == agentProvisioningDone { + return agent, agentProvisioningDone, nil + } + return agent, agentProvisioningPending, nil + } +} + +func resourceIbmSchematicsAgentDeployRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + + parts, err := flex.SepIdParts(d.Id(), "/") + if err != nil { + return diag.FromErr(err) + } + + getAgentDataOptions := &schematicsv1.GetAgentDataOptions{ + XFeatureAgents: core.BoolPtr(true), + Profile: core.StringPtr("detailed"), + } + + getAgentDataOptions.SetAgentID(parts[0]) + agentData, response, err := schematicsClient.GetAgentDataWithContext(context, getAgentDataOptions) + if err != nil { + if response != nil && response.StatusCode == 404 { + d.SetId("") + return nil + } + log.Printf("[DEBUG] GetAgentDataWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("GetAgentDataWithContext failed %s\n%s", err, response)) + } + if agentData.RecentDeployJob != nil { + + if err = d.Set("agent_id", parts[0]); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_id: %s", err)) + } + if err = d.Set("job_id", agentData.RecentDeployJob.JobID); err != nil { + return diag.FromErr(fmt.Errorf("Error setting job_id: %s", err)) + } + if err = d.Set("updated_at", flex.DateTimeToString(agentData.RecentDeployJob.UpdatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting updated_at: %s", err)) + } + if err = d.Set("updated_by", agentData.RecentDeployJob.UpdatedBy); err != nil { + return diag.FromErr(fmt.Errorf("Error setting updated_by: %s", err)) + } + if err = d.Set("agent_version", agentData.Version); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_version: %s", err)) + } + if err = d.Set("status_code", agentData.RecentDeployJob.StatusCode); err != nil { + return diag.FromErr(fmt.Errorf("Error setting status_code: %s", err)) + } + if err = d.Set("status_message", agentData.RecentDeployJob.StatusMessage); err != nil { + return diag.FromErr(fmt.Errorf("Error setting status_message: %s", err)) + } + if err = d.Set("log_url", agentData.RecentDeployJob.LogURL); err != nil { + return diag.FromErr(fmt.Errorf("Error setting log_url: %s", err)) + } + + } + return nil +} + +func resourceIbmSchematicsAgentDeployUpdate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + session, err := meta.(conns.ClientSession).BluemixSession() + if err != nil { + return diag.FromErr(err) + } + iamAccessToken := session.Config.IAMAccessToken + iamRefreshToken := session.Config.IAMRefreshToken + deployAgentJobOptions := &schematicsv1.DeployAgentJobOptions{} + ff := map[string]string{ + "X-Feature-Agents": "true", + "Authorization": iamAccessToken, + "refresh_token": iamRefreshToken, + } + deployAgentJobOptions.Headers = ff + + parts, err := flex.SepIdParts(d.Id(), "/") + if err != nil { + return diag.FromErr(err) + } + + deployAgentJobOptions.SetAgentID(parts[0]) + + hasChange := false + + if d.HasChange("agent_id") { + return diag.FromErr(fmt.Errorf("Cannot update resource property \"%s\" with the ForceNew annotation."+ + " The resource must be re-created to update this property.", "agent_id")) + } + if d.HasChange("force") { + deployAgentJobOptions.SetForce(d.Get("force").(bool)) + hasChange = true + } + + if hasChange { + agentDeployJob, response, err := schematicsClient.DeployAgentJobWithContext(context, deployAgentJobOptions) + if err != nil { + log.Printf("[DEBUG] DeployAgentJobWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("DeployAgentJobWithContext failed %s\n%s", err, response)) + } + d.SetId(fmt.Sprintf("%s/%s", *deployAgentJobOptions.AgentID, *agentDeployJob.JobID)) + d.Set("status_message", *agentDeployJob.StatusMessage) + + _, err = isWaitForAgentAvailable(context, schematicsClient, parts[0], d.Timeout(schema.TimeoutUpdate)) + if err != nil { + return diag.FromErr(fmt.Errorf("Waiting for agent to be available failed %s", err)) + } + } + + return resourceIbmSchematicsAgentDeployRead(context, d, meta) +} + +func resourceIbmSchematicsAgentDeployDelete(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + d.SetId("") + return nil +} diff --git a/ibm/service/schematics/resource_ibm_schematics_agent_deploy_test.go b/ibm/service/schematics/resource_ibm_schematics_agent_deploy_test.go new file mode 100644 index 0000000000..bd73dc2fcf --- /dev/null +++ b/ibm/service/schematics/resource_ibm_schematics_agent_deploy_test.go @@ -0,0 +1,163 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/go-sdk-core/v5/core" + "github.com/IBM/schematics-go-sdk/schematicsv1" +) + +func TestAccIbmSchematicsAgentDeployBasic(t *testing.T) { + var conf *schematicsv1.AgentDataRecentDeployJob + agentID := fmt.Sprintf("tf_agent_id_%d", acctest.RandIntRange(10, 100)) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIbmSchematicsAgentDeployDestroy, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentDeployConfigBasic(agentID), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIbmSchematicsAgentDeployExists("ibm_schematics_agent_deploy.schematics_agent_deploy_instance", conf), + resource.TestCheckResourceAttr("ibm_schematics_agent_deploy.schematics_agent_deploy_instance", "agent_id", agentID), + ), + }, + }, + }) +} + +func TestAccIbmSchematicsAgentDeployAllArgs(t *testing.T) { + var conf *schematicsv1.AgentDataRecentDeployJob + agentID := fmt.Sprintf("tf_agent_id_%d", acctest.RandIntRange(10, 100)) + force := "false" + forceUpdate := "true" + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIbmSchematicsAgentDeployDestroy, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentDeployConfig(agentID, force), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIbmSchematicsAgentDeployExists("ibm_schematics_agent_deploy.schematics_agent_deploy_instance", conf), + resource.TestCheckResourceAttr("ibm_schematics_agent_deploy.schematics_agent_deploy_instance", "agent_id", agentID), + resource.TestCheckResourceAttr("ibm_schematics_agent_deploy.schematics_agent_deploy_instance", "force", force), + ), + }, + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentDeployConfig(agentID, forceUpdate), + Check: resource.ComposeAggregateTestCheckFunc( + resource.TestCheckResourceAttr("ibm_schematics_agent_deploy.schematics_agent_deploy_instance", "agent_id", agentID), + resource.TestCheckResourceAttr("ibm_schematics_agent_deploy.schematics_agent_deploy_instance", "force", forceUpdate), + ), + }, + resource.TestStep{ + ResourceName: "ibm_schematics_agent_deploy.schematics_agent_deploy_instance", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} + +func testAccCheckIbmSchematicsAgentDeployConfigBasic(agentID string) string { + return fmt.Sprintf(` + + resource "ibm_schematics_agent_deploy" "schematics_agent_deploy_instance" { + agent_id = "%s" + } + `, agentID) +} + +func testAccCheckIbmSchematicsAgentDeployConfig(agentID string, force string) string { + return fmt.Sprintf(` + + resource "ibm_schematics_agent_deploy" "schematics_agent_deploy_instance" { + agent_id = "%s" + force = %s + } + `, agentID, force) +} + +func testAccCheckIbmSchematicsAgentDeployExists(n string, obj *schematicsv1.AgentDataRecentDeployJob) resource.TestCheckFunc { + + return func(s *terraform.State) error { + rs, ok := s.RootModule().Resources[n] + if !ok { + return fmt.Errorf("Not found: %s", n) + } + + schematicsClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).SchematicsV1() + if err != nil { + return err + } + + getAgentDataOptions := &schematicsv1.GetAgentDataOptions{ + XFeatureAgents: core.BoolPtr(true), + Profile: core.StringPtr("detailed"), + } + + parts, err := flex.SepIdParts(rs.Primary.ID, "/") + if err != nil { + return err + } + + getAgentDataOptions.SetAgentID(parts[0]) + + agentData, _, err := schematicsClient.GetAgentData(getAgentDataOptions) + if err != nil { + return err + } + + obj = agentData.RecentDeployJob + return nil + } +} + +func testAccCheckIbmSchematicsAgentDeployDestroy(s *terraform.State) error { + schematicsClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).SchematicsV1() + if err != nil { + return err + } + for _, rs := range s.RootModule().Resources { + if rs.Type != "ibm_schematics_agent_deploy" { + continue + } + + getAgentDataOptions := &schematicsv1.GetAgentDataOptions{ + XFeatureAgents: core.BoolPtr(true), + Profile: core.StringPtr("detailed"), + } + + parts, err := flex.SepIdParts(rs.Primary.ID, "/") + if err != nil { + return err + } + + getAgentDataOptions.SetAgentID(parts[0]) + + agent, response, err := schematicsClient.GetAgentData(getAgentDataOptions) + + if err == nil && agent.RecentDeployJob != nil { + // Agent Deploy Job can never really truely be deleted + return nil + } else if response.StatusCode != 404 { + return fmt.Errorf("Error checking for schematics_agent (%s) has been destroyed: %s", parts[0], err) + } + } + + return nil +} diff --git a/ibm/service/schematics/resource_ibm_schematics_agent_health.go b/ibm/service/schematics/resource_ibm_schematics_agent_health.go new file mode 100644 index 0000000000..01f9e5c34b --- /dev/null +++ b/ibm/service/schematics/resource_ibm_schematics_agent_health.go @@ -0,0 +1,228 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics + +import ( + "context" + "fmt" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/go-sdk-core/v5/core" + "github.com/IBM/schematics-go-sdk/schematicsv1" +) + +func ResourceIbmSchematicsAgentHealth() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceIbmSchematicsAgentHealthCreate, + ReadContext: resourceIbmSchematicsAgentHealthRead, + UpdateContext: resourceIbmSchematicsAgentHealthUpdate, + DeleteContext: resourceIbmSchematicsAgentHealthDelete, + Importer: &schema.ResourceImporter{}, + + Schema: map[string]*schema.Schema{ + "agent_id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "Agent ID to get the details of agent.", + }, + "force": &schema.Schema{ + Type: schema.TypeBool, + Optional: true, + Description: "Equivalent to -force options in the command line, default is false.", + }, + "job_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Job Id.", + }, + "updated_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The agent health check job updation time.", + }, + "updated_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Email address of user who ran the agent health check job.", + }, + "agent_version": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Agent version.", + }, + "status_code": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Final result of the health-check job.", + }, + "status_message": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The outcome of the health-check job, in a formatted log string.", + }, + "log_url": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "URL to the full health-check job logs.", + }, + }, + } +} + +func resourceIbmSchematicsAgentHealthCreate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + session, err := meta.(conns.ClientSession).BluemixSession() + if err != nil { + return diag.FromErr(err) + } + iamAccessToken := session.Config.IAMAccessToken + iamRefreshToken := session.Config.IAMRefreshToken + + healthCheckAgentJobOptions := &schematicsv1.HealthCheckAgentJobOptions{} + ff := map[string]string{ + "X-Feature-Agents": "true", + "Authorization": iamAccessToken, + "refresh_token": iamRefreshToken, + } + healthCheckAgentJobOptions.Headers = ff + + healthCheckAgentJobOptions.SetAgentID(d.Get("agent_id").(string)) + if _, ok := d.GetOk("force"); ok { + healthCheckAgentJobOptions.SetForce(d.Get("force").(bool)) + } + + agentHealthJob, response, err := schematicsClient.HealthCheckAgentJobWithContext(context, healthCheckAgentJobOptions) + if err != nil { + log.Printf("[DEBUG] HealthCheckAgentJobWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("HealthCheckAgentJobWithContext failed %s\n%s", err, response)) + } + + d.SetId(fmt.Sprintf("%s/%s", *healthCheckAgentJobOptions.AgentID, *agentHealthJob.JobID)) + + return resourceIbmSchematicsAgentHealthRead(context, d, meta) +} + +func resourceIbmSchematicsAgentHealthRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + + parts, err := flex.SepIdParts(d.Id(), "/") + if err != nil { + return diag.FromErr(err) + } + + getAgentDataOptions := &schematicsv1.GetAgentDataOptions{ + XFeatureAgents: core.BoolPtr(true), + Profile: core.StringPtr("detailed"), + } + + getAgentDataOptions.SetAgentID(parts[0]) + + agentData, response, err := schematicsClient.GetAgentDataWithContext(context, getAgentDataOptions) + if err != nil { + if response != nil && response.StatusCode == 404 { + d.SetId("") + return nil + } + log.Printf("[DEBUG] GetAgentDataWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("GetAgentDataWithContext failed %s\n%s", err, response)) + } + + if agentData.RecentHealthJob != nil { + + if err = d.Set("agent_id", parts[0]); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_id: %s", err)) + } + if err = d.Set("job_id", agentData.RecentHealthJob.JobID); err != nil { + return diag.FromErr(fmt.Errorf("Error setting job_id: %s", err)) + } + if err = d.Set("updated_at", flex.DateTimeToString(agentData.RecentHealthJob.UpdatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting updated_at: %s", err)) + } + if err = d.Set("updated_by", agentData.RecentHealthJob.UpdatedBy); err != nil { + return diag.FromErr(fmt.Errorf("Error setting updated_by: %s", err)) + } + if err = d.Set("agent_version", agentData.Version); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_version: %s", err)) + } + if err = d.Set("status_code", agentData.RecentHealthJob.StatusCode); err != nil { + return diag.FromErr(fmt.Errorf("Error setting status_code: %s", err)) + } + if err = d.Set("status_message", agentData.RecentHealthJob.StatusMessage); err != nil { + return diag.FromErr(fmt.Errorf("Error setting status_message: %s", err)) + } + if err = d.Set("log_url", agentData.RecentHealthJob.LogURL); err != nil { + return diag.FromErr(fmt.Errorf("Error setting log_url: %s", err)) + } + + } + + return nil +} + +func resourceIbmSchematicsAgentHealthUpdate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + session, err := meta.(conns.ClientSession).BluemixSession() + if err != nil { + return diag.FromErr(err) + } + iamAccessToken := session.Config.IAMAccessToken + iamRefreshToken := session.Config.IAMRefreshToken + + healthCheckAgentJobOptions := &schematicsv1.HealthCheckAgentJobOptions{} + ff := map[string]string{ + "X-Feature-Agents": "true", + "Authorization": iamAccessToken, + "refresh_token": iamRefreshToken, + } + healthCheckAgentJobOptions.Headers = ff + + parts, err := flex.SepIdParts(d.Id(), "/") + if err != nil { + return diag.FromErr(err) + } + + healthCheckAgentJobOptions.SetAgentID(parts[0]) + + hasChange := false + + if d.HasChange("agent_id") { + return diag.FromErr(fmt.Errorf("Cannot update resource property \"%s\" with the ForceNew annotation."+ + " The resource must be re-created to update this property.", "agent_id")) + } + if d.HasChange("force") { + healthCheckAgentJobOptions.SetForce(d.Get("force").(bool)) + hasChange = true + } + + if hasChange { + agentHealthJob, response, err := schematicsClient.HealthCheckAgentJobWithContext(context, healthCheckAgentJobOptions) + if err != nil { + log.Printf("[DEBUG] HealthCheckAgentJobWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("HealthCheckAgentJobWithContext failed %s\n%s", err, response)) + } + d.SetId(fmt.Sprintf("%s/%s", *healthCheckAgentJobOptions.AgentID, *agentHealthJob.JobID)) + } + + return resourceIbmSchematicsAgentHealthRead(context, d, meta) +} + +func resourceIbmSchematicsAgentHealthDelete(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + d.SetId("") + return nil +} diff --git a/ibm/service/schematics/resource_ibm_schematics_agent_health_test.go b/ibm/service/schematics/resource_ibm_schematics_agent_health_test.go new file mode 100644 index 0000000000..3b20dc5dd5 --- /dev/null +++ b/ibm/service/schematics/resource_ibm_schematics_agent_health_test.go @@ -0,0 +1,164 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/go-sdk-core/v5/core" + "github.com/IBM/schematics-go-sdk/schematicsv1" +) + +func TestAccIbmSchematicsAgentHealthBasic(t *testing.T) { + var conf *schematicsv1.AgentDataRecentHealthJob + agentID := fmt.Sprintf("tf_agent_id_%d", acctest.RandIntRange(10, 100)) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIbmSchematicsAgentHealthDestroy, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentHealthConfigBasic(agentID), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIbmSchematicsAgentHealthExists("ibm_schematics_agent_health.schematics_agent_health_instance", conf), + resource.TestCheckResourceAttr("ibm_schematics_agent_health.schematics_agent_health_instance", "agent_id", agentID), + ), + }, + }, + }) +} + +func TestAccIbmSchematicsAgentHealthAllArgs(t *testing.T) { + var conf *schematicsv1.AgentDataRecentHealthJob + agentID := fmt.Sprintf("tf_agent_id_%d", acctest.RandIntRange(10, 100)) + force := "false" + forceUpdate := "true" + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIbmSchematicsAgentHealthDestroy, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentHealthConfig(agentID, force), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIbmSchematicsAgentHealthExists("ibm_schematics_agent_health.schematics_agent_health_instance", conf), + resource.TestCheckResourceAttr("ibm_schematics_agent_health.schematics_agent_health_instance", "agent_id", agentID), + resource.TestCheckResourceAttr("ibm_schematics_agent_health.schematics_agent_health_instance", "force", force), + ), + }, + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentHealthConfig(agentID, forceUpdate), + Check: resource.ComposeAggregateTestCheckFunc( + resource.TestCheckResourceAttr("ibm_schematics_agent_health.schematics_agent_health_instance", "agent_id", agentID), + resource.TestCheckResourceAttr("ibm_schematics_agent_health.schematics_agent_health_instance", "force", forceUpdate), + ), + }, + resource.TestStep{ + ResourceName: "ibm_schematics_agent_health.schematics_agent_health_instance", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} + +func testAccCheckIbmSchematicsAgentHealthConfigBasic(agentID string) string { + return fmt.Sprintf(` + + resource "ibm_schematics_agent_health" "schematics_agent_health_instance" { + agent_id = "%s" + } + `, agentID) +} + +func testAccCheckIbmSchematicsAgentHealthConfig(agentID string, force string) string { + return fmt.Sprintf(` + + resource "ibm_schematics_agent_health" "schematics_agent_health_instance" { + agent_id = "%s" + force = %s + } + `, agentID, force) +} + +func testAccCheckIbmSchematicsAgentHealthExists(n string, obj *schematicsv1.AgentDataRecentHealthJob) resource.TestCheckFunc { + + return func(s *terraform.State) error { + rs, ok := s.RootModule().Resources[n] + if !ok { + return fmt.Errorf("Not found: %s", n) + } + + schematicsClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).SchematicsV1() + if err != nil { + return err + } + + getAgentDataOptions := &schematicsv1.GetAgentDataOptions{ + XFeatureAgents: core.BoolPtr(true), + Profile: core.StringPtr("detailed"), + } + + parts, err := flex.SepIdParts(rs.Primary.ID, "/") + if err != nil { + return err + } + + getAgentDataOptions.SetAgentID(parts[0]) + + agentData, _, err := schematicsClient.GetAgentData(getAgentDataOptions) + if err != nil { + return err + } + + obj = agentData.RecentHealthJob + return nil + } +} + +func testAccCheckIbmSchematicsAgentHealthDestroy(s *terraform.State) error { + schematicsClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).SchematicsV1() + if err != nil { + return err + } + for _, rs := range s.RootModule().Resources { + if rs.Type != "ibm_schematics_agent_health" { + continue + } + + getAgentDataOptions := &schematicsv1.GetAgentDataOptions{ + XFeatureAgents: core.BoolPtr(true), + Profile: core.StringPtr("detailed"), + } + + parts, err := flex.SepIdParts(rs.Primary.ID, "/") + if err != nil { + return err + } + + getAgentDataOptions.SetAgentID(parts[0]) + + agent, response, err := schematicsClient.GetAgentData(getAgentDataOptions) + + if err == nil && agent.RecentHealthJob != nil { + // Agent health Job can never really truely be deleted + return nil + } else if response.StatusCode != 404 { + return fmt.Errorf("Error checking for schematics_agent (%s) has been destroyed: %s", parts[0], err) + } + + } + + return nil +} diff --git a/ibm/service/schematics/resource_ibm_schematics_agent_prs.go b/ibm/service/schematics/resource_ibm_schematics_agent_prs.go new file mode 100644 index 0000000000..a672152b16 --- /dev/null +++ b/ibm/service/schematics/resource_ibm_schematics_agent_prs.go @@ -0,0 +1,225 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics + +import ( + "context" + "fmt" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/go-sdk-core/v3/core" + "github.com/IBM/schematics-go-sdk/schematicsv1" +) + +func ResourceIbmSchematicsAgentPrs() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceIbmSchematicsAgentPrsCreate, + ReadContext: resourceIbmSchematicsAgentPrsRead, + UpdateContext: resourceIbmSchematicsAgentPrsUpdate, + DeleteContext: resourceIbmSchematicsAgentPrsDelete, + Importer: &schema.ResourceImporter{}, + + Schema: map[string]*schema.Schema{ + "agent_id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "Agent ID to get the details of agent.", + }, + "force": &schema.Schema{ + Type: schema.TypeBool, + Optional: true, + Description: "Equivalent to -force options in the command line, default is false.", + }, + "job_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Job Id.", + }, + "updated_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The agent prs job updation time.", + }, + "updated_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Email address of user who ran the agent prs job.", + }, + "agent_version": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Agent version.", + }, + "status_code": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Final result of the pre-requisite scanner job.", + }, + "status_message": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The outcome of the pre-requisite scanner job, in a formatted log string.", + }, + "log_url": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "URL to the full pre-requisite scanner job logs.", + }, + }, + } +} + +func resourceIbmSchematicsAgentPrsCreate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + session, err := meta.(conns.ClientSession).BluemixSession() + if err != nil { + return diag.FromErr(err) + } + iamAccessToken := session.Config.IAMAccessToken + iamRefreshToken := session.Config.IAMRefreshToken + + prsAgentJobOptions := &schematicsv1.PrsAgentJobOptions{} + ff := map[string]string{ + "X-Feature-Agents": "true", + "Authorization": iamAccessToken, + "refresh_token": iamRefreshToken, + } + prsAgentJobOptions.Headers = ff + prsAgentJobOptions.SetAgentID(d.Get("agent_id").(string)) + if _, ok := d.GetOk("force"); ok { + prsAgentJobOptions.SetForce(d.Get("force").(bool)) + } + + agentPrsJob, response, err := schematicsClient.PrsAgentJobWithContext(context, prsAgentJobOptions) + if err != nil { + log.Printf("[DEBUG] PrsAgentJobWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("PrsAgentJobWithContext failed %s\n%s", err, response)) + } + + d.SetId(fmt.Sprintf("%s/%s", *prsAgentJobOptions.AgentID, *agentPrsJob.JobID)) + + return resourceIbmSchematicsAgentPrsRead(context, d, meta) +} + +func resourceIbmSchematicsAgentPrsRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + + parts, err := flex.SepIdParts(d.Id(), "/") + if err != nil { + return diag.FromErr(err) + } + + getAgentDataOptions := &schematicsv1.GetAgentDataOptions{ + XFeatureAgents: core.BoolPtr(true), + Profile: core.StringPtr("detailed"), + } + + getAgentDataOptions.SetAgentID(parts[0]) + + agentData, response, err := schematicsClient.GetAgentDataWithContext(context, getAgentDataOptions) + if err != nil { + if response != nil && response.StatusCode == 404 { + d.SetId("") + return nil + } + log.Printf("[DEBUG] GetAgentDataWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("GetAgentDataWithContext failed %s\n%s", err, response)) + } + if agentData.RecentPrsJob != nil { + + if err = d.Set("agent_id", parts[0]); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_id: %s", err)) + } + if err = d.Set("job_id", agentData.RecentPrsJob.JobID); err != nil { + return diag.FromErr(fmt.Errorf("Error setting job_id: %s", err)) + } + if err = d.Set("updated_at", flex.DateTimeToString(agentData.RecentPrsJob.UpdatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting updated_at: %s", err)) + } + if err = d.Set("updated_by", agentData.RecentPrsJob.UpdatedBy); err != nil { + return diag.FromErr(fmt.Errorf("Error setting updated_by: %s", err)) + } + if err = d.Set("agent_version", agentData.Version); err != nil { + return diag.FromErr(fmt.Errorf("Error setting agent_version: %s", err)) + } + if err = d.Set("status_code", agentData.RecentPrsJob.StatusCode); err != nil { + return diag.FromErr(fmt.Errorf("Error setting status_code: %s", err)) + } + if err = d.Set("status_message", agentData.RecentPrsJob.StatusMessage); err != nil { + return diag.FromErr(fmt.Errorf("Error setting status_message: %s", err)) + } + if err = d.Set("log_url", agentData.RecentPrsJob.LogURL); err != nil { + return diag.FromErr(fmt.Errorf("Error setting log_url: %s", err)) + } + + } + return nil +} + +func resourceIbmSchematicsAgentPrsUpdate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + session, err := meta.(conns.ClientSession).BluemixSession() + if err != nil { + return diag.FromErr(err) + } + iamAccessToken := session.Config.IAMAccessToken + iamRefreshToken := session.Config.IAMRefreshToken + + prsAgentJobOptions := &schematicsv1.PrsAgentJobOptions{} + ff := map[string]string{ + "X-Feature-Agents": "true", + "Authorization": iamAccessToken, + "refresh_token": iamRefreshToken, + } + prsAgentJobOptions.Headers = ff + + parts, err := flex.SepIdParts(d.Id(), "/") + if err != nil { + return diag.FromErr(err) + } + + prsAgentJobOptions.SetAgentID(parts[0]) + + hasChange := false + + if d.HasChange("agent_id") { + return diag.FromErr(fmt.Errorf("Cannot update resource property \"%s\" with the ForceNew annotation."+ + " The resource must be re-created to update this property.", "agent_id")) + } + if d.HasChange("force") { + prsAgentJobOptions.SetForce(d.Get("force").(bool)) + hasChange = true + } + + if hasChange { + agentPrsJob, response, err := schematicsClient.PrsAgentJobWithContext(context, prsAgentJobOptions) + if err != nil { + log.Printf("[DEBUG] PrsAgentJobWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("PrsAgentJobWithContext failed %s\n%s", err, response)) + } + d.SetId(fmt.Sprintf("%s/%s", *prsAgentJobOptions.AgentID, *agentPrsJob.JobID)) + } + + return resourceIbmSchematicsAgentPrsRead(context, d, meta) +} + +func resourceIbmSchematicsAgentPrsDelete(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + d.SetId("") + return nil +} diff --git a/ibm/service/schematics/resource_ibm_schematics_agent_prs_test.go b/ibm/service/schematics/resource_ibm_schematics_agent_prs_test.go new file mode 100644 index 0000000000..66894e0125 --- /dev/null +++ b/ibm/service/schematics/resource_ibm_schematics_agent_prs_test.go @@ -0,0 +1,162 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/go-sdk-core/v5/core" + "github.com/IBM/schematics-go-sdk/schematicsv1" +) + +func TestAccIbmSchematicsAgentPrsBasic(t *testing.T) { + var conf *schematicsv1.AgentDataRecentPrsJob + agentID := fmt.Sprintf("tf_agent_id_%d", acctest.RandIntRange(10, 100)) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIbmSchematicsAgentPrsDestroy, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentPrsConfigBasic(agentID), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIbmSchematicsAgentPrsExists("ibm_schematics_agent_prs.schematics_agent_prs_instance", conf), + resource.TestCheckResourceAttr("ibm_schematics_agent_prs.schematics_agent_prs_instance", "agent_id", agentID), + ), + }, + }, + }) +} + +func TestAccIbmSchematicsAgentPrsAllArgs(t *testing.T) { + var conf *schematicsv1.AgentDataRecentPrsJob + agentID := fmt.Sprintf("tf_agent_id_%d", acctest.RandIntRange(10, 100)) + force := "false" + forceUpdate := "true" + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIbmSchematicsAgentPrsDestroy, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentPrsConfig(agentID, force), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIbmSchematicsAgentPrsExists("ibm_schematics_agent_prs.schematics_agent_prs_instance", conf), + resource.TestCheckResourceAttr("ibm_schematics_agent_prs.schematics_agent_prs_instance", "agent_id", agentID), + resource.TestCheckResourceAttr("ibm_schematics_agent_prs.schematics_agent_prs_instance", "force", force), + ), + }, + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentPrsConfig(agentID, forceUpdate), + Check: resource.ComposeAggregateTestCheckFunc( + resource.TestCheckResourceAttr("ibm_schematics_agent_prs.schematics_agent_prs_instance", "agent_id", agentID), + resource.TestCheckResourceAttr("ibm_schematics_agent_prs.schematics_agent_prs_instance", "force", forceUpdate), + ), + }, + resource.TestStep{ + ResourceName: "ibm_schematics_agent_prs.schematics_agent_prs_instance", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} + +func testAccCheckIbmSchematicsAgentPrsConfigBasic(agentID string) string { + return fmt.Sprintf(` + resource "ibm_schematics_agent_prs" "schematics_agent_prs_instance" { + agent_id = "%s" + } + `, agentID) +} + +func testAccCheckIbmSchematicsAgentPrsConfig(agentID string, force string) string { + return fmt.Sprintf(` + + resource "ibm_schematics_agent_prs" "schematics_agent_prs_instance" { + agent_id = "%s" + force = %s + } + `, agentID, force) +} + +func testAccCheckIbmSchematicsAgentPrsExists(n string, obj *schematicsv1.AgentDataRecentPrsJob) resource.TestCheckFunc { + + return func(s *terraform.State) error { + rs, ok := s.RootModule().Resources[n] + if !ok { + return fmt.Errorf("Not found: %s", n) + } + + schematicsClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).SchematicsV1() + if err != nil { + return err + } + + getAgentDataOptions := &schematicsv1.GetAgentDataOptions{ + XFeatureAgents: core.BoolPtr(true), + Profile: core.StringPtr("detailed"), + } + + parts, err := flex.SepIdParts(rs.Primary.ID, "/") + if err != nil { + return err + } + + getAgentDataOptions.SetAgentID(parts[0]) + + agentData, _, err := schematicsClient.GetAgentData(getAgentDataOptions) + if err != nil { + return err + } + + obj = agentData.RecentPrsJob + return nil + } +} + +func testAccCheckIbmSchematicsAgentPrsDestroy(s *terraform.State) error { + schematicsClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).SchematicsV1() + if err != nil { + return err + } + for _, rs := range s.RootModule().Resources { + if rs.Type != "ibm_schematics_agent_prs" { + continue + } + + getAgentDataOptions := &schematicsv1.GetAgentDataOptions{ + XFeatureAgents: core.BoolPtr(true), + Profile: core.StringPtr("detailed"), + } + + parts, err := flex.SepIdParts(rs.Primary.ID, "/") + if err != nil { + return err + } + + getAgentDataOptions.SetAgentID(parts[0]) + + agent, response, err := schematicsClient.GetAgentData(getAgentDataOptions) + + if err == nil && agent.RecentPrsJob != nil { + // Agent PRS Job can never really truely be deleted + return nil + } else if response.StatusCode != 404 { + return fmt.Errorf("Error checking for schematics_agent (%s) has been destroyed: %s", parts[0], err) + } + } + + return nil +} diff --git a/ibm/service/schematics/resource_ibm_schematics_agent_test.go b/ibm/service/schematics/resource_ibm_schematics_agent_test.go new file mode 100644 index 0000000000..b4fcbcc098 --- /dev/null +++ b/ibm/service/schematics/resource_ibm_schematics_agent_test.go @@ -0,0 +1,251 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM/go-sdk-core/v5/core" + "github.com/IBM/schematics-go-sdk/schematicsv1" +) + +func TestAccIbmSchematicsAgentBasic(t *testing.T) { + var conf schematicsv1.AgentData + name := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) + version := "1.0.0-beta2" + schematicsLocation := "us-south" + agentLocation := "eu-de" + nameUpdate := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) + versionUpdate := "1.0.0-beta2" + schematicsLocationUpdate := "us-east" + agentLocationUpdate := "eu-gb" + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIbmSchematicsAgentDestroy, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentConfigBasic(name, version, schematicsLocation, agentLocation), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIbmSchematicsAgentExists("ibm_schematics_agent.schematics_agent_instance", conf), + resource.TestCheckResourceAttr("ibm_schematics_agent.schematics_agent_instance", "name", name), + resource.TestCheckResourceAttr("ibm_schematics_agent.schematics_agent_instance", "version", version), + resource.TestCheckResourceAttr("ibm_schematics_agent.schematics_agent_instance", "schematics_location", schematicsLocation), + resource.TestCheckResourceAttr("ibm_schematics_agent.schematics_agent_instance", "agent_location", agentLocation), + ), + }, + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentConfigBasic(nameUpdate, versionUpdate, schematicsLocationUpdate, agentLocationUpdate), + Check: resource.ComposeAggregateTestCheckFunc( + resource.TestCheckResourceAttr("ibm_schematics_agent.schematics_agent_instance", "name", nameUpdate), + resource.TestCheckResourceAttr("ibm_schematics_agent.schematics_agent_instance", "version", versionUpdate), + resource.TestCheckResourceAttr("ibm_schematics_agent.schematics_agent_instance", "schematics_location", schematicsLocationUpdate), + resource.TestCheckResourceAttr("ibm_schematics_agent.schematics_agent_instance", "agent_location", agentLocationUpdate), + ), + }, + }, + }) +} + +func TestAccIbmSchematicsAgentAllArgs(t *testing.T) { + var conf schematicsv1.AgentData + name := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) + version := "1.0.0-beta2" + schematicsLocation := "us-south" + agentLocation := "eu-de" + nameUpdate := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) + versionUpdate := "1.0.0-beta2" + schematicsLocationUpdate := "us-east" + agentLocationUpdate := "eu-gb" + description := fmt.Sprintf("tf_description_%d", acctest.RandIntRange(10, 100)) + descriptionUpdate := fmt.Sprintf("tf_description_%d", acctest.RandIntRange(10, 100)) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIbmSchematicsAgentDestroy, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentConfig(name, version, schematicsLocation, agentLocation, description), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIbmSchematicsAgentExists("ibm_schematics_agent.schematics_agent_instance", conf), + resource.TestCheckResourceAttr("ibm_schematics_agent.schematics_agent_instance", "name", name), + resource.TestCheckResourceAttr("ibm_schematics_agent.schematics_agent_instance", "version", version), + resource.TestCheckResourceAttr("ibm_schematics_agent.schematics_agent_instance", "schematics_location", schematicsLocation), + resource.TestCheckResourceAttr("ibm_schematics_agent.schematics_agent_instance", "agent_location", agentLocation), + resource.TestCheckResourceAttr("ibm_schematics_agent.schematics_agent_instance", "description", description), + ), + }, + resource.TestStep{ + Config: testAccCheckIbmSchematicsAgentConfig(nameUpdate, versionUpdate, schematicsLocationUpdate, agentLocationUpdate, descriptionUpdate), + Check: resource.ComposeAggregateTestCheckFunc( + resource.TestCheckResourceAttr("ibm_schematics_agent.schematics_agent_instance", "name", nameUpdate), + resource.TestCheckResourceAttr("ibm_schematics_agent.schematics_agent_instance", "version", versionUpdate), + resource.TestCheckResourceAttr("ibm_schematics_agent.schematics_agent_instance", "schematics_location", schematicsLocationUpdate), + resource.TestCheckResourceAttr("ibm_schematics_agent.schematics_agent_instance", "agent_location", agentLocationUpdate), + resource.TestCheckResourceAttr("ibm_schematics_agent.schematics_agent_instance", "description", descriptionUpdate), + ), + }, + resource.TestStep{ + ResourceName: "ibm_schematics_agent.schematics_agent_instance", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} + +func testAccCheckIbmSchematicsAgentConfigBasic(name string, version string, schematicsLocation string, agentLocation string) string { + return fmt.Sprintf(` + + resource "ibm_schematics_agent" "schematics_agent_instance" { + name = "%s" + resource_group = "Default" + version = "%s" + schematics_location = "%s" + agent_location = "%s" + agent_infrastructure { + infra_type = "ibm_kubernetes" + cluster_id = "cluster_id" + cluster_resource_group = "cluster_resource_group" + cos_instance_name = "cos_instance_name" + cos_bucket_name = "cos_bucket_name" + cos_bucket_region = "cos_bucket_region" + } + } + `, name, version, schematicsLocation, agentLocation) +} + +func testAccCheckIbmSchematicsAgentConfig(name string, version string, schematicsLocation string, agentLocation string, description string) string { + return fmt.Sprintf(` + + resource "ibm_schematics_agent" "schematics_agent_instance" { + name = "%s" + resource_group = "default" + version = "%s" + schematics_location = "%s" + agent_location = "%s" + agent_infrastructure { + infra_type = "ibm_kubernetes" + cluster_id = "cluster_id" + cluster_resource_group = "cluster_resource_group" + cos_instance_name = "cos_instance_name" + cos_bucket_name = "cos_bucket_name" + cos_bucket_region = "cos_bucket_region" + } + description = "%s" + tags = "FIXME" + agent_metadata { + name = "purpose" + value = ["git", "terraform", "ansible"] + } + agent_inputs { + name = "name" + value = "value" + use_default = true + metadata { + type = "boolean" + aliases = [ "aliases" ] + description = "description" + cloud_data_type = "cloud_data_type" + default_value = "default_value" + link_status = "normal" + secure = true + immutable = true + hidden = true + required = true + options = [ "options" ] + min_value = 1 + max_value = 1 + min_length = 1 + max_length = 1 + matches = "matches" + position = 1 + group_by = "group_by" + source = "source" + } + link = "link" + } + user_state { + state = "enable" + set_by = "set_by" + set_at = "2021-01-31T09:44:12Z" + } + agent_kpi { + availability_indicator = "available" + lifecycle_indicator = "consistent" + percent_usage_indicator = "percent_usage_indicator" + application_indicators = [ null ] + infra_indicators = [ null ] + } + } + `, name, version, schematicsLocation, agentLocation, description) +} + +func testAccCheckIbmSchematicsAgentExists(n string, obj schematicsv1.AgentData) resource.TestCheckFunc { + + return func(s *terraform.State) error { + rs, ok := s.RootModule().Resources[n] + if !ok { + return fmt.Errorf("Not found: %s", n) + } + + schematicsClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).SchematicsV1() + if err != nil { + return err + } + + getAgentDataOptions := &schematicsv1.GetAgentDataOptions{ + XFeatureAgents: core.BoolPtr(true), + } + + getAgentDataOptions.SetAgentID(rs.Primary.ID) + + agentData, _, err := schematicsClient.GetAgentData(getAgentDataOptions) + if err != nil { + return err + } + + obj = *agentData + return nil + } +} + +func testAccCheckIbmSchematicsAgentDestroy(s *terraform.State) error { + schematicsClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).SchematicsV1() + if err != nil { + return err + } + for _, rs := range s.RootModule().Resources { + if rs.Type != "ibm_schematics_agent" { + continue + } + + getAgentDataOptions := &schematicsv1.GetAgentDataOptions{ + XFeatureAgents: core.BoolPtr(true), + } + + getAgentDataOptions.SetAgentID(rs.Primary.ID) + + // Try to find the key + _, response, err := schematicsClient.GetAgentData(getAgentDataOptions) + if err == nil { + return nil + // TODO: uncomment the following lines of code once the agent delete actually deletes agentdoc + // return fmt.Errorf("schematics_agent still exists: %s", rs.Primary.ID) + } else if response.StatusCode != 404 { + return fmt.Errorf("Error checking for schematics_agent (%s) has been destroyed: %s", rs.Primary.ID, err) + } + } + + return nil +} diff --git a/ibm/service/schematics/resource_ibm_schematics_policy.go b/ibm/service/schematics/resource_ibm_schematics_policy.go new file mode 100644 index 0000000000..66f2d6cea5 --- /dev/null +++ b/ibm/service/schematics/resource_ibm_schematics_policy.go @@ -0,0 +1,769 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics + +import ( + "context" + "fmt" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/validate" + "github.com/IBM/go-sdk-core/v5/core" + "github.com/IBM/schematics-go-sdk/schematicsv1" +) + +func ResourceIbmSchematicsPolicy() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceIbmSchematicsPolicyCreate, + ReadContext: resourceIbmSchematicsPolicyRead, + UpdateContext: resourceIbmSchematicsPolicyUpdate, + DeleteContext: resourceIbmSchematicsPolicyDelete, + Importer: &schema.ResourceImporter{}, + + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "Name of Schematics customization policy.", + }, + "description": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The description of Schematics customization policy.", + }, + "resource_group": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "The resource group name for the policy. By default, Policy will be created in `default` Resource Group.", + }, + "tags": &schema.Schema{ + Type: schema.TypeList, + Optional: true, + Description: "Tags for the Schematics customization policy.", + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "location": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + }, + "state": &schema.Schema{ + Type: schema.TypeList, + MaxItems: 1, + Optional: true, + Computed: true, + Description: "User defined status of the Schematics object.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "state": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution.", + }, + "set_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Name of the User who set the state of the Object.", + }, + "set_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "When the User who set the state of the Object.", + }, + }, + }, + }, + "kind": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + ValidateFunc: validate.InvokeValidator("ibm_schematics_policy", "kind"), + Description: "Policy kind or categories for managing and deriving policy decision * `agent_assignment_policy` Agent assignment policy for job execution.", + }, + "target": &schema.Schema{ + Type: schema.TypeList, + MaxItems: 1, + Optional: true, + Computed: true, + Description: "The objects for the Schematics policy.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "selector_kind": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Types of schematics object selector.", + }, + "selector_ids": &schema.Schema{ + Type: schema.TypeList, + Optional: true, + Computed: true, + Description: "Static selectors of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy.", + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "selector_scope": &schema.Schema{ + Type: schema.TypeList, + Optional: true, + Computed: true, + Description: "Selectors to dynamically list of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "kind": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Name of the Schematics automation resource.", + }, + "tags": &schema.Schema{ + Type: schema.TypeList, + Optional: true, + Computed: true, + Description: "The tag based selector.", + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "resource_groups": &schema.Schema{ + Type: schema.TypeList, + Optional: true, + Computed: true, + Description: "The resource group based selector.", + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "locations": &schema.Schema{ + Type: schema.TypeList, + Optional: true, + Computed: true, + Description: "The location based selector.", + Elem: &schema.Schema{Type: schema.TypeString}, + }, + }, + }, + }, + }, + }, + }, + "parameter": &schema.Schema{ + Type: schema.TypeList, + MaxItems: 1, + Optional: true, + Computed: true, + Description: "The parameter to tune the Schematics policy.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "agent_assignment_policy_parameter": &schema.Schema{ + Type: schema.TypeList, + MaxItems: 1, + Optional: true, + Computed: true, + Description: "Parameters for the `agent_assignment_policy`.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "selector_kind": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Types of schematics object selector.", + }, + "selector_ids": &schema.Schema{ + Type: schema.TypeList, + Optional: true, + Computed: true, + Description: "The static selectors of schematics object ids (workspace, action or blueprint) for the Schematics policy.", + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "selector_scope": &schema.Schema{ + Type: schema.TypeList, + Optional: true, + Computed: true, + Description: "The selectors to dynamically list of schematics object ids (workspace, action or blueprint) for the Schematics policy.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "kind": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Name of the Schematics automation resource.", + }, + "tags": &schema.Schema{ + Type: schema.TypeList, + Optional: true, + Computed: true, + Description: "The tag based selector.", + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "resource_groups": &schema.Schema{ + Type: schema.TypeList, + Optional: true, + Computed: true, + Description: "The resource group based selector.", + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "locations": &schema.Schema{ + Type: schema.TypeList, + Optional: true, + Computed: true, + Description: "The location based selector.", + Elem: &schema.Schema{Type: schema.TypeString}, + }, + }, + }, + }, + }, + }, + }, + }, + }, + }, + "scoped_resources": &schema.Schema{ + Type: schema.TypeList, + Optional: true, + Description: "List of scoped Schematics resources targeted by the policy.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "kind": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "Name of the Schematics automation resource.", + }, + "id": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "Schematics resource Id.", + }, + }, + }, + }, + "crn": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The policy CRN.", + }, + "account": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The Account id.", + }, + "created_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The policy creation time.", + }, + "created_by": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The user who created the policy.", + }, + "updated_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The policy updation time.", + }, + }, + } +} + +func ResourceIbmSchematicsPolicyValidator() *validate.ResourceValidator { + validateSchema := make([]validate.ValidateSchema, 0) + validateSchema = append(validateSchema, + validate.ValidateSchema{ + Identifier: "kind", + ValidateFunctionIdentifier: validate.ValidateAllowedStringValue, + Type: validate.TypeString, + Optional: true, + AllowedValues: "agent_assignment_policy", + }, + ) + + resourceValidator := validate.ResourceValidator{ResourceName: "ibm_schematics_policy", Schema: validateSchema} + return &resourceValidator +} + +func resourceIbmSchematicsPolicyCreate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + + createPolicyOptions := &schematicsv1.CreatePolicyOptions{} + + if _, ok := d.GetOk("name"); ok { + createPolicyOptions.SetName(d.Get("name").(string)) + } + if _, ok := d.GetOk("description"); ok { + createPolicyOptions.SetDescription(d.Get("description").(string)) + } + if _, ok := d.GetOk("resource_group"); ok { + createPolicyOptions.SetResourceGroup(d.Get("resource_group").(string)) + } + if _, ok := d.GetOk("tags"); ok { + createPolicyOptions.SetTags(d.Get("tags").([]string)) + } + if _, ok := d.GetOk("location"); ok { + createPolicyOptions.SetLocation(d.Get("location").(string)) + } + if _, ok := d.GetOk("state"); ok { + stateModel, err := resourceIbmSchematicsPolicyMapToUserState(d.Get("state.0").(map[string]interface{})) + if err != nil { + return diag.FromErr(err) + } + createPolicyOptions.SetState(stateModel) + } + if _, ok := d.GetOk("kind"); ok { + createPolicyOptions.SetKind(d.Get("kind").(string)) + } + if _, ok := d.GetOk("target"); ok { + targetModel, err := resourceIbmSchematicsPolicyMapToPolicyObjects(d.Get("target.0").(map[string]interface{})) + if err != nil { + return diag.FromErr(err) + } + createPolicyOptions.SetTarget(targetModel) + } + if _, ok := d.GetOk("parameter"); ok { + parameterModel, err := resourceIbmSchematicsPolicyMapToPolicyParameter(d.Get("parameter.0").(map[string]interface{})) + if err != nil { + return diag.FromErr(err) + } + createPolicyOptions.SetParameter(parameterModel) + } + if _, ok := d.GetOk("scoped_resources"); ok { + var scopedResources []schematicsv1.ScopedResource + for _, e := range d.Get("scoped_resources").([]interface{}) { + value := e.(map[string]interface{}) + scopedResourcesItem, err := resourceIbmSchematicsPolicyMapToScopedResource(value) + if err != nil { + return diag.FromErr(err) + } + scopedResources = append(scopedResources, *scopedResourcesItem) + } + createPolicyOptions.SetScopedResources(scopedResources) + } + + policy, response, err := schematicsClient.CreatePolicyWithContext(context, createPolicyOptions) + if err != nil { + log.Printf("[DEBUG] CreatePolicyWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("CreatePolicyWithContext failed %s\n%s", err, response)) + } + + d.SetId(*policy.ID) + + return resourceIbmSchematicsPolicyRead(context, d, meta) +} + +func resourceIbmSchematicsPolicyRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + + getPolicyOptions := &schematicsv1.GetPolicyOptions{} + + getPolicyOptions.SetPolicyID(d.Id()) + + policy, response, err := schematicsClient.GetPolicyWithContext(context, getPolicyOptions) + if err != nil { + if response != nil && response.StatusCode == 404 { + d.SetId("") + return nil + } + log.Printf("[DEBUG] GetPolicyWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("GetPolicyWithContext failed %s\n%s", err, response)) + } + + if err = d.Set("name", policy.Name); err != nil { + return diag.FromErr(fmt.Errorf("Error setting name: %s", err)) + } + if err = d.Set("description", policy.Description); err != nil { + return diag.FromErr(fmt.Errorf("Error setting description: %s", err)) + } + if err = d.Set("resource_group", policy.ResourceGroup); err != nil { + return diag.FromErr(fmt.Errorf("Error setting resource_group: %s", err)) + } + if policy.Tags != nil { + if err = d.Set("tags", policy.Tags); err != nil { + return diag.FromErr(fmt.Errorf("Error setting tags: %s", err)) + } + } + if err = d.Set("location", policy.Location); err != nil { + return diag.FromErr(fmt.Errorf("Error setting location: %s", err)) + } + if policy.State != nil { + stateMap, err := resourceIbmSchematicsPolicyUserStateToMap(policy.State) + if err != nil { + return diag.FromErr(err) + } + if err = d.Set("state", []map[string]interface{}{stateMap}); err != nil { + return diag.FromErr(fmt.Errorf("Error setting state: %s", err)) + } + } + if err = d.Set("kind", policy.Kind); err != nil { + return diag.FromErr(fmt.Errorf("Error setting kind: %s", err)) + } + if policy.Target != nil { + targetMap, err := resourceIbmSchematicsPolicyPolicyObjectsToMap(policy.Target) + if err != nil { + return diag.FromErr(err) + } + if err = d.Set("target", []map[string]interface{}{targetMap}); err != nil { + return diag.FromErr(fmt.Errorf("Error setting target: %s", err)) + } + } + if policy.Parameter != nil { + parameterMap, err := resourceIbmSchematicsPolicyPolicyParameterToMap(policy.Parameter) + if err != nil { + return diag.FromErr(err) + } + if err = d.Set("parameter", []map[string]interface{}{parameterMap}); err != nil { + return diag.FromErr(fmt.Errorf("Error setting parameter: %s", err)) + } + } + scopedResources := []map[string]interface{}{} + if policy.ScopedResources != nil { + for _, scopedResourcesItem := range policy.ScopedResources { + scopedResourcesItemMap, err := resourceIbmSchematicsPolicyScopedResourceToMap(&scopedResourcesItem) + if err != nil { + return diag.FromErr(err) + } + scopedResources = append(scopedResources, scopedResourcesItemMap) + } + } + if err = d.Set("scoped_resources", scopedResources); err != nil { + return diag.FromErr(fmt.Errorf("Error setting scoped_resources: %s", err)) + } + if err = d.Set("crn", policy.Crn); err != nil { + return diag.FromErr(fmt.Errorf("Error setting crn: %s", err)) + } + if err = d.Set("account", policy.Account); err != nil { + return diag.FromErr(fmt.Errorf("Error setting account: %s", err)) + } + if err = d.Set("created_at", flex.DateTimeToString(policy.CreatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting created_at: %s", err)) + } + if err = d.Set("created_by", policy.CreatedBy); err != nil { + return diag.FromErr(fmt.Errorf("Error setting created_by: %s", err)) + } + if err = d.Set("updated_at", flex.DateTimeToString(policy.UpdatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting updated_at: %s", err)) + } + + return nil +} + +func resourceIbmSchematicsPolicyUpdate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + + updatePolicyOptions := &schematicsv1.UpdatePolicyOptions{} + + updatePolicyOptions.SetPolicyID(d.Id()) + + hasChange := false + + if d.HasChange("name") { + updatePolicyOptions.SetName(d.Get("name").(string)) + hasChange = true + } + if d.HasChange("description") { + updatePolicyOptions.SetDescription(d.Get("description").(string)) + hasChange = true + } + if d.HasChange("resource_group") { + updatePolicyOptions.SetResourceGroup(d.Get("resource_group").(string)) + hasChange = true + } + if d.HasChange("tags") { + // TODO: handle Tags of type TypeList -- not primitive, not model + hasChange = true + } + if d.HasChange("location") { + updatePolicyOptions.SetLocation(d.Get("location").(string)) + hasChange = true + } + if d.HasChange("state") { + state, err := resourceIbmSchematicsPolicyMapToUserState(d.Get("state.0").(map[string]interface{})) + if err != nil { + return diag.FromErr(err) + } + updatePolicyOptions.SetState(state) + hasChange = true + } + if d.HasChange("kind") { + updatePolicyOptions.SetKind(d.Get("kind").(string)) + hasChange = true + } + if d.HasChange("target") { + target, err := resourceIbmSchematicsPolicyMapToPolicyObjects(d.Get("target.0").(map[string]interface{})) + if err != nil { + return diag.FromErr(err) + } + updatePolicyOptions.SetTarget(target) + hasChange = true + } + if d.HasChange("parameter") { + parameter, err := resourceIbmSchematicsPolicyMapToPolicyParameter(d.Get("parameter.0").(map[string]interface{})) + if err != nil { + return diag.FromErr(err) + } + updatePolicyOptions.SetParameter(parameter) + hasChange = true + } + if d.HasChange("scoped_resources") { + // TODO: handle ScopedResources of type TypeList -- not primitive, not model + hasChange = true + } + + if hasChange { + _, response, err := schematicsClient.UpdatePolicyWithContext(context, updatePolicyOptions) + if err != nil { + log.Printf("[DEBUG] UpdatePolicyWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("UpdatePolicyWithContext failed %s\n%s", err, response)) + } + } + + return resourceIbmSchematicsPolicyRead(context, d, meta) +} + +func resourceIbmSchematicsPolicyDelete(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + schematicsClient, err := meta.(conns.ClientSession).SchematicsV1() + if err != nil { + return diag.FromErr(err) + } + + deletePolicyOptions := &schematicsv1.DeletePolicyOptions{} + + deletePolicyOptions.SetPolicyID(d.Id()) + + response, err := schematicsClient.DeletePolicyWithContext(context, deletePolicyOptions) + if err != nil { + log.Printf("[DEBUG] DeletePolicyWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("DeletePolicyWithContext failed %s\n%s", err, response)) + } + + d.SetId("") + + return nil +} + +func resourceIbmSchematicsPolicyMapToUserState(modelMap map[string]interface{}) (*schematicsv1.UserState, error) { + model := &schematicsv1.UserState{} + if modelMap["state"] != nil && modelMap["state"].(string) != "" { + model.State = core.StringPtr(modelMap["state"].(string)) + } + if modelMap["set_by"] != nil && modelMap["set_by"].(string) != "" { + model.SetBy = core.StringPtr(modelMap["set_by"].(string)) + } + if modelMap["set_at"] != nil { + + } + return model, nil +} + +func resourceIbmSchematicsPolicyMapToPolicyObjects(modelMap map[string]interface{}) (*schematicsv1.PolicyObjects, error) { + model := &schematicsv1.PolicyObjects{} + if modelMap["selector_kind"] != nil && modelMap["selector_kind"].(string) != "" { + model.SelectorKind = core.StringPtr(modelMap["selector_kind"].(string)) + } + if modelMap["selector_ids"] != nil { + selectorIds := []string{} + for _, selectorIdsItem := range modelMap["selector_ids"].([]interface{}) { + selectorIds = append(selectorIds, selectorIdsItem.(string)) + } + model.SelectorIds = selectorIds + } + if modelMap["selector_scope"] != nil { + selectorScope := []schematicsv1.PolicyObjectSelector{} + for _, selectorScopeItem := range modelMap["selector_scope"].([]interface{}) { + selectorScopeItemModel, err := resourceIbmSchematicsPolicyMapToPolicyObjectSelector(selectorScopeItem.(map[string]interface{})) + if err != nil { + return model, err + } + selectorScope = append(selectorScope, *selectorScopeItemModel) + } + model.SelectorScope = selectorScope + } + return model, nil +} + +func resourceIbmSchematicsPolicyMapToPolicyObjectSelector(modelMap map[string]interface{}) (*schematicsv1.PolicyObjectSelector, error) { + model := &schematicsv1.PolicyObjectSelector{} + if modelMap["kind"] != nil && modelMap["kind"].(string) != "" { + model.Kind = core.StringPtr(modelMap["kind"].(string)) + } + if modelMap["tags"] != nil { + tags := []string{} + for _, tagsItem := range modelMap["tags"].([]interface{}) { + tags = append(tags, tagsItem.(string)) + } + model.Tags = tags + } + if modelMap["resource_groups"] != nil { + resourceGroups := []string{} + for _, resourceGroupsItem := range modelMap["resource_groups"].([]interface{}) { + resourceGroups = append(resourceGroups, resourceGroupsItem.(string)) + } + model.ResourceGroups = resourceGroups + } + if modelMap["locations"] != nil { + locations := []string{} + for _, locationsItem := range modelMap["locations"].([]interface{}) { + locations = append(locations, locationsItem.(string)) + } + model.Locations = locations + } + return model, nil +} + +func resourceIbmSchematicsPolicyMapToPolicyParameter(modelMap map[string]interface{}) (*schematicsv1.PolicyParameter, error) { + model := &schematicsv1.PolicyParameter{} + if modelMap["agent_assignment_policy_parameter"] != nil && len(modelMap["agent_assignment_policy_parameter"].([]interface{})) > 0 { + AgentAssignmentPolicyParameterModel, err := resourceIbmSchematicsPolicyMapToAgentAssignmentPolicyParameter(modelMap["agent_assignment_policy_parameter"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.AgentAssignmentPolicyParameter = AgentAssignmentPolicyParameterModel + } + return model, nil +} + +func resourceIbmSchematicsPolicyMapToAgentAssignmentPolicyParameter(modelMap map[string]interface{}) (*schematicsv1.AgentAssignmentPolicyParameter, error) { + model := &schematicsv1.AgentAssignmentPolicyParameter{} + if modelMap["selector_kind"] != nil && modelMap["selector_kind"].(string) != "" { + model.SelectorKind = core.StringPtr(modelMap["selector_kind"].(string)) + } + if modelMap["selector_ids"] != nil { + selectorIds := []string{} + for _, selectorIdsItem := range modelMap["selector_ids"].([]interface{}) { + selectorIds = append(selectorIds, selectorIdsItem.(string)) + } + model.SelectorIds = selectorIds + } + if modelMap["selector_scope"] != nil { + selectorScope := []schematicsv1.PolicyObjectSelector{} + for _, selectorScopeItem := range modelMap["selector_scope"].([]interface{}) { + selectorScopeItemModel, err := resourceIbmSchematicsPolicyMapToPolicyObjectSelector(selectorScopeItem.(map[string]interface{})) + if err != nil { + return model, err + } + selectorScope = append(selectorScope, *selectorScopeItemModel) + } + model.SelectorScope = selectorScope + } + return model, nil +} + +func resourceIbmSchematicsPolicyMapToScopedResource(modelMap map[string]interface{}) (*schematicsv1.ScopedResource, error) { + model := &schematicsv1.ScopedResource{} + if modelMap["kind"] != nil && modelMap["kind"].(string) != "" { + model.Kind = core.StringPtr(modelMap["kind"].(string)) + } + if modelMap["id"] != nil && modelMap["id"].(string) != "" { + model.ID = core.StringPtr(modelMap["id"].(string)) + } + return model, nil +} + +func resourceIbmSchematicsPolicyUserStateToMap(model *schematicsv1.UserState) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.State != nil { + modelMap["state"] = model.State + } + if model.SetBy != nil { + modelMap["set_by"] = model.SetBy + } + if model.SetAt != nil { + modelMap["set_at"] = model.SetAt.String() + } + return modelMap, nil +} + +func resourceIbmSchematicsPolicyPolicyObjectsToMap(model *schematicsv1.PolicyObjects) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.SelectorKind != nil { + modelMap["selector_kind"] = model.SelectorKind + } + if model.SelectorIds != nil { + modelMap["selector_ids"] = model.SelectorIds + } + if model.SelectorScope != nil { + selectorScope := []map[string]interface{}{} + for _, selectorScopeItem := range model.SelectorScope { + selectorScopeItemMap, err := resourceIbmSchematicsPolicyPolicyObjectSelectorToMap(&selectorScopeItem) + if err != nil { + return modelMap, err + } + selectorScope = append(selectorScope, selectorScopeItemMap) + } + modelMap["selector_scope"] = selectorScope + } + return modelMap, nil +} + +func resourceIbmSchematicsPolicyPolicyObjectSelectorToMap(model *schematicsv1.PolicyObjectSelector) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Kind != nil { + modelMap["kind"] = model.Kind + } + if model.Tags != nil { + modelMap["tags"] = model.Tags + } + if model.ResourceGroups != nil { + modelMap["resource_groups"] = model.ResourceGroups + } + if model.Locations != nil { + modelMap["locations"] = model.Locations + } + return modelMap, nil +} + +func resourceIbmSchematicsPolicyPolicyParameterToMap(model *schematicsv1.PolicyParameter) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.AgentAssignmentPolicyParameter != nil { + agentAssignmentPolicyParameterMap, err := resourceIbmSchematicsPolicyAgentAssignmentPolicyParameterToMap(model.AgentAssignmentPolicyParameter) + if err != nil { + return modelMap, err + } + modelMap["agent_assignment_policy_parameter"] = []map[string]interface{}{agentAssignmentPolicyParameterMap} + } + return modelMap, nil +} + +func resourceIbmSchematicsPolicyAgentAssignmentPolicyParameterToMap(model *schematicsv1.AgentAssignmentPolicyParameter) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.SelectorKind != nil { + modelMap["selector_kind"] = model.SelectorKind + } + if model.SelectorIds != nil { + modelMap["selector_ids"] = model.SelectorIds + } + if model.SelectorScope != nil { + selectorScope := []map[string]interface{}{} + for _, selectorScopeItem := range model.SelectorScope { + selectorScopeItemMap, err := resourceIbmSchematicsPolicyPolicyObjectSelectorToMap(&selectorScopeItem) + if err != nil { + return modelMap, err + } + selectorScope = append(selectorScope, selectorScopeItemMap) + } + modelMap["selector_scope"] = selectorScope + } + return modelMap, nil +} + +func resourceIbmSchematicsPolicyScopedResourceToMap(model *schematicsv1.ScopedResource) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Kind != nil { + modelMap["kind"] = model.Kind + } + if model.ID != nil { + modelMap["id"] = model.ID + } + return modelMap, nil +} diff --git a/ibm/service/schematics/resource_ibm_schematics_policy_test.go b/ibm/service/schematics/resource_ibm_schematics_policy_test.go new file mode 100644 index 0000000000..dbae396bd5 --- /dev/null +++ b/ibm/service/schematics/resource_ibm_schematics_policy_test.go @@ -0,0 +1,196 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package schematics_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM/schematics-go-sdk/schematicsv1" +) + +func TestAccIbmSchematicsPolicyBasic(t *testing.T) { + var conf schematicsv1.Policy + name := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) + kind := "agent_assignment_policy" + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIbmSchematicsPolicyDestroy, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsPolicyConfigBasic(name, kind), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIbmSchematicsPolicyExists("ibm_schematics_policy.schematics_policy_instance", conf), + resource.TestCheckResourceAttr("ibm_schematics_policy.schematics_policy_instance", "name", name), + resource.TestCheckResourceAttr("ibm_schematics_policy.schematics_policy_instance", "kind", kind), + ), + }, + }, + }) +} + +func TestAccIbmSchematicsPolicyAllArgs(t *testing.T) { + var conf schematicsv1.Policy + name := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) + description := fmt.Sprintf("tf_description_%d", acctest.RandIntRange(10, 100)) + resourceGroup := fmt.Sprintf("tf_resource_group_%d", acctest.RandIntRange(10, 100)) + location := "us-south" + kind := "agent_assignment_policy" + nameUpdate := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) + descriptionUpdate := fmt.Sprintf("tf_description_%d", acctest.RandIntRange(10, 100)) + resourceGroupUpdate := fmt.Sprintf("tf_resource_group_%d", acctest.RandIntRange(10, 100)) + locationUpdate := "eu-de" + kindUpdate := "agent_assignment_policy" + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIbmSchematicsPolicyDestroy, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmSchematicsPolicyConfig(name, description, resourceGroup, location, kind), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIbmSchematicsPolicyExists("ibm_schematics_policy.schematics_policy_instance", conf), + resource.TestCheckResourceAttr("ibm_schematics_policy.schematics_policy_instance", "name", name), + resource.TestCheckResourceAttr("ibm_schematics_policy.schematics_policy_instance", "description", description), + resource.TestCheckResourceAttr("ibm_schematics_policy.schematics_policy_instance", "resource_group", resourceGroup), + resource.TestCheckResourceAttr("ibm_schematics_policy.schematics_policy_instance", "location", location), + resource.TestCheckResourceAttr("ibm_schematics_policy.schematics_policy_instance", "kind", kind), + ), + }, + resource.TestStep{ + Config: testAccCheckIbmSchematicsPolicyConfig(nameUpdate, descriptionUpdate, resourceGroupUpdate, locationUpdate, kindUpdate), + Check: resource.ComposeAggregateTestCheckFunc( + resource.TestCheckResourceAttr("ibm_schematics_policy.schematics_policy_instance", "name", nameUpdate), + resource.TestCheckResourceAttr("ibm_schematics_policy.schematics_policy_instance", "description", descriptionUpdate), + resource.TestCheckResourceAttr("ibm_schematics_policy.schematics_policy_instance", "resource_group", resourceGroupUpdate), + resource.TestCheckResourceAttr("ibm_schematics_policy.schematics_policy_instance", "location", locationUpdate), + resource.TestCheckResourceAttr("ibm_schematics_policy.schematics_policy_instance", "kind", kindUpdate), + ), + }, + resource.TestStep{ + ResourceName: "ibm_schematics_policy.schematics_policy_instance", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} + +func testAccCheckIbmSchematicsPolicyConfigBasic(name string, kind string) string { + return fmt.Sprintf(` + + resource "ibm_schematics_policy" "schematics_policy_instance" { + name = "%s" + kind = "%s" + } + `, name, kind) +} + +func testAccCheckIbmSchematicsPolicyConfig(name string, description string, resourceGroup string, location string, kind string) string { + return fmt.Sprintf(` + + resource "ibm_schematics_policy" "schematics_policy_instance" { + name = "%s" + description = "%s" + resource_group = "%s" + tags = "FIXME" + location = "%s" + state { + state = "draft" + set_by = "set_by" + set_at = "2021-01-31T09:44:12Z" + } + kind = "%s" + target { + selector_kind = "ids" + selector_ids = [ "selector_ids" ] + selector_scope { + kind = "workspace" + tags = [ "tags" ] + resource_groups = [ "resource_groups" ] + locations = [ "us-south" ] + } + } + parameter { + agent_assignment_policy_parameter { + selector_kind = "ids" + selector_ids = [ "selector_ids" ] + selector_scope { + kind = "workspace" + tags = [ "tags" ] + resource_groups = [ "resource_groups" ] + locations = [ "us-south" ] + } + } + } + scoped_resources { + kind = "workspace" + id = "id" + } + } + `, name, description, resourceGroup, location, kind) +} + +func testAccCheckIbmSchematicsPolicyExists(n string, obj schematicsv1.Policy) resource.TestCheckFunc { + + return func(s *terraform.State) error { + rs, ok := s.RootModule().Resources[n] + if !ok { + return fmt.Errorf("Not found: %s", n) + } + + schematicsClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).SchematicsV1() + if err != nil { + return err + } + + getPolicyOptions := &schematicsv1.GetPolicyOptions{} + + getPolicyOptions.SetPolicyID(rs.Primary.ID) + + policy, _, err := schematicsClient.GetPolicy(getPolicyOptions) + if err != nil { + return err + } + + obj = *policy + return nil + } +} + +func testAccCheckIbmSchematicsPolicyDestroy(s *terraform.State) error { + schematicsClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).SchematicsV1() + if err != nil { + return err + } + for _, rs := range s.RootModule().Resources { + if rs.Type != "ibm_schematics_policy" { + continue + } + + getPolicyOptions := &schematicsv1.GetPolicyOptions{} + + getPolicyOptions.SetPolicyID(rs.Primary.ID) + + // Try to find the key + _, response, err := schematicsClient.GetPolicy(getPolicyOptions) + + if err == nil { + return fmt.Errorf("schematics_policy still exists: %s", rs.Primary.ID) + } else if response.StatusCode != 404 { + return fmt.Errorf("Error checking for schematics_policy (%s) has been destroyed: %s", rs.Primary.ID, err) + } + } + + return nil +} diff --git a/website/docs/d/schematics_agent.html.markdown b/website/docs/d/schematics_agent.html.markdown new file mode 100644 index 0000000000..745f673855 --- /dev/null +++ b/website/docs/d/schematics_agent.html.markdown @@ -0,0 +1,163 @@ +--- +layout: "ibm" +page_title: "IBM : ibm_schematics_agent" +description: |- + Get information about schematics_agent +subcategory: "Schematics" +--- + +# ibm_schematics_agent + +Provides a read-only data source for schematics_agent. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. + +## Example Usage + +```hcl +data "ibm_schematics_agent" "schematics_agent" { + agent_id = "agent_id" +} +``` + +## Argument Reference + +Review the argument reference that you can specify for your data source. + +* `agent_id` - (Required, Forces new resource, String) Agent ID to get the details of agent. + +## Attribute Reference + +In addition to all argument references listed, you can access the following attribute references after your data source is created. + +* `id` - The unique identifier of the schematics_agent. +* `agent_crn` - (String) The agent crn, obtained from the Schematics agent deployment configuration. + +* `agent_infrastructure` - (List) The infrastructure parameters used by the agent. +Nested scheme for **agent_infrastructure**: + * `cluster_id` - (String) The cluster ID where agent services will be running. + * `cluster_resource_group` - (String) The resource group of the cluster (is it required?). + * `cos_bucket_name` - (String) The COS bucket name used to store the logs. + * `cos_bucket_region` - (String) The COS bucket region. + * `cos_instance_name` - (String) The COS instance name to store the agent logs. + * `infra_type` - (String) Type of target agent infrastructure. + * Constraints: Allowable values are: `ibm_kubernetes`, `ibm_openshift`, `ibm_satellite`. + +* `agent_inputs` - (List) Additional input variables for the agent. +Nested scheme for **agent_inputs**: + * `link` - (String) The reference link to the variable value By default the expression points to `$self.value`. + * `metadata` - (List) An user editable metadata for the variables. + Nested scheme for **metadata**: + * `aliases` - (List) The list of aliases for the variable name. + * `cloud_data_type` - (String) Cloud data type of the variable. eg. resource_group_id, region, vpc_id. + * `default_value` - (String) Default value for the variable only if the override value is not specified. + * `description` - (String) The description of the meta data. + * `group_by` - (String) The display name of the group this variable belongs to. + * `hidden` - (Boolean) If **true**, the variable is not displayed on UI or Command line. + * `immutable` - (Boolean) Is the variable readonly ?. + * `link_status` - (String) The status of the link. + * Constraints: Allowable values are: `normal`, `broken`. + * `matches` - (String) The regex for the variable value. + * `max_length` - (Integer) The maximum length of the variable value. Applicable for the string type. + * `max_value` - (Integer) The maximum value of the variable. Applicable for the integer type. + * `min_length` - (Integer) The minimum length of the variable value. Applicable for the string type. + * `min_value` - (Integer) The minimum value of the variable. Applicable for the integer type. + * `options` - (List) The list of possible values for this variable. If type is **integer** or **date**, then the array of string is converted to array of integers or date during the runtime. + * `position` - (Integer) The relative position of this variable in a list. + * `required` - (Boolean) If the variable required?. + * `secure` - (Boolean) Is the variable secure or sensitive ?. + * `source` - (String) The source of this meta-data. + * `type` - (String) Type of the variable. + * Constraints: Allowable values are: `boolean`, `string`, `integer`, `date`, `array`, `list`, `map`, `complex`, `link`. + * `name` - (String) The name of the variable. For example, `name = "inventory username"`. + * `use_default` - (Boolean) True, will ignore the data in the value attribute, instead the data in metadata.default_value will be used. + * `value` - (String) The value for the variable or reference to the value. For example, `value = ""`. **Note** The SSH key should contain `\n` at the end of the key details in case of command line or API calls. + +* `agent_kpi` - (List) Schematics Agent key performance indicators. +Nested scheme for **agent_kpi**: + * `application_indicators` - (List) Agent application key performance indicators. + * `availability_indicator` - (String) Overall availability indicator reported by the agent. + * Constraints: Allowable values are: `available`, `unavailable`, `error`. + * `infra_indicators` - (List) Agent infrastructure key performance indicators. + * `lifecycle_indicator` - (String) Overall lifecycle indicator reported by the agents. + * Constraints: Allowable values are: `consistent`, `inconsistent`, `obselete`. + * `percent_usage_indicator` - (String) Percentage usage of the agent resources. + +* `agent_location` - (String) The location where agent is deployed in the user environment. + +* `agent_metadata` - (List) The metadata of an agent. +Nested scheme for **agent_metadata**: + * `name` - (String) Name of the metadata. + * `value` - (List) Value of the metadata name. + +* `created_at` - (String) The agent creation date-time. + +* `creation_by` - (String) The email address of an user who created the agent. + +* `description` - (String) Agent description. + +* `id` - (String) The agent resource id. + +* `name` - (String) The name of the agent (must be unique, for an account). + +* `recent_deploy_job` - (List) Post-installations checks for Agent health. +Nested scheme for **recent_deploy_job**: + * `agent_id` - (String) Id of the agent. + * `agent_version` - (String) Agent version. + * `is_redeployed` - (Boolean) True, when the same version of the agent was redeployed. + * `job_id` - (String) Job Id. + * `log_url` - (String) URL to the full agent deployment job logs. + * `status_code` - (String) Final result of the agent deployment job. + * Constraints: Allowable values are: `pending`, `in-progress`, `success`, `failed`. + * `status_message` - (String) The outcome of the agent deployment job, in a formatted log string. + * `updated_at` - (String) The agent deploy job updation time. + * `updated_by` - (String) Email address of user who ran the agent deploy job. + +* `recent_health_job` - (List) Agent health check. +Nested scheme for **recent_health_job**: + * `agent_id` - (String) Id of the agent. + * `agent_version` - (String) Agent version. + * `job_id` - (String) Job Id. + * `log_url` - (String) URL to the full health-check job logs. + * `status_code` - (String) Final result of the health-check job. + * Constraints: Allowable values are: `pending`, `in-progress`, `success`, `failed`. + * `status_message` - (String) The outcome of the health-check job, in a formatted log string. + * `updated_at` - (String) The agent health check job updation time. + * `updated_by` - (String) Email address of user who ran the agent health check job. + +* `recent_prs_job` - (List) Run a pre-requisite scanner for deploying agent. +Nested scheme for **recent_prs_job**: + * `agent_id` - (String) Id of the agent. + * `agent_version` - (String) Agent version. + * `job_id` - (String) Job Id. + * `log_url` - (String) URL to the full pre-requisite scanner job logs. + * `status_code` - (String) Final result of the pre-requisite scanner job. + * Constraints: Allowable values are: `pending`, `in-progress`, `success`, `failed`. + * `status_message` - (String) The outcome of the pre-requisite scanner job, in a formatted log string. + * `updated_at` - (String) The agent prs job updation time. + * `updated_by` - (String) Email address of user who ran the agent prs job. + +* `resource_group` - (String) The resource-group name for the agent. By default, agent will be registered in Default Resource Group. + +* `schematics_location` - (String) List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics. + * Constraints: Allowable values are: `us-south`, `us-east`, `eu-gb`, `eu-de`. + +* `system_state` - (List) Computed state of the agent. +Nested scheme for **system_state**: + * `status_code` - (String) Agent Status. + * Constraints: Allowable values are: `error`, `normal`, `in_progress`, `pending`, `draft`. + * `status_message` - (String) The agent status message. + +* `tags` - (List) Tags for the agent. + +* `updated_at` - (String) The agent registration updation time. + +* `updated_by` - (String) Email address of user who updated the agent registration. + +* `user_state` - (List) User defined status of the agent. +Nested scheme for **user_state**: + * `set_at` - (String) When the User who set the state of the Object. + * `set_by` - (String) Name of the User who set the state of the Object. + * `state` - (String) User-defined states * `enable` Agent is enabled by the user. * `disable` Agent is disbaled by the user. + * Constraints: Allowable values are: `enable`, `disable`. + +* `version` - (String) Agent version. + diff --git a/website/docs/d/schematics_agent_deploy.html.markdown b/website/docs/d/schematics_agent_deploy.html.markdown new file mode 100644 index 0000000000..668df3e6a6 --- /dev/null +++ b/website/docs/d/schematics_agent_deploy.html.markdown @@ -0,0 +1,48 @@ +--- +layout: "ibm" +page_title: "IBM : ibm_schematics_agent_deploy" +description: |- + Get information about schematics_agent_deploy +subcategory: "Schematics" +--- + +# ibm_schematics_agent_deploy + +Provides a read-only data source for schematics_agent_deploy. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. + +## Example Usage + +```hcl +data "ibm_schematics_agent_deploy" "schematics_agent_deploy" { + agent_id = ibm_schematics_agent_deploy.schematics_agent_deploy.agent_id +} +``` + +## Argument Reference + +Review the argument reference that you can specify for your data source. + +* `agent_id` - (Required, Forces new resource, String) Agent ID to get the details of agent. + +## Attribute Reference + +In addition to all argument references listed, you can access the following attribute references after your data source is created. + +* `id` - The unique identifier of the schematics_agent_deploy. +* `agent_version` - (String) Agent version. + +* `is_redeployed` - (Boolean) True, when the same version of the agent was redeployed. + +* `job_id` - (String) Job Id. + +* `log_url` - (String) URL to the full agent deployment job logs. + +* `status_code` - (String) Final result of the agent deployment job. + * Constraints: Allowable values are: `pending`, `in-progress`, `success`, `failed`. + +* `status_message` - (String) The outcome of the agent deployment job, in a formatted log string. + +* `updated_at` - (String) The agent deploy job updation time. + +* `updated_by` - (String) Email address of user who ran the agent deploy job. + diff --git a/website/docs/d/schematics_agent_health.html.markdown b/website/docs/d/schematics_agent_health.html.markdown new file mode 100644 index 0000000000..071e160950 --- /dev/null +++ b/website/docs/d/schematics_agent_health.html.markdown @@ -0,0 +1,46 @@ +--- +layout: "ibm" +page_title: "IBM : ibm_schematics_agent_health" +description: |- + Get information about schematics_agent_health +subcategory: "Schematics" +--- + +# ibm_schematics_agent_health + +Provides a read-only data source for schematics_agent_health. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. + +## Example Usage + +```hcl +data "ibm_schematics_agent_health" "schematics_agent_health" { + agent_id = ibm_schematics_agent_health.schematics_agent_health.agent_id +} +``` + +## Argument Reference + +Review the argument reference that you can specify for your data source. + +* `agent_id` - (Required, Forces new resource, String) Agent ID to get the details of agent. + +## Attribute Reference + +In addition to all argument references listed, you can access the following attribute references after your data source is created. + +* `id` - The unique identifier of the schematics_agent_health. +* `agent_version` - (String) Agent version. + +* `job_id` - (String) Job Id. + +* `log_url` - (String) URL to the full health-check job logs. + +* `status_code` - (String) Final result of the health-check job. + * Constraints: Allowable values are: `pending`, `in-progress`, `success`, `failed`. + +* `status_message` - (String) The outcome of the health-check job, in a formatted log string. + +* `updated_at` - (String) The agent health check job updation time. + +* `updated_by` - (String) Email address of user who ran the agent health check job. + diff --git a/website/docs/d/schematics_agent_prs.html.markdown b/website/docs/d/schematics_agent_prs.html.markdown new file mode 100644 index 0000000000..c7601001f8 --- /dev/null +++ b/website/docs/d/schematics_agent_prs.html.markdown @@ -0,0 +1,46 @@ +--- +layout: "ibm" +page_title: "IBM : ibm_schematics_agent_prs" +description: |- + Get information about schematics_agent_prs +subcategory: "Schematics" +--- + +# ibm_schematics_agent_prs + +Provides a read-only data source for schematics_agent_prs. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. + +## Example Usage + +```hcl +data "ibm_schematics_agent_prs" "schematics_agent_prs" { + agent_id = ibm_schematics_agent_prs.schematics_agent_prs.agent_id +} +``` + +## Argument Reference + +Review the argument reference that you can specify for your data source. + +* `agent_id` - (Required, Forces new resource, String) Agent ID to get the details of agent. + +## Attribute Reference + +In addition to all argument references listed, you can access the following attribute references after your data source is created. + +* `id` - The unique identifier of the schematics_agent_prs. +* `agent_version` - (String) Agent version. + +* `job_id` - (String) Job Id. + +* `log_url` - (String) URL to the full pre-requisite scanner job logs. + +* `status_code` - (String) Final result of the pre-requisite scanner job. + * Constraints: Allowable values are: `pending`, `in-progress`, `success`, `failed`. + +* `status_message` - (String) The outcome of the pre-requisite scanner job, in a formatted log string. + +* `updated_at` - (String) The agent prs job updation time. + +* `updated_by` - (String) Email address of user who ran the agent prs job. + diff --git a/website/docs/d/schematics_agents.html.markdown b/website/docs/d/schematics_agents.html.markdown new file mode 100644 index 0000000000..9b071e01d2 --- /dev/null +++ b/website/docs/d/schematics_agents.html.markdown @@ -0,0 +1,70 @@ +--- +layout: "ibm" +page_title: "IBM : ibm_schematics_agents" +description: |- + Get information about schematics_agents +subcategory: "Schematics" +--- + +# ibm_schematics_agents + +Provides a read-only data source for schematics_agents. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. + +## Example Usage + +```hcl +data "ibm_schematics_agents" "schematics_agents" { + name = "MyDevAgent" +} +``` + +## Argument Reference + +Review the argument reference that you can specify for your data source. + +* `name` - (Optional, String) The name of the agent (must be unique, for an account). + +## Attribute Reference + +In addition to all argument references listed, you can access the following attribute references after your data source is created. + +* `id` - The unique identifier of the schematics_agents. +* `agents` - (List) The list of agents in the account. +Nested scheme for **agents**: + * `agent_crn` - (String) The Agent crn, obtained from the Schematics Agent deployment configuration. + * `agent_location` - (String) The location where agent is deployed in the user environment. + * `connection_state` - (List) Connection status of the agent. + Nested scheme for **connection_state**: + * `checked_at` - (String) When the connection state is modified. + * `state` - (String) Agent Connection Status * `Connected` When Schematics is able to connect to the agent. * `Disconnected` When Schematics is able not connect to the agent. + * Constraints: Allowable values are: `Connected`, `Disconnected`. + * `description` - (String) Agent description. + * `id` - (String) The Agent registration id. + * `location` - (String) List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics. + * Constraints: Allowable values are: `us-south`, `us-east`, `eu-gb`, `eu-de`. + * `name` - (String) The name of the agent (must be unique, for an account). + * `profile_id` - (String) The IAM trusted profile id, used by the Agent instance. + * `registered_at` - (String) The Agent registration date-time. + * `registered_by` - (String) The email address of an user who registered the Agent. + * `resource_group` - (String) The resource-group name for the agent. By default, Agent will be registered in Default Resource Group. + * `system_state` - (List) Computed state of the agent. + Nested scheme for **system_state**: + * `message` - (String) The Agent status message. + * `state` - (String) Agent Status. + * Constraints: Allowable values are: `error`, `normal`, `in_progress`, `pending`, `draft`. + * `tags` - (List) Tags for the agent. + * `updated_at` - (String) The Agent registration updation time. + * `updated_by` - (String) Email address of user who updated the Agent registration. + * `user_state` - (List) User defined status of the agent. + Nested scheme for **user_state**: + * `set_at` - (String) When the User who set the state of the Object. + * `set_by` - (String) Name of the User who set the state of the Object. + * `state` - (String) User-defined states * `enable` Agent is enabled by the user. * `disable` Agent is disbaled by the user. + * Constraints: Allowable values are: `enable`, `disable`. + +* `limit` - (Integer) The number of records returned. + +* `offset` - (Integer) The skipped number of records. + +* `total_count` - (Integer) The total number of records. + diff --git a/website/docs/d/schematics_policies.html.markdown b/website/docs/d/schematics_policies.html.markdown new file mode 100644 index 0000000000..71b1eefbb8 --- /dev/null +++ b/website/docs/d/schematics_policies.html.markdown @@ -0,0 +1,60 @@ +--- +layout: "ibm" +page_title: "IBM : ibm_schematics_policies" +description: |- + Get information about schematics_policies +subcategory: "Schematics" +--- + +# ibm_schematics_policies + +Provides a read-only data source for schematics_policies. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. + +## Example Usage + +```hcl +data "ibm_schematics_policies" "schematics_policies" { +} +``` + +## Argument Reference + +Review the argument reference that you can specify for your data source. + +* `policy_kind` - (Optional, String) Policy kind or categories for managing and deriving policy decision * `agent_assignment_policy` Agent assignment policy for job execution. + * Constraints: Allowable values are: `agent_assignment_policy`. + +## Attribute Reference + +In addition to all argument references listed, you can access the following attribute references after your data source is created. + +* `id` - The unique identifier of the schematics_policies. +* `limit` - (Integer) The number of policy records returned. + +* `offset` - (Integer) The skipped number of policy records. + +* `policies` - (List) The list of Schematics policies. +Nested scheme for **policies**: + * `account` - (String) The Account id. + * `created_at` - (String) The policy creation time. + * `created_by` - (String) The user who created the Policy. + * `crn` - (String) The policy CRN. + * `description` - (String) The description of Schematics customization policy. + * `id` - (String) The system generated Policy Id. + * `location` - (String) List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics. + * Constraints: Allowable values are: `us-south`, `us-east`, `eu-gb`, `eu-de`. + * `name` - (String) The name of Schematics customization policy. + * `policy_kind` - (String) Policy kind or categories for managing and deriving policy decision * `agent_assignment_policy` Agent assignment policy for job execution. + * Constraints: Allowable values are: `agent_assignment_policy`. + * `resource_group` - (String) Resource-group name for the Policy. By default, Policy will be created in Default Resource Group. + * `state` - (List) User defined status of the Schematics object. + Nested scheme for **state**: + * `set_at` - (String) When the User who set the state of the Object. + * `set_by` - (String) Name of the User who set the state of the Object. + * `state` - (String) User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution. + * Constraints: Allowable values are: `draft`, `live`, `locked`, `disable`. + * `tags` - (List) Tags for the Schematics customization policy. + * `updated_at` - (String) The policy updation time. + +* `total_count` - (Integer) The total number of policy records. + diff --git a/website/docs/d/schematics_policy.html.markdown b/website/docs/d/schematics_policy.html.markdown new file mode 100644 index 0000000000..a6e87c06ee --- /dev/null +++ b/website/docs/d/schematics_policy.html.markdown @@ -0,0 +1,100 @@ +--- +layout: "ibm" +page_title: "IBM : ibm_schematics_policy" +description: |- + Get information about schematics_policy +subcategory: "Schematics" +--- + +# ibm_schematics_policy + +Provides a read-only data source for schematics_policy. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. + +## Example Usage + +```hcl +data "ibm_schematics_policy" "schematics_policy" { + policy_id = "policy_id" +} +``` + +## Argument Reference + +Review the argument reference that you can specify for your data source. + +* `policy_id` - (Required, Forces new resource, String) ID to get the details of policy. + +## Attribute Reference + +In addition to all argument references listed, you can access the following attribute references after your data source is created. + +* `id` - The unique identifier of the schematics_policy. +* `account` - (String) The Account id. + +* `created_at` - (String) The policy creation time. + +* `created_by` - (String) The user who created the policy. + +* `crn` - (String) The policy CRN. + +* `description` - (String) The description of Schematics customization policy. + +* `id` - (String) The system generated policy Id. + +* `kind` - (String) Policy kind or categories for managing and deriving policy decision * `agent_assignment_policy` Agent assignment policy for job execution. + * Constraints: Allowable values are: `agent_assignment_policy`. + +* `location` - (String) List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics. + * Constraints: Allowable values are: `us-south`, `us-east`, `eu-gb`, `eu-de`. + +* `name` - (String) Name of Schematics customization policy. + +* `parameter` - (List) The parameter to tune the Schematics policy. +Nested scheme for **parameter**: + * `agent_assignment_policy_parameter` - (List) Parameters for the `agent_assignment_policy`. + Nested scheme for **agent_assignment_policy_parameter**: + * `selector_ids` - (List) The static selectors of schematics object ids (workspace, action or blueprint) for the Schematics policy. + * `selector_kind` - (String) Types of schematics object selector. + * Constraints: Allowable values are: `ids`, `scoped`. + * `selector_scope` - (List) The selectors to dynamically list of schematics object ids (workspace, action or blueprint) for the Schematics policy. + Nested scheme for **selector_scope**: + * `kind` - (String) Name of the Schematics automation resource. + * Constraints: Allowable values are: `workspace`, `action`, `system`, `environment`, `blueprint`. + * `locations` - (List) The location based selector. + * Constraints: Allowable list items are: `us-south`, `us-east`, `eu-gb`, `eu-de`. + * `resource_groups` - (List) The resource group based selector. + * `tags` - (List) The tag based selector. + +* `resource_group` - (String) The resource group name for the policy. By default, Policy will be created in `default` Resource Group. + +* `scoped_resources` - (List) List of scoped Schematics resources targeted by the policy. +Nested scheme for **scoped_resources**: + * `id` - (String) Schematics resource Id. + * `kind` - (String) Name of the Schematics automation resource. + * Constraints: Allowable values are: `workspace`, `action`, `system`, `environment`, `blueprint`. + +* `state` - (List) User defined status of the Schematics object. +Nested scheme for **state**: + * `set_at` - (String) When the User who set the state of the Object. + * `set_by` - (String) Name of the User who set the state of the Object. + * `state` - (String) User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution. + * Constraints: Allowable values are: `draft`, `live`, `locked`, `disable`. + +* `tags` - (List) Tags for the Schematics customization policy. + +* `target` - (List) The objects for the Schematics policy. +Nested scheme for **target**: + * `selector_ids` - (List) Static selectors of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy. + * `selector_kind` - (String) Types of schematics object selector. + * Constraints: Allowable values are: `ids`, `scoped`. + * `selector_scope` - (List) Selectors to dynamically list of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy. + Nested scheme for **selector_scope**: + * `kind` - (String) Name of the Schematics automation resource. + * Constraints: Allowable values are: `workspace`, `action`, `system`, `environment`, `blueprint`. + * `locations` - (List) The location based selector. + * Constraints: Allowable list items are: `us-south`, `us-east`, `eu-gb`, `eu-de`. + * `resource_groups` - (List) The resource group based selector. + * `tags` - (List) The tag based selector. + +* `updated_at` - (String) The policy updation time. + diff --git a/website/docs/r/en_destination_huawei.html.markdown b/website/docs/r/en_destination_huawei.html.markdown index c287d34c6a..e1772d4068 100644 --- a/website/docs/r/en_destination_huawei.html.markdown +++ b/website/docs/r/en_destination_huawei.html.markdown @@ -21,7 +21,7 @@ resource "ibm_en_destination_huawei" "huawei_en_destination" { config { params { client_id = "5237288990" - client_secret = "36228ghutwervhudokmksiegfevssavdvywvwww" + client_secret = "36228ghutwervhudokmksiegfevssavdvywvwww" // pragma: allowlist secret pre_prod = false } } diff --git a/website/docs/r/schematics_agent.html.markdown b/website/docs/r/schematics_agent.html.markdown new file mode 100644 index 0000000000..f887254854 --- /dev/null +++ b/website/docs/r/schematics_agent.html.markdown @@ -0,0 +1,204 @@ +--- +layout: "ibm" +page_title: "IBM : ibm_schematics_agent" +description: |- + Manages schematics_agent. +subcategory: "Schematics" +--- + +# ibm_schematics_agent + +Provides a resource for schematics_agent. This allows schematics_agent to be created, updated and deleted. + +## Example Usage + +```hcl +resource "ibm_schematics_agent" "schematics_agent_instance" { + agent_infrastructure { + infra_type = "ibm_kubernetes" + cluster_id = "cluster_id" + cluster_resource_group = "cluster_resource_group" + cos_instance_name = "cos_instance_name" + cos_bucket_name = "cos_bucket_name" + cos_bucket_region = "cos_bucket_region" + } + agent_inputs { + name = "name" + value = "value" + use_default = true + metadata { + type = "boolean" + aliases = [ "aliases" ] + description = "description" + cloud_data_type = "cloud_data_type" + default_value = "default_value" + link_status = "normal" + secure = true + immutable = true + hidden = true + required = true + options = [ "options" ] + min_value = 1 + max_value = 1 + min_length = 1 + max_length = 1 + matches = "matches" + position = 1 + group_by = "group_by" + source = "source" + } + link = "link" + } + agent_kpi { + availability_indicator = "available" + lifecycle_indicator = "consistent" + percent_usage_indicator = "percent_usage_indicator" + application_indicators = [ null ] + infra_indicators = [ null ] + } + agent_location = "us-south" + agent_metadata { + name = "purpose" + value = ["git", "terraform", "ansible"] + } + description = "Create Agent" + name = "MyDevAgent" + resource_group = "Default" + schematics_location = "us-south" + user_state { + state = "enable" + set_by = "set_by" + set_at = "2021-01-31T09:44:12Z" + } + version = "v1.0.0" +} +``` + +## Argument Reference + +Review the argument reference that you can specify for your resource. + +* `agent_infrastructure` - (Required, List) The infrastructure parameters used by the agent. +Nested scheme for **agent_infrastructure**: + * `cluster_id` - (Optional, String) The cluster ID where agent services will be running. + * `cluster_resource_group` - (Optional, String) The resource group of the cluster (is it required?). + * `cos_bucket_name` - (Optional, String) The COS bucket name used to store the logs. + * `cos_bucket_region` - (Optional, String) The COS bucket region. + * `cos_instance_name` - (Optional, String) The COS instance name to store the agent logs. + * `infra_type` - (Optional, String) Type of target agent infrastructure. + * Constraints: Allowable values are: `ibm_kubernetes`, `ibm_openshift`, `ibm_satellite`. +* `agent_inputs` - (Optional, List) Additional input variables for the agent. +Nested scheme for **agent_inputs**: + * `link` - (Computed, String) The reference link to the variable value By default the expression points to `$self.value`. + * `metadata` - (Optional, List) An user editable metadata for the variables. + Nested scheme for **metadata**: + * `aliases` - (Optional, List) The list of aliases for the variable name. + * `cloud_data_type` - (Optional, String) Cloud data type of the variable. eg. resource_group_id, region, vpc_id. + * `default_value` - (Optional, String) Default value for the variable only if the override value is not specified. + * `description` - (Optional, String) The description of the meta data. + * `group_by` - (Optional, String) The display name of the group this variable belongs to. + * `hidden` - (Optional, Boolean) If **true**, the variable is not displayed on UI or Command line. + * `immutable` - (Optional, Boolean) Is the variable readonly ?. + * `link_status` - (Optional, String) The status of the link. + * Constraints: Allowable values are: `normal`, `broken`. + * `matches` - (Optional, String) The regex for the variable value. + * `max_length` - (Optional, Integer) The maximum length of the variable value. Applicable for the string type. + * `max_value` - (Optional, Integer) The maximum value of the variable. Applicable for the integer type. + * `min_length` - (Optional, Integer) The minimum length of the variable value. Applicable for the string type. + * `min_value` - (Optional, Integer) The minimum value of the variable. Applicable for the integer type. + * `options` - (Optional, List) The list of possible values for this variable. If type is **integer** or **date**, then the array of string is converted to array of integers or date during the runtime. + * `position` - (Optional, Integer) The relative position of this variable in a list. + * `required` - (Optional, Boolean) If the variable required?. + * `secure` - (Optional, Boolean) Is the variable secure or sensitive ?. + * `source` - (Optional, String) The source of this meta-data. + * `type` - (Optional, String) Type of the variable. + * Constraints: Allowable values are: `boolean`, `string`, `integer`, `date`, `array`, `list`, `map`, `complex`, `link`. + * `name` - (Optional, String) The name of the variable. For example, `name = "inventory username"`. + * `use_default` - (Optional, Boolean) True, will ignore the data in the value attribute, instead the data in metadata.default_value will be used. + * `value` - (Optional, String) The value for the variable or reference to the value. For example, `value = ""`. **Note** The SSH key should contain `\n` at the end of the key details in case of command line or API calls. +* `agent_kpi` - (Optional, List) Schematics Agent key performance indicators. +Nested scheme for **agent_kpi**: + * `application_indicators` - (Optional, List) Agent application key performance indicators. + * `availability_indicator` - (Optional, String) Overall availability indicator reported by the agent. + * Constraints: Allowable values are: `available`, `unavailable`, `error`. + * `infra_indicators` - (Optional, List) Agent infrastructure key performance indicators. + * `lifecycle_indicator` - (Optional, String) Overall lifecycle indicator reported by the agents. + * Constraints: Allowable values are: `consistent`, `inconsistent`, `obselete`. + * `percent_usage_indicator` - (Optional, String) Percentage usage of the agent resources. +* `agent_location` - (Required, String) The location where agent is deployed in the user environment. +* `agent_metadata` - (Optional, List) The metadata of an agent. +Nested scheme for **agent_metadata**: + * `name` - (Optional, String) Name of the metadata. + * `value` - (Optional, List) Value of the metadata name. +* `description` - (Optional, String) Agent description. +* `name` - (Required, String) The name of the agent (must be unique, for an account). +* `resource_group` - (Required, String) The resource-group name for the agent. By default, agent will be registered in Default Resource Group. +* `schematics_location` - (Required, String) List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics. + * Constraints: Allowable values are: `us-south`, `us-east`, `eu-gb`, `eu-de`. +* `tags` - (Optional, List) Tags for the agent. +* `user_state` - (Optional, List) User defined status of the agent. +Nested scheme for **user_state**: + * `set_at` - (Computed, String) When the User who set the state of the Object. + * `set_by` - (Computed, String) Name of the User who set the state of the Object. + * `state` - (Optional, String) User-defined states * `enable` Agent is enabled by the user. * `disable` Agent is disbaled by the user. + * Constraints: Allowable values are: `enable`, `disable`. +* `version` - (Required, String) Agent version. + +## Attribute Reference + +In addition to all argument references listed, you can access the following attribute references after your resource is created. + +* `id` - The unique identifier of the schematics_agent. +* `agent_crn` - (String) The agent crn, obtained from the Schematics agent deployment configuration. +* `created_at` - (String) The agent creation date-time. +* `creation_by` - (String) The email address of an user who created the agent. +* `recent_deploy_job` - (List) Post-installations checks for Agent health. +Nested scheme for **recent_deploy_job**: + * `agent_id` - (String) Id of the agent. + * `agent_version` - (String) Agent version. + * `is_redeployed` - (Boolean) True, when the same version of the agent was redeployed. + * `job_id` - (String) Job Id. + * `log_url` - (String) URL to the full agent deployment job logs. + * `status_code` - (String) Final result of the agent deployment job. + * Constraints: Allowable values are: `pending`, `in-progress`, `success`, `failed`. + * `status_message` - (String) The outcome of the agent deployment job, in a formatted log string. + * `updated_at` - (String) The agent deploy job updation time. + * `updated_by` - (String) Email address of user who ran the agent deploy job. +* `recent_health_job` - (List) Agent health check. +Nested scheme for **recent_health_job**: + * `agent_id` - (String) Id of the agent. + * `agent_version` - (String) Agent version. + * `job_id` - (String) Job Id. + * `log_url` - (String) URL to the full health-check job logs. + * `status_code` - (String) Final result of the health-check job. + * Constraints: Allowable values are: `pending`, `in-progress`, `success`, `failed`. + * `status_message` - (String) The outcome of the health-check job, in a formatted log string. + * `updated_at` - (String) The agent health check job updation time. + * `updated_by` - (String) Email address of user who ran the agent health check job. +* `recent_prs_job` - (List) Run a pre-requisite scanner for deploying agent. +Nested scheme for **recent_prs_job**: + * `agent_id` - (String) Id of the agent. + * `agent_version` - (String) Agent version. + * `job_id` - (String) Job Id. + * `log_url` - (String) URL to the full pre-requisite scanner job logs. + * `status_code` - (String) Final result of the pre-requisite scanner job. + * Constraints: Allowable values are: `pending`, `in-progress`, `success`, `failed`. + * `status_message` - (String) The outcome of the pre-requisite scanner job, in a formatted log string. + * `updated_at` - (String) The agent prs job updation time. + * `updated_by` - (String) Email address of user who ran the agent prs job. +* `system_state` - (List) Computed state of the agent. +Nested scheme for **system_state**: + * `status_code` - (String) Agent Status. + * Constraints: Allowable values are: `error`, `normal`, `in_progress`, `pending`, `draft`. + * `status_message` - (String) The agent status message. +* `updated_at` - (String) The agent registration updation time. +* `updated_by` - (String) Email address of user who updated the agent registration. + +## Import + +You can import the `ibm_schematics_agent` resource by using `id`. The agent resource id. + +# Syntax +``` +$ terraform import ibm_schematics_agent.schematics_agent +``` diff --git a/website/docs/r/schematics_agent_deploy.html.markdown b/website/docs/r/schematics_agent_deploy.html.markdown new file mode 100644 index 0000000000..37e01124a2 --- /dev/null +++ b/website/docs/r/schematics_agent_deploy.html.markdown @@ -0,0 +1,57 @@ +--- +layout: "ibm" +page_title: "IBM : ibm_schematics_agent_deploy" +description: |- + Manages schematics_agent_deploy. +subcategory: "Schematics" +--- + +# ibm_schematics_agent_deploy + +Provides a resource for schematics_agent_deploy. This allows schematics_agent_deploy to be created, updated and deleted. + +## Example Usage + +```hcl +resource "ibm_schematics_agent_deploy" "schematics_agent_deploy_instance" { + agent_id = "agent_id" +} +``` + +## Argument Reference + +Review the argument reference that you can specify for your resource. + +* `agent_id` - (Required, Forces new resource, String) Agent ID to get the details of agent. +* `force` - (Optional, Boolean) Equivalent to -force options in the command line, default is false. + +## Attribute Reference + +In addition to all argument references listed, you can access the following attribute references after your resource is created. + +* `id` - The unique identifier of the schematics_agent_deploy. +* `agent_version` - (String) Agent version. +* `is_redeployed` - (Boolean) True, when the same version of the agent was redeployed. +* `job_id` - (String) Job Id. +* `log_url` - (String) URL to the full agent deployment job logs. +* `status_code` - (String) Final result of the agent deployment job. + * Constraints: Allowable values are: `pending`, `in-progress`, `success`, `failed`. +* `status_message` - (String) The outcome of the agent deployment job, in a formatted log string. +* `updated_at` - (String) The agent deploy job updation time. +* `updated_by` - (String) Email address of user who ran the agent deploy job. + +## Import + +You can import the `ibm_schematics_agent_deploy` resource by using `agent_id`. +The `agent_id` property can be formed from `agent_id`, and `agent_id` in the following format: + +``` +/ +``` +* `agent_id`: A string. Agent ID to get the details of agent. +* `agent_id`: A string. Agent ID to get the details of agent. + +# Syntax +``` +$ terraform import ibm_schematics_agent_deploy.schematics_agent_deploy / +``` diff --git a/website/docs/r/schematics_agent_health.html.markdown b/website/docs/r/schematics_agent_health.html.markdown new file mode 100644 index 0000000000..ba2b16c6e2 --- /dev/null +++ b/website/docs/r/schematics_agent_health.html.markdown @@ -0,0 +1,56 @@ +--- +layout: "ibm" +page_title: "IBM : ibm_schematics_agent_health" +description: |- + Manages schematics_agent_health. +subcategory: "Schematics" +--- + +# ibm_schematics_agent_health + +Provides a resource for schematics_agent_health. This allows schematics_agent_health to be created, updated and deleted. + +## Example Usage + +```hcl +resource "ibm_schematics_agent_health" "schematics_agent_health_instance" { + agent_id = "agent_id" +} +``` + +## Argument Reference + +Review the argument reference that you can specify for your resource. + +* `agent_id` - (Required, Forces new resource, String) Agent ID to get the details of agent. +* `force` - (Optional, Boolean) Equivalent to -force options in the command line, default is false. + +## Attribute Reference + +In addition to all argument references listed, you can access the following attribute references after your resource is created. + +* `id` - The unique identifier of the schematics_agent_health. +* `agent_version` - (String) Agent version. +* `job_id` - (String) Job Id. +* `log_url` - (String) URL to the full health-check job logs. +* `status_code` - (String) Final result of the health-check job. + * Constraints: Allowable values are: `pending`, `in-progress`, `success`, `failed`. +* `status_message` - (String) The outcome of the health-check job, in a formatted log string. +* `updated_at` - (String) The agent health check job updation time. +* `updated_by` - (String) Email address of user who ran the agent health check job. + +## Import + +You can import the `ibm_schematics_agent_health` resource by using `agent_id`. +The `agent_id` property can be formed from `agent_id`, and `agent_id` in the following format: + +``` +/ +``` +* `agent_id`: A string. Agent ID to get the details of agent. +* `agent_id`: A string. Agent ID to get the details of agent. + +# Syntax +``` +$ terraform import ibm_schematics_agent_health.schematics_agent_health / +``` diff --git a/website/docs/r/schematics_agent_prs.html.markdown b/website/docs/r/schematics_agent_prs.html.markdown new file mode 100644 index 0000000000..a813565834 --- /dev/null +++ b/website/docs/r/schematics_agent_prs.html.markdown @@ -0,0 +1,56 @@ +--- +layout: "ibm" +page_title: "IBM : ibm_schematics_agent_prs" +description: |- + Manages schematics_agent_prs. +subcategory: "Schematics" +--- + +# ibm_schematics_agent_prs + +Provides a resource for schematics_agent_prs. This allows schematics_agent_prs to be created, updated and deleted. + +## Example Usage + +```hcl +resource "ibm_schematics_agent_prs" "schematics_agent_prs_instance" { + agent_id = "agent_id" +} +``` + +## Argument Reference + +Review the argument reference that you can specify for your resource. + +* `agent_id` - (Required, Forces new resource, String) Agent ID to get the details of agent. +* `force` - (Optional, Boolean) Equivalent to -force options in the command line, default is false. + +## Attribute Reference + +In addition to all argument references listed, you can access the following attribute references after your resource is created. + +* `id` - The unique identifier of the schematics_agent_prs. +* `agent_version` - (String) Agent version. +* `job_id` - (String) Job Id. +* `log_url` - (String) URL to the full pre-requisite scanner job logs. +* `status_code` - (String) Final result of the pre-requisite scanner job. + * Constraints: Allowable values are: `pending`, `in-progress`, `success`, `failed`. +* `status_message` - (String) The outcome of the pre-requisite scanner job, in a formatted log string. +* `updated_at` - (String) The agent prs job updation time. +* `updated_by` - (String) Email address of user who ran the agent prs job. + +## Import + +You can import the `ibm_schematics_agent_prs` resource by using `agent_id`. +The `agent_id` property can be formed from `agent_id`, and `agent_id` in the following format: + +``` +/ +``` +* `agent_id`: A string. Agent ID to get the details of agent. +* `agent_id`: A string. Agent ID to get the details of agent. + +# Syntax +``` +$ terraform import ibm_schematics_agent_prs.schematics_agent_prs / +``` diff --git a/website/docs/r/schematics_policy.html.markdown b/website/docs/r/schematics_policy.html.markdown new file mode 100644 index 0000000000..e80add1a42 --- /dev/null +++ b/website/docs/r/schematics_policy.html.markdown @@ -0,0 +1,124 @@ +--- +layout: "ibm" +page_title: "IBM : ibm_schematics_policy" +description: |- + Manages schematics_policy. +subcategory: "Schematics" +--- + +# ibm_schematics_policy + +Provides a resource for schematics_policy. This allows schematics_policy to be created, updated and deleted. + +## Example Usage + +```hcl +resource "ibm_schematics_policy" "schematics_policy_instance" { + description = "Policy for job execution of secured workspaces on agent1" + name = "Agent1-DevWS" + parameter { + agent_assignment_policy_parameter { + selector_kind = "ids" + selector_ids = [ "selector_ids" ] + selector_scope { + kind = "workspace" + tags = [ "tags" ] + resource_groups = [ "resource_groups" ] + locations = [ "us-south" ] + } + } + } + resource_group = "Default" + scoped_resources { + kind = "workspace" + id = "id" + } + state { + state = "draft" + set_by = "set_by" + set_at = "2021-01-31T09:44:12Z" + } + target { + selector_kind = "ids" + selector_ids = [ "selector_ids" ] + selector_scope { + kind = "workspace" + tags = [ "tags" ] + resource_groups = [ "resource_groups" ] + locations = [ "us-south" ] + } + } +} +``` + +## Argument Reference + +Review the argument reference that you can specify for your resource. + +* `name` - (Required, String) Name of Schematics customization policy. +* `description` - (Optional, String) The description of Schematics customization policy. +* `kind` - (Optional, String) Policy kind or categories for managing and deriving policy decision * `agent_assignment_policy` Agent assignment policy for job execution. + * Constraints: Allowable values are: `agent_assignment_policy`. +* `location` - (Optional, String) List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics. + * Constraints: Allowable values are: `us-south`, `us-east`, `eu-gb`, `eu-de`. +* `parameter` - (Optional, List) The parameter to tune the Schematics policy. +Nested scheme for **parameter**: + * `agent_assignment_policy_parameter` - (Optional, List) Parameters for the `agent_assignment_policy`. + Nested scheme for **agent_assignment_policy_parameter**: + * `selector_ids` - (Optional, List) The static selectors of schematics object ids (workspace, action or blueprint) for the Schematics policy. + * `selector_kind` - (Optional, String) Types of schematics object selector. + * Constraints: Allowable values are: `ids`, `scoped`. + * `selector_scope` - (Optional, List) The selectors to dynamically list of schematics object ids (workspace, action or blueprint) for the Schematics policy. + Nested scheme for **selector_scope**: + * `kind` - (Optional, String) Name of the Schematics automation resource. + * Constraints: Allowable values are: `workspace`, `action`, `system`, `environment`, `blueprint`. + * `locations` - (Optional, List) The location based selector. + * Constraints: Allowable list items are: `us-south`, `us-east`, `eu-gb`, `eu-de`. + * `resource_groups` - (Optional, List) The resource group based selector. + * `tags` - (Optional, List) The tag based selector. +* `resource_group` - (Optional, String) The resource group name for the policy. By default, Policy will be created in `default` Resource Group. +* `scoped_resources` - (Optional, List) List of scoped Schematics resources targeted by the policy. +Nested scheme for **scoped_resources**: + * `id` - (Optional, String) Schematics resource Id. + * `kind` - (Optional, String) Name of the Schematics automation resource. + * Constraints: Allowable values are: `workspace`, `action`, `system`, `environment`, `blueprint`. +* `state` - (Optional, List) User defined status of the Schematics object. +Nested scheme for **state**: + * `set_at` - (Computed, String) When the User who set the state of the Object. + * `set_by` - (Computed, String) Name of the User who set the state of the Object. + * `state` - (Optional, String) User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution. + * Constraints: Allowable values are: `draft`, `live`, `locked`, `disable`. +* `tags` - (Optional, List) Tags for the Schematics customization policy. +* `target` - (Optional, List) The objects for the Schematics policy. +Nested scheme for **target**: + * `selector_ids` - (Optional, List) Static selectors of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy. + * `selector_kind` - (Optional, String) Types of schematics object selector. + * Constraints: Allowable values are: `ids`, `scoped`. + * `selector_scope` - (Optional, List) Selectors to dynamically list of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy. + Nested scheme for **selector_scope**: + * `kind` - (Optional, String) Name of the Schematics automation resource. + * Constraints: Allowable values are: `workspace`, `action`, `system`, `environment`, `blueprint`. + * `locations` - (Optional, List) The location based selector. + * Constraints: Allowable list items are: `us-south`, `us-east`, `eu-gb`, `eu-de`. + * `resource_groups` - (Optional, List) The resource group based selector. + * `tags` - (Optional, List) The tag based selector. + +## Attribute Reference + +In addition to all argument references listed, you can access the following attribute references after your resource is created. + +* `id` - The unique identifier of the schematics_policy. +* `account` - (String) The Account id. +* `created_at` - (String) The policy creation time. +* `created_by` - (String) The user who created the policy. +* `crn` - (String) The policy CRN. +* `updated_at` - (String) The policy updation time. + +## Import + +You can import the `ibm_schematics_policy` resource by using `id`. The system generated policy Id. + +# Syntax +``` +$ terraform import ibm_schematics_policy.schematics_policy +``` From 0e15cb1869c290e1dd92227d24c29f95d4842eac Mon Sep 17 00:00:00 2001 From: jared-hayes-dev <87541270+jared-hayes-dev@users.noreply.github.com> Date: Tue, 24 Oct 2023 21:10:23 -0500 Subject: [PATCH 04/58] Add path to invoke update without determining changed CRN data, add validator for name of secrets (#4859) * update + validate * invalid name tests * updated to add new tf only flag for update + tests * update false positives * update secret int * update docs * secrets audit * pr comments * updated tests --------- Co-authored-by: Jared Hayes Co-authored-by: HARINI KANTAREDDY --- .secrets.baseline | 42 +++-- ...rce_ibm_container_ingress_secret_opaque.go | 33 +++- ...bm_container_ingress_secret_opaque_test.go | 147 +++++++++++++++++- ...source_ibm_container_ingress_secret_tls.go | 26 +++- ...e_ibm_container_ingress_secret_tls_test.go | 120 +++++++++++++- ...tainer_ingress_secret_opaque.html.markdown | 7 +- ...container_ingress_secret_tls.html.markdown | 1 + 7 files changed, 358 insertions(+), 18 deletions(-) diff --git a/.secrets.baseline b/.secrets.baseline index 3716318f1b..e568372e40 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -3,7 +3,7 @@ "files": "go.mod|go.sum|.*.map|^.secrets.baseline$", "lines": null }, - "generated_at": "2023-10-17T18:07:42Z", + "generated_at": "2023-10-18T18:46:12Z", "plugins_used": [ { "name": "AWSKeyDetector" @@ -792,7 +792,7 @@ "hashed_secret": "1f614c2eb6b3da22d89bd1b9fd47d7cb7c8fc670", "is_secret": false, "is_verified": false, - "line_number": 3248, + "line_number": 3250, "type": "Secret Keyword", "verified_result": null }, @@ -800,7 +800,7 @@ "hashed_secret": "7abfce65b8504403afc25c9790f358d513dfbcc6", "is_secret": false, "is_verified": false, - "line_number": 3261, + "line_number": 3263, "type": "Secret Keyword", "verified_result": null }, @@ -808,7 +808,7 @@ "hashed_secret": "0c2d85bf9a9b1579b16f220a4ea8c3d62b2e24b1", "is_secret": false, "is_verified": false, - "line_number": 3302, + "line_number": 3304, "type": "Secret Keyword", "verified_result": null } @@ -2772,7 +2772,17 @@ "hashed_secret": "b732fb611fd46a38e8667f9972e0cde777fbe37f", "is_secret": false, "is_verified": false, - "line_number": 373, + "line_number": 403, + "type": "Secret Keyword", + "verified_result": null + } + ], + "ibm/service/kubernetes/resource_ibm_container_ingress_secret_opaque_test.go": [ + { + "hashed_secret": "5df29b80b97dab81130058ac9af4a9b9d1c091b4", + "is_secret": false, + "is_verified": false, + "line_number": 247, "type": "Secret Keyword", "verified_result": null } @@ -2782,7 +2792,17 @@ "hashed_secret": "b732fb611fd46a38e8667f9972e0cde777fbe37f", "is_secret": false, "is_verified": false, - "line_number": 267, + "line_number": 292, + "type": "Secret Keyword", + "verified_result": null + } + ], + "ibm/service/kubernetes/resource_ibm_container_ingress_secret_tls_test.go": [ + { + "hashed_secret": "5df29b80b97dab81130058ac9af4a9b9d1c091b4", + "is_secret": false, + "is_verified": false, + "line_number": 216, "type": "Secret Keyword", "verified_result": null } @@ -2920,7 +2940,7 @@ "hashed_secret": "83747cea2b26d7652ed39218ddcdb1461c570535", "is_secret": false, "is_verified": false, - "line_number": 95, + "line_number": 94, "type": "Hex High Entropy String", "verified_result": null } @@ -3088,7 +3108,7 @@ "hashed_secret": "3046d9f6cfaaeea6eed9bb7a4ab010fe49b0cfd4", "is_secret": false, "is_verified": false, - "line_number": 231, + "line_number": 235, "type": "Secret Keyword", "verified_result": null }, @@ -3096,7 +3116,7 @@ "hashed_secret": "b732fb611fd46a38e8667f9972e0cde777fbe37f", "is_secret": false, "is_verified": false, - "line_number": 410, + "line_number": 414, "type": "Secret Keyword", "verified_result": null } @@ -3244,7 +3264,7 @@ "hashed_secret": "347cd9c53ff77d41a7b22aa56c7b4efaf54658e3", "is_secret": false, "is_verified": false, - "line_number": 46, + "line_number": 48, "type": "Secret Keyword", "verified_result": null } @@ -3616,7 +3636,7 @@ "hashed_secret": "4d55af37dbbb6a42088d917caa1ca25428ec42c9", "is_secret": false, "is_verified": false, - "line_number": 788, + "line_number": 849, "type": "Secret Keyword", "verified_result": null } diff --git a/ibm/service/kubernetes/resource_ibm_container_ingress_secret_opaque.go b/ibm/service/kubernetes/resource_ibm_container_ingress_secret_opaque.go index d3879c1e23..8dee8ac3f7 100644 --- a/ibm/service/kubernetes/resource_ibm_container_ingress_secret_opaque.go +++ b/ibm/service/kubernetes/resource_ibm_container_ingress_secret_opaque.go @@ -45,6 +45,9 @@ func ResourceIBMContainerIngressSecretOpaque() *schema.Resource { Required: true, Description: "Secret name", ForceNew: true, + ValidateFunc: validate.InvokeValidator( + "ibm_container_ingress_secret_opaque", + "secret_name"), }, "secret_namespace": { Type: schema.TypeString, @@ -73,6 +76,16 @@ func ResourceIBMContainerIngressSecretOpaque() *schema.Resource { Computed: true, Description: "Status of the secret", }, + "update_secret": { + Type: schema.TypeInt, + Optional: true, + Description: "Updates secret from secrets manager if value is changed (increment each usage)", + }, + "last_updated_timestamp": { + Type: schema.TypeString, + Computed: true, + Description: "Timestamp secret was last updated", + }, "fields": { Type: schema.TypeSet, Required: true, @@ -122,6 +135,16 @@ func ResourceIBMContainerIngressSecretOpaqueValidator() *validate.ResourceValida CloudDataType: "cluster", CloudDataRange: []string{"resolved_to:id"}}) + validateSchema = append(validateSchema, validate.ValidateSchema{ + Identifier: "secret_name", + ValidateFunctionIdentifier: validate.ValidateRegexpLen, + Type: validate.TypeString, + Required: true, + Regexp: `^([a-z0-9]([-a-z0-9]*[a-z0-9])?(.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)$`, + MinValueLength: 1, + MaxValueLength: 63, + }) + iBMContainerIngressInstanceValidator := validate.ResourceValidator{ResourceName: "ibm_container_ingress_secret_opaque", Schema: validateSchema} return &iBMContainerIngressInstanceValidator } @@ -205,6 +228,7 @@ func resourceIBMContainerIngressSecretOpaqueRead(d *schema.ResourceData, meta in d.Set("persistence", ingressSecretConfig.Persistence) d.Set("user_managed", ingressSecretConfig.UserManaged) d.Set("status", ingressSecretConfig.Status) + d.Set("last_updated_timestamp", ingressSecretConfig.LastUpdatedTimestamp) if len(ingressSecretConfig.Fields) > 0 { d.Set("fields", flex.FlattenOpaqueSecret(ingressSecretConfig.Fields)) @@ -261,6 +285,7 @@ func resourceIBMContainerIngressSecretOpaqueUpdate(d *schema.ResourceData, meta Namespace: secretNamespace, } + ingressAPI := ingressClient.Ingresses() if d.HasChange("fields") { oldList, newList := d.GetChange("fields") @@ -276,7 +301,6 @@ func resourceIBMContainerIngressSecretOpaqueUpdate(d *schema.ResourceData, meta remove := os.Difference(ns).List() add := ns.Difference(os).List() - ingressAPI := ingressClient.Ingresses() if len(remove) > 0 { actualSecret, err := ingressAPI.GetIngressSecret(cluster, secretName, secretNamespace) if err != nil { @@ -342,8 +366,13 @@ func resourceIBMContainerIngressSecretOpaqueUpdate(d *schema.ResourceData, meta return err } } + } else if d.HasChange("update_secret") { + // user wants to force an upstream secret update from secrets manager onto kube cluster w/out changing crn + _, err = ingressAPI.UpdateIngressSecret(params) + if err != nil { + return err + } } - return resourceIBMContainerIngressSecretOpaqueRead(d, meta) } diff --git a/ibm/service/kubernetes/resource_ibm_container_ingress_secret_opaque_test.go b/ibm/service/kubernetes/resource_ibm_container_ingress_secret_opaque_test.go index 5aa03e59c9..6e214768b2 100644 --- a/ibm/service/kubernetes/resource_ibm_container_ingress_secret_opaque_test.go +++ b/ibm/service/kubernetes/resource_ibm_container_ingress_secret_opaque_test.go @@ -5,6 +5,7 @@ package kubernetes_test import ( "fmt" + "regexp" "strings" "testing" @@ -70,7 +71,124 @@ func TestAccIBMContainerIngressSecretOpaque_Basic(t *testing.T) { ResourceName: "ibm_container_ingress_secret_opaque.secret", ImportState: true, ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"region", "issuer_name"}, + ImportStateVerifyIgnore: []string{"region", "issuer_name", "update_secret"}, + }, + }, + }) +} + +func TestAccIBMContainerIngressSecretOpaque_InvalidName(t *testing.T) { + secretName := fmt.Sprintf(")-tf-container-ingress-secret-name-opaque-%d", acctest.RandIntRange(10, 100)) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIBMContainerIngressSecretDestroy, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMContainerIngressSecretOpaqueBasic(secretName), + ExpectError: regexp.MustCompile(".*should match regexp"), + }, + }, + }) +} + +func TestAccIBMContainerIngressSecretOpaque_ForceUpdate(t *testing.T) { + secretName := fmt.Sprintf("tf-container-ingress-secret-name-opaque-update-%d", acctest.RandIntRange(10, 100)) + + var originalTS string + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIBMContainerIngressSecretDestroy, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMContainerIngressSecretOpaqueForceUpdateCreate(secretName), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "cluster", acc.ClusterName), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "secret_name", secretName), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "secret_namespace", "ibm-cert-store"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "persistence", "true"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "type", "Opaque"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "fields.#", "1"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "user_managed", "true"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "status", "created"), + resource.TestCheckResourceAttrWith("ibm_container_ingress_secret_opaque.secret", "last_updated_timestamp", func(value string) error { + originalTS = value + return nil + }), + ), + }, + { + Config: testAccCheckIBMContainerIngressSecretOpaqueForceUpdate(secretName), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "cluster", acc.ClusterName), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "secret_name", secretName), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "secret_namespace", "ibm-cert-store"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "persistence", "true"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "type", "Opaque"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "fields.#", "1"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "user_managed", "true"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "status", "created"), + resource.TestCheckResourceAttrWith("ibm_container_ingress_secret_opaque.secret", "last_updated_timestamp", func(value string) error { + if originalTS == value { + return fmt.Errorf("error timestamp not changed, indicates update didnt go through. original: %s, actual: %s", originalTS, value) + } + originalTS = value // check if another update will execute without a change to `update_secret` + return nil + }), + ), + }, + { + Config: testAccCheckIBMContainerIngressSecretOpaqueForceUpdate(secretName), + ExpectNonEmptyPlan: false, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "cluster", acc.ClusterName), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "secret_name", secretName), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "secret_namespace", "ibm-cert-store"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "persistence", "true"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "type", "Opaque"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "fields.#", "1"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "user_managed", "true"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_opaque.secret", "status", "created"), + resource.TestCheckResourceAttrWith("ibm_container_ingress_secret_opaque.secret", "last_updated_timestamp", func(value string) error { + if originalTS != value { + return fmt.Errorf("error timestamp has changed, indicates update was called again even though no modification of fields. exptected: %s, actual: %s", originalTS, value) + } + return nil + }), + ), + }, + { + ResourceName: "ibm_container_ingress_secret_opaque.secret", + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{"region", "issuer_name", "update_secret"}, }, }, }) @@ -134,3 +252,30 @@ resource "ibm_container_ingress_secret_opaque" "secret" { } }`, secretName, "ibm-cert-store", acc.ClusterName, true, acc.SecretCRN) } + +func testAccCheckIBMContainerIngressSecretOpaqueForceUpdateCreate(secretName string) string { + return fmt.Sprintf(` +resource "ibm_container_ingress_secret_opaque" "secret" { + secret_name = "%s" + secret_namespace = "%s" + cluster = "%s" + persistence = "%t" + fields { + crn = "%s" + } +}`, secretName, "ibm-cert-store", acc.ClusterName, true, acc.SecretCRN) +} + +func testAccCheckIBMContainerIngressSecretOpaqueForceUpdate(secretName string) string { + return fmt.Sprintf(` +resource "ibm_container_ingress_secret_opaque" "secret" { + secret_name = "%s" + secret_namespace = "%s" + cluster = "%s" + persistence = "%t" + update_secret = "%d" + fields { + crn = "%s" + } +}`, secretName, "ibm-cert-store", acc.ClusterName, true, 1, acc.SecretCRN) +} diff --git a/ibm/service/kubernetes/resource_ibm_container_ingress_secret_tls.go b/ibm/service/kubernetes/resource_ibm_container_ingress_secret_tls.go index aa7b4ec694..625e1d7286 100644 --- a/ibm/service/kubernetes/resource_ibm_container_ingress_secret_tls.go +++ b/ibm/service/kubernetes/resource_ibm_container_ingress_secret_tls.go @@ -44,6 +44,10 @@ func ResourceIBMContainerIngressSecretTLS() *schema.Resource { Required: true, Description: "Secret name", ForceNew: true, + ValidateFunc: validate.InvokeValidator( + "ibm_container_ingress_secret_tls", + "secret_name", + ), }, "secret_namespace": { Type: schema.TypeString, @@ -91,6 +95,11 @@ func ResourceIBMContainerIngressSecretTLS() *schema.Resource { Computed: true, Description: "Timestamp secret was last updated", }, + "update_secret": { + Type: schema.TypeInt, + Optional: true, + Description: "Updates secret from secrets manager if value is changed (increment each usage)", + }, }, } } @@ -106,6 +115,15 @@ func ResourceIBMContainerIngressSecretTLSValidator() *validate.ResourceValidator CloudDataType: "cluster", CloudDataRange: []string{"resolved_to:id"}}) + validateSchema = append(validateSchema, validate.ValidateSchema{ + Identifier: "secret_name", + ValidateFunctionIdentifier: validate.ValidateRegexpLen, + Type: validate.TypeString, + Required: true, + Regexp: `^([a-z0-9]([-a-z0-9]*[a-z0-9])?(.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)$`, + MinValueLength: 1, + MaxValueLength: 63, + }) iBMContainerIngressInstanceValidator := validate.ResourceValidator{ResourceName: "ibm_container_ingress_secret_tls", Schema: validateSchema} return &iBMContainerIngressInstanceValidator } @@ -228,14 +246,20 @@ func resourceIBMContainerIngressSecretTLSUpdate(d *schema.ResourceData, meta int Namespace: secretNamespace, } + ingressAPI := ingressClient.Ingresses() if d.HasChange("cert_crn") { params.CRN = d.Get("cert_crn").(string) - ingressAPI := ingressClient.Ingresses() _, err := ingressAPI.UpdateIngressSecret(params) if err != nil { return err } + } else if d.HasChange("update_secret") { + // user wants to force an upstream secret update from secrets manager onto kube cluster w/out changing crn + _, err = ingressAPI.UpdateIngressSecret(params) + if err != nil { + return err + } } return resourceIBMContainerIngressSecretTLSRead(d, meta) diff --git a/ibm/service/kubernetes/resource_ibm_container_ingress_secret_tls_test.go b/ibm/service/kubernetes/resource_ibm_container_ingress_secret_tls_test.go index 36be6b606a..d2edc360de 100644 --- a/ibm/service/kubernetes/resource_ibm_container_ingress_secret_tls_test.go +++ b/ibm/service/kubernetes/resource_ibm_container_ingress_secret_tls_test.go @@ -5,6 +5,7 @@ package kubernetes_test import ( "fmt" + "regexp" "strings" "testing" @@ -64,7 +65,112 @@ func TestAccIBMContainerIngressSecretTLS_Basic(t *testing.T) { ResourceName: "ibm_container_ingress_secret_tls.secret", ImportState: true, ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"region", "issuer_name"}, + ImportStateVerifyIgnore: []string{"region", "issuer_name", "update_secret"}, + }, + }, + }) +} + +func TestAccIBMContainerIngressSecretTLS_InvalidName(t *testing.T) { + secretName := fmt.Sprintf("-)tf-container-ingress-secret-name-%d", acctest.RandIntRange(10, 100)) + + resource.Test(t, resource.TestCase{ + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIBMContainerIngressSecretDestroy, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMContainerIngressSecretTLSBasic(secretName), + ExpectError: regexp.MustCompile(".*should match regexp"), + }, + }, + }) +} + +// test ability to flip update_secret field to get upstream secret update from secrets manager instance via ingress API +func TestAccIBMContainerIngressSecretTLS_BasicForceUpdate(t *testing.T) { + secretName := fmt.Sprintf("tf-container-ingress-secret-name-%d", acctest.RandIntRange(10, 100)) + + var originalTS string + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIBMContainerIngressSecretDestroy, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMContainerIngressSecretTLSBasic(secretName), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_tls.secret", "cluster", acc.ClusterName), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_tls.secret", "secret_name", secretName), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_tls.secret", "secret_namespace", "ibm-cert-store"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_tls.secret", "cert_crn", acc.CertCRN), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_tls.secret", "persistence", "true"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_tls.secret", "type", "TLS"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_tls.secret", "user_managed", "true"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_tls.secret", "status", "created"), + + resource.TestCheckResourceAttrWith("ibm_container_ingress_secret_tls.secret", "last_updated_timestamp", func(value string) error { + originalTS = value + return nil + }), + ), + }, + { + Config: testAccCheckIBMContainerIngressSecretTLSForceUpdate(secretName), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_tls.secret", "secret_name", secretName), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_tls.secret", "secret_namespace", "ibm-cert-store"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_tls.secret", "cert_crn", acc.CertCRN), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_tls.secret", "user_managed", "true"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_tls.secret", "status", "created"), + resource.TestCheckResourceAttrWith("ibm_container_ingress_secret_tls.secret", "last_updated_timestamp", func(value string) error { + if originalTS == value { + return fmt.Errorf("error timestamp not changed, indicates update didnt go through. original: %s, actual: %s", originalTS, value) + } + originalTS = value // check if another update will execute without a change to `update_secret` + return nil + }), + ), + }, + { + Config: testAccCheckIBMContainerIngressSecretTLSForceUpdate(secretName), + ExpectNonEmptyPlan: false, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_tls.secret", "secret_name", secretName), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_tls.secret", "secret_namespace", "ibm-cert-store"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_tls.secret", "cert_crn", acc.CertCRN), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_tls.secret", "user_managed", "true"), + resource.TestCheckResourceAttr( + "ibm_container_ingress_secret_tls.secret", "status", "created"), + resource.TestCheckResourceAttrWith("ibm_container_ingress_secret_tls.secret", "last_updated_timestamp", func(value string) error { + if originalTS != value { + return fmt.Errorf("error timestamp has changed, indicates update was called again even though no modification of fields. exptected: %s, actual: %s", originalTS, value) + } + return nil + }), + ), + }, + { + ResourceName: "ibm_container_ingress_secret_tls.secret", + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{"region", "issuer_name", "update_secret"}, }, }, }) @@ -121,3 +227,15 @@ resource "ibm_container_ingress_secret_tls" "secret" { persistence = "%t" }`, acc.ClusterName, secretName, "ibm-cert-store", acc.UpdatedCertCRN, true) } + +func testAccCheckIBMContainerIngressSecretTLSForceUpdate(secretName string) string { + return fmt.Sprintf(` +resource "ibm_container_ingress_secret_tls" "secret" { + cluster = "%s" + secret_name = "%s" + secret_namespace = "%s" + cert_crn = "%s" + persistence = "%t" + update_secret = "%d" +}`, acc.ClusterName, secretName, "ibm-cert-store", acc.CertCRN, true, 1) +} diff --git a/website/docs/r/container_ingress_secret_opaque.html.markdown b/website/docs/r/container_ingress_secret_opaque.html.markdown index cd963413b9..3dac4048f5 100644 --- a/website/docs/r/container_ingress_secret_opaque.html.markdown +++ b/website/docs/r/container_ingress_secret_opaque.html.markdown @@ -34,7 +34,9 @@ Review the argument references that you can specify for your resource. - `secret_name` - (Required, String) The name of the kubernetes secret. - `secret_namespace` - (Required, String) The namespace of the kubernetes secret. - `persistence` - (Bool) Persist the secret data in your cluster. If the secret is later deleted from the command line or OpenShift web console, the secret is automatically re-created in your cluster. - `fields` - (Required, List) List of fields of the opaque secret. +- `update_secret` - (Optional, Integer) This argument is used to force update from upstream secrets manager instance that stores secret. Increment the value to force an update to your Ingress secret for changes made to the upstream secrets manager secret. +- `fields` - (Required, List) List of fields of the opaque secret. + Nested scheme for `fields`: - `crn` - (Required, String) Secrets manager secret crn - `field_name` - (String) Field name @@ -47,7 +49,8 @@ In addition to all argument reference list, you can access the following attribu - `status` - (String) The Status of the secret. - `user_managed` - (Bool) Indicates whether the secret was created by a user. - `persistence` - (Bool) Persist the secret data in your cluster. If the secret is later deleted from the command line or OpenShift web console, the secret is automatically re-created in your cluster. - `fields` - (List) List of fields of the opaque secret. +- `fields` - (List) List of fields of the opaque secret. + Nested scheme for `fields`: - `crn` - (String) Secrets manager secret crn - `field_name` - (String) Requested field name diff --git a/website/docs/r/container_ingress_secret_tls.html.markdown b/website/docs/r/container_ingress_secret_tls.html.markdown index cd6d587ddf..ccd53ba987 100644 --- a/website/docs/r/container_ingress_secret_tls.html.markdown +++ b/website/docs/r/container_ingress_secret_tls.html.markdown @@ -27,6 +27,7 @@ Review the argument references that you can specify for your resource. - `secret_name` - (Required, String) The name of the kubernetes secret. - `secret_namespace` - (Required, string) The namespace of the kubernetes secret. - `cert_crn` - (Required, string) The Secrets Manager crn for a secret of type certificate. +- `update_secret` - (Optional, Integer) This argument is used to force update from upstream secrets manager instance that stores secret. Increment the value to force an update to your Ingress secret for changes made to the upstream secrets manager secret. ## Attribute reference In addition to all argument reference list, you can access the following attribute reference after your resource is created. From 684aa13610c253c08084ac6eb417a852e8a08a0c Mon Sep 17 00:00:00 2001 From: lalitpaliwal-ibm2 <141144429+lalitpaliwal-ibm2@users.noreply.github.com> Date: Wed, 25 Oct 2023 07:49:24 +0530 Subject: [PATCH 05/58] Feat: ReplicationEnabledField for Storage Pool (#4875) * Feat: ReplicationEnabledField for Storage Pool * Update go mod dependancy * Update go mod file * Update go mod file * Resolve travis issue * Update power-go-client --- .../data_source_ibm_pi_storage_pool_capacity.go | 8 ++++++-- ...data_source_ibm_pi_storage_pools_capacity.go | 17 +++++++++++++---- .../docs/d/pi_storage_pool_capacity.markdown | 1 + .../docs/d/pi_storage_pools_capacity.markdown | 1 + 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/ibm/service/power/data_source_ibm_pi_storage_pool_capacity.go b/ibm/service/power/data_source_ibm_pi_storage_pool_capacity.go index f48c7696ae..84500c05d0 100644 --- a/ibm/service/power/data_source_ibm_pi_storage_pool_capacity.go +++ b/ibm/service/power/data_source_ibm_pi_storage_pool_capacity.go @@ -54,6 +54,11 @@ func DataSourceIBMPIStoragePoolCapacity() *schema.Resource { Computed: true, Description: "Total pool capacity (GB)", }, + ReplicationEnabled: { + Type: schema.TypeBool, + Computed: true, + Description: "Replication status of the storage pool", + }, }, } } @@ -75,10 +80,9 @@ func dataSourceIBMPIStoragePoolCapacityRead(ctx context.Context, d *schema.Resou } d.SetId(fmt.Sprintf("%s/%s", cloudInstanceID, storagePool)) - d.Set(MaxAllocationSize, *sp.MaxAllocationSize) d.Set(StorageType, sp.StorageType) d.Set(TotalCapacity, sp.TotalCapacity) - + d.Set(ReplicationEnabled, *sp.ReplicationEnabled) return nil } diff --git a/ibm/service/power/data_source_ibm_pi_storage_pools_capacity.go b/ibm/service/power/data_source_ibm_pi_storage_pools_capacity.go index bd3f3a7a7c..4e64ec5209 100644 --- a/ibm/service/power/data_source_ibm_pi_storage_pools_capacity.go +++ b/ibm/service/power/data_source_ibm_pi_storage_pools_capacity.go @@ -28,6 +28,7 @@ const ( StoragePool = "storage_pool" StorageType = "storage_type" TotalCapacity = "total_capacity" + ReplicationEnabled = "replication_enabled" ) func DataSourceIBMPIStoragePoolsCapacity() *schema.Resource { @@ -71,6 +72,11 @@ func DataSourceIBMPIStoragePoolsCapacity() *schema.Resource { Computed: true, Description: "Total pool capacity (GB)", }, + ReplicationEnabled: { + Type: schema.TypeBool, + Computed: true, + Description: "Replication status of the storage pool", + }, }, }, }, @@ -79,6 +85,7 @@ func DataSourceIBMPIStoragePoolsCapacity() *schema.Resource { } func dataSourceIBMPIStoragePoolsCapacityRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + sess, err := meta.(conns.ClientSession).IBMPISession() if err != nil { return diag.FromErr(err) @@ -109,11 +116,13 @@ func dataSourceIBMPIStoragePoolsCapacityRead(ctx context.Context, d *schema.Reso result := make([]map[string]interface{}, 0, len(spc.StoragePoolsCapacity)) for _, sp := range spc.StoragePoolsCapacity { data := map[string]interface{}{ - MaxAllocationSize: *sp.MaxAllocationSize, - PoolName: sp.PoolName, - StorageType: sp.StorageType, - TotalCapacity: sp.TotalCapacity, + MaxAllocationSize: *sp.MaxAllocationSize, + PoolName: sp.PoolName, + StorageType: sp.StorageType, + TotalCapacity: sp.TotalCapacity, + ReplicationEnabled: *sp.ReplicationEnabled, } + result = append(result, data) } d.Set(StoragePoolsCapacity, result) diff --git a/website/docs/d/pi_storage_pool_capacity.markdown b/website/docs/d/pi_storage_pool_capacity.markdown index 41bc24aa53..a38e01eb79 100644 --- a/website/docs/d/pi_storage_pool_capacity.markdown +++ b/website/docs/d/pi_storage_pool_capacity.markdown @@ -47,3 +47,4 @@ In addition to all argument reference list, you can access the following attribu - `max_allocation_size` - (Integer) Maximum allocation storage size (GB). - `storage_type` - (String) Storage type of the storage pool. - `total_capacity` - (Integer) Total pool capacity (GB). +- `replication_enabled` - (Boolean) Replication status of the storage pool. diff --git a/website/docs/d/pi_storage_pools_capacity.markdown b/website/docs/d/pi_storage_pools_capacity.markdown index f5955bbc2a..f85cecb0d3 100644 --- a/website/docs/d/pi_storage_pools_capacity.markdown +++ b/website/docs/d/pi_storage_pools_capacity.markdown @@ -56,3 +56,4 @@ In addition to all argument reference list, you can access the following attribu - `pool_name` - (String) The pool name. - `storage_type` - (String) Storage type of the storage pool. - `total_capacity` - (Integer) Total pool capacity (GB). + - `replication_enabled` - (Boolean) Replication status of the storage pool. From bb303798423be5702137181e702dd7da91619a57 Mon Sep 17 00:00:00 2001 From: Divya-Singh1693 <68578534+Divya-Singh1693@users.noreply.github.com> Date: Wed, 25 Oct 2023 09:06:06 +0530 Subject: [PATCH 06/58] added resources for custom email destination (#4821) Co-authored-by: HARINI KANTAREDDY --- go.mod | 2 +- go.sum | 4 +- ibm/provider/provider.go | 148 +++--- ..._source_ibm_en_destination_custom_email.go | 179 ++++++++ ...ce_ibm_en_destination_custom_email_test.go | 67 +++ ...source_ibm_en_subscription_custom_email.go | 297 ++++++++++++ ...e_ibm_en_subscription_custom_email_test.go | 84 ++++ ...esource_ibm_en_destination_custom_email.go | 274 ++++++++++++ ...ce_ibm_en_destination_custom_email_test.go | 147 ++++++ ...source_ibm_en_subscription_custom_email.go | 423 ++++++++++++++++++ ...e_ibm_en_subscription_custom_email_test.go | 171 +++++++ .../en_destination_custom_email.html.markdown | 55 +++ ...copy.markdown => en_sources.html.markdown} | 0 ...en_subscription_custom_email.html.markdown | 66 +++ .../d/en_subscription_email.html.markdown | 4 +- .../en_destination_custom_email.html.markdown | 95 ++++ ...en_subscription_custom_email.html.markdown | 111 +++++ 17 files changed, 2050 insertions(+), 77 deletions(-) create mode 100644 ibm/service/eventnotification/data_source_ibm_en_destination_custom_email.go create mode 100644 ibm/service/eventnotification/data_source_ibm_en_destination_custom_email_test.go create mode 100644 ibm/service/eventnotification/data_source_ibm_en_subscription_custom_email.go create mode 100644 ibm/service/eventnotification/data_source_ibm_en_subscription_custom_email_test.go create mode 100644 ibm/service/eventnotification/resource_ibm_en_destination_custom_email.go create mode 100644 ibm/service/eventnotification/resource_ibm_en_destination_custom_email_test.go create mode 100644 ibm/service/eventnotification/resource_ibm_en_subscription_custom_email.go create mode 100644 ibm/service/eventnotification/resource_ibm_en_subscription_custom_email_test.go create mode 100644 website/docs/d/en_destination_custom_email.html.markdown rename website/docs/d/{en_sources.html copy.markdown => en_sources.html.markdown} (100%) create mode 100644 website/docs/d/en_subscription_custom_email.html.markdown create mode 100644 website/docs/r/en_destination_custom_email.html.markdown create mode 100644 website/docs/r/en_subscription_custom_email.html.markdown diff --git a/go.mod b/go.mod index f10ff4b8e9..e02d593965 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ require ( github.com/IBM/code-engine-go-sdk v0.0.0-20230606173928-4863db061918 github.com/IBM/container-registry-go-sdk v1.1.0 github.com/IBM/continuous-delivery-go-sdk v1.2.0 - github.com/IBM/event-notifications-go-admin-sdk v0.2.4 + github.com/IBM/event-notifications-go-admin-sdk v0.2.7 github.com/IBM/eventstreams-go-sdk v1.4.0 github.com/IBM/go-sdk-core/v3 v3.2.4 github.com/IBM/go-sdk-core/v5 v5.14.1 diff --git a/go.sum b/go.sum index 551ce399de..9eb528a9f1 100644 --- a/go.sum +++ b/go.sum @@ -127,8 +127,8 @@ github.com/IBM/container-registry-go-sdk v1.1.0 h1:sYyknIod8R4RJZQqAheiduP6wbSTp github.com/IBM/container-registry-go-sdk v1.1.0/go.mod h1:4TwsCnQtVfZ4Vkapy/KPvQBKFc3VOyUZYkwRU4FTPrs= github.com/IBM/continuous-delivery-go-sdk v1.2.0 h1:FcgB5EvVrZLUnyR4S/mBocHHo9gJ5IQkSlCa6nqmr2A= github.com/IBM/continuous-delivery-go-sdk v1.2.0/go.mod h1:oW51tS5/MDCcEM7lUvjK1H9GFC/oKsRbyYfmvGyMGmw= -github.com/IBM/event-notifications-go-admin-sdk v0.2.4 h1:WWUxwrKQxvExEK+xaAQOs6gP54LvJDPi3KatDTMfwh0= -github.com/IBM/event-notifications-go-admin-sdk v0.2.4/go.mod h1:1TlGAFP47DybbovJfHtYYgSI8xpLL8Q0wao6vsAlb6c= +github.com/IBM/event-notifications-go-admin-sdk v0.2.7 h1:Y6YPiXZO3/oAhs7rY6ekowJAsf9J05g2UFq3wjFkuCs= +github.com/IBM/event-notifications-go-admin-sdk v0.2.7/go.mod h1:iI6/TJt4GQBDsl8NYzoIYGnsNjMG0kOVIEl7mcM5v1E= github.com/IBM/eventstreams-go-sdk v1.2.0 h1:eP0afHArMGjwhGqvZAhhu/3EDKRch2JehpveqF1TUjs= github.com/IBM/eventstreams-go-sdk v1.2.0/go.mod h1:2tuAxaYLctfqfr5jvyqSrxxEQGMwYPm3yJGWSj85YVQ= github.com/IBM/eventstreams-go-sdk v1.4.0 h1:yS/Ns29sBOe8W2tynQmz9HTKqQZ0ckse4Py5Oy/F2rM= diff --git a/ibm/provider/provider.go b/ibm/provider/provider.go index 237a8adb6e..7f33857001 100644 --- a/ibm/provider/provider.go +++ b/ibm/provider/provider.go @@ -773,44 +773,46 @@ func Provider() *schema.Provider { "ibm_cbr_rule": contextbasedrestrictions.DataSourceIBMCbrRule(), // Added for Event Notifications - "ibm_en_source": eventnotification.DataSourceIBMEnSource(), - "ibm_en_destinations": eventnotification.DataSourceIBMEnDestinations(), - "ibm_en_topic": eventnotification.DataSourceIBMEnTopic(), - "ibm_en_topics": eventnotification.DataSourceIBMEnTopics(), - "ibm_en_subscriptions": eventnotification.DataSourceIBMEnSubscriptions(), - "ibm_en_destination_webhook": eventnotification.DataSourceIBMEnWebhookDestination(), - "ibm_en_destination_android": eventnotification.DataSourceIBMEnFCMDestination(), - "ibm_en_destination_ios": eventnotification.DataSourceIBMEnAPNSDestination(), - "ibm_en_destination_chrome": eventnotification.DataSourceIBMEnChromeDestination(), - "ibm_en_destination_firefox": eventnotification.DataSourceIBMEnFirefoxDestination(), - "ibm_en_destination_slack": eventnotification.DataSourceIBMEnSlackDestination(), - "ibm_en_subscription_sms": eventnotification.DataSourceIBMEnSMSSubscription(), - "ibm_en_subscription_email": eventnotification.DataSourceIBMEnEmailSubscription(), - "ibm_en_subscription_webhook": eventnotification.DataSourceIBMEnWebhookSubscription(), - "ibm_en_subscription_android": eventnotification.DataSourceIBMEnFCMSubscription(), - "ibm_en_subscription_ios": eventnotification.DataSourceIBMEnFCMSubscription(), - "ibm_en_subscription_chrome": eventnotification.DataSourceIBMEnFCMSubscription(), - "ibm_en_subscription_firefox": eventnotification.DataSourceIBMEnFCMSubscription(), - "ibm_en_subscription_slack": eventnotification.DataSourceIBMEnSlackSubscription(), - "ibm_en_subscription_safari": eventnotification.DataSourceIBMEnFCMSubscription(), - "ibm_en_destination_safari": eventnotification.DataSourceIBMEnSafariDestination(), - "ibm_en_destination_msteams": eventnotification.DataSourceIBMEnMSTeamsDestination(), - "ibm_en_subscription_msteams": eventnotification.DataSourceIBMEnFCMSubscription(), - "ibm_en_destination_cf": eventnotification.DataSourceIBMEnCFDestination(), - "ibm_en_subscription_cf": eventnotification.DataSourceIBMEnFCMSubscription(), - "ibm_en_destination_pagerduty": eventnotification.DataSourceIBMEnPagerDutyDestination(), - "ibm_en_subscription_pagerduty": eventnotification.DataSourceIBMEnFCMSubscription(), - "ibm_en_integration": eventnotification.DataSourceIBMEnIntegration(), - "ibm_en_integrations": eventnotification.DataSourceIBMEnIntegrations(), - "ibm_en_destination_sn": eventnotification.DataSourceIBMEnServiceNowDestination(), - "ibm_en_subscription_sn": eventnotification.DataSourceIBMEnFCMSubscription(), - "ibm_en_destination_ce": eventnotification.DataSourceIBMEnCodeEngineDestination(), - "ibm_en_subscription_ce": eventnotification.DataSourceIBMEnFCMSubscription(), - "ibm_en_destination_cos": eventnotification.DataSourceIBMEnCOSDestination(), - "ibm_en_subscription_cos": eventnotification.DataSourceIBMEnFCMSubscription(), - "ibm_en_destination_huawei": eventnotification.DataSourceIBMEnHuaweiDestination(), - "ibm_en_subscription_huawei": eventnotification.DataSourceIBMEnFCMSubscription(), - "ibm_en_sources": eventnotification.DataSourceIBMEnSources(), + "ibm_en_source": eventnotification.DataSourceIBMEnSource(), + "ibm_en_destinations": eventnotification.DataSourceIBMEnDestinations(), + "ibm_en_topic": eventnotification.DataSourceIBMEnTopic(), + "ibm_en_topics": eventnotification.DataSourceIBMEnTopics(), + "ibm_en_subscriptions": eventnotification.DataSourceIBMEnSubscriptions(), + "ibm_en_destination_webhook": eventnotification.DataSourceIBMEnWebhookDestination(), + "ibm_en_destination_android": eventnotification.DataSourceIBMEnFCMDestination(), + "ibm_en_destination_ios": eventnotification.DataSourceIBMEnAPNSDestination(), + "ibm_en_destination_chrome": eventnotification.DataSourceIBMEnChromeDestination(), + "ibm_en_destination_firefox": eventnotification.DataSourceIBMEnFirefoxDestination(), + "ibm_en_destination_slack": eventnotification.DataSourceIBMEnSlackDestination(), + "ibm_en_subscription_sms": eventnotification.DataSourceIBMEnSMSSubscription(), + "ibm_en_subscription_email": eventnotification.DataSourceIBMEnEmailSubscription(), + "ibm_en_subscription_webhook": eventnotification.DataSourceIBMEnWebhookSubscription(), + "ibm_en_subscription_android": eventnotification.DataSourceIBMEnFCMSubscription(), + "ibm_en_subscription_ios": eventnotification.DataSourceIBMEnFCMSubscription(), + "ibm_en_subscription_chrome": eventnotification.DataSourceIBMEnFCMSubscription(), + "ibm_en_subscription_firefox": eventnotification.DataSourceIBMEnFCMSubscription(), + "ibm_en_subscription_slack": eventnotification.DataSourceIBMEnSlackSubscription(), + "ibm_en_subscription_safari": eventnotification.DataSourceIBMEnFCMSubscription(), + "ibm_en_destination_safari": eventnotification.DataSourceIBMEnSafariDestination(), + "ibm_en_destination_msteams": eventnotification.DataSourceIBMEnMSTeamsDestination(), + "ibm_en_subscription_msteams": eventnotification.DataSourceIBMEnFCMSubscription(), + "ibm_en_destination_cf": eventnotification.DataSourceIBMEnCFDestination(), + "ibm_en_subscription_cf": eventnotification.DataSourceIBMEnFCMSubscription(), + "ibm_en_destination_pagerduty": eventnotification.DataSourceIBMEnPagerDutyDestination(), + "ibm_en_subscription_pagerduty": eventnotification.DataSourceIBMEnFCMSubscription(), + "ibm_en_integration": eventnotification.DataSourceIBMEnIntegration(), + "ibm_en_integrations": eventnotification.DataSourceIBMEnIntegrations(), + "ibm_en_destination_sn": eventnotification.DataSourceIBMEnServiceNowDestination(), + "ibm_en_subscription_sn": eventnotification.DataSourceIBMEnFCMSubscription(), + "ibm_en_destination_ce": eventnotification.DataSourceIBMEnCodeEngineDestination(), + "ibm_en_subscription_ce": eventnotification.DataSourceIBMEnFCMSubscription(), + "ibm_en_destination_cos": eventnotification.DataSourceIBMEnCOSDestination(), + "ibm_en_subscription_cos": eventnotification.DataSourceIBMEnFCMSubscription(), + "ibm_en_destination_huawei": eventnotification.DataSourceIBMEnHuaweiDestination(), + "ibm_en_subscription_huawei": eventnotification.DataSourceIBMEnFCMSubscription(), + "ibm_en_sources": eventnotification.DataSourceIBMEnSources(), + "ibm_en_destination_custom_email": eventnotification.DataSourceIBMEnCustomEmailDestination(), + "ibm_en_subscription_custom_email": eventnotification.DataSourceIBMEnCustomEmailSubscription(), // Added for Toolchain "ibm_cd_toolchain": cdtoolchain.DataSourceIBMCdToolchain(), @@ -1288,40 +1290,42 @@ func Provider() *schema.Provider { "ibm_cbr_rule": contextbasedrestrictions.ResourceIBMCbrRule(), // Added for Event Notifications - "ibm_en_source": eventnotification.ResourceIBMEnSource(), - "ibm_en_topic": eventnotification.ResourceIBMEnTopic(), - "ibm_en_destination_webhook": eventnotification.ResourceIBMEnWebhookDestination(), - "ibm_en_destination_android": eventnotification.ResourceIBMEnFCMDestination(), - "ibm_en_destination_chrome": eventnotification.ResourceIBMEnChromeDestination(), - "ibm_en_destination_firefox": eventnotification.ResourceIBMEnFirefoxDestination(), - "ibm_en_destination_ios": eventnotification.ResourceIBMEnAPNSDestination(), - "ibm_en_destination_slack": eventnotification.ResourceIBMEnSlackDestination(), - "ibm_en_subscription_sms": eventnotification.ResourceIBMEnSMSSubscription(), - "ibm_en_subscription_email": eventnotification.ResourceIBMEnEmailSubscription(), - "ibm_en_subscription_webhook": eventnotification.ResourceIBMEnWebhookSubscription(), - "ibm_en_subscription_android": eventnotification.ResourceIBMEnFCMSubscription(), - "ibm_en_subscription_ios": eventnotification.ResourceIBMEnFCMSubscription(), - "ibm_en_subscription_chrome": eventnotification.ResourceIBMEnFCMSubscription(), - "ibm_en_subscription_firefox": eventnotification.ResourceIBMEnFCMSubscription(), - "ibm_en_subscription_slack": eventnotification.ResourceIBMEnSlackSubscription(), - "ibm_en_subscription_safari": eventnotification.ResourceIBMEnFCMSubscription(), - "ibm_en_destination_safari": eventnotification.ResourceIBMEnSafariDestination(), - "ibm_en_destination_msteams": eventnotification.ResourceIBMEnMSTeamsDestination(), - "ibm_en_subscription_msteams": eventnotification.ResourceIBMEnFCMSubscription(), - "ibm_en_destination_cf": eventnotification.ResourceIBMEnCFDestination(), - "ibm_en_subscription_cf": eventnotification.ResourceIBMEnFCMSubscription(), - "ibm_en_destination_pagerduty": eventnotification.ResourceIBMEnPagerDutyDestination(), - "ibm_en_subscription_pagerduty": eventnotification.ResourceIBMEnFCMSubscription(), - "ibm_en_integration": eventnotification.ResourceIBMEnIntegration(), - "ibm_en_destination_sn": eventnotification.ResourceIBMEnServiceNowDestination(), - "ibm_en_subscription_sn": eventnotification.ResourceIBMEnFCMSubscription(), - "ibm_en_destination_ce": eventnotification.ResourceIBMEnCodeEngineDestination(), - "ibm_en_subscription_ce": eventnotification.ResourceIBMEnFCMSubscription(), - "ibm_en_destination_cos": eventnotification.ResourceIBMEnCOSDestination(), - "ibm_en_subscription_cos": eventnotification.ResourceIBMEnFCMSubscription(), - "ibm_en_destination_huawei": eventnotification.ResourceIBMEnHuaweiDestination(), - "ibm_en_subscription_huawei": eventnotification.ResourceIBMEnFCMSubscription(), - "ibm_en_ibmsource": eventnotification.ResourceIBMEnIBMSource(), + "ibm_en_source": eventnotification.ResourceIBMEnSource(), + "ibm_en_topic": eventnotification.ResourceIBMEnTopic(), + "ibm_en_destination_webhook": eventnotification.ResourceIBMEnWebhookDestination(), + "ibm_en_destination_android": eventnotification.ResourceIBMEnFCMDestination(), + "ibm_en_destination_chrome": eventnotification.ResourceIBMEnChromeDestination(), + "ibm_en_destination_firefox": eventnotification.ResourceIBMEnFirefoxDestination(), + "ibm_en_destination_ios": eventnotification.ResourceIBMEnAPNSDestination(), + "ibm_en_destination_slack": eventnotification.ResourceIBMEnSlackDestination(), + "ibm_en_subscription_sms": eventnotification.ResourceIBMEnSMSSubscription(), + "ibm_en_subscription_email": eventnotification.ResourceIBMEnEmailSubscription(), + "ibm_en_subscription_webhook": eventnotification.ResourceIBMEnWebhookSubscription(), + "ibm_en_subscription_android": eventnotification.ResourceIBMEnFCMSubscription(), + "ibm_en_subscription_ios": eventnotification.ResourceIBMEnFCMSubscription(), + "ibm_en_subscription_chrome": eventnotification.ResourceIBMEnFCMSubscription(), + "ibm_en_subscription_firefox": eventnotification.ResourceIBMEnFCMSubscription(), + "ibm_en_subscription_slack": eventnotification.ResourceIBMEnSlackSubscription(), + "ibm_en_subscription_safari": eventnotification.ResourceIBMEnFCMSubscription(), + "ibm_en_destination_safari": eventnotification.ResourceIBMEnSafariDestination(), + "ibm_en_destination_msteams": eventnotification.ResourceIBMEnMSTeamsDestination(), + "ibm_en_subscription_msteams": eventnotification.ResourceIBMEnFCMSubscription(), + "ibm_en_destination_cf": eventnotification.ResourceIBMEnCFDestination(), + "ibm_en_subscription_cf": eventnotification.ResourceIBMEnFCMSubscription(), + "ibm_en_destination_pagerduty": eventnotification.ResourceIBMEnPagerDutyDestination(), + "ibm_en_subscription_pagerduty": eventnotification.ResourceIBMEnFCMSubscription(), + "ibm_en_integration": eventnotification.ResourceIBMEnIntegration(), + "ibm_en_destination_sn": eventnotification.ResourceIBMEnServiceNowDestination(), + "ibm_en_subscription_sn": eventnotification.ResourceIBMEnFCMSubscription(), + "ibm_en_destination_ce": eventnotification.ResourceIBMEnCodeEngineDestination(), + "ibm_en_subscription_ce": eventnotification.ResourceIBMEnFCMSubscription(), + "ibm_en_destination_cos": eventnotification.ResourceIBMEnCOSDestination(), + "ibm_en_subscription_cos": eventnotification.ResourceIBMEnFCMSubscription(), + "ibm_en_destination_huawei": eventnotification.ResourceIBMEnHuaweiDestination(), + "ibm_en_subscription_huawei": eventnotification.ResourceIBMEnFCMSubscription(), + "ibm_en_ibmsource": eventnotification.ResourceIBMEnIBMSource(), + "ibm_en_destination_custom_email": eventnotification.ResourceIBMEnCustomEmailDestination(), + "ibm_en_subscription_custom_email": eventnotification.ResourceIBMEnCustomEmailSubscription(), // Added for Toolchain "ibm_cd_toolchain": cdtoolchain.ResourceIBMCdToolchain(), diff --git a/ibm/service/eventnotification/data_source_ibm_en_destination_custom_email.go b/ibm/service/eventnotification/data_source_ibm_en_destination_custom_email.go new file mode 100644 index 0000000000..c5480a1901 --- /dev/null +++ b/ibm/service/eventnotification/data_source_ibm_en_destination_custom_email.go @@ -0,0 +1,179 @@ +// Copyright IBM Corp. 2021 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package eventnotification + +import ( + "context" + "fmt" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + en "github.com/IBM/event-notifications-go-admin-sdk/eventnotificationsv1" +) + +func DataSourceIBMEnCustomEmailDestination() *schema.Resource { + return &schema.Resource{ + ReadContext: dataSourceIBMEnCustomEmailDestinationRead, + + Schema: map[string]*schema.Schema{ + "instance_guid": { + Type: schema.TypeString, + Required: true, + Description: "Unique identifier for IBM Cloud Event Notifications instance.", + }, + "destination_id": { + Type: schema.TypeString, + Required: true, + Description: "Unique identifier for Destination.", + }, + "name": { + Type: schema.TypeString, + Computed: true, + Description: "Destination name.", + }, + "description": { + Type: schema.TypeString, + Computed: true, + Description: "Destination description.", + }, + "type": { + Type: schema.TypeString, + Computed: true, + Description: "Destination type slack.", + }, + "config": { + Type: schema.TypeList, + Computed: true, + Description: "Payload describing a destination configuration.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "params": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "domain": { + Type: schema.TypeString, + Computed: true, + Description: "The custom doamin", + }, + }, + }, + }, + }, + }, + }, + "updated_at": { + Type: schema.TypeString, + Computed: true, + Description: "Last updated time.", + }, + "subscription_count": { + Type: schema.TypeInt, + Computed: true, + Description: "Number of subscriptions.", + }, + "subscription_names": { + Type: schema.TypeList, + Computed: true, + Description: "List of subscriptions.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + }, + } +} + +func dataSourceIBMEnCustomEmailDestinationRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + enClient, err := meta.(conns.ClientSession).EventNotificationsApiV1() + if err != nil { + return diag.FromErr(err) + } + + options := &en.GetDestinationOptions{} + + options.SetInstanceID(d.Get("instance_guid").(string)) + options.SetID(d.Get("destination_id").(string)) + + result, response, err := enClient.GetDestinationWithContext(context, options) + if err != nil { + return diag.FromErr(fmt.Errorf("GetDestination failed %s\n%s", err, response)) + } + + d.SetId(fmt.Sprintf("%s/%s", *options.InstanceID, *options.ID)) + + if err = d.Set("name", result.Name); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting name: %s", err)) + } + + if result.Description != nil { + if err = d.Set("description", result.Description); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting description: %s", err)) + } + } + + if err = d.Set("type", result.Type); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting type: %s", err)) + } + + if result.Config != nil { + err = d.Set("config", enSlackDestinationFlattenConfig(*result.Config)) + if err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting config %s", err)) + } + } + + if result.SubscriptionNames != nil { + err = d.Set("subscription_names", result.SubscriptionNames) + if err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting subscription_names %s", err)) + } + } + + if err = d.Set("updated_at", flex.DateTimeToString(result.UpdatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting updated_at: %s", err)) + } + + if err = d.Set("subscription_count", flex.IntValue(result.SubscriptionCount)); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting subscription_count: %s", err)) + } + + return nil +} + +func enCustomEmailDestinationFlattenConfig(result en.DestinationConfig) (finalList []map[string]interface{}) { + finalList = []map[string]interface{}{} + finalMap := enCustomEmailDestinationConfigToMap(result) + finalList = append(finalList, finalMap) + + return finalList +} + +func enCustomEmailDestinationConfigToMap(configItem en.DestinationConfig) (configMap map[string]interface{}) { + configMap = map[string]interface{}{} + + if configItem.Params != nil { + paramsList := []map[string]interface{}{} + paramsMap := enCustomEmailDestinationConfigParamsToMap(configItem.Params) + paramsList = append(paramsList, paramsMap) + configMap["params"] = paramsList + } + + return configMap +} + +func enCustomEmailDestinationConfigParamsToMap(paramsItem en.DestinationConfigOneOfIntf) (paramsMap map[string]interface{}) { + paramsMap = map[string]interface{}{} + + params := paramsItem.(*en.DestinationConfigOneOf) + + if params.URL != nil { + paramsMap["domain"] = params.Domain + } + return paramsMap +} diff --git a/ibm/service/eventnotification/data_source_ibm_en_destination_custom_email_test.go b/ibm/service/eventnotification/data_source_ibm_en_destination_custom_email_test.go new file mode 100644 index 0000000000..da2ae0a12f --- /dev/null +++ b/ibm/service/eventnotification/data_source_ibm_en_destination_custom_email_test.go @@ -0,0 +1,67 @@ +// Copyright IBM Corp. 2021 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package eventnotification_test + +import ( + "fmt" + "testing" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccIBMEnCustomEmailDestinationDataSourceBasic(t *testing.T) { + name := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) + instanceName := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) + description := fmt.Sprintf("tf_description_%d", acctest.RandIntRange(10, 100)) + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMEnCustomEmailDestinationDataSourceConfigBasic(instanceName, name, description), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_en_destination_custom_email.en_destination_data_6", "id"), + resource.TestCheckResourceAttrSet("data.ibm_en_destination_custom_email.en_destination_data_6", "instance_guid"), + resource.TestCheckResourceAttrSet("data.ibm_en_destination_custom_email.en_destination_data_6", "name"), + resource.TestCheckResourceAttrSet("data.ibm_en_destination_custom_email.en_destination_data_6", "description"), + resource.TestCheckResourceAttrSet("data.ibm_en_destination_custom_email.en_destination_data_6", "type"), + resource.TestCheckResourceAttrSet("data.ibm_en_destination_custom_email.en_destination_data_6", "updated_at"), + resource.TestCheckResourceAttrSet("data.ibm_en_destination_custom_email.en_destination_data_6", "destination_id"), + resource.TestCheckResourceAttrSet("data.ibm_en_destination_custom_email.en_destination_data_6", "subscription_count"), + ), + }, + }, + }) +} + +func testAccCheckIBMEnCustomEmailDestinationDataSourceConfigBasic(instanceName, name, description string) string { + return fmt.Sprintf(` + resource "ibm_resource_instance" "en_destination_datasource2" { + name = "%s" + location = "us-south" + plan = "standard" + service = "event-notifications" + } + + resource "ibm_en_destination_custom_email" "en_destination_datasource_4" { + instance_guid = ibm_resource_instance.en_destination_resource.guid + name = "%s" + type = "smtp_custom" + description = "%s" + config { + params { + domain = "mailx.com" + } + } + } + + data "ibm_en_destination_custom_email" "en_destination_data_6" { + instance_guid = ibm_resource_instance.en_destination_datasource2.guid + destination_id = ibm_en_destination_custom_email.en_destination_datasource_4.destination_id + } + `, instanceName, name, description) +} diff --git a/ibm/service/eventnotification/data_source_ibm_en_subscription_custom_email.go b/ibm/service/eventnotification/data_source_ibm_en_subscription_custom_email.go new file mode 100644 index 0000000000..34fc8a66df --- /dev/null +++ b/ibm/service/eventnotification/data_source_ibm_en_subscription_custom_email.go @@ -0,0 +1,297 @@ +// Copyright IBM Corp. 2021 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package eventnotification + +import ( + "context" + "fmt" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + en "github.com/IBM/event-notifications-go-admin-sdk/eventnotificationsv1" +) + +func DataSourceIBMEnCustomEmailSubscription() *schema.Resource { + return &schema.Resource{ + ReadContext: dataSourceIBMEnCustomEmailSubscriptionRead, + + Schema: map[string]*schema.Schema{ + "instance_guid": { + Type: schema.TypeString, + Required: true, + Description: "Unique identifier for IBM Cloud Event Notifications instance.", + }, + "subscription_id": { + Type: schema.TypeString, + Required: true, + Description: "Unique identifier for result.", + }, + "name": { + Type: schema.TypeString, + Computed: true, + Description: "Subscription name.", + }, + "description": { + Type: schema.TypeString, + Computed: true, + Description: "Subscription description.", + }, + "destination_id": { + Type: schema.TypeString, + Computed: true, + Description: "The destination ID.", + }, + "topic_id": { + Type: schema.TypeString, + Computed: true, + Description: "Topic ID.", + }, + "attributes": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "add_notification_payload": { + Type: schema.TypeBool, + Computed: true, + Description: "Whether to add the notification payload to the email.", + }, + "reply_to_mail": { + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "The email address to reply to.", + }, + "reply_to_name": { + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "The email address user name to reply to.", + }, + "from_name": { + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "The email address username of source email address.", + }, + "from_email": { + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "The email from where it is sourced", + }, + "template_id_notification": { + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "The templete id for notification", + }, + "template_id_invitation": { + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "The templete id for invitation", + }, + // "invited": { + // Type: schema.TypeList, + // Optional: true, + // Computed: true, + // Description: "The email id to be invited", + // }, + // "subscribed": { + // Type: schema.TypeList, + // Optional: true, + // Computed: true, + // Description: "The Email address which should be subscribed from smtp_ibm.", + // }, + // "unsubscribed": { + // Type: schema.TypeList, + // Optional: true, + // Computed: true, + // Description: "The Email address which should be unsubscribed from smtp_ibm.", + // }, + "invited": { + Type: schema.TypeList, + Computed: true, + Description: "The invited item schema", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "email": { + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "The email address to reply to.", + }, + "updated_at": { + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "The updated date of invitation", + }, + "expires_at": { + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "The expiry date of invitation mail", + }, + }, + }, + }, + "subscribed": { + Type: schema.TypeList, + Computed: true, + Description: "The email subscribed items schema", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "email": { + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "The email address to reply to.", + }, + "updated_at": { + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "The updated date of susbcription", + }, + }, + }, + }, + "unsubscribed": { + Type: schema.TypeList, + Computed: true, + Description: "The unsusbscribed email items schema", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "email": { + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "The email address to reply to.", + }, + "updated_at": { + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "The updated date of unsusbcription", + }, + }, + }, + }, + }, + }, + }, + "updated_at": { + Type: schema.TypeString, + Computed: true, + Description: "Last updated time.", + }, + }, + } +} + +func dataSourceIBMEnCustomEmailSubscriptionRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + enClient, err := meta.(conns.ClientSession).EventNotificationsApiV1() + if err != nil { + return diag.FromErr(err) + } + + getSubscriptionOptions := &en.GetSubscriptionOptions{} + + getSubscriptionOptions.SetInstanceID(d.Get("instance_guid").(string)) + getSubscriptionOptions.SetID(d.Get("subscription_id").(string)) + + result, response, err := enClient.GetSubscriptionWithContext(context, getSubscriptionOptions) + if err != nil { + return diag.FromErr(fmt.Errorf("GetSubscriptionWithContext failed %s\n%s", err, response)) + } + + d.SetId(fmt.Sprintf("%s/%s", *getSubscriptionOptions.InstanceID, *getSubscriptionOptions.ID)) + + if err = d.Set("name", result.Name); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting name: %s", err)) + } + + if result.Description != nil { + if err = d.Set("description", result.Description); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting description: %s", err)) + } + } + if err = d.Set("updated_at", result.UpdatedAt); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting updated_at: %s", err)) + } + + if err = d.Set("destination_id", result.DestinationID); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting destination_id: %s", err)) + } + + if err = d.Set("topic_id", result.TopicID); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting topic_id: %s", err)) + } + + if result.Attributes != nil { + if err = d.Set("attributes", enEmailSubscriptionFlattenAttributes(result.Attributes)); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting attributes %s", err)) + } + } + + return nil +} + +func enCustomEmailSubscriptionFlattenAttributes(result en.SubscriptionAttributesIntf) (finalList []map[string]interface{}) { + finalList = []map[string]interface{}{} + + attributes := result.(*en.SubscriptionAttributes) + + finalMap := enCustomEmailSubscriptionToMap(attributes) + // finalList = append(finalList, finalMap) + // invitedmap := make(map[string]interface{}) + // if attributes.Invited != nil { + // invitedmap["invited"] = attributes.Invited + // } + // finalList = append(finalList, invitedmap) + // subscribedmap := make(map[string]interface{}) + // if attributes.Subscribed != nil { + // subscribedmap["subscribed"] = attributes.Subscribed + // } + // finalList = append(finalList, subscribedmap) + // unsubscribedmap := make(map[string]interface{}) + // if attributes.Unsubscribed != nil { + // unsubscribedmap["unsubscribed"] = attributes.Unsubscribed + // } + // finalList = append(finalList, unsubscribedmap) + finalList = append(finalList, finalMap) + + return finalList +} + +func enCustomEmailSubscriptionToMap(attributeItem *en.SubscriptionAttributes) (attributeMap map[string]interface{}) { + attributeMap = map[string]interface{}{} + + if attributeItem.AddNotificationPayload != nil { + attributeMap["add_notification_payload"] = attributeItem.AddNotificationPayload + } + if attributeItem.ReplyToMail != nil { + attributeMap["reply_to_mail"] = attributeItem.ReplyToMail + } + if attributeItem.ReplyToName != nil { + attributeMap["reply_to_name"] = attributeItem.ReplyToName + } + if attributeItem.FromName != nil { + attributeMap["from_name"] = attributeItem.FromName + } + if attributeItem.FromEmail != nil { + attributeMap["from_email"] = attributeItem.FromEmail + } + if attributeItem.TemplateIDNotification != nil { + attributeMap["template_id_notification"] = attributeItem.TemplateIDNotification + } + if attributeItem.TemplateIDInvitation != nil { + attributeMap["template_id_invitation"] = attributeItem.TemplateIDInvitation + } + return attributeMap +} diff --git a/ibm/service/eventnotification/data_source_ibm_en_subscription_custom_email_test.go b/ibm/service/eventnotification/data_source_ibm_en_subscription_custom_email_test.go new file mode 100644 index 0000000000..b3e7504975 --- /dev/null +++ b/ibm/service/eventnotification/data_source_ibm_en_subscription_custom_email_test.go @@ -0,0 +1,84 @@ +// Copyright IBM Corp. 2021 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package eventnotification_test + +import ( + "fmt" + "testing" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccIBMEnCustomEmailSubscriptionDataSourceAllArgs(t *testing.T) { + instanceName := fmt.Sprintf("tf_instance_%d", acctest.RandIntRange(10, 100)) + name := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) + description := fmt.Sprintf("tf_description_%d", acctest.RandIntRange(10, 100)) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMEnCustomEmailSubscriptionDataSourceConfig(instanceName, name, description), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_en_subscription_custom_email.data_subscription_1", "id"), + resource.TestCheckResourceAttrSet("data.ibm_en_subscription_custom_email.data_subscription_1", "instance_guid"), + resource.TestCheckResourceAttrSet("data.ibm_en_subscription_custom_email.data_subscription_1", "subscription_id"), + resource.TestCheckResourceAttrSet("data.ibm_en_subscription_custom_email.data_subscription_1", "name"), + resource.TestCheckResourceAttrSet("data.ibm_en_subscription_custom_email.data_subscription_1", "description"), + resource.TestCheckResourceAttrSet("data.ibm_en_subscription_custom_email.data_subscription_1", "updated_at"), + resource.TestCheckResourceAttrSet("data.ibm_en_subscription_custom_email.data_subscription_1", "destination_type"), + resource.TestCheckResourceAttrSet("data.ibm_en_subscription_custom_email.data_subscription_1", "destination_id"), + resource.TestCheckResourceAttrSet("data.ibm_en_subscription_custom_email.data_subscription_1", "destination_name"), + resource.TestCheckResourceAttrSet("data.ibm_en_subscription_custom_email.data_subscription_1", "topic_id"), + resource.TestCheckResourceAttrSet("data.ibm_en_subscription_custom_email.data_subscription_1", "topic_name"), + ), + }, + }, + }) +} + +func testAccCheckIBMEnCustomEmailSubscriptionDataSourceConfig(instanceName, name, description string) string { + return fmt.Sprintf(` + resource "ibm_resource_instance" "en_subscription_datasource" { + name = "%s" + location = "us-south" + plan = "standard" + service = "event-notifications" + } + + resource "ibm_en_topic" "en_topic_resource_4" { + instance_guid = ibm_resource_instance.en_subscription_datasource.guid + name = "tf_topic_name_0664" + description = "tf_topic_description_0455" + } + + + resource "ibm_en_subscription_custom_email" "en_subscription_resource_4" { + name = "%s" + description = "%s" + instance_guid = ibm_resource_instance.en_subscription_datasource.guid + topic_id = ibm_en_topic.en_topic_resource_4.topic_id + destination_id = "ibm_resource_instance.ibm_en_destination_custom_email.destination_id" + attributes { + add_notification_payload = true + reply_to_mail = "en@ibm.com" + reply_to_name = "EYS ORG" + from_name="ABC ORG" + from_mail="Testuser@mailx.com" + invited = ["testmail@mailx.com"] + + } + } + + data "ibm_en_subscription_custom_email" "data_subscription_1" { + instance_guid = ibm_resource_instance.en_subscription_datasource.guid + subscription_id = ibm_en_subscription_custom_email.en_subscription_resource_4.subscription_id + } + + `, instanceName, name, description) +} diff --git a/ibm/service/eventnotification/resource_ibm_en_destination_custom_email.go b/ibm/service/eventnotification/resource_ibm_en_destination_custom_email.go new file mode 100644 index 0000000000..2392065817 --- /dev/null +++ b/ibm/service/eventnotification/resource_ibm_en_destination_custom_email.go @@ -0,0 +1,274 @@ +// Copyright IBM Corp. 2021 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package eventnotification + +import ( + "context" + "fmt" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/go-sdk-core/v5/core" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + en "github.com/IBM/event-notifications-go-admin-sdk/eventnotificationsv1" +) + +func ResourceIBMEnCustomEmailDestination() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceIBMEnCustomEmailDestinationCreate, + ReadContext: resourceIBMEnCustomEmailDestinationRead, + UpdateContext: resourceIBMEnCustomEmailDestinationUpdate, + DeleteContext: resourceIBMEnCustomEmailDestinationDelete, + Importer: &schema.ResourceImporter{}, + + Schema: map[string]*schema.Schema{ + "instance_guid": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "Unique identifier for IBM Cloud Event Notifications instance.", + }, + "name": { + Type: schema.TypeString, + Required: true, + Description: "The Destintion name.", + }, + "type": { + Type: schema.TypeString, + Required: true, + Description: "The type of Destination type smtp_custom.", + }, + "description": { + Type: schema.TypeString, + Optional: true, + Description: "The Destination description.", + }, + "config": { + Type: schema.TypeList, + MaxItems: 1, + Optional: true, + Description: "Payload describing a destination configuration.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "params": { + Type: schema.TypeList, + MaxItems: 1, + Optional: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "domain": { + Type: schema.TypeString, + Required: true, + Description: "Domain for the Custom Domain Email Destination", + }, + }, + }, + }, + }, + }, + }, + "destination_id": { + Type: schema.TypeString, + Computed: true, + Description: "Destination ID", + }, + "updated_at": { + Type: schema.TypeString, + Computed: true, + Description: "Last updated time.", + }, + "subscription_count": { + Type: schema.TypeInt, + Computed: true, + Description: "Number of subscriptions.", + }, + "subscription_names": { + Type: schema.TypeList, + Computed: true, + Description: "List of subscriptions.", + Elem: &schema.Schema{Type: schema.TypeString}, + }, + }, + } +} + +func resourceIBMEnCustomEmailDestinationCreate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + enClient, err := meta.(conns.ClientSession).EventNotificationsApiV1() + if err != nil { + return diag.FromErr(err) + } + + options := &en.CreateDestinationOptions{} + + options.SetInstanceID(d.Get("instance_guid").(string)) + options.SetName(d.Get("name").(string)) + + options.SetType(d.Get("type").(string)) + destinationtype := d.Get("type").(string) + if _, ok := d.GetOk("description"); ok { + options.SetDescription(d.Get("description").(string)) + } + if _, ok := d.GetOk("config"); ok { + config := CustomEmaildestinationConfigMapToDestinationConfig(d.Get("config.0.params.0").(map[string]interface{}), destinationtype) + options.SetConfig(&config) + } + + result, response, err := enClient.CreateDestinationWithContext(context, options) + if err != nil { + return diag.FromErr(fmt.Errorf("CreateDestinationWithContext failed %s\n%s", err, response)) + } + + d.SetId(fmt.Sprintf("%s/%s", *options.InstanceID, *result.ID)) + + return resourceIBMEnServiceNowDestinationRead(context, d, meta) +} + +func resourceIBMEnCustomEmailDestinationRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + enClient, err := meta.(conns.ClientSession).EventNotificationsApiV1() + if err != nil { + return diag.FromErr(err) + } + + options := &en.GetDestinationOptions{} + + parts, err := flex.SepIdParts(d.Id(), "/") + if err != nil { + return diag.FromErr(err) + } + + options.SetInstanceID(parts[0]) + options.SetID(parts[1]) + + result, response, err := enClient.GetDestinationWithContext(context, options) + if err != nil { + if response != nil && response.StatusCode == 404 { + d.SetId("") + return nil + } + return diag.FromErr(fmt.Errorf("GetDestinationWithContext failed %s\n%s", err, response)) + } + + if err = d.Set("instance_guid", options.InstanceID); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting instance_guid: %s", err)) + } + + if err = d.Set("destination_id", options.ID); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting destination_id: %s", err)) + } + + if err = d.Set("name", result.Name); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting name: %s", err)) + } + + if err = d.Set("type", result.Type); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting type: %s", err)) + } + + if err = d.Set("description", result.Description); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting description: %s", err)) + } + + if result.Config != nil { + err = d.Set("config", enCustomEmailDestinationFlattenConfig(*result.Config)) + if err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting config %s", err)) + } + } + + if err = d.Set("updated_at", flex.DateTimeToString(result.UpdatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting updated_at: %s", err)) + } + + if err = d.Set("subscription_count", flex.IntValue(result.SubscriptionCount)); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting subscription_count: %s", err)) + } + + if err = d.Set("subscription_names", result.SubscriptionNames); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting subscription_names: %s", err)) + } + + return nil +} + +func resourceIBMEnCustomEmailDestinationUpdate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + enClient, err := meta.(conns.ClientSession).EventNotificationsApiV1() + if err != nil { + return diag.FromErr(err) + } + + options := &en.UpdateDestinationOptions{} + + parts, err := flex.SepIdParts(d.Id(), "/") + if err != nil { + return diag.FromErr(err) + } + + options.SetInstanceID(parts[0]) + options.SetID(parts[1]) + + if ok := d.HasChanges("name", "description", "config"); ok { + options.SetName(d.Get("name").(string)) + + if _, ok := d.GetOk("description"); ok { + options.SetDescription(d.Get("description").(string)) + } + + destinationtype := d.Get("type").(string) + if _, ok := d.GetOk("config"); ok { + config := CustomEmaildestinationConfigMapToDestinationConfig(d.Get("config.0.params.0").(map[string]interface{}), destinationtype) + options.SetConfig(&config) + } + _, response, err := enClient.UpdateDestinationWithContext(context, options) + if err != nil { + return diag.FromErr(fmt.Errorf("UpdateDestinationWithContext failed %s\n%s", err, response)) + } + + return resourceIBMEnCustomEmailDestinationRead(context, d, meta) + } + + return nil +} + +func resourceIBMEnCustomEmailDestinationDelete(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + enClient, err := meta.(conns.ClientSession).EventNotificationsApiV1() + if err != nil { + return diag.FromErr(err) + } + + options := &en.DeleteDestinationOptions{} + + parts, err := flex.SepIdParts(d.Id(), "/") + if err != nil { + return diag.FromErr(err) + } + + options.SetInstanceID(parts[0]) + options.SetID(parts[1]) + + response, err := enClient.DeleteDestinationWithContext(context, options) + if err != nil { + if response != nil && response.StatusCode == 404 { + d.SetId("") + return nil + } + return diag.FromErr(fmt.Errorf("DeleteDestinationWithContext failed %s\n%s", err, response)) + } + + d.SetId("") + + return nil +} + +func CustomEmaildestinationConfigMapToDestinationConfig(configParams map[string]interface{}, destinationtype string) en.DestinationConfig { + params := new(en.DestinationConfigOneOfCustomDomainEmailDestinationConfig) + if configParams["domain"] != nil { + params.Domain = core.StringPtr(configParams["domain"].(string)) + } + + destinationConfig := new(en.DestinationConfig) + destinationConfig.Params = params + return *destinationConfig +} diff --git a/ibm/service/eventnotification/resource_ibm_en_destination_custom_email_test.go b/ibm/service/eventnotification/resource_ibm_en_destination_custom_email_test.go new file mode 100644 index 0000000000..c57a0c93da --- /dev/null +++ b/ibm/service/eventnotification/resource_ibm_en_destination_custom_email_test.go @@ -0,0 +1,147 @@ +// Copyright IBM Corp. 2021 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package eventnotification_test + +import ( + "fmt" + "testing" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + + en "github.com/IBM/event-notifications-go-admin-sdk/eventnotificationsv1" +) + +func TestAccIBMEnCustomEmailDestinationAllArgs(t *testing.T) { + var config en.Destination + name := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) + instanceName := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) + description := fmt.Sprintf("tf_description_%d", acctest.RandIntRange(10, 100)) + newName := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) + newDescription := fmt.Sprintf("tf_description_%d", acctest.RandIntRange(10, 100)) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIBMEnServiceNowDestinationDestroy, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMEnCustomEmailDestinationConfig(instanceName, name, description), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMEnCustomEmailDestinationExists("ibm_en_destination_custom_email.en_destination_resource_1", config), + resource.TestCheckResourceAttr("ibm_en_destination_custom_email.en_destination_resource_1", "name", name), + resource.TestCheckResourceAttr("ibm_en_destination_custom_email.en_destination_resource_1", "type", "smtp_custom"), + resource.TestCheckResourceAttr("ibm_en_destination_custom_email.en_destination_resource_1", "description", description), + ), + }, + { + Config: testAccCheckIBMEnCustomEmailDestinationConfig(instanceName, newName, newDescription), + Check: resource.ComposeAggregateTestCheckFunc( + resource.TestCheckResourceAttr("ibm_en_destination_custom_email.en_destination_resource_1", "name", newName), + resource.TestCheckResourceAttr("ibm_en_destination_custom_email.en_destination_resource_1", "type", "smtp_custom"), + resource.TestCheckResourceAttr("ibm_en_destination_custom_email.en_destination_resource_1", "description", newDescription), + ), + }, + { + ResourceName: "ibm_en_destination_custom_email.en_destination_resource_1", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} + +func testAccCheckIBMEnCustomEmailDestinationConfig(instanceName, name, description string) string { + return fmt.Sprintf(` + resource "ibm_resource_instance" "en_destination_resource" { + name = "%s" + location = "us-south" + plan = "standard" + service = "event-notifications" + } + + resource "ibm_en_destination_custom_email" "en_destination_resource_1" { + instance_guid = ibm_resource_instance.en_destination_resource.guid + name = "%s" + type = "smtp_custom" + description = "%s" + config { + params { + domain = "mailx.com" + } + } + } + `, instanceName, name, description) +} + +func testAccCheckIBMEnCustomEmailDestinationExists(n string, obj en.Destination) resource.TestCheckFunc { + + return func(s *terraform.State) error { + rs, ok := s.RootModule().Resources[n] + if !ok { + return fmt.Errorf("Not found: %s", n) + } + + enClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).EventNotificationsApiV1() + if err != nil { + return err + } + + options := &en.GetDestinationOptions{} + + parts, err := flex.SepIdParts(rs.Primary.ID, "/") + if err != nil { + return err + } + + options.SetInstanceID(parts[0]) + options.SetID(parts[1]) + + result, _, err := enClient.GetDestination(options) + if err != nil { + return err + } + + obj = *result + return nil + } +} + +func testAccCheckIBMEnCustomEmailDestinationDestroy(s *terraform.State) error { + enClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).EventNotificationsApiV1() + if err != nil { + return err + } + for _, rs := range s.RootModule().Resources { + if rs.Type != "en_destination_resource_1" { + continue + } + + options := &en.GetDestinationOptions{} + + parts, err := flex.SepIdParts(rs.Primary.ID, "/") + if err != nil { + return err + } + + options.SetInstanceID(parts[0]) + options.SetID(parts[1]) + + // Try to find the key + _, response, err := enClient.GetDestination(options) + + if err == nil { + return fmt.Errorf("en_destination still exists: %s", rs.Primary.ID) + } else if response.StatusCode != 404 { + return fmt.Errorf("[ERROR] Error checking for en_destination (%s) has been destroyed: %s", rs.Primary.ID, err) + } + } + + return nil +} diff --git a/ibm/service/eventnotification/resource_ibm_en_subscription_custom_email.go b/ibm/service/eventnotification/resource_ibm_en_subscription_custom_email.go new file mode 100644 index 0000000000..ee10c86569 --- /dev/null +++ b/ibm/service/eventnotification/resource_ibm_en_subscription_custom_email.go @@ -0,0 +1,423 @@ +// Copyright IBM Corp. 2021 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package eventnotification + +import ( + "context" + "fmt" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + en "github.com/IBM/event-notifications-go-admin-sdk/eventnotificationsv1" + "github.com/IBM/go-sdk-core/v5/core" +) + +func ResourceIBMEnCustomEmailSubscription() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceIBMEnCustomEmailSubscriptionCreate, + ReadContext: resourceIBMEnCustomEmailSubscriptionRead, + UpdateContext: resourceIBMEnCustomEmailSubscriptionUpdate, + DeleteContext: resourceIBMEnCustomEmailSubscriptionDelete, + Importer: &schema.ResourceImporter{}, + + Schema: map[string]*schema.Schema{ + "instance_guid": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "Unique identifier for IBM Cloud Event Notifications instance.", + }, + "name": { + Type: schema.TypeString, + Required: true, + Description: "Subscription name.", + }, + "description": { + Type: schema.TypeString, + Optional: true, + Description: "Subscription description.", + }, + "destination_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "Destination ID.", + }, + "topic_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "Topic ID.", + }, + "attributes": { + Type: schema.TypeList, + MaxItems: 1, + Optional: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "add_notification_payload": { + Type: schema.TypeBool, + Optional: true, + Description: "Whether to add the notification payload to the email.", + }, + "reply_to_mail": { + Type: schema.TypeString, + Optional: true, + Description: "The email address to reply to.", + }, + "reply_to_name": { + Type: schema.TypeString, + Optional: true, + Description: "The name of the email address user to reply to.", + }, + "from_name": { + Type: schema.TypeString, + Optional: true, + Description: "The name of email address from which email is sourced.", + }, + "from_email": { + Type: schema.TypeString, + Optional: true, + Description: "The email from where it is sourced", + }, + "template_id_notification": { + Type: schema.TypeString, + Optional: true, + Description: "The templete id for notification", + }, + "template_id_invitation": { + Type: schema.TypeString, + Optional: true, + Description: "The templete id for invitation", + }, + "invited": { + Type: schema.TypeList, + Optional: true, + Description: "The Email address send the invite to in case of smtp_ibm.", + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "add": { + Type: schema.TypeList, + Optional: true, + Description: "The Email address which should be added to smtp_ibm.", + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "remove": { + Type: schema.TypeList, + Optional: true, + Description: "The email id to be removed in case of smtp_ibm destination type.", + Elem: &schema.Schema{Type: schema.TypeString}, + }, + }, + }, + }, + "subscription_id": { + Type: schema.TypeString, + Computed: true, + Description: "Subscription ID.", + }, + "destination_type": { + Type: schema.TypeString, + Computed: true, + Description: "The type of Destination.", + }, + "destination_name": { + Type: schema.TypeString, + Computed: true, + Description: "The Destintion name.", + }, + "topic_name": { + Type: schema.TypeString, + Computed: true, + Description: "Name of the topic.", + }, + "from": { + Type: schema.TypeString, + Computed: true, + Description: "From Email ID (it will be displayed only in case of smtp_ibm destination type).", + }, + "updated_at": { + Type: schema.TypeString, + Computed: true, + Description: "Last updated time.", + }, + }, + } +} + +func resourceIBMEnCustomEmailSubscriptionCreate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + enClient, err := meta.(conns.ClientSession).EventNotificationsApiV1() + if err != nil { + return diag.FromErr(err) + } + + options := &en.CreateSubscriptionOptions{} + + options.SetInstanceID(d.Get("instance_guid").(string)) + + options.SetName(d.Get("name").(string)) + options.SetTopicID(d.Get("topic_id").(string)) + options.SetDestinationID(d.Get("destination_id").(string)) + + if _, ok := d.GetOk("description"); ok { + options.SetDescription(d.Get("description").(string)) + } + + attributes := CustomEmailattributesMapToAttributes(d.Get("attributes.0").(map[string]interface{})) + options.SetAttributes(&attributes) + + result, response, err := enClient.CreateSubscriptionWithContext(context, options) + if err != nil { + return diag.FromErr(fmt.Errorf("CreateSubscriptionWithContext failed %s\n%s", err, response)) + } + + d.SetId(fmt.Sprintf("%s/%s", *options.InstanceID, *result.ID)) + + return resourceIBMEnCustomEmailSubscriptionRead(context, d, meta) +} + +func resourceIBMEnCustomEmailSubscriptionRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + enClient, err := meta.(conns.ClientSession).EventNotificationsApiV1() + if err != nil { + return diag.FromErr(err) + } + + options := &en.GetSubscriptionOptions{} + + parts, err := flex.SepIdParts(d.Id(), "/") + if err != nil { + return diag.FromErr(err) + } + + options.SetInstanceID(parts[0]) + options.SetID(parts[1]) + + result, response, err := enClient.GetSubscriptionWithContext(context, options) + if err != nil { + if response != nil && response.StatusCode == 404 { + d.SetId("") + return nil + } + return diag.FromErr(fmt.Errorf("GetSubscriptionWithContext failed %s\n%s", err, response)) + } + + if err = d.Set("instance_guid", options.InstanceID); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting instance_guid: %s", err)) + } + + if err = d.Set("subscription_id", result.ID); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting instance_guid: %s", err)) + } + + if err = d.Set("name", result.Name); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting name: %s", err)) + } + + if result.Description != nil { + if err = d.Set("description", result.Description); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting description: %s", err)) + } + } + + if result.From != nil { + if err = d.Set("from", result.From); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting from: %s", err)) + } + } + + if err = d.Set("destination_id", result.DestinationID); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting destination_id: %s", err)) + } + + if err = d.Set("destination_type", result.DestinationType); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting destination_type: %s", err)) + } + + if result.DestinationName != nil { + if err = d.Set("destination_name", result.DestinationName); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting destination_name: %s", err)) + } + } + + if err = d.Set("topic_id", result.TopicID); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting topic_id: %s", err)) + } + + if result.TopicName != nil { + if err = d.Set("topic_name", result.TopicName); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting topic_name: %s", err)) + } + } + + if err = d.Set("updated_at", result.UpdatedAt); err != nil { + return diag.FromErr(fmt.Errorf("[ERROR] Error setting updated_at: %s", err)) + } + + return nil +} + +func resourceIBMEnCustomEmailSubscriptionUpdate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + enClient, err := meta.(conns.ClientSession).EventNotificationsApiV1() + if err != nil { + return diag.FromErr(err) + } + + options := &en.UpdateSubscriptionOptions{} + + parts, err := flex.SepIdParts(d.Id(), "/") + if err != nil { + return diag.FromErr(err) + } + + options.SetInstanceID(parts[0]) + options.SetID(parts[1]) + + if ok := d.HasChanges("name", "description", "attributes"); ok { + options.SetName(d.Get("name").(string)) + + if _, ok := d.GetOk("description"); ok { + options.SetDescription(d.Get("description").(string)) + } + + attributes := CustomEmailattributesupdateMapToAttributes(d.Get("attributes.0").(map[string]interface{})) + options.SetAttributes(&attributes) + + _, response, err := enClient.UpdateSubscriptionWithContext(context, options) + if err != nil { + return diag.FromErr(fmt.Errorf("UpdateSubscriptionWithContext failed %s\n%s", err, response)) + } + + return resourceIBMEnCustomEmailSubscriptionRead(context, d, meta) + } + + return nil +} + +func resourceIBMEnCustomEmailSubscriptionDelete(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + enClient, err := meta.(conns.ClientSession).EventNotificationsApiV1() + if err != nil { + return diag.FromErr(err) + } + + options := &en.DeleteSubscriptionOptions{} + + parts, err := flex.SepIdParts(d.Id(), "/") + if err != nil { + return diag.FromErr(err) + } + + options.SetInstanceID(parts[0]) + options.SetID(parts[1]) + + response, err := enClient.DeleteSubscriptionWithContext(context, options) + if err != nil { + if response != nil && response.StatusCode == 404 { + d.SetId("") + return nil + } + return diag.FromErr(fmt.Errorf("DeleteSubscriptionWithContext failed %s\n%s", err, response)) + } + + d.SetId("") + + return nil +} + +func CustomEmailattributesMapToAttributes(attributeMap map[string]interface{}) en.SubscriptionCreateAttributes { + attributesCreate := en.SubscriptionCreateAttributes{} + if attributeMap["invited"] != nil { + invited := []string{} + for _, invitedItem := range attributeMap["invited"].([]interface{}) { + invited = append(invited, invitedItem.(string)) + } + attributesCreate.Invited = invited + } + + if attributeMap["add_notification_payload"] != nil { + attributesCreate.AddNotificationPayload = core.BoolPtr(attributeMap["add_notification_payload"].(bool)) + } + + if attributeMap["reply_to_mail"] != nil { + attributesCreate.ReplyToMail = core.StringPtr(attributeMap["reply_to_mail"].(string)) + } + + if attributeMap["reply_to_name"] != nil { + attributesCreate.ReplyToName = core.StringPtr(attributeMap["reply_to_name"].(string)) + } + + if attributeMap["from_name"] != nil { + attributesCreate.FromName = core.StringPtr(attributeMap["from_name"].(string)) + } + + if attributeMap["from_email"] != nil { + attributesCreate.FromEmail = core.StringPtr(attributeMap["from_email"].(string)) + } + + if attributeMap["template_id_notification"] != nil { + attributesCreate.TemplateIDNotification = core.StringPtr(attributeMap["template_id_notification"].(string)) + } + + if attributeMap["template_id_invitation"] != nil { + attributesCreate.TemplateIDInvitation = core.StringPtr(attributeMap["template_id_invitation"].(string)) + } + + return attributesCreate +} + +func CustomEmailattributesupdateMapToAttributes(attributeMap map[string]interface{}) en.SubscriptionUpdateAttributesCustomEmailUpdateAttributes { + updateattributes := en.SubscriptionUpdateAttributesCustomEmailUpdateAttributes{} + + addemail := new(en.UpdateAttributesInvited) + if attributeMap["add"] != nil { + to := []string{} + for _, toItem := range attributeMap["add"].([]interface{}) { + to = append(to, toItem.(string)) + } + addemail.Add = to + } + updateattributes.Invited = addemail + + if attributeMap["remove"] != nil { + rmemail := []string{} + for _, removeitem := range attributeMap["remove"].([]interface{}) { + rmemail = append(rmemail, removeitem.(string)) + } + + addemail.Remove = rmemail + } + updateattributes.Invited = addemail + + if attributeMap["add_notification_payload"] != nil { + updateattributes.AddNotificationPayload = core.BoolPtr(attributeMap["add_notification_payload"].(bool)) + } + + if attributeMap["reply_to_mail"] != nil { + updateattributes.ReplyToMail = core.StringPtr(attributeMap["reply_to_mail"].(string)) + } + + if attributeMap["reply_to_name"] != nil { + updateattributes.ReplyToName = core.StringPtr(attributeMap["reply_to_name"].(string)) + } + + if attributeMap["from_name"] != nil { + updateattributes.FromName = core.StringPtr(attributeMap["from_name"].(string)) + } + + if attributeMap["from_email"] != nil { + updateattributes.FromEmail = core.StringPtr(attributeMap["from_email"].(string)) + } + + if attributeMap["template_id_notification"] != nil { + updateattributes.TemplateIDNotification = core.StringPtr(attributeMap["template_id_notification"].(string)) + } + + if attributeMap["template_id_invitation"] != nil { + updateattributes.TemplateIDInvitation = core.StringPtr(attributeMap["template_id_invitation"].(string)) + } + + return updateattributes +} diff --git a/ibm/service/eventnotification/resource_ibm_en_subscription_custom_email_test.go b/ibm/service/eventnotification/resource_ibm_en_subscription_custom_email_test.go new file mode 100644 index 0000000000..cac5824d94 --- /dev/null +++ b/ibm/service/eventnotification/resource_ibm_en_subscription_custom_email_test.go @@ -0,0 +1,171 @@ +// Copyright IBM Corp. 2021 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package eventnotification_test + +import ( + "fmt" + "testing" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + + en "github.com/IBM/event-notifications-go-admin-sdk/eventnotificationsv1" +) + +func TestAccIBMEnCustomDomainSubscriptionAllArgs(t *testing.T) { + var conf en.Subscription + instanceName := fmt.Sprintf("tf_instance_%d", acctest.RandIntRange(10, 100)) + name := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) + description := fmt.Sprintf("tf_description_%d", acctest.RandIntRange(10, 100)) + newName := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) + newDescription := fmt.Sprintf("tf_description_%d", acctest.RandIntRange(10, 100)) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIBMEnEmailSubscriptionDestroy, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMEnCustomDomainSubscriptionConfig(instanceName, name, description), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMEnCustomDomainSubscriptionExists("ibm_en_subscription_email.en_subscription_resource_1", conf), + resource.TestCheckResourceAttrSet("ibm_en_subscription_custom_email.en_subscription_resource_1", "name"), + resource.TestCheckResourceAttrSet("ibm_en_subscription_custom_email.en_subscription_resource_1", "description"), + resource.TestCheckResourceAttrSet("ibm_en_subscription_custom_email.en_subscription_resource_1", "topic_id"), + resource.TestCheckResourceAttrSet("ibm_en_subscription_custom_email.en_subscription_resource_1", "updated_at"), + resource.TestCheckResourceAttrSet("ibm_en_subscription_custom_email.en_subscription_resource_1", "instance_guid"), + resource.TestCheckResourceAttrSet("ibm_en_subscription_custom_email.en_subscription_resource_1", "destination_id"), + resource.TestCheckResourceAttrSet("ibm_en_subscription_custom_email.en_subscription_resource_1", "destination_type"), + resource.TestCheckResourceAttrSet("ibm_en_subscription_custom_email.en_subscription_resource_1", "subscription_id"), + resource.TestCheckResourceAttrSet("ibm_en_subscription_custom_email.en_subscription_resource_1", "attributes.#"), + resource.TestCheckResourceAttrSet("ibm_en_subscription_custom_email.en_subscription_resource_1", "attributes.0.reply_to_mail"), + resource.TestCheckResourceAttrSet("ibm_en_subscription_custom_email.en_subscription_resource_1", "attributes.0.reply_to_name"), + resource.TestCheckResourceAttrSet("ibm_en_subscription_custom_email.en_subscription_resource_1", "attributes.0.from_name"), + resource.TestCheckResourceAttrSet("ibm_en_subscription_custom_email.en_subscription_resource_1", "attributes.0.from_email"), + resource.TestCheckResourceAttrSet("ibm_en_subscription_custom_email.en_subscription_resource_1", "attributes.0.add_notification_payload"), + resource.TestCheckResourceAttrSet("ibm_en_subscription_custom_email.en_subscription_resource_1", "attributes.0.invited"), + ), + }, + { + Config: testAccCheckIBMEnCustomDomainSubscriptionConfig(instanceName, newName, newDescription), + Check: resource.ComposeAggregateTestCheckFunc( + resource.TestCheckResourceAttr("ibm_en_subscription_custom_email.en_subscription_resource_1", "name", newName), + resource.TestCheckResourceAttr("ibm_en_subscription_custom_email.en_subscription_resource_1", "description", newDescription), + ), + }, + { + ResourceName: "ibm_en_subscription_custom_email.en_subscription_resource_1", + ImportState: true, + ImportStateVerify: false, + }, + }, + }) +} + +func testAccCheckIBMEnCustomDomainSubscriptionConfig(instanceName, name, description string) string { + return fmt.Sprintf(` + resource "ibm_resource_instance" "en_subscription_resource" { + name = "%s" + location = "us-south" + plan = "standard" + service = "event-notifications" + } + + resource "ibm_en_topic" "en_topic_resource_2" { + instance_guid = ibm_resource_instance.en_subscription_resource.guid + name = "tf_topic_name_0234" + description = "tf_topic_description_0235" + } + + + resource "ibm_en_subscription_custom_email" "en_subscription_resource_1" { + name = "%s" + description = "%s" + instance_guid = ibm_resource_instance.en_subscription_resource.guid + topic_id = ibm_en_topic.en_topic_resource_2.topic_id + destination_id = "ibm_resource_instance.ibm_en_destination_custom_email.destination_id" + attributes { + add_notification_payload = true + reply_to_mail = "en@ibm.com" + reply_to_name = "EYS ORG" + from_name="ABC ORG" + from_mail="Testuser@mailx.com" + invited = ["testmail@gmail.com"] + + } + } + `, instanceName, name, description) +} + +func testAccCheckIBMEnCustomDomainSubscriptionExists(n string, obj en.Subscription) resource.TestCheckFunc { + + return func(s *terraform.State) error { + rs, ok := s.RootModule().Resources[n] + if !ok { + return fmt.Errorf("Not found: %s", n) + } + + enClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).EventNotificationsApiV1() + if err != nil { + return err + } + + options := &en.GetSubscriptionOptions{} + + parts, err := flex.SepIdParts(rs.Primary.ID, "/") + if err != nil { + return err + } + + options.SetInstanceID(parts[0]) + options.SetID(parts[1]) + + subscription, _, err := enClient.GetSubscription(options) + if err != nil { + return err + } + + obj = *subscription + return nil + } +} + +func testAccCheckIBMEnCustomDomainSubscriptionDestroy(s *terraform.State) error { + enClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).EventNotificationsApiV1() + if err != nil { + return err + } + + for _, rs := range s.RootModule().Resources { + if rs.Type != "en_subscription_resource_1" { + continue + } + + options := &en.GetSubscriptionOptions{} + + parts, err := flex.SepIdParts(rs.Primary.ID, "/") + if err != nil { + return err + } + + options.SetInstanceID(parts[0]) + options.SetID(parts[1]) + + // Try to find the key + _, response, err := enClient.GetSubscription(options) + + if err == nil { + return fmt.Errorf("en_subscription still exists: %s", rs.Primary.ID) + } else if response.StatusCode != 404 { + return fmt.Errorf("[ERROR] Error checking for en_subscription (%s) has been destroyed: %s", rs.Primary.ID, err) + } + } + + return nil +} diff --git a/website/docs/d/en_destination_custom_email.html.markdown b/website/docs/d/en_destination_custom_email.html.markdown new file mode 100644 index 0000000000..355ff086ea --- /dev/null +++ b/website/docs/d/en_destination_custom_email.html.markdown @@ -0,0 +1,55 @@ +--- +subcategory: 'Event Notifications' +layout: 'ibm' +page_title: 'IBM : ibm_en_destination_custom_email' +description: |- + Get information about a Custom Email destination +--- + +# ibm_en_destination_custom_email + +Provides a read-only data source for Custom Email destination. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. + +## Example usage + +```terraform +data "ibm_en_destination_custom_email" "custom_domain_email_en_destination" { + instance_guid = ibm_resource_instance.en_terraform_test_resource.guid + destination_id = ibm_en_destination_custom_email.destination1.destination_id +} +``` + +## Argument reference + +Review the argument reference that you can specify for your data source. + +- `instance_guid` - (Required, Forces new resource, String) Unique identifier for IBM Cloud Event Notifications instance. + +- `destination_id` - (Required, String) Unique identifier for Destination. + +## Attribute reference + +In addition to all argument references listed, you can access the following attribute references after your data source is created. + +- `id` - The unique identifier of the `custom_domain_email_en_destination`. + +- `name` - (String) Destination name. + +- `description` - (String) Destination description. + +- `subscription_count` - (Integer) Number of subscriptions. + +- `subscription_names` - (List) List of subscriptions. + +- `type` - (String) Destination type smtp_custom. + +- `config` - (List) Payload describing a destination configuration. + Nested scheme for **config**: + + - `params` - (List) + + Nested scheme for **params**: + + - `domain` - (String) The Custom Domain. + +- `updated_at` - (String) Last updated time. diff --git a/website/docs/d/en_sources.html copy.markdown b/website/docs/d/en_sources.html.markdown similarity index 100% rename from website/docs/d/en_sources.html copy.markdown rename to website/docs/d/en_sources.html.markdown diff --git a/website/docs/d/en_subscription_custom_email.html.markdown b/website/docs/d/en_subscription_custom_email.html.markdown new file mode 100644 index 0000000000..b02429c7b4 --- /dev/null +++ b/website/docs/d/en_subscription_custom_email.html.markdown @@ -0,0 +1,66 @@ +--- +subcategory: 'Event Notifications' +layout: 'ibm' +page_title: 'IBM : ibm_en_subscription_custom_email' +description: |- + Get information about a Custom Email subscription +--- + +# ibm_en_subscription_custom_email + +Provides a read-only data source for Custom Email subscription. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. + +## Example usage + +```terraform +data "ibm_en_subscription_custom_email" "custom_domain_email_subscription" { + instance_guid = ibm_resource_instance.en_terraform_test_resource.guid + subscription_id = ibm_en_subscription_custom_email.subscriptioncustomemail.subscription_id +} +``` + +## Argument reference + +Review the argument reference that you can specify for your data source. + +- `instance_guid` - (Required, Forces new resource, String) Unique identifier for IBM Cloud Event Notifications instance. + +- `subscription_id` - (Required, String) Unique identifier for Subscription. + +## Attribute reference + +In addition to all argument references listed, you can access the following attribute references after your data source is created. + +- `id` - The unique identifier of the email_subscription. + +- `name` - (String) Subscription name. + +- `description` - (String) Subscription description. + +- `destination_id` - (String) The destination ID. + +- `topic_id` - (String) Topic ID. + +- `attributes` - (Required, List) + + - `add_notification_payload` - (Boolean) Whether to add the notification payload to the email. + + - `reply_to_name` - (String) The Email User Name to reply to. + + - `reply_to_mail` - (String) The email address to reply to. + + - `from_name` - (String) The name of email address from which email is sourced. + + - `from_email` - (String) The email from where it is sourced. + + - `template_id_notification` - (String) The templete id for notification. + + - `template_id_invitation` - (String) The templete id for invitation. + + - `susbscribed`- (Map) The Email address who have subscribed for topic. + + - `unsubscribed`- (List) The Email address which has opted for unsusbscribtion from that topic. + + - `invited`- (List) The Email address for invitation. + +- `updated_at` - (String) Last updated time. diff --git a/website/docs/d/en_subscription_email.html.markdown b/website/docs/d/en_subscription_email.html.markdown index ff167e3b6e..6bfe727c44 100644 --- a/website/docs/d/en_subscription_email.html.markdown +++ b/website/docs/d/en_subscription_email.html.markdown @@ -41,9 +41,9 @@ In addition to all argument references listed, you can access the following attr - `topic_id` - (String) Topic ID. -- `add_notification_payload` - (Boolean) Whether to add the notification payload to the email. +- `attributes` - (Required, List) -- `additional_properties` - (Required, List) + - `add_notification_payload` - (Boolean) Whether to add the notification payload to the email. - `reply_to_name` - (String) The Email User Name to reply to. diff --git a/website/docs/r/en_destination_custom_email.html.markdown b/website/docs/r/en_destination_custom_email.html.markdown new file mode 100644 index 0000000000..5f5b9cc1b6 --- /dev/null +++ b/website/docs/r/en_destination_custom_email.html.markdown @@ -0,0 +1,95 @@ +--- +subcategory: 'Event Notifications' +layout: 'ibm' +page_title: 'IBM : ibm_en_destination_custom_email' +description: |- + Manages Event Notification Custom Email destinations. +--- + +# ibm_en_destination_custom_email + +Create, update, or delete a Custom Email destination by using IBM Cloud™ Event Notifications. + +## Example usage + +```terraform +resource "ibm_en_destination_custom_email" "custom_domain_en_destination" { + instance_guid = ibm_resource_instance.en_terraform_test_resource.guid + name = "Custom Email EN Destination" + type = "smtp_custom" + description = "Destination Custom Email for event notification" + config { + params { + domain = "mailx.com" + } + } +} +``` + +Process To do the Custom Domain Configuration and Verification. + +- Select the configure overflow menu for the destination you want to verify. + +- Create Sender Policy Framework (SPF), which is used to authenticate the sender of an email. SPF specifies the mail servers that are allowed to send email for your domain. + - Open your DNS hosting provider for the domain name configured + - Create a new TXT record with your domain name registerer with the name and value provided in the configure screen for SPF + +- Create DomainKeys Identified Mail (DKIM), which allows an organization to take responsibility for transmitting a message by signing it. DKIM allows the receiver to check the email that claimed to have come from a specific domain, is authorized by the owner of that domain. + - Open your DNS hosting provider for the domain name configured + - Create a new TXT record with your domain name registerer with the name and value provided in the configure screen for DKIM + +- Save the TXT records + +- In the destination verify screen, click on Verify buttons for both SPF and DKIM. + +## Argument reference + +Review the argument reference that you can specify for your resource. + +- `instance_guid` - (Required, Forces new resource, String) Unique identifier for IBM Cloud Event Notifications instance. + +- `name` - (Required, String) The Destintion name. + +- `description` - (Optional, String) The Destination description. + +- `type` - (Required, String) smtp_custom. + +- `config` - (Optional, List) Payload describing a destination configuration. + + Nested scheme for **config**: + + - `params` - (Required, List) + + Nested scheme for **params**: + + - `domain` - (Required, String) The Custom Domain. +## Attribute reference + +In addition to all argument references listed, you can access the following attribute references after your resource is created. + +- `id` - (String) The unique identifier of the `custom_domain_en_destination`. +- `destination_id` - (String) The unique identifier of the created destination. +- `subscription_count` - (Integer) Number of subscriptions. + - Constraints: The minimum value is `0`. +- `subscription_names` - (List) List of subscriptions. +- `updated_at` - (String) Last updated time. + +## Import + +You can import the `ibm_en_destination_custom_email` resource by using `id`. + +The `id` property can be formed from `instance_guid`, and `destination_id` in the following format: + +``` +/ +``` + +- `instance_guid`: A string. Unique identifier for IBM Cloud Event Notifications instance. + +- `destination_id`: A string. Unique identifier for Destination. + +**Example** + +``` +$ terraform import ibm_en_destination_custom_email.custom_domain_email_en_destination / +``` diff --git a/website/docs/r/en_subscription_custom_email.html.markdown b/website/docs/r/en_subscription_custom_email.html.markdown new file mode 100644 index 0000000000..dfdb597921 --- /dev/null +++ b/website/docs/r/en_subscription_custom_email.html.markdown @@ -0,0 +1,111 @@ +--- +subcategory: 'Event Notifications' +layout: 'ibm' +page_title: 'IBM : ibm_en_subscription_custom_email' +description: |- + Manages Event Notifications Custom Email subscription. +--- + +# ibm_en_subscription_custom_email + +Create, update, or delete a Custom Email subscription by using IBM Cloud™ Event Notifications. + +## Example usage for Custom Email Subscription Creation + +```terraform +resource "ibm_en_subscription_custom_email" "custom_domain_email_subscription" { + instance_guid = ibm_resource_instance.en_terraform_test_resource.guid + name = "Custom Domain Email Subscription" + description = "Subscription for Certificate expiration alert" + destination_id = ibm_resource_instance.ibm_en_subscription_custom_email.destination_id + topic_id = ibm_en_topic.topic1.topic_id + attributes { + add_notification_payload = true + reply_to_mail = "en@ibm.com" + reply_to_name = "EYS ORG" + from_name="ABC ORG" + from_mail="Testuser@mailx.com" + invited = ["test@gmail.com"] + } +} +``` + +## Example usage for Email Subscription Updation + +```terraform +resource "ibm_en_subscription_custom_email" "custom_domain_email_subscription" { + instance_guid = ibm_resource_instance.en_terraform_test_resource.guid + name = "Custom Domain Email Subscription" + description = "Subscription for Certificate expiration alert" + destination_id = ibm_resource_instance.ibm_en_subscription_custom_email.destination_id + topic_id = ibm_en_topic.topic1.topic_id + attributes { + add_notification_payload = true + reply_to_mail = "en@ibm.com" + reply_to_name = "EYS ORG" + from_name = "ABC ORG" + from_mail = "Testuser@mailx.com" + add = ["productionuser@ibm.com"] + remove = ["testuser@gamil.com"] + } +} +``` + +## Argument reference + +Review the argument reference that you can specify for your resource. + +- `instance_guid` - (Required, Forces new resource, String) Unique identifier for IBM Cloud Event Notifications instance. + +- `name` - (Requires, String) Subscription name. + +- `description` - (Optional, String) Subscription description. + +- `destination_id` - (Requires, String) Destination ID. + +- `topic_id` - (Required, String) Topic ID. + +- `attributes` - (Optional, List) Subscription attributes. + Nested scheme for **attributes**: + + - `reply_to_name` - (String) The Email User Name to reply to. + + - `reply_to_mail` - (String) The email address to reply to. + + - `from_name` - (Optional, String) The user name from which email is addressed. + + - `from_name` - (Optional, String) The email address user from which email is addressed(Should belong to the custom domain). + + - `invited`- (List) The Email address to send the email to. + + - `add`- (List) The Email address to add in case of updating the list of email addressses + + - `reomve`- (List) The Email address list to be provided in case of removing the email addresses from subscription + +## Attribute reference + +In addition to all argument references listed, you can access the following attribute references after your resource is created. + +- `id` - (String) The unique identifier of the `custom_domain_email_subscription`. + +- `subscription_id` - (String) The unique identifier of the created subscription. + +- `updated_at` - (String) Last updated time. + +## Import + +You can import the `ibm_en_subscription_custom_email` resource by using `id`. +The `id` property can be formed from `instance_guid`, and `subscription_id` in the following format: + +``` +/ +``` + +- `instance_guid`: A string. Unique identifier for IBM Cloud Event Notifications instance. +- `subscription_id`: A string. Unique identifier for Subscription. + +**Example** + +``` +$ terraform import ibm_en_subscription_custom_email.custom_domain_email_en_subscription / +``` From e9be1f1402475492a2ef640b7d35b9863bddf37a Mon Sep 17 00:00:00 2001 From: hkantare Date: Wed, 25 Oct 2023 10:09:33 +0530 Subject: [PATCH 07/58] update metadata --- metadata/provider_metadata.json | 85067 ++++++++++++++++-------------- 1 file changed, 44761 insertions(+), 40306 deletions(-) diff --git a/metadata/provider_metadata.json b/metadata/provider_metadata.json index 3493ca9b88..e4d5489bf3 100644 --- a/metadata/provider_metadata.json +++ b/metadata/provider_metadata.json @@ -142,24 +142,12 @@ } ], "ibm_app": [ - { - "name": "instances", - "type": "TypeInt", - "description": "The number of instances", - "computed": true - }, { "name": "buildpack", "type": "TypeString", "description": "Buildpack to build the app. 3 options: a) Blank means autodetection; b) A Git Url pointing to a buildpack; c) Name of an installed buildpack.", "computed": true }, - { - "name": "environment_json", - "type": "TypeMap", - "description": "Key/value pairs of all the environment variables to run in your app. Does not include any system or service variables.", - "computed": true - }, { "name": "service_instance_guid", "type": "TypeSet", @@ -170,17 +158,23 @@ } }, { - "name": "state", + "name": "package_state", "type": "TypeString", - "description": "The state of the application", + "description": "The state of the application package whether staged, pending etc", "computed": true }, { - "name": "memory", - "type": "TypeInt", - "description": "The amount of memory each instance should have. In megabytes.", + "name": "health_check_http_endpoint", + "type": "TypeString", + "description": "Endpoint called to determine if the app is healthy.", "computed": true }, + { + "name": "name", + "type": "TypeString", + "description": "The name for the app", + "required": true + }, { "name": "route_guid", "type": "TypeSet", @@ -191,15 +185,9 @@ } }, { - "name": "package_state", + "name": "state", "type": "TypeString", - "description": "The state of the application package whether staged, pending etc", - "computed": true - }, - { - "name": "disk_quota", - "type": "TypeInt", - "description": "The maximum amount of disk available to an instance of an app. In megabytes.", + "description": "The state of the application", "computed": true }, { @@ -209,16 +197,28 @@ "required": true }, { - "name": "health_check_timeout", + "name": "instances", "type": "TypeInt", - "description": "Timeout in seconds for health checking of an staged app when starting up.", + "description": "The number of instances", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The name for the app", - "required": true + "name": "environment_json", + "type": "TypeMap", + "description": "Key/value pairs of all the environment variables to run in your app. Does not include any system or service variables.", + "computed": true + }, + { + "name": "memory", + "type": "TypeInt", + "description": "The amount of memory each instance should have. In megabytes.", + "computed": true + }, + { + "name": "disk_quota", + "type": "TypeInt", + "description": "The maximum amount of disk available to an instance of an app. In megabytes.", + "computed": true }, { "name": "health_check_type", @@ -227,50 +227,95 @@ "computed": true }, { - "name": "health_check_http_endpoint", - "type": "TypeString", - "description": "Endpoint called to determine if the app is healthy.", + "name": "health_check_timeout", + "type": "TypeInt", + "description": "Timeout in seconds for health checking of an staged app when starting up.", "computed": true } ], "ibm_app_config_collection": [ { - "name": "name", + "name": "collection_id", "type": "TypeString", - "description": "Collection name.", + "description": "Collection Id of the collection.", + "required": true + }, + { + "name": "href", + "type": "TypeString", + "description": "Collection URL.", "computed": true }, { - "name": "include", + "name": "properties", "type": "TypeList", - "description": "Include feature, property details in the response.", - "optional": true, + "description": "List of properties associated with the collection.", + "computed": true, "elem": { - "type": "TypeString" + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the Property.", + "computed": true + }, + "property_id": { + "name": "property_id", + "type": "TypeString", + "description": "property id.", + "computed": true + } } }, { - "name": "updated_time", + "name": "expand", + "type": "TypeBool", + "description": "If set to true, returns expanded view of the resource details.", + "optional": true + }, + { + "name": "tags", "type": "TypeString", - "description": "Last modified time of the collection data.", + "description": "Tags associated with the collection.", + "cloud_data_type": "tags", "computed": true }, { - "name": "href", + "name": "created_time", "type": "TypeString", - "description": "Collection URL.", + "description": "Creation time of the collection.", "computed": true }, { - "name": "collection_id", + "name": "features_count", + "type": "TypeInt", + "description": "Number of features associated with the collection.", + "computed": true + }, + { + "name": "guid", "type": "TypeString", - "description": "Collection Id of the collection.", + "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", "required": true }, { - "name": "created_time", + "name": "include", + "type": "TypeList", + "description": "Include feature, property details in the response.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "description", "type": "TypeString", - "description": "Creation time of the collection.", + "description": "Collection description.", + "computed": true + }, + { + "name": "properties_count", + "type": "TypeInt", + "description": "Number of properties associated with the collection.", "computed": true }, { @@ -294,31 +339,19 @@ } }, { - "name": "expand", - "type": "TypeBool", - "description": "If set to true, returns expanded view of the resource details.", - "optional": true + "name": "name", + "type": "TypeString", + "description": "Collection name.", + "computed": true }, { - "name": "properties", - "type": "TypeList", - "description": "List of properties associated with the collection.", - "computed": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the Property.", - "computed": true - }, - "property_id": { - "name": "property_id", - "type": "TypeString", - "description": "property id.", - "computed": true - } - } - }, + "name": "updated_time", + "type": "TypeString", + "description": "Last modified time of the collection data.", + "computed": true + } + ], + "ibm_app_config_collections": [ { "name": "guid", "type": "TypeString", @@ -326,32 +359,38 @@ "required": true }, { - "name": "description", - "type": "TypeString", - "description": "Collection description.", - "computed": true + "name": "limit", + "type": "TypeInt", + "description": "The number of records to retrieve.", + "optional": true }, { - "name": "tags", - "type": "TypeString", - "description": "Tags associated with the collection.", - "cloud_data_type": "tags", - "computed": true + "name": "offset", + "type": "TypeInt", + "description": "Skipped number of records.", + "optional": true }, { - "name": "features_count", + "name": "total_count", "type": "TypeInt", - "description": "Number of features associated with the collection.", + "description": "Total number of records.", "computed": true }, { - "name": "properties_count", - "type": "TypeInt", - "description": "Number of properties associated with the collection.", - "computed": true - } - ], - "ibm_app_config_collections": [ + "name": "include", + "type": "TypeList", + "description": "Include feature, property details in the response.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "expand", + "type": "TypeBool", + "description": "If set to true, returns expanded view of the resource details.", + "optional": true + }, { "name": "collections", "type": "TypeList", @@ -453,48 +492,22 @@ "computed": true } } - }, + } + ], + "ibm_app_config_environment": [ { "name": "guid", "type": "TypeString", "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", + "immutable": true, "required": true }, - { - "name": "limit", - "type": "TypeInt", - "description": "The number of records to retrieve.", - "optional": true - }, - { - "name": "offset", - "type": "TypeInt", - "description": "Skipped number of records.", - "optional": true - }, - { - "name": "total_count", - "type": "TypeInt", - "description": "Total number of records.", - "computed": true - }, - { - "name": "include", - "type": "TypeList", - "description": "Include feature, property details in the response.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, { "name": "expand", "type": "TypeBool", - "description": "If set to true, returns expanded view of the resource details.", + "description": "If set to `true`, returns expanded view of the resource details.", "optional": true - } - ], - "ibm_app_config_environment": [ + }, { "name": "href", "type": "TypeString", @@ -520,49 +533,36 @@ "computed": true }, { - "name": "updated_time", + "name": "tags", "type": "TypeString", - "description": "Last modified time of the environment data.", + "description": "Tags associated with the environment.", + "cloud_data_type": "tags", "computed": true }, { - "name": "created_time", + "name": "color_code", "type": "TypeString", - "description": "Creation time of the environment.", + "description": "Color code to distinguish the environment. The Hex code for the color. For example `#FF0000` for `red`.", "computed": true }, { - "name": "guid", - "type": "TypeString", - "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", - "immutable": true, - "required": true - }, - { - "name": "expand", - "type": "TypeBool", - "description": "If set to `true`, returns expanded view of the resource details.", - "optional": true - }, - { - "name": "tags", + "name": "created_time", "type": "TypeString", - "description": "Tags associated with the environment.", - "cloud_data_type": "tags", + "description": "Creation time of the environment.", "computed": true }, { - "name": "color_code", + "name": "updated_time", "type": "TypeString", - "description": "Color code to distinguish the environment. The Hex code for the color. For example `#FF0000` for `red`.", + "description": "Last modified time of the environment data.", "computed": true } ], "ibm_app_config_environments": [ { - "name": "first", + "name": "next", "type": "TypeList", - "description": "URL to navigate to the first page of records.", + "description": "URL to navigate to the next list of records.", "computed": true, "elem": { "href": { @@ -587,6 +587,44 @@ } } }, + { + "name": "expand", + "type": "TypeBool", + "description": "If set to `true`, returns expanded view of the resource details.", + "optional": true + }, + { + "name": "limit", + "type": "TypeInt", + "description": "The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.", + "optional": true + }, + { + "name": "offset", + "type": "TypeInt", + "description": "The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.", + "optional": true + }, + { + "name": "total_count", + "type": "TypeInt", + "description": "Total number of records.", + "computed": true + }, + { + "name": "last", + "type": "TypeList", + "description": "URL to navigate to the last page of records.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "URL of the response.", + "computed": true + } + } + }, { "name": "guid", "type": "TypeString", @@ -595,9 +633,10 @@ "required": true }, { - "name": "offset", - "type": "TypeInt", - "description": "The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.", + "name": "tags", + "type": "TypeString", + "description": "filter the resources to be returned based on the associated tags. Returns resources associated with any of the specified tags.", + "cloud_data_type": "tags", "optional": true }, { @@ -657,48 +696,9 @@ } }, { - "name": "total_count", - "type": "TypeInt", - "description": "Total number of records.", - "computed": true - }, - { - "name": "next", - "type": "TypeList", - "description": "URL to navigate to the next list of records.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "URL of the response.", - "computed": true - } - } - }, - { - "name": "tags", - "type": "TypeString", - "description": "filter the resources to be returned based on the associated tags. Returns resources associated with any of the specified tags.", - "cloud_data_type": "tags", - "optional": true - }, - { - "name": "expand", - "type": "TypeBool", - "description": "If set to `true`, returns expanded view of the resource details.", - "optional": true - }, - { - "name": "limit", - "type": "TypeInt", - "description": "The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.", - "optional": true - }, - { - "name": "last", + "name": "first", "type": "TypeList", - "description": "URL to navigate to the last page of records.", + "description": "URL to navigate to the first page of records.", "computed": true, "elem": { "href": { @@ -724,31 +724,22 @@ "computed": true }, { - "name": "tags", + "name": "type", "type": "TypeString", - "description": "Tags associated with the feature.", - "cloud_data_type": "tags", + "description": "Type of the feature (BOOLEAN, STRING, NUMERIC).", "computed": true }, { - "name": "collections", - "type": "TypeList", - "description": "List of collection id representing the collections that are associated with the specified feature flag.", - "computed": true, - "elem": { - "collection_id": { - "name": "collection_id", - "type": "TypeString", - "description": "Collection id.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the collection.", - "computed": true - } - } + "name": "enabled", + "type": "TypeBool", + "description": "The state of the feature flag.", + "computed": true + }, + { + "name": "segment_exists", + "type": "TypeBool", + "description": "Denotes if the targeting rules are specified for the feature flag.", + "computed": true }, { "name": "href", @@ -757,15 +748,39 @@ "computed": true }, { - "name": "guid", + "name": "environment_id", "type": "TypeString", - "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", + "description": "Environment Id.", "required": true }, { - "name": "enabled", - "type": "TypeBool", - "description": "The state of the feature flag.", + "name": "created_time", + "type": "TypeString", + "description": "Creation time of the feature flag.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Feature name.", + "computed": true + }, + { + "name": "enabled_value", + "type": "TypeString", + "description": "Value of the feature when it is enabled. The value can be Boolean, String or a Numeric value as per the `type` attribute.", + "computed": true + }, + { + "name": "disabled_value", + "type": "TypeString", + "description": "Value of the feature when it is disabled. The value can be Boolean, String or a Numeric value as per the `type` attribute.", + "computed": true + }, + { + "name": "rollout_percentage", + "type": "TypeInt", + "description": "Rollout percentage of the feature.", "computed": true }, { @@ -812,52 +827,37 @@ } }, { - "name": "type", - "type": "TypeString", - "description": "Type of the feature (BOOLEAN, STRING, NUMERIC).", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Feature name.", - "computed": true - }, - { - "name": "disabled_value", - "type": "TypeString", - "description": "Value of the feature when it is disabled. The value can be Boolean, String or a Numeric value as per the `type` attribute.", - "computed": true - }, - { - "name": "segment_exists", - "type": "TypeBool", - "description": "Denotes if the targeting rules are specified for the feature flag.", - "computed": true - }, - { - "name": "rollout_percentage", - "type": "TypeInt", - "description": "Rollout percentage of the feature.", - "computed": true - }, - { - "name": "environment_id", + "name": "guid", "type": "TypeString", - "description": "Environment Id.", + "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", "required": true }, { - "name": "enabled_value", + "name": "tags", "type": "TypeString", - "description": "Value of the feature when it is enabled. The value can be Boolean, String or a Numeric value as per the `type` attribute.", + "description": "Tags associated with the feature.", + "cloud_data_type": "tags", "computed": true }, { - "name": "created_time", - "type": "TypeString", - "description": "Creation time of the feature flag.", - "computed": true + "name": "collections", + "type": "TypeList", + "description": "List of collection id representing the collections that are associated with the specified feature flag.", + "computed": true, + "elem": { + "collection_id": { + "name": "collection_id", + "type": "TypeString", + "description": "Collection id.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the collection.", + "computed": true + } + } }, { "name": "updated_time", @@ -879,13 +879,6 @@ "description": "Sort the feature details based on the specified attribute.", "optional": true }, - { - "name": "tags", - "type": "TypeString", - "description": "Filter the resources to be returned based on the associated tags. Specify the parameter as a list of comma separated tags. Returns resources associated with any of the specified tags.", - "cloud_data_type": "tags", - "optional": true - }, { "name": "segments", "type": "TypeList", @@ -895,41 +888,6 @@ "type": "TypeString" } }, - { - "name": "expand", - "type": "TypeBool", - "description": "If set to `true`, returns expanded view of the resource details.", - "optional": true - }, - { - "name": "previous", - "type": "TypeList", - "description": "URL to navigate to the previous list of records.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "URL of the response.", - "computed": true - } - } - }, - { - "name": "guid", - "type": "TypeString", - "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", - "required": true - }, - { - "name": "collections", - "type": "TypeList", - "description": "Filter features by a list of comma separated collections.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, { "name": "includes", "type": "TypeList", @@ -940,43 +898,9 @@ } }, { - "name": "next", - "type": "TypeList", - "description": "URL to navigate to the next list of records.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "URL of the response.", - "computed": true - } - } - }, - { - "name": "last", - "type": "TypeList", - "description": "URL to navigate to the last page of records.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "URL of the response.", - "computed": true - } - } - }, - { - "name": "environment_id", - "type": "TypeString", - "description": "Environment Id.", - "required": true - }, - { - "name": "offset", + "name": "limit", "type": "TypeInt", - "description": "The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.", + "description": "The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.", "optional": true }, { @@ -986,9 +910,9 @@ "computed": true }, { - "name": "first", + "name": "previous", "type": "TypeList", - "description": "URL to navigate to the first page of records.", + "description": "URL to navigate to the previous list of records.", "computed": true, "elem": { "href": { @@ -1000,10 +924,10 @@ } }, { - "name": "limit", - "type": "TypeInt", - "description": "The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.", - "optional": true + "name": "environment_id", + "type": "TypeString", + "description": "Environment Id.", + "required": true }, { "name": "features", @@ -1153,6 +1077,82 @@ "computed": true } } + }, + { + "name": "first", + "type": "TypeList", + "description": "URL to navigate to the first page of records.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "URL of the response.", + "computed": true + } + } + }, + { + "name": "expand", + "type": "TypeBool", + "description": "If set to `true`, returns expanded view of the resource details.", + "optional": true + }, + { + "name": "offset", + "type": "TypeInt", + "description": "The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.", + "optional": true + }, + { + "name": "guid", + "type": "TypeString", + "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", + "required": true + }, + { + "name": "tags", + "type": "TypeString", + "description": "Filter the resources to be returned based on the associated tags. Specify the parameter as a list of comma separated tags. Returns resources associated with any of the specified tags.", + "cloud_data_type": "tags", + "optional": true + }, + { + "name": "collections", + "type": "TypeList", + "description": "Filter features by a list of comma separated collections.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "next", + "type": "TypeList", + "description": "URL to navigate to the next list of records.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "URL of the response.", + "computed": true + } + } + }, + { + "name": "last", + "type": "TypeList", + "description": "URL to navigate to the last page of records.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "URL of the response.", + "computed": true + } + } } ], "ibm_app_config_properties": [ @@ -1163,6 +1163,36 @@ "cloud_data_type": "tags", "optional": true }, + { + "name": "limit", + "type": "TypeInt", + "description": "The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.", + "optional": true + }, + { + "name": "offset", + "type": "TypeInt", + "description": "The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.", + "optional": true + }, + { + "name": "total_count", + "type": "TypeInt", + "description": "Number of records returned in the current response.", + "computed": true + }, + { + "name": "environment_id", + "type": "TypeString", + "description": "Environment Id.", + "required": true + }, + { + "name": "sort", + "type": "TypeString", + "description": "Sort the feature details based on the specified attribute.", + "optional": true + }, { "name": "collections", "type": "TypeList", @@ -1196,12 +1226,6 @@ "type": "TypeString" } }, - { - "name": "offset", - "type": "TypeInt", - "description": "The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.", - "optional": true - }, { "name": "properties", "type": "TypeList", @@ -1332,44 +1356,46 @@ "type": "TypeString", "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", "required": true - }, + } + ], + "ibm_app_config_property": [ { - "name": "environment_id", - "type": "TypeString", - "description": "Environment Id.", - "required": true + "name": "collections", + "type": "TypeList", + "description": "List of collection id representing the collections that are associated with the specified property.", + "computed": true, + "elem": { + "collection_id": { + "name": "collection_id", + "type": "TypeString", + "description": "Collection id.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the collection.", + "computed": true + } + } }, { - "name": "sort", + "name": "href", "type": "TypeString", - "description": "Sort the feature details based on the specified attribute.", - "optional": true - }, - { - "name": "limit", - "type": "TypeInt", - "description": "The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.", - "optional": true - }, - { - "name": "total_count", - "type": "TypeInt", - "description": "Number of records returned in the current response.", + "description": "Property URL.", "computed": true - } - ], - "ibm_app_config_property": [ + }, { - "name": "name", + "name": "environment_id", "type": "TypeString", - "description": "Property name.", - "computed": true + "description": "Environment Id.", + "required": true }, { - "name": "segment_exists", - "type": "TypeBool", - "description": "Denotes if the targeting rules are specified for the property.", - "computed": true + "name": "property_id", + "type": "TypeString", + "description": "Property Id.", + "required": true }, { "name": "include", @@ -1377,12 +1403,6 @@ "description": "Include the associated collections in the response.", "optional": true }, - { - "name": "description", - "type": "TypeString", - "description": "Property description.", - "computed": true - }, { "name": "segment_rules", "type": "TypeList", @@ -1421,66 +1441,47 @@ } }, { - "name": "created_time", + "name": "tags", "type": "TypeString", - "description": "Creation time of the property.", + "description": "Tags associated with the property.", + "cloud_data_type": "tags", "computed": true }, { - "name": "updated_time", - "type": "TypeString", - "description": "Last modified time of the property data.", + "name": "segment_exists", + "type": "TypeBool", + "description": "Denotes if the targeting rules are specified for the property.", "computed": true }, { - "name": "guid", + "name": "created_time", "type": "TypeString", - "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", - "required": true + "description": "Creation time of the property.", + "computed": true }, { - "name": "property_id", + "name": "guid", "type": "TypeString", - "description": "Property Id.", + "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", "required": true }, { - "name": "value", + "name": "name", "type": "TypeString", - "description": "Value of the Property. The value can be Boolean, String or a Numeric value as per the `type` attribute.", + "description": "Property name.", "computed": true }, { - "name": "collections", - "type": "TypeList", - "description": "List of collection id representing the collections that are associated with the specified property.", - "computed": true, - "elem": { - "collection_id": { - "name": "collection_id", - "type": "TypeString", - "description": "Collection id.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the collection.", - "computed": true - } - } - }, - { - "name": "href", + "name": "description", "type": "TypeString", - "description": "Property URL.", + "description": "Property description.", "computed": true }, { - "name": "environment_id", + "name": "value", "type": "TypeString", - "description": "Environment Id.", - "required": true + "description": "Value of the Property. The value can be Boolean, String or a Numeric value as per the `type` attribute.", + "computed": true }, { "name": "type", @@ -1489,25 +1490,18 @@ "computed": true }, { - "name": "tags", + "name": "updated_time", "type": "TypeString", - "description": "Tags associated with the property.", - "cloud_data_type": "tags", + "description": "Last modified time of the property data.", "computed": true } ], "ibm_app_config_segment": [ { - "name": "name", - "type": "TypeString", - "description": "Segment name.", - "computed": true - }, - { - "name": "description", + "name": "segment_id", "type": "TypeString", - "description": "Segment description.", - "computed": true + "description": "Segment id.", + "required": true }, { "name": "includes", @@ -1519,9 +1513,9 @@ } }, { - "name": "created_time", + "name": "updated_time", "type": "TypeString", - "description": "Creation time of the segment.", + "description": "Last modified time of the segment data.", "computed": true }, { @@ -1530,6 +1524,12 @@ "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", "required": true }, + { + "name": "description", + "type": "TypeString", + "description": "Segment description.", + "computed": true + }, { "name": "tags", "type": "TypeString", @@ -1538,9 +1538,9 @@ "computed": true }, { - "name": "updated_time", + "name": "created_time", "type": "TypeString", - "description": "Last modified time of the segment data.", + "description": "Creation time of the segment.", "computed": true }, { @@ -1619,17 +1619,30 @@ } }, { - "name": "segment_id", + "name": "name", "type": "TypeString", - "description": "Segment id.", - "required": true + "description": "Segment name.", + "computed": true } ], "ibm_app_config_segments": [ { - "name": "include", + "name": "offset", + "type": "TypeInt", + "description": "The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.", + "optional": true + }, + { + "name": "tags", "type": "TypeString", - "description": "Segment details to include the associated rules in the response", + "description": "Filter the resources to be returned based on the associated tags.", + "cloud_data_type": "tags", + "optional": true + }, + { + "name": "sort", + "type": "TypeString", + "description": "Sort the segment details based on the specified attribute.", "optional": true }, { @@ -1645,9 +1658,21 @@ "optional": true }, { - "name": "offset", + "name": "guid", + "type": "TypeString", + "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", + "required": true + }, + { + "name": "include", + "type": "TypeString", + "description": "Segment details to include the associated rules in the response", + "optional": true + }, + { + "name": "limit", "type": "TypeInt", - "description": "The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.", + "description": "The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.", "optional": true }, { @@ -1768,20 +1793,9 @@ "computed": true } } - }, - { - "name": "tags", - "type": "TypeString", - "description": "Filter the resources to be returned based on the associated tags.", - "cloud_data_type": "tags", - "optional": true - }, - { - "name": "sort", - "type": "TypeString", - "description": "Sort the segment details based on the specified attribute.", - "optional": true - }, + } + ], + "ibm_app_config_snapshot": [ { "name": "guid", "type": "TypeString", @@ -1789,57 +1803,31 @@ "required": true }, { - "name": "limit", - "type": "TypeInt", - "description": "The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.", - "optional": true - } - ], - "ibm_app_config_snapshot": [ - { - "name": "last_sync_time", + "name": "git_branch", "type": "TypeString", - "description": "Latest time when the snapshot was synced to git.", + "description": "Branch name to which you need to write or update the configuration.", "computed": true }, { - "name": "environment", + "name": "collection", "type": "TypeList", - "description": "Environment object", + "description": "Collection object.", "computed": true, "elem": { - "color_code": { - "name": "color_code", - "type": "TypeString", - "description": "Environment color code.", - "computed": true - }, - "environment_id": { - "name": "environment_id", + "collection_id": { + "name": "collection_id", "type": "TypeString", - "description": "Environment id.", + "description": "Collection id.", "computed": true }, - "environment_name": { - "name": "environment_name", + "collection_name": { + "name": "collection_name", "type": "TypeString", - "description": "Environment name.", + "description": "Collection name.", "computed": true } } }, - { - "name": "git_config_id", - "type": "TypeString", - "description": "Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only", - "required": true - }, - { - "name": "git_file_path", - "type": "TypeString", - "description": "Git file path, this is a path where your configuration file will be written.", - "computed": true - }, { "name": "created_time", "type": "TypeString", @@ -1847,15 +1835,15 @@ "computed": true }, { - "name": "git_branch", + "name": "updated_time", "type": "TypeString", - "description": "Branch name to which you need to write or update the configuration.", + "description": "Last modified time of the git config data.", "computed": true }, { - "name": "updated_time", + "name": "last_sync_time", "type": "TypeString", - "description": "Last modified time of the git config data.", + "description": "Latest time when the snapshot was synced to git.", "computed": true }, { @@ -1865,29 +1853,9 @@ "computed": true }, { - "name": "collection", - "type": "TypeList", - "description": "Collection object.", - "computed": true, - "elem": { - "collection_id": { - "name": "collection_id", - "type": "TypeString", - "description": "Collection id.", - "computed": true - }, - "collection_name": { - "name": "collection_name", - "type": "TypeString", - "description": "Collection name.", - "computed": true - } - } - }, - { - "name": "guid", + "name": "git_config_id", "type": "TypeString", - "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", + "description": "Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only", "required": true }, { @@ -1901,37 +1869,51 @@ "type": "TypeString", "description": "Git url which will be used to connect to the github account.", "computed": true - } - ], - "ibm_app_config_snapshots": [ - { - "name": "limit", - "type": "TypeInt", - "description": "The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.", - "optional": true - }, - { - "name": "offset", - "type": "TypeInt", - "description": "The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.", - "optional": true }, { - "name": "total_count", - "type": "TypeInt", - "description": "Total number of records.", + "name": "git_file_path", + "type": "TypeString", + "description": "Git file path, this is a path where your configuration file will be written.", "computed": true }, { - "name": "git_config", + "name": "environment", "type": "TypeList", - "description": "Array of git_config.", + "description": "Environment object", "computed": true, "elem": { - "collection": { - "name": "collection", - "type": "TypeList", - "description": "Collection object.", + "color_code": { + "name": "color_code", + "type": "TypeString", + "description": "Environment color code.", + "computed": true + }, + "environment_id": { + "name": "environment_id", + "type": "TypeString", + "description": "Environment id.", + "computed": true + }, + "environment_name": { + "name": "environment_name", + "type": "TypeString", + "description": "Environment name.", + "computed": true + } + } + } + ], + "ibm_app_config_snapshots": [ + { + "name": "git_config", + "type": "TypeList", + "description": "Array of git_config.", + "computed": true, + "elem": { + "collection": { + "name": "collection", + "type": "TypeList", + "description": "Collection object.", "computed": true, "elem": { "collection_id": { @@ -2047,6 +2029,24 @@ "type": "TypeString", "description": "Filters the response based on the specified environment_id.", "optional": true + }, + { + "name": "limit", + "type": "TypeInt", + "description": "The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.", + "optional": true + }, + { + "name": "offset", + "type": "TypeInt", + "description": "The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.", + "optional": true + }, + { + "name": "total_count", + "type": "TypeInt", + "description": "Total number of records.", + "computed": true } ], "ibm_app_domain_private": [ @@ -2066,6 +2066,12 @@ } ], "ibm_app_route": [ + { + "name": "port", + "type": "TypeString", + "description": "The port of the route", + "optional": true + }, { "name": "space_guid", "type": "TypeString", @@ -2089,12 +2095,6 @@ "type": "TypeString", "description": "The path of the route", "optional": true - }, - { - "name": "port", - "type": "TypeString", - "description": "The port of the route", - "optional": true } ], "ibm_appid_action_url": [ @@ -2118,6 +2118,45 @@ } ], "ibm_appid_apm": [ + { + "name": "lockout_policy", + "type": "TypeList", + "computed": true, + "elem": { + "enabled": { + "name": "enabled", + "type": "TypeBool", + "computed": true + }, + "lockout_time_sec": { + "name": "lockout_time_sec", + "type": "TypeInt", + "computed": true + }, + "num_of_attempts": { + "name": "num_of_attempts", + "type": "TypeInt", + "computed": true + } + } + }, + { + "name": "min_password_change_interval", + "type": "TypeList", + "computed": true, + "elem": { + "enabled": { + "name": "enabled", + "type": "TypeBool", + "computed": true + }, + "min_hours_to_change_password": { + "name": "min_hours_to_change_password", + "type": "TypeInt", + "computed": true + } + } + }, { "name": "tenant_id", "type": "TypeString", @@ -2168,48 +2207,20 @@ "computed": true } } - }, - { - "name": "lockout_policy", - "type": "TypeList", - "computed": true, - "elem": { - "enabled": { - "name": "enabled", - "type": "TypeBool", - "computed": true - }, - "lockout_time_sec": { - "name": "lockout_time_sec", - "type": "TypeInt", - "computed": true - }, - "num_of_attempts": { - "name": "num_of_attempts", - "type": "TypeInt", - "computed": true - } - } - }, - { - "name": "min_password_change_interval", - "type": "TypeList", - "computed": true, - "elem": { - "enabled": { - "name": "enabled", - "type": "TypeBool", - "computed": true - }, - "min_hours_to_change_password": { - "name": "min_hours_to_change_password", - "type": "TypeInt", - "computed": true - } - } } ], "ibm_appid_application": [ + { + "name": "profiles_url", + "type": "TypeString", + "computed": true + }, + { + "name": "discovery_endpoint", + "type": "TypeString", + "description": "This URL returns OAuth Authorization Server Metadata", + "computed": true + }, { "name": "type", "type": "TypeString", @@ -2246,17 +2257,6 @@ "type": "TypeString", "description": "Base URL for common OAuth endpoints, like `/authorization`, `/token` and `/publickeys`", "computed": true - }, - { - "name": "profiles_url", - "type": "TypeString", - "computed": true - }, - { - "name": "discovery_endpoint", - "type": "TypeString", - "description": "This URL returns OAuth Authorization Server Metadata", - "computed": true } ], "ibm_appid_application_roles": [ @@ -2294,6 +2294,15 @@ } ], "ibm_appid_application_scopes": [ + { + "name": "scopes", + "type": "TypeList", + "description": "A `scope` is a runtime action in your application that you register with IBM Cloud App ID to create an access permission", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "tenant_id", "type": "TypeString", @@ -2305,15 +2314,6 @@ "type": "TypeString", "description": "The `client_id` is a public identifier for applications", "required": true - }, - { - "name": "scopes", - "type": "TypeList", - "description": "A `scope` is a runtime action in your application that you register with IBM Cloud App ID to create an access permission", - "computed": true, - "elem": { - "type": "TypeString" - } } ], "ibm_appid_applications": [ @@ -2388,24 +2388,6 @@ } ], "ibm_appid_cloud_directory_template": [ - { - "name": "subject", - "type": "TypeString", - "description": "The subject of the email", - "computed": true - }, - { - "name": "html_body", - "type": "TypeString", - "description": "The HTML body of the email", - "computed": true - }, - { - "name": "base64_encoded_html_body", - "type": "TypeString", - "description": "The HTML body of the email encoded in Base64", - "computed": true - }, { "name": "plain_text_body", "type": "TypeString", @@ -2430,20 +2412,46 @@ "description": "Preferred language for resource. Format as described at RFC5646. According to the configured languages codes returned from the `GET /management/v4/{tenantId}/config/ui/languages API`.", "default_value": "en", "optional": true - } - ], - "ibm_appid_cloud_directory_user": [ + }, { "name": "subject", "type": "TypeString", - "description": "The user's identifier ('subject' in identity token)", + "description": "The subject of the email", "computed": true }, { - "name": "user_name", + "name": "html_body", "type": "TypeString", - "description": "Optional username", + "description": "The HTML body of the email", + "computed": true + }, + { + "name": "base64_encoded_html_body", + "type": "TypeString", + "description": "The HTML body of the email encoded in Base64", "computed": true + } + ], + "ibm_appid_cloud_directory_user": [ + { + "name": "meta", + "type": "TypeList", + "description": "Cloud Directory user metadata", + "computed": true, + "elem": { + "created": { + "name": "created", + "type": "TypeString", + "description": "User creation date", + "computed": true + }, + "last_modified": { + "name": "last_modified", + "type": "TypeString", + "description": "Last user modification date", + "computed": true + } + } }, { "name": "tenant_id", @@ -2458,15 +2466,21 @@ "computed": true }, { - "name": "display_name", - "type": "TypeString", - "description": "Cloud Directory user display name", + "name": "locked_until", + "type": "TypeInt", + "description": "Integer (epoch time in milliseconds), determines till when the user account will be locked", "computed": true }, { - "name": "status", + "name": "user_id", "type": "TypeString", - "description": "Current user status: `PENDING` or `CONFIRMED`", + "description": "Cloud Directory user ID", + "required": true + }, + { + "name": "subject", + "type": "TypeString", + "description": "The user's identifier ('subject' in identity token)", "computed": true }, { @@ -2490,72 +2504,25 @@ } }, { - "name": "meta", - "type": "TypeList", - "description": "Cloud Directory user metadata", - "computed": true, - "elem": { - "created": { - "name": "created", - "type": "TypeString", - "description": "User creation date", - "computed": true - }, - "last_modified": { - "name": "last_modified", - "type": "TypeString", - "description": "Last user modification date", - "computed": true - } - } + "name": "display_name", + "type": "TypeString", + "description": "Cloud Directory user display name", + "computed": true }, { - "name": "locked_until", - "type": "TypeInt", - "description": "Integer (epoch time in milliseconds), determines till when the user account will be locked", + "name": "user_name", + "type": "TypeString", + "description": "Optional username", "computed": true }, { - "name": "user_id", + "name": "status", "type": "TypeString", - "description": "Cloud Directory user ID", - "required": true + "description": "Current user status: `PENDING` or `CONFIRMED`", + "computed": true } ], "ibm_appid_idp_cloud_directory": [ - { - "name": "tenant_id", - "type": "TypeString", - "description": "The service `tenantId`", - "required": true - }, - { - "name": "is_active", - "type": "TypeBool", - "computed": true - }, - { - "name": "self_service_enabled", - "type": "TypeBool", - "description": "Allow users to manage their account from your app", - "computed": true - }, - { - "name": "signup_enabled", - "type": "TypeBool", - "description": "Allow users to sign-up to your app", - "computed": true - }, - { - "name": "reset_password_enabled", - "type": "TypeBool", - "computed": true - }, - { - "name": "welcome_enabled", - "type": "TypeBool", - "computed": true - }, { "name": "reset_password_notification_enabled", "type": "TypeBool", @@ -2578,40 +2545,61 @@ "name": "identity_field", "type": "TypeString", "computed": true - } - ], - "ibm_appid_idp_custom": [ + }, + { + "name": "tenant_id", + "type": "TypeString", + "description": "The service `tenantId`", + "required": true + }, { "name": "is_active", "type": "TypeBool", "computed": true }, { - "name": "public_key", - "type": "TypeString", - "description": "This is the public key used to validate your signed JWT. It is required to be a PEM in the RS256 or greater format.", + "name": "welcome_enabled", + "type": "TypeBool", "computed": true }, { - "name": "tenant_id", - "type": "TypeString", - "description": "The AppID instance GUID", - "required": true - } - ], - "ibm_appid_idp_facebook": [ + "name": "reset_password_enabled", + "type": "TypeBool", + "computed": true + }, { - "name": "redirect_url", - "type": "TypeString", - "description": "Paste the URI into the Valid OAuth redirect URIs field in the Facebook Login section of the Facebook Developers Portal", + "name": "self_service_enabled", + "type": "TypeBool", + "description": "Allow users to manage their account from your app", "computed": true }, + { + "name": "signup_enabled", + "type": "TypeBool", + "description": "Allow users to sign-up to your app", + "computed": true + } + ], + "ibm_appid_idp_custom": [ { "name": "tenant_id", "type": "TypeString", "description": "The AppID instance GUID", "required": true }, + { + "name": "is_active", + "type": "TypeBool", + "computed": true + }, + { + "name": "public_key", + "type": "TypeString", + "description": "This is the public key used to validate your signed JWT. It is required to be a PEM in the RS256 or greater format.", + "computed": true + } + ], + "ibm_appid_idp_facebook": [ { "name": "is_active", "type": "TypeBool", @@ -2638,6 +2626,18 @@ "computed": true } } + }, + { + "name": "redirect_url", + "type": "TypeString", + "description": "Paste the URI into the Valid OAuth redirect URIs field in the Facebook Login section of the Facebook Developers Portal", + "computed": true + }, + { + "name": "tenant_id", + "type": "TypeString", + "description": "The AppID instance GUID", + "required": true } ], "ibm_appid_idp_google": [ @@ -2681,6 +2681,12 @@ } ], "ibm_appid_idp_saml": [ + { + "name": "is_active", + "type": "TypeBool", + "description": "SAML IDP activation", + "computed": true + }, { "name": "config", "type": "TypeList", @@ -2761,12 +2767,6 @@ "type": "TypeString", "description": "The AppID instance GUID", "required": true - }, - { - "name": "is_active", - "type": "TypeBool", - "description": "SAML IDP activation", - "computed": true } ], "ibm_appid_idp_saml_metadata": [ @@ -2859,27 +2859,27 @@ ], "ibm_appid_password_regex": [ { - "name": "tenant_id", + "name": "error_message", "type": "TypeString", - "description": "The service `tenantId`", - "required": true + "description": "Custom error message", + "computed": true }, { - "name": "base64_encoded_regex", + "name": "regex", "type": "TypeString", - "description": "The regex expression rule for acceptable password encoded in base64", + "description": "The escaped regex expression rule for acceptable password", "computed": true }, { - "name": "error_message", + "name": "tenant_id", "type": "TypeString", - "description": "Custom error message", - "computed": true + "description": "The service `tenantId`", + "required": true }, { - "name": "regex", + "name": "base64_encoded_regex", "type": "TypeString", - "description": "The escaped regex expression rule for acceptable password", + "description": "The regex expression rule for acceptable password encoded in base64", "computed": true } ], @@ -3001,16 +3001,16 @@ } ], "ibm_appid_theme_color": [ - { - "name": "header_color", - "type": "TypeString", - "computed": true - }, { "name": "tenant_id", "type": "TypeString", "description": "The AppID instance GUID", "required": true + }, + { + "name": "header_color", + "type": "TypeString", + "computed": true } ], "ibm_appid_theme_text": [ @@ -3032,6 +3032,22 @@ } ], "ibm_appid_token_config": [ + { + "name": "anonymous_token_expires_in", + "type": "TypeInt", + "description": "The length of time for which an anonymous token is valid in seconds", + "computed": true + }, + { + "name": "anonymous_access_enabled", + "type": "TypeBool", + "computed": true + }, + { + "name": "refresh_token_enabled", + "type": "TypeBool", + "computed": true + }, { "name": "access_token_claim", "type": "TypeSet", @@ -3098,22 +3114,6 @@ "type": "TypeInt", "description": "The length of time for which refresh tokens are valid in seconds", "computed": true - }, - { - "name": "anonymous_token_expires_in", - "type": "TypeInt", - "description": "The length of time for which an anonymous token is valid in seconds", - "computed": true - }, - { - "name": "anonymous_access_enabled", - "type": "TypeBool", - "computed": true - }, - { - "name": "refresh_token_enabled", - "type": "TypeBool", - "computed": true } ], "ibm_appid_user_roles": [ @@ -3151,12 +3151,6 @@ } ], "ibm_atracker_routes": [ - { - "name": "name", - "type": "TypeString", - "description": "The name of the route.", - "optional": true - }, { "name": "routes", "type": "TypeList", @@ -3253,6 +3247,12 @@ "computed": true } } + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the route.", + "optional": true } ], "ibm_atracker_targets": [ @@ -3496,7 +3496,196 @@ } } ], + "ibm_billing_snapshot_list": [ + { + "name": "month", + "type": "TypeString", + "description": "The month for which billing report snapshot is requested. Format is yyyy-mm.", + "required": true + }, + { + "name": "date_from", + "type": "TypeInt", + "description": "Timestamp in milliseconds for which billing report snapshot is requested.", + "optional": true + }, + { + "name": "date_to", + "type": "TypeInt", + "description": "Timestamp in milliseconds for which billing report snapshot is requested.", + "optional": true + }, + { + "name": "snapshotcount", + "type": "TypeInt", + "description": "Number of total snapshots.", + "computed": true + }, + { + "name": "snapshots", + "type": "TypeList", + "computed": true, + "elem": { + "account_id": { + "name": "account_id", + "type": "TypeString", + "description": "Account ID for which billing report snapshot is configured.", + "computed": true + }, + "account_type": { + "name": "account_type", + "type": "TypeString", + "description": "Type of account. Possible values are [enterprise, account].", + "computed": true + }, + "billing_period": { + "name": "billing_period", + "type": "TypeList", + "description": "Period of billing in snapshot.", + "computed": true, + "elem": { + "end": { + "name": "end", + "type": "TypeString", + "description": "Date and time of end of billing in the respective snapshot.", + "computed": true + }, + "start": { + "name": "start", + "type": "TypeString", + "description": "Date and time of start of billing in the respective snapshot.", + "computed": true + } + } + }, + "bucket": { + "name": "bucket", + "type": "TypeString", + "description": "The name of the COS bucket to store the snapshot of the billing reports.", + "computed": true + }, + "charset": { + "name": "charset", + "type": "TypeString", + "description": "Character encoding used.", + "computed": true + }, + "compression": { + "name": "compression", + "type": "TypeString", + "description": "Compression format of the snapshot report.", + "computed": true + }, + "content_type": { + "name": "content_type", + "type": "TypeString", + "description": "Type of content stored in snapshot report.", + "computed": true + }, + "created_on": { + "name": "created_on", + "type": "TypeString", + "description": "Date and time of creation of snapshot.", + "computed": true + }, + "expected_processed_at": { + "name": "expected_processed_at", + "type": "TypeInt", + "description": "Timestamp of snapshot processed.", + "computed": true + }, + "files": { + "name": "files", + "type": "TypeList", + "description": "List of location of reports.", + "computed": true, + "elem": { + "account_id": { + "name": "account_id", + "type": "TypeString", + "description": "Account ID for which billing report is captured.", + "computed": true + }, + "location": { + "name": "location", + "type": "TypeString", + "description": "Absolute path of the billing report in the COS instance.", + "computed": true + }, + "report_types": { + "name": "report_types", + "type": "TypeString", + "description": "The type of billing report stored. Possible values are [account_summary, enterprise_summary, account_resource_instance_usage].", + "computed": true + } + } + }, + "month": { + "name": "month", + "type": "TypeString", + "description": "Month of captured snapshot.", + "computed": true + }, + "processed_at": { + "name": "processed_at", + "type": "TypeInt", + "description": "Timestamp at which snapshot is captured.", + "computed": true + }, + "report_types": { + "name": "report_types", + "type": "TypeList", + "description": "List of report types configured for the snapshot.", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "The type of billing report of the snapshot. Possible values are [account_summary, enterprise_summary, account_resource_instance_usage].", + "computed": true + }, + "version": { + "name": "version", + "type": "TypeString", + "description": "Version of the snapshot.", + "computed": true + } + } + }, + "snapshot_id": { + "name": "snapshot_id", + "type": "TypeString", + "description": "Id of the snapshot captured.", + "computed": true + }, + "state": { + "name": "state", + "type": "TypeString", + "description": "Status of the billing snapshot configuration. Possible values are [enabled, disabled].", + "computed": true + }, + "version": { + "name": "version", + "type": "TypeString", + "description": "Version of the snapshot.", + "computed": true + } + } + } + ], "ibm_cbr_rule": [ + { + "name": "last_modified_at", + "type": "TypeString", + "description": "The last time the resource was modified.", + "computed": true + }, + { + "name": "last_modified_by_id", + "type": "TypeString", + "description": "IAM ID of the user or service which modified the resource.", + "computed": true + }, { "name": "rule_id", "type": "TypeString", @@ -3539,10 +3728,25 @@ } }, { - "name": "enforcement_mode", - "type": "TypeString", - "description": "The rule enforcement mode: * `enabled` - The restrictions are enforced and reported. This is the default. * `disabled` - The restrictions are disabled. Nothing is enforced or reported. * `report` - The restrictions are evaluated and reported, but not enforced.", - "computed": true + "name": "operations", + "type": "TypeList", + "description": "The operations this rule applies to.", + "computed": true, + "elem": { + "api_types": { + "name": "api_types", + "type": "TypeList", + "description": "The API types this rule applies to.", + "computed": true, + "elem": { + "api_type_id": { + "name": "api_type_id", + "type": "TypeString", + "computed": true + } + } + } + } }, { "name": "href", @@ -3551,15 +3755,9 @@ "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The time the resource was created.", - "computed": true - }, - { - "name": "last_modified_at", + "name": "created_by_id", "type": "TypeString", - "description": "The last time the resource was modified.", + "description": "IAM ID of the user or service which created the resource.", "computed": true }, { @@ -3629,40 +3827,49 @@ } }, { - "name": "operations", - "type": "TypeList", - "description": "The operations this rule applies to.", - "computed": true, - "elem": { - "api_types": { - "name": "api_types", - "type": "TypeList", - "description": "The API types this rule applies to.", - "computed": true, - "elem": { - "api_type_id": { - "name": "api_type_id", - "type": "TypeString", - "computed": true - } - } - } - } - }, - { - "name": "created_by_id", + "name": "enforcement_mode", "type": "TypeString", - "description": "IAM ID of the user or service which created the resource.", + "description": "The rule enforcement mode: * `enabled` - The restrictions are enforced and reported. This is the default. * `disabled` - The restrictions are disabled. Nothing is enforced or reported. * `report` - The restrictions are evaluated and reported, but not enforced.", "computed": true }, { - "name": "last_modified_by_id", + "name": "created_at", "type": "TypeString", - "description": "IAM ID of the user or service which modified the resource.", + "description": "The time the resource was created.", "computed": true } ], "ibm_cbr_zone": [ + { + "name": "name", + "type": "TypeString", + "description": "The name of the zone.", + "computed": true + }, + { + "name": "account_id", + "type": "TypeString", + "description": "The id of the account owning this zone.", + "computed": true + }, + { + "name": "address_count", + "type": "TypeInt", + "description": "The number of addresses in the zone.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The description of the zone.", + "computed": true + }, + { + "name": "last_modified_at", + "type": "TypeString", + "description": "The last time the resource was modified.", + "computed": true + }, { "name": "zone_id", "type": "TypeString", @@ -3670,9 +3877,34 @@ "required": true }, { - "name": "address_count", + "name": "crn", + "type": "TypeString", + "description": "The zone CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The time the resource was created.", + "computed": true + }, + { + "name": "created_by_id", + "type": "TypeString", + "description": "IAM ID of the user or service which created the resource.", + "computed": true + }, + { + "name": "last_modified_by_id", + "type": "TypeString", + "description": "IAM ID of the user or service which modified the resource.", + "computed": true + }, + { + "name": "excluded_count", "type": "TypeInt", - "description": "The number of addresses in the zone.", + "description": "The number of excluded addresses in the zone.", "computed": true }, { @@ -3733,49 +3965,6 @@ } } }, - { - "name": "href", - "type": "TypeString", - "description": "The href link to the resource.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The time the resource was created.", - "computed": true - }, - { - "name": "created_by_id", - "type": "TypeString", - "description": "IAM ID of the user or service which created the resource.", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The zone CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the zone.", - "computed": true - }, - { - "name": "account_id", - "type": "TypeString", - "description": "The id of the account owning this zone.", - "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "The description of the zone.", - "computed": true - }, { "name": "excluded", "type": "TypeList", @@ -3797,37 +3986,13 @@ } }, { - "name": "last_modified_at", - "type": "TypeString", - "description": "The last time the resource was modified.", - "computed": true - }, - { - "name": "excluded_count", - "type": "TypeInt", - "description": "The number of excluded addresses in the zone.", - "computed": true - }, - { - "name": "last_modified_by_id", + "name": "href", "type": "TypeString", - "description": "IAM ID of the user or service which modified the resource.", + "description": "The href link to the resource.", "computed": true } ], "ibm_cd_tekton_pipeline": [ - { - "name": "enable_partial_cloning", - "type": "TypeBool", - "description": "Flag whether to enable partial cloning for this pipeline. When partial clone is enabled, only the files contained within the paths specified in definition repositories are read and cloned, this means that symbolic links might not work. If omitted, this feature is disabled by default.", - "computed": true - }, - { - "name": "enabled", - "type": "TypeBool", - "description": "Flag whether this pipeline is enabled.", - "computed": true - }, { "name": "resource_group", "type": "TypeList", @@ -3843,6 +4008,26 @@ } } }, + { + "name": "toolchain", + "type": "TypeList", + "description": "Toolchain object containing references to the parent toolchain.", + "computed": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for the toolchain that contains the Tekton pipeline.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "UUID.", + "computed": true + } + } + }, { "name": "definitions", "type": "TypeList", @@ -3924,51 +4109,16 @@ } }, { - "name": "properties", - "type": "TypeList", - "description": "Tekton pipeline's environment properties.", - "computed": true, - "elem": { - "enum": { - "name": "enum", - "type": "TypeList", - "description": "Options for `single_select` property type. Only needed when using `single_select` property type.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "API URL for interacting with the property.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Property name.", - "computed": true - }, - "path": { - "name": "path", - "type": "TypeString", - "description": "A dot notation path for `integration` type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Property type.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Property value. Any string value is valid.", - "computed": true - } - } + "name": "pipeline_id", + "type": "TypeString", + "description": "ID of current instance.", + "required": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Standard RFC 3339 Date Time String.", + "computed": true }, { "name": "created_at", @@ -4246,107 +4396,140 @@ } }, { - "name": "status", + "name": "enable_notifications", + "type": "TypeBool", + "description": "Flag whether to enable notifications for this pipeline. When enabled, pipeline run events will be published on all slack integration specified channels in the parent toolchain. If omitted, this feature is disabled by default.", + "computed": true + }, + { + "name": "name", "type": "TypeString", - "description": "Pipeline status.", + "description": "String.", "computed": true }, { - "name": "worker", + "name": "build_number", + "type": "TypeInt", + "description": "The latest pipeline run build number. If this property is absent, the pipeline hasn't had any pipeline runs.", + "computed": true + }, + { + "name": "properties", "type": "TypeList", - "description": "Details of the worker used to run the pipeline.", + "description": "Tekton pipeline's environment properties.", "computed": true, "elem": { - "id": { - "name": "id", + "enum": { + "name": "enum", + "type": "TypeList", + "description": "Options for `single_select` property type. Only needed when using `single_select` property type.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "href": { + "name": "href", "type": "TypeString", - "description": "ID of the worker.", + "description": "API URL for interacting with the property.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "Name of the worker. Computed based on the worker ID.", + "description": "Property name.", + "computed": true + }, + "path": { + "name": "path", + "type": "TypeString", + "description": "A dot notation path for `integration` type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.", "computed": true }, "type": { "name": "type", "type": "TypeString", - "description": "Type of the worker. Computed based on the worker ID.", + "description": "Property type.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Property value. Any string value is valid.", "computed": true } } }, { - "name": "next_build_number", - "type": "TypeInt", - "description": "The build number that will be used for the next pipeline run.", - "computed": true - }, - { - "name": "enable_notifications", - "type": "TypeBool", - "description": "Flag whether to enable notifications for this pipeline. When enabled, pipeline run events will be published on all slack integration specified channels in the parent toolchain. If omitted, this feature is disabled by default.", - "computed": true - }, - { - "name": "pipeline_id", - "type": "TypeString", - "description": "ID of current instance.", - "required": true - }, - { - "name": "toolchain", + "name": "worker", "type": "TypeList", - "description": "Toolchain object containing references to the parent toolchain.", + "description": "Details of the worker used to run the pipeline.", "computed": true, "elem": { - "crn": { - "name": "crn", + "id": { + "name": "id", "type": "TypeString", - "description": "The CRN for the toolchain that contains the Tekton pipeline.", + "description": "ID of the worker.", "computed": true }, - "id": { - "name": "id", + "name": { + "name": "name", "type": "TypeString", - "description": "UUID.", + "description": "Name of the worker. Computed based on the worker ID.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of the worker. Computed based on the worker ID.", "computed": true } } }, { - "name": "build_number", - "type": "TypeInt", - "description": "The latest pipeline run build number. If this property is absent, the pipeline hasn't had any pipeline runs.", + "name": "runs_url", + "type": "TypeString", + "description": "URL for this pipeline showing the list of pipeline runs.", "computed": true }, { - "name": "name", + "name": "href", "type": "TypeString", - "description": "String.", + "description": "API URL for interacting with the pipeline.", "computed": true }, { - "name": "updated_at", - "type": "TypeString", - "description": "Standard RFC 3339 Date Time String.", + "name": "next_build_number", + "type": "TypeInt", + "description": "The build number that will be used for the next pipeline run.", "computed": true }, { - "name": "runs_url", - "type": "TypeString", - "description": "URL for this pipeline showing the list of pipeline runs.", + "name": "enable_partial_cloning", + "type": "TypeBool", + "description": "Flag whether to enable partial cloning for this pipeline. When partial clone is enabled, only the files contained within the paths specified in definition repositories are read and cloned, this means that symbolic links might not work. If omitted, this feature is disabled by default.", "computed": true }, { - "name": "href", + "name": "enabled", + "type": "TypeBool", + "description": "Flag whether this pipeline is enabled.", + "computed": true + }, + { + "name": "status", "type": "TypeString", - "description": "API URL for interacting with the pipeline.", + "description": "Pipeline status.", "computed": true } ], "ibm_cd_tekton_pipeline_definition": [ + { + "name": "href", + "type": "TypeString", + "description": "API URL for interacting with the definition.", + "computed": true + }, { "name": "pipeline_id", "type": "TypeString", @@ -4418,21 +4601,9 @@ "computed": true } } - }, - { - "name": "href", - "type": "TypeString", - "description": "API URL for interacting with the definition.", - "computed": true } ], "ibm_cd_tekton_pipeline_property": [ - { - "name": "pipeline_id", - "type": "TypeString", - "description": "The Tekton pipeline ID.", - "required": true - }, { "name": "property_name", "type": "TypeString", @@ -4477,70 +4648,29 @@ "type": "TypeString", "description": "A dot notation path for `integration` type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.", "computed": true - } - ], - "ibm_cd_tekton_pipeline_trigger": [ - { - "name": "trigger_id", - "type": "TypeString", - "description": "The trigger ID.", - "required": true }, { - "name": "type", + "name": "pipeline_id", "type": "TypeString", - "description": "Trigger type.", - "computed": true - }, + "description": "The Tekton pipeline ID.", + "required": true + } + ], + "ibm_cd_tekton_pipeline_trigger": [ { - "name": "secret", + "name": "events", "type": "TypeList", - "description": "Only needed for generic webhook trigger type. Secret used to start generic webhook trigger.", + "description": "Only needed for Git triggers. List of events to which a Git trigger listens. Choose one or more from: 'push', 'pull_request' and 'pull_request_closed'. For SCM repositories that use 'merge request' events, such events map to the equivalent 'pull request' events.", "computed": true, "elem": { - "algorithm": { - "name": "algorithm", - "type": "TypeString", - "description": "Algorithm used for `digest_matches` secret type. Only needed for `digest_matches` secret type.", - "computed": true - }, - "key_name": { - "name": "key_name", - "type": "TypeString", - "description": "Secret name, not needed if type is `internal_validation`.", - "computed": true - }, - "source": { - "name": "source", - "type": "TypeString", - "description": "Secret location, not needed if secret type is `internal_validation`.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Secret type.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Secret value, not needed if secret type is `internal_validation`.", - "computed": true - } + "type": "TypeString" } }, { - "name": "webhook_url", - "type": "TypeString", - "description": "Webhook URL that can be used to trigger pipeline runs.", - "computed": true - }, - { - "name": "href", + "name": "trigger_id", "type": "TypeString", - "description": "API URL for interacting with the trigger. Only included when fetching the list of pipeline triggers.", - "computed": true + "description": "The trigger ID.", + "required": true }, { "name": "properties", @@ -4589,46 +4719,6 @@ } } }, - { - "name": "name", - "type": "TypeString", - "description": "Trigger name.", - "computed": true - }, - { - "name": "event_listener", - "type": "TypeString", - "description": "Event listener name. The name of the event listener to which the trigger is associated. The event listeners are defined in the definition repositories of the Tekton pipeline.", - "computed": true - }, - { - "name": "tags", - "type": "TypeList", - "description": "Optional trigger tags array.", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "enabled", - "type": "TypeBool", - "description": "Flag whether the trigger is enabled.", - "computed": true - }, - { - "name": "cron", - "type": "TypeString", - "description": "Only needed for timer triggers. Cron expression that indicates when this trigger will activate. Maximum frequency is every 5 minutes. The string is based on UNIX crontab syntax: minute, hour, day of month, month, day of week. Example: 0 *_/2 * * * - every 2 hours.", - "computed": true - }, - { - "name": "pipeline_id", - "type": "TypeString", - "description": "The Tekton pipeline ID.", - "required": true - }, { "name": "worker", "type": "TypeList", @@ -4662,9 +4752,27 @@ "computed": true }, { - "name": "favorite", + "name": "enabled", "type": "TypeBool", - "description": "Mark the trigger as a favorite.", + "description": "Flag whether the trigger is enabled.", + "computed": true + }, + { + "name": "cron", + "type": "TypeString", + "description": "Only needed for timer triggers. Cron expression that indicates when this trigger will activate. Maximum frequency is every 5 minutes. The string is based on UNIX crontab syntax: minute, hour, day of month, month, day of week. Example: 0 *_/2 * * * - every 2 hours.", + "computed": true + }, + { + "name": "event_listener", + "type": "TypeString", + "description": "Event listener name. The name of the event listener to which the trigger is associated. The event listeners are defined in the definition repositories of the Tekton pipeline.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Trigger name.", "computed": true }, { @@ -4734,27 +4842,102 @@ } }, { - "name": "events", + "name": "secret", "type": "TypeList", - "description": "Only needed for Git triggers. List of events to which a Git trigger listens. Choose one or more from: 'push', 'pull_request' and 'pull_request_closed'. For SCM repositories that use 'merge request' events, such events map to the equivalent 'pull request' events.", + "description": "Only needed for generic webhook trigger type. Secret used to start generic webhook trigger.", + "computed": true, + "elem": { + "algorithm": { + "name": "algorithm", + "type": "TypeString", + "description": "Algorithm used for `digest_matches` secret type. Only needed for `digest_matches` secret type.", + "computed": true + }, + "key_name": { + "name": "key_name", + "type": "TypeString", + "description": "Secret name, not needed if type is `internal_validation`.", + "computed": true + }, + "source": { + "name": "source", + "type": "TypeString", + "description": "Secret location, not needed if secret type is `internal_validation`.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Secret type.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Secret value, not needed if secret type is `internal_validation`.", + "computed": true + } + } + }, + { + "name": "pipeline_id", + "type": "TypeString", + "description": "The Tekton pipeline ID.", + "required": true + }, + { + "name": "href", + "type": "TypeString", + "description": "API URL for interacting with the trigger. Only included when fetching the list of pipeline triggers.", + "computed": true + }, + { + "name": "tags", + "type": "TypeList", + "description": "Optional trigger tags array.", + "cloud_data_type": "tags", "computed": true, "elem": { "type": "TypeString" } }, + { + "name": "favorite", + "type": "TypeBool", + "description": "Mark the trigger as a favorite.", + "computed": true + }, { "name": "timezone", "type": "TypeString", "description": "Only used for timer triggers. Specify the timezone used for this timer trigger, which will ensure the cron activates this trigger relative to the specified timezone. If no timezone is specified, the default timezone used is UTC. Valid timezones are those listed in the IANA timezone database, https://www.iana.org/time-zones.", "computed": true + }, + { + "name": "webhook_url", + "type": "TypeString", + "description": "Webhook URL that can be used to trigger pipeline runs.", + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Trigger type.", + "computed": true } ], "ibm_cd_tekton_pipeline_trigger_property": [ { - "name": "property_name", + "name": "name", "type": "TypeString", - "description": "The property name.", - "required": true + "description": "Property name.", + "computed": true + }, + { + "name": "value", + "type": "TypeString", + "description": "Property value. Any string value is valid.", + "computed": true }, { "name": "enum", @@ -4766,15 +4949,15 @@ } }, { - "name": "path", + "name": "type", "type": "TypeString", - "description": "A dot notation path for `integration` type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.", + "description": "Property type.", "computed": true }, { - "name": "type", + "name": "path", "type": "TypeString", - "description": "Property type.", + "description": "A dot notation path for `integration` type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.", "computed": true }, { @@ -4790,16 +4973,10 @@ "required": true }, { - "name": "name", - "type": "TypeString", - "description": "Property name.", - "computed": true - }, - { - "name": "value", + "name": "property_name", "type": "TypeString", - "description": "Property value. Any string value is valid.", - "computed": true + "description": "The property name.", + "required": true }, { "name": "href", @@ -4809,12 +4986,6 @@ } ], "ibm_cd_toolchain": [ - { - "name": "name", - "type": "TypeString", - "description": "Toolchain name.", - "computed": true - }, { "name": "resource_group_id", "type": "TypeString", @@ -4823,15 +4994,16 @@ "computed": true }, { - "name": "href", + "name": "crn", "type": "TypeString", - "description": "URI that can be used to retrieve toolchain.", + "description": "Toolchain CRN.", + "cloud_data_type": "crn", "computed": true }, { - "name": "created_at", + "name": "href", "type": "TypeString", - "description": "Toolchain creation timestamp.", + "description": "URI that can be used to retrieve toolchain.", "computed": true }, { @@ -4845,15 +5017,15 @@ } }, { - "name": "toolchain_id", + "name": "name", "type": "TypeString", - "description": "ID of the toolchain.", - "required": true + "description": "Toolchain name.", + "computed": true }, { - "name": "account_id", + "name": "description", "type": "TypeString", - "description": "Account ID where toolchain can be found.", + "description": "Describes the toolchain.", "computed": true }, { @@ -4864,16 +5036,15 @@ "computed": true }, { - "name": "crn", + "name": "ui_href", "type": "TypeString", - "description": "Toolchain CRN.", - "cloud_data_type": "crn", + "description": "URL of a user-facing user interface for this toolchain.", "computed": true }, { - "name": "ui_href", + "name": "created_at", "type": "TypeString", - "description": "URL of a user-facing user interface for this toolchain.", + "description": "Toolchain creation timestamp.", "computed": true }, { @@ -4889,13 +5060,81 @@ "computed": true }, { - "name": "description", + "name": "toolchain_id", "type": "TypeString", - "description": "Describes the toolchain.", + "description": "ID of the toolchain.", + "required": true + }, + { + "name": "account_id", + "type": "TypeString", + "description": "Account ID where toolchain can be found.", "computed": true } ], "ibm_cd_toolchain_tool_appconfig": [ + { + "name": "parameters", + "type": "TypeList", + "description": "Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the \u003ca href=\"https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations\"\u003eConfiguring tool integrations page\u003c/a\u003e.", + "computed": true, + "elem": { + "collection_id": { + "name": "collection_id", + "type": "TypeString", + "description": "The ID of the App Configuration collection.", + "computed": true + }, + "environment_id": { + "name": "environment_id", + "type": "TypeString", + "description": "The ID of the App Configuration environment.", + "computed": true + }, + "instance_id": { + "name": "instance_id", + "type": "TypeString", + "description": "The guid of the App Configuration service instance.", + "computed": true + }, + "location": { + "name": "location", + "type": "TypeString", + "description": "The IBM Cloud location where the App Configuration service instance is located.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The name used to identify this tool integration. App Configuration references include this name to identify the App Configuration instance where the configuration values reside. All App Configuration tools integrated into a toolchain should have a unique name to allow resolution to function properly.", + "computed": true + }, + "resource_group_name": { + "name": "resource_group_name", + "type": "TypeString", + "description": "The name of the resource group where the App Configuration service instance is located.", + "computed": true + } + } + }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain.", + "required": true + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "ID of the tool bound to the toolchain.", + "required": true + }, { "name": "resource_group_id", "type": "TypeString", @@ -4903,6 +5142,31 @@ "cloud_data_type": "resource_group", "computed": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, { "name": "href", "type": "TypeString", @@ -4928,7 +5192,9 @@ "computed": true } } - }, + } + ], + "ibm_cd_toolchain_tool_artifactory": [ { "name": "toolchain_id", "type": "TypeString", @@ -4942,87 +5208,56 @@ "required": true }, { - "name": "crn", + "name": "resource_group_id", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "toolchain_crn", + "name": "crn", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true }, { - "name": "name", + "name": "href", "type": "TypeString", - "description": "Name of the tool.", + "description": "URI representing the tool.", "computed": true }, { - "name": "updated_at", + "name": "toolchain_crn", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { - "name": "parameters", + "name": "referent", "type": "TypeList", - "description": "Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the \u003ca href=\"https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations\"\u003eConfiguring tool integrations page\u003c/a\u003e.", + "description": "Information on URIs to access this resource through the UI or API.", "computed": true, "elem": { - "collection_id": { - "name": "collection_id", - "type": "TypeString", - "description": "The ID of the App Configuration collection.", - "computed": true - }, - "environment_id": { - "name": "environment_id", - "type": "TypeString", - "description": "The ID of the App Configuration environment.", - "computed": true - }, - "instance_id": { - "name": "instance_id", - "type": "TypeString", - "description": "The guid of the App Configuration service instance.", - "computed": true - }, - "location": { - "name": "location", - "type": "TypeString", - "description": "The IBM Cloud location where the App Configuration service instance is located.", - "computed": true - }, - "name": { - "name": "name", + "api_href": { + "name": "api_href", "type": "TypeString", - "description": "The name used to identify this tool integration. App Configuration references include this name to identify the App Configuration instance where the configuration values reside. All App Configuration tools integrated into a toolchain should have a unique name to allow resolution to function properly.", + "description": "URI representing this resource through an API.", "computed": true }, - "resource_group_name": { - "name": "resource_group_name", + "ui_href": { + "name": "ui_href", "type": "TypeString", - "description": "The name of the resource group where the App Configuration service instance is located.", + "description": "URI representing this resource through the UI.", "computed": true } } }, { - "name": "state", + "name": "name", "type": "TypeString", - "description": "Current configuration state of the tool.", + "description": "Name of the tool.", "computed": true - } - ], - "ibm_cd_toolchain_tool_artifactory": [ - { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true }, { "name": "updated_at", @@ -5100,17 +5335,13 @@ } }, { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "href", + "name": "state", "type": "TypeString", - "description": "URI representing the tool.", + "description": "Current configuration state of the tool.", "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_bitbucketgit": [ { "name": "referent", "type": "TypeList", @@ -5137,53 +5368,6 @@ "description": "Name of the tool.", "computed": true }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain.", - "required": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - } - ], - "ibm_cd_toolchain_tool_bitbucketgit": [ - { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, { "name": "updated_at", "type": "TypeString", @@ -5283,15 +5467,15 @@ } }, { - "name": "state", + "name": "href", "type": "TypeString", - "description": "Current configuration state of the tool.", + "description": "URI representing the tool.", "computed": true }, { - "name": "toolchain_id", + "name": "tool_id", "type": "TypeString", - "description": "ID of the toolchain.", + "description": "ID of the tool bound to the toolchain.", "required": true }, { @@ -5302,44 +5486,37 @@ "computed": true }, { - "name": "href", + "name": "crn", "type": "TypeString", - "description": "URI representing the tool.", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true }, { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "computed": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "computed": true - } - } + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true }, { - "name": "name", + "name": "state", "type": "TypeString", - "description": "Name of the tool.", + "description": "Current configuration state of the tool.", "computed": true + }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain.", + "required": true } ], "ibm_cd_toolchain_tool_custom": [ { - "name": "crn", + "name": "resource_group_id", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, { @@ -5374,43 +5551,6 @@ "description": "Current configuration state of the tool.", "computed": true }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain.", - "required": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, { "name": "parameters", "type": "TypeList", @@ -5466,9 +5606,77 @@ "computed": true } } + }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain.", + "required": true + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "ID of the tool bound to the toolchain.", + "required": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true } ], "ibm_cd_toolchain_tool_devopsinsights": [ + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain.", + "required": true + }, { "name": "tool_id", "type": "TypeString", @@ -5483,9 +5691,9 @@ "computed": true }, { - "name": "toolchain_crn", + "name": "href", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "URI representing the tool.", "computed": true }, { @@ -5508,18 +5716,14 @@ } } }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "computed": true - }, { "name": "state", "type": "TypeString", "description": "Current configuration state of the tool.", "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_eventnotifications": [ { "name": "toolchain_id", "type": "TypeString", @@ -5527,26 +5731,18 @@ "required": true }, { - "name": "href", + "name": "resource_group_id", "type": "TypeString", - "description": "URI representing the tool.", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "updated_at", + "name": "toolchain_crn", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - } - ], - "ibm_cd_toolchain_tool_eventnotifications": [ { "name": "referent", "type": "TypeList", @@ -5568,16 +5764,9 @@ } }, { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "computed": true - }, - { - "name": "crn", + "name": "state", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", + "description": "Current configuration state of the tool.", "computed": true }, { @@ -5587,22 +5776,22 @@ "required": true }, { - "name": "resource_group_id", + "name": "crn", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true }, { - "name": "toolchain_crn", + "name": "href", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "URI representing the tool.", "computed": true }, { - "name": "href", + "name": "name", "type": "TypeString", - "description": "URI representing the tool.", + "description": "Name of the tool.", "computed": true }, { @@ -5630,7 +5819,9 @@ "computed": true } } - }, + } + ], + "ibm_cd_toolchain_tool_githubconsolidated": [ { "name": "state", "type": "TypeString", @@ -5642,9 +5833,39 @@ "type": "TypeString", "description": "ID of the toolchain.", "required": true - } - ], - "ibm_cd_toolchain_tool_githubconsolidated": [ + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "ID of the tool bound to the toolchain.", + "required": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, { "name": "referent", "type": "TypeList", @@ -5665,6 +5886,12 @@ } } }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "computed": true + }, { "name": "updated_at", "type": "TypeString", @@ -5799,90 +6026,15 @@ "computed": true } } - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "computed": true - }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain.", - "required": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true } ], "ibm_cd_toolchain_tool_gitlab": [ - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "computed": true - }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, { "name": "tool_id", "type": "TypeString", "description": "ID of the tool bound to the toolchain.", "required": true }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, { "name": "crn", "type": "TypeString", @@ -5890,12 +6042,6 @@ "cloud_data_type": "crn", "computed": true }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, { "name": "referent", "type": "TypeList", @@ -5917,9 +6063,9 @@ } }, { - "name": "updated_at", + "name": "state", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "Current configuration state of the tool.", "computed": true }, { @@ -6050,40 +6196,25 @@ "type": "TypeString", "description": "ID of the toolchain.", "required": true - } - ], - "ibm_cd_toolchain_tool_hashicorpvault": [ + }, { - "name": "toolchain_id", + "name": "resource_group_id", "type": "TypeString", - "description": "ID of the toolchain.", - "required": true + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true }, { - "name": "href", + "name": "toolchain_crn", "type": "TypeString", - "description": "URI representing the tool.", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "computed": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "computed": true - } - } + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true }, { "name": "name", @@ -6092,9 +6223,48 @@ "computed": true }, { - "name": "parameters", - "type": "TypeList", - "description": "Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the \u003ca href=\"https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations\"\u003eConfiguring tool integrations page\u003c/a\u003e.", + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + } + ], + "ibm_cd_toolchain_tool_hashicorpvault": [ + { + "name": "tool_id", + "type": "TypeString", + "description": "ID of the tool bound to the toolchain.", + "required": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "computed": true + }, + { + "name": "parameters", + "type": "TypeList", + "description": "Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the \u003ca href=\"https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations\"\u003eConfiguring tool integrations page\u003c/a\u003e.", "computed": true, "elem": { "authentication_method": { @@ -6182,18 +6352,11 @@ "computed": true }, { - "name": "tool_id", + "name": "toolchain_id", "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", + "description": "ID of the toolchain.", "required": true }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, { "name": "crn", "type": "TypeString", @@ -6202,10 +6365,24 @@ "computed": true }, { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "computed": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "computed": true + } + } }, { "name": "updated_at", @@ -6215,6 +6392,25 @@ } ], "ibm_cd_toolchain_tool_hostedgit": [ + { + "name": "tool_id", + "type": "TypeString", + "description": "ID of the tool bound to the toolchain.", + "required": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, { "name": "referent", "type": "TypeList", @@ -6235,12 +6431,36 @@ } } }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain.", + "required": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, { "name": "name", "type": "TypeString", "description": "Name of the tool.", "computed": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + }, { "name": "parameters", "type": "TypeList", @@ -6346,24 +6566,20 @@ } } }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, { "name": "resource_group_id", "type": "TypeString", "description": "Resource group where the tool is located.", "cloud_data_type": "resource_group", "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_jenkins": [ { - "name": "href", + "name": "toolchain_id", "type": "TypeString", - "description": "URI representing the tool.", - "computed": true + "description": "ID of the toolchain.", + "required": true }, { "name": "crn", @@ -6373,9 +6589,9 @@ "computed": true }, { - "name": "toolchain_crn", + "name": "href", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "URI representing the tool.", "computed": true }, { @@ -6385,29 +6601,68 @@ "computed": true }, { - "name": "toolchain_id", + "name": "parameters", + "type": "TypeList", + "description": "Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the \u003ca href=\"https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations\"\u003eConfiguring tool integrations page\u003c/a\u003e.", + "computed": true, + "elem": { + "api_token": { + "name": "api_token", + "type": "TypeString", + "description": "The API token to use for Jenkins REST API calls so that DevOps Insights can collect data from Jenkins. You can find the API token on the configuration page of your Jenkins instance. You can use a toolchain secret reference for this parameter. For more information, see [Protecting your sensitive data in Continuous Delivery](https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-cd_data_security#cd_secure_credentials).", + "secure": true, + "computed": true + }, + "api_user_name": { + "name": "api_user_name", + "type": "TypeString", + "description": "The user name to use with the Jenkins server's API token, which is required so that DevOps Insights can collect data from Jenkins. You can find your API user name on the configuration page of your Jenkins instance.", + "computed": true + }, + "dashboard_url": { + "name": "dashboard_url", + "type": "TypeString", + "description": "The URL of the Jenkins server dashboard for this integration. In the graphical UI, this is the dashboard that the browser will navigate to when you click the Jenkins integration tile.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The name for this tool integration.", + "computed": true + }, + "webhook_url": { + "name": "webhook_url", + "type": "TypeString", + "description": "The webhook to use in your Jenkins jobs to send notifications to other tools in your toolchain.", + "secure": true, + "computed": true + } + } + }, + { + "name": "state", "type": "TypeString", - "description": "ID of the toolchain.", - "required": true + "description": "Current configuration state of the tool.", + "computed": true }, { "name": "tool_id", "type": "TypeString", "description": "ID of the tool bound to the toolchain.", "required": true - } - ], - "ibm_cd_toolchain_tool_jenkins": [ + }, { - "name": "toolchain_crn", + "name": "resource_group_id", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "href", + "name": "toolchain_crn", "type": "TypeString", - "description": "URI representing the tool.", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { @@ -6435,87 +6690,41 @@ "type": "TypeString", "description": "Name of the tool.", "computed": true - }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain.", - "required": true - }, + } + ], + "ibm_cd_toolchain_tool_jira": [ { - "name": "updated_at", + "name": "toolchain_crn", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { - "name": "parameters", + "name": "referent", "type": "TypeList", - "description": "Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the \u003ca href=\"https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations\"\u003eConfiguring tool integrations page\u003c/a\u003e.", + "description": "Information on URIs to access this resource through the UI or API.", "computed": true, "elem": { - "api_token": { - "name": "api_token", - "type": "TypeString", - "description": "The API token to use for Jenkins REST API calls so that DevOps Insights can collect data from Jenkins. You can find the API token on the configuration page of your Jenkins instance. You can use a toolchain secret reference for this parameter. For more information, see [Protecting your sensitive data in Continuous Delivery](https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-cd_data_security#cd_secure_credentials).", - "secure": true, - "computed": true - }, - "api_user_name": { - "name": "api_user_name", - "type": "TypeString", - "description": "The user name to use with the Jenkins server's API token, which is required so that DevOps Insights can collect data from Jenkins. You can find your API user name on the configuration page of your Jenkins instance.", - "computed": true - }, - "dashboard_url": { - "name": "dashboard_url", - "type": "TypeString", - "description": "The URL of the Jenkins server dashboard for this integration. In the graphical UI, this is the dashboard that the browser will navigate to when you click the Jenkins integration tile.", - "computed": true - }, - "name": { - "name": "name", + "api_href": { + "name": "api_href", "type": "TypeString", - "description": "The name for this tool integration.", + "description": "URI representing this resource through an API.", "computed": true }, - "webhook_url": { - "name": "webhook_url", + "ui_href": { + "name": "ui_href", "type": "TypeString", - "description": "The webhook to use in your Jenkins jobs to send notifications to other tools in your toolchain.", - "secure": true, + "description": "URI representing this resource through the UI.", "computed": true } } - } - ], - "ibm_cd_toolchain_tool_jira": [ + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "computed": true + }, { "name": "tool_id", "type": "TypeString", @@ -6529,6 +6738,12 @@ "cloud_data_type": "crn", "computed": true }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, { "name": "updated_at", "type": "TypeString", @@ -6592,52 +6807,53 @@ "description": "Resource group where the tool is located.", "cloud_data_type": "resource_group", "computed": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_keyprotect": [ { - "name": "referent", + "name": "parameters", "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", + "description": "Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the \u003ca href=\"https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations\"\u003eConfiguring tool integrations page\u003c/a\u003e.", "computed": true, "elem": { - "api_href": { - "name": "api_href", + "instance_name": { + "name": "instance_name", "type": "TypeString", - "description": "URI representing this resource through an API.", + "description": "The name of the Key Protect service instance.", "computed": true }, - "ui_href": { - "name": "ui_href", + "location": { + "name": "location", "type": "TypeString", - "description": "URI representing this resource through the UI.", + "description": "The IBM Cloud location where the Key Protect service instance is located.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The name used to identify this tool integration. Secret references include this name to identify the secrets store where the secrets reside. All secrets store tools integrated into a toolchain should have a unique name to allow secret resolution to function properly.", + "computed": true + }, + "resource_group_name": { + "name": "resource_group_name", + "type": "TypeString", + "description": "The name of the resource group where the Key Protect service instance is located.", "computed": true } } }, { - "name": "name", + "name": "state", "type": "TypeString", - "description": "Name of the tool.", + "description": "Current configuration state of the tool.", "computed": true - } - ], - "ibm_cd_toolchain_tool_keyprotect": [ + }, { - "name": "toolchain_id", + "name": "resource_group_id", "type": "TypeString", - "description": "ID of the toolchain.", - "required": true + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true }, { "name": "crn", @@ -6646,6 +6862,18 @@ "cloud_data_type": "crn", "computed": true }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, { "name": "referent", "type": "TypeList", @@ -6673,42 +6901,10 @@ "computed": true }, { - "name": "updated_at", + "name": "toolchain_id", "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, - { - "name": "parameters", - "type": "TypeList", - "description": "Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the \u003ca href=\"https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations\"\u003eConfiguring tool integrations page\u003c/a\u003e.", - "computed": true, - "elem": { - "instance_name": { - "name": "instance_name", - "type": "TypeString", - "description": "The name of the Key Protect service instance.", - "computed": true - }, - "location": { - "name": "location", - "type": "TypeString", - "description": "The IBM Cloud location where the Key Protect service instance is located.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The name used to identify this tool integration. Secret references include this name to identify the secrets store where the secrets reside. All secrets store tools integrated into a toolchain should have a unique name to allow secret resolution to function properly.", - "computed": true - }, - "resource_group_name": { - "name": "resource_group_name", - "type": "TypeString", - "description": "The name of the resource group where the Key Protect service instance is located.", - "computed": true - } - } + "description": "ID of the toolchain.", + "required": true }, { "name": "tool_id", @@ -6717,28 +6913,9 @@ "required": true }, { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, - { - "name": "state", + "name": "updated_at", "type": "TypeString", - "description": "Current configuration state of the tool.", + "description": "Latest tool update timestamp.", "computed": true } ], @@ -6800,18 +6977,6 @@ } } }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain.", - "required": true - }, { "name": "tool_id", "type": "TypeString", @@ -6826,28 +6991,34 @@ "computed": true }, { - "name": "href", + "name": "crn", "type": "TypeString", - "description": "URI representing the tool.", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true }, { - "name": "name", + "name": "toolchain_crn", "type": "TypeString", - "description": "Name of the tool.", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { - "name": "crn", + "name": "updated_at", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", + "description": "Latest tool update timestamp.", "computed": true }, { - "name": "toolchain_crn", + "name": "toolchain_id", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "ID of the toolchain.", + "required": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", "computed": true }, { @@ -6871,37 +7042,19 @@ } }, { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - } - ], - "ibm_cd_toolchain_tool_pagerduty": [ - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain.", - "required": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true - }, - { - "name": "href", + "name": "name", "type": "TypeString", - "description": "URI representing the tool.", + "description": "Name of the tool.", "computed": true }, { - "name": "name", + "name": "state", "type": "TypeString", - "description": "Name of the tool.", + "description": "Current configuration state of the tool.", "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_pagerduty": [ { "name": "resource_group_id", "type": "TypeString", @@ -6922,26 +7075,6 @@ "description": "CRN of toolchain which the tool is bound to.", "computed": true }, - { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "computed": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "computed": true - } - } - }, { "name": "updated_at", "type": "TypeString", @@ -6980,20 +7113,18 @@ "type": "TypeString", "description": "Current configuration state of the tool.", "computed": true - } - ], - "ibm_cd_toolchain_tool_pipeline": [ + }, { - "name": "tool_id", + "name": "toolchain_id", "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", + "description": "ID of the toolchain.", "required": true }, { - "name": "toolchain_crn", + "name": "tool_id", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true + "description": "ID of the tool bound to the toolchain.", + "required": true }, { "name": "href", @@ -7001,32 +7132,72 @@ "description": "URI representing the tool.", "computed": true }, + { + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "computed": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "computed": true + } + } + }, { "name": "name", "type": "TypeString", "description": "Name of the tool.", "computed": true + } + ], + "ibm_cd_toolchain_tool_pipeline": [ + { + "name": "tool_id", + "type": "TypeString", + "description": "ID of the tool bound to the toolchain.", + "required": true }, { - "name": "updated_at", + "name": "href", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "URI representing the tool.", "computed": true }, { - "name": "parameters", + "name": "referent", "type": "TypeList", - "description": "Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the \u003ca href=\"https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations\"\u003eConfiguring tool integrations page\u003c/a\u003e.", + "description": "Information on URIs to access this resource through the UI or API.", "computed": true, "elem": { - "name": { - "name": "name", + "api_href": { + "name": "api_href", "type": "TypeString", - "description": "The name used for this tool integration.", + "description": "URI representing this resource through an API.", + "computed": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", "computed": true } } }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + }, { "name": "state", "type": "TypeString", @@ -7053,6 +7224,47 @@ "cloud_data_type": "crn", "computed": true }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "computed": true + }, + { + "name": "parameters", + "type": "TypeList", + "description": "Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the \u003ca href=\"https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations\"\u003eConfiguring tool integrations page\u003c/a\u003e.", + "computed": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "The name used for this tool integration.", + "computed": true + } + } + } + ], + "ibm_cd_toolchain_tool_privateworker": [ + { + "name": "tool_id", + "type": "TypeString", + "description": "ID of the tool bound to the toolchain.", + "required": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, { "name": "referent", "type": "TypeList", @@ -7072,9 +7284,7 @@ "computed": true } } - } - ], - "ibm_cd_toolchain_tool_privateworker": [ + }, { "name": "parameters", "type": "TypeList", @@ -7108,6 +7318,12 @@ "description": "Current configuration state of the tool.", "computed": true }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain.", + "required": true + }, { "name": "resource_group_id", "type": "TypeString", @@ -7116,10 +7332,35 @@ "computed": true }, { - "name": "crn", + "name": "toolchain_crn", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + } + ], + "ibm_cd_toolchain_tool_saucelabs": [ + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { @@ -7148,6 +7389,12 @@ } } }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "computed": true + }, { "name": "updated_at", "type": "TypeString", @@ -7161,25 +7408,12 @@ "required": true }, { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true - }, - { - "name": "toolchain_crn", + "name": "resource_group_id", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "computed": true - } - ], - "ibm_cd_toolchain_tool_saucelabs": [ { "name": "crn", "type": "TypeString", @@ -7187,32 +7421,6 @@ "cloud_data_type": "crn", "computed": true }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "computed": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "computed": true - } - } - }, { "name": "parameters", "type": "TypeList", @@ -7234,37 +7442,6 @@ } } }, - { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, { "name": "state", "type": "TypeString", @@ -7272,23 +7449,24 @@ "computed": true }, { - "name": "toolchain_id", + "name": "tool_id", "type": "TypeString", - "description": "ID of the toolchain.", + "description": "ID of the tool bound to the toolchain.", "required": true } ], "ibm_cd_toolchain_tool_secretsmanager": [ { - "name": "name", + "name": "toolchain_id", "type": "TypeString", - "description": "Name of the tool.", - "computed": true + "description": "ID of the toolchain.", + "required": true }, { - "name": "updated_at", + "name": "resource_group_id", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, { @@ -7297,12 +7475,6 @@ "description": "CRN of toolchain which the tool is bound to.", "computed": true }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, { "name": "referent", "type": "TypeList", @@ -7324,10 +7496,15 @@ } }, { - "name": "crn", + "name": "name", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", + "description": "Name of the tool.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", "computed": true }, { @@ -7381,26 +7558,38 @@ "computed": true }, { - "name": "toolchain_id", + "name": "tool_id", "type": "TypeString", - "description": "ID of the toolchain.", + "description": "ID of the tool bound to the toolchain.", "required": true }, { - "name": "tool_id", + "name": "crn", "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true }, { - "name": "resource_group_id", + "name": "href", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", + "description": "URI representing the tool.", "computed": true } ], "ibm_cd_toolchain_tool_securitycompliance": [ + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain.", + "required": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, { "name": "referent", "type": "TypeList", @@ -7421,6 +7610,50 @@ } } }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "ID of the tool bound to the toolchain.", + "required": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + }, { "name": "parameters", "type": "TypeList", @@ -7512,39 +7745,9 @@ "computed": true } } - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_slack": [ { "name": "name", "type": "TypeString", @@ -7557,53 +7760,6 @@ "description": "Latest tool update timestamp.", "computed": true }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain.", - "required": true - } - ], - "ibm_cd_toolchain_tool_slack": [ - { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "computed": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "computed": true - } - } - }, { "name": "parameters", "type": "TypeList", @@ -7662,15 +7818,9 @@ } }, { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, - { - "name": "toolchain_id", + "name": "tool_id", "type": "TypeString", - "description": "ID of the toolchain.", + "description": "ID of the tool bound to the toolchain.", "required": true }, { @@ -7693,30 +7843,71 @@ "computed": true }, { - "name": "name", + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "computed": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "computed": true + } + } + }, + { + "name": "state", "type": "TypeString", - "description": "Name of the tool.", + "description": "Current configuration state of the tool.", "computed": true }, { - "name": "updated_at", + "name": "toolchain_id", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "ID of the toolchain.", + "required": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true } ], "ibm_cd_toolchain_tool_sonarqube": [ { - "name": "name", + "name": "resource_group_id", "type": "TypeString", - "description": "Name of the tool.", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "tool_id", + "name": "crn", "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true }, { "name": "referent", @@ -7739,22 +7930,21 @@ } }, { - "name": "crn", + "name": "state", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", + "description": "Current configuration state of the tool.", "computed": true }, { - "name": "toolchain_crn", + "name": "tool_id", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true + "description": "ID of the tool bound to the toolchain.", + "required": true }, { - "name": "href", + "name": "name", "type": "TypeString", - "description": "URI representing the tool.", + "description": "Name of the tool.", "computed": true }, { @@ -7802,31 +7992,18 @@ } } }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, { "name": "toolchain_id", "type": "TypeString", "description": "ID of the toolchain.", "required": true - }, + } + ], + "ibm_cd_toolchains": [ { "name": "resource_group_id", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - } - ], - "ibm_cd_toolchains": [ - { - "name": "resource_group_id", - "type": "TypeString", - "description": "The resource group ID where the toolchains exist.", + "description": "The resource group ID where the toolchains exist.", "cloud_data_type": "resource_group", "required": true }, @@ -7919,27 +8096,17 @@ ], "ibm_cis": [ { - "name": "plan", - "type": "TypeString", - "description": "The plan type of the cis instance", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The resource instance status", - "computed": true - }, - { - "name": "resource_status", + "name": "resource_group_id", "type": "TypeString", - "description": "The status of the resource", - "computed": true + "description": "The id of the resource group in which the cis instance is present", + "cloud_data_type": "resource_group", + "optional": true }, { - "name": "resource_group_name", + "name": "location", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "The location or the environment in which cis instance exists", + "cloud_data_type": "region", "computed": true }, { @@ -7949,15 +8116,15 @@ "computed": true }, { - "name": "resource_name", + "name": "status", "type": "TypeString", - "description": "The name of the resource", + "description": "The resource instance status", "computed": true }, { - "name": "resource_crn", + "name": "resource_name", "type": "TypeString", - "description": "The crn of the resource", + "description": "The name of the resource", "computed": true }, { @@ -7973,23 +8140,33 @@ "required": true }, { - "name": "resource_group_id", + "name": "guid", "type": "TypeString", - "description": "The id of the resource group in which the cis instance is present", - "cloud_data_type": "resource_group", - "optional": true + "description": "Unique identifier of resource instance", + "computed": true }, { - "name": "guid", + "name": "plan", "type": "TypeString", - "description": "Unique identifier of resource instance", + "description": "The plan type of the cis instance", "computed": true }, { - "name": "location", + "name": "resource_crn", "type": "TypeString", - "description": "The location or the environment in which cis instance exists", - "cloud_data_type": "region", + "description": "The crn of the resource", + "computed": true + }, + { + "name": "resource_status", + "type": "TypeString", + "description": "The status of the resource", + "computed": true + }, + { + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", "computed": true } ], @@ -8080,28 +8257,6 @@ } ], "ibm_cis_bot_analytics": [ - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "domain_id", - "type": "TypeString", - "description": "Associated CIS domain", - "required": true - }, - { - "name": "type", - "type": "TypeString", - "description": "Bot Analytics Type", - "required": true - }, { "name": "since", "type": "TypeString", @@ -8122,21 +8277,31 @@ "elem": { "type": "TypeMap" } - } - ], - "ibm_cis_bot_managements": [ + }, { - "name": "session_score", + "name": "cis_id", "type": "TypeString", - "description": "Session Score", - "computed": true + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] }, { - "name": "enable_js", + "name": "domain_id", "type": "TypeString", - "description": "Enable JS", - "computed": true + "description": "Associated CIS domain", + "required": true }, + { + "name": "type", + "type": "TypeString", + "description": "Bot Analytics Type", + "required": true + } + ], + "ibm_cis_bot_managements": [ { "name": "auth_id_logging", "type": "TypeString", @@ -8170,181 +8335,193 @@ "type": "TypeString", "description": "Fight Mode", "computed": true + }, + { + "name": "session_score", + "type": "TypeString", + "description": "Session Score", + "computed": true + }, + { + "name": "enable_js", + "type": "TypeString", + "description": "Enable JS", + "computed": true } ], "ibm_cis_cache_settings": [ { - "name": "serve_stale_content", + "name": "cis_id", + "type": "TypeString", + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, + { + "name": "domain_id", + "type": "TypeString", + "description": "Associated CIS domain", + "required": true + }, + { + "name": "caching_level", "type": "TypeList", - "description": "Serve Stale Content", + "description": "Cache Level Setting", "computed": true, "elem": { "editable": { "name": "editable", "type": "TypeBool", - "description": "serve stale content editable", + "description": "cache level editable", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "serve stale content id", + "description": "cache level id", "computed": true }, "modified_on": { "name": "modified_on", "type": "TypeString", - "description": "serve stale content modified on", + "description": "cache level modified on", "computed": true }, "value": { "name": "value", "type": "TypeString", - "description": "serve stale content value", + "description": "cache level value", "computed": true } } }, { - "name": "browser_expiration", + "name": "serve_stale_content", "type": "TypeList", - "description": "Browser Expiration setting", + "description": "Serve Stale Content", "computed": true, "elem": { "editable": { "name": "editable", "type": "TypeBool", - "description": "browser expiration editable", + "description": "serve stale content editable", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "browser expiration id", + "description": "serve stale content id", "computed": true }, "modified_on": { "name": "modified_on", "type": "TypeString", - "description": "browser expiration modified on", + "description": "serve stale content modified on", "computed": true }, "value": { "name": "value", - "type": "TypeInt", - "description": "browser expiration value", + "type": "TypeString", + "description": "serve stale content value", "computed": true } } }, { - "name": "development_mode", + "name": "browser_expiration", "type": "TypeList", - "description": "Development mode setting", + "description": "Browser Expiration setting", "computed": true, "elem": { "editable": { "name": "editable", "type": "TypeBool", - "description": "development mode editable", + "description": "browser expiration editable", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "development mode id", + "description": "browser expiration id", "computed": true }, "modified_on": { "name": "modified_on", "type": "TypeString", - "description": "development mode modified on", + "description": "browser expiration modified on", "computed": true }, "value": { "name": "value", - "type": "TypeString", - "description": "development mode value", + "type": "TypeInt", + "description": "browser expiration value", "computed": true } } }, { - "name": "query_string_sort", + "name": "development_mode", "type": "TypeList", - "description": "Query String sort setting", + "description": "Development mode setting", "computed": true, "elem": { "editable": { "name": "editable", "type": "TypeBool", - "description": "query string sort editable", + "description": "development mode editable", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "query string sort id", + "description": "development mode id", "computed": true }, "modified_on": { "name": "modified_on", "type": "TypeString", - "description": "query string sort modified on", + "description": "development mode modified on", "computed": true }, "value": { "name": "value", "type": "TypeString", - "description": "query qtring sort value", + "description": "development mode value", "computed": true } } }, { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "domain_id", - "type": "TypeString", - "description": "Associated CIS domain", - "required": true - }, - { - "name": "caching_level", + "name": "query_string_sort", "type": "TypeList", - "description": "Cache Level Setting", + "description": "Query String sort setting", "computed": true, "elem": { "editable": { "name": "editable", "type": "TypeBool", - "description": "cache level editable", + "description": "query string sort editable", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "cache level id", + "description": "query string sort id", "computed": true }, "modified_on": { "name": "modified_on", "type": "TypeString", - "description": "cache level modified on", + "description": "query string sort modified on", "computed": true }, "value": { "name": "value", "type": "TypeString", - "description": "cache level value", + "description": "query qtring sort value", "computed": true } } @@ -8536,6 +8713,16 @@ } ], "ibm_cis_custom_pages": [ + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, { "name": "domain_id", "type": "TypeString", @@ -8598,19 +8785,31 @@ "computed": true } } - }, + } + ], + "ibm_cis_dns_records": [ { "name": "cis_id", "type": "TypeString", - "description": "CIS instance crn", + "description": "DNS Zone CRN", "cloud_data_type": "resource_instance", "required": true, "cloud_data_range": [ "service:internet-svcs" ] - } - ], - "ibm_cis_dns_records": [ + }, + { + "name": "domain_id", + "type": "TypeString", + "description": "Zone Id", + "required": true + }, + { + "name": "file", + "type": "TypeString", + "description": "file to be exported", + "optional": true + }, { "name": "cis_dns_records", "type": "TypeList", @@ -8696,31 +8895,15 @@ "computed": true } } - }, - { - "name": "cis_id", - "type": "TypeString", - "description": "DNS Zone CRN", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, + } + ], + "ibm_cis_domain": [ { - "name": "domain_id", + "name": "domain", "type": "TypeString", - "description": "Zone Id", + "description": "CISzone - Domain", "required": true }, - { - "name": "file", - "type": "TypeString", - "description": "file to be exported", - "optional": true - } - ], - "ibm_cis_domain": [ { "name": "type", "type": "TypeString", @@ -8728,23 +8911,38 @@ "computed": true }, { - "name": "name_servers", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "paused", + "type": "TypeBool", + "computed": true }, { - "name": "domain_id", + "name": "status", "type": "TypeString", "computed": true }, { - "name": "status", + "name": "domain_id", "type": "TypeString", "computed": true }, + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, + { + "name": "name_servers", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "original_name_servers", "type": "TypeList", @@ -8764,27 +8962,6 @@ "type": "TypeString", "optional": true, "computed": true - }, - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "domain", - "type": "TypeString", - "description": "CISzone - Domain", - "required": true - }, - { - "name": "paused", - "type": "TypeBool", - "computed": true } ], "ibm_cis_edge_functions_actions": [ @@ -8873,6 +9050,16 @@ } ], "ibm_cis_edge_functions_triggers": [ + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS Intance CRN", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, { "name": "domain_id", "type": "TypeString", @@ -8916,16 +9103,6 @@ "computed": true } } - }, - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS Intance CRN", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] } ], "ibm_cis_filters": [ @@ -8979,57 +9156,6 @@ } ], "ibm_cis_firewall": [ - { - "name": "ua_rule", - "type": "TypeList", - "description": "User Agent Rule Data", - "computed": true, - "elem": { - "configuration": { - "name": "configuration", - "type": "TypeList", - "computed": true, - "elem": { - "target": { - "name": "target", - "type": "TypeString", - "description": "Target type", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Target value", - "computed": true - } - } - }, - "description": { - "name": "description", - "type": "TypeString", - "description": "description", - "computed": true - }, - "mode": { - "name": "mode", - "type": "TypeString", - "description": "user agent rule mode", - "computed": true - }, - "paused": { - "name": "paused", - "type": "TypeBool", - "description": "Rule whether paused or not", - "computed": true - }, - "ua_rule_id": { - "name": "ua_rule_id", - "type": "TypeString", - "description": "firewall identifier", - "computed": true - } - } - }, { "name": "cis_id", "type": "TypeString", @@ -9156,6 +9282,57 @@ "computed": true } } + }, + { + "name": "ua_rule", + "type": "TypeList", + "description": "User Agent Rule Data", + "computed": true, + "elem": { + "configuration": { + "name": "configuration", + "type": "TypeList", + "computed": true, + "elem": { + "target": { + "name": "target", + "type": "TypeString", + "description": "Target type", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Target value", + "computed": true + } + } + }, + "description": { + "name": "description", + "type": "TypeString", + "description": "description", + "computed": true + }, + "mode": { + "name": "mode", + "type": "TypeString", + "description": "user agent rule mode", + "computed": true + }, + "paused": { + "name": "paused", + "type": "TypeBool", + "description": "Rule whether paused or not", + "computed": true + }, + "ua_rule_id": { + "name": "ua_rule_id", + "type": "TypeString", + "description": "firewall identifier", + "computed": true + } + } } ], "ibm_cis_firewall_rules": [ @@ -9588,6 +9765,99 @@ } ], "ibm_cis_mtls_apps": [ + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, + { + "name": "domain_id", + "type": "TypeString", + "description": "Associated CIS domain", + "required": true + }, + { + "name": "mtls_access_apps", + "type": "TypeList", + "description": "Container for Access App Response.", + "computed": true, + "elem": { + "allowed_idps": { + "name": "allowed_idps", + "type": "TypeList", + "description": "List of allowed idps.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "app_aud": { + "name": "app_aud", + "type": "TypeString", + "description": "Application Aud", + "computed": true + }, + "app_created_at": { + "name": "app_created_at", + "type": "TypeString", + "description": "Application Created At", + "computed": true + }, + "app_domain": { + "name": "app_domain", + "type": "TypeString", + "description": "Application Domain", + "computed": true + }, + "app_id": { + "name": "app_id", + "type": "TypeString", + "description": "Application ID", + "computed": true + }, + "app_name": { + "name": "app_name", + "type": "TypeString", + "description": "Application name", + "computed": true + }, + "app_type": { + "name": "app_type", + "type": "TypeString", + "description": "Application Type", + "computed": true + }, + "app_uid": { + "name": "app_uid", + "type": "TypeString", + "description": "Application UID", + "computed": true + }, + "app_updated_at": { + "name": "app_updated_at", + "type": "TypeString", + "description": "Application Updated At", + "computed": true + }, + "auto_redirect_to_identity": { + "name": "auto_redirect_to_identity", + "type": "TypeBool", + "description": "Auto Redirect to Identity", + "computed": true + }, + "session_duration": { + "name": "session_duration", + "type": "TypeString", + "description": "Session Duration", + "computed": true + } + } + }, { "name": "mtls_access_app_policies", "type": "TypeList", @@ -9637,118 +9907,9 @@ "computed": true } } - }, - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "domain_id", - "type": "TypeString", - "description": "Associated CIS domain", - "required": true - }, - { - "name": "mtls_access_apps", - "type": "TypeList", - "description": "Container for Access App Response.", - "computed": true, - "elem": { - "allowed_idps": { - "name": "allowed_idps", - "type": "TypeList", - "description": "List of allowed idps.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "app_aud": { - "name": "app_aud", - "type": "TypeString", - "description": "Application Aud", - "computed": true - }, - "app_created_at": { - "name": "app_created_at", - "type": "TypeString", - "description": "Application Created At", - "computed": true - }, - "app_domain": { - "name": "app_domain", - "type": "TypeString", - "description": "Application Domain", - "computed": true - }, - "app_id": { - "name": "app_id", - "type": "TypeString", - "description": "Application ID", - "computed": true - }, - "app_name": { - "name": "app_name", - "type": "TypeString", - "description": "Application name", - "computed": true - }, - "app_type": { - "name": "app_type", - "type": "TypeString", - "description": "Application Type", - "computed": true - }, - "app_uid": { - "name": "app_uid", - "type": "TypeString", - "description": "Application UID", - "computed": true - }, - "app_updated_at": { - "name": "app_updated_at", - "type": "TypeString", - "description": "Application Updated At", - "computed": true - }, - "auto_redirect_to_identity": { - "name": "auto_redirect_to_identity", - "type": "TypeBool", - "description": "Auto Redirect to Identity", - "computed": true - }, - "session_duration": { - "name": "session_duration", - "type": "TypeString", - "description": "Session Duration", - "computed": true - } - } } ], "ibm_cis_mtlss": [ - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "domain_id", - "type": "TypeString", - "description": "Associated CIS domain", - "required": true - }, { "name": "mtls_certificates", "type": "TypeList", @@ -9801,9 +9962,7 @@ "computed": true } } - } - ], - "ibm_cis_origin_auths": [ + }, { "name": "cis_id", "type": "TypeString", @@ -9814,6 +9973,14 @@ "service:internet-svcs" ] }, + { + "name": "domain_id", + "type": "TypeString", + "description": "Associated CIS domain", + "required": true + } + ], + "ibm_cis_origin_auths": [ { "name": "domain_id", "type": "TypeString", @@ -9896,9 +10063,29 @@ "computed": true } } + }, + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] } ], "ibm_cis_origin_pools": [ + { + "name": "cis_id", + "type": "TypeString", + "description": "DNS Zone CRN", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, { "name": "cis_origin_pools", "type": "TypeList", @@ -10024,16 +10211,6 @@ "computed": true } } - }, - { - "name": "cis_id", - "type": "TypeString", - "description": "DNS Zone CRN", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] } ], "ibm_cis_page_rules": [ @@ -10170,6 +10347,22 @@ } ], "ibm_cis_range_apps": [ + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS Intance CRN", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, + { + "name": "domain_id", + "type": "TypeString", + "description": "CIS Domain ID", + "required": true + }, { "name": "range_apps", "type": "TypeList", @@ -10264,34 +10457,9 @@ "computed": true } } - }, - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS Intance CRN", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "domain_id", - "type": "TypeString", - "description": "CIS Domain ID", - "required": true } ], "ibm_cis_rate_limit": [ - { - "name": "cis_id", - "type": "TypeString", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, { "name": "domain_id", "type": "TypeString", @@ -10468,31 +10636,18 @@ "computed": true } } - } - ], - "ibm_cis_waf_groups": [ + }, { "name": "cis_id", "type": "TypeString", - "description": "CIS Intance CRN", "cloud_data_type": "resource_instance", "required": true, "cloud_data_range": [ "service:internet-svcs" ] - }, - { - "name": "domain_id", - "type": "TypeString", - "description": "CIS Domain ID", - "required": true - }, - { - "name": "package_id", - "type": "TypeString", - "description": "WAF Rule package id", - "required": true - }, + } + ], + "ibm_cis_waf_groups": [ { "name": "waf_groups", "type": "TypeList", @@ -10541,6 +10696,28 @@ "computed": true } } + }, + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS Intance CRN", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, + { + "name": "domain_id", + "type": "TypeString", + "description": "CIS Domain ID", + "required": true + }, + { + "name": "package_id", + "type": "TypeString", + "description": "WAF Rule package id", + "required": true } ], "ibm_cis_waf_packages": [ @@ -10600,16 +10777,6 @@ } ], "ibm_cis_waf_rules": [ - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, { "name": "domain_id", "type": "TypeString", @@ -10694,9 +10861,29 @@ "computed": true } } + }, + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] } ], "ibm_cis_webhooks": [ + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, { "name": "cis_webhooks", "type": "TypeList", @@ -10728,16 +10915,6 @@ "computed": true } } - }, - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] } ], "ibm_cloud_shell_account_settings": [ @@ -10747,6 +10924,12 @@ "description": "The account ID in which the account settings belong to.", "required": true }, + { + "name": "rev", + "type": "TypeString", + "description": "Unique revision number for the settings object.", + "computed": true + }, { "name": "created_at", "type": "TypeInt", @@ -10772,59 +10955,53 @@ "computed": true }, { - "name": "updated_by", - "type": "TypeString", - "description": "IAM ID of last updater.", - "computed": true - }, - { - "name": "rev", - "type": "TypeString", - "description": "Unique revision number for the settings object.", - "computed": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "IAM ID of creator.", - "computed": true - }, - { - "name": "features", + "name": "regions", "type": "TypeList", - "description": "List of Cloud Shell features.", + "description": "List of Cloud Shell region settings.", "computed": true, "elem": { "enabled": { "name": "enabled", "type": "TypeBool", - "description": "State of the feature.", + "description": "State of the region.", "computed": true }, "key": { "name": "key", "type": "TypeString", - "description": "Name of the feature.", + "description": "Name of the region.", "computed": true } } }, { - "name": "regions", + "name": "updated_at", + "type": "TypeInt", + "description": "Timestamp of last update in Unix epoch time.", + "computed": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "IAM ID of creator.", + "computed": true + }, + { + "name": "features", "type": "TypeList", - "description": "List of Cloud Shell region settings.", + "description": "List of Cloud Shell features.", "computed": true, "elem": { "enabled": { "name": "enabled", "type": "TypeBool", - "description": "State of the region.", + "description": "State of the feature.", "computed": true }, "key": { "name": "key", "type": "TypeString", - "description": "Name of the region.", + "description": "Name of the feature.", "computed": true } } @@ -10836,19 +11013,13 @@ "computed": true }, { - "name": "updated_at", - "type": "TypeInt", - "description": "Timestamp of last update in Unix epoch time.", + "name": "updated_by", + "type": "TypeString", + "description": "IAM ID of last updater.", "computed": true } ], "ibm_cloudant": [ - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, { "name": "location", "type": "TypeString", @@ -10858,16 +11029,39 @@ "computed": true }, { - "name": "plan", - "type": "TypeString", - "description": "The plan type of the instance", + "name": "cors_config", + "type": "TypeList", + "description": "Configuration for CORS.", + "computed": true, + "elem": { + "allow_credentials": { + "name": "allow_credentials", + "type": "TypeBool", + "description": "Boolean value to allow authentication credentials. If set to true, browser requests must be done by using withCredentials = true.", + "computed": true + }, + "origins": { + "name": "origins", + "type": "TypeList", + "description": "An array of strings that contain allowed origin domains. You have to specify the full URL including the protocol. It is recommended that only the HTTPS protocol is used. Subdomains count as separate domains, so you have to specify all subdomains used.", + "computed": true, + "elem": { + "type": "TypeString" + } + } + } + }, + { + "name": "include_data_events", + "type": "TypeBool", + "description": "Include data event types in events sent to IBM Cloud Activity Tracker with LogDNA for the IBM Cloudant instance. By default only emitted events are of \"management\" type.", "computed": true }, { - "name": "version", + "name": "name", "type": "TypeString", - "description": "Vendor version.", - "computed": true + "description": "Resource instance name for example, myobjectstorage", + "required": true }, { "name": "status", @@ -10876,9 +11070,10 @@ "computed": true }, { - "name": "resource_group_name", + "name": "crn", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "CRN of resource instance", + "cloud_data_type": "crn", "computed": true }, { @@ -10888,9 +11083,9 @@ "computed": true }, { - "name": "resource_crn", + "name": "resource_name", "type": "TypeString", - "description": "The crn of the resource", + "description": "The name of the resource", "computed": true }, { @@ -10900,84 +11095,41 @@ "computed": true }, { - "name": "resource_controller_url", + "name": "version", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", - "computed": true - }, - { - "name": "include_data_events", - "type": "TypeBool", - "description": "Include data event types in events sent to IBM Cloud Activity Tracker with LogDNA for the IBM Cloudant instance. By default only emitted events are of \"management\" type.", - "computed": true - }, - { - "name": "capacity", - "type": "TypeInt", - "description": "A number of blocks of throughput units. A block consists of 100 reads/sec, 50 writes/sec, and 5 global queries/sec of provisioned throughput capacity.", + "description": "Vendor version.", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "Resource instance name for example, myobjectstorage", - "required": true - }, - { - "name": "crn", + "name": "service", "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", + "description": "The service type of the instance", "computed": true }, { - "name": "cors_config", + "name": "features", "type": "TypeList", - "description": "Configuration for CORS.", + "description": "List of enabled optional features.", "computed": true, "elem": { - "allow_credentials": { - "name": "allow_credentials", - "type": "TypeBool", - "description": "Boolean value to allow authentication credentials. If set to true, browser requests must be done by using withCredentials = true.", - "computed": true - }, - "origins": { - "name": "origins", - "type": "TypeList", - "description": "An array of strings that contain allowed origin domains. You have to specify the full URL including the protocol. It is recommended that only the HTTPS protocol is used. Subdomains count as separate domains, so you have to specify all subdomains used.", - "computed": true, - "elem": { - "type": "TypeString" - } - } + "type": "TypeString" } }, { - "name": "tags", - "type": "TypeSet", - "description": "Tags of Resource Instance", - "cloud_data_type": "tags", + "name": "throughput", + "type": "TypeMap", + "description": "Schema for detailed information about throughput capacity with breakdown by specific throughput requests classes.", "computed": true, "elem": { - "type": "TypeString" + "type": "TypeInt" } }, { - "name": "extensions", - "type": "TypeMap", - "description": "The extended metadata as a map associated with the resource instance.", + "name": "enable_cors", + "type": "TypeBool", + "description": "Boolean value to turn CORS on and off.", "computed": true }, - { - "name": "features", - "type": "TypeList", - "description": "List of enabled optional features.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "features_flags", "type": "TypeList", @@ -10988,36 +11140,67 @@ } }, { - "name": "throughput", - "type": "TypeMap", - "description": "Schema for detailed information about throughput capacity with breakdown by specific throughput requests classes.", + "name": "resource_group_id", + "type": "TypeString", + "description": "The id of the resource group in which the instance is present", + "cloud_data_type": "resource_group", + "optional": true, + "computed": true + }, + { + "name": "plan", + "type": "TypeString", + "description": "The plan type of the instance", + "computed": true + }, + { + "name": "tags", + "type": "TypeSet", + "description": "Tags of Resource Instance", + "cloud_data_type": "tags", "computed": true, "elem": { - "type": "TypeInt" + "type": "TypeString" } }, { - "name": "enable_cors", - "type": "TypeBool", - "description": "Boolean value to turn CORS on and off.", + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", "computed": true }, { - "name": "resource_group_id", + "name": "resource_group_name", "type": "TypeString", - "description": "The id of the resource group in which the instance is present", - "cloud_data_type": "resource_group", - "optional": true, + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "service", + "name": "resource_controller_url", "type": "TypeString", - "description": "The service type of the instance", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", + "computed": true + }, + { + "name": "extensions", + "type": "TypeMap", + "description": "The extended metadata as a map associated with the resource instance.", + "computed": true + }, + { + "name": "capacity", + "type": "TypeInt", + "description": "A number of blocks of throughput units. A block consists of 100 reads/sec, 50 writes/sec, and 5 global queries/sec of provisioned throughput capacity.", "computed": true } ], "ibm_cloudant_database": [ + { + "name": "update_seq", + "type": "TypeString", + "description": "An opaque string that describes the state of the database. Do not rely on this string for counting the number of updates.", + "computed": true + }, { "name": "instance_crn", "type": "TypeString", @@ -11025,9 +11208,15 @@ "required": true }, { - "name": "disk_format_version", + "name": "doc_count", "type": "TypeInt", - "description": "The version of the physical format used for the data when it is stored on disk.", + "description": "A count of the documents in the specified database.", + "computed": true + }, + { + "name": "doc_del_count", + "type": "TypeInt", + "description": "Number of deleted documents.", "computed": true }, { @@ -11044,42 +11233,6 @@ } } }, - { - "name": "compact_running", - "type": "TypeBool", - "description": "True if the database compaction routine is operating on this database.", - "computed": true - }, - { - "name": "compacted_seq", - "type": "TypeString", - "description": "An opaque string that describes the compaction state of the database.", - "computed": true - }, - { - "name": "doc_count", - "type": "TypeInt", - "description": "A count of the documents in the specified database.", - "computed": true - }, - { - "name": "doc_del_count", - "type": "TypeInt", - "description": "Number of deleted documents.", - "computed": true - }, - { - "name": "db", - "type": "TypeString", - "description": "Path parameter to specify the database name.", - "required": true - }, - { - "name": "committed_update_seq", - "type": "TypeString", - "description": "An opaque string that describes the committed state of the database.", - "computed": true - }, { "name": "sizes", "type": "TypeList", @@ -11106,6 +11259,12 @@ } } }, + { + "name": "db", + "type": "TypeString", + "description": "Path parameter to specify the database name.", + "required": true + }, { "name": "cluster", "type": "TypeList", @@ -11139,15 +11298,21 @@ } }, { - "name": "engine", + "name": "compact_running", + "type": "TypeBool", + "description": "True if the database compaction routine is operating on this database.", + "computed": true + }, + { + "name": "compacted_seq", "type": "TypeString", - "description": "The engine used for the database.", + "description": "An opaque string that describes the compaction state of the database.", "computed": true }, { - "name": "update_seq", + "name": "committed_update_seq", "type": "TypeString", - "description": "An opaque string that describes the state of the database. Do not rely on this string for counting the number of updates.", + "description": "An opaque string that describes the committed state of the database.", "computed": true }, { @@ -11155,89 +11320,148 @@ "type": "TypeString", "description": "The UUID of the database.", "computed": true + }, + { + "name": "disk_format_version", + "type": "TypeInt", + "description": "The version of the physical format used for the data when it is stored on disk.", + "computed": true + }, + { + "name": "engine", + "type": "TypeString", + "description": "The engine used for the database.", + "computed": true } ], "ibm_cm_catalog": [ { - "name": "features", + "name": "catalog_filters", "type": "TypeList", - "description": "List of features associated with this catalog.", + "description": "Filters for account and catalog filters.", "computed": true, "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "Feature description.", - "computed": true - }, - "description_i18n": { - "name": "description_i18n", + "category_filters": { + "name": "category_filters", "type": "TypeMap", - "description": "A map of translated strings, by language code.", + "description": "Filter against offering properties.", "computed": true, "elem": { "type": "TypeString" } }, - "title": { - "name": "title", - "type": "TypeString", - "description": "Heading.", - "computed": true - }, - "title_i18n": { - "name": "title_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", + "id_filters": { + "name": "id_filters", + "type": "TypeList", + "description": "Filter on offering ID's. There is an include filter and an exclule filter. Both can be set.", "computed": true, "elem": { - "type": "TypeString" + "exclude": { + "name": "exclude", + "type": "TypeList", + "description": "Offering filter terms.", + "computed": true, + "elem": { + "filter_terms": { + "name": "filter_terms", + "type": "TypeList", + "description": "List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.", + "computed": true, + "elem": { + "type": "TypeString" + } + } + } + }, + "include": { + "name": "include", + "type": "TypeList", + "description": "Offering filter terms.", + "computed": true, + "elem": { + "filter_terms": { + "name": "filter_terms", + "type": "TypeList", + "description": "List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.", + "computed": true, + "elem": { + "type": "TypeString" + } + } + } + } } + }, + "include_all": { + "name": "include_all", + "type": "TypeBool", + "description": "-\u003e true - Include all of the public catalog when filtering. Further settings will specifically exclude some offerings. false - Exclude all of the public catalog when filtering. Further settings will specifically include some offerings.", + "computed": true } } }, { - "name": "created", + "name": "rev", "type": "TypeString", - "description": "The date-time this catalog was created.", + "description": "Cloudant revision.", "computed": true }, { - "name": "updated", - "type": "TypeString", - "description": "The date-time this catalog was last updated.", - "computed": true + "name": "short_description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "resource_group_id", + "name": "catalog_icon_url", "type": "TypeString", - "description": "Resource group id the catalog is owned by.", - "cloud_data_type": "resource_group", + "description": "URL for an icon associated with this catalog.", "computed": true }, { - "name": "rev", + "name": "tags", + "type": "TypeList", + "description": "List of tags associated with this catalog.", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "url", "type": "TypeString", - "description": "Cloudant revision.", + "description": "The url for this specific catalog.", "computed": true }, { - "name": "short_description", + "name": "offerings_url", "type": "TypeString", - "description": "Description in the requested language.", + "description": "URL path to offerings.", "computed": true }, { - "name": "catalog_banner_url", - "type": "TypeString", - "description": "URL for a banner image for this catalog.", + "name": "disabled", + "type": "TypeBool", + "description": "Denotes whether a catalog is disabled.", "computed": true }, { - "name": "tags", - "type": "TypeList", - "description": "List of tags associated with this catalog.", - "cloud_data_type": "tags", + "name": "metadata", + "type": "TypeMap", + "description": "Catalog specific metadata.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "label_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", "computed": true, "elem": { "type": "TypeString" @@ -11251,95 +11475,102 @@ "computed": true }, { - "name": "offerings_url", + "name": "kind", "type": "TypeString", - "description": "URL path to offerings.", + "description": "Kind of catalog. Supported kinds are offering and vpe.", "computed": true }, { - "name": "owning_account", + "name": "label", "type": "TypeString", - "description": "Account that owns catalog.", + "description": "Display Name in the requested language.", "computed": true }, { - "name": "target_account_contexts", + "name": "short_description", + "type": "TypeString", + "description": "Description in the requested language.", + "computed": true + }, + { + "name": "catalog_banner_url", + "type": "TypeString", + "description": "URL for a banner image for this catalog.", + "computed": true + }, + { + "name": "updated", + "type": "TypeString", + "description": "The date-time this catalog was last updated.", + "computed": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group id the catalog is owned by.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "catalog_identifier", + "type": "TypeString", + "description": "Catalog identifier.", + "required": true + }, + { + "name": "id", + "type": "TypeString", + "description": "Unique ID.", + "computed": true + }, + { + "name": "features", "type": "TypeList", - "description": "List of target accounts contexts on this catalog.", + "description": "List of features associated with this catalog.", "computed": true, "elem": { - "api_key": { - "name": "api_key", - "type": "TypeString", - "description": "API key of the target account.", - "secure": true, - "computed": true - }, - "label": { - "name": "label", + "description": { + "name": "description", "type": "TypeString", - "description": "Label for this target account context.", + "description": "Feature description.", "computed": true }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Unique identifier/name for this target account context.", - "computed": true + "description_i18n": { + "name": "description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } }, - "project_id": { - "name": "project_id", + "title": { + "name": "title", "type": "TypeString", - "description": "Project ID.", + "description": "Heading.", "computed": true }, - "trusted_profile": { - "name": "trusted_profile", - "type": "TypeList", - "description": "Trusted profile information.", + "title_i18n": { + "name": "title_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", "computed": true, "elem": { - "catalog_crn": { - "name": "catalog_crn", - "type": "TypeString", - "description": "CRN of this catalog.", - "computed": true - }, - "catalog_name": { - "name": "catalog_name", - "type": "TypeString", - "description": "Name of this catalog.", - "computed": true - }, - "target_service_id": { - "name": "target_service_id", - "type": "TypeString", - "description": "Target service ID.", - "computed": true - }, - "trusted_profile_id": { - "name": "trusted_profile_id", - "type": "TypeString", - "description": "Trusted profile ID.", - "computed": true - } + "type": "TypeString" } } } }, { - "name": "label_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "created", + "type": "TypeString", + "description": "The date-time this catalog was created.", + "computed": true }, { - "name": "catalog_icon_url", + "name": "owning_account", "type": "TypeString", - "description": "URL for an icon associated with this catalog.", + "description": "Account that owns catalog.", "computed": true }, { @@ -11506,176 +11737,72 @@ } }, { - "name": "metadata", - "type": "TypeMap", - "description": "Catalog specific metadata.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "url", - "type": "TypeString", - "description": "The url for this specific catalog.", - "computed": true - }, - { - "name": "disabled", - "type": "TypeBool", - "description": "Denotes whether a catalog is disabled.", - "computed": true - }, - { - "name": "label", - "type": "TypeString", - "description": "Display Name in the requested language.", - "computed": true - }, - { - "name": "short_description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "catalog_filters", - "type": "TypeList", - "description": "Filters for account and catalog filters.", - "computed": true, - "elem": { - "category_filters": { - "name": "category_filters", - "type": "TypeMap", - "description": "Filter against offering properties.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "id_filters": { - "name": "id_filters", - "type": "TypeList", - "description": "Filter on offering ID's. There is an include filter and an exclule filter. Both can be set.", - "computed": true, - "elem": { - "exclude": { - "name": "exclude", - "type": "TypeList", - "description": "Offering filter terms.", - "computed": true, - "elem": { - "filter_terms": { - "name": "filter_terms", - "type": "TypeList", - "description": "List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.", - "computed": true, - "elem": { - "type": "TypeString" - } - } - } - }, - "include": { - "name": "include", - "type": "TypeList", - "description": "Offering filter terms.", - "computed": true, - "elem": { - "filter_terms": { - "name": "filter_terms", - "type": "TypeList", - "description": "List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.", - "computed": true, - "elem": { - "type": "TypeString" - } - } - } - } - } - }, - "include_all": { - "name": "include_all", - "type": "TypeBool", - "description": "-\u003e true - Include all of the public catalog when filtering. Further settings will specifically exclude some offerings. false - Exclude all of the public catalog when filtering. Further settings will specifically include some offerings.", - "computed": true - } - } - }, - { - "name": "kind", - "type": "TypeString", - "description": "Kind of catalog. Supported kinds are offering and vpe.", - "computed": true - }, - { - "name": "catalog_identifier", - "type": "TypeString", - "description": "Catalog identifier.", - "required": true - }, - { - "name": "id", - "type": "TypeString", - "description": "Unique ID.", - "computed": true - } - ], - "ibm_cm_object": [ - { - "name": "object_id", - "type": "TypeString", - "description": "Object identifier.", - "required": true - }, - { - "name": "parent_id", - "type": "TypeString", - "description": "The parent for this specific object.", - "computed": true - }, - { - "name": "publish", + "name": "target_account_contexts", "type": "TypeList", - "description": "Publish information.", + "description": "List of target accounts contexts on this catalog.", "computed": true, "elem": { - "ibm_approved": { - "name": "ibm_approved", - "type": "TypeBool", - "description": "Indicates if this offering has been approved for use by all IBMers.", + "api_key": { + "name": "api_key", + "type": "TypeString", + "description": "API key of the target account.", + "secure": true, "computed": true }, - "permit_ibm_public_publish": { - "name": "permit_ibm_public_publish", - "type": "TypeBool", - "description": "Is it permitted to request publishing to IBM or Public.", + "label": { + "name": "label", + "type": "TypeString", + "description": "Label for this target account context.", "computed": true }, - "portal_approval_record": { - "name": "portal_approval_record", + "name": { + "name": "name", "type": "TypeString", - "description": "The portal's approval record ID.", + "description": "Unique identifier/name for this target account context.", "computed": true }, - "portal_url": { - "name": "portal_url", + "project_id": { + "name": "project_id", "type": "TypeString", - "description": "The portal UI URL.", + "description": "Project ID.", "computed": true }, - "public_approved": { - "name": "public_approved", - "type": "TypeBool", - "description": "Indicates if this offering has been approved for use by all IBM Cloud users.", - "computed": true + "trusted_profile": { + "name": "trusted_profile", + "type": "TypeList", + "description": "Trusted profile information.", + "computed": true, + "elem": { + "catalog_crn": { + "name": "catalog_crn", + "type": "TypeString", + "description": "CRN of this catalog.", + "computed": true + }, + "catalog_name": { + "name": "catalog_name", + "type": "TypeString", + "description": "Name of this catalog.", + "computed": true + }, + "target_service_id": { + "name": "target_service_id", + "type": "TypeString", + "description": "Target service ID.", + "computed": true + }, + "trusted_profile_id": { + "name": "trusted_profile_id", + "type": "TypeString", + "description": "Trusted profile ID.", + "computed": true + } + } } } - }, + } + ], + "ibm_cm_object": [ { "name": "state", "type": "TypeList", @@ -11715,38 +11842,23 @@ } }, { - "name": "catalog_name", - "type": "TypeString", - "description": "The name of the catalog.", - "computed": true - }, - { - "name": "catalog_object_id", + "name": "url", "type": "TypeString", - "description": "unique id.", + "description": "The url for this specific object.", "computed": true }, { - "name": "rev", + "name": "parent_id", "type": "TypeString", - "description": "Cloudant revision.", + "description": "The parent for this specific object.", "computed": true }, { - "name": "url", + "name": "kind", "type": "TypeString", - "description": "The url for this specific object.", + "description": "Kind of object.", "computed": true }, - { - "name": "label_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "short_description", "type": "TypeString", @@ -11754,21 +11866,22 @@ "computed": true }, { - "name": "kind", + "name": "catalog_name", "type": "TypeString", - "description": "Kind of object.", + "description": "The name of the catalog.", "computed": true }, { - "name": "catalog_id", + "name": "rev", "type": "TypeString", - "description": "Catalog identifier.", - "required": true + "description": "Cloudant revision.", + "computed": true }, { - "name": "label", + "name": "crn", "type": "TypeString", - "description": "Display name in the requested language.", + "description": "The crn for this specific object.", + "cloud_data_type": "crn", "computed": true }, { @@ -11778,41 +11891,57 @@ "computed": true }, { - "name": "updated", - "type": "TypeString", - "description": "The date and time this catalog was last updated.", - "computed": true - }, - { - "name": "short_description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", + "name": "tags", + "type": "TypeList", + "description": "List of tags associated with this catalog.", + "cloud_data_type": "tags", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "name", - "type": "TypeString", - "description": "The programmatic name of this object.", - "computed": true - }, - { - "name": "crn", + "name": "updated", "type": "TypeString", - "description": "The crn for this specific object.", - "cloud_data_type": "crn", + "description": "The date and time this catalog was last updated.", "computed": true }, { - "name": "tags", + "name": "publish", "type": "TypeList", - "description": "List of tags associated with this catalog.", - "cloud_data_type": "tags", + "description": "Publish information.", "computed": true, "elem": { - "type": "TypeString" + "ibm_approved": { + "name": "ibm_approved", + "type": "TypeBool", + "description": "Indicates if this offering has been approved for use by all IBMers.", + "computed": true + }, + "permit_ibm_public_publish": { + "name": "permit_ibm_public_publish", + "type": "TypeBool", + "description": "Is it permitted to request publishing to IBM or Public.", + "computed": true + }, + "portal_approval_record": { + "name": "portal_approval_record", + "type": "TypeString", + "description": "The portal's approval record ID.", + "computed": true + }, + "portal_url": { + "name": "portal_url", + "type": "TypeString", + "description": "The portal UI URL.", + "computed": true + }, + "public_approved": { + "name": "public_approved", + "type": "TypeBool", + "description": "Indicates if this offering has been approved for use by all IBM Cloud users.", + "computed": true + } } }, { @@ -11820,36 +11949,27 @@ "type": "TypeString", "description": "Stringified map of data values for this object.", "computed": true - } - ], - "ibm_cm_offering": [ - { - "name": "portal_ui_url", - "type": "TypeString", - "description": "The portal UI URL.", - "computed": true }, { "name": "catalog_id", "type": "TypeString", "description": "Catalog identifier.", - "immutable": true, "required": true }, { - "name": "offering_docs_url", + "name": "name", "type": "TypeString", - "description": "URL for an additional docs with this offering.", + "description": "The programmatic name of this object.", "computed": true }, { - "name": "short_description", + "name": "label", "type": "TypeString", - "description": "Short description in the requested language.", + "description": "Display name in the requested language.", "computed": true }, { - "name": "long_description_i18n", + "name": "short_description_i18n", "type": "TypeMap", "description": "A map of translated strings, by language code.", "computed": true, @@ -11858,681 +11978,70 @@ } }, { - "name": "pc_managed", - "type": "TypeBool", - "description": "Offering is managed by Partner Center.", - "computed": true - }, - { - "name": "share_with_all", - "type": "TypeBool", - "description": "Denotes public availability of an Offering - if share_enabled is true.", - "computed": true + "name": "object_id", + "type": "TypeString", + "description": "Object identifier.", + "required": true }, { - "name": "publish_public_crn", + "name": "catalog_object_id", "type": "TypeString", - "description": "The crn of the public catalog entry of this offering.", + "description": "unique id.", "computed": true }, { - "name": "deprecate_pending", - "type": "TypeList", - "description": "Deprecation information for an Offering.", + "name": "label_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", "computed": true, "elem": { - "deprecate_date": { - "name": "deprecate_date", - "type": "TypeString", - "description": "Date of deprecation.", - "computed": true - }, - "deprecate_state": { - "name": "deprecate_state", - "type": "TypeString", - "description": "Deprecation state.", - "computed": true - }, - "description": { - "name": "description", - "type": "TypeString", - "computed": true - } + "type": "TypeString" } - }, - { - "name": "offering_identifier", - "type": "TypeString", - "description": "Computed Offering ID.", - "computed": true - }, + } + ], + "ibm_cm_offering": [ { - "name": "url", - "type": "TypeString", - "description": "The url for this specific offering.", - "computed": true + "name": "metadata", + "type": "TypeMap", + "description": "Map of metadata values for this offering.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "crn", - "type": "TypeString", - "description": "The crn for this specific offering.", - "cloud_data_type": "crn", + "name": "hidden", + "type": "TypeBool", + "description": "Determine if this offering should be displayed in the Consumption UI.", "computed": true }, { - "name": "label", + "name": "catalog_id", "type": "TypeString", - "description": "Display Name in the requested language.", - "computed": true + "description": "Catalog identifier.", + "immutable": true, + "required": true }, { - "name": "updated", - "type": "TypeString", - "description": "The date and time this catalog was last updated.", - "computed": true + "name": "tags", + "type": "TypeList", + "description": "List of tags associated with this catalog.", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "features", + "name": "kinds", "type": "TypeList", - "description": "list of features associated with this offering.", + "description": "Array of kind.", "computed": true, "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "Feature description.", - "computed": true - }, - "description_i18n": { - "name": "description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "title": { - "name": "title", - "type": "TypeString", - "description": "Heading.", - "computed": true - }, - "title_i18n": { - "name": "title_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - } - } - }, - { - "name": "image_pull_keys", - "type": "TypeList", - "description": "Image pull keys for this offering.", - "computed": true, - "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "Key description.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Key name.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Key value.", - "computed": true - } - } - }, - { - "name": "media", - "type": "TypeList", - "description": "A list of media items related to this offering.", - "computed": true, - "elem": { - "api_url": { - "name": "api_url", - "type": "TypeString", - "description": "CM API specific URL of the specified media item.", - "computed": true - }, - "caption": { - "name": "caption", - "type": "TypeString", - "description": "Caption for this media item.", - "computed": true - }, - "caption_i18n": { - "name": "caption_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "thumbnail_url": { - "name": "thumbnail_url", - "type": "TypeString", - "description": "Thumbnail URL for this media item.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of this media item.", - "computed": true - }, - "url": { - "name": "url", - "type": "TypeString", - "description": "URL of the specified media item.", - "computed": true - }, - "url_proxy": { - "name": "url_proxy", - "type": "TypeList", - "description": "Offering URL proxy information.", - "computed": true, - "elem": { - "sha": { - "name": "sha", - "type": "TypeString", - "description": "SHA256 fingerprint of image.", - "computed": true - }, - "url": { - "name": "url", - "type": "TypeString", - "description": "URL of the specified media item being proxied.", - "computed": true - } - } - } - } - }, - { - "name": "short_description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "metadata", - "type": "TypeMap", - "description": "Map of metadata values for this offering.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "repo_info", - "type": "TypeList", - "description": "Repository info for offerings.", - "computed": true, - "elem": { - "token": { - "name": "token", - "type": "TypeString", - "description": "Token for private repos.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Public or enterprise GitHub.", - "computed": true - } - } - }, - { - "name": "rev", - "type": "TypeString", - "description": "Cloudant revision.", - "computed": true - }, - { - "name": "offering_icon_url", - "type": "TypeString", - "description": "URL for an icon associated with this offering.", - "computed": true - }, - { - "name": "publish_approved", - "type": "TypeBool", - "description": "Offering has been approved to publish to permitted to IBM or Public Catalog.", - "computed": true - }, - { - "name": "share_with_access_list", - "type": "TypeList", - "description": "A list of account IDs to add to this offering's access list.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "public_publish_approved", - "type": "TypeBool", - "description": "Indicates if this offering has been approved for use by all IBM Cloud users.", - "computed": true, - "deprecated": "This argument is deprecated" - }, - { - "name": "support", - "type": "TypeList", - "description": "Offering Support information.", - "computed": true, - "elem": { - "locations": { - "name": "locations", - "type": "TypeList", - "description": "A list of country codes indicating where support is provided.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "process": { - "name": "process", - "type": "TypeString", - "description": "Support process as provided by an ISV.", - "computed": true - }, - "process_i18n": { - "name": "process_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "support_details": { - "name": "support_details", - "type": "TypeList", - "description": "A list of support options (e.g. email, phone, slack, other).", - "computed": true, - "elem": { - "availability": { - "name": "availability", - "type": "TypeList", - "description": "Times when support is available.", - "computed": true, - "elem": { - "always_available": { - "name": "always_available", - "type": "TypeBool", - "description": "Is this support always available.", - "computed": true - }, - "times": { - "name": "times", - "type": "TypeList", - "description": "A list of support times.", - "computed": true, - "elem": { - "day": { - "name": "day", - "type": "TypeInt", - "description": "The day of the week, represented as an integer.", - "computed": true - }, - "end_time": { - "name": "end_time", - "type": "TypeString", - "description": "HOURS:MINUTES:SECONDS using 24 hour time (e.g. 8:15:00).", - "computed": true - }, - "start_time": { - "name": "start_time", - "type": "TypeString", - "description": "HOURS:MINUTES:SECONDS using 24 hour time (e.g. 8:15:00).", - "computed": true - } - } - }, - "timezone": { - "name": "timezone", - "type": "TypeString", - "description": "Timezone (e.g. America/New_York).", - "computed": true - } - } - }, - "contact": { - "name": "contact", - "type": "TypeString", - "description": "Contact for the current support detail.", - "computed": true - }, - "response_wait_time": { - "name": "response_wait_time", - "type": "TypeList", - "description": "Time descriptor.", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "Valid values are hour or day.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", - "description": "Amount of time to wait in unit 'type'.", - "computed": true - } - } - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of the current support detail.", - "computed": true - } - } - }, - "support_escalation": { - "name": "support_escalation", - "type": "TypeList", - "description": "Support escalation policy.", - "computed": true, - "elem": { - "contact": { - "name": "contact", - "type": "TypeString", - "description": "Escalation contact.", - "computed": true - }, - "escalation_wait_time": { - "name": "escalation_wait_time", - "type": "TypeList", - "description": "Time descriptor.", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "Valid values are hour or day.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", - "description": "Amount of time to wait in unit 'type'.", - "computed": true - } - } - }, - "response_wait_time": { - "name": "response_wait_time", - "type": "TypeList", - "description": "Time descriptor.", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "Valid values are hour or day.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", - "description": "Amount of time to wait in unit 'type'.", - "computed": true - } - } - } - } - }, - "support_type": { - "name": "support_type", - "type": "TypeString", - "description": "Support type for this product.", - "computed": true - }, - "url": { - "name": "url", - "type": "TypeString", - "description": "URL to be displayed in the Consumption UI for getting support on this offering.", - "computed": true - } - } - }, - { - "name": "product_kind", - "type": "TypeString", - "description": "The product kind. Valid values are module, solution, or empty string.", - "computed": true - }, - { - "name": "offering_support_url", - "type": "TypeString", - "description": "[deprecated] - Use offering.support instead. URL to be displayed in the Consumption UI for getting support on this offering.", - "computed": true - }, - { - "name": "created", - "type": "TypeString", - "description": "The date and time this catalog was created.", - "computed": true - }, - { - "name": "provider_info", - "type": "TypeList", - "description": "Information on the provider for this offering, or omitted if no provider information is given.", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "The id of this provider.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The name of this provider.", - "computed": true - } - } - }, - { - "name": "badges", - "type": "TypeList", - "description": "A list of badges for this offering.", - "computed": true, - "elem": { - "authority": { - "name": "authority", - "type": "TypeString", - "description": "Authority for the current badge.", - "computed": true - }, - "constraints": { - "name": "constraints", - "type": "TypeList", - "description": "An optional set of constraints indicating which versions in an Offering have this particular badge.", - "computed": true, - "elem": { - "rule": { - "name": "rule", - "type": "TypeString", - "description": "Rule for the current constraint.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of the current constraint.", - "computed": true - } - } - }, - "description": { - "name": "description", - "type": "TypeString", - "description": "Description of the current badge.", - "computed": true - }, - "description_i18n": { - "name": "description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "icon": { - "name": "icon", - "type": "TypeString", - "description": "Icon for the current badge.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "ID of the current badge.", - "computed": true - }, - "label": { - "name": "label", - "type": "TypeString", - "description": "Display name for the current badge.", - "computed": true - }, - "label_i18n": { - "name": "label_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "learn_more_links": { - "name": "learn_more_links", - "type": "TypeList", - "description": "Learn more links for a badge.", - "computed": true, - "elem": { - "first_party": { - "name": "first_party", - "type": "TypeString", - "description": "First party link.", - "computed": true - }, - "third_party": { - "name": "third_party", - "type": "TypeString", - "description": "Third party link.", - "computed": true - } - } - }, - "tag": { - "name": "tag", - "type": "TypeString", - "description": "Tag for the current badge.", - "computed": true - } - } - }, - { - "name": "long_description", - "type": "TypeString", - "description": "Long description in the requested language.", - "computed": true - }, - { - "name": "share_with_ibm", - "type": "TypeBool", - "description": "Denotes IBM employee availability of an Offering - if share_enabled is true.", - "computed": true - }, - { - "name": "catalog_name", - "type": "TypeString", - "description": "The name of the catalog.", - "computed": true - }, - { - "name": "hidden", - "type": "TypeBool", - "description": "Determine if this offering should be displayed in the Consumption UI.", - "computed": true - }, - { - "name": "portal_approval_record", - "type": "TypeString", - "description": "The portal's approval record ID.", - "computed": true - }, - { - "name": "offering_id", - "type": "TypeString", - "description": "Offering identifier.", - "immutable": true, - "required": true - }, - { - "name": "label_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "tags", - "type": "TypeList", - "description": "List of tags associated with this catalog.", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "keywords", - "type": "TypeList", - "description": "List of keywords associated with offering, typically used to search for it.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "kinds", - "type": "TypeList", - "description": "Array of kind.", - "computed": true, - "elem": { - "additional_features": { - "name": "additional_features", - "type": "TypeList", - "description": "List of features associated with this offering.", + "additional_features": { + "name": "additional_features", + "type": "TypeList", + "description": "List of features associated with this offering.", "computed": true, "elem": { "description": { @@ -14563,11 +14072,397 @@ } }, { - "name": "permit_request_ibm_public_publish", + "name": "public_original_crn", + "type": "TypeString", + "description": "The original offering CRN that this publish entry came from.", + "computed": true + }, + { + "name": "long_description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "publish_approved", "type": "TypeBool", - "description": "Is it permitted to request publishing to IBM or Public.", + "description": "Offering has been approved to publish to permitted to IBM or Public Catalog.", + "computed": true + }, + { + "name": "portal_approval_record", + "type": "TypeString", + "description": "The portal's approval record ID.", + "computed": true + }, + { + "name": "deprecate_pending", + "type": "TypeList", + "description": "Deprecation information for an Offering.", "computed": true, - "deprecated": "This argument is deprecated" + "elem": { + "deprecate_date": { + "name": "deprecate_date", + "type": "TypeString", + "description": "Date of deprecation.", + "computed": true + }, + "deprecate_state": { + "name": "deprecate_state", + "type": "TypeString", + "description": "Deprecation state.", + "computed": true + }, + "description": { + "name": "description", + "type": "TypeString", + "computed": true + } + } + }, + { + "name": "offering_id", + "type": "TypeString", + "description": "Offering identifier.", + "immutable": true, + "required": true + }, + { + "name": "offering_docs_url", + "type": "TypeString", + "description": "URL for an additional docs with this offering.", + "computed": true + }, + { + "name": "keywords", + "type": "TypeList", + "description": "List of keywords associated with offering, typically used to search for it.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "short_description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "catalog_name", + "type": "TypeString", + "description": "The name of the catalog.", + "computed": true + }, + { + "name": "support", + "type": "TypeList", + "description": "Offering Support information.", + "computed": true, + "elem": { + "locations": { + "name": "locations", + "type": "TypeList", + "description": "A list of country codes indicating where support is provided.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "process": { + "name": "process", + "type": "TypeString", + "description": "Support process as provided by an ISV.", + "computed": true + }, + "process_i18n": { + "name": "process_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "support_details": { + "name": "support_details", + "type": "TypeList", + "description": "A list of support options (e.g. email, phone, slack, other).", + "computed": true, + "elem": { + "availability": { + "name": "availability", + "type": "TypeList", + "description": "Times when support is available.", + "computed": true, + "elem": { + "always_available": { + "name": "always_available", + "type": "TypeBool", + "description": "Is this support always available.", + "computed": true + }, + "times": { + "name": "times", + "type": "TypeList", + "description": "A list of support times.", + "computed": true, + "elem": { + "day": { + "name": "day", + "type": "TypeInt", + "description": "The day of the week, represented as an integer.", + "computed": true + }, + "end_time": { + "name": "end_time", + "type": "TypeString", + "description": "HOURS:MINUTES:SECONDS using 24 hour time (e.g. 8:15:00).", + "computed": true + }, + "start_time": { + "name": "start_time", + "type": "TypeString", + "description": "HOURS:MINUTES:SECONDS using 24 hour time (e.g. 8:15:00).", + "computed": true + } + } + }, + "timezone": { + "name": "timezone", + "type": "TypeString", + "description": "Timezone (e.g. America/New_York).", + "computed": true + } + } + }, + "contact": { + "name": "contact", + "type": "TypeString", + "description": "Contact for the current support detail.", + "computed": true + }, + "response_wait_time": { + "name": "response_wait_time", + "type": "TypeList", + "description": "Time descriptor.", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "Valid values are hour or day.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "Amount of time to wait in unit 'type'.", + "computed": true + } + } + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of the current support detail.", + "computed": true + } + } + }, + "support_escalation": { + "name": "support_escalation", + "type": "TypeList", + "description": "Support escalation policy.", + "computed": true, + "elem": { + "contact": { + "name": "contact", + "type": "TypeString", + "description": "Escalation contact.", + "computed": true + }, + "escalation_wait_time": { + "name": "escalation_wait_time", + "type": "TypeList", + "description": "Time descriptor.", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "Valid values are hour or day.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "Amount of time to wait in unit 'type'.", + "computed": true + } + } + }, + "response_wait_time": { + "name": "response_wait_time", + "type": "TypeList", + "description": "Time descriptor.", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "Valid values are hour or day.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "Amount of time to wait in unit 'type'.", + "computed": true + } + } + } + } + }, + "support_type": { + "name": "support_type", + "type": "TypeString", + "description": "Support type for this product.", + "computed": true + }, + "url": { + "name": "url", + "type": "TypeString", + "description": "URL to be displayed in the Consumption UI for getting support on this offering.", + "computed": true + } + } + }, + { + "name": "product_kind", + "type": "TypeString", + "description": "The product kind. Valid values are module, solution, or empty string.", + "computed": true + }, + { + "name": "badges", + "type": "TypeList", + "description": "A list of badges for this offering.", + "computed": true, + "elem": { + "authority": { + "name": "authority", + "type": "TypeString", + "description": "Authority for the current badge.", + "computed": true + }, + "constraints": { + "name": "constraints", + "type": "TypeList", + "description": "An optional set of constraints indicating which versions in an Offering have this particular badge.", + "computed": true, + "elem": { + "rule": { + "name": "rule", + "type": "TypeString", + "description": "Rule for the current constraint.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of the current constraint.", + "computed": true + } + } + }, + "description": { + "name": "description", + "type": "TypeString", + "description": "Description of the current badge.", + "computed": true + }, + "description_i18n": { + "name": "description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "icon": { + "name": "icon", + "type": "TypeString", + "description": "Icon for the current badge.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "ID of the current badge.", + "computed": true + }, + "label": { + "name": "label", + "type": "TypeString", + "description": "Display name for the current badge.", + "computed": true + }, + "label_i18n": { + "name": "label_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "learn_more_links": { + "name": "learn_more_links", + "type": "TypeList", + "description": "Learn more links for a badge.", + "computed": true, + "elem": { + "first_party": { + "name": "first_party", + "type": "TypeString", + "description": "First party link.", + "computed": true + }, + "third_party": { + "name": "third_party", + "type": "TypeString", + "description": "Third party link.", + "computed": true + } + } + }, + "tag": { + "name": "tag", + "type": "TypeString", + "description": "Tag for the current badge.", + "computed": true + } + } + }, + { + "name": "updated", + "type": "TypeString", + "description": "The date and time this catalog was last updated.", + "computed": true + }, + { + "name": "share_enabled", + "type": "TypeBool", + "description": "Denotes sharing including access list availability of an Offering is enabled.", + "computed": true }, { "name": "ibm_publish_approved", @@ -14577,11 +14472,20 @@ "deprecated": "This argument is deprecated" }, { - "name": "name", + "name": "portal_ui_url", "type": "TypeString", - "description": "The programmatic name of this offering.", + "description": "The portal UI URL.", "computed": true }, + { + "name": "label_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "rating", "type": "TypeList", @@ -14615,15 +14519,15 @@ } }, { - "name": "share_enabled", - "type": "TypeBool", - "description": "Denotes sharing including access list availability of an Offering is enabled.", + "name": "created", + "type": "TypeString", + "description": "The date and time this catalog was created.", "computed": true }, { - "name": "public_original_crn", + "name": "long_description", "type": "TypeString", - "description": "The original offering CRN that this publish entry came from.", + "description": "Long description in the requested language.", "computed": true }, { @@ -14631,238 +14535,227 @@ "type": "TypeString", "description": "A disclaimer for this offering.", "computed": true - } - ], - "ibm_cm_offering_instance": [ - { - "name": "cluster_namespaces", - "type": "TypeList", - "description": "List of target namespaces to install into.", - "computed": true, - "elem": { - "type": "TypeString" - } }, { - "name": "schematics_workspace_id", + "name": "offering_identifier", "type": "TypeString", - "description": "id of the schematics workspace, for offerings installed through schematics", + "description": "Computed Offering ID.", "computed": true }, { - "name": "instance_identifier", - "type": "TypeString", - "description": "ID for this instance", - "required": true - }, - { - "name": "crn", + "name": "url", "type": "TypeString", - "description": "platform CRN for this instance.", - "cloud_data_type": "crn", + "description": "The url for this specific offering.", "computed": true }, { - "name": "channel", - "type": "TypeString", - "description": "channel to target for the operator subscription. Required for operator bundles", - "computed": true + "name": "share_with_access_list", + "type": "TypeList", + "description": "A list of account IDs to add to this offering's access list.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "catalog_id", - "type": "TypeString", - "description": "Catalog ID this instance was created from.", - "computed": true + "name": "permit_request_ibm_public_publish", + "type": "TypeBool", + "description": "Is it permitted to request publishing to IBM or Public.", + "computed": true, + "deprecated": "This argument is deprecated" }, { - "name": "cluster_all_namespaces", + "name": "public_publish_approved", "type": "TypeBool", - "description": "designate to install into all namespaces.", - "computed": true + "description": "Indicates if this offering has been approved for use by all IBM Cloud users.", + "computed": true, + "deprecated": "This argument is deprecated" }, { - "name": "version", - "type": "TypeString", - "description": "The version this instance was installed from (not version id).", + "name": "share_with_all", + "type": "TypeBool", + "description": "Denotes public availability of an Offering - if share_enabled is true.", "computed": true }, { - "name": "cluster_id", + "name": "publish_public_crn", "type": "TypeString", - "description": "Cluster ID.", + "description": "The crn of the public catalog entry of this offering.", "computed": true }, { - "name": "label", - "type": "TypeString", - "description": "the label for this instance.", - "computed": true + "name": "provider_info", + "type": "TypeList", + "description": "Information on the provider for this offering, or omitted if no provider information is given.", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "The id of this provider.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The name of this provider.", + "computed": true + } + } }, { - "name": "offering_id", - "type": "TypeString", - "description": "Offering ID this instance was created from.", - "computed": true + "name": "image_pull_keys", + "type": "TypeList", + "description": "Image pull keys for this offering.", + "computed": true, + "elem": { + "description": { + "name": "description", + "type": "TypeString", + "description": "Key description.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Key name.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Key value.", + "computed": true + } + } }, { - "name": "kind_format", + "name": "name", "type": "TypeString", - "description": "the format this instance has (helm, operator, ova...).", + "description": "The programmatic name of this offering.", "computed": true }, { - "name": "cluster_region", + "name": "offering_icon_url", "type": "TypeString", - "description": "Cluster region (e.g., us-south).", + "description": "URL for an icon associated with this offering.", "computed": true }, { - "name": "resource_group_id", + "name": "offering_support_url", "type": "TypeString", - "description": "id of the resource group", - "cloud_data_type": "resource_group", + "description": "[deprecated] - Use offering.support instead. URL to be displayed in the Consumption UI for getting support on this offering.", "computed": true }, { - "name": "install_plan", - "type": "TypeString", - "description": "install plan for the subscription of the operator- can be either Automatic or Manual. Required for operator bundles", - "computed": true + "name": "features", + "type": "TypeList", + "description": "list of features associated with this offering.", + "computed": true, + "elem": { + "description": { + "name": "description", + "type": "TypeString", + "description": "Feature description.", + "computed": true + }, + "description_i18n": { + "name": "description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "title": { + "name": "title", + "type": "TypeString", + "description": "Heading.", + "computed": true + }, + "title_i18n": { + "name": "title_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + } + } }, { - "name": "url", + "name": "label", "type": "TypeString", - "description": "url reference to this object.", + "description": "Display Name in the requested language.", "computed": true }, { - "name": "_rev", - "type": "TypeString", - "description": "Cloudant Revision for this instance", + "name": "pc_managed", + "type": "TypeBool", + "description": "Offering is managed by Partner Center.", "computed": true - } - ], - "ibm_cm_preset": [ - { - "name": "id", - "type": "TypeString", - "description": "The ID of the preset. Format is \u003ccatalog_id\u003e-\u003cobject_name\u003e@\u003cversion\u003e", - "required": true }, { - "name": "preset", - "type": "TypeString", - "description": "The map of preset values as a JSON string.", - "computed": true - } - ], - "ibm_cm_version": [ - { - "name": "kind_id", - "type": "TypeString", - "description": "Kind ID.", + "name": "share_with_ibm", + "type": "TypeBool", + "description": "Denotes IBM employee availability of an Offering - if share_enabled is true.", "computed": true }, { - "name": "iam_permissions", + "name": "repo_info", "type": "TypeList", - "description": "List of IAM permissions that are required to consume this version.", + "description": "Repository info for offerings.", "computed": true, "elem": { - "resources": { - "name": "resources", - "type": "TypeList", - "description": "Resources for this permission.", - "computed": true, - "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "Resource description.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Resource name.", - "computed": true - }, - "role_crns": { - "name": "role_crns", - "type": "TypeList", - "description": "Role CRNs for this permission.", - "computed": true, - "elem": { - "type": "TypeString" - } - } - } - }, - "role_crns": { - "name": "role_crns", - "type": "TypeList", - "description": "Role CRNs for this permission.", - "computed": true, - "elem": { - "type": "TypeString" - } + "token": { + "name": "token", + "type": "TypeString", + "description": "Token for private repos.", + "computed": true }, - "service_name": { - "name": "service_name", + "type": { + "name": "type", "type": "TypeString", - "description": "Service name.", + "description": "Public or enterprise GitHub.", "computed": true } } }, - { - "name": "long_description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "version_loc_id", - "type": "TypeString", - "description": "A dotted value of `catalogID`.`versionID`.", - "required": true - }, { "name": "crn", "type": "TypeString", - "description": "Version's CRN.", + "description": "The crn for this specific offering.", "cloud_data_type": "crn", "computed": true }, { - "name": "version", + "name": "short_description", "type": "TypeString", - "description": "Version of content type.", + "description": "Short description in the requested language.", "computed": true }, { - "name": "flavor", + "name": "media", "type": "TypeList", - "description": "Version Flavor Information. Only supported for Product kind Solution.", + "description": "A list of media items related to this offering.", "computed": true, "elem": { - "index": { - "name": "index", - "type": "TypeInt", - "description": "Order that this flavor should appear when listed for a single version.", + "api_url": { + "name": "api_url", + "type": "TypeString", + "description": "CM API specific URL of the specified media item.", "computed": true }, - "label": { - "name": "label", + "caption": { + "name": "caption", "type": "TypeString", - "description": "Label for this flavor.", + "description": "Caption for this media item.", "computed": true }, - "label_i18n": { - "name": "label_i18n", + "caption_i18n": { + "name": "caption_i18n", "type": "TypeMap", "description": "A map of translated strings, by language code.", "computed": true, @@ -14870,46 +14763,199 @@ "type": "TypeString" } }, - "name": { - "name": "name", + "thumbnail_url": { + "name": "thumbnail_url", "type": "TypeString", - "description": "Programmatic name for this flavor.", + "description": "Thumbnail URL for this media item.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of this media item.", "computed": true + }, + "url": { + "name": "url", + "type": "TypeString", + "description": "URL of the specified media item.", + "computed": true + }, + "url_proxy": { + "name": "url_proxy", + "type": "TypeList", + "description": "Offering URL proxy information.", + "computed": true, + "elem": { + "sha": { + "name": "sha", + "type": "TypeString", + "description": "SHA256 fingerprint of image.", + "computed": true + }, + "url": { + "name": "url", + "type": "TypeString", + "description": "URL of the specified media item being proxied.", + "computed": true + } + } } } }, + { + "name": "rev", + "type": "TypeString", + "description": "Cloudant revision.", + "computed": true + } + ], + "ibm_cm_offering_instance": [ + { + "name": "instance_identifier", + "type": "TypeString", + "description": "ID for this instance", + "required": true + }, + { + "name": "url", + "type": "TypeString", + "description": "url reference to this object.", + "computed": true + }, { "name": "catalog_id", "type": "TypeString", - "description": "Catalog ID.", + "description": "Catalog ID this instance was created from.", "computed": true }, { - "name": "tags", + "name": "version", + "type": "TypeString", + "description": "The version this instance was installed from (not version id).", + "computed": true + }, + { + "name": "_rev", + "type": "TypeString", + "description": "Cloudant Revision for this instance", + "computed": true + }, + { + "name": "offering_id", + "type": "TypeString", + "description": "Offering ID this instance was created from.", + "computed": true + }, + { + "name": "kind_format", + "type": "TypeString", + "description": "the format this instance has (helm, operator, ova...).", + "computed": true + }, + { + "name": "cluster_namespaces", "type": "TypeList", - "description": "List of tags associated with this catalog.", - "cloud_data_type": "tags", + "description": "List of target namespaces to install into.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "outputs", + "name": "schematics_workspace_id", + "type": "TypeString", + "description": "id of the schematics workspace, for offerings installed through schematics", + "computed": true + }, + { + "name": "install_plan", + "type": "TypeString", + "description": "install plan for the subscription of the operator- can be either Automatic or Manual. Required for operator bundles", + "computed": true + }, + { + "name": "channel", + "type": "TypeString", + "description": "channel to target for the operator subscription. Required for operator bundles", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "platform CRN for this instance.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "cluster_region", + "type": "TypeString", + "description": "Cluster region (e.g., us-south).", + "computed": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "id of the resource group", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "label", + "type": "TypeString", + "description": "the label for this instance.", + "computed": true + }, + { + "name": "cluster_id", + "type": "TypeString", + "description": "Cluster ID.", + "computed": true + }, + { + "name": "cluster_all_namespaces", + "type": "TypeBool", + "description": "designate to install into all namespaces.", + "computed": true + } + ], + "ibm_cm_preset": [ + { + "name": "id", + "type": "TypeString", + "description": "The ID of the preset. Format is \u003ccatalog_id\u003e-\u003cobject_name\u003e@\u003cversion\u003e", + "required": true + }, + { + "name": "preset", + "type": "TypeString", + "description": "The map of preset values as a JSON string.", + "computed": true + } + ], + "ibm_cm_version": [ + { + "name": "created", + "type": "TypeString", + "description": "The date and time this version was created.", + "computed": true + }, + { + "name": "required_resources", "type": "TypeList", - "description": "List of output values for this version.", + "description": "Resource requirments for installation.", "computed": true, "elem": { - "description": { - "name": "description", + "type": { + "name": "type", "type": "TypeString", - "description": "Output description.", + "description": "Type of requirement.", "computed": true }, - "key": { - "name": "key", + "value": { + "name": "value", "type": "TypeString", - "description": "Output key.", + "description": "mem, disk, cores, and nodes can be parsed as an int. targetVersion will be a semver range value.", "computed": true } } @@ -14952,6 +14998,18 @@ } } }, + { + "name": "image_manifest_url", + "type": "TypeString", + "description": "If set, denotes a url to a YAML file with list of container images used by this version.", + "computed": true + }, + { + "name": "version_locator", + "type": "TypeString", + "description": "A dotted value of `catalogID`.`versionID`.", + "computed": true + }, { "name": "solution_info", "type": "TypeList", @@ -15642,15 +15700,15 @@ } }, { - "name": "created", + "name": "catalog_id", "type": "TypeString", - "description": "The date and time this version was created.", + "description": "Catalog ID.", "computed": true }, { - "name": "pre_install", + "name": "install", "type": "TypeList", - "description": "Optional pre-install instructions.", + "description": "Script information.", "computed": true, "elem": { "delete_script": { @@ -15695,80 +15753,69 @@ } }, { - "name": "version_locator", - "type": "TypeString", - "description": "A dotted value of `catalogID`.`versionID`.", - "computed": true - }, - { - "name": "is_consumable", - "type": "TypeBool", - "description": "Is the version able to be shared.", - "computed": true - }, - { - "name": "offering_id", - "type": "TypeString", - "description": "Offering ID.", - "computed": true - }, - { - "name": "install", + "name": "state", "type": "TypeList", - "description": "Script information.", + "description": "Offering state.", "computed": true, "elem": { - "delete_script": { - "name": "delete_script", + "current": { + "name": "current", "type": "TypeString", - "description": "Optional script that if run will remove the installed version.", + "description": "one of: new, validated, account-published, ibm-published, public-published.", "computed": true }, - "instructions": { - "name": "instructions", + "current_entered": { + "name": "current_entered", "type": "TypeString", - "description": "Instruction on step and by whom (role) that are needed to take place to prepare the target for installing this version.", + "description": "Date and time of current request.", "computed": true }, - "instructions_i18n": { - "name": "instructions_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "scope": { - "name": "scope", + "pending": { + "name": "pending", "type": "TypeString", - "description": "Optional value indicating if this script is scoped to a namespace or the entire cluster.", + "description": "one of: new, validated, account-published, ibm-published, public-published.", "computed": true }, - "script": { - "name": "script", + "pending_requested": { + "name": "pending_requested", "type": "TypeString", - "description": "Optional script that needs to be run post any pre-condition script.", + "description": "Date and time of pending request.", "computed": true }, - "script_permission": { - "name": "script_permission", + "previous": { + "name": "previous", "type": "TypeString", - "description": "Optional iam permissions that are required on the target cluster to run this script.", + "description": "one of: new, validated, account-published, ibm-published, public-published.", "computed": true } } }, { - "name": "long_description", + "name": "image_pull_key_name", "type": "TypeString", - "description": "Long description for version.", + "description": "ID of the image pull key to use from Offering.ImagePullKeys.", "computed": true }, { - "name": "rev", + "name": "updated", "type": "TypeString", - "description": "Cloudant revision.", + "description": "The date and time this version was last updated.", + "computed": true + }, + { + "name": "tags", + "type": "TypeList", + "description": "List of tags associated with this catalog.", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "tgz_url", + "type": "TypeString", + "description": "File used to on-board this version.", "computed": true }, { @@ -16137,35 +16184,168 @@ } }, { - "name": "single_instance", - "type": "TypeBool", - "description": "Denotes if single instance can be deployed to a given cluster.", - "computed": true - }, - { - "name": "entitlement", + "name": "validation", "type": "TypeList", - "description": "Entitlement license info.", + "description": "Validation response.", "computed": true, "elem": { - "image_repo_name": { - "name": "image_repo_name", + "last_operation": { + "name": "last_operation", "type": "TypeString", - "description": "Image repository name.", + "description": "Last operation (e.g. submit_deployment, generate_installer, install_offering.", "computed": true }, - "part_numbers": { - "name": "part_numbers", - "type": "TypeList", - "description": "list of license entitlement part numbers, eg. D1YGZLL,D1ZXILL.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "product_id": { - "name": "product_id", - "type": "TypeString", + "message": { + "name": "message", + "type": "TypeString", + "description": "Any message needing to be conveyed as part of the validation job.", + "computed": true + }, + "requested": { + "name": "requested", + "type": "TypeString", + "description": "Date and time of last validation was requested.", + "computed": true + }, + "state": { + "name": "state", + "type": "TypeString", + "description": "Current validation state - \u003cempty\u003e, in_progress, valid, invalid, expired.", + "computed": true + }, + "target": { + "name": "target", + "type": "TypeMap", + "description": "Validation target information (e.g. cluster_id, region, namespace, etc). Values will vary by Content type.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "validated": { + "name": "validated", + "type": "TypeString", + "description": "Date and time of last successful validation.", + "computed": true + } + } + }, + { + "name": "package_version", + "type": "TypeString", + "description": "Version of the package used to create this version.", + "computed": true + }, + { + "name": "rev", + "type": "TypeString", + "description": "Cloudant revision.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Version's CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "version", + "type": "TypeString", + "description": "Version of content type.", + "computed": true + }, + { + "name": "long_description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "version_loc_id", + "type": "TypeString", + "description": "A dotted value of `catalogID`.`versionID`.", + "required": true + }, + { + "name": "iam_permissions", + "type": "TypeList", + "description": "List of IAM permissions that are required to consume this version.", + "computed": true, + "elem": { + "resources": { + "name": "resources", + "type": "TypeList", + "description": "Resources for this permission.", + "computed": true, + "elem": { + "description": { + "name": "description", + "type": "TypeString", + "description": "Resource description.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Resource name.", + "computed": true + }, + "role_crns": { + "name": "role_crns", + "type": "TypeList", + "description": "Role CRNs for this permission.", + "computed": true, + "elem": { + "type": "TypeString" + } + } + } + }, + "role_crns": { + "name": "role_crns", + "type": "TypeList", + "description": "Role CRNs for this permission.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "service_name": { + "name": "service_name", + "type": "TypeString", + "description": "Service name.", + "computed": true + } + } + }, + { + "name": "entitlement", + "type": "TypeList", + "description": "Entitlement license info.", + "computed": true, + "elem": { + "image_repo_name": { + "name": "image_repo_name", + "type": "TypeString", + "description": "Image repository name.", + "computed": true + }, + "part_numbers": { + "name": "part_numbers", + "type": "TypeList", + "description": "list of license entitlement part numbers, eg. D1YGZLL,D1ZXILL.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "product_id": { + "name": "product_id", + "type": "TypeString", "description": "Product ID.", "computed": true }, @@ -16184,24 +16364,44 @@ } }, { - "name": "image_manifest_url", - "type": "TypeString", - "description": "If set, denotes a url to a YAML file with list of container images used by this version.", - "computed": true - }, - { - "name": "deprecated", + "name": "is_consumable", "type": "TypeBool", - "description": "read only field, indicating if this version is deprecated.", + "description": "Is the version able to be shared.", "computed": true }, { - "name": "whitelisted_accounts", + "name": "flavor", "type": "TypeList", - "description": "Whitelisted accounts for version.", + "description": "Version Flavor Information. Only supported for Product kind Solution.", "computed": true, "elem": { - "type": "TypeString" + "index": { + "name": "index", + "type": "TypeInt", + "description": "Order that this flavor should appear when listed for a single version.", + "computed": true + }, + "label": { + "name": "label", + "type": "TypeString", + "description": "Label for this flavor.", + "computed": true + }, + "label_i18n": { + "name": "label_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Programmatic name for this flavor.", + "computed": true + } } }, { @@ -16211,27 +16411,79 @@ "computed": true }, { - "name": "tgz_url", + "name": "offering_id", "type": "TypeString", - "description": "File used to on-board this version.", + "description": "Offering ID.", "computed": true }, { - "name": "version_id", + "name": "kind_id", "type": "TypeString", - "description": "Unique ID.", + "description": "Kind ID.", "computed": true }, { - "name": "repo_url", + "name": "source_url", "type": "TypeString", - "description": "Content's repo URL.", + "description": "Content's source URL (e.g git repo).", "computed": true }, { - "name": "source_url", + "name": "long_description", "type": "TypeString", - "description": "Content's source URL (e.g git repo).", + "description": "Long description for version.", + "computed": true + }, + { + "name": "single_instance", + "type": "TypeBool", + "description": "Denotes if single instance can be deployed to a given cluster.", + "computed": true + }, + { + "name": "whitelisted_accounts", + "type": "TypeList", + "description": "Whitelisted accounts for version.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "deprecate_pending", + "type": "TypeList", + "description": "Deprecation information for an Offering.", + "computed": true, + "elem": { + "deprecate_date": { + "name": "deprecate_date", + "type": "TypeString", + "description": "Date of deprecation.", + "computed": true + }, + "deprecate_state": { + "name": "deprecate_state", + "type": "TypeString", + "description": "Deprecation state.", + "computed": true + }, + "description": { + "name": "description", + "type": "TypeString", + "computed": true + } + } + }, + { + "name": "version_id", + "type": "TypeString", + "description": "Unique ID.", + "computed": true + }, + { + "name": "repo_url", + "type": "TypeString", + "description": "Content's repo URL.", "computed": true }, { @@ -16375,222 +16627,148 @@ } }, { - "name": "package_version", - "type": "TypeString", - "description": "Version of the package used to create this version.", - "computed": true - }, - { - "name": "image_pull_key_name", - "type": "TypeString", - "description": "ID of the image pull key to use from Offering.ImagePullKeys.", - "computed": true - }, - { - "name": "updated", - "type": "TypeString", - "description": "The date and time this version was last updated.", - "computed": true - }, - { - "name": "validation", + "name": "outputs", "type": "TypeList", - "description": "Validation response.", + "description": "List of output values for this version.", "computed": true, "elem": { - "last_operation": { - "name": "last_operation", - "type": "TypeString", - "description": "Last operation (e.g. submit_deployment, generate_installer, install_offering.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "Any message needing to be conveyed as part of the validation job.", - "computed": true - }, - "requested": { - "name": "requested", - "type": "TypeString", - "description": "Date and time of last validation was requested.", - "computed": true - }, - "state": { - "name": "state", + "description": { + "name": "description", "type": "TypeString", - "description": "Current validation state - \u003cempty\u003e, in_progress, valid, invalid, expired.", + "description": "Output description.", "computed": true }, - "target": { - "name": "target", - "type": "TypeMap", - "description": "Validation target information (e.g. cluster_id, region, namespace, etc). Values will vary by Content type.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "validated": { - "name": "validated", + "key": { + "name": "key", "type": "TypeString", - "description": "Date and time of last successful validation.", + "description": "Output key.", "computed": true } } }, { - "name": "required_resources", + "name": "pre_install", "type": "TypeList", - "description": "Resource requirments for installation.", + "description": "Optional pre-install instructions.", "computed": true, "elem": { - "type": { - "name": "type", + "delete_script": { + "name": "delete_script", "type": "TypeString", - "description": "Type of requirement.", + "description": "Optional script that if run will remove the installed version.", "computed": true }, - "value": { - "name": "value", - "type": "TypeString", - "description": "mem, disk, cores, and nodes can be parsed as an int. targetVersion will be a semver range value.", - "computed": true - } - } - }, - { - "name": "state", - "type": "TypeList", - "description": "Offering state.", - "computed": true, - "elem": { - "current": { - "name": "current", + "instructions": { + "name": "instructions", "type": "TypeString", - "description": "one of: new, validated, account-published, ibm-published, public-published.", + "description": "Instruction on step and by whom (role) that are needed to take place to prepare the target for installing this version.", "computed": true }, - "current_entered": { - "name": "current_entered", - "type": "TypeString", - "description": "Date and time of current request.", - "computed": true + "instructions_i18n": { + "name": "instructions_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } }, - "pending": { - "name": "pending", + "scope": { + "name": "scope", "type": "TypeString", - "description": "one of: new, validated, account-published, ibm-published, public-published.", + "description": "Optional value indicating if this script is scoped to a namespace or the entire cluster.", "computed": true }, - "pending_requested": { - "name": "pending_requested", + "script": { + "name": "script", "type": "TypeString", - "description": "Date and time of pending request.", + "description": "Optional script that needs to be run post any pre-condition script.", "computed": true }, - "previous": { - "name": "previous", + "script_permission": { + "name": "script_permission", "type": "TypeString", - "description": "one of: new, validated, account-published, ibm-published, public-published.", + "description": "Optional iam permissions that are required on the target cluster to run this script.", "computed": true } } }, { - "name": "deprecate_pending", - "type": "TypeList", - "description": "Deprecation information for an Offering.", - "computed": true, - "elem": { - "deprecate_date": { - "name": "deprecate_date", - "type": "TypeString", - "description": "Date of deprecation.", - "computed": true - }, - "deprecate_state": { - "name": "deprecate_state", - "type": "TypeString", - "description": "Deprecation state.", - "computed": true - }, - "description": { - "name": "description", - "type": "TypeString", - "computed": true - } - } + "name": "deprecated", + "type": "TypeBool", + "description": "read only field, indicating if this version is deprecated.", + "computed": true } ], "ibm_code_engine_app": [ { - "name": "endpoint", + "name": "name", "type": "TypeString", - "description": "Optional URL to invoke app. Depending on visibility this is accessible publicly or in the private network only. Empty in case 'managed_domain_mappings' is set to 'local'.", + "description": "The name of your application.", + "required": true + }, + { + "name": "endpoint_internal", + "type": "TypeString", + "description": "URL to app that is only visible within the project.", "computed": true }, { - "name": "entity_tag", + "name": "run_service_account", "type": "TypeString", - "description": "The version of the app instance, which is used to achieve optimistic locking.", + "description": "Optional name of the service account. For built-in service accounts, you can use the shortened names `manager` , `none`, `reader`, and `writer`.", "computed": true }, { - "name": "scale_concurrency", + "name": "scale_concurrency_target", "type": "TypeInt", - "description": "Optional maximum number of requests that can be processed concurrently per instance.", + "description": "Optional threshold of concurrent requests per instance at which one or more additional instances are created. Use this value to scale up instances based on concurrent number of requests. This option defaults to the value of the `scale_concurrency` option, if not specified.", "computed": true }, { - "name": "scale_min_instances", - "type": "TypeInt", - "description": "Optional minimum number of instances for this app. If you set this value to `0`, the app will scale down to zero, if not hit by any request for some time.", + "name": "scale_ephemeral_storage_limit", + "type": "TypeString", + "description": "Optional amount of ephemeral storage to set for the instance of the app. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", "computed": true }, { - "name": "endpoint_internal", + "name": "app_id", "type": "TypeString", - "description": "URL to app that is only visible within the project.", + "description": "The identifier of the resource.", "computed": true }, { - "name": "run_as_user", - "type": "TypeInt", - "description": "Optional user ID (UID) to run the app (e.g., `1001`).", + "name": "run_arguments", + "type": "TypeList", + "description": "Optional arguments for the app that are passed to start the container. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "scale_memory_limit", + "type": "TypeString", + "description": "Optional amount of memory set for the instance of the app. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo). The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", "computed": true }, { - "name": "scale_max_instances", + "name": "scale_min_instances", "type": "TypeInt", - "description": "Optional maximum number of instances for this app. If you set this value to `0`, this property does not set a upper scaling limit. However, the app scaling is still limited by the project quota for instances. See [Limits and quotas for Code Engine](https://cloud.ibm.com/docs/codeengine?topic=codeengine-limits).", + "description": "Optional minimum number of instances for this app. If you set this value to `0`, the app will scale down to zero, if not hit by any request for some time.", "computed": true }, { - "name": "status_details", - "type": "TypeList", - "description": "The detailed status of the application.", - "computed": true, - "elem": { - "latest_created_revision": { - "name": "latest_created_revision", - "type": "TypeString", - "description": "Latest app revision that has been created.", - "computed": true - }, - "latest_ready_revision": { - "name": "latest_ready_revision", - "type": "TypeString", - "description": "Latest app revision that reached a ready state.", - "computed": true - }, - "reason": { - "name": "reason", - "type": "TypeString", - "description": "Optional information to provide more context in case of a 'failed' or 'warning' status.", - "computed": true - } - } + "name": "endpoint", + "type": "TypeString", + "description": "Optional URL to invoke app. Depending on visibility this is accessible publicly or in the private network only. Empty in case 'managed_domain_mappings' is set to 'local'.", + "computed": true + }, + { + "name": "managed_domain_mappings", + "type": "TypeString", + "description": "Optional value controlling which of the system managed domain mappings will be setup for the application. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports application private visibility.", + "computed": true }, { "name": "run_env_variables", @@ -16637,47 +16815,82 @@ } }, { - "name": "run_service_account", - "type": "TypeString", - "description": "Optional name of the service account. For built-in service accounts, you can use the shortened names `manager` , `none`, `reader`, and `writer`.", + "name": "scale_concurrency", + "type": "TypeInt", + "description": "Optional maximum number of requests that can be processed concurrently per instance.", "computed": true }, { - "name": "scale_cpu_limit", - "type": "TypeString", - "description": "Optional number of CPU set for the instance of the app. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo).", - "computed": true + "name": "status_details", + "type": "TypeList", + "description": "The detailed status of the application.", + "computed": true, + "elem": { + "latest_created_revision": { + "name": "latest_created_revision", + "type": "TypeString", + "description": "Latest app revision that has been created.", + "computed": true + }, + "latest_ready_revision": { + "name": "latest_ready_revision", + "type": "TypeString", + "description": "Latest app revision that reached a ready state.", + "computed": true + }, + "reason": { + "name": "reason", + "type": "TypeString", + "description": "Optional information to provide more context in case of a 'failed' or 'warning' status.", + "computed": true + } + } }, { - "name": "scale_ephemeral_storage_limit", + "name": "project_id", "type": "TypeString", - "description": "Optional amount of ephemeral storage to set for the instance of the app. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", + "description": "The ID of the project.", + "required": true + }, + { + "name": "run_as_user", + "type": "TypeInt", + "description": "Optional user ID (UID) to run the app (e.g., `1001`).", "computed": true }, { - "name": "scale_memory_limit", - "type": "TypeString", - "description": "Optional amount of memory set for the instance of the app. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo). The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", + "name": "scale_request_timeout", + "type": "TypeInt", + "description": "Optional amount of time in seconds that is allowed for a running app to respond to a request.", "computed": true }, { - "name": "app_id", + "name": "status", "type": "TypeString", - "description": "The identifier of the resource.", + "description": "The current status of the app.", "computed": true }, { - "name": "image_reference", + "name": "entity_tag", "type": "TypeString", - "description": "The name of the image that is used for this app. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.", + "description": "The version of the app instance, which is used to achieve optimistic locking.", "computed": true }, { - "name": "managed_domain_mappings", - "type": "TypeString", - "description": "Optional value controlling which of the system managed domain mappings will be setup for the application. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports application private visibility.", + "name": "image_port", + "type": "TypeInt", + "description": "Optional port the app listens on. While the app will always be exposed via port `443` for end users, this port is used to connect to the port that is exposed by the container image.", "computed": true }, + { + "name": "run_commands", + "type": "TypeList", + "description": "Optional commands for the app that are passed to start the container. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "run_volume_mounts", "type": "TypeList", @@ -16717,15 +16930,9 @@ "computed": true }, { - "name": "scale_concurrency_target", - "type": "TypeInt", - "description": "Optional threshold of concurrent requests per instance at which one or more additional instances are created. Use this value to scale up instances based on concurrent number of requests. This option defaults to the value of the `scale_concurrency` option, if not specified.", - "computed": true - }, - { - "name": "status", + "name": "created_at", "type": "TypeString", - "description": "The current status of the app.", + "description": "The timestamp when the resource was created.", "computed": true }, { @@ -16740,33 +16947,6 @@ "description": "Optional name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the app will be created but cannot reach the ready status, until this property is provided, too.", "computed": true }, - { - "name": "run_commands", - "type": "TypeList", - "description": "Optional commands for the app that are passed to start the container. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "project_id", - "type": "TypeString", - "description": "The ID of the project.", - "required": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The timestamp when the resource was created.", - "computed": true - }, - { - "name": "image_port", - "type": "TypeInt", - "description": "Optional port the app listens on. While the app will always be exposed via port `443` for end users, this port is used to connect to the port that is exposed by the container image.", - "computed": true - }, { "name": "resource_type", "type": "TypeString", @@ -16774,34 +16954,25 @@ "computed": true }, { - "name": "run_arguments", - "type": "TypeList", - "description": "Optional arguments for the app that are passed to start the container. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "image_reference", + "type": "TypeString", + "description": "The name of the image that is used for this app. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.", + "computed": true }, { - "name": "name", + "name": "scale_cpu_limit", "type": "TypeString", - "description": "The name of your application.", - "required": true + "description": "Optional number of CPU set for the instance of the app. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo).", + "computed": true }, { - "name": "scale_request_timeout", + "name": "scale_max_instances", "type": "TypeInt", - "description": "Optional amount of time in seconds that is allowed for a running app to respond to a request.", + "description": "Optional maximum number of instances for this app. If you set this value to `0`, this property does not set a upper scaling limit. However, the app scaling is still limited by the project quota for instances. See [Limits and quotas for Code Engine](https://cloud.ibm.com/docs/codeengine?topic=codeengine-limits).", "computed": true } ], "ibm_code_engine_binding": [ - { - "name": "binding_id", - "type": "TypeString", - "description": "The ID of the binding.", - "required": true - }, { "name": "prefix", "type": "TypeString", @@ -16857,20 +17028,32 @@ "type": "TypeString", "description": "When you provision a new binding, a URL is created identifying the location of the instance.", "computed": true + }, + { + "name": "binding_id", + "type": "TypeString", + "description": "The ID of the binding.", + "required": true } ], "ibm_code_engine_build": [ { - "name": "project_id", + "name": "source_revision", "type": "TypeString", - "description": "The ID of the project.", - "required": true + "description": "Commit, tag, or branch in the source repository to pull. This field is optional if the `source_type` is `git` and uses the HEAD of default branch if not specified. If the `source_type` value is `local`, this field must be omitted.", + "computed": true }, { - "name": "name", + "name": "strategy_spec_file", "type": "TypeString", - "description": "The name of your build.", - "required": true + "description": "Optional path to the specification file that is used for build strategies for building an image.", + "computed": true + }, + { + "name": "output_image", + "type": "TypeString", + "description": "The name of the image.", + "computed": true }, { "name": "resource_type", @@ -16879,24 +17062,22 @@ "computed": true }, { - "name": "source_type", + "name": "source_secret", "type": "TypeString", - "description": "Specifies the type of source to determine if your build source is in a repository or based on local source code.* local - For builds from local source code.* git - For builds from git version controlled source code.", + "description": "Name of the secret that is used access the repository source. This field is optional if the `source_type` is `git`. Additionally, if the `source_url` points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the `source_type` value is `local`, this field must be omitted.", "computed": true }, { - "name": "status_details", - "type": "TypeList", - "description": "The detailed status of the build.", - "computed": true, - "elem": { - "reason": { - "name": "reason", - "type": "TypeString", - "description": "Optional information to provide more context in case of a 'failed' or 'warning' status.", - "computed": true - } - } + "name": "source_url", + "type": "TypeString", + "description": "The URL of the code repository. This field is required if the `source_type` is `git`. If the `source_type` value is `local`, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like `https://github.com/IBM/CodeEngine`. If the repository requires authentication, you need to provide a 'ssh' URL like `git@github.com:IBM/CodeEngine.git` along with a `source_secret` that points to a secret of format `ssh_auth`.", + "computed": true + }, + { + "name": "strategy_size", + "type": "TypeString", + "description": "Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`, `large`, `xlarge`.", + "computed": true }, { "name": "strategy_type", @@ -16905,27 +17086,27 @@ "computed": true }, { - "name": "timeout", - "type": "TypeInt", - "description": "The maximum amount of time, in seconds, that can pass before the build must succeed or fail.", - "computed": true + "name": "project_id", + "type": "TypeString", + "description": "The ID of the project.", + "required": true }, { - "name": "created_at", + "name": "href", "type": "TypeString", - "description": "The timestamp when the resource was created.", + "description": "When you provision a new build, a URL is created identifying the location of the instance.", "computed": true }, { - "name": "output_secret", - "type": "TypeString", - "description": "The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.", + "name": "timeout", + "type": "TypeInt", + "description": "The maximum amount of time, in seconds, that can pass before the build must succeed or fail.", "computed": true }, { - "name": "source_secret", + "name": "source_type", "type": "TypeString", - "description": "Name of the secret that is used access the repository source. This field is optional if the `source_type` is `git`. Additionally, if the `source_url` points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the `source_type` value is `local`, this field must be omitted.", + "description": "Specifies the type of source to determine if your build source is in a repository or based on local source code.* local - For builds from local source code.* git - For builds from git version controlled source code.", "computed": true }, { @@ -16935,21 +17116,29 @@ "computed": true }, { - "name": "strategy_size", - "type": "TypeString", - "description": "Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`, `large`, `xlarge`.", - "computed": true + "name": "status_details", + "type": "TypeList", + "description": "The detailed status of the build.", + "computed": true, + "elem": { + "reason": { + "name": "reason", + "type": "TypeString", + "description": "Optional information to provide more context in case of a 'failed' or 'warning' status.", + "computed": true + } + } }, { - "name": "strategy_spec_file", + "name": "entity_tag", "type": "TypeString", - "description": "Optional path to the specification file that is used for build strategies for building an image.", + "description": "The version of the build instance, which is used to achieve optimistic locking.", "computed": true }, { - "name": "entity_tag", + "name": "output_secret", "type": "TypeString", - "description": "The version of the build instance, which is used to achieve optimistic locking.", + "description": "The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.", "computed": true }, { @@ -16965,27 +17154,15 @@ "computed": true }, { - "name": "source_revision", - "type": "TypeString", - "description": "Commit, tag, or branch in the source repository to pull. This field is optional if the `source_type` is `git` and uses the HEAD of default branch if not specified. If the `source_type` value is `local`, this field must be omitted.", - "computed": true - }, - { - "name": "source_url", - "type": "TypeString", - "description": "The URL of the code repository. This field is required if the `source_type` is `git`. If the `source_type` value is `local`, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like `https://github.com/IBM/CodeEngine`. If the repository requires authentication, you need to provide a 'ssh' URL like `git@github.com:IBM/CodeEngine.git` along with a `source_secret` that points to a secret of format `ssh_auth`.", - "computed": true - }, - { - "name": "href", + "name": "name", "type": "TypeString", - "description": "When you provision a new build, a URL is created identifying the location of the instance.", - "computed": true + "description": "The name of your build.", + "required": true }, { - "name": "output_image", + "name": "created_at", "type": "TypeString", - "description": "The name of the image.", + "description": "The timestamp when the resource was created.", "computed": true } ], @@ -17044,21 +17221,15 @@ ], "ibm_code_engine_job": [ { - "name": "scale_max_execution_time", - "type": "TypeInt", - "description": "The maximum execution time in seconds for runs of the job. This property can only be specified if `run_mode` is `task`.", - "computed": true - }, - { - "name": "entity_tag", + "name": "created_at", "type": "TypeString", - "description": "The version of the job instance, which is used to achieve optimistic locking.", + "description": "The timestamp when the resource was created.", "computed": true }, { - "name": "resource_type", + "name": "job_id", "type": "TypeString", - "description": "The type of the job.", + "description": "The identifier of the resource.", "computed": true }, { @@ -17071,65 +17242,42 @@ } }, { - "name": "run_mode", + "name": "run_commands", + "type": "TypeList", + "description": "Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "scale_cpu_limit", "type": "TypeString", - "description": "The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `max_execution_time` and `retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `max_execution_time` and `retry_limit` properties are not allowed.", + "description": "Optional amount of CPU set for the instance of the job. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo).", "computed": true }, { - "name": "run_service_account", + "name": "scale_ephemeral_storage_limit", "type": "TypeString", - "description": "The name of the service account. For built-in service accounts, you can use the shortened names `manager`, `none`, `reader`, and `writer`. This property must not be set on a job run, which references a job template.", + "description": "Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", "computed": true }, { - "name": "run_volume_mounts", - "type": "TypeList", - "description": "Optional mounts of config maps or a secrets.", - "computed": true, - "elem": { - "mount_path": { - "name": "mount_path", - "type": "TypeString", - "description": "The path that should be mounted.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The name of the mount.", - "computed": true - }, - "reference": { - "name": "reference", - "type": "TypeString", - "description": "The name of the referenced secret or config map.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Specify the type of the volume mount. Allowed types are: 'config_map', 'secret'.", - "computed": true - } - } + "name": "scale_retry_limit", + "type": "TypeInt", + "description": "The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if `run_mode` is `task`.", + "computed": true }, { - "name": "name", + "name": "project_id", "type": "TypeString", - "description": "The name of your job.", + "description": "The ID of the project.", "required": true }, { - "name": "image_secret", + "name": "href", "type": "TypeString", - "description": "The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.", - "computed": true - }, - { - "name": "run_as_user", - "type": "TypeInt", - "description": "The user ID (UID) to run the job (e.g., 1001).", + "description": "When you provision a new job, a URL is created identifying the location of the instance.", "computed": true }, { @@ -17177,27 +17325,53 @@ } }, { - "name": "scale_retry_limit", - "type": "TypeInt", - "description": "The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if `run_mode` is `task`.", + "name": "run_service_account", + "type": "TypeString", + "description": "The name of the service account. For built-in service accounts, you can use the shortened names `manager`, `none`, `reader`, and `writer`. This property must not be set on a job run, which references a job template.", "computed": true }, { - "name": "scale_memory_limit", - "type": "TypeString", - "description": "Optional amount of memory set for the instance of the job. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo). The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", - "computed": true + "name": "run_volume_mounts", + "type": "TypeList", + "description": "Optional mounts of config maps or a secrets.", + "computed": true, + "elem": { + "mount_path": { + "name": "mount_path", + "type": "TypeString", + "description": "The path that should be mounted.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The name of the mount.", + "computed": true + }, + "reference": { + "name": "reference", + "type": "TypeString", + "description": "The name of the referenced secret or config map.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Specify the type of the volume mount. Allowed types are: 'config_map', 'secret'.", + "computed": true + } + } }, { - "name": "project_id", - "type": "TypeString", - "description": "The ID of the project.", - "required": true + "name": "scale_max_execution_time", + "type": "TypeInt", + "description": "The maximum execution time in seconds for runs of the job. This property can only be specified if `run_mode` is `task`.", + "computed": true }, { - "name": "job_id", + "name": "entity_tag", "type": "TypeString", - "description": "The identifier of the resource.", + "description": "The version of the job instance, which is used to achieve optimistic locking.", "computed": true }, { @@ -17207,51 +17381,54 @@ "computed": true }, { - "name": "scale_array_spec", + "name": "run_mode", "type": "TypeString", - "description": "Define a custom set of array indices as comma-separated list containing single values and hyphen-separated ranges like `5,12-14,23,27`. Each instance can pick up its array index via environment variable `JOB_INDEX`. The number of unique array indices specified here determines the number of job instances to run.", + "description": "The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `max_execution_time` and `retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `max_execution_time` and `retry_limit` properties are not allowed.", "computed": true }, { - "name": "scale_cpu_limit", + "name": "scale_memory_limit", "type": "TypeString", - "description": "Optional amount of CPU set for the instance of the job. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo).", + "description": "Optional amount of memory set for the instance of the job. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo). The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", "computed": true }, { - "name": "scale_ephemeral_storage_limit", + "name": "name", "type": "TypeString", - "description": "Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", - "computed": true + "description": "The name of your job.", + "required": true }, { - "name": "created_at", + "name": "image_secret", "type": "TypeString", - "description": "The timestamp when the resource was created.", + "description": "The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.", "computed": true }, { - "name": "href", + "name": "resource_type", "type": "TypeString", - "description": "When you provision a new job, a URL is created identifying the location of the instance.", + "description": "The type of the job.", "computed": true }, { - "name": "run_commands", - "type": "TypeList", - "description": "Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "run_as_user", + "type": "TypeInt", + "description": "The user ID (UID) to run the job (e.g., 1001).", + "computed": true + }, + { + "name": "scale_array_spec", + "type": "TypeString", + "description": "Define a custom set of array indices as comma-separated list containing single values and hyphen-separated ranges like `5,12-14,23,27`. Each instance can pick up its array index via environment variable `JOB_INDEX`. The number of unique array indices specified here determines the number of job instances to run.", + "computed": true } ], "ibm_code_engine_project": [ { - "name": "href", + "name": "project_id", "type": "TypeString", - "description": "When you provision a new resource, a URL is created identifying the location of the instance.", - "computed": true + "description": "The ID of the project.", + "required": true }, { "name": "name", @@ -17273,9 +17450,9 @@ "computed": true }, { - "name": "created_at", + "name": "status", "type": "TypeString", - "description": "The timestamp when the project was created.", + "description": "The current state of the project. For example, if the project is created and ready to get used, it will return active.", "computed": true }, { @@ -17285,39 +17462,51 @@ "computed": true }, { - "name": "crn", + "name": "created_at", "type": "TypeString", - "description": "The CRN of the project.", - "cloud_data_type": "crn", + "description": "The timestamp when the project was created.", "computed": true }, { - "name": "resource_group_id", + "name": "crn", "type": "TypeString", - "description": "The ID of the resource group.", - "cloud_data_type": "resource_group", + "description": "The CRN of the project.", + "cloud_data_type": "crn", "computed": true }, { - "name": "status", + "name": "href", "type": "TypeString", - "description": "The current state of the project. For example, if the project is created and ready to get used, it will return active.", + "description": "When you provision a new resource, a URL is created identifying the location of the instance.", "computed": true }, { - "name": "project_id", + "name": "resource_group_id", "type": "TypeString", - "description": "The ID of the project.", - "required": true + "description": "The ID of the resource group.", + "cloud_data_type": "resource_group", + "computed": true } ], "ibm_code_engine_secret": [ + { + "name": "href", + "type": "TypeString", + "description": "When you provision a new secret, a URL is created identifying the location of the instance.", + "computed": true + }, { "name": "secret_id", "type": "TypeString", "description": "The identifier of the resource.", "computed": true }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The type of the secret.", + "computed": true + }, { "name": "service_access", "type": "TypeList", @@ -17392,12 +17581,6 @@ "description": "The ID of the project.", "required": true }, - { - "name": "name", - "type": "TypeString", - "description": "The name of your secret.", - "required": true - }, { "name": "data", "type": "TypeMap", @@ -17413,12 +17596,6 @@ "description": "The version of the secret instance, which is used to achieve optimistic locking.", "computed": true }, - { - "name": "created_at", - "type": "TypeString", - "description": "The timestamp when the resource was created.", - "computed": true - }, { "name": "format", "type": "TypeString", @@ -17426,67 +17603,58 @@ "computed": true }, { - "name": "href", + "name": "name", "type": "TypeString", - "description": "When you provision a new secret, a URL is created identifying the location of the instance.", - "computed": true + "description": "The name of your secret.", + "required": true }, { - "name": "resource_type", + "name": "created_at", "type": "TypeString", - "description": "The type of the secret.", + "description": "The timestamp when the resource was created.", "computed": true } ], "ibm_compute_bare_metal": [ { - "name": "private_network_only", - "type": "TypeBool", - "description": "Specifies whether the server only has access to the private network.", - "computed": true - }, - { - "name": "unbonded_network", - "type": "TypeBool", - "description": "When the value is `true`, two physical network interfaces are provided without a bonding configuration.", + "name": "domain", + "type": "TypeString", + "description": "The domain of the bare metal server", + "optional": true, "computed": true }, { - "name": "os_reference_code", + "name": "datacenter", "type": "TypeString", + "description": "Datacenter in which the bare metal is deployed", "computed": true }, { - "name": "ipv6_enabled", - "type": "TypeBool", - "description": "Indicates whether the public IPv6 address enabled or not", + "name": "public_vlan_id", + "type": "TypeInt", + "description": "The public VLAN used for the public network interface of the server.", "computed": true }, { - "name": "most_recent", + "name": "unbonded_network", "type": "TypeBool", - "description": "If true and multiple entries are found, the most recently created bare metal is used. If false, an error is returned", - "default_value": false, - "optional": true - }, - { - "name": "hostname", - "type": "TypeString", - "description": "The hostname of the bare metal server", - "optional": true, + "description": "When the value is `true`, two physical network interfaces are provided without a bonding configuration.", "computed": true }, { - "name": "public_bandwidth", - "type": "TypeInt", - "description": "The amount of public network traffic, allowed per month.", + "name": "os_reference_code", + "type": "TypeString", "computed": true }, { - "name": "redundant_network", - "type": "TypeBool", - "description": "When the value is `true`, two physical network interfaces are provided with a bonding configuration.", - "computed": true + "name": "tags", + "type": "TypeList", + "description": "Tags associated with this bare metal server.", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "secondary_ip_addresses", @@ -17498,151 +17666,160 @@ } }, { - "name": "hourly_billing", - "type": "TypeBool", - "description": "The billing type of the server.", + "name": "private_subnet", + "type": "TypeInt", + "description": "The private subnet used for the private network interface of the server.", "computed": true }, { - "name": "memory", - "type": "TypeInt", - "description": "The amount of memory in gigabytes, for the server.", + "name": "user_metadata", + "type": "TypeString", + "description": "Arbitrary data available to the computing server.", "computed": true }, { - "name": "public_ipv4_address_id", - "type": "TypeInt", + "name": "redundant_network", + "type": "TypeBool", + "description": "When the value is `true`, two physical network interfaces are provided with a bonding configuration.", "computed": true }, { - "name": "user_metadata", - "type": "TypeString", - "description": "Arbitrary data available to the computing server.", + "name": "file_storage_ids", + "type": "TypeSet", + "description": "File storage to which this computing server have access.", + "computed": true, + "elem": { + "type": "TypeInt" + } + }, + { + "name": "public_bandwidth", + "type": "TypeInt", + "description": "The amount of public network traffic, allowed per month.", "computed": true }, { - "name": "notes", + "name": "private_ipv4_address", "type": "TypeString", - "description": "Notes associated with the server.", + "description": "The private IPv4 address of the bare metal server.", "computed": true }, { - "name": "redundant_power_supply", + "name": "private_network_only", "type": "TypeBool", - "description": "When the value is `true`, it indicates additional power supply is provided.", + "description": "Specifies whether the server only has access to the private network.", "computed": true }, { - "name": "ipv6_address", - "type": "TypeString", - "description": "The public IPv6 address of the bare metal server", + "name": "memory", + "type": "TypeInt", + "description": "The amount of memory in gigabytes, for the server.", "computed": true }, { - "name": "ipv6_address_id", + "name": "ipv6_enabled", + "type": "TypeBool", + "description": "Indicates whether the public IPv6 address enabled or not", + "computed": true + }, + { + "name": "private_ipv4_address_id", "type": "TypeInt", "computed": true }, { - "name": "public_ipv4_address", + "name": "hourly_billing", + "type": "TypeBool", + "description": "The billing type of the server.", + "computed": true + }, + { + "name": "ipv6_address", "type": "TypeString", - "description": "The public IPv4 address of the bare metal server.", + "description": "The public IPv6 address of the bare metal server", "computed": true }, { - "name": "private_ipv4_address_id", + "name": "network_speed", "type": "TypeInt", + "description": "The connection speed, expressed in Mbps, for the server network components.", "computed": true }, { - "name": "tags", - "type": "TypeList", - "description": "Tags associated with this bare metal server.", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "notes", + "type": "TypeString", + "description": "Notes associated with the server.", + "computed": true }, { - "name": "block_storage_ids", - "type": "TypeSet", - "description": "Block storage to which this computing server have access.", - "computed": true, - "elem": { - "type": "TypeInt" - } + "name": "redundant_power_supply", + "type": "TypeBool", + "description": "When the value is `true`, it indicates additional power supply is provided.", + "computed": true }, { - "name": "secondary_ip_count", + "name": "ipv6_address_id", "type": "TypeInt", - "description": "The number of secondary IPv4 addresses of the bare metal server.", "computed": true }, { - "name": "private_ipv4_address", + "name": "global_identifier", "type": "TypeString", - "description": "The private IPv4 address of the bare metal server.", + "description": "The unique global identifier of the bare metal server", + "optional": true, "computed": true }, { - "name": "private_vlan_id", + "name": "public_ipv4_address_id", "type": "TypeInt", - "description": "The private VLAN used for the private network interface of the server.", "computed": true }, { - "name": "public_vlan_id", + "name": "public_subnet", "type": "TypeInt", - "description": "The public VLAN used for the public network interface of the server.", + "description": "The public subnet used for the public network interface of the server.", "computed": true }, { - "name": "public_subnet", + "name": "private_vlan_id", "type": "TypeInt", - "description": "The public subnet used for the public network interface of the server.", + "description": "The private VLAN used for the private network interface of the server.", "computed": true }, { - "name": "file_storage_ids", + "name": "block_storage_ids", "type": "TypeSet", - "description": "File storage to which this computing server have access.", + "description": "Block storage to which this computing server have access.", "computed": true, "elem": { "type": "TypeInt" } }, { - "name": "domain", - "type": "TypeString", - "description": "The domain of the bare metal server", - "optional": true, + "name": "secondary_ip_count", + "type": "TypeInt", + "description": "The number of secondary IPv4 addresses of the bare metal server.", "computed": true }, { - "name": "datacenter", + "name": "hostname", "type": "TypeString", - "description": "Datacenter in which the bare metal is deployed", - "computed": true - }, - { - "name": "private_subnet", - "type": "TypeInt", - "description": "The private subnet used for the private network interface of the server.", + "description": "The hostname of the bare metal server", + "optional": true, "computed": true }, { - "name": "global_identifier", + "name": "public_ipv4_address", "type": "TypeString", - "description": "The unique global identifier of the bare metal server", - "optional": true, + "description": "The public IPv4 address of the bare metal server.", "computed": true }, { - "name": "network_speed", - "type": "TypeInt", - "description": "The connection speed, expressed in Mbps, for the server network components.", - "computed": true + "name": "most_recent", + "type": "TypeBool", + "description": "If true and multiple entries are found, the most recently created bare metal is used. If false, an error is returned", + "default_value": false, + "optional": true } ], "ibm_compute_image_template": [ @@ -17704,31 +17881,6 @@ } ], "ibm_compute_reserved_capacity": [ - { - "name": "name", - "type": "TypeString", - "description": "Name of reserved instance", - "required": true - }, - { - "name": "most_recent", - "type": "TypeBool", - "description": "If true and multiple entries are found, the most recently created reserved capacity is used. If false, an error is returned", - "default_value": false, - "optional": true - }, - { - "name": "datacenter", - "type": "TypeString", - "description": "Dataceneter name", - "computed": true - }, - { - "name": "pod", - "type": "TypeString", - "description": "Pod name", - "computed": true - }, { "name": "instances", "type": "TypeInt", @@ -17762,21 +17914,34 @@ "computed": true } } - } - ], - "ibm_compute_ssh_key": [ + }, { - "name": "label", + "name": "name", "type": "TypeString", - "description": "The label associated with the ssh key", + "description": "Name of reserved instance", "required": true }, { - "name": "public_key", + "name": "most_recent", + "type": "TypeBool", + "description": "If true and multiple entries are found, the most recently created reserved capacity is used. If false, an error is returned", + "default_value": false, + "optional": true + }, + { + "name": "datacenter", "type": "TypeString", - "description": "The public ssh key", + "description": "Dataceneter name", "computed": true }, + { + "name": "pod", + "type": "TypeString", + "description": "Pod name", + "computed": true + } + ], + "ibm_compute_ssh_key": [ { "name": "fingerprint", "type": "TypeString", @@ -17795,18 +17960,30 @@ "description": "If true and multiple entries are found, the most recently created key is used. If false, an error is returned", "default_value": false, "optional": true + }, + { + "name": "label", + "type": "TypeString", + "description": "The label associated with the ssh key", + "required": true + }, + { + "name": "public_key", + "type": "TypeString", + "description": "The public ssh key", + "computed": true } ], "ibm_compute_vm_instance": [ { - "name": "datacenter", + "name": "status", "type": "TypeString", - "description": "Datacenter in which the virtual guest is deployed", + "description": "The VSI status", "computed": true }, { - "name": "private_subnet_id", - "type": "TypeInt", + "name": "ipv4_address", + "type": "TypeString", "computed": true }, { @@ -17815,25 +17992,29 @@ "computed": true }, { - "name": "public_ipv6_subnet_id", - "type": "TypeString", - "computed": true + "name": "secondary_ip_addresses", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "hostname", + "name": "domain", "type": "TypeString", - "description": "The hostname of the virtual guest", + "description": "The domain of the virtual guest", "required": true }, { - "name": "status", - "type": "TypeString", - "description": "The VSI status", + "name": "cores", + "type": "TypeInt", + "description": "Number of cpu cores", "computed": true }, { - "name": "public_interface_id", - "type": "TypeInt", + "name": "power_state", + "type": "TypeString", + "description": "The current power state of a virtual guest.", "computed": true }, { @@ -17842,8 +18023,8 @@ "computed": true }, { - "name": "ip_address_id", - "type": "TypeInt", + "name": "ipv4_address_private", + "type": "TypeString", "computed": true }, { @@ -17852,60 +18033,61 @@ "computed": true }, { - "name": "last_known_power_state", + "name": "datacenter", "type": "TypeString", - "description": "The last known power state of a virtual guest in the event the guest is turned off outside of IMS or has gone offline.", + "description": "Datacenter in which the virtual guest is deployed", "computed": true }, { - "name": "ipv4_address", - "type": "TypeString", + "name": "public_interface_id", + "type": "TypeInt", "computed": true }, { - "name": "ipv4_address_private", + "name": "ipv6_address", "type": "TypeString", "computed": true }, { - "name": "ipv6_address_id", + "name": "hostname", + "type": "TypeString", + "description": "The hostname of the virtual guest", + "required": true + }, + { + "name": "private_interface_id", "type": "TypeInt", "computed": true }, { - "name": "secondary_ip_addresses", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "private_subnet_id", + "type": "TypeInt", + "computed": true }, { - "name": "ipv6_address", - "type": "TypeString", + "name": "ip_address_id", + "type": "TypeInt", "computed": true }, { - "name": "domain", - "type": "TypeString", - "description": "The domain of the virtual guest", - "required": true + "name": "ip_address_id_private", + "type": "TypeInt", + "computed": true }, { - "name": "cores", + "name": "ipv6_address_id", "type": "TypeInt", - "description": "Number of cpu cores", "computed": true }, { - "name": "private_interface_id", - "type": "TypeInt", + "name": "public_ipv6_subnet_id", + "type": "TypeString", "computed": true }, { - "name": "power_state", + "name": "last_known_power_state", "type": "TypeString", - "description": "The current power state of a virtual guest.", + "description": "The last known power state of a virtual guest in the event the guest is turned off outside of IMS or has gone offline.", "computed": true }, { @@ -17914,11 +18096,6 @@ "description": "If true and multiple entries are found, the most recently created virtual guest is used. If false, an error is returned", "default_value": false, "optional": true - }, - { - "name": "ip_address_id_private", - "type": "TypeInt", - "computed": true } ], "ibm_container_addons": [ @@ -18018,12 +18195,6 @@ } ], "ibm_container_alb": [ - { - "name": "name", - "type": "TypeString", - "description": "ALB name", - "computed": true - }, { "name": "zone", "type": "TypeString", @@ -18065,28 +18236,15 @@ "type": "TypeBool", "description": "Set to true if ALB needs to be disabled", "computed": true - } - ], - "ibm_container_alb_cert": [ - { - "name": "namespace", - "type": "TypeString", - "description": "Namespace of the secret", - "default_value": "ibm-cert-store", - "optional": true - }, - { - "name": "persistence", - "type": "TypeBool", - "description": "Persistence of secret", - "computed": true }, { - "name": "cloud_cert_instance_id", + "name": "name", "type": "TypeString", - "description": "cloud cert instance ID", + "description": "ALB name", "computed": true - }, + } + ], + "ibm_container_alb_cert": [ { "name": "secret_name", "type": "TypeString", @@ -18094,20 +18252,25 @@ "required": true }, { - "name": "cluster_id", + "name": "namespace", "type": "TypeString", - "description": "Cluster ID", - "cloud_data_type": "cluster", - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "description": "Namespace of the secret", + "default_value": "ibm-cert-store", + "optional": true }, { - "name": "status", + "name": "issuer_name", "type": "TypeString", - "description": "Secret Status", - "computed": true + "description": "certificate issuer name", + "computed": true, + "deprecated": "This field is depricated and is not available in v2 version of ingress api" + }, + { + "name": "cluster_crn", + "type": "TypeString", + "description": "cluster CRN", + "computed": true, + "deprecated": "This field is depricated and is not available in v2 version of ingress api" }, { "name": "domain_name", @@ -18122,31 +18285,21 @@ "computed": true }, { - "name": "issuer_name", - "type": "TypeString", - "description": "certificate issuer name", - "computed": true, - "deprecated": "This field is depricated and is not available in v2 version of ingress api" - }, - { - "name": "cluster_crn", + "name": "cloud_cert_instance_id", "type": "TypeString", - "description": "cluster CRN", - "computed": true, - "deprecated": "This field is depricated and is not available in v2 version of ingress api" + "description": "cloud cert instance ID", + "computed": true }, { "name": "cert_crn", "type": "TypeString", "description": "Certificate CRN id", "computed": true - } - ], - "ibm_container_bind_service": [ + }, { - "name": "cluster_name_id", + "name": "cluster_id", "type": "TypeString", - "description": "Cluster name or ID", + "description": "Cluster ID", "cloud_data_type": "cluster", "required": true, "cloud_data_range": [ @@ -18154,12 +18307,19 @@ ] }, { - "name": "service_instance_id", - "type": "TypeString", - "description": "Service instance ID", - "optional": true, + "name": "persistence", + "type": "TypeBool", + "description": "Persistence of secret", "computed": true }, + { + "name": "status", + "type": "TypeString", + "description": "Secret Status", + "computed": true + } + ], + "ibm_container_bind_service": [ { "name": "service_instance_name", "type": "TypeString", @@ -18178,9 +18338,31 @@ "type": "TypeString", "description": "Key info", "computed": true + }, + { + "name": "cluster_name_id", + "type": "TypeString", + "description": "Cluster name or ID", + "cloud_data_type": "cluster", + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] + }, + { + "name": "service_instance_id", + "type": "TypeString", + "description": "Service instance ID", + "optional": true, + "computed": true } ], "ibm_container_cluster": [ + { + "name": "is_trusted", + "type": "TypeBool", + "computed": true + }, { "name": "vlans", "type": "TypeList", @@ -18229,11 +18411,150 @@ } }, { - "name": "alb_type", + "name": "public_service_endpoint", + "type": "TypeBool", + "computed": true + }, + { + "name": "resource_controller_url", "type": "TypeString", - "default_value": "all", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name or id of the cluster", + "cloud_data_type": "cluster", + "optional": true, + "cloud_data_range": [ + "resolved_to:id" + ] + }, + { + "name": "worker_count", + "type": "TypeInt", + "description": "Number of workers", + "computed": true + }, + { + "name": "org_guid", + "type": "TypeString", + "description": "The bluemix organization guid this cluster belongs to", + "optional": true, + "deprecated": "This field is deprecated" + }, + { + "name": "space_guid", + "type": "TypeString", + "description": "The bluemix space guid this cluster belongs to", + "optional": true, + "deprecated": "This field is deprecated" + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "optional": true, + "computed": true + }, + { + "name": "list_bounded_services", + "type": "TypeBool", + "description": "If set to false bounded services won't be listed.", + "default_value": true, "optional": true }, + { + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", + "computed": true + }, + { + "name": "resource_status", + "type": "TypeString", + "description": "The status of the resource", + "computed": true + }, + { + "name": "workers", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "worker_pools", + "type": "TypeList", + "computed": true, + "elem": { + "hardware": { + "name": "hardware", + "type": "TypeString", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "computed": true + }, + "labels": { + "name": "labels", + "type": "TypeMap", + "computed": true + }, + "machine_type": { + "name": "machine_type", + "type": "TypeString", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "computed": true + }, + "size_per_zone": { + "name": "size_per_zone", + "type": "TypeInt", + "computed": true + }, + "state": { + "name": "state", + "type": "TypeString", + "computed": true + }, + "zones": { + "name": "zones", + "type": "TypeList", + "computed": true, + "elem": { + "private_vlan": { + "name": "private_vlan", + "type": "TypeString", + "computed": true + }, + "public_vlan": { + "name": "public_vlan", + "type": "TypeString", + "computed": true + }, + "worker_count": { + "name": "worker_count", + "type": "TypeInt", + "computed": true + }, + "zone": { + "name": "zone", + "type": "TypeString", + "computed": true + } + } + } + } + }, { "name": "albs", "type": "TypeList", @@ -18287,27 +18608,18 @@ } }, { - "name": "list_bounded_services", - "type": "TypeBool", - "description": "If set to false bounded services won't be listed.", - "default_value": true, - "optional": true - }, - { - "name": "resource_controller_url", + "name": "ingress_hostname", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", "computed": true }, { - "name": "name", + "name": "region", "type": "TypeString", - "description": "Name or id of the cluster", - "cloud_data_type": "cluster", + "description": "The cluster region", + "cloud_data_type": "region", "optional": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "computed": true, + "deprecated": "This field is deprecated" }, { "name": "private_service_endpoint", @@ -18315,7 +18627,13 @@ "computed": true }, { - "name": "public_service_endpoint_url", + "name": "image_security_enforcement", + "type": "TypeBool", + "description": "True if image security enforcement is enabled", + "computed": true + }, + { + "name": "private_service_endpoint_url", "type": "TypeString", "computed": true }, @@ -18326,9 +18644,9 @@ "computed": true }, { - "name": "image_security_enforcement", - "type": "TypeBool", - "description": "True if image security enforcement is enabled", + "name": "api_key_owner_email", + "type": "TypeString", + "description": "email id of the key owner", "computed": true }, { @@ -18359,58 +18677,48 @@ } }, { - "name": "ingress_hostname", + "name": "alb_type", "type": "TypeString", - "computed": true + "default_value": "all", + "optional": true }, { - "name": "api_key_id", + "name": "ingress_secret", "type": "TypeString", - "description": "ID of APIkey", + "secure": true, "computed": true }, { - "name": "resource_status", + "name": "public_service_endpoint_url", "type": "TypeString", - "description": "The status of the resource", "computed": true }, { - "name": "ingress_secret", + "name": "crn", "type": "TypeString", - "secure": true, + "description": "CRN of resource instance", + "cloud_data_type": "crn", "computed": true }, { - "name": "account_guid", + "name": "api_key_id", "type": "TypeString", - "description": "The bluemix account guid this cluster belongs to", - "optional": true, - "deprecated": "This field is deprecated" + "description": "ID of APIkey", + "computed": true }, { - "name": "region", + "name": "cluster_name_id", "type": "TypeString", - "description": "The cluster region", - "cloud_data_type": "region", + "description": "Name or id of the cluster", "optional": true, - "computed": true, - "deprecated": "This field is deprecated" + "deprecated": "use name instead" }, { - "name": "resource_group_id", + "name": "account_guid", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", + "description": "The bluemix account guid this cluster belongs to", "optional": true, - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", - "computed": true + "deprecated": "This field is deprecated" }, { "name": "server_url", @@ -18428,144 +18736,66 @@ "type": "TypeString", "description": "The resource group name in which resource is provisioned", "computed": true - }, - { - "name": "workers", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } - }, + } + ], + "ibm_container_cluster_config": [ { - "name": "is_trusted", - "type": "TypeBool", + "name": "token", + "type": "TypeString", + "secure": true, "computed": true }, { - "name": "public_service_endpoint", - "type": "TypeBool", + "name": "config_dir", + "type": "TypeString", + "description": "The directory where the cluster config to be downloaded. Default is home directory", + "optional": true, "computed": true }, { - "name": "resource_crn", + "name": "calico_config_file_path", "type": "TypeString", - "description": "The crn of the resource", + "description": "The absolute path to the calico network config file", "computed": true }, { - "name": "cluster_name_id", + "name": "ca_certificate", "type": "TypeString", - "description": "Name or id of the cluster", - "optional": true, - "deprecated": "use name instead" - }, - { - "name": "worker_count", - "type": "TypeInt", - "description": "Number of workers", + "secure": true, "computed": true }, { - "name": "worker_pools", - "type": "TypeList", - "computed": true, - "elem": { - "hardware": { - "name": "hardware", - "type": "TypeString", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "computed": true - }, - "labels": { - "name": "labels", - "type": "TypeMap", - "computed": true - }, - "machine_type": { - "name": "machine_type", - "type": "TypeString", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "computed": true - }, - "size_per_zone": { - "name": "size_per_zone", - "type": "TypeInt", - "computed": true - }, - "state": { - "name": "state", - "type": "TypeString", - "computed": true - }, - "zones": { - "name": "zones", - "type": "TypeList", - "computed": true, - "elem": { - "private_vlan": { - "name": "private_vlan", - "type": "TypeString", - "computed": true - }, - "public_vlan": { - "name": "public_vlan", - "type": "TypeString", - "computed": true - }, - "worker_count": { - "name": "worker_count", - "type": "TypeInt", - "computed": true - }, - "zone": { - "name": "zone", - "type": "TypeString", - "computed": true - } - } - } - } - }, - { - "name": "org_guid", + "name": "space_guid", "type": "TypeString", - "description": "The bluemix organization guid this cluster belongs to", + "description": "The bluemix space guid this cluster belongs to", "optional": true, "deprecated": "This field is deprecated" }, { - "name": "space_guid", + "name": "account_guid", "type": "TypeString", - "description": "The bluemix space guid this cluster belongs to", + "description": "The bluemix account guid this cluster belongs to", "optional": true, "deprecated": "This field is deprecated" }, { - "name": "private_service_endpoint_url", - "type": "TypeString", - "computed": true + "name": "download", + "type": "TypeBool", + "description": "If set to false will not download the config, otherwise they are downloaded each time but onto the same path for a given cluster name/id", + "default_value": true, + "optional": true }, { - "name": "api_key_owner_email", - "type": "TypeString", - "description": "email id of the key owner", - "computed": true - } - ], - "ibm_container_cluster_config": [ + "name": "network", + "type": "TypeBool", + "description": "If set to true will download the Calico network config with the Admin config", + "default_value": false, + "optional": true + }, { - "name": "config_file_path", + "name": "admin_key", "type": "TypeString", - "description": "The absolute path to the kubernetes config yml file", + "secure": true, "computed": true }, { @@ -18575,25 +18805,9 @@ "computed": true }, { - "name": "space_guid", - "type": "TypeString", - "description": "The bluemix space guid this cluster belongs to", - "optional": true, - "deprecated": "This field is deprecated" - }, - { - "name": "account_guid", + "name": "host", "type": "TypeString", - "description": "The bluemix account guid this cluster belongs to", - "optional": true, - "deprecated": "This field is deprecated" - }, - { - "name": "network", - "type": "TypeBool", - "description": "If set to true will download the Calico network config with the Admin config", - "default_value": false, - "optional": true + "computed": true }, { "name": "region", @@ -18603,6 +18817,13 @@ "optional": true, "deprecated": "This field is deprecated" }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "optional": true + }, { "name": "admin", "type": "TypeBool", @@ -18610,11 +18831,6 @@ "default_value": false, "optional": true }, - { - "name": "host", - "type": "TypeString", - "computed": true - }, { "name": "endpoint_type", "type": "TypeString", @@ -18622,15 +18838,9 @@ "optional": true }, { - "name": "calico_config_file_path", - "type": "TypeString", - "description": "The absolute path to the calico network config file", - "computed": true - }, - { - "name": "token", + "name": "config_file_path", "type": "TypeString", - "secure": true, + "description": "The absolute path to the kubernetes config yml file", "computed": true }, { @@ -18649,42 +18859,16 @@ "cloud_data_range": [ "resolved_to:id" ] - }, - { - "name": "download", - "type": "TypeBool", - "description": "If set to false will not download the config, otherwise they are downloaded each time but onto the same path for a given cluster name/id", - "default_value": true, - "optional": true - }, - { - "name": "ca_certificate", - "type": "TypeString", - "secure": true, - "computed": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "optional": true - }, + } + ], + "ibm_container_cluster_versions": [ { - "name": "config_dir", + "name": "space_guid", "type": "TypeString", - "description": "The directory where the cluster config to be downloaded. Default is home directory", + "description": "The bluemix space guid this cluster belongs to", "optional": true, - "computed": true + "deprecated": "This field is deprecated" }, - { - "name": "admin_key", - "type": "TypeString", - "secure": true, - "computed": true - } - ], - "ibm_container_cluster_versions": [ { "name": "account_guid", "type": "TypeString", @@ -18709,27 +18893,12 @@ "type": "TypeString" } }, - { - "name": "valid_openshift_versions", - "type": "TypeList", - "description": "List of supported openshift-versions", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "default_openshift_version", "type": "TypeString", "description": "Default openshift-version", "computed": true }, - { - "name": "default_kube_version", - "type": "TypeString", - "description": "Default kube-version", - "computed": true - }, { "name": "org_guid", "type": "TypeString", @@ -18737,31 +18906,41 @@ "optional": true, "deprecated": "This field is deprecated" }, - { - "name": "space_guid", - "type": "TypeString", - "description": "The bluemix space guid this cluster belongs to", - "optional": true, - "deprecated": "This field is deprecated" - }, { "name": "resource_group_id", "type": "TypeString", "description": "ID of the resource group.", "cloud_data_type": "resource_group", "optional": true + }, + { + "name": "valid_openshift_versions", + "type": "TypeList", + "description": "List of supported openshift-versions", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "default_kube_version", + "type": "TypeString", + "description": "Default kube-version", + "computed": true } ], "ibm_container_cluster_worker": [ { - "name": "public_vlan", + "name": "private_vlan", "type": "TypeString", "computed": true }, { - "name": "private_ip", + "name": "org_guid", "type": "TypeString", - "computed": true + "description": "The bluemix organization guid this cluster belongs to", + "optional": true, + "deprecated": "This field is deprecated" }, { "name": "region", @@ -18778,6 +18957,13 @@ "cloud_data_type": "resource_group", "optional": true }, + { + "name": "account_guid", + "type": "TypeString", + "description": "The bluemix account guid this cluster belongs to", + "optional": true, + "deprecated": "This field is deprecated" + }, { "name": "worker_id", "type": "TypeString", @@ -18797,14 +18983,13 @@ "computed": true }, { - "name": "private_vlan", + "name": "public_vlan", "type": "TypeString", "computed": true }, { - "name": "resource_controller_url", + "name": "private_ip", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", "computed": true }, { @@ -18812,13 +18997,6 @@ "type": "TypeString", "computed": true }, - { - "name": "org_guid", - "type": "TypeString", - "description": "The bluemix organization guid this cluster belongs to", - "optional": true, - "deprecated": "This field is deprecated" - }, { "name": "space_guid", "type": "TypeString", @@ -18827,26 +19005,13 @@ "deprecated": "This field is deprecated" }, { - "name": "account_guid", + "name": "resource_controller_url", "type": "TypeString", - "description": "The bluemix account guid this cluster belongs to", - "optional": true, - "deprecated": "This field is deprecated" + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", + "computed": true } ], "ibm_container_dedicated_host": [ - { - "name": "host_id", - "type": "TypeString", - "description": "The id of the dedicated host", - "required": true - }, - { - "name": "host_pool_id", - "type": "TypeString", - "description": "The id of the dedicated host pool the dedicated host is associated with", - "required": true - }, { "name": "flavor", "type": "TypeString", @@ -18971,9 +19136,34 @@ "type": "TypeString", "description": "The zone of the dedicated host", "computed": true + }, + { + "name": "host_id", + "type": "TypeString", + "description": "The id of the dedicated host", + "required": true + }, + { + "name": "host_pool_id", + "type": "TypeString", + "description": "The id of the dedicated host pool the dedicated host is associated with", + "required": true } ], "ibm_container_dedicated_host_flavor": [ + { + "name": "region", + "type": "TypeString", + "description": "The region of the dedicated host flavor", + "cloud_data_type": "region", + "computed": true + }, + { + "name": "deprecated", + "type": "TypeBool", + "description": "Describes if the dedicated host flavor is deprecated", + "computed": true + }, { "name": "max_vcpus", "type": "TypeInt", @@ -19021,19 +19211,6 @@ "type": "TypeString", "description": "The class of the dedicated host flavor", "computed": true - }, - { - "name": "region", - "type": "TypeString", - "description": "The region of the dedicated host flavor", - "cloud_data_type": "region", - "computed": true - }, - { - "name": "deprecated", - "type": "TypeBool", - "description": "Describes if the dedicated host flavor is deprecated", - "computed": true } ], "ibm_container_dedicated_host_flavors": [ @@ -19106,12 +19283,6 @@ } ], "ibm_container_dedicated_host_pool": [ - { - "name": "state", - "type": "TypeString", - "description": "The state of the dedicated host pool", - "computed": true - }, { "name": "zones", "type": "TypeList", @@ -19194,23 +19365,19 @@ "type": "TypeInt", "description": "The count of the hosts under the dedicated host pool", "computed": true + }, + { + "name": "state", + "type": "TypeString", + "description": "The state of the dedicated host pool", + "computed": true } ], "ibm_container_ingress_instance": [ { - "name": "cluster", - "type": "TypeString", - "description": "Cluster ID", - "cloud_data_type": "cluster", - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] - }, - { - "name": "secret_group_id", + "name": "secret_group_name", "type": "TypeString", - "description": "Secret group for the instance registration", + "description": "Name of the secret group for the instance", "computed": true }, { @@ -19219,18 +19386,6 @@ "description": "Instance registration status", "computed": true }, - { - "name": "instance_type", - "type": "TypeString", - "description": "Instance type", - "computed": true - }, - { - "name": "instance_crn", - "type": "TypeString", - "description": "Instance CRN id", - "computed": true - }, { "name": "instance_name", "type": "TypeString", @@ -19244,9 +19399,15 @@ "computed": true }, { - "name": "secret_group_name", + "name": "secret_group_id", "type": "TypeString", - "description": "Name of the secret group for the instance", + "description": "Secret group for the instance registration", + "computed": true + }, + { + "name": "instance_type", + "type": "TypeString", + "description": "Instance type", "computed": true }, { @@ -19254,9 +19415,31 @@ "type": "TypeBool", "description": "If the instance was created by the user", "computed": true + }, + { + "name": "instance_crn", + "type": "TypeString", + "description": "Instance CRN id", + "computed": true + }, + { + "name": "cluster", + "type": "TypeString", + "description": "Cluster ID", + "cloud_data_type": "cluster", + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] } ], "ibm_container_ingress_secret_opaque": [ + { + "name": "secret_name", + "type": "TypeString", + "description": "Secret name", + "required": true + }, { "name": "secret_namespace", "type": "TypeString", @@ -19328,35 +19511,19 @@ "cloud_data_range": [ "resolved_to:id" ] - }, - { - "name": "secret_name", - "type": "TypeString", - "description": "Secret name", - "required": true } ], "ibm_container_ingress_secret_tls": [ { - "name": "cluster", - "type": "TypeString", - "description": "Cluster ID or name", - "cloud_data_type": "cluster", - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] - }, - { - "name": "type", - "type": "TypeString", - "description": "Type TLS", + "name": "persistence", + "type": "TypeBool", + "description": "Persistence of secret", "computed": true }, { - "name": "status", + "name": "expires_on", "type": "TypeString", - "description": "Secret Status", + "description": "Certificate expires on date", "computed": true }, { @@ -19366,10 +19533,14 @@ "computed": true }, { - "name": "secret_name", + "name": "cluster", "type": "TypeString", - "description": "Secret name", - "required": true + "description": "Cluster ID or name", + "cloud_data_type": "cluster", + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] }, { "name": "secret_namespace", @@ -19384,15 +19555,21 @@ "computed": true }, { - "name": "user_managed", - "type": "TypeBool", - "description": "If the secret was created by the user", + "name": "type", + "type": "TypeString", + "description": "Type TLS", "computed": true }, { - "name": "persistence", + "name": "status", + "type": "TypeString", + "description": "Secret Status", + "computed": true + }, + { + "name": "user_managed", "type": "TypeBool", - "description": "Persistence of secret", + "description": "If the secret was created by the user", "computed": true }, { @@ -19402,10 +19579,10 @@ "computed": true }, { - "name": "expires_on", + "name": "secret_name", "type": "TypeString", - "description": "Certificate expires on date", - "computed": true + "description": "Secret name", + "required": true } ], "ibm_container_nlb_dns": [ @@ -19486,6 +19663,23 @@ } ], "ibm_container_storage_attachment": [ + { + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "cloud_data_range": [ + "resolved_to:id" + ] + }, + { + "name": "volume", + "type": "TypeString", + "description": "Volume ID", + "computed": true + }, { "name": "volume_attachment_name", "type": "TypeString", @@ -19525,56 +19719,9 @@ "type": "TypeString", "description": "Worker node ID", "required": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "cloud_data_range": [ - "resolved_to:id" - ] - }, - { - "name": "volume", - "type": "TypeString", - "description": "Volume ID", - "computed": true } ], "ibm_container_vpc_alb": [ - { - "name": "state", - "type": "TypeString", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "computed": true - }, - { - "name": "disable_deployment", - "type": "TypeBool", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "computed": true - }, - { - "name": "cluster", - "type": "TypeString", - "computed": true - }, - { - "name": "enable", - "type": "TypeBool", - "computed": true - }, { "name": "load_balancer_hostname", "type": "TypeString", @@ -19586,7 +19733,7 @@ "computed": true }, { - "name": "zone", + "name": "status", "type": "TypeString", "computed": true }, @@ -19604,154 +19751,51 @@ "required": true }, { - "name": "alb_type", - "type": "TypeString", - "computed": true - } - ], - "ibm_container_vpc_cluster": [ - { - "name": "health", - "type": "TypeString", - "computed": true - }, - { - "name": "resource_status", - "type": "TypeString", - "description": "The status of the resource", - "computed": true - }, - { - "name": "cluster_name_id", - "type": "TypeString", - "description": "Name or id of the cluster", - "optional": true, - "deprecated": "use name instead" - }, - { - "name": "crn", - "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "api_key_owner_name", - "type": "TypeString", - "description": "Name of the key owner", - "computed": true - }, - { - "name": "resource_crn", + "name": "cluster", "type": "TypeString", - "description": "The crn of the resource", "computed": true }, { - "name": "albs", - "type": "TypeList", - "computed": true, - "elem": { - "alb_type": { - "name": "alb_type", - "type": "TypeString", - "computed": true - }, - "disable_deployment": { - "name": "disable_deployment", - "type": "TypeBool", - "computed": true - }, - "enable": { - "name": "enable", - "type": "TypeBool", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "computed": true - }, - "load_balancer_hostname": { - "name": "load_balancer_hostname", - "type": "TypeString", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "computed": true - }, - "resize": { - "name": "resize", - "type": "TypeBool", - "computed": true - }, - "state": { - "name": "state", - "type": "TypeString", - "computed": true - } - } - }, - { - "name": "kube_version", - "type": "TypeString", + "name": "disable_deployment", + "type": "TypeBool", "computed": true }, { - "name": "ingress_secret", + "name": "name", "type": "TypeString", - "secure": true, "computed": true }, { - "name": "api_key_id", + "name": "alb_type", "type": "TypeString", - "description": "ID of APIkey", "computed": true }, { - "name": "workers", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "ingress_hostname", - "type": "TypeString", + "name": "enable", + "type": "TypeBool", "computed": true }, { - "name": "private_service_endpoint_url", + "name": "state", "type": "TypeString", "computed": true }, { - "name": "pod_subnet", + "name": "zone", "type": "TypeString", - "description": "Custom subnet CIDR to provide private IP addresses for pods", - "computed": true - }, - { - "name": "private_service_endpoint", - "type": "TypeBool", "computed": true - }, + } + ], + "ibm_container_vpc_cluster": [ { - "name": "service_subnet", + "name": "kube_version", "type": "TypeString", - "description": "Custom subnet CIDR to provide private IP addresses for services", "computed": true }, { - "name": "resource_group_id", + "name": "status", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "optional": true, + "description": "The status of the cluster master", "computed": true }, { @@ -19760,31 +19804,22 @@ "computed": true }, { - "name": "public_service_endpoint", - "type": "TypeBool", - "computed": true - }, - { - "name": "status", + "name": "public_service_endpoint_url", "type": "TypeString", - "description": "The status of the cluster master", "computed": true }, { - "name": "api_key_owner_email", + "name": "resource_crn", "type": "TypeString", - "description": "email id of the key owner", + "description": "The crn of the resource", "computed": true }, { - "name": "name", + "name": "cluster_name_id", "type": "TypeString", "description": "Name or id of the cluster", - "cloud_data_type": "cluster", "optional": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "deprecated": "use name instead" }, { "name": "worker_count", @@ -19793,35 +19828,17 @@ "computed": true }, { - "name": "resource_group_name", + "name": "resource_group_id", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "optional": true, "computed": true }, { - "name": "alb_type", - "type": "TypeString", - "default_value": "all", - "optional": true - }, - { - "name": "public_service_endpoint_url", + "name": "api_key_owner_name", "type": "TypeString", - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "image_security_enforcement", - "type": "TypeBool", - "description": "True if image security enforcement is enabled", + "description": "Name of the key owner", "computed": true }, { @@ -19831,9 +19848,9 @@ "computed": true }, { - "name": "resource_name", + "name": "service_subnet", "type": "TypeString", - "description": "The name of the resource", + "description": "Custom subnet CIDR to provide private IP addresses for services", "computed": true }, { @@ -19962,117 +19979,187 @@ } }, { - "name": "master_url", + "name": "api_key_owner_email", "type": "TypeString", + "description": "email id of the key owner", "computed": true - } - ], - "ibm_container_vpc_cluster_alb": [ + }, { - "name": "name", + "name": "resource_group_name", "type": "TypeString", + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "load_balancer_hostname", + "name": "workers", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "private_service_endpoint_url", "type": "TypeString", "computed": true }, { - "name": "state", + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "image_security_enforcement", + "type": "TypeBool", + "description": "True if image security enforcement is enabled", + "computed": true + }, + { + "name": "resource_name", "type": "TypeString", + "description": "The name of the resource", "computed": true }, { - "name": "resource_group_id", + "name": "pod_subnet", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "optional": true + "description": "Custom subnet CIDR to provide private IP addresses for pods", + "computed": true }, { - "name": "alb_id", + "name": "ingress_hostname", "type": "TypeString", - "description": "ALB ID", - "required": true + "computed": true }, { - "name": "disable_deployment", + "name": "private_service_endpoint", "type": "TypeBool", "computed": true }, { - "name": "enable", - "type": "TypeBool", + "name": "crn", + "type": "TypeString", + "description": "CRN of resource instance", + "cloud_data_type": "crn", "computed": true }, { - "name": "resize", - "type": "TypeBool", + "name": "master_url", + "type": "TypeString", "computed": true }, { - "name": "status", + "name": "albs", + "type": "TypeList", + "computed": true, + "elem": { + "alb_type": { + "name": "alb_type", + "type": "TypeString", + "computed": true + }, + "disable_deployment": { + "name": "disable_deployment", + "type": "TypeBool", + "computed": true + }, + "enable": { + "name": "enable", + "type": "TypeBool", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "computed": true + }, + "load_balancer_hostname": { + "name": "load_balancer_hostname", + "type": "TypeString", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "computed": true + }, + "resize": { + "name": "resize", + "type": "TypeBool", + "computed": true + }, + "state": { + "name": "state", + "type": "TypeString", + "computed": true + } + } + }, + { + "name": "alb_type", + "type": "TypeString", + "default_value": "all", + "optional": true + }, + { + "name": "ingress_secret", "type": "TypeString", + "secure": true, "computed": true }, { - "name": "zone", + "name": "public_service_endpoint", + "type": "TypeBool", + "computed": true + }, + { + "name": "health", "type": "TypeString", "computed": true }, { - "name": "alb_type", + "name": "api_key_id", "type": "TypeString", + "description": "ID of APIkey", "computed": true }, { - "name": "cluster", + "name": "resource_status", "type": "TypeString", + "description": "The status of the resource", "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name or id of the cluster", + "cloud_data_type": "cluster", + "optional": true, + "cloud_data_range": [ + "resolved_to:id" + ] } ], - "ibm_container_vpc_cluster_worker": [ + "ibm_container_vpc_cluster_alb": [ { - "name": "flavor", + "name": "state", "type": "TypeString", - "description": "flavor of the worker", "computed": true }, { - "name": "kube_version", + "name": "status", "type": "TypeString", - "description": "kube version of the worker", "computed": true }, { - "name": "pool_name", + "name": "zone", "type": "TypeString", - "description": "worker pool name", "computed": true }, - { - "name": "network_interfaces", - "type": "TypeList", - "computed": true, - "elem": { - "cidr": { - "name": "cidr", - "type": "TypeString", - "computed": true - }, - "ip_address": { - "name": "ip_address", - "type": "TypeString", - "computed": true - }, - "subnet_id": { - "name": "subnet_id", - "type": "TypeString", - "computed": true - } - } - }, { "name": "resource_group_id", "type": "TypeString", @@ -20081,17 +20168,67 @@ "optional": true }, { - "name": "host_pool_id", + "name": "alb_id", "type": "TypeString", - "description": "ID of the dedicated host pool this worker is associated with", + "description": "ALB ID", + "required": true + }, + { + "name": "enable", + "type": "TypeBool", "computed": true }, { - "name": "resource_controller_url", + "name": "load_balancer_hostname", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", "computed": true }, + { + "name": "name", + "type": "TypeString", + "computed": true + }, + { + "name": "resize", + "type": "TypeBool", + "computed": true + }, + { + "name": "alb_type", + "type": "TypeString", + "computed": true + }, + { + "name": "cluster", + "type": "TypeString", + "computed": true + }, + { + "name": "disable_deployment", + "type": "TypeBool", + "computed": true + } + ], + "ibm_container_vpc_cluster_worker": [ + { + "name": "state", + "type": "TypeString", + "description": "State of the worker", + "computed": true + }, + { + "name": "pool_id", + "type": "TypeString", + "description": "worker pool id", + "computed": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "optional": true + }, { "name": "cluster_name_id", "type": "TypeString", @@ -20103,15 +20240,27 @@ ] }, { - "name": "state", + "name": "flavor", "type": "TypeString", - "description": "State of the worker", + "description": "flavor of the worker", "computed": true }, { - "name": "pool_id", + "name": "kube_version", "type": "TypeString", - "description": "worker pool id", + "description": "kube version of the worker", + "computed": true + }, + { + "name": "host_pool_id", + "type": "TypeString", + "description": "ID of the dedicated host pool this worker is associated with", + "computed": true + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", "computed": true }, { @@ -20119,29 +20268,66 @@ "type": "TypeString", "description": "ID of the worker", "required": true + }, + { + "name": "pool_name", + "type": "TypeString", + "description": "worker pool name", + "computed": true + }, + { + "name": "network_interfaces", + "type": "TypeList", + "computed": true, + "elem": { + "cidr": { + "name": "cidr", + "type": "TypeString", + "computed": true + }, + "ip_address": { + "name": "ip_address", + "type": "TypeString", + "computed": true + }, + "subnet_id": { + "name": "subnet_id", + "type": "TypeString", + "computed": true + } + } } ], "ibm_container_vpc_cluster_worker_pool": [ { - "name": "operating_system", - "type": "TypeString", - "description": "The operating system of the workers in the worker pool", - "computed": true + "name": "zones", + "type": "TypeSet", + "computed": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "computed": true + }, + "subnet_id": { + "name": "subnet_id", + "type": "TypeString", + "computed": true + } + } }, { - "name": "isolation", - "type": "TypeString", - "computed": true + "name": "labels", + "type": "TypeMap", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "cluster", + "name": "flavor", "type": "TypeString", - "description": "Cluster name", - "cloud_data_type": "cluster", - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "computed": true }, { "name": "secondary_storage", @@ -20187,87 +20373,73 @@ "computed": true }, { - "name": "flavor", + "name": "isolation", "type": "TypeString", "computed": true }, { - "name": "zones", - "type": "TypeSet", - "computed": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "computed": true - }, - "subnet_id": { - "name": "subnet_id", - "type": "TypeString", - "computed": true - } - } + "name": "host_pool_id", + "type": "TypeString", + "computed": true }, { - "name": "labels", - "type": "TypeMap", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "autoscale_enabled", + "type": "TypeBool", + "description": "Autoscaling is enabled on the workerpool", + "computed": true }, { - "name": "kms_instance_id", + "name": "resource_group_id", "type": "TypeString", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "crk", + "name": "vpc_id", "type": "TypeString", "computed": true }, { - "name": "worker_pool_name", + "name": "crk", "type": "TypeString", - "description": "worker pool name", - "required": true + "computed": true }, { - "name": "resource_group_id", + "name": "kms_account_id", "type": "TypeString", - "cloud_data_type": "resource_group", "computed": true }, { - "name": "vpc_id", + "name": "cluster", "type": "TypeString", - "computed": true + "description": "Cluster name", + "cloud_data_type": "cluster", + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] }, { - "name": "host_pool_id", + "name": "worker_pool_name", "type": "TypeString", - "computed": true + "description": "worker pool name", + "required": true }, { - "name": "kms_account_id", + "name": "operating_system", "type": "TypeString", + "description": "The operating system of the workers in the worker pool", "computed": true }, { - "name": "autoscale_enabled", - "type": "TypeBool", - "description": "Autoscaling is enabled on the workerpool", + "name": "kms_instance_id", + "type": "TypeString", "computed": true } ], "ibm_container_vpc_worker_pool": [ { - "name": "kms_instance_id", - "type": "TypeString", - "computed": true - }, - { - "name": "crk", + "name": "flavor", "type": "TypeString", "computed": true }, @@ -20289,29 +20461,7 @@ } }, { - "name": "operating_system", - "type": "TypeString", - "description": "The operating system of the workers in the worker pool", - "computed": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "vpc_id", - "type": "TypeString", - "computed": true - }, - { - "name": "worker_count", - "type": "TypeInt", - "computed": true - }, - { - "name": "host_pool_id", + "name": "kms_instance_id", "type": "TypeString", "computed": true }, @@ -20321,6 +20471,12 @@ "description": "Autoscaling is enabled on the workerpool", "computed": true }, + { + "name": "cluster", + "type": "TypeString", + "description": "Cluster name", + "required": true + }, { "name": "worker_pool_name", "type": "TypeString", @@ -20336,15 +20492,25 @@ } }, { - "name": "kms_account_id", + "name": "vpc_id", "type": "TypeString", "computed": true }, { - "name": "cluster", + "name": "worker_count", + "type": "TypeInt", + "computed": true + }, + { + "name": "host_pool_id", "type": "TypeString", - "description": "Cluster name", - "required": true + "computed": true + }, + { + "name": "operating_system", + "type": "TypeString", + "description": "The operating system of the workers in the worker pool", + "computed": true }, { "name": "secondary_storage", @@ -20385,33 +20551,28 @@ } }, { - "name": "flavor", + "name": "resource_group_id", "type": "TypeString", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "isolation", + "name": "crk", "type": "TypeString", "computed": true - } - ], - "ibm_container_worker_pool": [ + }, { - "name": "autoscale_enabled", - "type": "TypeBool", - "description": "Autoscaling is enabled on the workerpool", + "name": "isolation", + "type": "TypeString", "computed": true }, { - "name": "cluster", + "name": "kms_account_id", "type": "TypeString", - "description": "Name or ID of the cluster", - "cloud_data_type": "cluster", - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] - }, + "computed": true + } + ], + "ibm_container_worker_pool": [ { "name": "machine_type", "type": "TypeString", @@ -20425,15 +20586,15 @@ "computed": true }, { - "name": "hardware", - "type": "TypeString", - "description": "Hardware type", + "name": "disk_encryption", + "type": "TypeBool", + "description": "worker node disk encrypted if set to true", "computed": true }, { - "name": "labels", - "type": "TypeMap", - "description": "list of labels to worker pool", + "name": "operating_system", + "type": "TypeString", + "description": "The operating system of the workers in the worker pool", "computed": true }, { @@ -20443,6 +20604,16 @@ "cloud_data_type": "resource_group", "computed": true }, + { + "name": "cluster", + "type": "TypeString", + "description": "Name or ID of the cluster", + "cloud_data_type": "cluster", + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] + }, { "name": "worker_pool_name", "type": "TypeString", @@ -20450,9 +20621,9 @@ "required": true }, { - "name": "disk_encryption", - "type": "TypeBool", - "description": "worker node disk encrypted if set to true", + "name": "hardware", + "type": "TypeString", + "description": "Hardware type", "computed": true }, { @@ -20494,103 +20665,33 @@ } }, { - "name": "operating_system", - "type": "TypeString", - "description": "The operating system of the workers in the worker pool", + "name": "labels", + "type": "TypeMap", + "description": "list of labels to worker pool", + "computed": true + }, + { + "name": "autoscale_enabled", + "type": "TypeBool", + "description": "Autoscaling is enabled on the workerpool", "computed": true } ], "ibm_cos_bucket": [ { - "name": "s3_endpoint_public", - "type": "TypeString", - "description": "Public endpoint for the COS bucket", - "computed": true - }, - { - "name": "activity_tracking", - "type": "TypeList", - "computed": true, - "elem": { - "activity_tracker_crn": { - "name": "activity_tracker_crn", - "type": "TypeString", - "description": "The instance of Activity Tracker that will receive object event data", - "computed": true - }, - "read_data_events": { - "name": "read_data_events", - "type": "TypeBool", - "description": "If set to true, all object read events will be sent to Activity Tracker.", - "computed": true - }, - "write_data_events": { - "name": "write_data_events", - "type": "TypeBool", - "description": "If set to true, all object write events will be sent to Activity Tracker.", - "computed": true - } - } - }, - { - "name": "metrics_monitoring", + "name": "object_versioning", "type": "TypeList", + "description": "Protect objects from accidental deletion or overwrites. Versioning allows you to keep multiple versions of an object protecting from unintentional data loss.", "computed": true, "elem": { - "metrics_monitoring_crn": { - "name": "metrics_monitoring_crn", - "type": "TypeString", - "description": "Instance of IBM Cloud Monitoring that will receive the bucket metrics.", - "computed": true - }, - "request_metrics_enabled": { - "name": "request_metrics_enabled", - "type": "TypeBool", - "description": "Request metrics will be sent to the monitoring service.", - "computed": true - }, - "usage_metrics_enabled": { - "name": "usage_metrics_enabled", + "enable": { + "name": "enable", "type": "TypeBool", - "description": "Usage metrics will be sent to the monitoring service.", + "description": "Enable or suspend the versioning for objects in the bucket", "computed": true } } }, - { - "name": "hard_quota", - "type": "TypeInt", - "description": "sets a maximum amount of storage (in bytes) available for a bucket", - "computed": true - }, - { - "name": "allowed_ip", - "type": "TypeList", - "description": "List of IPv4 or IPv6 addresses", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "website_endpoint", - "type": "TypeString", - "computed": true - }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private", - "default_value": "public", - "options": "public,private,direct", - "optional": true - }, - { - "name": "key_protect", - "type": "TypeString", - "description": "CRN of the key you want to use data at rest encryption", - "computed": true - }, { "name": "website_configuration", "type": "TypeList", @@ -20713,83 +20814,20 @@ } }, { - "name": "object_lock", - "type": "TypeBool", - "description": "Description", - "computed": true - }, - { - "name": "resource_instance_id", - "type": "TypeString", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:cloud-object-storage" - ] - }, - { - "name": "crn", - "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "single_site_location", - "type": "TypeString", - "computed": true - }, - { - "name": "s3_endpoint_private", - "type": "TypeString", - "description": "Private endpoint for the COS bucket", - "computed": true - }, - { - "name": "archive_rule", + "name": "abort_incomplete_multipart_upload_days", "type": "TypeList", - "description": "Enable configuration archive_rule (glacier/accelerated) to COS Bucket after a defined period of time", "computed": true, "elem": { - "days": { - "name": "days", + "days_after_initiation": { + "name": "days_after_initiation", "type": "TypeInt", + "description": "Specifies the number of days when the specific rule action takes effect.", "computed": true }, "enable": { "name": "enable", "type": "TypeBool", - "description": "Enable or disable an archive rule for a bucket", - "computed": true - }, - "rule_id": { - "name": "rule_id", - "type": "TypeString", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "computed": true - } - } - }, - { - "name": "noncurrent_version_expiration", - "type": "TypeList", - "description": "Enable configuration expire_rule to COS Bucket after a defined period of time", - "computed": true, - "elem": { - "enable": { - "name": "enable", - "type": "TypeBool", - "description": "Enable or disable an expire rule for a bucket", - "computed": true - }, - "noncurrent_days": { - "name": "noncurrent_days", - "type": "TypeInt", - "description": "Specifies the number of days when the specific rule action takes effect.", + "description": "Enable or disable rule for a bucket", "computed": true }, "prefix": { @@ -20801,47 +20839,24 @@ "rule_id": { "name": "rule_id", "type": "TypeString", - "description": "Unique identifier for the rule.Expire rules allow you to set a specific time frame after which objects are deleted. Set Rule ID for cos bucket", + "description": "Unique identifier for the rule. Rules allow you to set a specific time frame after which objects are deleted. Set Rule ID for cos bucket", "computed": true } } }, { - "name": "bucket_name", - "type": "TypeString", - "required": true - }, - { - "name": "bucket_type", + "name": "endpoint_type", "type": "TypeString", - "options": "single_site_location,region_location,cross_region_location", + "description": "public or private", + "default_value": "public", + "options": "public,private,direct", "optional": true }, { - "name": "satellite_location_id", + "name": "key_protect", "type": "TypeString", - "optional": true - }, - { - "name": "region_location", - "type": "TypeString", - "computed": true - }, - { - "name": "storage_class", - "type": "TypeString", - "computed": true - }, - { - "name": "cross_region_location", - "type": "TypeString", - "computed": true - }, - { - "name": "s3_endpoint_direct", - "type": "TypeString", - "description": "Direct endpoint for the COS bucket", - "computed": true + "description": "CRN of the key you want to use data at rest encryption", + "computed": true }, { "name": "retention_rule", @@ -20876,63 +20891,128 @@ } }, { - "name": "replication_rule", + "name": "website_endpoint", + "type": "TypeString", + "computed": true + }, + { + "name": "satellite_location_id", + "type": "TypeString", + "optional": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "CRN of resource instance", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "kms_key_crn", + "type": "TypeString", + "description": "CRN of the key you want to use data at rest encryption", + "computed": true + }, + { + "name": "single_site_location", + "type": "TypeString", + "computed": true + }, + { + "name": "storage_class", + "type": "TypeString", + "computed": true + }, + { + "name": "archive_rule", "type": "TypeList", - "description": "Replicate objects between buckets, replicate across source and destination. A container for replication rules can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.", + "description": "Enable configuration archive_rule (glacier/accelerated) to COS Bucket after a defined period of time", "computed": true, "elem": { - "deletemarker_replication_status": { - "name": "deletemarker_replication_status", - "type": "TypeBool", - "description": "Indicates whether to replicate delete markers. It should be either Enable or Disable", - "computed": true - }, - "destination_bucket_crn": { - "name": "destination_bucket_crn", - "type": "TypeString", - "description": "The Cloud Resource Name (CRN) of the bucket where you want COS to store the results", + "days": { + "name": "days", + "type": "TypeInt", "computed": true }, "enable": { "name": "enable", "type": "TypeBool", - "description": "Enable or disable an replication rule for a bucket", + "description": "Enable or disable an archive rule for a bucket", "computed": true }, - "prefix": { - "name": "prefix", + "rule_id": { + "name": "rule_id", "type": "TypeString", - "description": "The rule applies to any objects with keys that match this prefix", "computed": true }, - "priority": { - "name": "priority", - "type": "TypeInt", - "computed": true - }, - "rule_id": { - "name": "rule_id", + "type": { + "name": "type", "type": "TypeString", - "description": "A unique identifier for the rule. The maximum value is 255 characters.", "computed": true } } }, { - "name": "abort_incomplete_multipart_upload_days", + "name": "bucket_name", + "type": "TypeString", + "required": true + }, + { + "name": "s3_endpoint_public", + "type": "TypeString", + "description": "Public endpoint for the COS bucket", + "computed": true + }, + { + "name": "allowed_ip", "type": "TypeList", + "description": "List of IPv4 or IPv6 addresses", "computed": true, "elem": { - "days_after_initiation": { - "name": "days_after_initiation", - "type": "TypeInt", - "description": "Specifies the number of days when the specific rule action takes effect.", + "type": "TypeString" + } + }, + { + "name": "metrics_monitoring", + "type": "TypeList", + "computed": true, + "elem": { + "metrics_monitoring_crn": { + "name": "metrics_monitoring_crn", + "type": "TypeString", + "description": "Instance of IBM Cloud Monitoring that will receive the bucket metrics.", + "computed": true + }, + "request_metrics_enabled": { + "name": "request_metrics_enabled", + "type": "TypeBool", + "description": "Request metrics will be sent to the monitoring service.", "computed": true }, + "usage_metrics_enabled": { + "name": "usage_metrics_enabled", + "type": "TypeBool", + "description": "Usage metrics will be sent to the monitoring service.", + "computed": true + } + } + }, + { + "name": "noncurrent_version_expiration", + "type": "TypeList", + "description": "Enable configuration expire_rule to COS Bucket after a defined period of time", + "computed": true, + "elem": { "enable": { "name": "enable", "type": "TypeBool", - "description": "Enable or disable rule for a bucket", + "description": "Enable or disable an expire rule for a bucket", + "computed": true + }, + "noncurrent_days": { + "name": "noncurrent_days", + "type": "TypeInt", + "description": "Specifies the number of days when the specific rule action takes effect.", "computed": true }, "prefix": { @@ -20944,11 +21024,47 @@ "rule_id": { "name": "rule_id", "type": "TypeString", - "description": "Unique identifier for the rule. Rules allow you to set a specific time frame after which objects are deleted. Set Rule ID for cos bucket", + "description": "Unique identifier for the rule.Expire rules allow you to set a specific time frame after which objects are deleted. Set Rule ID for cos bucket", "computed": true } } }, + { + "name": "bucket_region", + "type": "TypeString", + "optional": true + }, + { + "name": "activity_tracking", + "type": "TypeList", + "computed": true, + "elem": { + "activity_tracker_crn": { + "name": "activity_tracker_crn", + "type": "TypeString", + "description": "The instance of Activity Tracker that will receive object event data", + "computed": true + }, + "read_data_events": { + "name": "read_data_events", + "type": "TypeBool", + "description": "If set to true, all object read events will be sent to Activity Tracker.", + "computed": true + }, + "write_data_events": { + "name": "write_data_events", + "type": "TypeBool", + "description": "If set to true, all object write events will be sent to Activity Tracker.", + "computed": true + } + } + }, + { + "name": "s3_endpoint_private", + "type": "TypeString", + "description": "Private endpoint for the COS bucket", + "computed": true + }, { "name": "expire_rule", "type": "TypeList", @@ -20993,30 +21109,11 @@ } }, { - "name": "bucket_region", - "type": "TypeString", - "optional": true - }, - { - "name": "kms_key_crn", - "type": "TypeString", - "description": "CRN of the key you want to use data at rest encryption", + "name": "object_lock", + "type": "TypeBool", + "description": "Description", "computed": true }, - { - "name": "object_versioning", - "type": "TypeList", - "description": "Protect objects from accidental deletion or overwrites. Versioning allows you to keep multiple versions of an object protecting from unintentional data loss.", - "computed": true, - "elem": { - "enable": { - "name": "enable", - "type": "TypeBool", - "description": "Enable or suspend the versioning for objects in the bucket", - "computed": true - } - } - }, { "name": "object_lock_configuration", "type": "TypeList", @@ -21063,46 +21160,105 @@ } } } - } - ], - "ibm_cos_bucket_object": [ + }, { - "name": "object_lock_mode", + "name": "region_location", "type": "TypeString", "computed": true }, { - "name": "bucket_location", + "name": "resource_instance_id", "type": "TypeString", - "description": "COS bucket location", - "required": true + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:cloud-object-storage" + ] }, { - "name": "content_length", - "type": "TypeInt", - "description": "COS object content length", + "name": "cross_region_location", + "type": "TypeString", "computed": true }, { - "name": "etag", + "name": "replication_rule", + "type": "TypeList", + "description": "Replicate objects between buckets, replicate across source and destination. A container for replication rules can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.", + "computed": true, + "elem": { + "deletemarker_replication_status": { + "name": "deletemarker_replication_status", + "type": "TypeBool", + "description": "Indicates whether to replicate delete markers. It should be either Enable or Disable", + "computed": true + }, + "destination_bucket_crn": { + "name": "destination_bucket_crn", + "type": "TypeString", + "description": "The Cloud Resource Name (CRN) of the bucket where you want COS to store the results", + "computed": true + }, + "enable": { + "name": "enable", + "type": "TypeBool", + "description": "Enable or disable an replication rule for a bucket", + "computed": true + }, + "prefix": { + "name": "prefix", + "type": "TypeString", + "description": "The rule applies to any objects with keys that match this prefix", + "computed": true + }, + "priority": { + "name": "priority", + "type": "TypeInt", + "computed": true + }, + "rule_id": { + "name": "rule_id", + "type": "TypeString", + "description": "A unique identifier for the rule. The maximum value is 255 characters.", + "computed": true + } + } + }, + { + "name": "bucket_type", "type": "TypeString", - "description": "COS object MD5 hexdigest", + "options": "single_site_location,region_location,cross_region_location", + "optional": true + }, + { + "name": "hard_quota", + "type": "TypeInt", + "description": "sets a maximum amount of storage (in bytes) available for a bucket", "computed": true }, { - "name": "version_id", + "name": "s3_endpoint_direct", "type": "TypeString", + "description": "Direct endpoint for the COS bucket", "computed": true - }, + } + ], + "ibm_cos_bucket_object": [ { - "name": "object_lock_retain_until_date", + "name": "body", "type": "TypeString", + "description": "COS object body", "computed": true }, { - "name": "bucket_crn", + "name": "bucket_location", "type": "TypeString", - "description": "COS bucket CRN", + "description": "COS bucket location", + "required": true + }, + { + "name": "key", + "type": "TypeString", + "description": "COS object key", "required": true }, { @@ -21111,20 +21267,19 @@ "computed": true }, { - "name": "website_redirect", + "name": "object_lock_mode", "type": "TypeString", "computed": true }, { - "name": "body", + "name": "object_lock_retain_until_date", "type": "TypeString", - "description": "COS object body", "computed": true }, { - "name": "content_type", - "type": "TypeString", - "description": "COS object content type", + "name": "content_length", + "type": "TypeInt", + "description": "COS object content length", "computed": true }, { @@ -21135,20 +21290,42 @@ "optional": true }, { - "name": "key", + "name": "etag", "type": "TypeString", - "description": "COS object key", + "description": "COS object MD5 hexdigest", + "computed": true + }, + { + "name": "object_sql_url", + "type": "TypeString", + "computed": true + }, + { + "name": "website_redirect", + "type": "TypeString", + "computed": true + }, + { + "name": "version_id", + "type": "TypeString", + "computed": true + }, + { + "name": "bucket_crn", + "type": "TypeString", + "description": "COS bucket CRN", "required": true }, { - "name": "last_modified", + "name": "content_type", "type": "TypeString", - "description": "COS object last modified date", + "description": "COS object content type", "computed": true }, { - "name": "object_sql_url", + "name": "last_modified", "type": "TypeString", + "description": "COS object last modified date", "computed": true } ], @@ -21219,38 +21396,6 @@ } ], "ibm_database": [ - { - "name": "service", - "type": "TypeString", - "description": "The name of the Cloud Database service", - "optional": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The resource instance status", - "computed": true - }, - { - "name": "version", - "type": "TypeString", - "description": "The database version to provision if specified", - "computed": true - }, - { - "name": "members_memory_allocation_mb", - "type": "TypeInt", - "description": "Memory allocation required for cluster", - "computed": true, - "deprecated": "This field is deprecated please use groups" - }, - { - "name": "members_disk_allocation_mb", - "type": "TypeInt", - "description": "Disk allocation required for cluster", - "computed": true, - "deprecated": "This field is deprecated please use groups" - }, { "name": "name", "type": "TypeString", @@ -21262,96 +21407,83 @@ ] }, { - "name": "location", + "name": "plan", "type": "TypeString", - "description": "The location or the region in which the Database instance exists", - "cloud_data_type": "region", - "optional": true + "description": "The plan type of the Database instance", + "computed": true }, { - "name": "guid", + "name": "status", "type": "TypeString", - "description": "Unique identifier of resource instance", + "description": "The resource instance status", "computed": true }, { - "name": "adminuser", + "name": "configuration_schema", "type": "TypeString", - "description": "The admin user id for the instance", + "description": "The configuration schema in JSON format", "computed": true }, { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true }, { - "name": "users", - "type": "TypeSet", - "computed": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "User name", - "computed": true - }, - "password": { - "name": "password", - "type": "TypeString", - "description": "User password", - "secure": true, - "computed": true - } - } + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", + "computed": true }, { - "name": "resource_status", + "name": "guid", "type": "TypeString", - "description": "The status of the resource", + "description": "Unique identifier of resource instance", "computed": true }, { - "name": "resource_group_name", + "name": "service", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true + "description": "The name of the Cloud Database service", + "optional": true }, { - "name": "resource_controller_url", + "name": "adminuser", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", + "description": "The admin user id for the instance", "computed": true }, { - "name": "plan", + "name": "adminpassword", "type": "TypeString", - "description": "The plan type of the Database instance", + "description": "The admin user id for the instance", + "secure": true, "computed": true }, { - "name": "allowlist", - "type": "TypeSet", + "name": "members_disk_allocation_mb", + "type": "TypeInt", + "description": "Disk allocation required for cluster", "computed": true, + "deprecated": "This field is deprecated please use groups" + }, + { + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "optional": true, "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "Allowlist IP address in CIDR notation", - "computed": true - }, - "description": { - "name": "description", - "type": "TypeString", - "description": "Unique allowlist description", - "computed": true - } + "type": "TypeString" } }, + { + "name": "members_memory_allocation_mb", + "type": "TypeInt", + "description": "Memory allocation required for cluster", + "computed": true, + "deprecated": "This field is deprecated please use groups" + }, { "name": "auto_scaling", "type": "TypeList", @@ -21530,48 +21662,23 @@ } }, { - "name": "resource_crn", + "name": "resource_status", "type": "TypeString", - "description": "The crn of the resource", + "description": "The status of the resource", "computed": true }, { - "name": "resource_group_id", + "name": "resource_group_name", "type": "TypeString", - "description": "The id of the resource group in which the Database instance is present", - "cloud_data_type": "resource_group", - "optional": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "description": "The resource group name in which resource is provisioned", + "computed": true }, { - "name": "adminpassword", + "name": "resource_controller_url", "type": "TypeString", - "description": "The admin user id for the instance", - "secure": true, + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", "computed": true }, - { - "name": "platform_options", - "type": "TypeSet", - "description": "Platform-specific options for this deployment.r", - "computed": true, - "elem": { - "backup_encryption_key_crn": { - "name": "backup_encryption_key_crn", - "type": "TypeString", - "description": "Backup encryption key crn", - "computed": true - }, - "disk_encryption_key_crn": { - "name": "disk_encryption_key_crn", - "type": "TypeString", - "description": "Disk encryption key crn", - "computed": true - } - } - }, { "name": "groups", "type": "TypeList", @@ -21721,19 +21828,107 @@ } }, { - "name": "configuration_schema", + "name": "resource_group_id", "type": "TypeString", - "description": "The configuration schema in JSON format", - "computed": true + "description": "The id of the resource group in which the Database instance is present", + "cloud_data_type": "resource_group", + "optional": true, + "cloud_data_range": [ + "resolved_to:id" + ] }, { - "name": "resource_name", + "name": "location", "type": "TypeString", - "description": "The name of the resource", + "description": "The location or the region in which the Database instance exists", + "cloud_data_type": "region", + "optional": true + }, + { + "name": "version", + "type": "TypeString", + "description": "The database version to provision if specified", "computed": true + }, + { + "name": "platform_options", + "type": "TypeSet", + "description": "Platform-specific options for this deployment.r", + "computed": true, + "elem": { + "backup_encryption_key_crn": { + "name": "backup_encryption_key_crn", + "type": "TypeString", + "description": "Backup encryption key crn", + "computed": true + }, + "disk_encryption_key_crn": { + "name": "disk_encryption_key_crn", + "type": "TypeString", + "description": "Disk encryption key crn", + "computed": true + } + } + }, + { + "name": "users", + "type": "TypeSet", + "computed": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "User name", + "computed": true + }, + "password": { + "name": "password", + "type": "TypeString", + "description": "User password", + "secure": true, + "computed": true + } + } + }, + { + "name": "allowlist", + "type": "TypeSet", + "computed": true, + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "Allowlist IP address in CIDR notation", + "computed": true + }, + "description": { + "name": "description", + "type": "TypeString", + "description": "Unique allowlist description", + "computed": true + } + } } ], "ibm_database_backup": [ + { + "name": "status", + "type": "TypeString", + "description": "The status of this backup.", + "computed": true + }, + { + "name": "is_downloadable", + "type": "TypeBool", + "description": "Is this backup available to download?.", + "computed": true + }, + { + "name": "is_restorable", + "type": "TypeBool", + "description": "Can this backup be used to restore an instance?.", + "computed": true + }, { "name": "download_link", "type": "TypeString", @@ -21763,24 +21958,6 @@ "type": "TypeString", "description": "The type of backup.", "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The status of this backup.", - "computed": true - }, - { - "name": "is_downloadable", - "type": "TypeBool", - "description": "Is this backup available to download?.", - "computed": true - }, - { - "name": "is_restorable", - "type": "TypeBool", - "description": "Can this backup be used to restore an instance?.", - "computed": true } ], "ibm_database_backups": [ @@ -21853,7 +22030,20 @@ ], "ibm_database_connection": [ { - "name": "stomp_ssl", + "name": "endpoint_type", + "type": "TypeString", + "description": "Endpoint Type. The endpoint must be enabled on the deployment before its connection information can be fetched.", + "required": true, + "options": "public, private, public-and-private" + }, + { + "name": "certificate_root", + "type": "TypeString", + "description": "Optional certificate root path to prepend certificate names. Certificates would be stored in this directory for use by other commands.", + "optional": true + }, + { + "name": "postgres", "type": "TypeList", "computed": true, "elem": { @@ -21916,6 +22106,12 @@ "type": "TypeString" } }, + "database": { + "name": "database", + "type": "TypeString", + "description": "Name of the database to use in the URI connection.", + "computed": true + }, "hosts": { "name": "hosts", "type": "TypeList", @@ -21971,7 +22167,7 @@ } }, { - "name": "grpc", + "name": "mysql", "type": "TypeList", "computed": true, "elem": { @@ -22034,6 +22230,12 @@ "type": "TypeString" } }, + "database": { + "name": "database", + "type": "TypeString", + "description": "Name of the database to use in the URI connection.", + "computed": true + }, "hosts": { "name": "hosts", "type": "TypeList", @@ -22089,7 +22291,7 @@ } }, { - "name": "secure", + "name": "emp", "type": "TypeList", "computed": true, "elem": { @@ -22119,15 +22321,21 @@ } } }, - "bundle": { - "name": "bundle", + "browser_accessible": { + "name": "browser_accessible", + "type": "TypeBool", + "description": "Indicates the address is accessible by browser.", + "computed": true + }, + "certificate": { + "name": "certificate", "type": "TypeList", "computed": true, "elem": { - "bundle_base64": { - "name": "bundle_base64", + "certificate_base64": { + "name": "certificate_base64", "type": "TypeString", - "description": "Base64 encoded version of the certificate bundle.", + "description": "Base64 encoded version of the certificate.", "computed": true }, "name": { @@ -22138,6 +22346,14 @@ } } }, + "composed": { + "name": "composed", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } + }, "hosts": { "name": "hosts", "type": "TypeList", @@ -22156,11 +22372,54 @@ "computed": true } } + }, + "path": { + "name": "path", + "type": "TypeString", + "description": "Path for URI connection.", + "computed": true + }, + "query_options": { + "name": "query_options", + "type": "TypeMap", + "description": "Query options to add to the URI connection.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "scheme": { + "name": "scheme", + "type": "TypeString", + "description": "Scheme/protocol for URI connection.", + "computed": true + }, + "ssl": { + "name": "ssl", + "type": "TypeBool", + "description": "Indicates ssl is required for the connection.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of connection being described.", + "computed": true } } }, { - "name": "amqps", + "name": "deployment_id", + "type": "TypeString", + "description": "Deployment ID.", + "cloud_data_type": "cloud-database", + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] + }, + { + "name": "mqtts", "type": "TypeList", "computed": true, "elem": { @@ -22278,7 +22537,7 @@ } }, { - "name": "mongodb", + "name": "analytics", "type": "TypeList", "computed": true, "elem": { @@ -22341,12 +22600,6 @@ "type": "TypeString" } }, - "database": { - "name": "database", - "type": "TypeString", - "description": "Name of the database to use in the URI connection.", - "computed": true - }, "hosts": { "name": "hosts", "type": "TypeList", @@ -22381,12 +22634,6 @@ "type": "TypeString" } }, - "replica_set": { - "name": "replica_set", - "type": "TypeString", - "description": "Name of the replica set to use in the URI connection.", - "computed": true - }, "scheme": { "name": "scheme", "type": "TypeString", @@ -22408,7 +22655,7 @@ } }, { - "name": "bi_connector", + "name": "ops_manager", "type": "TypeList", "computed": true, "elem": { @@ -22526,7 +22773,7 @@ } }, { - "name": "mysql", + "name": "secure", "type": "TypeList", "computed": true, "elem": { @@ -22556,21 +22803,15 @@ } } }, - "browser_accessible": { - "name": "browser_accessible", - "type": "TypeBool", - "description": "Indicates the address is accessible by browser.", - "computed": true - }, - "certificate": { - "name": "certificate", + "bundle": { + "name": "bundle", "type": "TypeList", "computed": true, "elem": { - "certificate_base64": { - "name": "certificate_base64", + "bundle_base64": { + "name": "bundle_base64", "type": "TypeString", - "description": "Base64 encoded version of the certificate.", + "description": "Base64 encoded version of the certificate bundle.", "computed": true }, "name": { @@ -22581,20 +22822,6 @@ } } }, - "composed": { - "name": "composed", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "database": { - "name": "database", - "type": "TypeString", - "description": "Name of the database to use in the URI connection.", - "computed": true - }, "hosts": { "name": "hosts", "type": "TypeList", @@ -22613,33 +22840,77 @@ "computed": true } } + } + } + }, + { + "name": "user_type", + "type": "TypeString", + "description": "User type.", + "required": true + }, + { + "name": "user_id", + "type": "TypeString", + "description": "User ID.", + "required": true + }, + { + "name": "cli", + "type": "TypeList", + "description": "CLI Connection.", + "computed": true, + "elem": { + "arguments": { + "name": "arguments", + "type": "TypeList", + "description": "Sets of arguments to call the executable with. The outer array corresponds to a possible way to call the CLI; the inner array is the set of arguments to use with that call.", + "computed": true, + "elem": { + "type": "TypeString" + } }, - "path": { - "name": "path", + "bin": { + "name": "bin", "type": "TypeString", - "description": "Path for URI connection.", + "description": "The name of the executable the CLI should run.", "computed": true }, - "query_options": { - "name": "query_options", - "type": "TypeMap", - "description": "Query options to add to the URI connection.", + "certificate": { + "name": "certificate", + "type": "TypeList", "computed": true, "elem": { - "type": "TypeString" + "certificate_base64": { + "name": "certificate_base64", + "type": "TypeString", + "description": "Base64 encoded version of the certificate.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name associated with the certificate.", + "computed": true + } } }, - "scheme": { - "name": "scheme", - "type": "TypeString", - "description": "Scheme/protocol for URI connection.", - "computed": true + "composed": { + "name": "composed", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } }, - "ssl": { - "name": "ssl", - "type": "TypeBool", - "description": "Indicates ssl is required for the connection.", - "computed": true + "environment": { + "name": "environment", + "type": "TypeMap", + "description": "A map of environment variables for a CLI connection.", + "computed": true, + "elem": { + "type": "TypeString" + } }, "type": { "name": "type", @@ -22650,24 +22921,7 @@ } }, { - "name": "deployment_id", - "type": "TypeString", - "description": "Deployment ID.", - "cloud_data_type": "cloud-database", - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] - }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "Endpoint Type. The endpoint must be enabled on the deployment before its connection information can be fetched.", - "required": true, - "options": "public, private, public-and-private" - }, - { - "name": "postgres", + "name": "https", "type": "TypeList", "computed": true, "elem": { @@ -22730,12 +22984,6 @@ "type": "TypeString" } }, - "database": { - "name": "database", - "type": "TypeString", - "description": "Name of the database to use in the URI connection.", - "computed": true - }, "hosts": { "name": "hosts", "type": "TypeList", @@ -22791,84 +23039,7 @@ } }, { - "name": "cli", - "type": "TypeList", - "description": "CLI Connection.", - "computed": true, - "elem": { - "arguments": { - "name": "arguments", - "type": "TypeList", - "description": "Sets of arguments to call the executable with. The outer array corresponds to a possible way to call the CLI; the inner array is the set of arguments to use with that call.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "bin": { - "name": "bin", - "type": "TypeString", - "description": "The name of the executable the CLI should run.", - "computed": true - }, - "certificate": { - "name": "certificate", - "type": "TypeList", - "computed": true, - "elem": { - "certificate_base64": { - "name": "certificate_base64", - "type": "TypeString", - "description": "Base64 encoded version of the certificate.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name associated with the certificate.", - "computed": true - } - } - }, - "composed": { - "name": "composed", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "environment": { - "name": "environment", - "type": "TypeMap", - "description": "A map of environment variables for a CLI connection.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of connection being described.", - "computed": true - } - } - }, - { - "name": "user_type", - "type": "TypeString", - "description": "User type.", - "required": true - }, - { - "name": "user_id", - "type": "TypeString", - "description": "User ID.", - "required": true - }, - { - "name": "https", + "name": "amqps", "type": "TypeList", "computed": true, "elem": { @@ -22986,7 +23157,7 @@ } }, { - "name": "ops_manager", + "name": "grpc", "type": "TypeList", "computed": true, "elem": { @@ -23104,7 +23275,7 @@ } }, { - "name": "emp", + "name": "rediss", "type": "TypeList", "computed": true, "elem": { @@ -23167,6 +23338,12 @@ "type": "TypeString" } }, + "database": { + "name": "database", + "type": "TypeInt", + "description": "Number of the database to use in the URI connection.", + "computed": true + }, "hosts": { "name": "hosts", "type": "TypeList", @@ -23222,13 +23399,7 @@ } }, { - "name": "certificate_root", - "type": "TypeString", - "description": "Optional certificate root path to prepend certificate names. Certificates would be stored in this directory for use by other commands.", - "optional": true - }, - { - "name": "rediss", + "name": "stomp_ssl", "type": "TypeList", "computed": true, "elem": { @@ -23291,12 +23462,6 @@ "type": "TypeString" } }, - "database": { - "name": "database", - "type": "TypeInt", - "description": "Number of the database to use in the URI connection.", - "computed": true - }, "hosts": { "name": "hosts", "type": "TypeList", @@ -23352,7 +23517,7 @@ } }, { - "name": "mqtts", + "name": "mongodb", "type": "TypeList", "computed": true, "elem": { @@ -23415,6 +23580,12 @@ "type": "TypeString" } }, + "database": { + "name": "database", + "type": "TypeString", + "description": "Name of the database to use in the URI connection.", + "computed": true + }, "hosts": { "name": "hosts", "type": "TypeList", @@ -23449,6 +23620,12 @@ "type": "TypeString" } }, + "replica_set": { + "name": "replica_set", + "type": "TypeString", + "description": "Name of the replica set to use in the URI connection.", + "computed": true + }, "scheme": { "name": "scheme", "type": "TypeString", @@ -23470,7 +23647,7 @@ } }, { - "name": "analytics", + "name": "bi_connector", "type": "TypeList", "computed": true, "elem": { @@ -23606,15 +23783,6 @@ } ], "ibm_database_remotes": [ - { - "name": "replicas", - "type": "TypeList", - "description": "Replica IDs, if applicable.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "deployment_id", "type": "TypeString", @@ -23630,6 +23798,15 @@ "type": "TypeString", "description": "Leader ID, if applicable.", "computed": true + }, + { + "name": "replicas", + "type": "TypeList", + "description": "Replica IDs, if applicable.", + "computed": true, + "elem": { + "type": "TypeString" + } } ], "ibm_database_task": [ @@ -23727,10 +23904,16 @@ ], "ibm_dl_export_route_filter": [ { - "name": "ex_filter_id", + "name": "prefix", "type": "TypeString", - "description": "Export route Filter identifier", - "required": true + "description": "IP prefix representing an address and mask length of the prefix-set", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The date and time of the export route filter was last updated", + "computed": true }, { "name": "action", @@ -23745,27 +23928,27 @@ "computed": true }, { - "name": "le", + "name": "ge", "type": "TypeInt", - "description": "The maximum matching length of the prefix-set", + "description": "The minimum matching length of the prefix-set", "computed": true }, { - "name": "prefix", - "type": "TypeString", - "description": "IP prefix representing an address and mask length of the prefix-set", + "name": "le", + "type": "TypeInt", + "description": "The maximum matching length of the prefix-set", "computed": true }, { - "name": "updated_at", + "name": "gateway", "type": "TypeString", - "description": "The date and time of the export route filter was last updated", - "computed": true + "description": "The Direct Link gateway identifier", + "required": true }, { - "name": "gateway", + "name": "ex_filter_id", "type": "TypeString", - "description": "The Direct Link gateway identifier", + "description": "Export route Filter identifier", "required": true }, { @@ -23773,12 +23956,6 @@ "type": "TypeString", "description": "Identifier of the next route filter to be considered", "computed": true - }, - { - "name": "ge", - "type": "TypeInt", - "description": "The minimum matching length of the prefix-set", - "computed": true } ], "ibm_dl_export_route_filters": [ @@ -23847,6 +24024,36 @@ } ], "ibm_dl_gateway": [ + { + "name": "bfd_status_updated_at", + "type": "TypeString", + "description": "BFD Status", + "computed": true + }, + { + "name": "bgp_asn", + "type": "TypeInt", + "description": "BGP ASN", + "computed": true + }, + { + "name": "default_import_route_filter", + "type": "TypeString", + "description": "The default directional route filter action that applies to routes that do not match any directional route filters", + "computed": true + }, + { + "name": "bgp_base_cidr", + "type": "TypeString", + "description": "BGP base CIDR", + "computed": true + }, + { + "name": "bgp_ibm_cidr", + "type": "TypeString", + "description": "BGP IBM CIDR", + "computed": true + }, { "name": "global", "type": "TypeBool", @@ -23854,112 +24061,120 @@ "computed": true }, { - "name": "type", + "name": "bfd_multiplier", + "type": "TypeInt", + "description": "BFD Multiplier", + "computed": true + }, + { + "name": "location_name", "type": "TypeString", - "description": "Gateway type", + "description": "Gateway location", "computed": true }, { - "name": "as_prepends", + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this gateway", + "required": true + }, + { + "name": "gateway_vcs", "type": "TypeList", - "description": "List of AS Prepend configuration information", + "description": "Collection of direct link gateway virtual connections", "computed": true, "elem": { "created_at": { "name": "created_at", "type": "TypeString", - "description": "The date and time AS Prepend was created", + "description": "The date and time resource was created", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The date and time AS Prepend was created", + "description": "The unique identifier for this virtual connection", "computed": true }, - "length": { - "name": "length", - "type": "TypeInt", - "description": "Number of times the ASN to appended to the AS Path", + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this virtual connection. Virtualconnection names are unique within a gateway. This is the name of thevirtual connection itself, the network being connected may have its ownname attribute", "computed": true }, - "policy": { - "name": "policy", + "network_account": { + "name": "network_account", "type": "TypeString", - "description": "Route type this AS Prepend applies to", + "description": "For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network.", "computed": true }, - "prefix": { - "name": "prefix", + "network_id": { + "name": "network_id", "type": "TypeString", - "description": "Comma separated list of prefixes this AS Prepend applies to. Maximum of 10 prefixes. If not specified, this AS Prepend applies to all prefixes.", + "description": "Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections.", "computed": true }, - "specific_prefixes": { - "name": "specific_prefixes", - "type": "TypeList", - "description": "Array of prefixes this AS Prepend applies to", - "computed": true, - "elem": { - "type": "TypeString" - } + "status": { + "name": "status", + "type": "TypeString", + "description": "Status of the virtual connection.Possible values: [pending,attached,approval_pending,rejected,expired,deleting,detached_by_network_pending,detached_by_network]", + "computed": true }, - "updated_at": { - "name": "updated_at", + "type": { + "name": "type", "type": "TypeString", - "description": "The date and time AS Prepend was updated", + "description": "The type of virtual connection. (classic,vpc)", "computed": true } } }, { - "name": "bgp_base_cidr", - "type": "TypeString", - "description": "BGP base CIDR", + "name": "bfd_interval", + "type": "TypeInt", + "description": "BFD Interval", "computed": true }, { - "name": "created_at", + "name": "bfd_status", "type": "TypeString", - "description": "The date and time resource was created", + "description": "BFD Status", "computed": true }, { - "name": "bfd_status", + "name": "change_request", "type": "TypeString", - "description": "BFD Status", + "description": "Changes pending approval for provider managed Direct Link Connect gateways", "computed": true }, { - "name": "bgp_ibm_cidr", - "type": "TypeString", - "description": "BGP IBM CIDR", + "name": "metered", + "type": "TypeBool", + "description": "Metered billing option", "computed": true }, { - "name": "port", + "name": "operational_status", "type": "TypeString", - "description": "Gateway port", + "description": "Gateway operational status", "computed": true }, { - "name": "link_status_updated_at", + "name": "resource_group", "type": "TypeString", - "description": "Date and time Link status was updated", - "optional": true, + "description": "Gateway resource group", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "metered", - "type": "TypeBool", - "description": "Metered billing option", + "name": "created_at", + "type": "TypeString", + "description": "The date and time resource was created", "computed": true }, { - "name": "resource_group", - "type": "TypeString", - "description": "Gateway resource group", - "cloud_data_type": "resource_group", + "name": "speed_mbps", + "type": "TypeInt", + "description": "Gateway speed in megabits per second", "computed": true }, { @@ -23969,59 +24184,93 @@ "computed": true }, { - "name": "gateway_vcs", + "name": "as_prepends", "type": "TypeList", - "description": "Collection of direct link gateway virtual connections", + "description": "List of AS Prepend configuration information", "computed": true, "elem": { "created_at": { "name": "created_at", "type": "TypeString", - "description": "The date and time resource was created", + "description": "The date and time AS Prepend was created", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this virtual connection", + "description": "The date and time AS Prepend was created", "computed": true }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this virtual connection. Virtualconnection names are unique within a gateway. This is the name of thevirtual connection itself, the network being connected may have its ownname attribute", + "length": { + "name": "length", + "type": "TypeInt", + "description": "Number of times the ASN to appended to the AS Path", "computed": true }, - "network_account": { - "name": "network_account", + "policy": { + "name": "policy", "type": "TypeString", - "description": "For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network.", + "description": "Route type this AS Prepend applies to", "computed": true }, - "network_id": { - "name": "network_id", + "prefix": { + "name": "prefix", "type": "TypeString", - "description": "Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections.", + "description": "Comma separated list of prefixes this AS Prepend applies to. Maximum of 10 prefixes. If not specified, this AS Prepend applies to all prefixes.", "computed": true }, - "status": { - "name": "status", - "type": "TypeString", - "description": "Status of the virtual connection.Possible values: [pending,attached,approval_pending,rejected,expired,deleting,detached_by_network_pending,detached_by_network]", - "computed": true + "specific_prefixes": { + "name": "specific_prefixes", + "type": "TypeList", + "description": "Array of prefixes this AS Prepend applies to", + "computed": true, + "elem": { + "type": "TypeString" + } }, - "type": { - "name": "type", + "updated_at": { + "name": "updated_at", "type": "TypeString", - "description": "The type of virtual connection. (classic,vpc)", + "description": "The date and time AS Prepend was updated", "computed": true } } }, { - "name": "bfd_multiplier", + "name": "default_export_route_filter", + "type": "TypeString", + "description": "The default directional route filter action that applies to routes that do not match any directional route filters", + "computed": true + }, + { + "name": "bgp_cer_cidr", + "type": "TypeString", + "description": "BGP customer edge router CIDR", + "computed": true + }, + { + "name": "bgp_ibm_asn", "type": "TypeInt", - "description": "BFD Multiplier", + "description": "IBM BGP ASN", + "computed": true + }, + { + "name": "bgp_status_updated_at", + "type": "TypeString", + "description": "Date and time BGP status was updated", + "optional": true, + "computed": true + }, + { + "name": "completion_notice_reject_reason", + "type": "TypeString", + "description": "Reason for completion notice rejection", + "computed": true + }, + { + "name": "cross_connect_router", + "type": "TypeString", + "description": "Cross connect router", "computed": true }, { @@ -24031,15 +24280,15 @@ "computed": true }, { - "name": "operational_status", + "name": "location_display_name", "type": "TypeString", - "description": "Gateway operational status", + "description": "Gateway location long name", "computed": true }, { - "name": "bgp_ibm_asn", - "type": "TypeInt", - "description": "IBM BGP ASN", + "name": "provider_api_managed", + "type": "TypeBool", + "description": "Indicates whether gateway was created through a provider portal", "computed": true }, { @@ -24129,34 +24378,9 @@ } }, { - "name": "location_display_name", - "type": "TypeString", - "description": "Gateway location long name", - "computed": true - }, - { - "name": "provider_api_managed", - "type": "TypeBool", - "description": "Indicates whether gateway was created through a provider portal", - "computed": true - }, - { - "name": "bfd_status_updated_at", - "type": "TypeString", - "description": "BFD Status", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The CRN (Cloud Resource Name) of this gateway", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "cross_connect_router", + "name": "type", "type": "TypeString", - "description": "Cross connect router", + "description": "Gateway type", "computed": true }, { @@ -24165,37 +24389,6 @@ "description": "BGP MD5 authentication key", "computed": true }, - { - "name": "change_request", - "type": "TypeString", - "description": "Changes pending approval for provider managed Direct Link Connect gateways", - "computed": true - }, - { - "name": "completion_notice_reject_reason", - "type": "TypeString", - "description": "Reason for completion notice rejection", - "computed": true - }, - { - "name": "bfd_interval", - "type": "TypeInt", - "description": "BFD Interval", - "computed": true - }, - { - "name": "bgp_cer_cidr", - "type": "TypeString", - "description": "BGP customer edge router CIDR", - "computed": true - }, - { - "name": "bgp_status_updated_at", - "type": "TypeString", - "description": "Date and time BGP status was updated", - "optional": true, - "computed": true - }, { "name": "connection_mode", "type": "TypeString", @@ -24203,39 +24396,23 @@ "computed": true }, { - "name": "speed_mbps", - "type": "TypeInt", - "description": "Gateway speed in megabits per second", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this gateway", - "required": true - }, - { - "name": "default_export_route_filter", + "name": "crn", "type": "TypeString", - "description": "The default directional route filter action that applies to routes that do not match any directional route filters", + "description": "The CRN (Cloud Resource Name) of this gateway", + "cloud_data_type": "crn", "computed": true }, { - "name": "default_import_route_filter", + "name": "link_status_updated_at", "type": "TypeString", - "description": "The default directional route filter action that applies to routes that do not match any directional route filters", - "computed": true - }, - { - "name": "bgp_asn", - "type": "TypeInt", - "description": "BGP ASN", + "description": "Date and time Link status was updated", + "optional": true, "computed": true }, { - "name": "location_name", + "name": "port", "type": "TypeString", - "description": "Gateway location", + "description": "Gateway port", "computed": true } ], @@ -24596,16 +24773,21 @@ ], "ibm_dl_import_route_filter": [ { - "name": "gateway", + "name": "prefix", "type": "TypeString", - "description": "The Direct Link gateway identifier", - "immutable": true, - "required": true + "description": "IP prefix representing an address and mask length of the prefix-set", + "computed": true }, { - "name": "im_filter_id", + "name": "updated_at", "type": "TypeString", - "description": "Import route Filter identifier", + "description": "The date and time of the import route filter was last updated", + "computed": true + }, + { + "name": "gateway", + "type": "TypeString", + "description": "The Direct Link gateway identifier", "immutable": true, "required": true }, @@ -24615,6 +24797,12 @@ "description": "Identifier of the next route filter to be considered", "computed": true }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time of the import route filter was created", + "computed": true + }, { "name": "le", "type": "TypeInt", @@ -24622,10 +24810,11 @@ "computed": true }, { - "name": "updated_at", + "name": "im_filter_id", "type": "TypeString", - "description": "The date and time of the import route filter was last updated", - "computed": true + "description": "Import route Filter identifier", + "immutable": true, + "required": true }, { "name": "action", @@ -24633,23 +24822,11 @@ "description": "Determines whether the routes that match the prefix-set will be permit or deny", "computed": true }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time of the import route filter was created", - "computed": true - }, { "name": "ge", "type": "TypeInt", "description": "The minimum matching length of the prefix-set", "computed": true - }, - { - "name": "prefix", - "type": "TypeString", - "description": "IP prefix representing an address and mask length of the prefix-set", - "computed": true } ], "ibm_dl_import_route_filters": [ @@ -24844,6 +25021,21 @@ } ], "ibm_dl_port": [ + { + "name": "supported_link_speeds", + "type": "TypeList", + "description": "Port's supported speeds in megabits per second", + "computed": true, + "elem": { + "type": "TypeInt" + } + }, + { + "name": "port_id", + "type": "TypeString", + "description": "Port ID", + "required": true + }, { "name": "direct_link_count", "type": "TypeInt", @@ -24873,21 +25065,6 @@ "type": "TypeString", "description": "Port's provider name", "computed": true - }, - { - "name": "supported_link_speeds", - "type": "TypeList", - "description": "Port's supported speeds in megabits per second", - "computed": true, - "elem": { - "type": "TypeInt" - } - }, - { - "name": "port_id", - "type": "TypeString", - "description": "Port ID", - "required": true } ], "ibm_dl_ports": [ @@ -25119,6 +25296,20 @@ } ], "ibm_dl_route_report": [ + { + "name": "gateway_routes", + "type": "TypeList", + "description": "List of gateway routes", + "computed": true, + "elem": { + "prefix": { + "name": "prefix", + "type": "TypeString", + "description": "Prefix for gateway routes", + "computed": true + } + } + }, { "name": "virtual_connection_routes", "type": "TypeList", @@ -25171,18 +25362,6 @@ } } }, - { - "name": "status", - "type": "TypeString", - "description": "Route report status", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time report was created", - "computed": true - }, { "name": "updated_at", "type": "TypeString", @@ -25196,53 +25375,6 @@ "immutable": true, "required": true }, - { - "name": "gateway_routes", - "type": "TypeList", - "description": "List of gateway routes", - "computed": true, - "elem": { - "prefix": { - "name": "prefix", - "type": "TypeString", - "description": "Prefix for gateway routes", - "computed": true - } - } - }, - { - "name": "on_prem_routes", - "type": "TypeList", - "description": "List of onprem routes", - "computed": true, - "elem": { - "as_path": { - "name": "as_path", - "type": "TypeString", - "description": "The BGP AS path of the route", - "computed": true - }, - "next_hop": { - "name": "next_hop", - "type": "TypeString", - "description": "Next Hop address", - "computed": true - }, - "prefix": { - "name": "prefix", - "type": "TypeString", - "description": "Prefix for onprem routes", - "computed": true - } - } - }, - { - "name": "gateway", - "type": "TypeString", - "description": "The Direct Link gateway identifier", - "immutable": true, - "required": true - }, { "name": "advertised_routes", "type": "TypeList", @@ -25296,9 +25428,19 @@ } } } - } - ], - "ibm_dl_route_reports": [ + }, + { + "name": "status", + "type": "TypeString", + "description": "Route report status", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time report was created", + "computed": true + }, { "name": "gateway", "type": "TypeString", @@ -25306,6 +25448,34 @@ "immutable": true, "required": true }, + { + "name": "on_prem_routes", + "type": "TypeList", + "description": "List of onprem routes", + "computed": true, + "elem": { + "as_path": { + "name": "as_path", + "type": "TypeString", + "description": "The BGP AS path of the route", + "computed": true + }, + "next_hop": { + "name": "next_hop", + "type": "TypeString", + "description": "Next Hop address", + "computed": true + }, + "prefix": { + "name": "prefix", + "type": "TypeString", + "description": "Prefix for onprem routes", + "computed": true + } + } + } + ], + "ibm_dl_route_reports": [ { "name": "route_reports", "type": "TypeList", @@ -25483,9 +25653,23 @@ } } } + }, + { + "name": "gateway", + "type": "TypeString", + "description": "The Direct Link gateway identifier", + "immutable": true, + "required": true } ], "ibm_dl_routers": [ + { + "name": "offering_type", + "type": "TypeString", + "description": "The Direct Link offering type", + "required": true, + "options": "dedicated" + }, { "name": "location_name", "type": "TypeString", @@ -25520,16 +25704,19 @@ "computed": true } } - }, - { - "name": "offering_type", - "type": "TypeString", - "description": "The Direct Link offering type", - "required": true, - "options": "dedicated" } ], "ibm_dns_custom_resolver_forwarding_rules": [ + { + "name": "instance_id", + "type": "TypeString", + "description": "The unique identifier of a service instance.", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:dns-svcs" + ] + }, { "name": "resolver_id", "type": "TypeString", @@ -25575,16 +25762,6 @@ "computed": true } } - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The unique identifier of a service instance.", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:dns-svcs" - ] } ], "ibm_dns_custom_resolver_secondary_zones": [ @@ -25777,6 +25954,16 @@ } ], "ibm_dns_glb_monitors": [ + { + "name": "instance_id", + "type": "TypeString", + "description": "The GUID of the private DNS.", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:dns-svcs" + ] + }, { "name": "dns_glb_monitors", "type": "TypeList", @@ -25874,16 +26061,6 @@ "computed": true } } - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The GUID of the private DNS.", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:dns-svcs" - ] } ], "ibm_dns_glb_pools": [ @@ -26138,16 +26315,6 @@ } ], "ibm_dns_permitted_networks": [ - { - "name": "instance_id", - "type": "TypeString", - "description": "Instance ID", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:dns-svcs" - ] - }, { "name": "zone_id", "type": "TypeString", @@ -26209,9 +26376,7 @@ "computed": true } } - } - ], - "ibm_dns_resource_records": [ + }, { "name": "instance_id", "type": "TypeString", @@ -26221,13 +26386,9 @@ "cloud_data_range": [ "service:dns-svcs" ] - }, - { - "name": "zone_id", - "type": "TypeString", - "description": "Zone Id", - "required": true - }, + } + ], + "ibm_dns_resource_records": [ { "name": "dns_resource_records", "type": "TypeList", @@ -26265,9 +26426,30 @@ "computed": true } } + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "Instance ID", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:dns-svcs" + ] + }, + { + "name": "zone_id", + "type": "TypeString", + "description": "Zone Id", + "required": true } ], "ibm_dns_secondary": [ + { + "name": "status_text", + "type": "TypeString", + "computed": true + }, { "name": "zone_name", "type": "TypeString", @@ -26288,11 +26470,6 @@ "name": "status_id", "type": "TypeInt", "computed": true - }, - { - "name": "status_text", - "type": "TypeString", - "computed": true } ], "ibm_dns_zones": [ @@ -26365,15 +26542,15 @@ ], "ibm_en_destination_android": [ { - "name": "name", + "name": "instance_guid", "type": "TypeString", - "description": "Destination name.", - "computed": true + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true }, { - "name": "type", - "type": "TypeString", - "description": "Destination type push_android.", + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", "computed": true }, { @@ -26386,16 +26563,16 @@ } }, { - "name": "instance_guid", + "name": "destination_id", "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "description": "Unique identifier for Destination.", "required": true }, { - "name": "destination_id", + "name": "name", "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true + "description": "Destination name.", + "computed": true }, { "name": "description", @@ -26403,6 +26580,12 @@ "description": "Destination description.", "computed": true }, + { + "name": "type", + "type": "TypeString", + "description": "Destination type push_android.", + "computed": true + }, { "name": "config", "type": "TypeList", @@ -26447,15 +26630,24 @@ "type": "TypeString", "description": "Last updated time.", "computed": true - }, + } + ], + "ibm_en_destination_ce": [ { "name": "subscription_count", "type": "TypeInt", "description": "Number of subscriptions.", "computed": true - } - ], - "ibm_en_destination_ce": [ + }, + { + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "instance_guid", "type": "TypeString", @@ -26463,15 +26655,9 @@ "required": true }, { - "name": "name", - "type": "TypeString", - "description": "Destination name.", - "computed": true - }, - { - "name": "description", + "name": "type", "type": "TypeString", - "description": "Destination description.", + "description": "Destination type Webhook.", "computed": true }, { @@ -26520,20 +26706,11 @@ } }, { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", "computed": true }, - { - "name": "subscription_names", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "destination_id", "type": "TypeString", @@ -26541,25 +26718,19 @@ "required": true }, { - "name": "type", + "name": "name", "type": "TypeString", - "description": "Destination type Webhook.", + "description": "Destination name.", "computed": true }, { - "name": "updated_at", + "name": "description", "type": "TypeString", - "description": "Last updated time.", + "description": "Destination description.", "computed": true } ], "ibm_en_destination_cf": [ - { - "name": "name", - "type": "TypeString", - "description": "Destination name.", - "computed": true - }, { "name": "subscription_names", "type": "TypeList", @@ -26569,36 +26740,18 @@ "type": "TypeString" } }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, { "name": "instance_guid", "type": "TypeString", "description": "Unique identifier for IBM Cloud Event Notifications instance.", "required": true }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true - }, { "name": "description", "type": "TypeString", "description": "Destination description.", "computed": true }, - { - "name": "type", - "type": "TypeString", - "description": "Destination type ibmcf.", - "computed": true - }, { "name": "config", "type": "TypeList", @@ -26631,9 +26784,45 @@ "type": "TypeString", "description": "Last updated time.", "computed": true + }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Unique identifier for Destination.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Destination name.", + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Destination type ibmcf.", + "computed": true } ], "ibm_en_destination_chrome": [ + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Destination type push_chrome.", + "computed": true + }, { "name": "config", "type": "TypeList", @@ -26706,26 +26895,35 @@ "type": "TypeString", "description": "Destination description.", "computed": true - }, + } + ], + "ibm_en_destination_cos": [ { - "name": "type", - "type": "TypeString", - "description": "Destination type push_chrome.", + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", "computed": true }, { - "name": "updated_at", + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "description", "type": "TypeString", - "description": "Last updated time.", + "description": "Destination description.", "computed": true - } - ], - "ibm_en_destination_cos": [ + }, { - "name": "destination_id", + "name": "type", "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true + "description": "Destination type ibmcf.", + "computed": true }, { "name": "name", @@ -26772,21 +26970,32 @@ "description": "Last updated time.", "computed": true }, - { - "name": "subscription_names", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "instance_guid", "type": "TypeString", "description": "Unique identifier for IBM Cloud Event Notifications instance.", "required": true }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Unique identifier for Destination.", + "required": true + } + ], + "ibm_en_destination_custom_email": [ + { + "name": "destination_id", + "type": "TypeString", + "description": "Unique identifier for Destination.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Destination name.", + "computed": true + }, { "name": "description", "type": "TypeString", @@ -26794,19 +27003,17 @@ "computed": true }, { - "name": "type", + "name": "updated_at", "type": "TypeString", - "description": "Destination type ibmcf.", + "description": "Last updated time.", "computed": true }, { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - } - ], - "ibm_en_destination_firefox": [ + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true + }, { "name": "config", "type": "TypeList", @@ -26818,26 +27025,20 @@ "type": "TypeList", "computed": true, "elem": { - "pre_prod": { - "name": "pre_prod", - "type": "TypeBool", - "description": "The flag to enable destination as pre-prod or prod", - "computed": true - }, - "website_url": { - "name": "website_url", + "domain": { + "name": "domain", "type": "TypeString", - "description": "The website url", - "optional": true + "description": "The custom doamin", + "computed": true } } } } }, { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", "computed": true }, { @@ -26850,10 +27051,18 @@ } }, { - "name": "name", + "name": "type", "type": "TypeString", - "description": "Destination name.", + "description": "Destination type slack.", "computed": true + } + ], + "ibm_en_destination_firefox": [ + { + "name": "destination_id", + "type": "TypeString", + "description": "Unique identifier for Destination.", + "required": true }, { "name": "description", @@ -26868,10 +27077,13 @@ "computed": true }, { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "instance_guid", @@ -26880,13 +27092,11 @@ "required": true }, { - "name": "destination_id", + "name": "name", "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true - } - ], - "ibm_en_destination_huawei": [ + "description": "Destination name.", + "computed": true + }, { "name": "config", "type": "TypeList", @@ -26898,23 +27108,17 @@ "type": "TypeList", "computed": true, "elem": { - "client_id": { - "name": "client_id", - "type": "TypeString", - "description": "ClientID for the Huawei account oauth.", - "computed": true - }, - "client_secret": { - "name": "client_secret", - "type": "TypeString", - "description": "ClientSecret for the Huawei account oauth", - "computed": true - }, "pre_prod": { "name": "pre_prod", "type": "TypeBool", "description": "The flag to enable destination as pre-prod or prod", "computed": true + }, + "website_url": { + "name": "website_url", + "type": "TypeString", + "description": "The website url", + "optional": true } } } @@ -26927,17 +27131,13 @@ "computed": true }, { - "name": "destination_id", - "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Destination name.", + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", "computed": true - }, + } + ], + "ibm_en_destination_huawei": [ { "name": "description", "type": "TypeString", @@ -26951,9 +27151,42 @@ "computed": true }, { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", + "name": "config", + "type": "TypeList", + "description": "Payload describing a destination configuration.", + "computed": true, + "elem": { + "params": { + "name": "params", + "type": "TypeList", + "computed": true, + "elem": { + "client_id": { + "name": "client_id", + "type": "TypeString", + "description": "ClientID for the Huawei account oauth.", + "computed": true + }, + "client_secret": { + "name": "client_secret", + "type": "TypeString", + "description": "ClientSecret for the Huawei account oauth", + "computed": true + }, + "pre_prod": { + "name": "pre_prod", + "type": "TypeBool", + "description": "The flag to enable destination as pre-prod or prod", + "computed": true + } + } + } + } + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", "computed": true }, { @@ -26970,19 +27203,31 @@ "type": "TypeString", "description": "Unique identifier for IBM Cloud Event Notifications instance.", "required": true - } - ], - "ibm_en_destination_ios": [ + }, { - "name": "certificate", + "name": "destination_id", "type": "TypeString", - "description": "The Certificate File.", - "computed": true + "description": "Unique identifier for Destination.", + "required": true }, { - "name": "updated_at", + "name": "name", "type": "TypeString", - "description": "Last updated time.", + "description": "Destination name.", + "computed": true + }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + } + ], + "ibm_en_destination_ios": [ + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", "computed": true }, { @@ -26995,21 +27240,21 @@ } }, { - "name": "description", + "name": "name", "type": "TypeString", - "description": "Destination description.", + "description": "Destination name.", "computed": true }, { - "name": "destination_id", + "name": "certificate_content_type", "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true + "description": "The Certificate Content Type to be set p8/p12.", + "computed": true }, { - "name": "name", + "name": "certificate", "type": "TypeString", - "description": "Destination name.", + "description": "The Certificate File.", "computed": true }, { @@ -27018,12 +27263,6 @@ "description": "Destination type push_ios.", "computed": true }, - { - "name": "certificate_content_type", - "type": "TypeString", - "description": "The Certificate Content Type to be set p8/p12.", - "computed": true - }, { "name": "config", "type": "TypeList", @@ -27082,9 +27321,9 @@ } }, { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", "computed": true }, { @@ -27092,13 +27331,25 @@ "type": "TypeString", "description": "Unique identifier for IBM Cloud Event Notifications instance.", "required": true + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Unique identifier for Destination.", + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Destination description.", + "computed": true } ], "ibm_en_destination_msteams": [ { - "name": "description", + "name": "type", "type": "TypeString", - "description": "Destination description.", + "description": "Destination type msteams.", "computed": true }, { @@ -27123,9 +27374,9 @@ } }, { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", "computed": true }, { @@ -27138,9 +27389,9 @@ } }, { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", "computed": true }, { @@ -27162,37 +27413,19 @@ "computed": true }, { - "name": "type", + "name": "description", "type": "TypeString", - "description": "Destination type msteams.", + "description": "Destination description.", "computed": true } ], "ibm_en_destination_pagerduty": [ - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, { "name": "description", "type": "TypeString", "description": "Destination description.", "computed": true }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Destination name.", - "computed": true - }, { "name": "type", "type": "TypeString", @@ -27227,9 +27460,9 @@ } }, { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", "computed": true }, { @@ -27246,15 +27479,72 @@ "type": "TypeString", "description": "Unique identifier for IBM Cloud Event Notifications instance.", "required": true + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Unique identifier for Destination.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Destination name.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true } ], "ibm_en_destination_safari": [ + { + "name": "destination_id", + "type": "TypeString", + "description": "Unique identifier for Destination.", + "required": true + }, { "name": "type", "type": "TypeString", "description": "Destination type push_ios.", "computed": true }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + }, + { + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Destination name.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Destination description.", + "computed": true + }, { "name": "config", "type": "TypeList", @@ -27317,53 +27607,14 @@ "type": "TypeString", "description": "Last updated time.", "computed": true - }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, - { - "name": "subscription_names", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "name", - "type": "TypeString", - "description": "Destination name.", - "computed": true - }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Destination description.", - "computed": true - }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "required": true } ], "ibm_en_destination_slack": [ { - "name": "destination_id", + "name": "name", "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true + "description": "Destination name.", + "computed": true }, { "name": "description", @@ -27411,10 +27662,10 @@ "required": true }, { - "name": "name", + "name": "destination_id", "type": "TypeString", - "description": "Destination name.", - "computed": true + "description": "Unique identifier for Destination.", + "required": true }, { "name": "updated_at", @@ -27434,30 +27685,9 @@ ], "ibm_en_destination_sn": [ { - "name": "name", - "type": "TypeString", - "description": "Destination name.", - "computed": true - }, - { - "name": "type", + "name": "description", "type": "TypeString", - "description": "Destination type push_chrome.", - "computed": true - }, - { - "name": "subscription_names", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", + "description": "Destination description.", "computed": true }, { @@ -27467,15 +27697,15 @@ "required": true }, { - "name": "destination_id", + "name": "name", "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true + "description": "Destination name.", + "computed": true }, { - "name": "description", + "name": "type", "type": "TypeString", - "description": "Destination description.", + "description": "Destination type push_chrome.", "computed": true }, { @@ -27528,9 +27758,7 @@ "type": "TypeString", "description": "Last updated time.", "computed": true - } - ], - "ibm_en_destination_webhook": [ + }, { "name": "subscription_count", "type": "TypeInt", @@ -27546,6 +27774,26 @@ "type": "TypeString" } }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Unique identifier for Destination.", + "required": true + } + ], + "ibm_en_destination_webhook": [ + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + }, { "name": "instance_guid", "type": "TypeString", @@ -27553,10 +27801,10 @@ "required": true }, { - "name": "type", + "name": "destination_id", "type": "TypeString", - "description": "Destination type Webhook.", - "computed": true + "description": "Unique identifier for Destination.", + "required": true }, { "name": "config", @@ -27604,16 +27852,13 @@ } }, { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true - }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "name", @@ -27626,6 +27871,12 @@ "type": "TypeString", "description": "Destination description.", "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Destination type Webhook.", + "computed": true } ], "ibm_en_destinations": [ @@ -27768,12 +28019,6 @@ } ], "ibm_en_source": [ - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true - }, { "name": "enabled", "type": "TypeBool", @@ -27803,6 +28048,12 @@ "type": "TypeString", "description": "Source description.", "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true } ], "ibm_en_sources": [ @@ -27876,6 +28127,12 @@ } ], "ibm_en_subscription_android": [ + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + }, { "name": "instance_guid", "type": "TypeString", @@ -27911,21 +28168,9 @@ "type": "TypeString", "description": "Topic ID.", "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true } ], "ibm_en_subscription_ce": [ - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true - }, { "name": "instance_guid", "type": "TypeString", @@ -27961,15 +28206,15 @@ "type": "TypeString", "description": "Topic ID.", "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true } ], "ibm_en_subscription_cf": [ - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "required": true - }, { "name": "subscription_id", "type": "TypeString", @@ -27994,20 +28239,6 @@ "description": "The destination ID.", "computed": true }, - { - "name": "topic_id", - "type": "TypeString", - "description": "Topic ID.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true - } - ], - "ibm_en_subscription_chrome": [ { "name": "topic_id", "type": "TypeString", @@ -28025,33 +28256,9 @@ "type": "TypeString", "description": "Unique identifier for IBM Cloud Event Notifications instance.", "required": true - }, - { - "name": "subscription_id", - "type": "TypeString", - "description": "Unique identifier for result.", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Subscription name.", - "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Subscription description.", - "computed": true - }, - { - "name": "destination_id", - "type": "TypeString", - "description": "The destination ID.", - "computed": true } ], - "ibm_en_subscription_cos": [ + "ibm_en_subscription_chrome": [ { "name": "destination_id", "type": "TypeString", @@ -28095,7 +28302,7 @@ "computed": true } ], - "ibm_en_subscription_email": [ + "ibm_en_subscription_cos": [ { "name": "name", "type": "TypeString", @@ -28120,6 +28327,26 @@ "description": "Topic ID.", "computed": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true + }, + { + "name": "subscription_id", + "type": "TypeString", + "description": "Unique identifier for result.", + "required": true + } + ], + "ibm_en_subscription_custom_email": [ { "name": "attributes", "type": "TypeList", @@ -28131,6 +28358,13 @@ "description": "Whether to add the notification payload to the email.", "computed": true }, + "from_email": { + "name": "from_email", + "type": "TypeString", + "description": "The email from where it is sourced", + "optional": true, + "computed": true + }, "from_name": { "name": "from_name", "type": "TypeString", @@ -28203,6 +28437,20 @@ } } }, + "template_id_invitation": { + "name": "template_id_invitation", + "type": "TypeString", + "description": "The templete id for invitation", + "optional": true, + "computed": true + }, + "template_id_notification": { + "name": "template_id_notification", + "type": "TypeString", + "description": "The templete id for notification", + "optional": true, + "computed": true + }, "unsubscribed": { "name": "unsubscribed", "type": "TypeList", @@ -28233,20 +28481,6 @@ "description": "Last updated time.", "computed": true }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "required": true - }, - { - "name": "subscription_id", - "type": "TypeString", - "description": "Unique identifier for result.", - "required": true - } - ], - "ibm_en_subscription_firefox": [ { "name": "instance_guid", "type": "TypeString", @@ -28282,15 +28516,15 @@ "type": "TypeString", "description": "Topic ID.", "computed": true - }, + } + ], + "ibm_en_subscription_email": [ { - "name": "updated_at", + "name": "description", "type": "TypeString", - "description": "Last updated time.", + "description": "Subscription description.", "computed": true - } - ], - "ibm_en_subscription_huawei": [ + }, { "name": "destination_id", "type": "TypeString", @@ -28303,6 +28537,113 @@ "description": "Topic ID.", "computed": true }, + { + "name": "attributes", + "type": "TypeList", + "computed": true, + "elem": { + "add_notification_payload": { + "name": "add_notification_payload", + "type": "TypeBool", + "description": "Whether to add the notification payload to the email.", + "computed": true + }, + "from_name": { + "name": "from_name", + "type": "TypeString", + "description": "The email address username of source email address.", + "optional": true, + "computed": true + }, + "invited": { + "name": "invited", + "type": "TypeList", + "description": "The invited item schema", + "computed": true, + "elem": { + "email": { + "name": "email", + "type": "TypeString", + "description": "The email address to reply to.", + "optional": true, + "computed": true + }, + "expires_at": { + "name": "expires_at", + "type": "TypeString", + "description": "The expiry date of invitation mail", + "optional": true, + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "The updated date of invitation", + "optional": true, + "computed": true + } + } + }, + "reply_to_mail": { + "name": "reply_to_mail", + "type": "TypeString", + "description": "The email address to reply to.", + "optional": true, + "computed": true + }, + "reply_to_name": { + "name": "reply_to_name", + "type": "TypeString", + "description": "The email address user name to reply to.", + "optional": true, + "computed": true + }, + "subscribed": { + "name": "subscribed", + "type": "TypeList", + "description": "The email subscribed items schema", + "computed": true, + "elem": { + "email": { + "name": "email", + "type": "TypeString", + "description": "The email address to reply to.", + "optional": true, + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "The updated date of susbcription", + "optional": true, + "computed": true + } + } + }, + "unsubscribed": { + "name": "unsubscribed", + "type": "TypeList", + "description": "The unsusbscribed email items schema", + "computed": true, + "elem": { + "email": { + "name": "email", + "type": "TypeString", + "description": "The email address to reply to.", + "optional": true, + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "The updated date of unsusbcription", + "optional": true, + "computed": true + } + } + } + } + }, { "name": "updated_at", "type": "TypeString", @@ -28326,15 +28667,21 @@ "type": "TypeString", "description": "Subscription name.", "computed": true + } + ], + "ibm_en_subscription_firefox": [ + { + "name": "topic_id", + "type": "TypeString", + "description": "Topic ID.", + "computed": true }, { - "name": "description", + "name": "updated_at", "type": "TypeString", - "description": "Subscription description.", + "description": "Last updated time.", "computed": true - } - ], - "ibm_en_subscription_ios": [ + }, { "name": "instance_guid", "type": "TypeString", @@ -28364,21 +28711,39 @@ "type": "TypeString", "description": "The destination ID.", "computed": true + } + ], + "ibm_en_subscription_huawei": [ + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true }, { - "name": "topic_id", + "name": "subscription_id", "type": "TypeString", - "description": "Topic ID.", + "description": "Unique identifier for result.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Subscription name.", "computed": true }, { - "name": "updated_at", + "name": "description", "type": "TypeString", - "description": "Last updated time.", + "description": "Subscription description.", "computed": true - } - ], - "ibm_en_subscription_msteams": [ + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "The destination ID.", + "computed": true + }, { "name": "topic_id", "type": "TypeString", @@ -28390,7 +28755,9 @@ "type": "TypeString", "description": "Last updated time.", "computed": true - }, + } + ], + "ibm_en_subscription_ios": [ { "name": "instance_guid", "type": "TypeString", @@ -28420,15 +28787,21 @@ "type": "TypeString", "description": "The destination ID.", "computed": true - } - ], - "ibm_en_subscription_pagerduty": [ + }, { - "name": "instance_guid", + "name": "topic_id", "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "required": true + "description": "Topic ID.", + "computed": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + } + ], + "ibm_en_subscription_msteams": [ { "name": "subscription_id", "type": "TypeString", @@ -28464,9 +28837,65 @@ "type": "TypeString", "description": "Last updated time.", "computed": true + }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true + } + ], + "ibm_en_subscription_pagerduty": [ + { + "name": "description", + "type": "TypeString", + "description": "Subscription description.", + "computed": true + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "The destination ID.", + "computed": true + }, + { + "name": "topic_id", + "type": "TypeString", + "description": "Topic ID.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true + }, + { + "name": "subscription_id", + "type": "TypeString", + "description": "Unique identifier for result.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Subscription name.", + "computed": true } ], "ibm_en_subscription_safari": [ + { + "name": "subscription_id", + "type": "TypeString", + "description": "Unique identifier for result.", + "required": true + }, { "name": "name", "type": "TypeString", @@ -28502,15 +28931,21 @@ "type": "TypeString", "description": "Unique identifier for IBM Cloud Event Notifications instance.", "required": true - }, - { - "name": "subscription_id", - "type": "TypeString", - "description": "Unique identifier for result.", - "required": true } ], "ibm_en_subscription_slack": [ + { + "name": "name", + "type": "TypeString", + "description": "Subscription name.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Subscription description.", + "computed": true + }, { "name": "destination_id", "type": "TypeString", @@ -28553,21 +28988,15 @@ "type": "TypeString", "description": "Unique identifier for result.", "required": true - }, + } + ], + "ibm_en_subscription_sms": [ { - "name": "name", + "name": "updated_at", "type": "TypeString", - "description": "Subscription name.", + "description": "Last updated time.", "computed": true }, - { - "name": "description", - "type": "TypeString", - "description": "Subscription description.", - "computed": true - } - ], - "ibm_en_subscription_sms": [ { "name": "instance_guid", "type": "TypeString", @@ -28684,33 +29113,9 @@ } } } - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true } ], "ibm_en_subscription_sn": [ - { - "name": "subscription_id", - "type": "TypeString", - "description": "Unique identifier for result.", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Subscription name.", - "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Subscription description.", - "computed": true - }, { "name": "destination_id", "type": "TypeString", @@ -28734,15 +29139,27 @@ "type": "TypeString", "description": "Unique identifier for IBM Cloud Event Notifications instance.", "required": true - } - ], - "ibm_en_subscription_webhook": [ + }, { - "name": "destination_id", + "name": "subscription_id", "type": "TypeString", - "description": "The destination ID.", + "description": "Unique identifier for result.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Subscription name.", "computed": true }, + { + "name": "description", + "type": "TypeString", + "description": "Subscription description.", + "computed": true + } + ], + "ibm_en_subscription_webhook": [ { "name": "topic_id", "type": "TypeString", @@ -28800,6 +29217,12 @@ "type": "TypeString", "description": "Subscription description.", "computed": true + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "The destination ID.", + "computed": true } ], "ibm_en_subscriptions": [ @@ -28886,10 +29309,10 @@ ], "ibm_en_topic": [ { - "name": "name", + "name": "instance_guid", "type": "TypeString", - "description": "Name of the topic.", - "computed": true + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true }, { "name": "description", @@ -28897,6 +29320,24 @@ "description": "Description of the topic.", "computed": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last time the topic was updated.", + "computed": true + }, + { + "name": "topic_id", + "type": "TypeString", + "description": "Unique identifier for Topic.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the topic.", + "computed": true + }, { "name": "source_count", "type": "TypeInt", @@ -29016,13 +29457,9 @@ "computed": true } } - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last time the topic was updated.", - "computed": true - }, + } + ], + "ibm_en_topics": [ { "name": "instance_guid", "type": "TypeString", @@ -29030,13 +29467,11 @@ "required": true }, { - "name": "topic_id", - "type": "TypeString", - "description": "Unique identifier for Topic.", - "required": true - } - ], - "ibm_en_topics": [ + "name": "total_count", + "type": "TypeInt", + "description": "Number of topics.", + "computed": true + }, { "name": "search_key", "type": "TypeString", @@ -29089,18 +29524,6 @@ "computed": true } } - }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "required": true - }, - { - "name": "total_count", - "type": "TypeInt", - "description": "Number of topics.", - "computed": true } ], "ibm_enterprise_account_groups": [ @@ -29446,6 +29869,15 @@ } ], "ibm_event_streams_topic": [ + { + "name": "kafka_brokers_sasl", + "type": "TypeList", + "description": "Kafka brokers addresses for interacting with Kafka native API", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "name", "type": "TypeString", @@ -29479,24 +29911,9 @@ "type": "TypeString", "description": "The API endpoint for interacting with Event Streams REST API", "computed": true - }, - { - "name": "kafka_brokers_sasl", - "type": "TypeList", - "description": "Kafka brokers addresses for interacting with Kafka native API", - "computed": true, - "elem": { - "type": "TypeString" - } } ], "ibm_function_action": [ - { - "name": "annotations", - "type": "TypeString", - "description": "All annotations set on action by user and those set by the IBM Cloud Function backend/API.", - "computed": true - }, { "name": "name", "type": "TypeString", @@ -29509,43 +29926,6 @@ "description": "Name of the namespace.", "required": true }, - { - "name": "limits", - "type": "TypeList", - "computed": true, - "elem": { - "log_size": { - "name": "log_size", - "type": "TypeInt", - "description": "The maximum log size LIMIT in MB for the action.", - "computed": true - }, - "memory": { - "name": "memory", - "type": "TypeInt", - "description": "The maximum memory LIMIT in MB for the action (default 256.", - "computed": true - }, - "timeout": { - "name": "timeout", - "type": "TypeInt", - "description": "The timeout LIMIT in milliseconds after which the action is terminated.", - "computed": true - } - } - }, - { - "name": "publish", - "type": "TypeBool", - "description": "Action visibilty.", - "computed": true - }, - { - "name": "version", - "type": "TypeString", - "description": "Semantic version of the item.", - "computed": true - }, { "name": "exec", "type": "TypeList", @@ -29592,6 +29972,12 @@ } } }, + { + "name": "annotations", + "type": "TypeString", + "description": "All annotations set on action by user and those set by the IBM Cloud Function backend/API.", + "computed": true + }, { "name": "parameters", "type": "TypeString", @@ -29608,9 +29994,53 @@ "type": "TypeString", "description": "Action target endpoint URL.", "computed": true + }, + { + "name": "limits", + "type": "TypeList", + "computed": true, + "elem": { + "log_size": { + "name": "log_size", + "type": "TypeInt", + "description": "The maximum log size LIMIT in MB for the action.", + "computed": true + }, + "memory": { + "name": "memory", + "type": "TypeInt", + "description": "The maximum memory LIMIT in MB for the action (default 256.", + "computed": true + }, + "timeout": { + "name": "timeout", + "type": "TypeInt", + "description": "The timeout LIMIT in milliseconds after which the action is terminated.", + "computed": true + } + } + }, + { + "name": "publish", + "type": "TypeBool", + "description": "Action visibilty.", + "computed": true + }, + { + "name": "version", + "type": "TypeString", + "description": "Semantic version of the item.", + "computed": true } ], "ibm_function_namespace": [ + { + "name": "location", + "type": "TypeString", + "description": "Namespace Location.", + "cloud_data_type": "region", + "computed": true + }, { "name": "name", "type": "TypeString", @@ -29629,16 +30059,21 @@ "description": "Resource Group ID.", "cloud_data_type": "resource_group", "computed": true - }, - { - "name": "location", - "type": "TypeString", - "description": "Namespace Location.", - "cloud_data_type": "region", - "computed": true } ], "ibm_function_package": [ + { + "name": "name", + "type": "TypeString", + "description": "Name of the package.", + "required": true + }, + { + "name": "namespace", + "type": "TypeString", + "description": "Name of the namespace.", + "required": true + }, { "name": "publish", "type": "TypeBool", @@ -29673,11 +30108,13 @@ "name": "package_id", "type": "TypeString", "computed": true - }, + } + ], + "ibm_function_rule": [ { "name": "name", "type": "TypeString", - "description": "Name of the package.", + "description": "Name of the rule.", "required": true }, { @@ -29685,9 +30122,7 @@ "type": "TypeString", "description": "Name of the namespace.", "required": true - } - ], - "ibm_function_rule": [ + }, { "name": "trigger_name", "type": "TypeString", @@ -29722,21 +30157,21 @@ "name": "rule_id", "type": "TypeString", "computed": true - }, + } + ], + "ibm_function_trigger": [ { - "name": "name", + "name": "version", "type": "TypeString", - "description": "Name of the rule.", - "required": true + "description": "Semantic version of the trigger.", + "computed": true }, { - "name": "namespace", + "name": "annotations", "type": "TypeString", - "description": "Name of the namespace.", - "required": true - } - ], - "ibm_function_trigger": [ + "description": "All annotations set on trigger by user and those set by the IBM Cloud Function backend/API.", + "computed": true + }, { "name": "parameters", "type": "TypeString", @@ -29765,27 +30200,34 @@ "type": "TypeBool", "description": "Trigger Visibility.", "computed": true - }, + } + ], + "ibm_hpcs": [ { - "name": "version", + "name": "status", "type": "TypeString", - "description": "Semantic version of the trigger.", + "description": "The resource instance status", "computed": true }, { - "name": "annotations", + "name": "name", "type": "TypeString", - "description": "All annotations set on trigger by user and those set by the IBM Cloud Function backend/API.", + "description": "Resource instance name for example, myobjectstorage", + "required": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "The id of the resource group in which the instance is present", + "cloud_data_type": "resource_group", + "optional": true, "computed": true - } - ], - "ibm_hpcs": [ + }, { - "name": "service", + "name": "plan", "type": "TypeString", - "description": "The service type of the instance", - "default_value": "hs-crypto", - "optional": true + "description": "The plan type of the instance", + "computed": true }, { "name": "failover_units", @@ -29793,6 +30235,12 @@ "description": "The number of failover crypto units for your service instance", "computed": true }, + { + "name": "service_endpoints", + "type": "TypeString", + "description": "Types of the service endpoints. Possible values are `public-and-private`, `private-only`.", + "computed": true + }, { "name": "crn", "type": "TypeString", @@ -29806,6 +30254,33 @@ "description": "Guid of resource instance", "computed": true }, + { + "name": "extensions", + "type": "TypeMap", + "description": "The extended metadata as a map associated with the resource instance.", + "computed": true + }, + { + "name": "location", + "type": "TypeString", + "description": "The location or the environment in which instance exists", + "cloud_data_type": "region", + "optional": true, + "computed": true + }, + { + "name": "service", + "type": "TypeString", + "description": "The service type of the instance", + "default_value": "hs-crypto", + "optional": true + }, + { + "name": "units", + "type": "TypeInt", + "description": "The number of operational crypto units for your service instance", + "computed": true + }, { "name": "hsm_info", "type": "TypeList", @@ -29875,99 +30350,9 @@ "computed": true } } - }, - { - "name": "location", - "type": "TypeString", - "description": "The location or the environment in which instance exists", - "cloud_data_type": "region", - "optional": true, - "computed": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "The id of the resource group in which the instance is present", - "cloud_data_type": "resource_group", - "optional": true, - "computed": true - }, - { - "name": "units", - "type": "TypeInt", - "description": "The number of operational crypto units for your service instance", - "computed": true - }, - { - "name": "service_endpoints", - "type": "TypeString", - "description": "Types of the service endpoints. Possible values are `public-and-private`, `private-only`.", - "computed": true - }, - { - "name": "plan", - "type": "TypeString", - "description": "The plan type of the instance", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The resource instance status", - "computed": true - }, - { - "name": "extensions", - "type": "TypeMap", - "description": "The extended metadata as a map associated with the resource instance.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Resource instance name for example, myobjectstorage", - "required": true } ], "ibm_hpcs_key_template": [ - { - "name": "template_id", - "type": "TypeString", - "description": "UUID of the template.", - "required": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "Date and time when the key template was created.", - "computed": true - }, - { - "name": "vault", - "type": "TypeList", - "description": "Reference to a vault.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "A URL that uniquely identifies your cloud resource.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the referenced vault.", - "computed": true - } - } - }, { "name": "key", "type": "TypeList", @@ -30006,6 +30391,31 @@ } } }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Date and time when the key template was updated.", + "computed": true + }, + { + "name": "updated_by", + "type": "TypeString", + "description": "ID of the user that updated the key.", + "computed": true + }, + { + "name": "region", + "type": "TypeString", + "description": "The region of the UKO instance this resource exists in.", + "cloud_data_type": "region", + "required": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "Date and time when the key template was created.", + "computed": true + }, { "name": "created_by", "type": "TypeString", @@ -30047,9 +30457,35 @@ } }, { - "name": "version", - "type": "TypeInt", - "description": "Version of the key template. Every time the key template is updated, the version will be updated automatically.", + "name": "vault", + "type": "TypeList", + "description": "Reference to a vault.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "A URL that uniquely identifies your cloud resource.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the referenced vault.", + "computed": true + } + } + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the key template.", "computed": true }, { @@ -30065,20 +30501,15 @@ "computed": true }, { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the UKO instance this resource exists in.", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:hs-crypto" - ] + "name": "version", + "type": "TypeInt", + "description": "Version of the key template. Every time the key template is updated, the version will be updated automatically.", + "computed": true }, { - "name": "region", + "name": "template_id", "type": "TypeString", - "description": "The region of the UKO instance this resource exists in.", - "cloud_data_type": "region", + "description": "UUID of the template.", "required": true }, { @@ -30088,38 +30519,74 @@ "required": true }, { - "name": "name", + "name": "instance_id", "type": "TypeString", - "description": "Name of the key template.", + "description": "The ID of the UKO instance this resource exists in.", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:hs-crypto" + ] + } + ], + "ibm_hpcs_keystore": [ + { + "name": "google_credentials", + "type": "TypeString", + "description": "The value of the JSON key represented in the Base64 format.", "computed": true }, { - "name": "updated_at", + "name": "google_project_id", "type": "TypeString", - "description": "Date and time when the key template was updated.", + "description": "The project id associated with this keystore.", "computed": true }, { - "name": "updated_by", + "name": "azure_resource_group", "type": "TypeString", - "description": "ID of the user that updated the key.", + "description": "Resource group in Azure.", "computed": true - } - ], - "ibm_hpcs_keystore": [ + }, { - "name": "google_location", + "name": "azure_location", "type": "TypeString", - "description": "Location represents the geographical region where a Cloud KMS resource is stored and can be accessed. A key's location impacts the performance of applications using the key.", + "description": "Location of the Azure Key Vault.", "computed": true }, { - "name": "aws_access_key_id", + "name": "ibm_api_key", "type": "TypeString", - "description": "The access key id used for connecting to this instance of AWS KMS.", + "description": "The IBM Cloud API key to be used for connecting to this IBM Cloud keystore.", "secure": true, "computed": true }, + { + "name": "vault", + "type": "TypeList", + "description": "Reference to a vault.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "A URL that uniquely identifies your cloud resource.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the referenced vault.", + "computed": true + } + } + }, { "name": "aws_secret_access_key", "type": "TypeString", @@ -30128,46 +30595,50 @@ "computed": true }, { - "name": "ibm_key_ring", + "name": "azure_service_principal_password", "type": "TypeString", - "description": "The key ring of an IBM Cloud KMS Keystore.", + "description": "Azure service principal password.", + "secure": true, "computed": true }, { - "name": "created_by", + "name": "ibm_api_endpoint", "type": "TypeString", - "description": "ID of the user that created the key.", + "description": "API endpoint of the IBM Cloud keystore.", "computed": true }, { - "name": "updated_by", + "name": "ibm_key_ring", "type": "TypeString", - "description": "ID of the user that last updated the key.", + "description": "The key ring of an IBM Cloud KMS Keystore.", "computed": true }, { - "name": "google_project_id", + "name": "instance_id", "type": "TypeString", - "description": "The project id associated with this keystore.", - "computed": true + "description": "The ID of the UKO instance this resource exists in.", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:hs-crypto" + ] }, { - "name": "ibm_iam_endpoint", + "name": "description", "type": "TypeString", - "description": "Endpoint of the IAM service for this IBM Cloud keystore.", + "description": "Description of the keystore.", "computed": true }, { - "name": "ibm_api_key", + "name": "updated_at", "type": "TypeString", - "description": "The IBM Cloud API key to be used for connecting to this IBM Cloud keystore.", - "secure": true, + "description": "Date and time when the target keystore was last updated.", "computed": true }, { - "name": "description", + "name": "updated_by", "type": "TypeString", - "description": "Description of the keystore.", + "description": "ID of the user that last updated the key.", "computed": true }, { @@ -30177,45 +30648,58 @@ "computed": true }, { - "name": "google_credentials", + "name": "ibm_iam_endpoint", "type": "TypeString", - "description": "The value of the JSON key represented in the Base64 format.", + "description": "Endpoint of the IAM service for this IBM Cloud keystore.", "computed": true }, { - "name": "aws_region", + "name": "region", "type": "TypeString", - "description": "AWS Region.", + "description": "The region of the UKO instance this resource exists in.", + "cloud_data_type": "region", + "required": true + }, + { + "name": "keystore_id", + "type": "TypeString", + "description": "UUID of the keystore.", + "required": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Type of keystore.", "computed": true }, { - "name": "azure_service_principal_client_id", + "name": "created_by", "type": "TypeString", - "description": "Azure service principal client ID.", + "description": "ID of the user that created the key.", "computed": true }, { - "name": "azure_environment", + "name": "azure_service_name", "type": "TypeString", - "description": "Azure environment, usually 'Azure'.", + "description": "Service name of the key vault instance from the Azure portal.", "computed": true }, { - "name": "keystore_id", + "name": "azure_environment", "type": "TypeString", - "description": "UUID of the keystore.", - "required": true + "description": "Azure environment, usually 'Azure'.", + "computed": true }, { - "name": "uko_vault", + "name": "ibm_variant", "type": "TypeString", - "description": "The UUID of the Vault in which the update is to take place.", - "required": true + "description": "Possible IBM Cloud KMS variants.", + "computed": true }, { - "name": "azure_subscription_id", + "name": "name", "type": "TypeString", - "description": "Subscription ID in Azure.", + "description": "Name of the target keystore. It can be changed in the future.", "computed": true }, { @@ -30228,92 +30712,59 @@ } }, { - "name": "updated_at", - "type": "TypeString", - "description": "Date and time when the target keystore was last updated.", - "computed": true - }, - { - "name": "created_at", + "name": "aws_access_key_id", "type": "TypeString", - "description": "Date and time when the target keystore was created.", + "description": "The access key id used for connecting to this instance of AWS KMS.", + "secure": true, "computed": true }, { - "name": "azure_location", + "name": "azure_service_principal_client_id", "type": "TypeString", - "description": "Location of the Azure Key Vault.", + "description": "Azure service principal client ID.", "computed": true }, { - "name": "ibm_api_endpoint", + "name": "uko_vault", "type": "TypeString", - "description": "API endpoint of the IBM Cloud keystore.", - "computed": true + "description": "The UUID of the Vault in which the update is to take place.", + "required": true }, { - "name": "google_key_ring", + "name": "azure_tenant", "type": "TypeString", - "description": "A key ring organizes keys in a specific Google Cloud location and allows you to manage access control on groups of keys.", + "description": "Azure tenant that the Key Vault is associated with,.", "computed": true }, { - "name": "azure_service_principal_password", + "name": "ibm_instance_id", "type": "TypeString", - "description": "Azure service principal password.", - "secure": true, + "description": "The instance ID of the IBM Cloud keystore.", "computed": true }, { - "name": "region", + "name": "location", "type": "TypeString", - "description": "The region of the UKO instance this resource exists in.", + "description": "Geographic location of the keystore, if available.", "cloud_data_type": "region", - "required": true - }, - { - "name": "vault", - "type": "TypeList", - "description": "Reference to a vault.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "A URL that uniquely identifies your cloud resource.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the referenced vault.", - "computed": true - } - } + "computed": true }, { - "name": "name", + "name": "google_location", "type": "TypeString", - "description": "Name of the target keystore. It can be changed in the future.", + "description": "Location represents the geographical region where a Cloud KMS resource is stored and can be accessed. A key's location impacts the performance of applications using the key.", "computed": true }, { - "name": "location", + "name": "google_key_ring", "type": "TypeString", - "description": "Geographic location of the keystore, if available.", - "cloud_data_type": "region", + "description": "A key ring organizes keys in a specific Google Cloud location and allows you to manage access control on groups of keys.", "computed": true }, { - "name": "type", + "name": "created_at", "type": "TypeString", - "description": "Type of keystore.", + "description": "Date and time when the target keystore was created.", "computed": true }, { @@ -30323,23 +30774,19 @@ "computed": true }, { - "name": "azure_tenant", - "type": "TypeString", - "description": "Azure tenant that the Key Vault is associated with,.", - "computed": true - }, - { - "name": "ibm_instance_id", + "name": "aws_region", "type": "TypeString", - "description": "The instance ID of the IBM Cloud keystore.", + "description": "AWS Region.", "computed": true }, { - "name": "ibm_variant", + "name": "azure_subscription_id", "type": "TypeString", - "description": "Possible IBM Cloud KMS variants.", + "description": "Subscription ID in Azure.", "computed": true - }, + } + ], + "ibm_hpcs_managed_key": [ { "name": "instance_id", "type": "TypeString", @@ -30351,19 +30798,11 @@ ] }, { - "name": "azure_service_name", + "name": "activation_date", "type": "TypeString", - "description": "Service name of the key vault instance from the Azure portal.", + "description": "First day when the key is active.", "computed": true }, - { - "name": "azure_resource_group", - "type": "TypeString", - "description": "Resource group in Azure.", - "computed": true - } - ], - "ibm_hpcs_managed_key": [ { "name": "created_by", "type": "TypeString", @@ -30371,15 +30810,24 @@ "computed": true }, { - "name": "referenced_keystores", + "name": "instances", "type": "TypeList", - "description": "referenced keystores.", + "description": "key instances.", "computed": true, "elem": { - "href": { - "name": "href", + "google_key_protection_level": { + "name": "google_key_protection_level", + "type": "TypeString", + "computed": true + }, + "google_key_purpose": { + "name": "google_key_purpose", + "type": "TypeString", + "computed": true + }, + "google_kms_algorithm": { + "name": "google_kms_algorithm", "type": "TypeString", - "description": "A URL that uniquely identifies your cloud resource.", "computed": true }, "id": { @@ -30388,36 +30836,49 @@ "description": "The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.", "computed": true }, - "name": { - "name": "name", + "keystore": { + "name": "keystore", + "type": "TypeList", + "description": "Description of properties of a key within the context of keystores.", + "computed": true, + "elem": { + "group": { + "name": "group", + "type": "TypeString", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of keystore.", + "computed": true + } + } + }, + "label_in_keystore": { + "name": "label_in_keystore", "type": "TypeString", - "description": "Name of the target keystore.", + "description": "The label of the key.", "computed": true }, "type": { "name": "type", "type": "TypeString", - "description": "Type of keystore.", + "description": "Type of the key instance.", "computed": true } } }, { - "name": "href", + "name": "updated_by", "type": "TypeString", - "description": "A URL that uniquely identifies your cloud resource.", + "description": "ID of the user that last updated the key.", "computed": true }, { - "name": "key_id", - "type": "TypeString", - "description": "UUID of the key.", - "required": true - }, - { - "name": "vault", + "name": "referenced_keystores", "type": "TypeList", - "description": "Reference to a vault.", + "description": "referenced keystores.", "computed": true, "elem": { "href": { @@ -30435,37 +30896,35 @@ "name": { "name": "name", "type": "TypeString", - "description": "Name of the referenced vault.", - "computed": true - } - } - }, - { - "name": "template", - "type": "TypeList", - "description": "Reference to a key template.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "A URL that uniquely identifies your cloud resource.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.", + "description": "Name of the target keystore.", "computed": true }, - "name": { - "name": "name", + "type": { + "name": "type", "type": "TypeString", - "description": "Name of the key template.", + "description": "Type of keystore.", "computed": true } } }, + { + "name": "href", + "type": "TypeString", + "description": "A URL that uniquely identifies your cloud resource.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Description of the managed key.", + "computed": true + }, + { + "name": "state", + "type": "TypeString", + "description": "The state of the key.", + "computed": true + }, { "name": "expiration_date", "type": "TypeString", @@ -30494,42 +30953,21 @@ } }, { - "name": "uko_vault", - "type": "TypeString", - "description": "The UUID of the Vault in which the update is to take place.", - "required": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Description of the managed key.", - "computed": true - }, - { - "name": "algorithm", + "name": "created_at", "type": "TypeString", - "description": "The algorithm of the key.", + "description": "Date and time when the key was created.", "computed": true }, { - "name": "instances", + "name": "vault", "type": "TypeList", - "description": "key instances.", + "description": "Reference to a vault.", "computed": true, "elem": { - "google_key_protection_level": { - "name": "google_key_protection_level", - "type": "TypeString", - "computed": true - }, - "google_key_purpose": { - "name": "google_key_purpose", - "type": "TypeString", - "computed": true - }, - "google_kms_algorithm": { - "name": "google_kms_algorithm", + "href": { + "name": "href", "type": "TypeString", + "description": "A URL that uniquely identifies your cloud resource.", "computed": true }, "id": { @@ -30538,52 +30976,14 @@ "description": "The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.", "computed": true }, - "keystore": { - "name": "keystore", - "type": "TypeList", - "description": "Description of properties of a key within the context of keystores.", - "computed": true, - "elem": { - "group": { - "name": "group", - "type": "TypeString", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of keystore.", - "computed": true - } - } - }, - "label_in_keystore": { - "name": "label_in_keystore", - "type": "TypeString", - "description": "The label of the key.", - "computed": true - }, - "type": { - "name": "type", + "name": { + "name": "name", "type": "TypeString", - "description": "Type of the key instance.", + "description": "Name of the referenced vault.", "computed": true } } }, - { - "name": "region", - "type": "TypeString", - "description": "The region of the UKO instance this resource exists in.", - "cloud_data_type": "region", - "required": true - }, - { - "name": "state", - "type": "TypeString", - "description": "The state of the key.", - "computed": true - }, { "name": "verification_patterns", "type": "TypeList", @@ -30605,69 +31005,92 @@ } }, { - "name": "created_at", + "name": "updated_at", "type": "TypeString", - "description": "Date and time when the key was created.", + "description": "Date and time when the key was last updated.", "computed": true }, { - "name": "updated_at", + "name": "size", "type": "TypeString", - "description": "Date and time when the key was last updated.", + "description": "The size of the underlying cryptographic key or key pair. E.g. \"256\" for AES keys, or \"2048\" for RSA.", "computed": true }, { - "name": "instance_id", + "name": "algorithm", "type": "TypeString", - "description": "The ID of the UKO instance this resource exists in.", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:hs-crypto" - ] + "description": "The algorithm of the key.", + "computed": true }, { - "name": "label", + "name": "region", "type": "TypeString", - "description": "The label of the key.", - "computed": true + "description": "The region of the UKO instance this resource exists in.", + "cloud_data_type": "region", + "required": true }, { - "name": "size", + "name": "key_id", "type": "TypeString", - "description": "The size of the underlying cryptographic key or key pair. E.g. \"256\" for AES keys, or \"2048\" for RSA.", - "computed": true + "description": "UUID of the key.", + "required": true }, { - "name": "activation_date", + "name": "uko_vault", "type": "TypeString", - "description": "First day when the key is active.", - "computed": true + "description": "The UUID of the Vault in which the update is to take place.", + "required": true }, { - "name": "updated_by", + "name": "template", + "type": "TypeList", + "description": "Reference to a key template.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "A URL that uniquely identifies your cloud resource.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the key template.", + "computed": true + } + } + }, + { + "name": "label", "type": "TypeString", - "description": "ID of the user that last updated the key.", + "description": "The label of the key.", "computed": true } ], "ibm_hpcs_vault": [ { - "name": "name", + "name": "created_at", "type": "TypeString", - "description": "Name of the vault.", + "description": "Date and time when the vault was created.", "computed": true }, { - "name": "description", + "name": "created_by", "type": "TypeString", - "description": "Description of the vault.", + "description": "ID of the user that created the vault.", "computed": true }, { - "name": "updated_at", + "name": "updated_by", "type": "TypeString", - "description": "Date and time when the vault was last updated.", + "description": "ID of the user that last updated the vault.", "computed": true }, { @@ -30676,18 +31099,6 @@ "description": "A URL that uniquely identifies your cloud resource.", "computed": true }, - { - "name": "created_by", - "type": "TypeString", - "description": "ID of the user that created the vault.", - "computed": true - }, - { - "name": "updated_by", - "type": "TypeString", - "description": "ID of the user that last updated the vault.", - "computed": true - }, { "name": "instance_id", "type": "TypeString", @@ -30705,6 +31116,12 @@ "cloud_data_type": "region", "required": true }, + { + "name": "description", + "type": "TypeString", + "description": "Description of the vault.", + "computed": true + }, { "name": "vault_id", "type": "TypeString", @@ -30712,13 +31129,30 @@ "required": true }, { - "name": "created_at", + "name": "name", "type": "TypeString", - "description": "Date and time when the vault was created.", + "description": "Name of the vault.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Date and time when the vault was last updated.", "computed": true } ], "ibm_iam_access_group": [ + { + "name": "access_group_name", + "type": "TypeString", + "description": "Name of the access group", + "cloud_data_type": "iam", + "optional": true, + "cloud_data_range": [ + "service:access_group", + "resolved_to:name" + ] + }, { "name": "groups", "type": "TypeList", @@ -30818,17 +31252,6 @@ } } } - }, - { - "name": "access_group_name", - "type": "TypeString", - "description": "Name of the access group", - "cloud_data_type": "iam", - "optional": true, - "cloud_data_range": [ - "service:access_group", - "resolved_to:name" - ] } ], "ibm_iam_access_group_policy": [ @@ -31067,24 +31490,6 @@ "description": "Filter results by Template Id.", "optional": true }, - { - "name": "transaction_id", - "type": "TypeString", - "description": "An optional transaction id for the request.", - "optional": true - }, - { - "name": "total_count", - "type": "TypeInt", - "description": "Total number of items matching the query.", - "computed": true - }, - { - "name": "account_id", - "type": "TypeString", - "description": "Enterprise account ID.", - "computed": true - }, { "name": "target", "type": "TypeString", @@ -31098,45 +31503,17 @@ "optional": true }, { - "name": "limit", - "type": "TypeInt", - "description": "Maximum number of items returned in the response.", - "computed": true + "name": "transaction_id", + "type": "TypeString", + "description": "An optional transaction id for the request.", + "optional": true }, { - "name": "offset", + "name": "total_count", "type": "TypeInt", - "description": "Index of the first item returned in the response.", + "description": "Total number of items matching the query.", "computed": true }, - { - "name": "first", - "type": "TypeList", - "description": "A link object.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "A string containing the link’s URL.", - "computed": true - } - } - }, - { - "name": "last", - "type": "TypeList", - "description": "A link object.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "A string containing the link’s URL.", - "computed": true - } - } - }, { "name": "assignments", "type": "TypeList", @@ -31223,19 +31600,29 @@ } } }, + { + "name": "account_id", + "type": "TypeString", + "description": "Enterprise account ID.", + "computed": true + }, { "name": "template_version", "type": "TypeString", "description": "Filter results by Template Version.", "optional": true - } - ], - "ibm_iam_access_group_template_versions": [ + }, { - "name": "template_id", - "type": "TypeString", - "description": "ID of the template that you want to list all versions of.", - "required": true + "name": "limit", + "type": "TypeInt", + "description": "Maximum number of items returned in the response.", + "computed": true + }, + { + "name": "offset", + "type": "TypeInt", + "description": "Index of the first item returned in the response.", + "computed": true }, { "name": "first", @@ -31251,20 +31638,6 @@ } } }, - { - "name": "previous", - "type": "TypeList", - "description": "A link object.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "A string containing the link’s URL.", - "computed": true - } - } - }, { "name": "last", "type": "TypeList", @@ -31278,7 +31651,9 @@ "computed": true } } - }, + } + ], + "ibm_iam_access_group_template_versions": [ { "name": "group_template_versions", "type": "TypeList", @@ -31548,9 +31923,63 @@ "computed": true } } + }, + { + "name": "template_id", + "type": "TypeString", + "description": "ID of the template that you want to list all versions of.", + "required": true + }, + { + "name": "first", + "type": "TypeList", + "description": "A link object.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "A string containing the link’s URL.", + "computed": true + } + } + }, + { + "name": "previous", + "type": "TypeList", + "description": "A link object.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "A string containing the link’s URL.", + "computed": true + } + } + }, + { + "name": "last", + "type": "TypeList", + "description": "A link object.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "A string containing the link’s URL.", + "computed": true + } + } } ], "ibm_iam_account_settings": [ + { + "name": "restrict_create_service_id", + "type": "TypeString", + "description": "Defines whether or not creating a Service Id is access controlled. Valid values: * RESTRICTED - to apply access control * NOT_RESTRICTED - to remove access control * NOT_SET - to 'unset' a previous set value.", + "computed": true + }, { "name": "restrict_create_platform_apikey", "type": "TypeString", @@ -31578,18 +32007,11 @@ } }, { - "name": "session_expiration_in_seconds", + "name": "system_access_token_expiration_in_seconds", "type": "TypeString", - "description": "Defines the session expiration in seconds for the account. Valid values: * Any whole number between between '900' and '86400' * NOT_SET - To unset account setting and use service default.", + "description": "Defines the access token expiration in seconds. Valid values: * Any whole number between '900' and '3600' * NOT_SET - To unset account setting and use service default.", "computed": true }, - { - "name": "include_history", - "type": "TypeBool", - "description": "Defines if the entity history is included in the response.", - "default_value": false, - "optional": true - }, { "name": "account_id", "type": "TypeString", @@ -31597,21 +32019,9 @@ "computed": true }, { - "name": "allowed_ip_addresses", - "type": "TypeString", - "description": "Defines the IP addresses and subnets from which IAM tokens can be created for the account.", - "computed": true - }, - { - "name": "session_invalidation_in_seconds", - "type": "TypeString", - "description": "Defines the period of time in seconds in which a session will be invalidated due to inactivity. Valid values: * Any whole number between '900' and '7200' * NOT_SET - To unset account setting and use service default.", - "computed": true - }, - { - "name": "system_access_token_expiration_in_seconds", + "name": "entity_tag", "type": "TypeString", - "description": "Defines the access token expiration in seconds. Valid values: * Any whole number between '900' and '3600' * NOT_SET - To unset account setting and use service default.", + "description": "Version of the account settings.", "computed": true }, { @@ -31662,15 +32072,15 @@ } }, { - "name": "max_sessions_per_identity", + "name": "session_expiration_in_seconds", "type": "TypeString", - "description": "Defines the max allowed sessions per identity required by the account. Valid values: * Any whole number greater than 0 * NOT_SET - To unset account setting and use service default.", + "description": "Defines the session expiration in seconds for the account. Valid values: * Any whole number between between '900' and '86400' * NOT_SET - To unset account setting and use service default.", "computed": true }, { - "name": "mfa", + "name": "allowed_ip_addresses", "type": "TypeString", - "description": "Defines the MFA trait for the account. Valid values: * NONE - No MFA trait set * TOTP - For all non-federated IBMId users * TOTP4ALL - For all users * LEVEL1 - Email-based MFA for all users * LEVEL2 - TOTP-based MFA for all users * LEVEL3 - U2F MFA for all users.", + "description": "Defines the IP addresses and subnets from which IAM tokens can be created for the account.", "computed": true }, { @@ -31680,72 +32090,32 @@ "computed": true }, { - "name": "restrict_create_service_id", + "name": "session_invalidation_in_seconds", "type": "TypeString", - "description": "Defines whether or not creating a Service Id is access controlled. Valid values: * RESTRICTED - to apply access control * NOT_RESTRICTED - to remove access control * NOT_SET - to 'unset' a previous set value.", + "description": "Defines the period of time in seconds in which a session will be invalidated due to inactivity. Valid values: * Any whole number between '900' and '7200' * NOT_SET - To unset account setting and use service default.", "computed": true }, { - "name": "entity_tag", + "name": "mfa", "type": "TypeString", - "description": "Version of the account settings.", + "description": "Defines the MFA trait for the account. Valid values: * NONE - No MFA trait set * TOTP - For all non-federated IBMId users * TOTP4ALL - For all users * LEVEL1 - Email-based MFA for all users * LEVEL2 - TOTP-based MFA for all users * LEVEL3 - U2F MFA for all users.", "computed": true - } - ], - "ibm_iam_account_settings_template": [ + }, { - "name": "name", + "name": "max_sessions_per_identity", "type": "TypeString", - "description": "The name of the trusted profile template. This is visible only in the enterprise account.", + "description": "Defines the max allowed sessions per identity required by the account. Valid values: * Any whole number greater than 0 * NOT_SET - To unset account setting and use service default.", "computed": true }, { - "name": "history", - "type": "TypeList", - "description": "History of the Template.", - "computed": true, - "elem": { - "action": { - "name": "action", - "type": "TypeString", - "description": "Action of the history entry.", - "computed": true - }, - "iam_id": { - "name": "iam_id", - "type": "TypeString", - "description": "IAM ID of the identity which triggered the action.", - "computed": true - }, - "iam_id_account": { - "name": "iam_id_account", - "type": "TypeString", - "description": "Account of the identity which triggered the action.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "Message which summarizes the executed action.", - "computed": true - }, - "params": { - "name": "params", - "type": "TypeList", - "description": "Params of the history entry.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "timestamp": { - "name": "timestamp", - "type": "TypeString", - "description": "Timestamp when the action was triggered.", - "computed": true - } - } - }, + "name": "include_history", + "type": "TypeBool", + "description": "Defines if the entity history is included in the response.", + "default_value": false, + "optional": true + } + ], + "ibm_iam_account_settings_template": [ { "name": "entity_tag", "type": "TypeString", @@ -31753,21 +32123,21 @@ "computed": true }, { - "name": "last_modified_by_id", + "name": "last_modified_at", "type": "TypeString", - "description": "IAMid of the identity that made the latest modification.", + "description": "Template last modified at.", "computed": true }, { - "name": "id", + "name": "last_modified_by_id", "type": "TypeString", - "description": "ID of the the template.", + "description": "IAMid of the identity that made the latest modification.", "computed": true }, { - "name": "account_id", + "name": "id", "type": "TypeString", - "description": "ID of the account where the template resides.", + "description": "ID of the the template.", "computed": true }, { @@ -31776,56 +32146,6 @@ "description": "The description of the trusted profile template. Describe the template for enterprise account users.", "computed": true }, - { - "name": "committed", - "type": "TypeBool", - "description": "Committed flag determines if the template is ready for assignment.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "Template Created At.", - "computed": true - }, - { - "name": "template_id", - "type": "TypeString", - "description": "ID of the account settings template.", - "required": true - }, - { - "name": "version", - "type": "TypeString", - "description": "Version of the account settings template.", - "optional": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Cloud resource name.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "created_by_id", - "type": "TypeString", - "description": "IAMid of the creator.", - "computed": true - }, - { - "name": "last_modified_at", - "type": "TypeString", - "description": "Template last modified at.", - "computed": true - }, - { - "name": "include_history", - "type": "TypeBool", - "description": "Defines if the entity history is included in the response.", - "default_value": false, - "optional": true - }, { "name": "account_settings", "type": "TypeList", @@ -31906,19 +32226,11 @@ } } } - } - ], - "ibm_iam_account_settings_template_assignment": [ - { - "name": "target", - "type": "TypeString", - "description": "Assignment target.", - "optional": true }, { "name": "history", "type": "TypeList", - "description": "Assignment history.", + "description": "History of the Template.", "computed": true, "elem": { "action": { @@ -31963,41 +32275,75 @@ } }, { - "name": "last_modified_by_id", + "name": "crn", "type": "TypeString", - "description": "IAMid of the identity that last modified the assignment.", + "description": "Cloud resource name.", + "cloud_data_type": "crn", "computed": true }, { - "name": "entity_tag", + "name": "created_by_id", "type": "TypeString", - "description": "Entity tag for this assignment record.", + "description": "IAMid of the creator.", "computed": true }, { - "name": "account_id", + "name": "include_history", + "type": "TypeBool", + "description": "Defines if the entity history is included in the response.", + "default_value": false, + "optional": true + }, + { + "name": "name", "type": "TypeString", - "description": "Enterprise account Id.", + "description": "The name of the trusted profile template. This is visible only in the enterprise account.", "computed": true }, { - "name": "href", + "name": "template_id", "type": "TypeString", - "description": "Href.", + "description": "ID of the account settings template.", + "required": true + }, + { + "name": "version", + "type": "TypeString", + "description": "Version of the account settings template.", + "optional": true + }, + { + "name": "account_id", + "type": "TypeString", + "description": "ID of the account where the template resides.", + "computed": true + }, + { + "name": "committed", + "type": "TypeBool", + "description": "Committed flag determines if the template is ready for assignment.", "computed": true }, { "name": "created_at", "type": "TypeString", - "description": "Assignment created at.", + "description": "Template Created At.", "computed": true - }, + } + ], + "ibm_iam_account_settings_template_assignment": [ { "name": "template_id", "type": "TypeString", "description": "Template Id.", "optional": true }, + { + "name": "template_version", + "type": "TypeInt", + "description": "Template version.", + "optional": true + }, { "name": "target_type", "type": "TypeString", @@ -32005,17 +32351,116 @@ "optional": true }, { - "name": "created_by_id", + "name": "target", "type": "TypeString", - "description": "IAMid of the identity that created the assignment.", + "description": "Assignment target.", + "optional": true + }, + { + "name": "href", + "type": "TypeString", + "description": "Href.", "computed": true }, { - "name": "status", + "name": "include_history", + "type": "TypeBool", + "description": "Defines if the entity history is included in the response.", + "default_value": false, + "optional": true + }, + { + "name": "account_id", "type": "TypeString", - "description": "Assignment status.", + "description": "Enterprise account Id.", "computed": true }, + { + "name": "created_at", + "type": "TypeString", + "description": "Assignment created at.", + "computed": true + }, + { + "name": "entity_tag", + "type": "TypeString", + "description": "Entity tag for this assignment record.", + "computed": true + }, + { + "name": "context", + "type": "TypeList", + "description": "Context with key properties for problem determination.", + "computed": true, + "elem": { + "cluster_name": { + "name": "cluster_name", + "type": "TypeString", + "description": "The cluster name.", + "computed": true + }, + "elapsed_time": { + "name": "elapsed_time", + "type": "TypeString", + "description": "The elapsed time in msec.", + "computed": true + }, + "end_time": { + "name": "end_time", + "type": "TypeString", + "description": "The finish time of the request.", + "computed": true + }, + "host": { + "name": "host", + "type": "TypeString", + "description": "The host of the server instance processing the request.", + "computed": true + }, + "instance_id": { + "name": "instance_id", + "type": "TypeString", + "description": "The instance ID of the server instance processing the request.", + "computed": true + }, + "operation": { + "name": "operation", + "type": "TypeString", + "description": "The operation of the inbound REST request.", + "computed": true + }, + "start_time": { + "name": "start_time", + "type": "TypeString", + "description": "The start time of the request.", + "computed": true + }, + "thread_id": { + "name": "thread_id", + "type": "TypeString", + "description": "The thread ID of the server instance processing the request.", + "computed": true + }, + "transaction_id": { + "name": "transaction_id", + "type": "TypeString", + "description": "The transaction ID of the inbound REST request.", + "computed": true + }, + "url": { + "name": "url", + "type": "TypeString", + "description": "The URL of that cluster.", + "computed": true + }, + "user_agent": { + "name": "user_agent", + "type": "TypeString", + "description": "The user agent of the inbound REST request.", + "computed": true + } + } + }, { "name": "resources", "type": "TypeList", @@ -32107,6 +32552,12 @@ "description": "Assignment modified at.", "computed": true }, + { + "name": "last_modified_by_id", + "type": "TypeString", + "description": "IAMid of the identity that last modified the assignment.", + "computed": true + }, { "name": "assignment_id", "type": "TypeString", @@ -32114,100 +32565,84 @@ "required": true }, { - "name": "include_history", - "type": "TypeBool", - "description": "Defines if the entity history is included in the response.", - "default_value": false, - "optional": true + "name": "id", + "type": "TypeString", + "description": "Assignment record Id.", + "computed": true }, { - "name": "context", + "name": "status", + "type": "TypeString", + "description": "Assignment status.", + "computed": true + }, + { + "name": "history", "type": "TypeList", - "description": "Context with key properties for problem determination.", + "description": "Assignment history.", "computed": true, "elem": { - "cluster_name": { - "name": "cluster_name", - "type": "TypeString", - "description": "The cluster name.", - "computed": true - }, - "elapsed_time": { - "name": "elapsed_time", - "type": "TypeString", - "description": "The elapsed time in msec.", - "computed": true - }, - "end_time": { - "name": "end_time", - "type": "TypeString", - "description": "The finish time of the request.", - "computed": true - }, - "host": { - "name": "host", - "type": "TypeString", - "description": "The host of the server instance processing the request.", - "computed": true - }, - "instance_id": { - "name": "instance_id", - "type": "TypeString", - "description": "The instance ID of the server instance processing the request.", - "computed": true - }, - "operation": { - "name": "operation", + "action": { + "name": "action", "type": "TypeString", - "description": "The operation of the inbound REST request.", + "description": "Action of the history entry.", "computed": true }, - "start_time": { - "name": "start_time", + "iam_id": { + "name": "iam_id", "type": "TypeString", - "description": "The start time of the request.", + "description": "IAM ID of the identity which triggered the action.", "computed": true }, - "thread_id": { - "name": "thread_id", + "iam_id_account": { + "name": "iam_id_account", "type": "TypeString", - "description": "The thread ID of the server instance processing the request.", + "description": "Account of the identity which triggered the action.", "computed": true }, - "transaction_id": { - "name": "transaction_id", + "message": { + "name": "message", "type": "TypeString", - "description": "The transaction ID of the inbound REST request.", + "description": "Message which summarizes the executed action.", "computed": true }, - "url": { - "name": "url", - "type": "TypeString", - "description": "The URL of that cluster.", - "computed": true + "params": { + "name": "params", + "type": "TypeList", + "description": "Params of the history entry.", + "computed": true, + "elem": { + "type": "TypeString" + } }, - "user_agent": { - "name": "user_agent", + "timestamp": { + "name": "timestamp", "type": "TypeString", - "description": "The user agent of the inbound REST request.", + "description": "Timestamp when the action was triggered.", "computed": true } } }, { - "name": "id", + "name": "created_by_id", "type": "TypeString", - "description": "Assignment record Id.", + "description": "IAMid of the identity that created the assignment.", "computed": true - }, - { - "name": "template_version", - "type": "TypeInt", - "description": "Template version.", - "optional": true } ], "ibm_iam_api_key": [ + { + "name": "apikey_id", + "type": "TypeString", + "description": "Unique ID of the API key.", + "required": true + }, + { + "name": "locked", + "type": "TypeBool", + "description": "The API key cannot be changed if set to true.", + "computed": true + }, { "name": "created_at", "type": "TypeString", @@ -32221,23 +32656,17 @@ "computed": true }, { - "name": "modified_at", + "name": "iam_id", "type": "TypeString", - "description": "If set contains a date time string of the last modification date in ISO format.", + "description": "The iam_id that this API key authenticates.", "computed": true }, { - "name": "description", + "name": "account_id", "type": "TypeString", - "description": "The optional description of the API key. The 'description' property is only available if a description was provided during a create of an API key.", + "description": "ID of the account that this API key authenticates for.", "computed": true }, - { - "name": "apikey_id", - "type": "TypeString", - "description": "Unique ID of the API key.", - "required": true - }, { "name": "entity_tag", "type": "TypeString", @@ -32245,22 +32674,16 @@ "computed": true }, { - "name": "locked", - "type": "TypeBool", - "description": "The API key cannot be changed if set to true.", - "computed": true - }, - { - "name": "account_id", + "name": "crn", "type": "TypeString", - "description": "ID of the account that this API key authenticates for.", + "description": "Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::apikey:1234-9012-5678'.", + "cloud_data_type": "crn", "computed": true }, { - "name": "crn", + "name": "modified_at", "type": "TypeString", - "description": "Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::apikey:1234-9012-5678'.", - "cloud_data_type": "crn", + "description": "If set contains a date time string of the last modification date in ISO format.", "computed": true }, { @@ -32270,9 +32693,9 @@ "computed": true }, { - "name": "iam_id", + "name": "description", "type": "TypeString", - "description": "The iam_id that this API key authenticates.", + "description": "The optional description of the API key. The 'description' property is only available if a description was provided during a create of an API key.", "computed": true } ], @@ -32299,6 +32722,26 @@ } ], "ibm_iam_authorization_policies": [ + { + "name": "account_id", + "type": "TypeString", + "description": "The unique ID of an account", + "optional": true, + "computed": true + }, + { + "name": "sort", + "type": "TypeString", + "description": "Sort query for policies", + "optional": true + }, + { + "name": "transaction_id", + "type": "TypeString", + "description": "Set transactionID for debug", + "optional": true, + "computed": true + }, { "name": "policies", "type": "TypeList", @@ -32384,33 +32827,49 @@ "computed": true } } + } + ], + "ibm_iam_policy_assignment": [ + { + "name": "assignment_id", + "type": "TypeString", + "description": "The policy template assignment ID.", + "required": true }, { - "name": "account_id", + "name": "href", "type": "TypeString", - "description": "The unique ID of an account", - "optional": true, + "description": "The href URL that links to the policies assignments API by policy assignment ID.", "computed": true }, { - "name": "sort", + "name": "last_modified_at", "type": "TypeString", - "description": "Sort query for policies", - "optional": true + "description": "The UTC timestamp when the policy assignment was last modified.", + "computed": true }, { - "name": "transaction_id", + "name": "created_by_id", "type": "TypeString", - "description": "Set transactionID for debug", - "optional": true, + "description": "The iam ID of the entity that created the policy assignment.", "computed": true - } - ], - "ibm_iam_policy_assignment": [ + }, { - "name": "target", + "name": "last_modified_by_id", "type": "TypeString", - "description": "assignment target id.", + "description": "The iam ID of the entity that last modified the policy assignment.", + "computed": true + }, + { + "name": "template_id", + "type": "TypeString", + "description": "policy template id.", + "computed": true + }, + { + "name": "target_type", + "type": "TypeString", + "description": "Assignment target type.", "computed": true }, { @@ -32420,9 +32879,65 @@ "computed": true }, { - "name": "last_modified_at", + "name": "options", + "type": "TypeList", + "description": "List of objects with required properties for a policy assignment.", + "computed": true, + "elem": { + "root_requester_id": { + "name": "root_requester_id", + "type": "TypeString", + "description": "The policy assignment requester id.", + "computed": true + }, + "root_template_id": { + "name": "root_template_id", + "type": "TypeString", + "description": "The template id where this policy is being assigned from.", + "computed": true + }, + "root_template_version": { + "name": "root_template_version", + "type": "TypeString", + "description": "The template version where this policy is being assigned from.", + "computed": true + }, + "subject_id": { + "name": "subject_id", + "type": "TypeString", + "description": "The policy subject id.", + "computed": true + }, + "subject_type": { + "name": "subject_type", + "type": "TypeString", + "description": "The policy subject type; either 'iam_id' or 'access_group_id'.", + "computed": true + } + } + }, + { + "name": "account_id", "type": "TypeString", - "description": "The UTC timestamp when the policy assignment was last modified.", + "description": "Enterprise accountID.", + "computed": true + }, + { + "name": "template_version", + "type": "TypeString", + "description": "policy template version.", + "computed": true + }, + { + "name": "target", + "type": "TypeString", + "description": "assignment target id.", + "computed": true + }, + { + "name": "id", + "type": "TypeString", + "description": "Policy assignment ID.", "computed": true }, { @@ -32546,98 +33061,6 @@ "computed": true } } - }, - { - "name": "options", - "type": "TypeList", - "description": "List of objects with required properties for a policy assignment.", - "computed": true, - "elem": { - "root_requester_id": { - "name": "root_requester_id", - "type": "TypeString", - "description": "The policy assignment requester id.", - "computed": true - }, - "root_template_id": { - "name": "root_template_id", - "type": "TypeString", - "description": "The template id where this policy is being assigned from.", - "computed": true - }, - "root_template_version": { - "name": "root_template_version", - "type": "TypeString", - "description": "The template version where this policy is being assigned from.", - "computed": true - }, - "subject_id": { - "name": "subject_id", - "type": "TypeString", - "description": "The policy subject id.", - "computed": true - }, - "subject_type": { - "name": "subject_type", - "type": "TypeString", - "description": "The policy subject type; either 'iam_id' or 'access_group_id'.", - "computed": true - } - } - }, - { - "name": "account_id", - "type": "TypeString", - "description": "Enterprise accountID.", - "computed": true - }, - { - "name": "assignment_id", - "type": "TypeString", - "description": "The policy template assignment ID.", - "required": true - }, - { - "name": "template_version", - "type": "TypeString", - "description": "policy template version.", - "computed": true - }, - { - "name": "created_by_id", - "type": "TypeString", - "description": "The iam ID of the entity that created the policy assignment.", - "computed": true - }, - { - "name": "last_modified_by_id", - "type": "TypeString", - "description": "The iam ID of the entity that last modified the policy assignment.", - "computed": true - }, - { - "name": "template_id", - "type": "TypeString", - "description": "policy template id.", - "computed": true - }, - { - "name": "id", - "type": "TypeString", - "description": "Policy assignment ID.", - "computed": true - }, - { - "name": "target_type", - "type": "TypeString", - "description": "Assignment target type.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The href URL that links to the policies assignments API by policy assignment ID.", - "computed": true } ], "ibm_iam_policy_assignments": [ @@ -33071,36 +33494,6 @@ } ], "ibm_iam_policy_template_version": [ - { - "name": "id", - "type": "TypeString", - "description": "The policy template ID.", - "computed": true - }, - { - "name": "policy_template_id", - "type": "TypeString", - "description": "The policy template ID.", - "required": true - }, - { - "name": "version", - "type": "TypeString", - "description": "The policy template version.", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "name of template.", - "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "description of template purpose.", - "computed": true - }, { "name": "account_id", "type": "TypeString", @@ -33242,33 +33635,39 @@ "computed": true } } - } - ], - "ibm_iam_role_actions": [ + }, { - "name": "reader_plus", - "type": "TypeList", - "description": "readerplus action ids", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "id", + "type": "TypeString", + "description": "The policy template ID.", + "computed": true }, { - "name": "writer", - "type": "TypeList", - "description": "writer action ids", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "policy_template_id", + "type": "TypeString", + "description": "The policy template ID.", + "required": true }, { - "name": "actions", - "type": "TypeMap", - "description": "List of actions for different services roles", + "name": "version", + "type": "TypeString", + "description": "The policy template version.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "name of template.", "computed": true }, + { + "name": "description", + "type": "TypeString", + "description": "description of template purpose.", + "computed": true + } + ], + "ibm_iam_role_actions": [ { "name": "service", "type": "TypeString", @@ -33293,6 +33692,30 @@ "elem": { "type": "TypeString" } + }, + { + "name": "reader_plus", + "type": "TypeList", + "description": "readerplus action ids", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "writer", + "type": "TypeList", + "description": "writer action ids", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "actions", + "type": "TypeMap", + "description": "List of actions for different services roles", + "computed": true } ], "ibm_iam_roles": [ @@ -33581,9 +34004,9 @@ ], "ibm_iam_trusted_profile": [ { - "name": "name", - "type": "TypeString", - "description": "Name of the trusted profile. The name is checked for uniqueness. Therefore trusted profiles with the same names can not exist in the same account.", + "name": "ims_user_id", + "type": "TypeInt", + "description": "IMS user ID of the trusted profile.", "computed": true }, { @@ -33593,9 +34016,9 @@ "computed": true }, { - "name": "account_id", + "name": "modified_at", "type": "TypeString", - "description": "ID of the account that this trusted profile belong to.", + "description": "If set contains a date time string of the last modification date in ISO format.", "computed": true }, { @@ -33605,15 +34028,21 @@ "computed": true }, { - "name": "template_id", + "name": "account_id", "type": "TypeString", - "description": "Template id the profile was created from.", + "description": "ID of the account that this trusted profile belong to.", "computed": true }, { - "name": "assignment_id", + "name": "ims_account_id", + "type": "TypeInt", + "description": "IMS acount ID of the trusted profile.", + "computed": true + }, + { + "name": "template_id", "type": "TypeString", - "description": "Id of assignment that assigned the template.", + "description": "Template id the profile was created from.", "computed": true }, { @@ -33664,28 +34093,34 @@ } }, { - "name": "crn", + "name": "created_at", "type": "TypeString", - "description": "Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::profile:Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.", - "cloud_data_type": "crn", + "description": "If set contains a date time string of the creation date in ISO format.", "computed": true }, { - "name": "created_at", + "name": "assignment_id", "type": "TypeString", - "description": "If set contains a date time string of the creation date in ISO format.", + "description": "Id of assignment that assigned the template.", "computed": true }, { - "name": "ims_user_id", - "type": "TypeInt", - "description": "IMS user ID of the trusted profile.", + "name": "crn", + "type": "TypeString", + "description": "Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::profile:Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.", + "cloud_data_type": "crn", "computed": true }, { - "name": "ims_account_id", - "type": "TypeInt", - "description": "IMS acount ID of the trusted profile.", + "name": "entity_tag", + "type": "TypeString", + "description": "Version of the trusted profile details object. You need to specify this value when updating the trusted profile to avoid stale updates.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the trusted profile. The name is checked for uniqueness. Therefore trusted profiles with the same names can not exist in the same account.", "computed": true }, { @@ -33698,43 +34133,36 @@ "service:trusted_profile", "resolved_to:id" ] - }, - { - "name": "entity_tag", - "type": "TypeString", - "description": "Version of the trusted profile details object. You need to specify this value when updating the trusted profile to avoid stale updates.", - "computed": true - }, - { - "name": "modified_at", - "type": "TypeString", - "description": "If set contains a date time string of the last modification date in ISO format.", - "computed": true } ], "ibm_iam_trusted_profile_claim_rule": [ { - "name": "rule_id", + "name": "profile_id", "type": "TypeString", - "description": "ID of the claim rule to get.", - "required": true + "description": "ID of the trusted profile.", + "cloud_data_type": "iam", + "required": true, + "cloud_data_range": [ + "service:trusted_profile", + "resolved_to:id" + ] }, { - "name": "entity_tag", + "name": "realm_name", "type": "TypeString", - "description": "version of the claim rule.", + "description": "The realm name of the Idp this claim rule applies to.", "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "If set contains a date time string of the creation date in ISO format.", + "name": "expiration", + "type": "TypeInt", + "description": "Session expiration in seconds.", "computed": true }, { - "name": "name", + "name": "cr_type", "type": "TypeString", - "description": "The optional claim rule name.", + "description": "The compute resource type. Not required if type is Profile-SAML. Valid values are VSI, IKS_SA, ROKS_SA.", "computed": true }, { @@ -33743,12 +34171,6 @@ "description": "Type of the Calim rule, either 'Profile-SAML' or 'Profile-CR'.", "computed": true }, - { - "name": "realm_name", - "type": "TypeString", - "description": "The realm name of the Idp this claim rule applies to.", - "computed": true - }, { "name": "conditions", "type": "TypeList", @@ -33776,26 +34198,21 @@ } }, { - "name": "profile_id", + "name": "rule_id", "type": "TypeString", - "description": "ID of the trusted profile.", - "cloud_data_type": "iam", - "required": true, - "cloud_data_range": [ - "service:trusted_profile", - "resolved_to:id" - ] + "description": "ID of the claim rule to get.", + "required": true }, { - "name": "expiration", - "type": "TypeInt", - "description": "Session expiration in seconds.", + "name": "entity_tag", + "type": "TypeString", + "description": "version of the claim rule.", "computed": true }, { - "name": "cr_type", + "name": "created_at", "type": "TypeString", - "description": "The compute resource type. Not required if type is Profile-SAML. Valid values are VSI, IKS_SA, ROKS_SA.", + "description": "If set contains a date time string of the creation date in ISO format.", "computed": true }, { @@ -33803,6 +34220,12 @@ "type": "TypeString", "description": "If set contains a date time string of the last modification date in ISO format.", "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The optional claim rule name.", + "computed": true } ], "ibm_iam_trusted_profile_claim_rules": [ @@ -33962,12 +34385,6 @@ } ], "ibm_iam_trusted_profile_identity": [ - { - "name": "identifier_id", - "type": "TypeString", - "description": "Identifier of the identity that can assume the trusted profiles.", - "required": true - }, { "name": "iam_id", "type": "TypeString", @@ -34012,45 +34429,15 @@ "type": "TypeString", "description": "Type of the identity.", "required": true - } - ], - "ibm_iam_trusted_profile_link": [ - { - "name": "link_id", - "type": "TypeString", - "description": "ID of the link.", - "required": true }, { - "name": "entity_tag", - "type": "TypeString", - "description": "version of the claim rule.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "If set contains a date time string of the creation date in ISO format.", - "computed": true - }, - { - "name": "modified_at", - "type": "TypeString", - "description": "If set contains a date time string of the last modification date in ISO format.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Optional name of the Link.", - "computed": true - }, - { - "name": "cr_type", + "name": "identifier_id", "type": "TypeString", - "description": "The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.", - "computed": true - }, + "description": "Identifier of the identity that can assume the trusted profiles.", + "required": true + } + ], + "ibm_iam_trusted_profile_link": [ { "name": "link", "type": "TypeList", @@ -34086,6 +34473,42 @@ "service:trusted_profile", "resolved_to:id" ] + }, + { + "name": "link_id", + "type": "TypeString", + "description": "ID of the link.", + "required": true + }, + { + "name": "entity_tag", + "type": "TypeString", + "description": "version of the claim rule.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "If set contains a date time string of the creation date in ISO format.", + "computed": true + }, + { + "name": "modified_at", + "type": "TypeString", + "description": "If set contains a date time string of the last modification date in ISO format.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Optional name of the Link.", + "computed": true + }, + { + "name": "cr_type", + "type": "TypeString", + "description": "The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.", + "computed": true } ], "ibm_iam_trusted_profile_links": [ @@ -34411,17 +34834,115 @@ ], "ibm_iam_trusted_profile_template": [ { - "name": "version", + "name": "account_id", "type": "TypeString", - "description": "Version of the Profile Template.", + "description": "ID of the account where the template resides.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the trusted profile template. This is visible only in the enterprise account.", + "computed": true + }, + { + "name": "last_modified_by_id", + "type": "TypeString", + "description": "IAMid of the identity that made the latest modification.", + "computed": true + }, + { + "name": "include_history", + "type": "TypeBool", + "description": "Defines if the entity history is included in the response.", + "default_value": false, "optional": true }, { - "name": "account_id", + "name": "description", "type": "TypeString", - "description": "ID of the account where the template resides.", + "description": "The description of the trusted profile template. Describe the template for enterprise account users.", + "computed": true + }, + { + "name": "committed", + "type": "TypeBool", + "description": "Committed flag determines if the template is ready for assignment.", "computed": true }, + { + "name": "version", + "type": "TypeString", + "description": "Version of the Profile Template.", + "optional": true + }, + { + "name": "policy_template_references", + "type": "TypeList", + "description": "Existing policy templates that you can reference to assign access in the trusted profile component.", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "ID of Access Policy Template.", + "computed": true + }, + "version": { + "name": "version", + "type": "TypeString", + "description": "Version of Access Policy Template.", + "computed": true + } + } + }, + { + "name": "history", + "type": "TypeList", + "description": "History of the trusted profile template.", + "computed": true, + "elem": { + "action": { + "name": "action", + "type": "TypeString", + "description": "Action of the history entry.", + "computed": true + }, + "iam_id": { + "name": "iam_id", + "type": "TypeString", + "description": "IAM ID of the identity which triggered the action.", + "computed": true + }, + "iam_id_account": { + "name": "iam_id_account", + "type": "TypeString", + "description": "Account of the identity which triggered the action.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "Message which summarizes the executed action.", + "computed": true + }, + "params": { + "name": "params", + "type": "TypeList", + "description": "Params of the history entry.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "timestamp": { + "name": "timestamp", + "type": "TypeString", + "description": "Timestamp when the action was triggered.", + "computed": true + } + } + }, { "name": "crn", "type": "TypeString", @@ -34430,17 +34951,29 @@ "computed": true }, { - "name": "name", + "name": "created_at", "type": "TypeString", - "description": "The name of the trusted profile template. This is visible only in the enterprise account.", + "description": "Timestamp of when the template was created.", "computed": true }, { - "name": "committed", - "type": "TypeBool", - "description": "Committed flag determines if the template is ready for assignment.", + "name": "created_by_id", + "type": "TypeString", + "description": "IAMid of the creator.", "computed": true }, + { + "name": "last_modified_at", + "type": "TypeString", + "description": "Timestamp of when the template was last modified.", + "computed": true + }, + { + "name": "template_id", + "type": "TypeString", + "description": "ID of the trusted profile template.", + "required": true + }, { "name": "profile", "type": "TypeList", @@ -34560,26 +35093,6 @@ } } }, - { - "name": "policy_template_references", - "type": "TypeList", - "description": "Existing policy templates that you can reference to assign access in the trusted profile component.", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "ID of Access Policy Template.", - "computed": true - }, - "version": { - "name": "version", - "type": "TypeString", - "description": "Version of Access Policy Template.", - "computed": true - } - } - }, { "name": "entity_tag", "type": "TypeString", @@ -34587,103 +35100,130 @@ "computed": true }, { - "name": "last_modified_at", + "name": "id", "type": "TypeString", - "description": "Timestamp of when the template was last modified.", + "description": "ID of the the template.", "computed": true - }, + } + ], + "ibm_iam_trusted_profile_template_assignment": [ { - "name": "template_id", + "name": "target_type", "type": "TypeString", - "description": "ID of the trusted profile template.", - "required": true - }, - { - "name": "include_history", - "type": "TypeBool", - "description": "Defines if the entity history is included in the response.", - "default_value": false, - "optional": true + "description": "Assignment target type.", + "computed": true }, { - "name": "id", + "name": "status", "type": "TypeString", - "description": "ID of the the template.", + "description": "Assignment status.", "computed": true }, { - "name": "description", + "name": "created_at", "type": "TypeString", - "description": "The description of the trusted profile template. Describe the template for enterprise account users.", + "description": "Assignment created at.", "computed": true }, { - "name": "history", + "name": "context", "type": "TypeList", - "description": "History of the trusted profile template.", + "description": "Context with key properties for problem determination.", "computed": true, "elem": { - "action": { - "name": "action", + "cluster_name": { + "name": "cluster_name", "type": "TypeString", - "description": "Action of the history entry.", + "description": "The cluster name.", "computed": true }, - "iam_id": { - "name": "iam_id", + "elapsed_time": { + "name": "elapsed_time", "type": "TypeString", - "description": "IAM ID of the identity which triggered the action.", + "description": "The elapsed time in msec.", "computed": true }, - "iam_id_account": { - "name": "iam_id_account", + "end_time": { + "name": "end_time", "type": "TypeString", - "description": "Account of the identity which triggered the action.", + "description": "The finish time of the request.", "computed": true }, - "message": { - "name": "message", + "host": { + "name": "host", "type": "TypeString", - "description": "Message which summarizes the executed action.", + "description": "The host of the server instance processing the request.", "computed": true }, - "params": { - "name": "params", - "type": "TypeList", - "description": "Params of the history entry.", - "computed": true, - "elem": { - "type": "TypeString" - } + "instance_id": { + "name": "instance_id", + "type": "TypeString", + "description": "The instance ID of the server instance processing the request.", + "computed": true }, - "timestamp": { - "name": "timestamp", + "operation": { + "name": "operation", "type": "TypeString", - "description": "Timestamp when the action was triggered.", + "description": "The operation of the inbound REST request.", + "computed": true + }, + "start_time": { + "name": "start_time", + "type": "TypeString", + "description": "The start time of the request.", + "computed": true + }, + "thread_id": { + "name": "thread_id", + "type": "TypeString", + "description": "The thread ID of the server instance processing the request.", + "computed": true + }, + "transaction_id": { + "name": "transaction_id", + "type": "TypeString", + "description": "The transaction ID of the inbound REST request.", + "computed": true + }, + "url": { + "name": "url", + "type": "TypeString", + "description": "The URL of that cluster.", + "computed": true + }, + "user_agent": { + "name": "user_agent", + "type": "TypeString", + "description": "The user agent of the inbound REST request.", "computed": true } } }, { - "name": "last_modified_by_id", + "name": "template_id", "type": "TypeString", - "description": "IAMid of the identity that made the latest modification.", + "description": "Template Id.", "computed": true }, { - "name": "created_at", + "name": "href", "type": "TypeString", - "description": "Timestamp of when the template was created.", + "description": "Href.", "computed": true }, { - "name": "created_by_id", + "name": "last_modified_by_id", "type": "TypeString", - "description": "IAMid of the creator.", + "description": "IAMid of the identity that last modified the assignment.", "computed": true - } - ], - "ibm_iam_trusted_profile_template_assignment": [ + }, + { + "name": "include_history", + "type": "TypeBool", + "description": "Defines if the entity history is included in the response.", + "default_value": false, + "optional": true + }, { "name": "resources", "type": "TypeList", @@ -34842,51 +35382,9 @@ } }, { - "name": "created_by_id", - "type": "TypeString", - "description": "IAMid of the identity that created the assignment.", - "computed": true - }, - { - "name": "entity_tag", - "type": "TypeString", - "description": "Entity tag for this assignment record.", - "computed": true - }, - { - "name": "assignment_id", - "type": "TypeString", - "description": "ID of the Assignment Record.", - "required": true - }, - { - "name": "id", - "type": "TypeString", - "description": "Assignment record Id.", - "computed": true - }, - { - "name": "account_id", - "type": "TypeString", - "description": "Enterprise account Id.", - "computed": true - }, - { - "name": "template_id", - "type": "TypeString", - "description": "Template Id.", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "Assignment status.", - "computed": true - }, - { - "name": "target", - "type": "TypeString", - "description": "Assignment target.", + "name": "template_version", + "type": "TypeInt", + "description": "Template version.", "computed": true }, { @@ -34937,120 +35435,45 @@ } }, { - "name": "include_history", - "type": "TypeBool", - "description": "Defines if the entity history is included in the response.", - "default_value": false, - "optional": true - }, - { - "name": "href", + "name": "entity_tag", "type": "TypeString", - "description": "Href.", + "description": "Entity tag for this assignment record.", "computed": true }, { - "name": "last_modified_by_id", + "name": "assignment_id", "type": "TypeString", - "description": "IAMid of the identity that last modified the assignment.", - "computed": true + "description": "ID of the Assignment Record.", + "required": true }, { - "name": "context", - "type": "TypeList", - "description": "Context with key properties for problem determination.", - "computed": true, - "elem": { - "cluster_name": { - "name": "cluster_name", - "type": "TypeString", - "description": "The cluster name.", - "computed": true - }, - "elapsed_time": { - "name": "elapsed_time", - "type": "TypeString", - "description": "The elapsed time in msec.", - "computed": true - }, - "end_time": { - "name": "end_time", - "type": "TypeString", - "description": "The finish time of the request.", - "computed": true - }, - "host": { - "name": "host", - "type": "TypeString", - "description": "The host of the server instance processing the request.", - "computed": true - }, - "instance_id": { - "name": "instance_id", - "type": "TypeString", - "description": "The instance ID of the server instance processing the request.", - "computed": true - }, - "operation": { - "name": "operation", - "type": "TypeString", - "description": "The operation of the inbound REST request.", - "computed": true - }, - "start_time": { - "name": "start_time", - "type": "TypeString", - "description": "The start time of the request.", - "computed": true - }, - "thread_id": { - "name": "thread_id", - "type": "TypeString", - "description": "The thread ID of the server instance processing the request.", - "computed": true - }, - "transaction_id": { - "name": "transaction_id", - "type": "TypeString", - "description": "The transaction ID of the inbound REST request.", - "computed": true - }, - "url": { - "name": "url", - "type": "TypeString", - "description": "The URL of that cluster.", - "computed": true - }, - "user_agent": { - "name": "user_agent", - "type": "TypeString", - "description": "The user agent of the inbound REST request.", - "computed": true - } - } + "name": "account_id", + "type": "TypeString", + "description": "Enterprise account Id.", + "computed": true }, { - "name": "template_version", - "type": "TypeInt", - "description": "Template version.", + "name": "created_by_id", + "type": "TypeString", + "description": "IAMid of the identity that created the assignment.", "computed": true }, { - "name": "target_type", + "name": "last_modified_at", "type": "TypeString", - "description": "Assignment target type.", + "description": "Assignment modified at.", "computed": true }, { - "name": "created_at", + "name": "id", "type": "TypeString", - "description": "Assignment created at.", + "description": "Assignment record Id.", "computed": true }, { - "name": "last_modified_at", + "name": "target", "type": "TypeString", - "description": "Assignment modified at.", + "description": "Assignment target.", "computed": true } ], @@ -35322,18 +35745,6 @@ } ], "ibm_iam_user_policy": [ - { - "name": "ibm_id", - "type": "TypeString", - "description": "The ibm id or email of user", - "required": true - }, - { - "name": "sort", - "type": "TypeString", - "description": "Sort query for policies", - "optional": true - }, { "name": "transaction_id", "type": "TypeString", @@ -35499,21 +35910,21 @@ "optional": true } } - } - ], - "ibm_iam_user_profile": [ + }, { - "name": "email", + "name": "ibm_id", "type": "TypeString", - "description": "The email of the user.", - "computed": true + "description": "The ibm id or email of user", + "required": true }, { - "name": "phonenumber", + "name": "sort", "type": "TypeString", - "description": "The phone for the user.", - "computed": true - }, + "description": "Sort query for policies", + "optional": true + } + ], + "ibm_iam_user_profile": [ { "name": "iam_id", "type": "TypeString", @@ -35521,27 +35932,27 @@ "required": true }, { - "name": "user_id", + "name": "lastname", "type": "TypeString", - "description": "The user ID used for login.", + "description": "The last name of the user.", "computed": true }, { - "name": "lastname", + "name": "state", "type": "TypeString", - "description": "The last name of the user.", + "description": "The state of the user. Possible values are PROCESSING, PENDING, ACTIVE, DISABLED_CLASSIC_INFRASTRUCTURE, and VPN_ONLY.", "computed": true }, { - "name": "altphonenumber", + "name": "email", "type": "TypeString", - "description": "The alternative phone number of the user.", + "description": "The email of the user.", "computed": true }, { - "name": "account_id", + "name": "phonenumber", "type": "TypeString", - "description": "An alphanumeric value identifying the account ID.", + "description": "The phone for the user.", "computed": true }, { @@ -35559,6 +35970,12 @@ "type": "TypeString" } }, + { + "name": "user_id", + "type": "TypeString", + "description": "The user ID used for login.", + "computed": true + }, { "name": "firstname", "type": "TypeString", @@ -35566,9 +35983,15 @@ "computed": true }, { - "name": "state", + "name": "altphonenumber", "type": "TypeString", - "description": "The state of the user. Possible values are PROCESSING, PENDING, ACTIVE, DISABLED_CLASSIC_INFRASTRUCTURE, and VPN_ONLY.", + "description": "The alternative phone number of the user.", + "computed": true + }, + { + "name": "account_id", + "type": "TypeString", + "description": "An alphanumeric value identifying the account ID.", "computed": true } ], @@ -35643,13 +36066,6 @@ } ], "ibm_is_backup_policies": [ - { - "name": "resource_group", - "type": "TypeString", - "description": "Filters the collection to resources in the resource group with the specified identifier", - "cloud_data_type": "resource_group", - "optional": true - }, { "name": "name", "type": "TypeString", @@ -35680,6 +36096,38 @@ "description": "The CRN for this backup policy.", "computed": true }, + "health_reasons": { + "name": "health_reasons", + "type": "TypeList", + "description": "The reasons for the current health_state (if any).", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this health state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this health state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this health state.", + "computed": true + } + } + }, + "health_state": { + "name": "health_state", + "type": "TypeString", + "description": "The health of this resource", + "computed": true + }, "href": { "name": "href", "type": "TypeString", @@ -35805,58 +36253,48 @@ "type": "TypeString", "description": "The type of resource referenced.", "computed": true + }, + "scope": { + "name": "scope", + "type": "TypeList", + "description": "The scope for this backup policy.", + "computed": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this enterprise.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this enterprise or account.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + } + } } } - } - ], - "ibm_is_backup_policy": [ - { - "name": "last_job_completed_at", - "type": "TypeString", - "description": "The date and time that the most recent job for this backup policy completed.", - "computed": true - }, - { - "name": "match_resource_types", - "type": "TypeList", - "description": "A resource type this backup policy applies to. Resources that have both a matching type and a matching user tag will be subject to the backup policy.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "match_user_tags", - "type": "TypeList", - "description": "The user tags this backup policy applies to. Resources that have both a matching user tag and a matching type will be subject to the backup policy.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this backup policy.", - "optional": true, - "computed": true }, { - "name": "created_at", + "name": "resource_group", "type": "TypeString", - "description": "The date and time that the backup policy was created.", - "computed": true - }, + "description": "Filters the collection to resources in the resource group with the specified identifier", + "cloud_data_type": "resource_group", + "optional": true + } + ], + "ibm_is_backup_policy": [ { - "name": "href", + "name": "lifecycle_state", "type": "TypeString", - "description": "The URL for this backup policy.", + "description": "The lifecycle state of the backup policy.", "computed": true }, { @@ -35905,6 +36343,74 @@ } } }, + { + "name": "health_state", + "type": "TypeString", + "description": "The health of this resource", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this backup policy.", + "optional": true, + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the backup policy was created.", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The type of resource referenced.", + "computed": true + }, + { + "name": "identifier", + "type": "TypeString", + "description": "The backup policy identifier.", + "optional": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this backup policy.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "last_job_completed_at", + "type": "TypeString", + "description": "The date and time that the most recent job for this backup policy completed.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this backup policy.", + "computed": true + }, + { + "name": "match_resource_types", + "type": "TypeList", + "description": "A resource type this backup policy applies to. Resources that have both a matching type and a matching user tag will be subject to the backup policy.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "match_user_tags", + "type": "TypeList", + "description": "The user tags this backup policy applies to. Resources that have both a matching user tag and a matching type will be subject to the backup policy.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "resource_group", "type": "TypeList", @@ -35933,62 +36439,47 @@ } }, { - "name": "identifier", - "type": "TypeString", - "description": "The backup policy identifier.", - "optional": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this backup policy.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "lifecycle_state", - "type": "TypeString", - "description": "The lifecycle state of the backup policy.", - "computed": true - } - ], - "ibm_is_backup_policy_job": [ - { - "name": "backup_policy_plan", + "name": "health_reasons", "type": "TypeList", - "description": "The backup policy plan operated this backup policy job (may be[deleted](https://cloud.ibm.com/apidocs/vpc#deleted-resources)).", + "description": "The reasons for the current health_state (if any).", "computed": true, "elem": { - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this health state.", + "computed": true }, - "href": { - "name": "href", + "message": { + "name": "message", "type": "TypeString", - "description": "The URL for this backup policy plan.", + "description": "An explanation of the reason for this health state.", "computed": true }, - "id": { - "name": "id", + "more_info": { + "name": "more_info", "type": "TypeString", - "description": "The unique identifier for this backup policy plan.", + "description": "Link to documentation about the reason for this health state.", + "computed": true + } + } + }, + { + "name": "scope", + "type": "TypeList", + "description": "The scope for this backup policy.", + "computed": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this enterprise.", "computed": true }, - "name": { - "name": "name", + "id": { + "name": "id", "type": "TypeString", - "description": "The unique user-defined name for this backup policy plan.", + "description": "The unique identifier for this enterprise or account.", "computed": true }, "resource_type": { @@ -35998,30 +36489,52 @@ "computed": true } } - }, + } + ], + "ibm_is_backup_policy_job": [ { - "name": "href", + "name": "status", "type": "TypeString", - "description": "The URL for this backup policy job.", + "description": "The status of the backup policy job.The enumerated values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the backup policy job on which the unexpected property value was encountered.", "computed": true }, { - "name": "completed_at", + "name": "job_type", "type": "TypeString", - "description": "The date and time that the backup policy job was completed.", + "description": "The type of backup policy job.The enumerated values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the backup policy job on which the unexpected property value was encountered.", "computed": true }, { - "name": "created_at", + "name": "resource_type", "type": "TypeString", - "description": "The date and time that the backup policy job was created.", + "description": "The resource type.", "computed": true }, { - "name": "auto_delete_after", - "type": "TypeInt", - "description": "If `auto_delete` is `true`, the days after completion that this backup policy job will be deleted. This value may be modifiable in the future.", - "computed": true + "name": "status_reasons", + "type": "TypeList", + "description": "The reasons for the current status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the status reason:- `internal_error`: Internal error (contact IBM support)- `snapshot_pending`: Cannot delete backup (snapshot) in the `pending` lifecycle state- `snapshot_volume_limit`: The snapshot limit for the source volume has been reached- `source_volume_busy`: The source volume has `busy` set (after multiple retries).", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the status reason.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about this status reason.", + "computed": true + } + } }, { "name": "identifier", @@ -36036,27 +36549,27 @@ "computed": true }, { - "name": "job_type", + "name": "created_at", "type": "TypeString", - "description": "The type of backup policy job.The enumerated values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the backup policy job on which the unexpected property value was encountered.", + "description": "The date and time that the backup policy job was created.", "computed": true }, { - "name": "resource_type", + "name": "href", "type": "TypeString", - "description": "The resource type.", + "description": "The URL for this backup policy job.", "computed": true }, { - "name": "source_volume", + "name": "target_snapshot", "type": "TypeList", - "description": "The source volume this backup was created from (may be[deleted](https://cloud.ibm.com/apidocs/vpc#deleted-resources)).", + "description": "The snapshot operated on by this backup policy job (may be[deleted](https://cloud.ibm.com/apidocs/vpc#deleted-resources)).", "computed": true, "elem": { "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN for this volume.", + "description": "The CRN for this snapshot.", "computed": true }, "deleted": { @@ -36076,71 +36589,97 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for this volume.", + "description": "The URL for this snapshot.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this volume.", + "description": "The unique identifier for this snapshot.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The unique user-defined name for this volume.", + "description": "The user-defined name for this snapshot.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", "computed": true } } }, { - "name": "status", + "name": "backup_policy_id", "type": "TypeString", - "description": "The status of the backup policy job.The enumerated values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the backup policy job on which the unexpected property value was encountered.", + "description": "The backup policy identifier.", + "required": true + }, + { + "name": "auto_delete_after", + "type": "TypeInt", + "description": "If `auto_delete` is `true`, the days after completion that this backup policy job will be deleted. This value may be modifiable in the future.", "computed": true }, { - "name": "status_reasons", + "name": "backup_policy_plan", "type": "TypeList", - "description": "The reasons for the current status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", + "description": "The backup policy plan operated this backup policy job (may be[deleted](https://cloud.ibm.com/apidocs/vpc#deleted-resources)).", "computed": true, "elem": { - "code": { - "name": "code", + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason:- `internal_error`: Internal error (contact IBM support)- `snapshot_pending`: Cannot delete backup (snapshot) in the `pending` lifecycle state- `snapshot_volume_limit`: The snapshot limit for the source volume has been reached- `source_volume_busy`: The source volume has `busy` set (after multiple retries).", + "description": "The URL for this backup policy plan.", "computed": true }, - "message": { - "name": "message", + "id": { + "name": "id", "type": "TypeString", - "description": "An explanation of the status reason.", + "description": "The unique identifier for this backup policy plan.", "computed": true }, - "more_info": { - "name": "more_info", + "name": { + "name": "name", "type": "TypeString", - "description": "Link to documentation about this status reason.", + "description": "The unique user-defined name for this backup policy plan.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", "computed": true } } }, { - "name": "backup_policy_id", - "type": "TypeString", - "description": "The backup policy identifier.", - "required": true - }, - { - "name": "target_snapshot", + "name": "source_volume", "type": "TypeList", - "description": "The snapshot operated on by this backup policy job (may be[deleted](https://cloud.ibm.com/apidocs/vpc#deleted-resources)).", + "description": "The source volume this backup was created from (may be[deleted](https://cloud.ibm.com/apidocs/vpc#deleted-resources)).", "computed": true, "elem": { "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN for this snapshot.", + "description": "The CRN for this volume.", "computed": true }, "deleted": { @@ -36160,31 +36699,61 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for this snapshot.", + "description": "The URL for this volume.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this snapshot.", + "description": "The unique identifier for this volume.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The user-defined name for this snapshot.", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", + "description": "The unique user-defined name for this volume.", "computed": true } } + }, + { + "name": "completed_at", + "type": "TypeString", + "description": "The date and time that the backup policy job was completed.", + "computed": true } ], "ibm_is_backup_policy_jobs": [ + { + "name": "target_snapshots_id", + "type": "TypeSet", + "description": "Filters the collection to resources with the target snapshot with the specified identifier", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "target_snapshots_crn", + "type": "TypeSet", + "description": "Filters the collection to backup policy jobs with the target snapshot with the specified CRN", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "backup_policy_plan_id", + "type": "TypeString", + "description": "Filters the collection to backup policy jobs with the backup plan with the specified identifier.", + "optional": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Filters the collection to backup policy jobs with the specified status", + "optional": true + }, { "name": "jobs", "type": "TypeList", @@ -36428,47 +36997,58 @@ "type": "TypeString", "description": "Filters the collection to backup policy jobs with a source with the specified identifier", "optional": true - }, + } + ], + "ibm_is_backup_policy_plan": [ { - "name": "target_snapshots_id", - "type": "TypeSet", - "description": "Filters the collection to resources with the target snapshot with the specified identifier", - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of this backup policy plan.", + "computed": true }, { - "name": "target_snapshots_crn", - "type": "TypeSet", - "description": "Filters the collection to backup policy jobs with the target snapshot with the specified CRN", - "optional": true, + "name": "remote_region_policy", + "type": "TypeList", + "description": "Policies for creating remote copies of this backup.", + "computed": true, "elem": { - "type": "TypeString" + "delete_over_count": { + "name": "delete_over_count", + "type": "TypeInt", + "description": "The maximum number of recent remote copies to keep in this region.", + "computed": true + }, + "encryption_key": { + "name": "encryption_key", + "type": "TypeString", + "description": "The CRN of the [Key Protect Root Key](https://cloud.ibm.com/docs/key-protect?topic=key-protect-getting-started-tutorial) or [Hyper Protect Crypto Services Root Key](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started) for this resource.", + "computed": true + }, + "region": { + "name": "region", + "type": "TypeString", + "description": "The globally unique name for this region.", + "computed": true + } } }, { - "name": "backup_policy_plan_id", + "name": "resource_type", "type": "TypeString", - "description": "Filters the collection to backup policy jobs with the backup plan with the specified identifier.", - "optional": true + "description": "The type of resource referenced.", + "computed": true }, { - "name": "status", + "name": "identifier", "type": "TypeString", - "description": "Filters the collection to backup policy jobs with the specified status", + "description": "The backup policy plan identifier.", "optional": true - } - ], - "ibm_is_backup_policy_plan": [ + }, { - "name": "attach_user_tags", - "type": "TypeList", - "description": "User tags to attach to each resource created by this plan.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "active", + "type": "TypeBool", + "description": "Indicates whether the plan is active.", + "computed": true }, { "name": "copy_user_tags", @@ -36476,12 +37056,30 @@ "description": "Indicates whether to copy the source's user tags to the created resource.", "computed": true }, + { + "name": "cron_spec", + "type": "TypeString", + "description": "The cron specification for the backup schedule.", + "computed": true + }, { "name": "href", "type": "TypeString", "description": "The URL for this backup policy plan.", "computed": true }, + { + "name": "backup_policy_id", + "type": "TypeString", + "description": "The backup policy identifier.", + "required": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the backup policy plan was created.", + "computed": true + }, { "name": "clone_policy", "type": "TypeList", @@ -36505,40 +37103,20 @@ } }, { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced.", - "computed": true - }, - { - "name": "backup_policy_id", - "type": "TypeString", - "description": "The backup policy identifier.", - "required": true - }, - { - "name": "lifecycle_state", - "type": "TypeString", - "description": "The lifecycle state of this backup policy plan.", - "computed": true - }, - { - "name": "created_at", + "name": "name", "type": "TypeString", - "description": "The date and time that the backup policy plan was created.", - "computed": true - }, - { - "name": "active", - "type": "TypeBool", - "description": "Indicates whether the plan is active.", + "description": "The unique user-defined name for this backup policy plan.", + "optional": true, "computed": true }, { - "name": "cron_spec", - "type": "TypeString", - "description": "The cron specification for the backup schedule.", - "computed": true + "name": "attach_user_tags", + "type": "TypeList", + "description": "User tags to attach to each resource created by this plan.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "deletion_trigger", @@ -36558,54 +37136,9 @@ "computed": true } } - }, - { - "name": "remote_region_policy", - "type": "TypeList", - "description": "Policies for creating remote copies of this backup.", - "computed": true, - "elem": { - "delete_over_count": { - "name": "delete_over_count", - "type": "TypeInt", - "description": "The maximum number of recent remote copies to keep in this region.", - "computed": true - }, - "encryption_key": { - "name": "encryption_key", - "type": "TypeString", - "description": "The CRN of the [Key Protect Root Key](https://cloud.ibm.com/docs/key-protect?topic=key-protect-getting-started-tutorial) or [Hyper Protect Crypto Services Root Key](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started) for this resource.", - "computed": true - }, - "region": { - "name": "region", - "type": "TypeString", - "description": "The globally unique name for this region.", - "computed": true - } - } - }, - { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this backup policy plan.", - "optional": true, - "computed": true - }, - { - "name": "identifier", - "type": "TypeString", - "description": "The backup policy plan identifier.", - "optional": true } ], "ibm_is_backup_policy_plans": [ - { - "name": "backup_policy_id", - "type": "TypeString", - "description": "The backup policy identifier.", - "required": true - }, { "name": "name", "type": "TypeString", @@ -36749,40 +37282,15 @@ "computed": true } } - } - ], - "ibm_is_bare_metal_server": [ - { - "name": "vpc", - "type": "TypeString", - "description": "The VPC the bare metal server is to be a part of", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "Bare metal server status", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this bare metal server", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "image", - "type": "TypeString", - "description": "image name", - "computed": true }, { - "name": "profile", + "name": "backup_policy_id", "type": "TypeString", - "description": "profil name", - "computed": true - }, + "description": "The backup policy identifier.", + "required": true + } + ], + "ibm_is_bare_metal_server": [ { "name": "resource_type", "type": "TypeString", @@ -36790,15 +37298,37 @@ "computed": true }, { - "name": "identifier", - "type": "TypeString", - "optional": true, - "computed": true + "name": "trusted_platform_module", + "type": "TypeList", + "computed": true, + "elem": { + "enabled": { + "name": "enabled", + "type": "TypeBool", + "description": "Indicates whether the trusted platform module is enabled.", + "computed": true + }, + "mode": { + "name": "mode", + "type": "TypeString", + "description": "The trusted platform module mode to use. The specified value must be listed in the bare metal server profile's supported_trusted_platform_module_modes", + "computed": true + }, + "supported_modes": { + "name": "supported_modes", + "type": "TypeSet", + "description": "The trusted platform module (TPM) mode:: disabled: No TPM functionality, tpm_2: TPM 2.0. The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered. Enum: [ disabled, tpm_2 ]", + "computed": true, + "elem": { + "type": "TypeString" + } + } + } }, { - "name": "bandwidth", - "type": "TypeInt", - "description": "The total bandwidth (in megabits per second)", + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the bare metal server was created", "computed": true }, { @@ -36833,12 +37363,99 @@ } } }, + { + "name": "image", + "type": "TypeString", + "description": "image name", + "computed": true + }, + { + "name": "zone", + "type": "TypeString", + "description": "Zone name", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource group name", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Bare metal server name", + "optional": true, + "computed": true + }, + { + "name": "boot_target", + "type": "TypeString", + "description": "The unique identifier for this bare metal server disk", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this bare metal server", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "tags", + "type": "TypeSet", + "description": "Tags for the Bare metal server", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "profile", + "type": "TypeString", + "description": "profil name", + "computed": true + }, + { + "name": "vpc", + "type": "TypeString", + "description": "The VPC the bare metal server is to be a part of", + "computed": true + }, + { + "name": "identifier", + "type": "TypeString", + "optional": true, + "computed": true + }, + { + "name": "bandwidth", + "type": "TypeInt", + "description": "The total bandwidth (in megabits per second)", + "computed": true + }, + { + "name": "enable_secure_boot", + "type": "TypeBool", + "description": "Indicates whether secure boot is enabled. If enabled, the image must support secure boot or the server will fail to boot.", + "computed": true + }, { "name": "href", "type": "TypeString", "description": "The URL for this bare metal server", "computed": true }, + { + "name": "memory", + "type": "TypeInt", + "description": "The amount of memory, truncated to whole gibibytes", + "computed": true + }, { "name": "primary_network_interface", "type": "TypeList", @@ -36926,83 +37543,64 @@ } }, { - "name": "zone", + "name": "status", "type": "TypeString", - "description": "Zone name", + "description": "Bare metal server status", "computed": true }, { - "name": "status_reasons", + "name": "access_tags", + "type": "TypeSet", + "description": "List of access tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "disks", "type": "TypeList", + "description": "The disks for this bare metal server, including any disks that are associated with the boot_target.", "computed": true, "elem": { - "code": { - "name": "code", + "href": { + "name": "href", "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason", + "description": "The URL for this bare metal server disk", "computed": true }, - "message": { - "name": "message", + "id": { + "name": "id", "type": "TypeString", - "description": "An explanation of the status reason", + "description": "The unique identifier for this bare metal server disk", "computed": true }, - "more_info": { - "name": "more_info", + "interface_type": { + "name": "interface_type", "type": "TypeString", - "description": "Link to documentation about this status reason", + "description": "The disk interface used for attaching the disk. Supported values are [ nvme, sata ]", "computed": true - } - } - }, - { - "name": "name", - "type": "TypeString", - "description": "Bare metal server name", - "optional": true, - "computed": true - }, - { - "name": "trusted_platform_module", - "type": "TypeList", - "computed": true, - "elem": { - "enabled": { - "name": "enabled", - "type": "TypeBool", - "description": "Indicates whether the trusted platform module is enabled.", + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this disk", "computed": true }, - "mode": { - "name": "mode", + "resource_type": { + "name": "resource_type", "type": "TypeString", - "description": "The trusted platform module mode to use. The specified value must be listed in the bare metal server profile's supported_trusted_platform_module_modes", + "description": "The resource type", "computed": true }, - "supported_modes": { - "name": "supported_modes", - "type": "TypeSet", - "description": "The trusted platform module (TPM) mode:: disabled: No TPM functionality, tpm_2: TPM 2.0. The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered. Enum: [ disabled, tpm_2 ]", - "computed": true, - "elem": { - "type": "TypeString" - } + "size": { + "name": "size", + "type": "TypeInt", + "description": "The size of the disk in GB (gigabytes)", + "computed": true } } }, - { - "name": "boot_target", - "type": "TypeString", - "description": "The unique identifier for this bare metal server disk", - "computed": true - }, - { - "name": "memory", - "type": "TypeInt", - "description": "The amount of memory, truncated to whole gibibytes", - "computed": true - }, { "name": "network_interfaces", "type": "TypeList", @@ -37093,103 +37691,32 @@ } }, { - "name": "resource_group", - "type": "TypeString", - "description": "Resource group name", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "Tags for the Bare metal server", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "enable_secure_boot", - "type": "TypeBool", - "description": "Indicates whether secure boot is enabled. If enabled, the image must support secure boot or the server will fail to boot.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the bare metal server was created", - "computed": true - }, - { - "name": "disks", + "name": "status_reasons", "type": "TypeList", - "description": "The disks for this bare metal server, including any disks that are associated with the boot_target.", "computed": true, "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this bare metal server disk", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this bare metal server disk", - "computed": true - }, - "interface_type": { - "name": "interface_type", + "code": { + "name": "code", "type": "TypeString", - "description": "The disk interface used for attaching the disk. Supported values are [ nvme, sata ]", + "description": "A snake case string succinctly identifying the status reason", "computed": true }, - "name": { - "name": "name", + "message": { + "name": "message", "type": "TypeString", - "description": "The user-defined name for this disk", + "description": "An explanation of the status reason", "computed": true }, - "resource_type": { - "name": "resource_type", + "more_info": { + "name": "more_info", "type": "TypeString", - "description": "The resource type", - "computed": true - }, - "size": { - "name": "size", - "type": "TypeInt", - "description": "The size of the disk in GB (gigabytes)", + "description": "Link to documentation about this status reason", "computed": true } } - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access tags", - "computed": true, - "elem": { - "type": "TypeString" - } } ], "ibm_is_bare_metal_server_disk": [ - { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this disk", - "computed": true - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type", - "computed": true - }, { "name": "size", "type": "TypeInt", @@ -37225,6 +37752,18 @@ "type": "TypeString", "description": "The disk interface used for attaching the disk. Supported values are [ nvme, sata ]", "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this disk", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type", + "computed": true } ], "ibm_is_bare_metal_server_disks": [ @@ -37280,6 +37819,13 @@ } ], "ibm_is_bare_metal_server_initialization": [ + { + "name": "passphrase", + "type": "TypeString", + "description": "Passphrase for Bare Metal Server Private Key file", + "secure": true, + "optional": true + }, { "name": "image", "type": "TypeString", @@ -37353,25 +37899,9 @@ "description": "Bare Metal Server Private Key file", "secure": true, "optional": true - }, - { - "name": "passphrase", - "type": "TypeString", - "description": "Passphrase for Bare Metal Server Private Key file", - "secure": true, - "optional": true } ], "ibm_is_bare_metal_server_network_interface": [ - { - "name": "allowed_vlans", - "type": "TypeSet", - "description": "Indicates what VLAN IDs (for VLAN type only) can use this physical (PCI type) interface. A given VLAN can only be in the allowed_vlans array for one PCI type adapter per bare metal server.", - "computed": true, - "elem": { - "type": "TypeInt" - } - }, { "name": "allow_ip_spoofing", "type": "TypeBool", @@ -37379,9 +37909,21 @@ "computed": true }, { - "name": "floating_ips", + "name": "mac_address", + "type": "TypeString", + "description": "The MAC address of the interface. If absent, the value is not known.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this network interface", + "computed": true + }, + { + "name": "primary_ip", "type": "TypeList", - "description": "The floating IPs associated with this network interface.", + "description": "IPv4, The IP address.", "computed": true, "elem": { "address": { @@ -37390,62 +37932,55 @@ "description": "The globally unique IP address", "computed": true }, - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this floating IP", - "computed": true - }, "href": { "name": "href", "type": "TypeString", - "description": "The URL for this floating IP", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this floating IP", + "description": "The URL for this reserved IP", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The unique user-defined name for this floating IP", + "description": "The user-defined name for this reserved IP. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the subnet the reserved IP resides in.", "computed": true }, "reserved_ip": { "name": "reserved_ip", "type": "TypeString", - "description": "The unique identifier for this floating IP", - "computed": true, - "deprecated": "This field is deprecated - replaced by id" + "description": "Identifies a reserved IP by a unique property.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type", + "computed": true } } }, { - "name": "interface_type", + "name": "resource_type", "type": "TypeString", - "description": "The network interface type: [ pci, vlan ]", + "description": "The resource type : [ subnet_reserved_ip ]", "computed": true }, { - "name": "name", + "name": "subnet", "type": "TypeString", - "description": "The user-defined name for this network interface", + "description": "The id of the associated subnet", "computed": true }, { - "name": "subnet", - "type": "TypeString", - "description": "The id of the associated subnet", + "name": "vlan", + "type": "TypeInt", + "description": "Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface", "computed": true }, { - "name": "bare_metal_server", - "type": "TypeString", - "description": "The bare metal server identifier", - "required": true + "name": "enable_infrastructure_nat", + "type": "TypeBool", + "description": "If true, the VPC infrastructure performs any needed NAT operations. If false, the packet is passed unmodified to/from the network interface, allowing the workload to perform any needed NAT operations.", + "computed": true }, { "name": "href", @@ -37454,16 +37989,19 @@ "computed": true }, { - "name": "allow_interface_to_float", - "type": "TypeBool", - "description": "Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.", + "name": "port_speed", + "type": "TypeInt", + "description": "The network interface port speed in Mbps", "computed": true }, { - "name": "mac_address", - "type": "TypeString", - "description": "The MAC address of the interface. If absent, the value is not known.", - "computed": true + "name": "allowed_vlans", + "type": "TypeSet", + "description": "Indicates what VLAN IDs (for VLAN type only) can use this physical (PCI type) interface. A given VLAN can only be in the allowed_vlans array for one PCI type adapter per bare metal server.", + "computed": true, + "elem": { + "type": "TypeInt" + } }, { "name": "type", @@ -37472,25 +38010,16 @@ "computed": true }, { - "name": "vlan", - "type": "TypeInt", - "description": "Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface", + "name": "allow_interface_to_float", + "type": "TypeBool", + "description": "Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.", "computed": true }, { - "name": "security_groups", - "type": "TypeSet", - "description": "Collection of security groups ids", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "status", + "name": "bare_metal_server", "type": "TypeString", - "description": "The status of the network interface : [ available, deleting, failed, pending ]", - "computed": true + "description": "The bare metal server identifier", + "required": true }, { "name": "network_interface", @@ -37499,21 +38028,9 @@ "required": true }, { - "name": "enable_infrastructure_nat", - "type": "TypeBool", - "description": "If true, the VPC infrastructure performs any needed NAT operations. If false, the packet is passed unmodified to/from the network interface, allowing the workload to perform any needed NAT operations.", - "computed": true - }, - { - "name": "port_speed", - "type": "TypeInt", - "description": "The network interface port speed in Mbps", - "computed": true - }, - { - "name": "primary_ip", + "name": "floating_ips", "type": "TypeList", - "description": "IPv4, The IP address.", + "description": "The floating IPs associated with this network interface.", "computed": true, "elem": { "address": { @@ -37522,36 +38039,58 @@ "description": "The globally unique IP address", "computed": true }, + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this floating IP", + "computed": true + }, "href": { "name": "href", "type": "TypeString", - "description": "The URL for this reserved IP", + "description": "The URL for this floating IP", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this floating IP", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The user-defined name for this reserved IP. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the subnet the reserved IP resides in.", + "description": "The unique user-defined name for this floating IP", "computed": true }, "reserved_ip": { "name": "reserved_ip", "type": "TypeString", - "description": "Identifies a reserved IP by a unique property.", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type", - "computed": true + "description": "The unique identifier for this floating IP", + "computed": true, + "deprecated": "This field is deprecated - replaced by id" } } }, { - "name": "resource_type", + "name": "interface_type", "type": "TypeString", - "description": "The resource type : [ subnet_reserved_ip ]", + "description": "The network interface type: [ pci, vlan ]", + "computed": true + }, + { + "name": "security_groups", + "type": "TypeSet", + "description": "Collection of security groups ids", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "status", + "type": "TypeString", + "description": "The status of the network interface : [ available, deleting, failed, pending ]", "computed": true } ], @@ -37562,12 +38101,6 @@ "description": "The bare metal server identifier", "required": true }, - { - "name": "network_interface", - "type": "TypeString", - "description": "The network interface identifier of bare metal server", - "required": true - }, { "name": "floating_ip", "type": "TypeString", @@ -37581,34 +38114,40 @@ "computed": true }, { - "name": "status", + "name": "target", "type": "TypeString", - "description": "Floating IP status", + "description": "Target info", "computed": true }, { - "name": "zone", + "name": "crn", "type": "TypeString", - "description": "Zone name", + "description": "Floating IP crn", + "cloud_data_type": "crn", "computed": true }, { - "name": "target", + "name": "network_interface", "type": "TypeString", - "description": "Target info", + "description": "The network interface identifier of bare metal server", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the floating IP", "computed": true }, { - "name": "crn", + "name": "status", "type": "TypeString", - "description": "Floating IP crn", - "cloud_data_type": "crn", + "description": "Floating IP status", "computed": true }, { - "name": "name", + "name": "zone", "type": "TypeString", - "description": "Name of the floating IP", + "description": "Zone name", "computed": true } ], @@ -37677,12 +38216,6 @@ } ], "ibm_is_bare_metal_server_network_interface_reserved_ip": [ - { - "name": "auto_delete", - "type": "TypeBool", - "description": "If set to true, this reserved IP will be automatically deleted", - "computed": true - }, { "name": "created_at", "type": "TypeString", @@ -37702,21 +38235,21 @@ "computed": true }, { - "name": "owner", + "name": "resource_type", "type": "TypeString", - "description": "The owner of a reserved IP, defining whether it is managed by the user or the provider.", + "description": "The resource type.", "computed": true }, { - "name": "resource_type", + "name": "target", "type": "TypeString", - "description": "The resource type.", + "description": "Reserved IP target id.", "computed": true }, { - "name": "bare_metal_server", + "name": "network_interface", "type": "TypeString", - "description": "The Bare Metal Server identifier.", + "description": "The Bare Metal Server network interface identifier.", "required": true }, { @@ -37726,15 +38259,15 @@ "required": true }, { - "name": "target", - "type": "TypeString", - "description": "Reserved IP target id.", + "name": "auto_delete", + "type": "TypeBool", + "description": "If set to true, this reserved IP will be automatically deleted", "computed": true }, { - "name": "network_interface", + "name": "bare_metal_server", "type": "TypeString", - "description": "The Bare Metal Server network interface identifier.", + "description": "The Bare Metal Server identifier.", "required": true }, { @@ -37742,9 +38275,21 @@ "type": "TypeString", "description": "The IP address", "computed": true + }, + { + "name": "owner", + "type": "TypeString", + "description": "The owner of a reserved IP, defining whether it is managed by the user or the provider.", + "computed": true } ], "ibm_is_bare_metal_server_network_interface_reserved_ips": [ + { + "name": "total_count", + "type": "TypeInt", + "description": "The total number of resources across all pages", + "computed": true + }, { "name": "bare_metal_server", "type": "TypeString", @@ -37818,15 +38363,15 @@ "computed": true } } - }, - { - "name": "total_count", - "type": "TypeInt", - "description": "The total number of resources across all pages", - "computed": true } ], "ibm_is_bare_metal_server_network_interfaces": [ + { + "name": "bare_metal_server", + "type": "TypeString", + "description": "The bare metal server identifier", + "required": true + }, { "name": "network_interfaces", "type": "TypeList", @@ -38019,42 +38564,13 @@ "computed": true } } - }, - { - "name": "bare_metal_server", - "type": "TypeString", - "description": "The bare metal server identifier", - "required": true } ], "ibm_is_bare_metal_server_profile": [ { - "name": "console_types", - "type": "TypeList", - "description": "The console type configuration for a bare metal server with this profile.", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - }, - "values": { - "name": "values", - "type": "TypeList", - "description": "The console types for a bare metal server with this profile.", - "computed": true, - "elem": { - "type": "TypeString" - } - } - } - }, - { - "name": "cpu_socket_count", + "name": "memory", "type": "TypeList", - "description": "The number of CPU sockets for a bare metal server with this profile", + "description": "The memory (in gibibytes) for a bare metal server with this profile", "computed": true, "elem": { "type": { @@ -38071,18 +38587,6 @@ } } }, - { - "name": "name", - "type": "TypeString", - "description": "The name for this bare metal server profile", - "required": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this bare metal server profile", - "computed": true - }, { "name": "os_architecture", "type": "TypeList", @@ -38190,9 +38694,55 @@ } }, { - "name": "family", + "name": "name", "type": "TypeString", - "description": "The product family this bare metal server profile belongs to", + "description": "The name for this bare metal server profile", + "required": true + }, + { + "name": "cpu_socket_count", + "type": "TypeList", + "description": "The number of CPU sockets for a bare metal server with this profile", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "The value for this profile field", + "computed": true + } + } + }, + { + "name": "cpu_core_count", + "type": "TypeList", + "description": "The CPU core count for a bare metal server with this profile", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "The value for this profile field", + "computed": true + } + } + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type for this bare metal server profile", "computed": true }, { @@ -38241,35 +38791,32 @@ } }, { - "name": "cpu_architecture", + "name": "console_types", "type": "TypeList", - "description": "The CPU architecture for a bare metal server with this profile", + "description": "The console type configuration for a bare metal server with this profile.", "computed": true, "elem": { "type": { "name": "type", "type": "TypeString", - "description": "The type for this profile field", + "description": "The type for this profile field.", "computed": true }, - "value": { - "name": "value", - "type": "TypeString", - "description": "The value for this profile field", - "computed": true + "values": { + "name": "values", + "type": "TypeList", + "description": "The console types for a bare metal server with this profile.", + "computed": true, + "elem": { + "type": "TypeString" + } } } }, { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type for this bare metal server profile", - "computed": true - }, - { - "name": "cpu_core_count", + "name": "cpu_architecture", "type": "TypeList", - "description": "The CPU core count for a bare metal server with this profile", + "description": "The CPU architecture for a bare metal server with this profile", "computed": true, "elem": { "type": { @@ -38280,27 +38827,7 @@ }, "value": { "name": "value", - "type": "TypeInt", - "description": "The value for this profile field", - "computed": true - } - } - }, - { - "name": "memory", - "type": "TypeList", - "description": "The memory (in gibibytes) for a bare metal server with this profile", - "computed": true, - "elem": { - "type": { - "name": "type", "type": "TypeString", - "description": "The type for this profile field", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", "description": "The value for this profile field", "computed": true } @@ -38328,6 +38855,18 @@ } } } + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this bare metal server profile", + "computed": true + }, + { + "name": "family", + "type": "TypeString", + "description": "The product family this bare metal server profile belongs to", + "computed": true } ], "ibm_is_bare_metal_server_profiles": [ @@ -38648,13 +39187,6 @@ } ], "ibm_is_bare_metal_servers": [ - { - "name": "resource_group", - "type": "TypeString", - "description": "The unique identifier of the resource group this bare metal server belongs to", - "cloud_data_type": "resource_group", - "optional": true - }, { "name": "vpc_crn", "type": "TypeString", @@ -38667,12 +39199,6 @@ "description": "The ID of the subnet of the bare metal server network interfaces", "optional": true }, - { - "name": "network_interfaces_subnet_crn", - "type": "TypeString", - "description": "The crn of the subnet of the bare metal server network interfaces", - "optional": true - }, { "name": "servers", "type": "TypeList", @@ -39100,9 +39626,10 @@ } }, { - "name": "vpc", + "name": "resource_group", "type": "TypeString", - "description": "The vpc ID this bare metal server is in", + "description": "The unique identifier of the resource group this bare metal server belongs to", + "cloud_data_type": "resource_group", "optional": true }, { @@ -39112,9 +39639,9 @@ "optional": true }, { - "name": "name", + "name": "network_interfaces_subnet_crn", "type": "TypeString", - "description": "The name of the bare metal server", + "description": "The crn of the subnet of the bare metal server network interfaces", "optional": true }, { @@ -39122,43 +39649,21 @@ "type": "TypeString", "description": "The name of the subnet of the bare metal server network interfaces", "optional": true - } - ], - "ibm_is_dedicated_host": [ + }, { - "name": "resource_group", + "name": "vpc", "type": "TypeString", - "description": "The unique identifier of the resource group this dedicated host belongs to", - "cloud_data_type": "resource_group", - "optional": true, - "computed": true + "description": "The vpc ID this bare metal server is in", + "optional": true }, { - "name": "available_vcpu", - "type": "TypeList", - "description": "The available VCPU for the dedicated host.", - "computed": true, - "elem": { - "architecture": { - "name": "architecture", - "type": "TypeString", - "description": "The VCPU architecture.", - "computed": true - }, - "count": { - "name": "count", - "type": "TypeInt", - "description": "The number of VCPUs assigned.", - "computed": true - }, - "manufacturer": { - "name": "manufacturer", - "type": "TypeString", - "description": "The VCPU manufacturer.", - "computed": true - } - } - }, + "name": "name", + "type": "TypeString", + "description": "The name of the bare metal server", + "optional": true + } + ], + "ibm_is_dedicated_host": [ { "name": "crn", "type": "TypeString", @@ -39167,134 +39672,31 @@ "computed": true }, { - "name": "disks", + "name": "href", + "type": "TypeString", + "description": "The URL for this dedicated host.", + "computed": true + }, + { + "name": "profile", "type": "TypeList", - "description": "Collection of the dedicated host's disks.", + "description": "The profile this dedicated host uses.", "computed": true, "elem": { - "available": { - "name": "available", - "type": "TypeInt", - "description": "The remaining space left for instance placement in GB (gigabytes).", - "computed": true - }, - "created_at": { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the disk was created.", - "computed": true - }, "href": { "name": "href", "type": "TypeString", - "description": "The URL for this disk.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this disk.", - "computed": true - }, - "instance_disks": { - "name": "instance_disks", - "type": "TypeList", - "description": "Instance disks that are on this dedicated host disk.", - "computed": true, - "elem": { - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this instance disk.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this instance disk.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this disk.", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", - "computed": true - } - } - }, - "interface_type": { - "name": "interface_type", - "type": "TypeString", - "description": "The disk interface used for attaching the diskThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", - "computed": true - }, - "lifecycle_state": { - "name": "lifecycle_state", - "type": "TypeString", - "description": "The lifecycle state of this dedicated host disk.", + "description": "The URL for this dedicated host.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The user-defined or system-provided name for this disk.", - "computed": true - }, - "provisionable": { - "name": "provisionable", - "type": "TypeBool", - "description": "Indicates whether this dedicated host disk is available for instance disk creation.", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced.", - "computed": true - }, - "size": { - "name": "size", - "type": "TypeInt", - "description": "The size of the disk in GB (gigabytes).", + "description": "The globally unique name for this dedicated host profile.", "computed": true - }, - "supported_instance_interface_types": { - "name": "supported_instance_interface_types", - "type": "TypeList", - "description": "The instance disk interfaces supported for this dedicated host disk.", - "computed": true, - "elem": { - "type": "TypeString" - } } } }, - { - "name": "instance_placement_enabled", - "type": "TypeBool", - "description": "If set to true, instances can be placed on this dedicated host.", - "computed": true - }, { "name": "resource_type", "type": "TypeString", @@ -39302,103 +39704,29 @@ "computed": true }, { - "name": "state", - "type": "TypeString", - "description": "The administrative state of the dedicated host.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the dedicated host on which the unexpected property value was encountered.", - "computed": true - }, - { - "name": "zone", - "type": "TypeString", - "description": "The globally unique name of the zone this dedicated host resides in.", + "name": "socket_count", + "type": "TypeInt", + "description": "The total number of sockets for this host.", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The unique name of this dedicated host", - "required": true - }, - { - "name": "created_at", + "name": "state", "type": "TypeString", - "description": "The date and time that the dedicated host was created.", + "description": "The administrative state of the dedicated host.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the dedicated host on which the unexpected property value was encountered.", "computed": true }, { - "name": "href", + "name": "resource_group", "type": "TypeString", - "description": "The URL for this dedicated host.", - "computed": true - }, - { - "name": "instances", - "type": "TypeList", - "description": "Array of instances that are allocated to this dedicated host.", - "computed": true, - "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this virtual server instance.", - "computed": true - }, - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this virtual server instance.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this virtual server instance.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this virtual server instance (and default system hostname).", - "computed": true - } - } - }, - { - "name": "memory", - "type": "TypeInt", - "description": "The total amount of memory in gibibytes for this host.", - "computed": true - }, - { - "name": "provisionable", - "type": "TypeBool", - "description": "Indicates whether this dedicated host is available for instance creation.", - "computed": true - }, - { - "name": "socket_count", - "type": "TypeInt", - "description": "The total number of sockets for this host.", + "description": "The unique identifier of the resource group this dedicated host belongs to", + "cloud_data_type": "resource_group", + "optional": true, "computed": true }, { - "name": "vcpu", + "name": "available_vcpu", "type": "TypeList", - "description": "The total VCPU of the dedicated host.", + "description": "The available VCPU for the dedicated host.", "computed": true, "elem": { "architecture": { @@ -39422,49 +39750,217 @@ } }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "host_group", + "name": "created_at", "type": "TypeString", - "description": "The unique identifier of the dedicated host group this dedicated host belongs to", - "required": true + "description": "The date and time that the dedicated host was created.", + "computed": true }, { - "name": "lifecycle_state", - "type": "TypeString", - "description": "The lifecycle state of the dedicated host resource.", - "computed": true + "name": "disks", + "type": "TypeList", + "description": "Collection of the dedicated host's disks.", + "computed": true, + "elem": { + "available": { + "name": "available", + "type": "TypeInt", + "description": "The remaining space left for instance placement in GB (gigabytes).", + "computed": true + }, + "created_at": { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the disk was created.", + "computed": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this disk.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this disk.", + "computed": true + }, + "instance_disks": { + "name": "instance_disks", + "type": "TypeList", + "description": "Instance disks that are on this dedicated host disk.", + "computed": true, + "elem": { + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this instance disk.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this instance disk.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this disk.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + } + } + }, + "interface_type": { + "name": "interface_type", + "type": "TypeString", + "description": "The disk interface used for attaching the diskThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", + "computed": true + }, + "lifecycle_state": { + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of this dedicated host disk.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined or system-provided name for this disk.", + "computed": true + }, + "provisionable": { + "name": "provisionable", + "type": "TypeBool", + "description": "Indicates whether this dedicated host disk is available for instance disk creation.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The type of resource referenced.", + "computed": true + }, + "size": { + "name": "size", + "type": "TypeInt", + "description": "The size of the disk in GB (gigabytes).", + "computed": true + }, + "supported_instance_interface_types": { + "name": "supported_instance_interface_types", + "type": "TypeList", + "description": "The instance disk interfaces supported for this dedicated host disk.", + "computed": true, + "elem": { + "type": "TypeString" + } + } + } }, { - "name": "available_memory", - "type": "TypeInt", - "description": "The amount of memory in gibibytes that is currently available for instances.", + "name": "instance_placement_enabled", + "type": "TypeBool", + "description": "If set to true, instances can be placed on this dedicated host.", "computed": true }, { - "name": "profile", + "name": "instances", "type": "TypeList", - "description": "The profile this dedicated host uses.", + "description": "Array of instances that are allocated to this dedicated host.", "computed": true, "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this virtual server instance.", + "computed": true + }, + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, "href": { "name": "href", "type": "TypeString", - "description": "The URL for this dedicated host.", + "description": "The URL for this virtual server instance.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this virtual server instance.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The globally unique name for this dedicated host profile.", + "description": "The user-defined name for this virtual server instance (and default system hostname).", + "computed": true + } + } + }, + { + "name": "numa", + "type": "TypeList", + "description": "The dedicated host NUMA configuration", + "computed": true, + "elem": { + "count": { + "name": "count", + "type": "TypeInt", + "description": "The total number of NUMA nodes for this dedicated host", "computed": true + }, + "nodes": { + "name": "nodes", + "type": "TypeList", + "description": "The NUMA nodes for this dedicated host.", + "computed": true, + "elem": { + "available_vcpu": { + "name": "available_vcpu", + "type": "TypeInt", + "description": "The available VCPU for this NUMA node.", + "computed": true + }, + "vcpu": { + "name": "vcpu", + "type": "TypeInt", + "description": "The total VCPU capacity for this NUMA node.", + "computed": true + } + } } } }, @@ -39487,19 +39983,90 @@ "computed": true } } - } - ], - "ibm_is_dedicated_host_disk": [ + }, { - "name": "created_at", + "name": "name", "type": "TypeString", - "description": "The date and time that the disk was created.", + "description": "The unique name of this dedicated host", + "required": true + }, + { + "name": "available_memory", + "type": "TypeInt", + "description": "The amount of memory in gibibytes that is currently available for instances.", "computed": true }, { - "name": "interface_type", + "name": "memory", + "type": "TypeInt", + "description": "The total amount of memory in gibibytes for this host.", + "computed": true + }, + { + "name": "provisionable", + "type": "TypeBool", + "description": "Indicates whether this dedicated host is available for instance creation.", + "computed": true + }, + { + "name": "vcpu", + "type": "TypeList", + "description": "The total VCPU of the dedicated host.", + "computed": true, + "elem": { + "architecture": { + "name": "architecture", + "type": "TypeString", + "description": "The VCPU architecture.", + "computed": true + }, + "count": { + "name": "count", + "type": "TypeInt", + "description": "The number of VCPUs assigned.", + "computed": true + }, + "manufacturer": { + "name": "manufacturer", + "type": "TypeString", + "description": "The VCPU manufacturer.", + "computed": true + } + } + }, + { + "name": "zone", "type": "TypeString", - "description": "The disk interface used for attaching the diskThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", + "description": "The globally unique name of the zone this dedicated host resides in.", + "computed": true + }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "host_group", + "type": "TypeString", + "description": "The unique identifier of the dedicated host group this dedicated host belongs to", + "required": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the dedicated host resource.", + "computed": true + } + ], + "ibm_is_dedicated_host_disk": [ + { + "name": "provisionable", + "type": "TypeBool", + "description": "Indicates whether this dedicated host disk is available for instance disk creation.", "computed": true }, { @@ -39515,10 +40082,10 @@ "computed": true }, { - "name": "available", - "type": "TypeInt", - "description": "The remaining space left for instance placement in GB (gigabytes).", - "computed": true + "name": "dedicated_host", + "type": "TypeString", + "description": "The dedicated host identifier.", + "required": true }, { "name": "disk", @@ -39532,6 +40099,39 @@ "description": "The URL for this disk.", "computed": true }, + { + "name": "interface_type", + "type": "TypeString", + "description": "The disk interface used for attaching the diskThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The user-defined or system-provided name for this disk.", + "computed": true + }, + { + "name": "supported_instance_interface_types", + "type": "TypeList", + "description": "The instance disk interfaces supported for this dedicated host disk.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "available", + "type": "TypeInt", + "description": "The remaining space left for instance placement in GB (gigabytes).", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the disk was created.", + "computed": true + }, { "name": "instance_disks", "type": "TypeList", @@ -39583,36 +40183,15 @@ "type": "TypeString", "description": "The lifecycle state of this dedicated host disk.", "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The user-defined or system-provided name for this disk.", - "computed": true - }, - { - "name": "provisionable", - "type": "TypeBool", - "description": "Indicates whether this dedicated host disk is available for instance disk creation.", - "computed": true - }, - { - "name": "supported_instance_interface_types", - "type": "TypeList", - "description": "The instance disk interfaces supported for this dedicated host disk.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, + } + ], + "ibm_is_dedicated_host_disks": [ { "name": "dedicated_host", "type": "TypeString", "description": "The dedicated host identifier.", "required": true - } - ], - "ibm_is_dedicated_host_disks": [ + }, { "name": "disks", "type": "TypeList", @@ -39735,15 +40314,28 @@ } } } - }, - { - "name": "dedicated_host", - "type": "TypeString", - "description": "The dedicated host identifier.", - "required": true } ], "ibm_is_dedicated_host_group": [ + { + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this dedicated host. If unspecified, the name will be a hyphenated list of randomly-selected words.", + "required": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the dedicated host group was created.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this dedicated host group.", + "cloud_data_type": "crn", + "computed": true + }, { "name": "resource_group", "type": "TypeString", @@ -39752,10 +40344,24 @@ "computed": true }, { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced.", - "computed": true + "name": "supported_instance_profiles", + "type": "TypeList", + "description": "Array of instance profiles that can be used by instances placed on this dedicated host group.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this virtual server instance profile.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The globally unique name for this virtual server instance profile.", + "computed": true + } + } }, { "name": "zone", @@ -39764,10 +40370,9 @@ "computed": true }, { - "name": "crn", + "name": "class", "type": "TypeString", - "description": "The CRN for this dedicated host group.", - "cloud_data_type": "crn", + "description": "The dedicated host profile class for hosts in this group.", "computed": true }, { @@ -39822,12 +40427,6 @@ } } }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this dedicated host group.", - "computed": true - }, { "name": "family", "type": "TypeString", @@ -39835,41 +40434,15 @@ "computed": true }, { - "name": "supported_instance_profiles", - "type": "TypeList", - "description": "Array of instance profiles that can be used by instances placed on this dedicated host group.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this virtual server instance profile.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The globally unique name for this virtual server instance profile.", - "computed": true - } - } - }, - { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this dedicated host. If unspecified, the name will be a hyphenated list of randomly-selected words.", - "required": true - }, - { - "name": "class", + "name": "href", "type": "TypeString", - "description": "The dedicated host profile class for hosts in this group.", + "description": "The URL for this dedicated host group.", "computed": true }, { - "name": "created_at", + "name": "resource_type", "type": "TypeString", - "description": "The date and time that the dedicated host group was created.", + "description": "The type of resource referenced.", "computed": true } ], @@ -40042,26 +40615,7 @@ ], "ibm_is_dedicated_host_profile": [ { - "name": "vcpu_architecture", - "type": "TypeList", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "The VCPU architecture for a dedicated host with this profile.", - "computed": true - } - } - }, - { - "name": "vcpu_count", + "name": "memory", "type": "TypeList", "computed": true, "elem": { @@ -40113,32 +40667,7 @@ } }, { - "name": "vcpu_manufacturer", - "type": "TypeList", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "The VCPU manufacturer for a dedicated host with this profile.", - "computed": true - } - } - }, - { - "name": "name", - "type": "TypeString", - "description": "The globally unique name for this virtual server instance profile.", - "optional": true - }, - { - "name": "memory", + "name": "socket_count", "type": "TypeList", "computed": true, "elem": { @@ -40190,34 +40719,16 @@ } }, { - "name": "socket_count", + "name": "status", + "type": "TypeString", + "description": "The status of the dedicated host profile.", + "computed": true + }, + { + "name": "vcpu_architecture", "type": "TypeList", "computed": true, "elem": { - "default": { - "name": "default", - "type": "TypeInt", - "description": "The default value for this profile field.", - "computed": true - }, - "max": { - "name": "max", - "type": "TypeInt", - "description": "The maximum value for this profile field.", - "computed": true - }, - "min": { - "name": "min", - "type": "TypeInt", - "description": "The minimum value for this profile field.", - "computed": true - }, - "step": { - "name": "step", - "type": "TypeInt", - "description": "The increment step value for this profile field.", - "computed": true - }, "type": { "name": "type", "type": "TypeString", @@ -40226,37 +40737,8 @@ }, "value": { "name": "value", - "type": "TypeInt", - "description": "The value for this profile field.", - "computed": true - }, - "values": { - "name": "values", - "type": "TypeList", - "description": "The permitted values for this profile field.", - "computed": true, - "elem": { - "type": "TypeInt" - } - } - } - }, - { - "name": "supported_instance_profiles", - "type": "TypeList", - "description": "Array of instance profiles that can be used by instances placed on dedicated hosts with this profile.", - "computed": true, - "elem": { - "href": { - "name": "href", "type": "TypeString", - "description": "The URL for this virtual server instance profile.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The globally unique name for this virtual server instance profile.", + "description": "The VCPU architecture for a dedicated host with this profile.", "computed": true } } @@ -40367,6 +40849,103 @@ "type": "TypeString", "description": "The URL for this dedicated host.", "computed": true + }, + { + "name": "vcpu_count", + "type": "TypeList", + "computed": true, + "elem": { + "default": { + "name": "default", + "type": "TypeInt", + "description": "The default value for this profile field.", + "computed": true + }, + "max": { + "name": "max", + "type": "TypeInt", + "description": "The maximum value for this profile field.", + "computed": true + }, + "min": { + "name": "min", + "type": "TypeInt", + "description": "The minimum value for this profile field.", + "computed": true + }, + "step": { + "name": "step", + "type": "TypeInt", + "description": "The increment step value for this profile field.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "The value for this profile field.", + "computed": true + }, + "values": { + "name": "values", + "type": "TypeList", + "description": "The permitted values for this profile field.", + "computed": true, + "elem": { + "type": "TypeInt" + } + } + } + }, + { + "name": "vcpu_manufacturer", + "type": "TypeList", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "The VCPU manufacturer for a dedicated host with this profile.", + "computed": true + } + } + }, + { + "name": "name", + "type": "TypeString", + "description": "The globally unique name for this virtual server instance profile.", + "optional": true + }, + { + "name": "supported_instance_profiles", + "type": "TypeList", + "description": "Array of instance profiles that can be used by instances placed on dedicated hosts with this profile.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this virtual server instance profile.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The globally unique name for this virtual server instance profile.", + "computed": true + } + } } ], "ibm_is_dedicated_host_profiles": [ @@ -40593,6 +41172,12 @@ } } }, + "status": { + "name": "status", + "type": "TypeString", + "description": "The status of the dedicated host profile.", + "computed": true + }, "supported_instance_profiles": { "name": "supported_instance_profiles", "type": "TypeList", @@ -40713,6 +41298,12 @@ } ], "ibm_is_dedicated_hosts": [ + { + "name": "host_group", + "type": "TypeString", + "description": "The unique identifier of the dedicated host group this dedicated host belongs to", + "optional": true + }, { "name": "resource_group", "type": "TypeString", @@ -41002,6 +41593,40 @@ "description": "The unique user-defined name for this dedicated host. If unspecified, the name will be a hyphenated list of randomly-selected words.", "computed": true }, + "numa": { + "name": "numa", + "type": "TypeList", + "description": "The dedicated host NUMA configuration", + "computed": true, + "elem": { + "count": { + "name": "count", + "type": "TypeInt", + "description": "The total number of NUMA nodes for this dedicated host", + "computed": true + }, + "nodes": { + "name": "nodes", + "type": "TypeList", + "description": "The NUMA nodes for this dedicated host.", + "computed": true, + "elem": { + "available_vcpu": { + "name": "available_vcpu", + "type": "TypeInt", + "description": "The available VCPU for this NUMA node.", + "computed": true + }, + "vcpu": { + "name": "vcpu", + "type": "TypeInt", + "description": "The total VCPU capacity for this NUMA node.", + "computed": true + } + } + } + } + }, "profile": { "name": "profile", "type": "TypeList", @@ -41111,12 +41736,6 @@ "type": "TypeInt", "description": "The total number of resources across all pages.", "computed": true - }, - { - "name": "host_group", - "type": "TypeString", - "description": "The unique identifier of the dedicated host group this dedicated host belongs to", - "optional": true } ], "ibm_is_endpoint_gateway_targets": [ @@ -41176,47 +41795,15 @@ ], "ibm_is_floating_ip": [ { - "name": "target", - "type": "TypeString", - "description": "Target info", - "computed": true - }, - { - "name": "crn", + "name": "address", "type": "TypeString", - "description": "Floating IP crn", - "cloud_data_type": "crn", + "description": "Floating IP address", "computed": true }, { - "name": "tags", - "type": "TypeSet", - "description": "Floating IP tags", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the floating IP", - "required": true - }, - { - "name": "address", + "name": "target", "type": "TypeString", - "description": "Floating IP address", + "description": "Target info", "computed": true }, { @@ -41309,6 +41896,28 @@ } } }, + { + "name": "crn", + "type": "TypeString", + "description": "Floating IP crn", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the floating IP", + "required": true + }, { "name": "status", "type": "TypeString", @@ -41320,9 +41929,26 @@ "type": "TypeString", "description": "Zone name", "computed": true + }, + { + "name": "tags", + "type": "TypeSet", + "description": "Floating IP tags", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } } ], "ibm_is_floating_ips": [ + { + "name": "resource_group", + "type": "TypeString", + "description": "The unique identifier of the resource group this floating ips belongs to", + "cloud_data_type": "resource_group", + "optional": true + }, { "name": "name", "type": "TypeString", @@ -41529,34 +42155,9 @@ } } } - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "The unique identifier of the resource group this floating ips belongs to", - "cloud_data_type": "resource_group", - "optional": true } ], "ibm_is_flow_log": [ - { - "name": "identifier", - "type": "TypeString", - "description": "The flow log collector identifier.", - "optional": true - }, - { - "name": "active", - "type": "TypeBool", - "description": "Indicates whether this collector is active.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this flow log collector.", - "computed": true - }, { "name": "lifecycle_state", "type": "TypeString", @@ -41591,20 +42192,31 @@ } }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", + "name": "storage_bucket", + "type": "TypeList", + "description": "The Cloud Object Storage bucket where the collected flows are logged.", "computed": true, "elem": { - "type": "TypeString" + "name": { + "name": "name", + "type": "TypeString", + "description": "The globally unique name of this COS bucket.", + "computed": true + } } }, { - "name": "name", + "name": "identifier", "type": "TypeString", - "description": "The unique user-defined name for this flow log collector.", + "description": "The flow log collector identifier.", "optional": true }, + { + "name": "active", + "type": "TypeBool", + "description": "Indicates whether this collector is active.", + "computed": true + }, { "name": "auto_delete", "type": "TypeBool", @@ -41624,20 +42236,6 @@ "cloud_data_type": "crn", "computed": true }, - { - "name": "storage_bucket", - "type": "TypeList", - "description": "The Cloud Object Storage bucket where the collected flows are logged.", - "computed": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "The globally unique name of this COS bucket.", - "computed": true - } - } - }, { "name": "target", "type": "TypeList", @@ -41690,6 +42288,18 @@ } } }, + { + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this flow log collector.", + "optional": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this flow log collector.", + "computed": true + }, { "name": "vpc", "type": "TypeList", @@ -41735,9 +42345,55 @@ "computed": true } } + }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "computed": true, + "elem": { + "type": "TypeString" + } } ], "ibm_is_flow_logs": [ + { + "name": "resource_group", + "type": "TypeString", + "description": "The unique identifier of the resource group this flow log belongs to", + "cloud_data_type": "resource_group", + "optional": true + }, + { + "name": "vpc", + "type": "TypeString", + "description": "The vpc ID this flow log is in", + "optional": true + }, + { + "name": "vpc_name", + "type": "TypeString", + "description": "The vpc name this flow log is in", + "optional": true + }, + { + "name": "vpc_crn", + "type": "TypeString", + "description": "The vpc CRN this flow log is in", + "optional": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the flow log", + "optional": true + }, + { + "name": "target", + "type": "TypeString", + "description": "The target id of the flow log", + "optional": true + }, { "name": "target_resource_type", "type": "TypeString", @@ -41835,43 +42491,6 @@ "computed": true } } - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "The unique identifier of the resource group this flow log belongs to", - "cloud_data_type": "resource_group", - "optional": true - }, - { - "name": "vpc", - "type": "TypeString", - "description": "The vpc ID this flow log is in", - "optional": true - }, - { - "name": "vpc_name", - "type": "TypeString", - "description": "The vpc name this flow log is in", - "optional": true - }, - { - "name": "vpc_crn", - "type": "TypeString", - "description": "The vpc CRN this flow log is in", - "optional": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the flow log", - "optional": true - }, - { - "name": "target", - "type": "TypeString", - "description": "The target id of the flow log", - "optional": true } ], "ibm_is_ike_policies": [ @@ -42023,6 +42642,54 @@ } ], "ibm_is_ike_policy": [ + { + "name": "name", + "type": "TypeString", + "description": "The IKE policy name.", + "optional": true + }, + { + "name": "authentication_algorithm", + "type": "TypeString", + "description": "The authentication algorithm.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that this IKE policy was created.", + "computed": true + }, + { + "name": "dh_group", + "type": "TypeInt", + "description": "The Diffie-Hellman group.", + "computed": true + }, + { + "name": "encryption_algorithm", + "type": "TypeString", + "description": "The encryption algorithm.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The IKE policy's canonical URL.", + "computed": true + }, + { + "name": "ike_version", + "type": "TypeInt", + "description": "The IKE protocol version.", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + }, { "name": "ike_policy", "type": "TypeString", @@ -42076,15 +42743,9 @@ } }, { - "name": "ike_version", + "name": "key_lifetime", "type": "TypeInt", - "description": "The IKE protocol version.", - "computed": true - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", + "description": "The key lifetime in seconds.", "computed": true }, { @@ -42093,48 +42754,6 @@ "description": "The IKE negotiation mode. Only `main` is supported.", "computed": true }, - { - "name": "name", - "type": "TypeString", - "description": "The IKE policy name.", - "optional": true - }, - { - "name": "authentication_algorithm", - "type": "TypeString", - "description": "The authentication algorithm.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that this IKE policy was created.", - "computed": true - }, - { - "name": "dh_group", - "type": "TypeInt", - "description": "The Diffie-Hellman group.", - "computed": true - }, - { - "name": "encryption_algorithm", - "type": "TypeString", - "description": "The encryption algorithm.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The IKE policy's canonical URL.", - "computed": true - }, - { - "name": "key_lifetime", - "type": "TypeInt", - "description": "The key lifetime in seconds.", - "computed": true - }, { "name": "resource_group", "type": "TypeList", @@ -42165,28 +42784,27 @@ ], "ibm_is_image": [ { - "name": "name", + "name": "obsolescence_at", "type": "TypeString", - "description": "Image name", - "optional": true + "description": "The obsolescence date and time (UTC) for this image. If absent, no obsolescence date and time has been set.", + "computed": true }, { - "name": "os", + "name": "name", "type": "TypeString", - "description": "Image Operating system", - "computed": true + "description": "Image name", + "optional": true }, { - "name": "architecture", + "name": "visibility", "type": "TypeString", - "description": "The operating system architecture", - "computed": true + "description": "Whether the image is publicly visible or private to the account", + "optional": true }, { - "name": "crn", + "name": "status", "type": "TypeString", - "description": "The CRN for this image", - "cloud_data_type": "crn", + "description": "The status of this image", "computed": true }, { @@ -42196,10 +42814,10 @@ "computed": true }, { - "name": "visibility", + "name": "encryption", "type": "TypeString", - "description": "Whether the image is publicly visible or private to the account", - "optional": true + "description": "The type of encryption used on the image", + "computed": true }, { "name": "source_volume", @@ -42207,6 +42825,12 @@ "description": "Source volume id of the image", "computed": true }, + { + "name": "deprecation_at", + "type": "TypeString", + "description": "The deprecation date and time (UTC) for this image. If absent, no deprecation date and time has been set.", + "computed": true + }, { "name": "catalog_offering", "type": "TypeList", @@ -42235,33 +42859,43 @@ } }, { - "name": "identifier", + "name": "crn", "type": "TypeString", - "description": "Image id", - "optional": true + "description": "The CRN for this image", + "cloud_data_type": "crn", + "computed": true }, { - "name": "status", + "name": "created_at", "type": "TypeString", - "description": "The status of this image", + "description": "The date and time that the image was created", "computed": true }, { - "name": "encryption", + "name": "access_tags", + "type": "TypeSet", + "description": "List of access tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "identifier", "type": "TypeString", - "description": "The type of encryption used on the image", - "computed": true + "description": "Image id", + "optional": true }, { - "name": "created_at", + "name": "os", "type": "TypeString", - "description": "The date and time that the image was created", + "description": "Image Operating system", "computed": true }, { - "name": "deprecation_at", + "name": "architecture", "type": "TypeString", - "description": "The deprecation date and time (UTC) for this image. If absent, no deprecation date and time has been set.", + "description": "The operating system architecture", "computed": true }, { @@ -42269,55 +42903,76 @@ "type": "TypeString", "description": "The CRN of the Key Protect Root Key or Hyper Protect Crypto Service Root Key for this resource", "computed": true - }, + } + ], + "ibm_is_image_export_job": [ { - "name": "obsolescence_at", + "name": "resource_type", "type": "TypeString", - "description": "The obsolescence date and time (UTC) for this image. If absent, no obsolescence date and time has been set.", + "description": "The type of resource referenced.", "computed": true }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access tags", + "name": "status_reasons", + "type": "TypeList", + "description": "The reasons for the current status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", "computed": true, "elem": { - "type": "TypeString" + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the status reason.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the status reason.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about this status reason.", + "computed": true + } } - } - ], - "ibm_is_image_export_job": [ + }, { - "name": "image", + "name": "name", "type": "TypeString", - "description": "The image identifier.", + "description": "The user-defined name for this image export job.", + "computed": true + }, + { + "name": "encrypted_data_key", + "type": "TypeString", + "description": "A base64-encoded, encrypted representation of the key that was used to encrypt the data for the exported image. This key can be unwrapped with the image's `encryption_key` root key using either Key Protect or Hyper Protect Crypto Service.If absent, the export job is for an unencrypted image.", + "computed": true + }, + { + "name": "image_export_job", + "type": "TypeString", + "description": "The image export job identifier.", "required": true }, { - "name": "name", + "name": "completed_at", "type": "TypeString", - "description": "The user-defined name for this image export job.", + "description": "The date and time that the image export job was completed.If absent, the export job has not yet completed.", "computed": true }, { - "name": "started_at", + "name": "created_at", "type": "TypeString", - "description": "The date and time that the image export job started running.If absent, the export job has not yet started.", + "description": "The date and time that the image export job was created.", "computed": true }, { - "name": "storage_object", - "type": "TypeList", - "description": "The Cloud Object Storage object for the exported image. This object may not exist untilthe job is started, and will not be complete until the job completes.", - "computed": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "The name of this Cloud Object Storage object. Names are unique within a Cloud Object Storage bucket.", - "computed": true - } - } + "name": "href", + "type": "TypeString", + "description": "The URL for this image export job.", + "computed": true }, { "name": "status", @@ -42346,77 +43001,41 @@ } }, { - "name": "storage_href", - "type": "TypeString", - "description": "The Cloud Object Storage location of the exported image object. The object at this location may not exist until the job is started, and will be incomplete while the job is running.After the job completes, the exported image object is not managed by the IBM VPC service, and may be removed or replaced with a different object by any user or service with IAM authorization to the bucket.", - "computed": true - }, - { - "name": "format", + "name": "image", "type": "TypeString", - "description": "The format of the exported image.", - "computed": true + "description": "The image identifier.", + "required": true }, { - "name": "resource_type", + "name": "started_at", "type": "TypeString", - "description": "The type of resource referenced.", + "description": "The date and time that the image export job started running.If absent, the export job has not yet started.", "computed": true }, { - "name": "href", + "name": "storage_href", "type": "TypeString", - "description": "The URL for this image export job.", + "description": "The Cloud Object Storage location of the exported image object. The object at this location may not exist until the job is started, and will be incomplete while the job is running.After the job completes, the exported image object is not managed by the IBM VPC service, and may be removed or replaced with a different object by any user or service with IAM authorization to the bucket.", "computed": true }, { - "name": "status_reasons", + "name": "storage_object", "type": "TypeList", - "description": "The reasons for the current status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", + "description": "The Cloud Object Storage object for the exported image. This object may not exist untilthe job is started, and will not be complete until the job completes.", "computed": true, "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the status reason.", - "computed": true - }, - "more_info": { - "name": "more_info", + "name": { + "name": "name", "type": "TypeString", - "description": "Link to documentation about this status reason.", + "description": "The name of this Cloud Object Storage object. Names are unique within a Cloud Object Storage bucket.", "computed": true } } }, { - "name": "image_export_job", - "type": "TypeString", - "description": "The image export job identifier.", - "required": true - }, - { - "name": "completed_at", - "type": "TypeString", - "description": "The date and time that the image export job was completed.If absent, the export job has not yet completed.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the image export job was created.", - "computed": true - }, - { - "name": "encrypted_data_key", + "name": "format", "type": "TypeString", - "description": "A base64-encoded, encrypted representation of the key that was used to encrypt the data for the exported image. This key can be unwrapped with the image's `encryption_key` root key using either Key Protect or Hyper Protect Crypto Service.If absent, the export job is for an unencrypted image.", + "description": "The format of the exported image.", "computed": true } ], @@ -42563,6 +43182,13 @@ } ], "ibm_is_images": [ + { + "name": "resource_group", + "type": "TypeString", + "description": "The id of the resource group", + "cloud_data_type": "resource_group", + "optional": true + }, { "name": "catalog_managed", "type": "TypeBool", @@ -42711,20 +43337,116 @@ "computed": true } } + } + ], + "ibm_is_instance": [ + { + "name": "primary_network_interface", + "type": "TypeList", + "description": "Primary Network interface info", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "Instance Primary Network Interface id", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Instance Primary Network Interface name", + "computed": true + }, + "port_speed": { + "name": "port_speed", + "type": "TypeInt", + "description": "Instance Primary Network Interface port speed", + "computed": true + }, + "primary_ip": { + "name": "primary_ip", + "type": "TypeList", + "description": "The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.", + "computed": true, + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "The IP address to reserve, which must not already be reserved on the subnet.", + "computed": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this reserved IP", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this reserved IP. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the subnet the reserved IP resides in.", + "computed": true + }, + "reserved_ip": { + "name": "reserved_ip", + "type": "TypeString", + "description": "Identifies a reserved IP by a unique property.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type", + "computed": true + } + } + }, + "primary_ipv4_address": { + "name": "primary_ipv4_address", + "type": "TypeString", + "description": "Instance Primary Network Interface IPV4 Address", + "computed": true + }, + "security_groups": { + "name": "security_groups", + "type": "TypeSet", + "description": "Instance Primary Network Interface Security groups", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "subnet": { + "name": "subnet", + "type": "TypeString", + "description": "Instance Primary Network Interface subnet", + "computed": true + } + } }, { - "name": "resource_group", + "name": "private_key", "type": "TypeString", - "description": "The id of the resource group", - "cloud_data_type": "resource_group", + "description": "Instance Private Key file", "optional": true - } - ], - "ibm_is_instance": [ + }, { - "name": "zone", + "name": "profile", "type": "TypeString", - "description": "Zone name", + "description": "Profile info", + "computed": true + }, + { + "name": "metadata_service_enabled", + "type": "TypeBool", + "description": "Indicates whether the metadata service endpoint is available to the virtual server instance", + "computed": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the virtual server instance.", "computed": true }, { @@ -42738,48 +43460,54 @@ } }, { - "name": "resource_group", + "name": "resource_name", "type": "TypeString", - "description": "Instance resource group", - "cloud_data_type": "resource_group", + "description": "The name of the resource", "computed": true }, { - "name": "gpu", + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true + }, + { + "name": "metadata_service", "type": "TypeList", - "description": "Instance GPU", + "description": "The metadata service configuration", "computed": true, "elem": { - "count": { - "name": "count", - "type": "TypeInt", - "description": "Instance GPU Count", + "enabled": { + "name": "enabled", + "type": "TypeBool", + "description": "Indicates whether the metadata service endpoint will be available to the virtual server instance", "computed": true }, - "manufacturer": { - "name": "manufacturer", + "protocol": { + "name": "protocol", "type": "TypeString", - "description": "Instance GPU Manufacturer", + "description": "The communication protocol to use for the metadata service endpoint. Applies only when the metadata service is enabled.", "computed": true }, - "memory": { - "name": "memory", + "response_hop_limit": { + "name": "response_hop_limit", "type": "TypeInt", - "description": "Instance GPU Memory", - "computed": true - }, - "model": { - "name": "model", - "type": "TypeString", - "description": "Instance GPU Model", + "description": "The hop limit (IP time to live) for IP response packets from the metadata service", "computed": true } } }, { - "name": "resource_controller_url", + "name": "vpc", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "VPC id", + "computed": true + }, + { + "name": "password", + "type": "TypeString", + "description": "password for Windows Instance", + "secure": true, "computed": true }, { @@ -42802,12 +43530,6 @@ } } }, - { - "name": "vpc", - "type": "TypeString", - "description": "VPC id", - "computed": true - }, { "name": "total_volume_bandwidth", "type": "TypeInt", @@ -42829,6 +43551,126 @@ "type": "TypeString" } }, + { + "name": "memory", + "type": "TypeInt", + "description": "Instance memory", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Instance name", + "required": true + }, + { + "name": "passphrase", + "type": "TypeString", + "description": "Passphrase for Instance Private Key file", + "secure": true, + "optional": true + }, + { + "name": "resource_status", + "type": "TypeString", + "description": "The status of the resource", + "computed": true + }, + { + "name": "status_reasons", + "type": "TypeList", + "description": "The reasons for the current status (if any).", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the status reason", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the status reason", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about this status reason", + "computed": true + } + } + }, + { + "name": "crn", + "type": "TypeString", + "description": "The crn of the resource", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "disks", + "type": "TypeList", + "description": "Collection of the instance's disks.", + "computed": true, + "elem": { + "created_at": { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the disk was created.", + "computed": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this instance disk.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this instance disk.", + "computed": true + }, + "interface_type": { + "name": "interface_type", + "type": "TypeString", + "description": "The disk interface used for attaching the disk.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this disk.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + }, + "size": { + "name": "size", + "type": "TypeInt", + "description": "The size of the disk in GB (gigabytes).", + "computed": true + } + } + }, + { + "name": "bandwidth", + "type": "TypeInt", + "description": "The total bandwidth (in megabits per second) shared across the instance's network interfaces and storage volumes", + "computed": true + }, + { + "name": "image", + "type": "TypeString", + "description": "Instance Image", + "computed": true + }, { "name": "boot_volume", "type": "TypeList", @@ -42873,6 +43715,44 @@ } } }, + { + "name": "volume_attachments", + "type": "TypeList", + "description": "Instance Volume Attachments", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "Instance Volume Attachment id", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Instance Volume Attachment name", + "computed": true + }, + "volume_crn": { + "name": "volume_crn", + "type": "TypeString", + "description": "Instance Boot Volume's volume CRN", + "computed": true + }, + "volume_id": { + "name": "volume_id", + "type": "TypeString", + "description": "Instance Boot Volume's volume id", + "computed": true + }, + "volume_name": { + "name": "volume_name", + "type": "TypeString", + "description": "Instance Boot Volume's volume name", + "computed": true + } + } + }, { "name": "network_interfaces", "type": "TypeList", @@ -42953,110 +43833,35 @@ } }, { - "name": "disks", + "name": "vcpu", "type": "TypeList", - "description": "Collection of the instance's disks.", + "description": "Instance vCPU", "computed": true, "elem": { - "created_at": { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the disk was created.", - "computed": true - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this instance disk.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this instance disk.", - "computed": true - }, - "interface_type": { - "name": "interface_type", - "type": "TypeString", - "description": "The disk interface used for attaching the disk.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this disk.", - "computed": true - }, - "resource_type": { - "name": "resource_type", + "architecture": { + "name": "architecture", "type": "TypeString", - "description": "The resource type.", + "description": "Instance vCPU Architecture", "computed": true }, - "size": { - "name": "size", + "count": { + "name": "count", "type": "TypeInt", - "description": "The size of the disk in GB (gigabytes).", - "computed": true - } - } - }, - { - "name": "metadata_service", - "type": "TypeList", - "description": "The metadata service configuration", - "computed": true, - "elem": { - "enabled": { - "name": "enabled", - "type": "TypeBool", - "description": "Indicates whether the metadata service endpoint will be available to the virtual server instance", + "description": "Instance vCPU count", "computed": true }, - "protocol": { - "name": "protocol", + "manufacturer": { + "name": "manufacturer", "type": "TypeString", - "description": "The communication protocol to use for the metadata service endpoint. Applies only when the metadata service is enabled.", - "computed": true - }, - "response_hop_limit": { - "name": "response_hop_limit", - "type": "TypeInt", - "description": "The hop limit (IP time to live) for IP response packets from the metadata service", + "description": "Instance vCPU Manufacturer", "computed": true } } }, { - "name": "memory", - "type": "TypeInt", - "description": "Instance memory", - "computed": true - }, - { - "name": "availability_policy_host_failure", - "type": "TypeString", - "description": "The availability policy to use for this virtual server instance. The action to perform if the compute host experiences a failure.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Instance name", - "required": true - }, - { - "name": "password", - "type": "TypeString", - "description": "password for Windows Instance", - "secure": true, - "computed": true - }, - { - "name": "image", + "name": "status", "type": "TypeString", - "description": "Instance Image", + "description": "instance status", "computed": true }, { @@ -43112,47 +43917,52 @@ } }, { - "name": "catalog_offering", - "type": "TypeList", - "description": "The catalog offering or offering version to use when provisioning this virtual server instance. If an offering is specified, the latest version of that offering will be used. The specified offering or offering version may be in a different account in the same enterprise, subject to IAM policies.", - "computed": true, - "elem": { - "offering_crn": { - "name": "offering_crn", - "type": "TypeString", - "description": "Identifies a catalog offering by a unique CRN property", - "computed": true - }, - "version_crn": { - "name": "version_crn", - "type": "TypeString", - "description": "Identifies a version of a catalog offering by a unique CRN property", - "computed": true - } - } + "name": "availability_policy_host_failure", + "type": "TypeString", + "description": "The availability policy to use for this virtual server instance. The action to perform if the compute host experiences a failure.", + "computed": true }, { - "name": "status_reasons", + "name": "zone", + "type": "TypeString", + "description": "Zone name", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Instance resource group", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "gpu", "type": "TypeList", - "description": "The reasons for the current status (if any).", + "description": "Instance GPU", "computed": true, "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason", + "count": { + "name": "count", + "type": "TypeInt", + "description": "Instance GPU Count", "computed": true }, - "message": { - "name": "message", + "manufacturer": { + "name": "manufacturer", "type": "TypeString", - "description": "An explanation of the status reason", + "description": "Instance GPU Manufacturer", "computed": true }, - "more_info": { - "name": "more_info", + "memory": { + "name": "memory", + "type": "TypeInt", + "description": "Instance GPU Memory", + "computed": true + }, + "model": { + "name": "model", "type": "TypeString", - "description": "Link to documentation about this status reason", + "description": "Instance GPU Model", "computed": true } } @@ -43164,78 +43974,38 @@ "computed": true }, { - "name": "resource_status", - "type": "TypeString", - "description": "The status of the resource", - "computed": true - }, - { - "name": "metadata_service_enabled", - "type": "TypeBool", - "description": "Indicates whether the metadata service endpoint is available to the virtual server instance", - "computed": true - }, - { - "name": "vcpu", + "name": "catalog_offering", "type": "TypeList", - "description": "Instance vCPU", + "description": "The catalog offering or offering version to use when provisioning this virtual server instance. If an offering is specified, the latest version of that offering will be used. The specified offering or offering version may be in a different account in the same enterprise, subject to IAM policies.", "computed": true, "elem": { - "architecture": { - "name": "architecture", + "offering_crn": { + "name": "offering_crn", "type": "TypeString", - "description": "Instance vCPU Architecture", - "computed": true - }, - "count": { - "name": "count", - "type": "TypeInt", - "description": "Instance vCPU count", + "description": "Identifies a catalog offering by a unique CRN property", "computed": true }, - "manufacturer": { - "name": "manufacturer", + "version_crn": { + "name": "version_crn", "type": "TypeString", - "description": "Instance vCPU Manufacturer", + "description": "Identifies a version of a catalog offering by a unique CRN property", "computed": true } } }, { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "instance status", - "computed": true - }, - { - "name": "private_key", - "type": "TypeString", - "description": "Instance Private Key file", - "optional": true - }, - { - "name": "passphrase", - "type": "TypeString", - "description": "Passphrase for Instance Private Key file", - "secure": true, - "optional": true - }, - { - "name": "bandwidth", - "type": "TypeInt", - "description": "The total bandwidth (in megabits per second) shared across the instance's network interfaces and storage volumes", - "computed": true + "name": "volumes", + "type": "TypeSet", + "description": "List of volumes", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "lifecycle_state", + "name": "resource_controller_url", "type": "TypeString", - "description": "The lifecycle state of the virtual server instance.", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { @@ -43265,158 +44035,31 @@ } }, { - "name": "volume_attachments", - "type": "TypeList", - "description": "Instance Volume Attachments", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "Instance Volume Attachment id", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Instance Volume Attachment name", - "computed": true - }, - "volume_crn": { - "name": "volume_crn", - "type": "TypeString", - "description": "Instance Boot Volume's volume CRN", - "computed": true - }, - "volume_id": { - "name": "volume_id", - "type": "TypeString", - "description": "Instance Boot Volume's volume id", - "computed": true - }, - "volume_name": { - "name": "volume_name", - "type": "TypeString", - "description": "Instance Boot Volume's volume name", - "computed": true - } - } - }, - { - "name": "primary_network_interface", - "type": "TypeList", - "description": "Primary Network interface info", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "Instance Primary Network Interface id", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Instance Primary Network Interface name", - "computed": true - }, - "port_speed": { - "name": "port_speed", - "type": "TypeInt", - "description": "Instance Primary Network Interface port speed", - "computed": true - }, - "primary_ip": { - "name": "primary_ip", - "type": "TypeList", - "description": "The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.", - "computed": true, - "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "The IP address to reserve, which must not already be reserved on the subnet.", - "computed": true - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this reserved IP", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this reserved IP. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the subnet the reserved IP resides in.", - "computed": true - }, - "reserved_ip": { - "name": "reserved_ip", - "type": "TypeString", - "description": "Identifies a reserved IP by a unique property.", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type", - "computed": true - } - } - }, - "primary_ipv4_address": { - "name": "primary_ipv4_address", - "type": "TypeString", - "description": "Instance Primary Network Interface IPV4 Address", - "computed": true - }, - "security_groups": { - "name": "security_groups", - "type": "TypeSet", - "description": "Instance Primary Network Interface Security groups", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "subnet": { - "name": "subnet", - "type": "TypeString", - "description": "Instance Primary Network Interface subnet", - "computed": true - } - } - }, + "name": "numa_count", + "type": "TypeInt", + "description": "The number of NUMA nodes this virtual server instance is provisioned on. This property may be absent if the instance's `status` is not `running`.", + "computed": true + } + ], + "ibm_is_instance_disk": [ { - "name": "crn", + "name": "href", "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", + "description": "The URL for this instance disk.", "computed": true }, { - "name": "profile", + "name": "interface_type", "type": "TypeString", - "description": "Profile info", + "description": "The disk interface used for attaching the disk.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", "computed": true }, { - "name": "volumes", - "type": "TypeSet", - "description": "List of volumes", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_group_name", + "name": "name", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "The user-defined name for this disk.", "computed": true - } - ], - "ibm_is_instance_disk": [ + }, { "name": "resource_type", "type": "TypeString", @@ -43446,27 +44089,15 @@ "type": "TypeString", "description": "The date and time that the disk was created.", "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this instance disk.", - "computed": true - }, - { - "name": "interface_type", - "type": "TypeString", - "description": "The disk interface used for attaching the disk.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this disk.", - "computed": true } ], "ibm_is_instance_disks": [ + { + "name": "instance", + "type": "TypeString", + "description": "The instance identifier.", + "required": true + }, { "name": "disks", "type": "TypeList", @@ -43516,50 +44147,33 @@ "computed": true } } - }, - { - "name": "instance", - "type": "TypeString", - "description": "The instance identifier.", - "required": true } ], "ibm_is_instance_group": [ { - "name": "load_balancer_pool", + "name": "crn", "type": "TypeString", - "description": "load balancer pool ID", + "description": "The CRN for this instance group", + "cloud_data_type": "crn", "computed": true }, { - "name": "managers", - "type": "TypeList", - "description": "list of Managers associated with instancegroup", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "status", + "name": "load_balancer_pool", "type": "TypeString", - "description": "Instance group status - deleting, healthy, scaling, unhealthy", + "description": "load balancer pool ID", "computed": true }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access tags", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "vpc", + "type": "TypeString", + "description": "vpc instance", + "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this instance group", - "required": true + "name": "membership_count", + "type": "TypeInt", + "description": "The number of instances in the instance group", + "computed": true }, { "name": "instance_template", @@ -43574,19 +44188,6 @@ "cloud_data_type": "resource_group", "computed": true }, - { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this instance group", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "membership_count", - "type": "TypeInt", - "description": "The number of instances in the instance group", - "computed": true - }, { "name": "subnets", "type": "TypeList", @@ -43603,35 +44204,41 @@ "computed": true }, { - "name": "vpc", - "type": "TypeString", - "description": "vpc instance", - "computed": true - } - ], - "ibm_is_instance_group_manager": [ - { - "name": "manager_type", - "type": "TypeString", - "description": "The type of instance group manager.", - "computed": true + "name": "managers", + "type": "TypeList", + "description": "list of Managers associated with instancegroup", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "aggregation_window", - "type": "TypeInt", - "description": "The time window in seconds to aggregate metrics prior to evaluation", + "name": "status", + "type": "TypeString", + "description": "Instance group status - deleting, healthy, scaling, unhealthy", "computed": true }, { - "name": "max_membership_count", - "type": "TypeInt", - "description": "The maximum number of members in a managed instance group", - "computed": true + "name": "access_tags", + "type": "TypeSet", + "description": "List of access tags", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "manager_id", + "name": "name", "type": "TypeString", - "description": "The ID of instance group manager.", + "description": "The user-defined name for this instance group", + "required": true + } + ], + "ibm_is_instance_group_manager": [ + { + "name": "min_membership_count", + "type": "TypeInt", + "description": "The minimum number of members in a managed instance group", "computed": true }, { @@ -43665,12 +44272,6 @@ } } }, - { - "name": "instance_group", - "type": "TypeString", - "description": "instance group ID", - "required": true - }, { "name": "name", "type": "TypeString", @@ -43678,46 +44279,53 @@ "required": true }, { - "name": "cooldown", - "type": "TypeInt", - "description": "The duration of time in seconds to pause further scale actions after scaling has taken place", + "name": "manager_type", + "type": "TypeString", + "description": "The type of instance group manager.", "computed": true }, { - "name": "min_membership_count", + "name": "max_membership_count", "type": "TypeInt", - "description": "The minimum number of members in a managed instance group", + "description": "The maximum number of members in a managed instance group", "computed": true - } - ], - "ibm_is_instance_group_manager_action": [ + }, { - "name": "last_applied_at", + "name": "manager_id", "type": "TypeString", - "description": "The date and time the scheduled action was last applied. If empty the action has never been applied.", + "description": "The ID of instance group manager.", "computed": true }, { - "name": "auto_delete", - "type": "TypeBool", - "computed": true + "name": "instance_group", + "type": "TypeString", + "description": "instance group ID", + "required": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the instance group manager action was modified.", + "name": "aggregation_window", + "type": "TypeInt", + "description": "The time window in seconds to aggregate metrics prior to evaluation", "computed": true }, { - "name": "cron_spec", - "type": "TypeString", - "description": "The cron specification for a recurring scheduled action. Actions can be applied a maximum of one time within a 5 min period.", + "name": "cooldown", + "type": "TypeInt", + "description": "The duration of time in seconds to pause further scale actions after scaling has taken place", "computed": true - }, + } + ], + "ibm_is_instance_group_manager_action": [ { - "name": "status", + "name": "name", "type": "TypeString", - "description": "The status of the instance group action- `active`: Action is ready to be run- `completed`: Action was completed successfully- `failed`: Action could not be completed successfully- `incompatible`: Action parameters are not compatible with the group or manager- `omitted`: Action was not applied because this action's manager was disabled.", + "description": "instance group manager action name", + "required": true + }, + { + "name": "min_membership_count", + "type": "TypeInt", + "description": "The minimum number of members in a managed instance group", "computed": true }, { @@ -43739,9 +44347,15 @@ "required": true }, { - "name": "run_at", + "name": "target_manager", "type": "TypeString", - "description": "The date and time the scheduled action will run.", + "description": "The unique identifier for this instance group manager of type autoscale.", + "computed": true + }, + { + "name": "target_manager_name", + "type": "TypeString", + "description": "Instance group manager name of type autoscale.", "computed": true }, { @@ -43751,50 +44365,49 @@ "computed": true }, { - "name": "name", + "name": "next_run_at", "type": "TypeString", - "description": "instance group manager action name", - "required": true + "description": "The date and time the scheduled action will next run. If empty the system is currently calculating the next run time.", + "computed": true }, { - "name": "membership_count", - "type": "TypeInt", - "description": "The number of members the instance group should have at the scheduled time.", + "name": "action_id", + "type": "TypeString", + "description": "Instance group manager action ID", "computed": true }, { - "name": "target_manager_name", + "name": "run_at", "type": "TypeString", - "description": "Instance group manager name of type autoscale.", + "description": "The date and time the scheduled action will run.", "computed": true }, { - "name": "min_membership_count", + "name": "max_membership_count", "type": "TypeInt", - "description": "The minimum number of members in a managed instance group", + "description": "The maximum number of members in a managed instance group", "computed": true }, { - "name": "target_manager", + "name": "cron_spec", "type": "TypeString", - "description": "The unique identifier for this instance group manager of type autoscale.", + "description": "The cron specification for a recurring scheduled action. Actions can be applied a maximum of one time within a 5 min period.", "computed": true }, { - "name": "next_run_at", + "name": "last_applied_at", "type": "TypeString", - "description": "The date and time the scheduled action will next run. If empty the system is currently calculating the next run time.", + "description": "The date and time the scheduled action was last applied. If empty the action has never been applied.", "computed": true }, { - "name": "auto_delete_timeout", - "type": "TypeInt", + "name": "auto_delete", + "type": "TypeBool", "computed": true }, { - "name": "action_id", - "type": "TypeString", - "description": "Instance group manager action ID", + "name": "auto_delete_timeout", + "type": "TypeInt", "computed": true }, { @@ -43804,9 +44417,21 @@ "required": true }, { - "name": "max_membership_count", + "name": "membership_count", "type": "TypeInt", - "description": "The maximum number of members in a managed instance group", + "description": "The number of members the instance group should have at the scheduled time.", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The status of the instance group action- `active`: Action is ready to be run- `completed`: Action was completed successfully- `failed`: Action could not be completed successfully- `incompatible`: Action parameters are not compatible with the group or manager- `omitted`: Action was not applied because this action's manager was disabled.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the instance group manager action was modified.", "computed": true } ], @@ -44003,24 +44628,6 @@ } ], "ibm_is_instance_group_manager_policy": [ - { - "name": "metric_type", - "type": "TypeString", - "description": "The type of metric to be evaluated", - "computed": true - }, - { - "name": "metric_value", - "type": "TypeInt", - "description": "The metric value to be evaluated", - "computed": true - }, - { - "name": "policy_type", - "type": "TypeString", - "description": "The type of Policy for the Instance Group", - "computed": true - }, { "name": "policy_id", "type": "TypeString", @@ -44044,6 +44651,24 @@ "type": "TypeString", "description": "The name of the instance group manager policy", "required": true + }, + { + "name": "metric_type", + "type": "TypeString", + "description": "The type of metric to be evaluated", + "computed": true + }, + { + "name": "metric_value", + "type": "TypeInt", + "description": "The metric value to be evaluated", + "computed": true + }, + { + "name": "policy_type", + "type": "TypeString", + "description": "The type of Policy for the Instance Group", + "computed": true } ], "ibm_is_instance_group_managers": [ @@ -44142,56 +44767,6 @@ } ], "ibm_is_instance_group_membership": [ - { - "name": "instance", - "type": "TypeList", - "computed": true, - "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this virtual server instance.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this virtual server instance (and default system hostname).", - "computed": true - }, - "virtual_server_instance": { - "name": "virtual_server_instance", - "type": "TypeString", - "description": "The unique identifier for this virtual server instance.", - "computed": true - } - } - }, - { - "name": "instance_template", - "type": "TypeList", - "computed": true, - "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this instance template.", - "computed": true - }, - "instance_template": { - "name": "instance_template", - "type": "TypeString", - "description": "The unique identifier for this instance template.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this instance template.", - "computed": true - } - } - }, { "name": "load_balancer_pool_member", "type": "TypeString", @@ -44227,9 +44802,65 @@ "type": "TypeString", "description": "The unique identifier for this instance group membership.", "computed": true + }, + { + "name": "instance", + "type": "TypeList", + "computed": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this virtual server instance.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this virtual server instance (and default system hostname).", + "computed": true + }, + "virtual_server_instance": { + "name": "virtual_server_instance", + "type": "TypeString", + "description": "The unique identifier for this virtual server instance.", + "computed": true + } + } + }, + { + "name": "instance_template", + "type": "TypeList", + "computed": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this instance template.", + "computed": true + }, + "instance_template": { + "name": "instance_template", + "type": "TypeString", + "description": "The unique identifier for this instance template.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this instance template.", + "computed": true + } + } } ], "ibm_is_instance_group_memberships": [ + { + "name": "instance_group", + "type": "TypeString", + "description": "The instance group identifier.", + "required": true + }, { "name": "memberships", "type": "TypeList", @@ -44317,12 +44948,6 @@ "computed": true } } - }, - { - "name": "instance_group", - "type": "TypeString", - "description": "The instance group identifier.", - "required": true } ], "ibm_is_instance_groups": [ @@ -44655,15 +45280,9 @@ ], "ibm_is_instance_network_interface": [ { - "name": "name", + "name": "created_at", "type": "TypeString", - "description": "The user-defined name for this network interface.", - "computed": true - }, - { - "name": "port_speed", - "type": "TypeInt", - "description": "The network interface port speed in Mbps.", + "description": "The date and time that the network interface was created.", "computed": true }, { @@ -44673,39 +45292,15 @@ "computed": true }, { - "name": "instance_name", - "type": "TypeString", - "description": "The instance name.", - "required": true - }, - { - "name": "network_interface_name", - "type": "TypeString", - "description": "The network interface name.", - "required": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the network interface was created.", - "computed": true - }, - { - "name": "floating_ips", + "name": "security_groups", "type": "TypeList", - "description": "The floating IPs associated with this network interface.", + "description": "Collection of security groups.", "computed": true, "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "The globally unique IP address.", - "computed": true - }, "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN for this floating IP.", + "description": "The security group's CRN.", "computed": true }, "deleted": { @@ -44725,35 +45320,23 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for this floating IP.", + "description": "The security group's canonical URL.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this floating IP.", + "description": "The unique identifier for this security group.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The unique user-defined name for this floating IP.", + "description": "The user-defined name for this security group. Names must be unique within the VPC the security group resides in.", "computed": true } } }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this network interface.", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The status of the network interface.", - "computed": true - }, { "name": "subnet", "type": "TypeList", @@ -44807,43 +45390,81 @@ "computed": true }, { - "name": "primary_ip", + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this network interface.", + "computed": true + }, + { + "name": "instance_name", + "type": "TypeString", + "description": "The instance name.", + "required": true + }, + { + "name": "network_interface_name", + "type": "TypeString", + "description": "The network interface name.", + "required": true + }, + { + "name": "floating_ips", "type": "TypeList", - "description": "The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.", + "description": "The floating IPs associated with this network interface.", "computed": true, "elem": { "address": { "name": "address", "type": "TypeString", - "description": "The IP address to reserve, which must not already be reserved on the subnet.", + "description": "The globally unique IP address.", "computed": true }, - "href": { - "name": "href", + "crn": { + "name": "crn", "type": "TypeString", - "description": "The URL for this reserved IP", + "description": "The CRN for this floating IP.", "computed": true }, - "name": { - "name": "name", + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", "type": "TypeString", - "description": "The user-defined name for this reserved IP. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the subnet the reserved IP resides in.", + "description": "The URL for this floating IP.", "computed": true }, - "reserved_ip": { - "name": "reserved_ip", + "id": { + "name": "id", "type": "TypeString", - "description": "Identifies a reserved IP by a unique property.", + "description": "The unique identifier for this floating IP.", "computed": true }, - "resource_type": { - "name": "resource_type", + "name": { + "name": "name", "type": "TypeString", - "description": "The resource type", + "description": "The unique user-defined name for this floating IP.", "computed": true } } }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this network interface.", + "computed": true + }, { "name": "allow_ip_spoofing", "type": "TypeBool", @@ -44851,59 +45472,69 @@ "computed": true }, { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", + "name": "port_speed", + "type": "TypeInt", + "description": "The network interface port speed in Mbps.", "computed": true }, { - "name": "security_groups", + "name": "primary_ip", "type": "TypeList", - "description": "Collection of security groups.", + "description": "The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.", "computed": true, "elem": { - "crn": { - "name": "crn", + "address": { + "name": "address", "type": "TypeString", - "description": "The security group's CRN.", + "description": "The IP address to reserve, which must not already be reserved on the subnet.", "computed": true }, - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, "href": { "name": "href", "type": "TypeString", - "description": "The security group's canonical URL.", + "description": "The URL for this reserved IP", "computed": true }, - "id": { - "name": "id", + "name": { + "name": "name", "type": "TypeString", - "description": "The unique identifier for this security group.", + "description": "The user-defined name for this reserved IP. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the subnet the reserved IP resides in.", "computed": true }, - "name": { - "name": "name", + "reserved_ip": { + "name": "reserved_ip", "type": "TypeString", - "description": "The user-defined name for this security group. Names must be unique within the VPC the security group resides in.", + "description": "Identifies a reserved IP by a unique property.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type", "computed": true } } + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The status of the network interface.", + "computed": true } ], "ibm_is_instance_network_interface_reserved_ip": [ + { + "name": "instance", + "type": "TypeString", + "description": "The instance identifier.", + "required": true + }, { "name": "network_interface", "type": "TypeString", @@ -44911,10 +45542,22 @@ "required": true }, { - "name": "reserved_ip", + "name": "address", "type": "TypeString", - "description": "The reserved IP identifier.", - "required": true + "description": "The IP address", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this reserved IP.", + "computed": true + }, + { + "name": "owner", + "type": "TypeString", + "description": "The owner of a reserved IP, defining whether it is managed by the user or the provider.", + "computed": true }, { "name": "target", @@ -44923,9 +45566,9 @@ "computed": true }, { - "name": "instance", + "name": "reserved_ip", "type": "TypeString", - "description": "The instance identifier.", + "description": "The reserved IP identifier.", "required": true }, { @@ -44940,35 +45583,17 @@ "description": "The date and time that the reserved IP was created.", "computed": true }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this reserved IP.", - "computed": true - }, { "name": "name", "type": "TypeString", "description": "The user-defined or system-provided name for this reserved IP.", "computed": true }, - { - "name": "owner", - "type": "TypeString", - "description": "The owner of a reserved IP, defining whether it is managed by the user or the provider.", - "computed": true - }, { "name": "resource_type", "type": "TypeString", "description": "The resource type.", "computed": true - }, - { - "name": "address", - "type": "TypeString", - "description": "The IP address", - "computed": true } ], "ibm_is_instance_network_interface_reserved_ips": [ @@ -45054,6 +45679,12 @@ } ], "ibm_is_instance_network_interfaces": [ + { + "name": "total_count", + "type": "TypeInt", + "description": "The total number of resources across all pages.", + "computed": true + }, { "name": "instance_name", "type": "TypeString", @@ -45309,35 +45940,24 @@ "computed": true } } - }, - { - "name": "total_count", - "type": "TypeInt", - "description": "The total number of resources across all pages.", - "computed": true } ], "ibm_is_instance_profile": [ { - "name": "name", - "type": "TypeString", - "required": true - }, - { - "name": "href", + "name": "status", "type": "TypeString", - "description": "The URL for this virtual server instance profile.", + "description": "The status of the instance profile.", "computed": true }, { - "name": "vcpu_manufacturer", + "name": "vcpu_architecture", "type": "TypeList", "computed": true, "elem": { "default": { "name": "default", "type": "TypeString", - "description": "The default VCPU manufacturer for an instance with this profile.", + "description": "The default VCPU architecture for an instance with this profile.", "computed": true }, "type": { @@ -45349,14 +45969,68 @@ "value": { "name": "value", "type": "TypeString", - "description": "The VCPU manufacturer for an instance with this profile.", + "description": "The VCPU architecture for an instance with this profile.", "computed": true } } }, { - "name": "bandwidth", + "name": "network_interface_count", + "type": "TypeSet", + "computed": true, + "elem": { + "max": { + "name": "max", + "type": "TypeInt", + "description": "The maximum value for this profile field", + "computed": true + }, + "min": { + "name": "min", + "type": "TypeInt", + "description": "The minimum value for this profile field", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + } + } + }, + { + "name": "numa_count", + "type": "TypeList", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "The value for this profile field.", + "computed": true + } + } + }, + { + "name": "architecture_values", + "type": "TypeList", + "description": "The supported OS architecture(s) for an instance with this profile.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "gpu_count", "type": "TypeList", + "description": "GPU count of this profile", "computed": true, "elem": { "default": { @@ -45406,6 +46080,169 @@ } } }, + { + "name": "gpu_manufacturer", + "type": "TypeList", + "description": "GPU manufacturer of this profile", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "values": { + "name": "values", + "type": "TypeList", + "description": "The possible GPU manufacturer(s) for an instance with this profile", + "computed": true, + "elem": { + "type": "TypeString" + } + } + } + }, + { + "name": "disks", + "type": "TypeList", + "description": "Collection of the instance profile's disks.", + "computed": true, + "elem": { + "quantity": { + "name": "quantity", + "type": "TypeList", + "computed": true, + "elem": { + "default": { + "name": "default", + "type": "TypeInt", + "description": "The default value for this profile field.", + "computed": true + }, + "max": { + "name": "max", + "type": "TypeInt", + "description": "The maximum value for this profile field.", + "computed": true + }, + "min": { + "name": "min", + "type": "TypeInt", + "description": "The minimum value for this profile field.", + "computed": true + }, + "step": { + "name": "step", + "type": "TypeInt", + "description": "The increment step value for this profile field.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "The value for this profile field.", + "computed": true + }, + "values": { + "name": "values", + "type": "TypeList", + "description": "The permitted values for this profile field.", + "computed": true, + "elem": { + "type": "TypeInt" + } + } + } + }, + "size": { + "name": "size", + "type": "TypeList", + "computed": true, + "elem": { + "default": { + "name": "default", + "type": "TypeInt", + "description": "The default value for this profile field.", + "computed": true + }, + "max": { + "name": "max", + "type": "TypeInt", + "description": "The maximum value for this profile field.", + "computed": true + }, + "min": { + "name": "min", + "type": "TypeInt", + "description": "The minimum value for this profile field.", + "computed": true + }, + "step": { + "name": "step", + "type": "TypeInt", + "description": "The increment step value for this profile field.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "The value for this profile field.", + "computed": true + }, + "values": { + "name": "values", + "type": "TypeList", + "description": "The permitted values for this profile field.", + "computed": true, + "elem": { + "type": "TypeInt" + } + } + } + }, + "supported_interface_types": { + "name": "supported_interface_types", + "type": "TypeList", + "computed": true, + "elem": { + "default": { + "name": "default", + "type": "TypeString", + "description": "The disk interface used for attaching the disk.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "values": { + "name": "values", + "type": "TypeList", + "description": "The supported disk interfaces used for attaching the disk.", + "computed": true, + "elem": { + "type": "TypeString" + } + } + } + } + } + }, { "name": "memory", "type": "TypeList", @@ -45459,16 +46296,10 @@ } }, { - "name": "vcpu_architecture", + "name": "port_speed", "type": "TypeList", "computed": true, "elem": { - "default": { - "name": "default", - "type": "TypeString", - "description": "The default VCPU architecture for an instance with this profile.", - "computed": true - }, "type": { "name": "type", "type": "TypeString", @@ -45477,17 +46308,16 @@ }, "value": { "name": "value", - "type": "TypeString", - "description": "The VCPU architecture for an instance with this profile.", + "type": "TypeInt", + "description": "The value for this profile field.", "computed": true } } }, { - "name": "family", + "name": "name", "type": "TypeString", - "description": "The product family this virtual server instance profile belongs to.", - "computed": true + "required": true }, { "name": "architecture", @@ -45496,18 +46326,32 @@ "computed": true }, { - "name": "architecture_values", + "name": "gpu_model", "type": "TypeList", - "description": "The supported OS architecture(s) for an instance with this profile.", + "description": "GPU model of this profile", "computed": true, "elem": { - "type": "TypeString" + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "values": { + "name": "values", + "type": "TypeList", + "description": "The possible GPU model(s) for an instance with this profile", + "computed": true, + "elem": { + "type": "TypeString" + } + } } }, { - "name": "gpu_count", + "name": "total_volume_bandwidth", "type": "TypeList", - "description": "GPU count of this profile", + "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes. An increase in this value will result in a corresponding decrease to total_network_bandwidth.", "computed": true, "elem": { "default": { @@ -45558,9 +46402,8 @@ } }, { - "name": "total_volume_bandwidth", + "name": "vcpu_count", "type": "TypeList", - "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes. An increase in this value will result in a corresponding decrease to total_network_bandwidth.", "computed": true, "elem": { "default": { @@ -45611,27 +46454,15 @@ } }, { - "name": "port_speed", - "type": "TypeList", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", - "description": "The value for this profile field.", - "computed": true - } - } + "name": "architecture_type", + "type": "TypeString", + "description": "The type for the OS architecture.", + "computed": true }, { - "name": "vcpu_count", + "name": "gpu_memory", "type": "TypeList", + "description": "GPU memory of this profile", "computed": true, "elem": { "default": { @@ -45682,38 +46513,45 @@ } }, { - "name": "architecture_type", + "name": "href", "type": "TypeString", - "description": "The type for the OS architecture.", + "description": "The URL for this virtual server instance profile.", "computed": true }, { - "name": "gpu_manufacturer", + "name": "vcpu_manufacturer", "type": "TypeList", - "description": "GPU manufacturer of this profile", "computed": true, "elem": { + "default": { + "name": "default", + "type": "TypeString", + "description": "The default VCPU manufacturer for an instance with this profile.", + "computed": true + }, "type": { "name": "type", "type": "TypeString", "description": "The type for this profile field.", "computed": true }, - "values": { - "name": "values", - "type": "TypeList", - "description": "The possible GPU manufacturer(s) for an instance with this profile", - "computed": true, - "elem": { - "type": "TypeString" - } + "value": { + "name": "value", + "type": "TypeString", + "description": "The VCPU manufacturer for an instance with this profile.", + "computed": true } } }, { - "name": "gpu_memory", + "name": "family", + "type": "TypeString", + "description": "The product family this virtual server instance profile belongs to.", + "computed": true + }, + { + "name": "bandwidth", "type": "TypeList", - "description": "GPU memory of this profile", "computed": true, "elem": { "default": { @@ -45762,194 +46600,6 @@ } } } - }, - { - "name": "gpu_model", - "type": "TypeList", - "description": "GPU model of this profile", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - }, - "values": { - "name": "values", - "type": "TypeList", - "description": "The possible GPU model(s) for an instance with this profile", - "computed": true, - "elem": { - "type": "TypeString" - } - } - } - }, - { - "name": "disks", - "type": "TypeList", - "description": "Collection of the instance profile's disks.", - "computed": true, - "elem": { - "quantity": { - "name": "quantity", - "type": "TypeList", - "computed": true, - "elem": { - "default": { - "name": "default", - "type": "TypeInt", - "description": "The default value for this profile field.", - "computed": true - }, - "max": { - "name": "max", - "type": "TypeInt", - "description": "The maximum value for this profile field.", - "computed": true - }, - "min": { - "name": "min", - "type": "TypeInt", - "description": "The minimum value for this profile field.", - "computed": true - }, - "step": { - "name": "step", - "type": "TypeInt", - "description": "The increment step value for this profile field.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", - "description": "The value for this profile field.", - "computed": true - }, - "values": { - "name": "values", - "type": "TypeList", - "description": "The permitted values for this profile field.", - "computed": true, - "elem": { - "type": "TypeInt" - } - } - } - }, - "size": { - "name": "size", - "type": "TypeList", - "computed": true, - "elem": { - "default": { - "name": "default", - "type": "TypeInt", - "description": "The default value for this profile field.", - "computed": true - }, - "max": { - "name": "max", - "type": "TypeInt", - "description": "The maximum value for this profile field.", - "computed": true - }, - "min": { - "name": "min", - "type": "TypeInt", - "description": "The minimum value for this profile field.", - "computed": true - }, - "step": { - "name": "step", - "type": "TypeInt", - "description": "The increment step value for this profile field.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", - "description": "The value for this profile field.", - "computed": true - }, - "values": { - "name": "values", - "type": "TypeList", - "description": "The permitted values for this profile field.", - "computed": true, - "elem": { - "type": "TypeInt" - } - } - } - }, - "supported_interface_types": { - "name": "supported_interface_types", - "type": "TypeList", - "computed": true, - "elem": { - "default": { - "name": "default", - "type": "TypeString", - "description": "The disk interface used for attaching the disk.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - }, - "values": { - "name": "values", - "type": "TypeList", - "description": "The supported disk interfaces used for attaching the disk.", - "computed": true, - "elem": { - "type": "TypeString" - } - } - } - } - } - }, - { - "name": "network_interface_count", - "type": "TypeSet", - "computed": true, - "elem": { - "max": { - "name": "max", - "type": "TypeInt", - "description": "The maximum value for this profile field", - "computed": true - }, - "min": { - "name": "min", - "type": "TypeInt", - "description": "The minimum value for this profile field", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - } - } } ], "ibm_is_instance_profiles": [ @@ -46418,8 +47068,8 @@ } } }, - "port_speed": { - "name": "port_speed", + "numa_count": { + "name": "numa_count", "type": "TypeList", "computed": true, "elem": { @@ -46437,36 +47087,11 @@ } } }, - "total_volume_bandwidth": { - "name": "total_volume_bandwidth", + "port_speed": { + "name": "port_speed", "type": "TypeList", - "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes. An increase in this value will result in a corresponding decrease to total_network_bandwidth.", "computed": true, "elem": { - "default": { - "name": "default", - "type": "TypeInt", - "description": "The default value for this profile field.", - "computed": true - }, - "max": { - "name": "max", - "type": "TypeInt", - "description": "The maximum value for this profile field.", - "computed": true - }, - "min": { - "name": "min", - "type": "TypeInt", - "description": "The minimum value for this profile field.", - "computed": true - }, - "step": { - "name": "step", - "type": "TypeInt", - "description": "The increment step value for this profile field.", - "computed": true - }, "type": { "name": "type", "type": "TypeString", @@ -46478,45 +47103,95 @@ "type": "TypeInt", "description": "The value for this profile field.", "computed": true - }, - "values": { - "name": "values", - "type": "TypeList", - "description": "The permitted values for this profile field.", - "computed": true, - "elem": { - "type": "TypeInt" - } } } }, - "vcpu_architecture": { - "name": "vcpu_architecture", - "type": "TypeList", - "computed": true, - "elem": { - "default": { - "name": "default", - "type": "TypeString", - "description": "The default VCPU architecture for an instance with this profile.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "The VCPU architecture for an instance with this profile.", - "computed": true - } - } + "status": { + "name": "status", + "type": "TypeString", + "description": "The status of the instance profile.", + "computed": true }, - "vcpu_count": { - "name": "vcpu_count", + "total_volume_bandwidth": { + "name": "total_volume_bandwidth", + "type": "TypeList", + "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes. An increase in this value will result in a corresponding decrease to total_network_bandwidth.", + "computed": true, + "elem": { + "default": { + "name": "default", + "type": "TypeInt", + "description": "The default value for this profile field.", + "computed": true + }, + "max": { + "name": "max", + "type": "TypeInt", + "description": "The maximum value for this profile field.", + "computed": true + }, + "min": { + "name": "min", + "type": "TypeInt", + "description": "The minimum value for this profile field.", + "computed": true + }, + "step": { + "name": "step", + "type": "TypeInt", + "description": "The increment step value for this profile field.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "The value for this profile field.", + "computed": true + }, + "values": { + "name": "values", + "type": "TypeList", + "description": "The permitted values for this profile field.", + "computed": true, + "elem": { + "type": "TypeInt" + } + } + } + }, + "vcpu_architecture": { + "name": "vcpu_architecture", + "type": "TypeList", + "computed": true, + "elem": { + "default": { + "name": "default", + "type": "TypeString", + "description": "The default VCPU architecture for an instance with this profile.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "The VCPU architecture for an instance with this profile.", + "computed": true + } + } + }, + "vcpu_count": { + "name": "vcpu_count", "type": "TypeList", "computed": true, "elem": { @@ -46597,105 +47272,72 @@ ], "ibm_is_instance_template": [ { - "name": "keys", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "total_volume_bandwidth", - "type": "TypeInt", - "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes", + "name": "profile", + "type": "TypeString", "computed": true }, { - "name": "catalog_offering", + "name": "volume_attachments", "type": "TypeList", - "description": "The catalog offering or offering version to use when provisioning this virtual server instance template. If an offering is specified, the latest version of that offering will be used. The specified offering or offering version may be in a different account in the same enterprise, subject to IAM policies.", "computed": true, "elem": { - "offering_crn": { - "name": "offering_crn", - "type": "TypeString", - "description": "Identifies a catalog offering by a unique CRN property", + "delete_volume_on_instance_delete": { + "name": "delete_volume_on_instance_delete", + "type": "TypeBool", "computed": true }, - "version_crn": { - "name": "version_crn", - "type": "TypeString", - "description": "Identifies a version of a catalog offering by a unique CRN property", - "computed": true - } - } - }, - { - "name": "network_interfaces", - "type": "TypeList", - "computed": true, - "elem": { "name": { "name": "name", "type": "TypeString", "computed": true }, - "primary_ip": { - "name": "primary_ip", + "volume": { + "name": "volume", + "type": "TypeString", + "computed": true + }, + "volume_prototype": { + "name": "volume_prototype", "type": "TypeList", - "description": "The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.", "computed": true, "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "The IP address to reserve, which must not already be reserved on the subnet.", + "capacity": { + "name": "capacity", + "type": "TypeInt", + "description": "The capacity of the volume in gigabytes. The specified minimum and maximum capacity values for creating or updating volumes may expand in the future.", "computed": true }, - "name": { - "name": "name", + "encryption_key": { + "name": "encryption_key", "type": "TypeString", - "description": "The user-defined name for this reserved IP. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the subnet the reserved IP resides in.", + "description": "The CRN of the [Key Protect Root Key](https://cloud.ibm.com/docs/key-protect?topic=key-protect-getting-started-tutorial) or [Hyper Protect Crypto Service Root Key](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started) for this resource.", "computed": true }, - "reserved_ip": { - "name": "reserved_ip", + "iops": { + "name": "iops", + "type": "TypeInt", + "description": "The maximum I/O operations per second (IOPS) for the volume.", + "computed": true + }, + "profile": { + "name": "profile", "type": "TypeString", - "description": "Identifies a reserved IP by a unique property.", + "description": "The globally unique name for the volume profile to use for this volume.", "computed": true + }, + "tags": { + "name": "tags", + "type": "TypeSet", + "description": "The user tags associated with this volume.", + "computed": true, + "elem": { + "type": "TypeString" + } } } - }, - "primary_ipv4_address": { - "name": "primary_ipv4_address", - "type": "TypeString", - "computed": true - }, - "security_groups": { - "name": "security_groups", - "type": "TypeSet", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "subnet": { - "name": "subnet", - "type": "TypeString", - "computed": true } } }, - { - "name": "user_data", - "type": "TypeString", - "computed": true - }, - { - "name": "image", - "type": "TypeString", - "computed": true - }, { "name": "boot_volume_attachment", "type": "TypeList", @@ -46738,24 +47380,7 @@ } }, { - "name": "resource_group", - "type": "TypeString", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "vpc", - "type": "TypeString", - "computed": true - }, - { - "name": "primary_network_interface", + "name": "network_interfaces", "type": "TypeList", "computed": true, "elem": { @@ -46811,15 +47436,20 @@ } }, { - "name": "default_trusted_profile_auto_link", - "type": "TypeBool", - "description": "If set to `true`, the system will create a link to the specified `target` trusted profile during instance creation. Regardless of whether a link is created by the system or manually using the IAM Identity service, it will be automatically deleted when the instance is deleted.", + "name": "identifier", + "type": "TypeString", + "optional": true, "computed": true }, { - "name": "default_trusted_profile_target", + "name": "href", "type": "TypeString", - "description": "The unique identifier or CRN of the default IAM trusted profile to use for this virtual server instance.", + "computed": true + }, + { + "name": "default_trusted_profile_auto_link", + "type": "TypeBool", + "description": "If set to `true`, the system will create a link to the specified `target` trusted profile during instance creation. Regardless of whether a link is created by the system or manually using the IAM Identity service, it will be automatically deleted when the instance is deleted.", "computed": true }, { @@ -46849,124 +47479,132 @@ } }, { - "name": "volume_attachments", + "name": "catalog_offering", "type": "TypeList", + "description": "The catalog offering or offering version to use when provisioning this virtual server instance template. If an offering is specified, the latest version of that offering will be used. The specified offering or offering version may be in a different account in the same enterprise, subject to IAM policies.", "computed": true, "elem": { - "delete_volume_on_instance_delete": { - "name": "delete_volume_on_instance_delete", - "type": "TypeBool", + "offering_crn": { + "name": "offering_crn", + "type": "TypeString", + "description": "Identifies a catalog offering by a unique CRN property", "computed": true }, - "name": { - "name": "name", + "version_crn": { + "name": "version_crn", "type": "TypeString", + "description": "Identifies a version of a catalog offering by a unique CRN property", "computed": true - }, - "volume": { - "name": "volume", + } + } + }, + { + "name": "primary_network_interface", + "type": "TypeList", + "computed": true, + "elem": { + "name": { + "name": "name", "type": "TypeString", "computed": true }, - "volume_prototype": { - "name": "volume_prototype", + "primary_ip": { + "name": "primary_ip", "type": "TypeList", + "description": "The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.", "computed": true, "elem": { - "capacity": { - "name": "capacity", - "type": "TypeInt", - "description": "The capacity of the volume in gigabytes. The specified minimum and maximum capacity values for creating or updating volumes may expand in the future.", - "computed": true - }, - "encryption_key": { - "name": "encryption_key", + "address": { + "name": "address", "type": "TypeString", - "description": "The CRN of the [Key Protect Root Key](https://cloud.ibm.com/docs/key-protect?topic=key-protect-getting-started-tutorial) or [Hyper Protect Crypto Service Root Key](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started) for this resource.", + "description": "The IP address to reserve, which must not already be reserved on the subnet.", "computed": true }, - "iops": { - "name": "iops", - "type": "TypeInt", - "description": "The maximum I/O operations per second (IOPS) for the volume.", + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this reserved IP. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the subnet the reserved IP resides in.", "computed": true }, - "profile": { - "name": "profile", + "reserved_ip": { + "name": "reserved_ip", "type": "TypeString", - "description": "The globally unique name for the volume profile to use for this volume.", + "description": "Identifies a reserved IP by a unique property.", "computed": true - }, - "tags": { - "name": "tags", - "type": "TypeSet", - "description": "The user tags associated with this volume.", - "computed": true, - "elem": { - "type": "TypeString" - } } } - } - } - }, - { - "name": "placement_target", - "type": "TypeList", - "description": "The placement restrictions to use for the virtual server instance.", - "computed": true, - "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this dedicated host.", - "computed": true }, - "href": { - "name": "href", + "primary_ipv4_address": { + "name": "primary_ipv4_address", "type": "TypeString", - "description": "The URL for this dedicated host.", "computed": true }, - "id": { - "name": "id", + "security_groups": { + "name": "security_groups", + "type": "TypeSet", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "subnet": { + "name": "subnet", "type": "TypeString", - "description": "The unique identifier for this dedicated host.", "computed": true } } }, { - "name": "identifier", + "name": "default_trusted_profile_target", "type": "TypeString", - "optional": true, + "description": "The unique identifier or CRN of the default IAM trusted profile to use for this virtual server instance.", "computed": true }, { - "name": "zone", + "name": "user_data", "type": "TypeString", "computed": true }, { - "name": "profile", + "name": "name", "type": "TypeString", + "optional": true, "computed": true }, { - "name": "availability_policy_host_failure", + "name": "crn", "type": "TypeString", - "description": "The availability policy to use for this virtual server instance. The action to perform if the compute host experiences a failure.", + "cloud_data_type": "crn", "computed": true }, { - "name": "name", + "name": "vpc", "type": "TypeString", - "optional": true, "computed": true }, { - "name": "href", + "name": "zone", + "type": "TypeString", + "computed": true + }, + { + "name": "keys", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "total_volume_bandwidth", + "type": "TypeInt", + "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes", + "computed": true + }, + { + "name": "resource_group", "type": "TypeString", + "cloud_data_type": "resource_group", "computed": true }, { @@ -46974,6 +47612,43 @@ "type": "TypeBool", "description": "Indicates whether the metadata service endpoint is available to the virtual server instance", "computed": true + }, + { + "name": "availability_policy_host_failure", + "type": "TypeString", + "description": "The availability policy to use for this virtual server instance. The action to perform if the compute host experiences a failure.", + "computed": true + }, + { + "name": "image", + "type": "TypeString", + "computed": true + }, + { + "name": "placement_target", + "type": "TypeList", + "description": "The placement restrictions to use for the virtual server instance.", + "computed": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this dedicated host.", + "computed": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this dedicated host.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this dedicated host.", + "computed": true + } + } } ], "ibm_is_instance_templates": [ @@ -47362,30 +48037,12 @@ } ], "ibm_is_instance_volume_attachment": [ - { - "name": "instance", - "type": "TypeString", - "description": "Instance id", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this volume attachment.", - "required": true - }, { "name": "delete_volume_on_instance_delete", "type": "TypeBool", "description": "If set to true, when deleting the instance the volume will also be deleted.", "computed": true }, - { - "name": "device", - "type": "TypeString", - "description": "A unique identifier for the device which is exposed to the instance operating system", - "computed": true - }, { "name": "href", "type": "TypeString", @@ -47404,12 +48061,6 @@ "description": "The status of this volume attachment, one of [ attached, attaching, deleting, detaching ]", "computed": true }, - { - "name": "type", - "type": "TypeString", - "description": "The type of volume attachment one of [ boot, data ]", - "computed": true - }, { "name": "volume_reference", "type": "TypeList", @@ -47447,6 +48098,30 @@ "computed": true } } + }, + { + "name": "instance", + "type": "TypeString", + "description": "Instance id", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this volume attachment.", + "required": true + }, + { + "name": "device", + "type": "TypeString", + "description": "A unique identifier for the device which is exposed to the instance operating system", + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "The type of volume attachment one of [ boot, data ]", + "computed": true } ], "ibm_is_instance_volume_attachments": [ @@ -47546,9 +48221,9 @@ ], "ibm_is_instances": [ { - "name": "instance_group", + "name": "placement_group", "type": "TypeString", - "description": "Instance group ID to filter the instances attached to it", + "description": "ID of the placement group to filter the instances attached to it", "optional": true }, { @@ -47563,12 +48238,6 @@ "description": "Name of the vpc to filter the instances attached to it", "optional": true }, - { - "name": "vpc", - "type": "TypeString", - "description": "VPC ID to filter the instances attached to it", - "optional": true - }, { "name": "resource_group", "type": "TypeString", @@ -47582,30 +48251,12 @@ "description": "Name of the placement group to filter the instances attached to it", "optional": true }, - { - "name": "vpc_crn", - "type": "TypeString", - "description": "VPC CRN to filter the instances attached to it", - "optional": true - }, - { - "name": "dedicated_host_name", - "type": "TypeString", - "description": "Name of the dedicated host to filter the instances attached to it", - "optional": true - }, { "name": "dedicated_host", "type": "TypeString", "description": "ID of the dedicated host to filter the instances attached to it", "optional": true }, - { - "name": "placement_group", - "type": "TypeString", - "description": "ID of the placement group to filter the instances attached to it", - "optional": true - }, { "name": "instances", "type": "TypeList", @@ -47947,6 +48598,12 @@ } } }, + "numa_count": { + "name": "numa_count", + "type": "TypeInt", + "description": "The number of NUMA nodes this virtual server instance is provisioned on. This property may be absent if the instance's `status` is not `running`.", + "computed": true + }, "placement_target": { "name": "placement_target", "type": "TypeList", @@ -48220,6 +48877,30 @@ "computed": true } } + }, + { + "name": "instance_group", + "type": "TypeString", + "description": "Instance group ID to filter the instances attached to it", + "optional": true + }, + { + "name": "vpc", + "type": "TypeString", + "description": "VPC ID to filter the instances attached to it", + "optional": true + }, + { + "name": "vpc_crn", + "type": "TypeString", + "description": "VPC CRN to filter the instances attached to it", + "optional": true + }, + { + "name": "dedicated_host_name", + "type": "TypeString", + "description": "Name of the dedicated host to filter the instances attached to it", + "optional": true } ], "ibm_is_ipsec_policies": [ @@ -48371,12 +49052,6 @@ } ], "ibm_is_ipsec_policy": [ - { - "name": "pfs", - "type": "TypeString", - "description": "Perfect Forward Secrecy.", - "computed": true - }, { "name": "resource_group", "type": "TypeList", @@ -48405,11 +49080,17 @@ } }, { - "name": "ipsec_policy", + "name": "name", "type": "TypeString", - "description": "The IPsec policy identifier.", + "description": "The IPsec policy name.", "optional": true }, + { + "name": "authentication_algorithm", + "type": "TypeString", + "description": "The authentication algorithm.", + "computed": true + }, { "name": "connections", "type": "TypeList", @@ -48457,21 +49138,15 @@ } }, { - "name": "encapsulation_mode", - "type": "TypeString", - "description": "The encapsulation mode used. Only `tunnel` is supported.", - "computed": true - }, - { - "name": "encryption_algorithm", + "name": "created_at", "type": "TypeString", - "description": "The encryption algorithm.", + "description": "The date and time that this IPsec policy was created.", "computed": true }, { - "name": "href", + "name": "encapsulation_mode", "type": "TypeString", - "description": "The IPsec policy's canonical URL.", + "description": "The encapsulation mode used. Only `tunnel` is supported.", "computed": true }, { @@ -48480,6 +49155,12 @@ "description": "The key lifetime in seconds.", "computed": true }, + { + "name": "pfs", + "type": "TypeString", + "description": "Perfect Forward Secrecy.", + "computed": true + }, { "name": "resource_type", "type": "TypeString", @@ -48493,30 +49174,29 @@ "computed": true }, { - "name": "name", + "name": "ipsec_policy", "type": "TypeString", - "description": "The IPsec policy name.", + "description": "The IPsec policy identifier.", "optional": true }, { - "name": "authentication_algorithm", + "name": "encryption_algorithm", "type": "TypeString", - "description": "The authentication algorithm.", + "description": "The encryption algorithm.", "computed": true }, { - "name": "created_at", + "name": "href", "type": "TypeString", - "description": "The date and time that this IPsec policy was created.", + "description": "The IPsec policy's canonical URL.", "computed": true } ], "ibm_is_lb": [ { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this Load Balancer", - "cloud_data_type": "crn", + "name": "logging", + "type": "TypeBool", + "description": "Logging of Load Balancer", "computed": true }, { @@ -48526,14 +49206,70 @@ "computed": true }, { - "name": "listeners", + "name": "security_groups", "type": "TypeSet", - "description": "Load Balancer Listeners list", + "description": "Load Balancer securitygroups list", "computed": true, "elem": { "type": "TypeString" } }, + { + "name": "tags", + "type": "TypeSet", + "description": "Tags associated to Load Balancer", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Load Balancer Resource group", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "hostname", + "type": "TypeString", + "description": "Load Balancer Host Name", + "computed": true + }, + { + "name": "dns", + "type": "TypeList", + "description": "The DNS configuration for this load balancer.", + "computed": true, + "elem": { + "instance_crn": { + "name": "instance_crn", + "type": "TypeString", + "description": "The CRN for this DNS instance", + "computed": true + }, + "zone_id": { + "name": "zone_id", + "type": "TypeString", + "description": "The unique identifier of the DNS zone.", + "computed": true + } + } + }, + { + "name": "type", + "type": "TypeString", + "description": "Load Balancer type", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this Load Balancer", + "cloud_data_type": "crn", + "computed": true + }, { "name": "resource_name", "type": "TypeString", @@ -48547,9 +49283,9 @@ "computed": true }, { - "name": "type", + "name": "resource_controller_url", "type": "TypeString", - "description": "Load Balancer type", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { @@ -48558,6 +49294,27 @@ "description": "Indicates whether this load balancer supports UDP.", "computed": true }, + { + "name": "status", + "type": "TypeString", + "description": "Load Balancer status", + "computed": true + }, + { + "name": "route_mode", + "type": "TypeBool", + "description": "Indicates whether route mode is enabled for this load balancer", + "computed": true + }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "private_ip", "type": "TypeList", @@ -48597,54 +49354,14 @@ } }, { - "name": "security_groups", - "type": "TypeSet", - "description": "Load Balancer securitygroups list", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "Load Balancer Resource group", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "public_ips", - "type": "TypeList", - "description": "Load Balancer Public IPs", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "subnets", - "type": "TypeSet", - "description": "Load Balancer subnets list", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "access_tags", + "name": "listeners", "type": "TypeSet", - "description": "List of access tags", + "description": "Load Balancer Listeners list", "computed": true, "elem": { "type": "TypeString" } }, - { - "name": "logging", - "type": "TypeBool", - "description": "Logging of Load Balancer", - "computed": true - }, { "name": "pools", "type": "TypeList", @@ -48733,12 +49450,6 @@ } } }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - }, { "name": "name", "type": "TypeString", @@ -48746,10 +49457,13 @@ "required": true }, { - "name": "route_mode", - "type": "TypeBool", - "description": "Indicates whether route mode is enabled for this load balancer", - "computed": true + "name": "public_ips", + "type": "TypeList", + "description": "Load Balancer Public IPs", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "private_ips", @@ -48761,55 +49475,52 @@ } }, { - "name": "security_group_supported", - "type": "TypeBool", - "description": "Security Group Supported for this Load Balancer", - "computed": true - }, - { - "name": "tags", + "name": "subnets", "type": "TypeSet", - "description": "Tags associated to Load Balancer", - "cloud_data_type": "tags", + "description": "Load Balancer subnets list", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "hostname", + "name": "security_group_supported", + "type": "TypeBool", + "description": "Security Group Supported for this Load Balancer", + "computed": true + } + ], + "ibm_is_lb_listener": [ + { + "name": "connection_limit", + "type": "TypeInt", + "description": "The connection limit of the listener.", + "computed": true + }, + { + "name": "provisioning_status", "type": "TypeString", - "description": "Load Balancer Host Name", + "description": "The provisioning status of this listener.", "computed": true }, { - "name": "dns", - "type": "TypeList", - "description": "The DNS configuration for this load balancer.", - "computed": true, - "elem": { - "instance_crn": { - "name": "instance_crn", - "type": "TypeString", - "description": "The CRN for this DNS instance", - "computed": true - }, - "zone_id": { - "name": "zone_id", - "type": "TypeString", - "description": "The unique identifier of the DNS zone.", - "computed": true - } - } + "name": "idle_connection_timeout", + "type": "TypeInt", + "description": "idle connection timeout of listener", + "computed": true }, { - "name": "status", + "name": "lb", "type": "TypeString", - "description": "Load Balancer status", + "description": "The load balancer identifier.", + "required": true + }, + { + "name": "accept_proxy_protocol", + "type": "TypeBool", + "description": "If set to `true`, this listener will accept and forward PROXY protocol information. Supported by load balancers in the `application` family (otherwise always `false`). Additional restrictions:- If this listener has `https_redirect` specified, its `accept_proxy_protocol` value must match the `accept_proxy_protocol` value of the `https_redirect` listener.- If this listener is the target of another listener's `https_redirect`, its `accept_proxy_protocol` value must match that listener's `accept_proxy_protocol` value.", "computed": true - } - ], - "ibm_is_lb_listener": [ + }, { "name": "certificate_instance", "type": "TypeList", @@ -48825,21 +49536,27 @@ } }, { - "name": "accept_proxy_protocol", - "type": "TypeBool", - "description": "If set to `true`, this listener will accept and forward PROXY protocol information. Supported by load balancers in the `application` family (otherwise always `false`). Additional restrictions:- If this listener has `https_redirect` specified, its `accept_proxy_protocol` value must match the `accept_proxy_protocol` value of the `https_redirect` listener.- If this listener is the target of another listener's `https_redirect`, its `accept_proxy_protocol` value must match that listener's `accept_proxy_protocol` value.", + "name": "created_at", + "type": "TypeString", + "description": "The date and time that this listener was created.", "computed": true }, { - "name": "created_at", + "name": "href", "type": "TypeString", - "description": "The date and time that this listener was created.", + "description": "The listener's canonical URL.", "computed": true }, { - "name": "default_pool", + "name": "port", + "type": "TypeInt", + "description": "The listener port number, or the inclusive lower bound of the port range. Each listener in the load balancer must have a unique `port` and `protocol` combination.", + "computed": true + }, + { + "name": "policies", "type": "TypeList", - "description": "The default pool associated with the listener.", + "description": "The policies for this listener.", "computed": true, "elem": { "deleted": { @@ -48859,39 +49576,21 @@ "href": { "name": "href", "type": "TypeString", - "description": "The pool's canonical URL.", + "description": "The listener policy's canonical URL.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this load balancer pool.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this load balancer pool.", + "description": "The policy's unique identifier.", "computed": true } } }, { - "name": "port_max", + "name": "port_min", "type": "TypeInt", - "description": "The inclusive upper bound of the range of ports used by this listener.Only load balancers in the `network` family support more than one port per listener.", - "computed": true - }, - { - "name": "protocol", - "type": "TypeString", - "description": "The listener protocol. Load balancers in the `network` family support `tcp`. Load balancers in the `application` family support `tcp`, `http`, and `https`. Each listener in the load balancer must have a unique `port` and `protocol` combination.", - "computed": true - }, - { - "name": "provisioning_status", - "type": "TypeString", - "description": "The provisioning status of this listener.", + "description": "The inclusive lower bound of the range of ports used by this listener.Only load balancers in the `network` family support more than one port per listener.", "computed": true }, { @@ -48901,16 +49600,44 @@ "required": true }, { - "name": "connection_limit", - "type": "TypeInt", - "description": "The connection limit of the listener.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The listener's canonical URL.", - "computed": true + "name": "default_pool", + "type": "TypeList", + "description": "The default pool associated with the listener.", + "computed": true, + "elem": { + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The pool's canonical URL.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this load balancer pool.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this load balancer pool.", + "computed": true + } + } }, { "name": "https_redirect", @@ -48966,62 +49693,16 @@ } }, { - "name": "policies", - "type": "TypeList", - "description": "The policies for this listener.", - "computed": true, - "elem": { - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The listener policy's canonical URL.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The policy's unique identifier.", - "computed": true - } - } - }, - { - "name": "port", - "type": "TypeInt", - "description": "The listener port number, or the inclusive lower bound of the port range. Each listener in the load balancer must have a unique `port` and `protocol` combination.", - "computed": true - }, - { - "name": "port_min", - "type": "TypeInt", - "description": "The inclusive lower bound of the range of ports used by this listener.Only load balancers in the `network` family support more than one port per listener.", - "computed": true - }, - { - "name": "idle_connection_timeout", + "name": "port_max", "type": "TypeInt", - "description": "idle connection timeout of listener", + "description": "The inclusive upper bound of the range of ports used by this listener.Only load balancers in the `network` family support more than one port per listener.", "computed": true }, { - "name": "lb", + "name": "protocol", "type": "TypeString", - "description": "The load balancer identifier.", - "required": true + "description": "The listener protocol. Load balancers in the `network` family support `tcp`. Load balancers in the `application` family support `tcp`, `http`, and `https`. Each listener in the load balancer must have a unique `port` and `protocol` combination.", + "computed": true } ], "ibm_is_lb_listener_policies": [ @@ -49215,27 +49896,15 @@ ], "ibm_is_lb_listener_policy": [ { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this policy.", - "computed": true - }, - { - "name": "priority", - "type": "TypeInt", - "description": "Priority of the policy. Lower value indicates higher priority.", - "computed": true - }, - { - "name": "provisioning_status", + "name": "lb", "type": "TypeString", - "description": "The provisioning status of this policy.", - "computed": true + "description": "The load balancer identifier.", + "required": true }, { - "name": "lb", + "name": "listener", "type": "TypeString", - "description": "The load balancer identifier.", + "description": "The listener identifier.", "required": true }, { @@ -49245,9 +49914,15 @@ "computed": true }, { - "name": "href", + "name": "name", "type": "TypeString", - "description": "The listener policy's canonical URL.", + "description": "The user-defined name for this policy.", + "computed": true + }, + { + "name": "provisioning_status", + "type": "TypeString", + "description": "The provisioning status of this policy.", "computed": true }, { @@ -49375,12 +50050,6 @@ } } }, - { - "name": "listener", - "type": "TypeString", - "description": "The listener identifier.", - "required": true - }, { "name": "policy_id", "type": "TypeString", @@ -49392,39 +50061,21 @@ "type": "TypeString", "description": "The policy action.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the policy on which the unexpected property value was encountered.", "computed": true - } - ], - "ibm_is_lb_listener_policy_rule": [ - { - "name": "rule", - "type": "TypeString", - "description": "The rule identifier.", - "required": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that this rule was created.", - "computed": true - }, - { - "name": "field", - "type": "TypeString", - "description": "The field. This is applicable to `header`, `query`, and `body` rule types.If the rule type is `header`, this property is required.If the rule type is `query`, this is optional. If specified and the rule condition is not`matches_regex`, the value must be percent-encoded.If the rule type is `body`, this is optional.", - "computed": true }, { - "name": "provisioning_status", + "name": "href", "type": "TypeString", - "description": "The provisioning status of this rule.", + "description": "The listener policy's canonical URL.", "computed": true }, { - "name": "type", - "type": "TypeString", - "description": "The type of the rule.Body rules are applied to form-encoded request bodies using the `UTF-8` character set.", + "name": "priority", + "type": "TypeInt", + "description": "Priority of the policy. Lower value indicates higher priority.", "computed": true - }, + } + ], + "ibm_is_lb_listener_policy_rule": [ { "name": "value", "type": "TypeString", @@ -49455,6 +50106,36 @@ "description": "The condition of the rule.", "computed": true }, + { + "name": "provisioning_status", + "type": "TypeString", + "description": "The provisioning status of this rule.", + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "The type of the rule.Body rules are applied to form-encoded request bodies using the `UTF-8` character set.", + "computed": true + }, + { + "name": "rule", + "type": "TypeString", + "description": "The rule identifier.", + "required": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that this rule was created.", + "computed": true + }, + { + "name": "field", + "type": "TypeString", + "description": "The field. This is applicable to `header`, `query`, and `body` rule types.If the rule type is `header`, this property is required.If the rule type is `query`, this is optional. If specified and the rule condition is not`matches_regex`, the value must be percent-encoded.If the rule type is `body`, this is optional.", + "computed": true + }, { "name": "href", "type": "TypeString", @@ -49764,80 +50445,29 @@ ], "ibm_is_lb_pool": [ { - "name": "provisioning_status", + "name": "identifier", "type": "TypeString", - "description": "The provisioning status of this pool.", - "computed": true + "description": "The pool identifier.", + "optional": true }, { - "name": "session_persistence", - "type": "TypeList", - "description": "The session persistence of this pool.The enumerated values for this property are expected to expand in the future. Whenprocessing this property, check for and log unknown values. Optionally haltprocessing and surface the error, or bypass the pool on which the unexpectedproperty value was encountered.", - "computed": true, - "elem": { - "cookie_name": { - "name": "cookie_name", - "type": "TypeString", - "description": "The session persistence cookie name. Applicable only for type `app_cookie`. Names starting with `IBM` are not allowed.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The session persistence type. The `http_cookie` and `app_cookie` types are applicable only to the `http` and `https` protocols.", - "computed": true - } - } + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this load balancer pool.", + "optional": true, + "computed": true }, { - "name": "identifier", + "name": "created_at", "type": "TypeString", - "description": "The pool identifier.", - "optional": true + "description": "The date and time that this pool was created.", + "computed": true }, { - "name": "health_monitor", - "type": "TypeList", - "description": "The health monitor of this pool.", - "computed": true, - "elem": { - "delay": { - "name": "delay", - "type": "TypeInt", - "description": "The health check interval in seconds. Interval must be greater than timeout value.", - "computed": true - }, - "max_retries": { - "name": "max_retries", - "type": "TypeInt", - "description": "The health check max retries.", - "computed": true - }, - "port": { - "name": "port", - "type": "TypeInt", - "description": "The health check port number. If specified, this overrides the ports specified in the server member resources.", - "computed": true - }, - "timeout": { - "name": "timeout", - "type": "TypeInt", - "description": "The health check timeout in seconds.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The protocol type of this load balancer pool health monitor.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the health monitor on which the unexpected property value was encountered.", - "computed": true - }, - "url_path": { - "name": "url_path", - "type": "TypeString", - "description": "The health check URL path. Applicable only if the health monitor `type` is `http` or`https`. This value must be in the format of an [origin-form request target](https://tools.ietf.org/html/rfc7230#section-5.3.1).", - "computed": true - } - } + "name": "href", + "type": "TypeString", + "description": "The pool's canonical URL.", + "computed": true }, { "name": "instance_group", @@ -49885,18 +50515,6 @@ } } }, - { - "name": "protocol", - "type": "TypeString", - "description": "The protocol used for this load balancer pool.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the pool on which the unexpected property value was encountered.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The pool's canonical URL.", - "computed": true - }, { "name": "members", "type": "TypeList", @@ -49932,23 +50550,22 @@ } }, { - "name": "proxy_protocol", + "name": "protocol", "type": "TypeString", - "description": "The PROXY protocol setting for this pool:- `v1`: Enabled with version 1 (human-readable header format)- `v2`: Enabled with version 2 (binary header format)- `disabled`: DisabledSupported by load balancers in the `application` family (otherwise always `disabled`).", + "description": "The protocol used for this load balancer pool.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the pool on which the unexpected property value was encountered.", "computed": true }, { - "name": "lb", + "name": "provisioning_status", "type": "TypeString", - "description": "The load balancer identifier.", - "required": true + "description": "The provisioning status of this pool.", + "computed": true }, { - "name": "name", + "name": "lb", "type": "TypeString", - "description": "The user-defined name for this load balancer pool.", - "optional": true, - "computed": true + "description": "The load balancer identifier.", + "required": true }, { "name": "algorithm", @@ -49957,13 +50574,83 @@ "computed": true }, { - "name": "created_at", + "name": "health_monitor", + "type": "TypeList", + "description": "The health monitor of this pool.", + "computed": true, + "elem": { + "delay": { + "name": "delay", + "type": "TypeInt", + "description": "The health check interval in seconds. Interval must be greater than timeout value.", + "computed": true + }, + "max_retries": { + "name": "max_retries", + "type": "TypeInt", + "description": "The health check max retries.", + "computed": true + }, + "port": { + "name": "port", + "type": "TypeInt", + "description": "The health check port number. If specified, this overrides the ports specified in the server member resources.", + "computed": true + }, + "timeout": { + "name": "timeout", + "type": "TypeInt", + "description": "The health check timeout in seconds.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The protocol type of this load balancer pool health monitor.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the health monitor on which the unexpected property value was encountered.", + "computed": true + }, + "url_path": { + "name": "url_path", + "type": "TypeString", + "description": "The health check URL path. Applicable only if the health monitor `type` is `http` or`https`. This value must be in the format of an [origin-form request target](https://tools.ietf.org/html/rfc7230#section-5.3.1).", + "computed": true + } + } + }, + { + "name": "proxy_protocol", "type": "TypeString", - "description": "The date and time that this pool was created.", + "description": "The PROXY protocol setting for this pool:- `v1`: Enabled with version 1 (human-readable header format)- `v2`: Enabled with version 2 (binary header format)- `disabled`: DisabledSupported by load balancers in the `application` family (otherwise always `disabled`).", "computed": true + }, + { + "name": "session_persistence", + "type": "TypeList", + "description": "The session persistence of this pool.The enumerated values for this property are expected to expand in the future. Whenprocessing this property, check for and log unknown values. Optionally haltprocessing and surface the error, or bypass the pool on which the unexpectedproperty value was encountered.", + "computed": true, + "elem": { + "cookie_name": { + "name": "cookie_name", + "type": "TypeString", + "description": "The session persistence cookie name. Applicable only for type `app_cookie`. Names starting with `IBM` are not allowed.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The session persistence type. The `http_cookie` and `app_cookie` types are applicable only to the `http` and `https` protocols.", + "computed": true + } + } } ], "ibm_is_lb_pool_member": [ + { + "name": "weight", + "type": "TypeInt", + "description": "Weight of the server member. Applicable only if the pool algorithm is`weighted_round_robin`.", + "computed": true + }, { "name": "lb", "type": "TypeString", @@ -49971,21 +50658,21 @@ "required": true }, { - "name": "created_at", + "name": "pool", "type": "TypeString", - "description": "The date and time that this member was created.", - "computed": true + "description": "The pool identifier.", + "required": true }, { - "name": "health", + "name": "member", "type": "TypeString", - "description": "Health of the server member in the pool.", - "computed": true + "description": "The member identifier.", + "required": true }, { - "name": "port", - "type": "TypeInt", - "description": "The port number of the application running in the server member.", + "name": "created_at", + "type": "TypeString", + "description": "The date and time that this member was created.", "computed": true }, { @@ -50041,16 +50728,10 @@ } }, { - "name": "pool", - "type": "TypeString", - "description": "The pool identifier.", - "required": true - }, - { - "name": "member", + "name": "health", "type": "TypeString", - "description": "The member identifier.", - "required": true + "description": "Health of the server member in the pool.", + "computed": true }, { "name": "href", @@ -50059,19 +50740,31 @@ "computed": true }, { - "name": "provisioning_status", - "type": "TypeString", - "description": "The provisioning status of this member.", + "name": "port", + "type": "TypeInt", + "description": "The port number of the application running in the server member.", "computed": true }, { - "name": "weight", - "type": "TypeInt", - "description": "Weight of the server member. Applicable only if the pool algorithm is`weighted_round_robin`.", + "name": "provisioning_status", + "type": "TypeString", + "description": "The provisioning status of this member.", "computed": true } ], "ibm_is_lb_pool_members": [ + { + "name": "lb", + "type": "TypeString", + "description": "The load balancer identifier.", + "required": true + }, + { + "name": "pool", + "type": "TypeString", + "description": "The pool identifier.", + "required": true + }, { "name": "members", "type": "TypeList", @@ -50173,18 +50866,6 @@ "computed": true } } - }, - { - "name": "lb", - "type": "TypeString", - "description": "The load balancer identifier.", - "required": true - }, - { - "name": "pool", - "type": "TypeString", - "description": "The pool identifier.", - "required": true } ], "ibm_is_lb_pools": [ @@ -50396,12 +51077,6 @@ } ], "ibm_is_lb_profile": [ - { - "name": "route_mode_supported", - "type": "TypeBool", - "description": "The route mode support for a load balancer with this profile depends on its configuration", - "computed": true - }, { "name": "route_mode_type", "type": "TypeString", @@ -50437,6 +51112,12 @@ "type": "TypeString", "description": "The product family this load balancer profile belongs to", "computed": true + }, + { + "name": "route_mode_supported", + "type": "TypeBool", + "description": "The route mode support for a load balancer with this profile depends on its configuration", + "computed": true } ], "ibm_is_lb_profiles": [ @@ -50788,201 +51469,75 @@ "optional": true }, { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this network ACL.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "rules", + "name": "resource_group", "type": "TypeList", - "description": "The ordered rules for this network ACL. If no rules exist, all traffic will be denied.", + "description": "The resource group for this network ACL.", + "cloud_data_type": "resource_group", "computed": true, "elem": { - "action": { - "name": "action", - "type": "TypeString", - "description": "Whether to allow or deny matching traffic.", - "computed": true - }, - "before": { - "name": "before", - "type": "TypeList", - "description": "The rule that this rule is immediately before. In a rule collection, this alwaysrefers to the next item in the collection. If absent, this is the last rule.", - "computed": true, - "elem": { - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this network ACL rule.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this network ACL rule.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this network ACL rule.", - "computed": true - } - } - }, - "created_at": { - "name": "created_at", + "href": { + "name": "href", "type": "TypeString", - "description": "The date and time that the rule was created.", + "description": "The URL for this resource group.", "computed": true }, - "destination": { - "name": "destination", + "id": { + "name": "id", "type": "TypeString", - "description": "The destination CIDR block. The CIDR block `0.0.0.0/0` applies to all addresses.", + "description": "The unique identifier for this resource group.", "computed": true }, - "direction": { - "name": "direction", + "name": { + "name": "name", "type": "TypeString", - "description": "Whether the traffic to be matched is `inbound` or `outbound`.", + "description": "The user-defined name for this resource group.", "computed": true - }, - "href": { - "name": "href", + } + } + }, + { + "name": "subnets", + "type": "TypeList", + "description": "The subnets to which this network ACL is attached.", + "computed": true, + "elem": { + "crn": { + "name": "crn", "type": "TypeString", - "description": "The URL for this network ACL rule.", + "description": "The CRN for this subnet.", "computed": true }, - "icmp": { - "name": "icmp", + "deleted": { + "name": "deleted", "type": "TypeList", - "description": "The protocol ICMP", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", "computed": true, "elem": { - "code": { - "name": "code", - "type": "TypeInt", - "description": "The ICMP traffic code to allow. Valid values from 0 to 255.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeInt", - "description": "The ICMP traffic type to allow. Valid values from 0 to 254.", + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", "computed": true } } }, - "id": { - "name": "id", + "href": { + "name": "href", "type": "TypeString", - "description": "The unique identifier for this network ACL rule.", + "description": "The URL for this subnet.", "computed": true }, - "ip_version": { - "name": "ip_version", + "id": { + "name": "id", "type": "TypeString", - "description": "The IP version for this rule.", + "description": "The unique identifier for this subnet.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The user-defined name for this rule. Names must be unique within the network ACL the rule resides in. If unspecified, the name will be a hyphenated list of randomly-selected words.", - "computed": true - }, - "protocol": { - "name": "protocol", - "type": "TypeString", - "description": "The protocol to enforce.", - "computed": true - }, - "source": { - "name": "source", - "type": "TypeString", - "description": "The source CIDR block. The CIDR block `0.0.0.0/0` applies to all addresses.", + "description": "The user-defined name for this subnet.", "computed": true - }, - "tcp": { - "name": "tcp", - "type": "TypeList", - "description": "TCP protocol", - "computed": true, - "elem": { - "port_max": { - "name": "port_max", - "type": "TypeInt", - "description": "The highest port in the range of ports to be matched", - "computed": true - }, - "port_min": { - "name": "port_min", - "type": "TypeInt", - "description": "The lowest port in the range of ports to be matched", - "computed": true - }, - "source_port_max": { - "name": "source_port_max", - "type": "TypeInt", - "description": "The highest port in the range of ports to be matched", - "computed": true - }, - "source_port_min": { - "name": "source_port_min", - "type": "TypeInt", - "description": "The lowest port in the range of ports to be matched", - "computed": true - } - } - }, - "udp": { - "name": "udp", - "type": "TypeList", - "description": "UDP protocol", - "computed": true, - "elem": { - "port_max": { - "name": "port_max", - "type": "TypeInt", - "description": "The highest port in the range of ports to be matched", - "computed": true - }, - "port_min": { - "name": "port_min", - "type": "TypeInt", - "description": "The lowest port in the range of ports to be matched", - "computed": true - }, - "source_port_max": { - "name": "source_port_max", - "type": "TypeInt", - "description": "The highest port in the range of ports to be matched", - "computed": true - }, - "source_port_min": { - "name": "source_port_min", - "type": "TypeInt", - "description": "The lowest port in the range of ports to be matched", - "computed": true - } - } } } }, @@ -51047,6 +51602,19 @@ "description": "The network acl name.", "optional": true }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the network ACL was created.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this network ACL.", + "cloud_data_type": "crn", + "computed": true + }, { "name": "href", "type": "TypeString", @@ -51054,111 +51622,210 @@ "computed": true }, { - "name": "resource_group", + "name": "rules", "type": "TypeList", - "description": "The resource group for this network ACL.", - "cloud_data_type": "resource_group", + "description": "The ordered rules for this network ACL. If no rules exist, all traffic will be denied.", "computed": true, "elem": { - "href": { - "name": "href", + "action": { + "name": "action", "type": "TypeString", - "description": "The URL for this resource group.", + "description": "Whether to allow or deny matching traffic.", "computed": true }, - "id": { - "name": "id", + "before": { + "name": "before", + "type": "TypeList", + "description": "The rule that this rule is immediately before. In a rule collection, this alwaysrefers to the next item in the collection. If absent, this is the last rule.", + "computed": true, + "elem": { + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this network ACL rule.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this network ACL rule.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this network ACL rule.", + "computed": true + } + } + }, + "created_at": { + "name": "created_at", "type": "TypeString", - "description": "The unique identifier for this resource group.", + "description": "The date and time that the rule was created.", "computed": true }, - "name": { - "name": "name", + "destination": { + "name": "destination", "type": "TypeString", - "description": "The user-defined name for this resource group.", + "description": "The destination CIDR block. The CIDR block `0.0.0.0/0` applies to all addresses.", "computed": true - } - } - }, - { - "name": "subnets", - "type": "TypeList", - "description": "The subnets to which this network ACL is attached.", - "computed": true, - "elem": { - "crn": { - "name": "crn", + }, + "direction": { + "name": "direction", "type": "TypeString", - "description": "The CRN for this subnet.", + "description": "Whether the traffic to be matched is `inbound` or `outbound`.", "computed": true }, - "deleted": { - "name": "deleted", + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this network ACL rule.", + "computed": true + }, + "icmp": { + "name": "icmp", "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "description": "The protocol ICMP", "computed": true, "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", + "code": { + "name": "code", + "type": "TypeInt", + "description": "The ICMP traffic code to allow. Valid values from 0 to 255.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeInt", + "description": "The ICMP traffic type to allow. Valid values from 0 to 254.", "computed": true } } }, - "href": { - "name": "href", + "id": { + "name": "id", "type": "TypeString", - "description": "The URL for this subnet.", + "description": "The unique identifier for this network ACL rule.", "computed": true }, - "id": { - "name": "id", + "ip_version": { + "name": "ip_version", "type": "TypeString", - "description": "The unique identifier for this subnet.", + "description": "The IP version for this rule.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The user-defined name for this subnet.", + "description": "The user-defined name for this rule. Names must be unique within the network ACL the rule resides in. If unspecified, the name will be a hyphenated list of randomly-selected words.", "computed": true + }, + "protocol": { + "name": "protocol", + "type": "TypeString", + "description": "The protocol to enforce.", + "computed": true + }, + "source": { + "name": "source", + "type": "TypeString", + "description": "The source CIDR block. The CIDR block `0.0.0.0/0` applies to all addresses.", + "computed": true + }, + "tcp": { + "name": "tcp", + "type": "TypeList", + "description": "TCP protocol", + "computed": true, + "elem": { + "port_max": { + "name": "port_max", + "type": "TypeInt", + "description": "The highest port in the range of ports to be matched", + "computed": true + }, + "port_min": { + "name": "port_min", + "type": "TypeInt", + "description": "The lowest port in the range of ports to be matched", + "computed": true + }, + "source_port_max": { + "name": "source_port_max", + "type": "TypeInt", + "description": "The highest port in the range of ports to be matched", + "computed": true + }, + "source_port_min": { + "name": "source_port_min", + "type": "TypeInt", + "description": "The lowest port in the range of ports to be matched", + "computed": true + } + } + }, + "udp": { + "name": "udp", + "type": "TypeList", + "description": "UDP protocol", + "computed": true, + "elem": { + "port_max": { + "name": "port_max", + "type": "TypeInt", + "description": "The highest port in the range of ports to be matched", + "computed": true + }, + "port_min": { + "name": "port_min", + "type": "TypeInt", + "description": "The lowest port in the range of ports to be matched", + "computed": true + }, + "source_port_max": { + "name": "source_port_max", + "type": "TypeInt", + "description": "The highest port in the range of ports to be matched", + "computed": true + }, + "source_port_min": { + "name": "source_port_min", + "type": "TypeInt", + "description": "The lowest port in the range of ports to be matched", + "computed": true + } + } } } - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the network ACL was created.", - "computed": true } ], "ibm_is_network_acl_rule": [ { - "name": "href", + "name": "name", "type": "TypeString", - "description": "The URL for this network ACL rule", - "computed": true + "description": "The user-defined name for this rule", + "required": true }, { - "name": "icmp", - "type": "TypeList", - "description": "The protocol ICMP", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeInt", - "description": "The ICMP traffic code to allow. Valid values from 0 to 255.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeInt", - "description": "The ICMP traffic type to allow. Valid values from 0 to 254.", - "computed": true - } - } + "name": "ip_version", + "type": "TypeString", + "description": "The IP version for this rule.", + "computed": true }, { "name": "tcp", @@ -51192,6 +51859,44 @@ } } }, + { + "name": "action", + "type": "TypeString", + "description": "Whether to allow or deny matching traffic.", + "computed": true + }, + { + "name": "source", + "type": "TypeString", + "description": "The source IP address or CIDR block.", + "computed": true + }, + { + "name": "destination", + "type": "TypeString", + "description": "The destination IP address or CIDR block.", + "computed": true + }, + { + "name": "icmp", + "type": "TypeList", + "description": "The protocol ICMP", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeInt", + "description": "The ICMP traffic code to allow. Valid values from 0 to 255.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeInt", + "description": "The ICMP traffic type to allow. Valid values from 0 to 254.", + "computed": true + } + } + }, { "name": "udp", "type": "TypeList", @@ -51225,27 +51930,15 @@ } }, { - "name": "source", - "type": "TypeString", - "description": "The source IP address or CIDR block.", - "computed": true - }, - { - "name": "destination", + "name": "before", "type": "TypeString", - "description": "The destination IP address or CIDR block.", + "description": "The rule that this rule is immediately before. If absent, this is the last rule.", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this rule", - "required": true - }, - { - "name": "protocol", + "name": "direction", "type": "TypeString", - "description": "The protocol to enforce.", + "description": "Whether the traffic to be matched is inbound or outbound.", "computed": true }, { @@ -51261,31 +51954,31 @@ "computed": true }, { - "name": "ip_version", + "name": "protocol", "type": "TypeString", - "description": "The IP version for this rule.", + "description": "The protocol to enforce.", "computed": true }, { - "name": "direction", + "name": "href", "type": "TypeString", - "description": "Whether the traffic to be matched is inbound or outbound.", + "description": "The URL for this network ACL rule", "computed": true - }, + } + ], + "ibm_is_network_acl_rules": [ { - "name": "before", + "name": "direction", "type": "TypeString", - "description": "The rule that this rule is immediately before. If absent, this is the last rule.", - "computed": true + "description": "The direction of the rules to filter", + "optional": true }, { - "name": "action", + "name": "network_acl", "type": "TypeString", - "description": "Whether to allow or deny matching traffic.", - "computed": true - } - ], - "ibm_is_network_acl_rules": [ + "description": "Network ACL id", + "required": true + }, { "name": "rules", "type": "TypeList", @@ -51437,18 +52130,6 @@ } } } - }, - { - "name": "direction", - "type": "TypeString", - "description": "The direction of the rules to filter", - "optional": true - }, - { - "name": "network_acl", - "type": "TypeString", - "description": "Network ACL id", - "required": true } ], "ibm_is_network_acls": [ @@ -51818,6 +52499,24 @@ } ], "ibm_is_operating_system": [ + { + "name": "family", + "type": "TypeString", + "description": "The name of the software family this operating system belongs to", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this operating system", + "computed": true + }, + { + "name": "vendor", + "type": "TypeString", + "description": "The vendor of the operating system", + "computed": true + }, { "name": "name", "type": "TypeString", @@ -51847,24 +52546,6 @@ "type": "TypeString", "description": "A unique, display-friendly name for the operating system", "computed": true - }, - { - "name": "family", - "type": "TypeString", - "description": "The name of the software family this operating system belongs to", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this operating system", - "computed": true - }, - { - "name": "vendor", - "type": "TypeString", - "description": "The vendor of the operating system", - "computed": true } ], "ibm_is_operating_systems": [ @@ -51927,31 +52608,16 @@ ], "ibm_is_placement_group": [ { - "name": "resource_group", - "type": "TypeList", - "description": "The resource group for this placement group.", - "cloud_data_type": "resource_group", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this resource group.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this resource group.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this resource group.", - "computed": true - } - } + "name": "name", + "type": "TypeString", + "description": "The placement group name.", + "required": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the placement group.", + "computed": true }, { "name": "strategy", @@ -51969,24 +52635,6 @@ "type": "TypeString" } }, - { - "name": "name", - "type": "TypeString", - "description": "The placement group name.", - "required": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the placement group was created.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this placement group.", - "computed": true - }, { "name": "access_tags", "type": "TypeSet", @@ -51996,6 +52644,12 @@ "type": "TypeString" } }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the placement group was created.", + "computed": true + }, { "name": "crn", "type": "TypeString", @@ -52004,11 +52658,38 @@ "computed": true }, { - "name": "lifecycle_state", + "name": "href", "type": "TypeString", - "description": "The lifecycle state of the placement group.", + "description": "The URL for this placement group.", "computed": true }, + { + "name": "resource_group", + "type": "TypeList", + "description": "The resource group for this placement group.", + "cloud_data_type": "resource_group", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this resource group.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this resource group.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this resource group.", + "computed": true + } + } + }, { "name": "resource_type", "type": "TypeString", @@ -52126,21 +52807,23 @@ ], "ibm_is_public_gateway": [ { - "name": "resource_status", + "name": "status", "type": "TypeString", - "description": "The status of the resource", + "description": "Public gateway instance status", "computed": true }, { - "name": "resource_crn", + "name": "resource_group", "type": "TypeString", - "description": "The crn of the resource", + "description": "Public gateway resource group info", + "cloud_data_type": "resource_group", + "optional": true, "computed": true }, { - "name": "floating_ip", - "type": "TypeMap", - "description": "Public gateway floating IP", + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", "computed": true }, { @@ -52159,9 +52842,9 @@ } }, { - "name": "resource_controller_url", + "name": "resource_group_name", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "The resource group name in which resource is provisioned", "computed": true }, { @@ -52171,36 +52854,27 @@ "required": true }, { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", + "name": "floating_ip", + "type": "TypeMap", + "description": "Public gateway floating IP", "computed": true }, { - "name": "resource_group_name", + "name": "vpc", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "Public gateway VPC info", "computed": true }, { - "name": "resource_group", + "name": "resource_name", "type": "TypeString", - "description": "Public gateway resource group info", - "cloud_data_type": "resource_group", - "optional": true, + "description": "The name of the resource", "computed": true }, { - "name": "vpc", + "name": "resource_status", "type": "TypeString", - "description": "Public gateway VPC info", + "description": "The status of the resource", "computed": true }, { @@ -52214,9 +52888,16 @@ } }, { - "name": "status", + "name": "resource_controller_url", "type": "TypeString", - "description": "Public gateway instance status", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The crn of the resource", + "cloud_data_type": "crn", "computed": true } ], @@ -52335,11 +53016,6 @@ } ], "ibm_is_region": [ - { - "name": "status", - "type": "TypeString", - "computed": true - }, { "name": "endpoint", "type": "TypeString", @@ -52349,6 +53025,11 @@ "name": "name", "type": "TypeString", "optional": true + }, + { + "name": "status", + "type": "TypeString", + "computed": true } ], "ibm_is_regions": [ @@ -52382,6 +53063,12 @@ } ], "ibm_is_security_group": [ + { + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true + }, { "name": "name", "type": "TypeString", @@ -52395,6 +53082,44 @@ "immutable": true, "computed": true }, + { + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true + }, + { + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", + "computed": true + }, + { + "name": "tags", + "type": "TypeSet", + "description": "List of tags", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "crn", + "type": "TypeString", + "description": "The crn of the resource", + "cloud_data_type": "crn", + "computed": true + }, { "name": "rules", "type": "TypeList", @@ -52457,77 +53182,9 @@ "type": "TypeString", "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true - }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "crn", - "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "resource_crn", - "type": "TypeString", - "description": "The crn of the resource", - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "List of tags", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } } ], "ibm_is_security_group_rule": [ - { - "name": "code", - "type": "TypeInt", - "description": "The ICMP traffic code to allow.", - "computed": true - }, - { - "name": "security_group", - "type": "TypeString", - "description": "The security group identifier.", - "required": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this security group rule.", - "computed": true - }, - { - "name": "ip_version", - "type": "TypeString", - "description": "The IP version to enforce. The format of `remote.address` or `remote.cidr_block` must match this property, if they are used. Alternatively, if `remote` references a security group, then this rule only applies to IP addresses (network interfaces) in that group matching this IP version.", - "computed": true - }, { "name": "remote", "type": "TypeList", @@ -52587,22 +53244,28 @@ } }, { - "name": "port_max", + "name": "code", "type": "TypeInt", - "description": "The inclusive upper bound of TCP/UDP port range.", + "description": "The ICMP traffic code to allow.", "computed": true }, { - "name": "port_min", + "name": "type", "type": "TypeInt", - "description": "The inclusive lower bound of TCP/UDP port range.", + "description": "The ICMP traffic type to allow.", "computed": true }, { - "name": "security_group_rule", + "name": "href", "type": "TypeString", - "description": "The rule identifier.", - "required": true + "description": "The URL for this security group rule.", + "computed": true + }, + { + "name": "ip_version", + "type": "TypeString", + "description": "The IP version to enforce. The format of `remote.address` or `remote.cidr_block` must match this property, if they are used. Alternatively, if `remote` references a security group, then this rule only applies to IP addresses (network interfaces) in that group matching this IP version.", + "computed": true }, { "name": "direction", @@ -52617,10 +53280,28 @@ "computed": true }, { - "name": "type", + "name": "port_max", "type": "TypeInt", - "description": "The ICMP traffic type to allow.", + "description": "The inclusive upper bound of TCP/UDP port range.", + "computed": true + }, + { + "name": "port_min", + "type": "TypeInt", + "description": "The inclusive lower bound of TCP/UDP port range.", "computed": true + }, + { + "name": "security_group", + "type": "TypeString", + "description": "The security group identifier.", + "required": true + }, + { + "name": "security_group_rule", + "type": "TypeString", + "description": "The rule identifier.", + "required": true } ], "ibm_is_security_group_rules": [ @@ -52752,6 +53433,12 @@ } ], "ibm_is_security_group_target": [ + { + "name": "target", + "type": "TypeString", + "description": "security group target identifier", + "computed": true + }, { "name": "name", "type": "TypeString", @@ -52782,12 +53469,6 @@ "type": "TypeString", "description": "Security group id", "required": true - }, - { - "name": "target", - "type": "TypeString", - "description": "security group target identifier", - "computed": true } ], "ibm_is_security_group_targets": [ @@ -52837,24 +53518,6 @@ } ], "ibm_is_security_groups": [ - { - "name": "vpc_id", - "type": "TypeString", - "description": "vpc identifier.", - "optional": true - }, - { - "name": "vpc_crn", - "type": "TypeString", - "description": "vpc crn", - "optional": true - }, - { - "name": "vpc_name", - "type": "TypeString", - "description": "vpc name.", - "optional": true - }, { "name": "security_groups", "type": "TypeList", @@ -53152,213 +53815,31 @@ "description": "resource group identifier.", "cloud_data_type": "resource_group", "optional": true - } - ], - "ibm_is_share": [ + }, { - "name": "share", + "name": "vpc_id", "type": "TypeString", - "description": "The file share identifier.", + "description": "vpc identifier.", "optional": true }, { - "name": "iops", - "type": "TypeInt", - "description": "The maximum input/output operation performance bandwidth per second for the file share.", - "computed": true - }, - { - "name": "replication_role", + "name": "vpc_crn", "type": "TypeString", - "description": "The replication role of the file share.* `none`: This share is not participating in replication.* `replica`: This share is a replication target.* `source`: This share is a replication source.", - "computed": true + "description": "vpc crn", + "optional": true }, { - "name": "resource_group", + "name": "vpc_name", "type": "TypeString", - "description": "The unique identifier of the resource group for this file share.", - "cloud_data_type": "resource_group", - "computed": true - }, + "description": "vpc name.", + "optional": true + } + ], + "ibm_is_share": [ { - "name": "size", + "name": "iops", "type": "TypeInt", - "description": "The size of the file share rounded up to the next gigabyte.", - "computed": true - }, - { - "name": "access_control_mode", - "type": "TypeString", - "description": "The access control mode for the share", - "computed": true - }, - { - "name": "source_share", - "type": "TypeList", - "description": "The source file share for this replica file share.This property will be present when the `replication_role` is `replica`.", - "computed": true, - "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this file share.", - "computed": true - }, - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this file share.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this file share.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this file share.", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", - "computed": true - } - } - }, - { - "name": "zone", - "type": "TypeString", - "description": "The globally unique name of the zone this file share will reside in.", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this share.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "encryption", - "type": "TypeString", - "description": "The type of encryption used for this file share.", - "computed": true - }, - { - "name": "lifecycle_state", - "type": "TypeString", - "description": "The lifecycle state of the file share.", - "computed": true - }, - { - "name": "profile", - "type": "TypeString", - "description": "The globally unique name of the profile this file share uses.", - "computed": true - }, - { - "name": "replica_share", - "type": "TypeList", - "description": "The replica file share for this source file share.This property will be present when the `replication_role` is `source`.", - "computed": true, - "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this file share.", - "computed": true - }, - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this file share.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this file share.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this file share.", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", - "computed": true - } - } - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced.", - "computed": true - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the share.", - "optional": true, - "computed": true - }, - { - "name": "encryption_key", - "type": "TypeString", - "description": "The key used to encrypt this file share. The CRN of the [Key Protect Root Key](https://cloud.ibm.com/docs/key-protect?topic=key-protect-getting-started-tutorial) or [Hyper Protect Crypto Service Root Key](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started) for this resource.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this share.", + "description": "The maximum input/output operation performance bandwidth per second for the file share.", "computed": true }, { @@ -53408,49 +53889,146 @@ } }, { - "name": "replication_cron_spec", + "name": "lifecycle_state", "type": "TypeString", - "description": "The cron specification for the file share replication schedule.This property will be present when the `replication_role` is `replica`.", + "description": "The lifecycle state of the file share.", "computed": true }, { - "name": "replication_status_reasons", + "name": "replica_share", "type": "TypeList", - "description": "The reasons for the current replication status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", + "description": "The replica file share for this source file share.This property will be present when the `replication_role` is `source`.", "computed": true, "elem": { - "code": { - "name": "code", + "crn": { + "name": "crn", "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason.", + "description": "The CRN for this file share.", "computed": true }, - "message": { - "name": "message", + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", "type": "TypeString", - "description": "An explanation of the status reason.", + "description": "The URL for this file share.", "computed": true }, - "more_info": { - "name": "more_info", + "id": { + "name": "id", "type": "TypeString", - "description": "Link to documentation about this status reason.", + "description": "The unique identifier for this file share.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this file share.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", "computed": true } } }, { - "name": "created_at", + "name": "replication_status", "type": "TypeString", - "description": "The date and time that the file share is created.", + "description": "The replication status of the file share.* `active`: This share is actively participating in replication, and the replica's data is up-to-date with the replication schedule.* `failover_pending`: This share is performing a replication failover.* `initializing`: This share is initializing replication.* `none`: This share is not participating in replication.* `split_pending`: This share is performing a replication split.", "computed": true }, { - "name": "replication_status", + "name": "zone", "type": "TypeString", - "description": "The replication status of the file share.* `active`: This share is actively participating in replication, and the replica's data is up-to-date with the replication schedule.* `failover_pending`: This share is performing a replication failover.* `initializing`: This share is initializing replication.* `none`: This share is not participating in replication.* `split_pending`: This share is performing a replication split.", + "description": "The globally unique name of the zone this file share will reside in.", + "computed": true + }, + { + "name": "encryption", + "type": "TypeString", + "description": "The type of encryption used for this file share.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this share.", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "The unique identifier of the resource group for this file share.", + "cloud_data_type": "resource_group", "computed": true }, + { + "name": "source_share", + "type": "TypeList", + "description": "The source file share for this replica file share.This property will be present when the `replication_role` is `replica`.", + "computed": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this file share.", + "computed": true + }, + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this file share.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this file share.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this file share.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + } + } + }, { "name": "share_targets", "type": "TypeList", @@ -53497,6 +54075,109 @@ } } }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "size", + "type": "TypeInt", + "description": "The size of the file share rounded up to the next gigabyte.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the share.", + "optional": true, + "computed": true + }, + { + "name": "encryption_key", + "type": "TypeString", + "description": "The key used to encrypt this file share. The CRN of the [Key Protect Root Key](https://cloud.ibm.com/docs/key-protect?topic=key-protect-getting-started-tutorial) or [Hyper Protect Crypto Service Root Key](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started) for this resource.", + "computed": true + }, + { + "name": "profile", + "type": "TypeString", + "description": "The globally unique name of the profile this file share uses.", + "computed": true + }, + { + "name": "replication_cron_spec", + "type": "TypeString", + "description": "The cron specification for the file share replication schedule.This property will be present when the `replication_role` is `replica`.", + "computed": true + }, + { + "name": "replication_role", + "type": "TypeString", + "description": "The replication role of the file share.* `none`: This share is not participating in replication.* `replica`: This share is a replication target.* `source`: This share is a replication source.", + "computed": true + }, + { + "name": "replication_status_reasons", + "type": "TypeList", + "description": "The reasons for the current replication status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the status reason.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the status reason.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about this status reason.", + "computed": true + } + } + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The type of resource referenced.", + "computed": true + }, + { + "name": "share", + "type": "TypeString", + "description": "The file share identifier.", + "optional": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the file share is created.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this share.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "access_control_mode", + "type": "TypeString", + "description": "The access control mode for the share", + "computed": true + }, { "name": "tags", "type": "TypeSet", @@ -53510,38 +54191,56 @@ ], "ibm_is_share_mount_target": [ { - "name": "mount_target", + "name": "transit_encryption", "type": "TypeString", - "description": "The share target identifier.", - "optional": true + "computed": true }, { - "name": "share_name", + "name": "mount_path", "type": "TypeString", - "description": "The file share name.", - "optional": true + "description": "The mount path for the share.The IP addresses used in the mount path are currently within the IBM services IP range, but are expected to change to be within one of the VPC's subnets in the future.", + "computed": true }, { - "name": "transit_encryption", + "name": "name", "type": "TypeString", + "description": "The user-defined name for this share target.", "computed": true }, { - "name": "name", + "name": "resource_type", "type": "TypeString", - "description": "The user-defined name for this share target.", + "description": "The type of resource referenced.", "computed": true }, { - "name": "virtual_network_interface", + "name": "share", + "type": "TypeString", + "description": "The file share identifier.", + "optional": true + }, + { + "name": "mount_target", + "type": "TypeString", + "description": "The share target identifier.", + "optional": true + }, + { + "name": "mount_target_name", + "type": "TypeString", + "description": "The share target name.", + "optional": true + }, + { + "name": "subnet", "type": "TypeList", - "description": "The virtual network interface for this file share mount target.", + "description": "The subnet associated with this file share target.", "computed": true, "elem": { "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN for this virtual network interface.", + "description": "The CRN for this subnet.", "computed": true }, "deleted": { @@ -53561,19 +54260,19 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for this virtual network interface.", + "description": "The URL for this subnet.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this virtual network interface.", + "description": "The unique identifier for this subnet.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The unique user-defined name for this virtual network interface.", + "description": "The user-defined name for this subnet.", "computed": true }, "resource_type": { @@ -53585,39 +54284,15 @@ } }, { - "name": "access_control_mode", - "type": "TypeString", - "description": "The access control mode for the share", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this share target.", - "computed": true - }, - { - "name": "mount_path", - "type": "TypeString", - "description": "The mount path for the share.The IP addresses used in the mount path are currently within the IBM services IP range, but are expected to change to be within one of the VPC's subnets in the future.", - "computed": true - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced.", - "computed": true - }, - { - "name": "vpc", + "name": "virtual_network_interface", "type": "TypeList", - "description": "The VPC to which this share target is allowing to mount the file share.", + "description": "The virtual network interface for this file share mount target.", "computed": true, "elem": { "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN for this VPC.", + "description": "The CRN for this virtual network interface.", "computed": true }, "deleted": { @@ -53637,19 +54312,19 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for this VPC.", + "description": "The URL for this virtual network interface.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this VPC.", + "description": "The unique identifier for this virtual network interface.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The unique user-defined name for this VPC.", + "description": "The unique user-defined name for this virtual network interface.", "computed": true }, "resource_type": { @@ -53661,39 +54336,21 @@ } }, { - "name": "share", - "type": "TypeString", - "description": "The file share identifier.", - "optional": true - }, - { - "name": "mount_target_name", - "type": "TypeString", - "description": "The share target name.", - "optional": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the share target was created.", - "computed": true - }, - { - "name": "lifecycle_state", + "name": "href", "type": "TypeString", - "description": "The lifecycle state of the mount target.", + "description": "The URL for this share target.", "computed": true }, { - "name": "subnet", + "name": "vpc", "type": "TypeList", - "description": "The subnet associated with this file share target.", + "description": "The VPC to which this share target is allowing to mount the file share.", "computed": true, "elem": { "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN for this subnet.", + "description": "The CRN for this VPC.", "computed": true }, "deleted": { @@ -53713,19 +54370,19 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for this subnet.", + "description": "The URL for this VPC.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this subnet.", + "description": "The unique identifier for this VPC.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The user-defined name for this subnet.", + "description": "The unique user-defined name for this VPC.", "computed": true }, "resource_type": { @@ -53735,9 +54392,39 @@ "computed": true } } + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the share target was created.", + "computed": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the mount target.", + "computed": true + }, + { + "name": "share_name", + "type": "TypeString", + "description": "The file share name.", + "optional": true + }, + { + "name": "access_control_mode", + "type": "TypeString", + "description": "The access control mode for the share", + "computed": true } ], "ibm_is_share_mount_targets": [ + { + "name": "share", + "type": "TypeString", + "description": "The file share identifier.", + "required": true + }, { "name": "name", "type": "TypeString", @@ -53961,12 +54648,6 @@ } } } - }, - { - "name": "share", - "type": "TypeString", - "description": "The file share identifier.", - "required": true } ], "ibm_is_share_profile": [ @@ -54245,19 +54926,6 @@ } ], "ibm_is_shares": [ - { - "name": "name", - "type": "TypeString", - "description": "Name of the share.", - "optional": true - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "Resource group of the share.", - "cloud_data_type": "resource_group", - "optional": true - }, { "name": "shares", "type": "TypeList", @@ -54619,6 +55287,19 @@ "type": "TypeInt", "description": "The total number of resources across all pages.", "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the share.", + "optional": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource group of the share.", + "cloud_data_type": "resource_group", + "optional": true } ], "ibm_is_snapshot": [ @@ -54642,23 +55323,64 @@ } }, { - "name": "source_snapshot", + "name": "operating_system", + "type": "TypeString", + "description": "The globally unique name for the operating system included in this image", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The crn of the resource", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URL for the snapshot", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type of the snapshot", + "computed": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "Snapshot lifecycle state", + "computed": true + }, + { + "name": "minimum_capacity", + "type": "TypeInt", + "description": "Minimum capacity of the snapshot", + "computed": true + }, + { + "name": "captured_at", + "type": "TypeString", + "description": "The date and time that this snapshot was created", + "computed": true + }, + { + "name": "copies", "type": "TypeList", - "description": "If present, the source snapshot this snapshot was created from.", - "optional": true, + "description": "The copies of this snapshot in other regions.", "computed": true, "elem": { "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN of the source snapshot.", - "optional": true, + "description": "The CRN for the copied snapshot.", "computed": true }, "deleted": { "name": "deleted", "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.", + "description": "If present, this property indicates the referenced resource has been deleted, and provides some supplementary information.", "computed": true, "elem": { "more_info": { @@ -54672,19 +55394,19 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for the source snapshot.", + "description": "The URL for the copied snapshot.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for the source snapshot.", + "description": "The unique identifier for the copied snapshot.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The name for the source snapshot. The name is unique across all snapshots in the source snapshot's native region.", + "description": "The name for the copied snapshot. The name is unique across all snapshots in the copied snapshot's native region.", "computed": true }, "remote": { @@ -54716,45 +55438,41 @@ } }, { - "name": "encryption", + "name": "source_image", "type": "TypeString", - "description": "Encryption type of the snapshot", + "description": "If present, the image id from which the data on this volume was most directly provisioned.", "computed": true }, { - "name": "encryption_key", - "type": "TypeString", - "description": "A reference to the root key used to wrap the data encryption key for the source volume.", + "name": "bootable", + "type": "TypeBool", + "description": "Indicates if a boot volume attachment can be created with a volume created from this snapshot", "computed": true }, { - "name": "href", + "name": "encryption", "type": "TypeString", - "description": "URL for the snapshot", - "computed": true - }, - { - "name": "minimum_capacity", - "type": "TypeInt", - "description": "Minimum capacity of the snapshot", + "description": "Encryption type of the snapshot", "computed": true }, { - "name": "copies", + "name": "source_snapshot", "type": "TypeList", - "description": "The copies of this snapshot in other regions.", + "description": "If present, the source snapshot this snapshot was created from.", + "optional": true, "computed": true, "elem": { "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN for the copied snapshot.", + "description": "The CRN of the source snapshot.", + "optional": true, "computed": true }, "deleted": { "name": "deleted", "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted, and provides some supplementary information.", + "description": "If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.", "computed": true, "elem": { "more_info": { @@ -54768,19 +55486,19 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for the copied snapshot.", + "description": "The URL for the source snapshot.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for the copied snapshot.", + "description": "The unique identifier for the source snapshot.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The name for the copied snapshot. The name is unique across all snapshots in the copied snapshot's native region.", + "description": "The name for the source snapshot. The name is unique across all snapshots in the source snapshot's native region.", "computed": true }, "remote": { @@ -54812,9 +55530,18 @@ } }, { - "name": "resource_type", + "name": "access_tags", + "type": "TypeSet", + "description": "List of access tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "encryption_key", "type": "TypeString", - "description": "The resource type of the snapshot", + "description": "A reference to the root key used to wrap the data encryption key for the source volume.", "computed": true }, { @@ -54824,43 +55551,28 @@ "computed": true }, { - "name": "operating_system", + "name": "identifier", "type": "TypeString", - "description": "The globally unique name for the operating system included in this image", - "computed": true - }, - { - "name": "bootable", - "type": "TypeBool", - "description": "Indicates if a boot volume attachment can be created with a volume created from this snapshot", - "computed": true + "description": "Snapshot identifier", + "optional": true }, { - "name": "lifecycle_state", + "name": "name", "type": "TypeString", - "description": "Snapshot lifecycle state", - "computed": true + "description": "Snapshot name", + "optional": true }, { - "name": "captured_at", + "name": "resource_group", "type": "TypeString", - "description": "The date and time that this snapshot was created", + "description": "Resource group info", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "crn", + "name": "source_volume", "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", + "description": "Snapshot source volume id", "computed": true }, { @@ -54908,37 +55620,6 @@ "computed": true } } - }, - { - "name": "identifier", - "type": "TypeString", - "description": "Snapshot identifier", - "optional": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Snapshot name", - "optional": true - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "Resource group info", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "source_volume", - "type": "TypeString", - "description": "Snapshot source volume id", - "computed": true - }, - { - "name": "source_image", - "type": "TypeString", - "description": "If present, the image id from which the data on this volume was most directly provisioned.", - "computed": true } ], "ibm_is_snapshot_clone": [ @@ -55008,25 +55689,25 @@ "optional": true }, { - "name": "name", + "name": "backup_policy_plan_id", "type": "TypeString", - "description": "Filters the snapshot collection by snapshot name", + "description": "Filters the collection to backup policy jobs with the backup plan with the specified identifier", "optional": true }, { - "name": "snapshot_copies_id", + "name": "tag", "type": "TypeString", - "description": "Filters the collection to snapshots with copies with the specified identifier.", + "description": "Filters the collection to resources with the exact tag value", "optional": true }, { - "name": "snapshot_copies_crn", + "name": "source_snapshot_id", "type": "TypeString", - "description": "Filters the collection to snapshots with copies with the specified CRN.", + "description": "Filters the collection to resources with the source snapshot with the specified identifier.", "optional": true }, { - "name": "source_snapshot_remote_region_name", + "name": "snapshot_source_volume_remote_region_name", "type": "TypeString", "description": "Filters the collection to snapshots with a source snapshot with the exact remote region name.", "optional": true @@ -55038,7 +55719,19 @@ "optional": true }, { - "name": "snapshot_source_volume_remote_region_name", + "name": "snapshot_copies_id", + "type": "TypeString", + "description": "Filters the collection to snapshots with copies with the specified identifier.", + "optional": true + }, + { + "name": "snapshot_copies_name", + "type": "TypeString", + "description": "Filters the collection to snapshots with copies with the exact specified name.", + "optional": true + }, + { + "name": "source_snapshot_remote_region_name", "type": "TypeString", "description": "Filters the collection to snapshots with a source snapshot with the exact remote region name.", "optional": true @@ -55366,15 +56059,15 @@ } }, { - "name": "backup_policy_plan_id", + "name": "snapshot_copies_remote_region_name", "type": "TypeString", - "description": "Filters the collection to backup policy jobs with the backup plan with the specified identifier", + "description": "Filters the collection to snapshots with copies with the exact remote region name.", "optional": true }, { - "name": "source_snapshot_id", + "name": "name", "type": "TypeString", - "description": "Filters the collection to resources with the source snapshot with the specified identifier.", + "description": "Filters the snapshot collection by snapshot name", "optional": true }, { @@ -55384,25 +56077,19 @@ "optional": true }, { - "name": "tag", - "type": "TypeString", - "description": "Filters the collection to resources with the exact tag value", - "optional": true - }, - { - "name": "snapshot_copies_name", - "type": "TypeString", - "description": "Filters the collection to snapshots with copies with the exact specified name.", - "optional": true - }, - { - "name": "snapshot_copies_remote_region_name", + "name": "snapshot_copies_crn", "type": "TypeString", - "description": "Filters the collection to snapshots with copies with the exact remote region name.", + "description": "Filters the collection to snapshots with copies with the specified CRN.", "optional": true } ], "ibm_is_source_share": [ + { + "name": "name", + "type": "TypeString", + "description": "Name of the share.", + "computed": true + }, { "name": "share_replica", "type": "TypeString", @@ -55427,33 +56114,15 @@ "type": "TypeString", "description": "The type of resource referenced.", "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the share.", - "computed": true } ], "ibm_is_ssh_key": [ { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "name", + "name": "resource_group", "type": "TypeString", - "description": "The name of the ssh key", - "required": true + "description": "Resource group ID", + "cloud_data_type": "resource_group", + "optional": true }, { "name": "type", @@ -55467,12 +56136,6 @@ "description": "The ssh key Fingerprint", "computed": true }, - { - "name": "public_key", - "type": "TypeString", - "description": "SSH Public key data", - "computed": true - }, { "name": "length", "type": "TypeInt", @@ -55480,22 +56143,10 @@ "computed": true }, { - "name": "resource_group", - "type": "TypeString", - "description": "Resource group ID", - "cloud_data_type": "resource_group", - "optional": true - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - }, - { - "name": "resource_crn", + "name": "crn", "type": "TypeString", "description": "The crn of the resource", + "cloud_data_type": "crn", "computed": true }, { @@ -55512,6 +56163,36 @@ "elem": { "type": "TypeString" } + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the ssh key", + "required": true + }, + { + "name": "public_key", + "type": "TypeString", + "description": "SSH Public key data", + "computed": true + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true + }, + { + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true + }, + { + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", + "computed": true } ], "ibm_is_ssh_keys": [ @@ -55615,8 +56296,14 @@ ], "ibm_is_subnet": [ { - "name": "total_ipv4_address_count", - "type": "TypeInt", + "name": "name", + "type": "TypeString", + "optional": true, + "computed": true + }, + { + "name": "network_acl", + "type": "TypeString", "computed": true }, { @@ -55626,10 +56313,8 @@ "computed": true }, { - "name": "crn", + "name": "vpc_name", "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", "computed": true }, { @@ -55638,15 +56323,14 @@ "computed": true }, { - "name": "resource_controller_url", + "name": "resource_status", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "The status of the resource", "computed": true }, { - "name": "resource_group_name", + "name": "ipv4_cidr_block", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", "computed": true }, { @@ -55655,46 +56339,36 @@ "computed": true }, { - "name": "name", + "name": "public_gateway", "type": "TypeString", - "optional": true, "computed": true }, - { - "name": "tags", - "type": "TypeSet", - "description": "List of tags", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "status", "type": "TypeString", "computed": true }, { - "name": "vpc_name", + "name": "vpc", "type": "TypeString", "computed": true }, { - "name": "vpc", + "name": "resource_controller_url", "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { - "name": "resource_group", + "name": "resource_crn", "type": "TypeString", - "cloud_data_type": "resource_group", + "description": "The crn of the resource", "computed": true }, { - "name": "resource_crn", + "name": "resource_group_name", "type": "TypeString", - "description": "The crn of the resource", + "description": "The resource group name in which resource is provisioned", "computed": true }, { @@ -55703,33 +56377,25 @@ "optional": true }, { - "name": "ipv4_cidr_block", - "type": "TypeString", + "name": "total_ipv4_address_count", + "type": "TypeInt", "computed": true }, { - "name": "access_tags", + "name": "tags", "type": "TypeSet", - "description": "List of access tags", + "description": "List of tags", + "cloud_data_type": "tags", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "network_acl", - "type": "TypeString", - "computed": true - }, - { - "name": "public_gateway", - "type": "TypeString", - "computed": true - }, - { - "name": "resource_status", + "name": "crn", "type": "TypeString", - "description": "The status of the resource", + "description": "The crn of the resource", + "cloud_data_type": "crn", "computed": true }, { @@ -55777,31 +56443,28 @@ "computed": true } } - } - ], - "ibm_is_subnet_reserved_ip": [ - { - "name": "reserved_ip", - "type": "TypeString", - "description": "The reserved IP identifier.", - "required": true }, { - "name": "address", - "type": "TypeString", - "description": "The IP address", - "computed": true + "name": "access_tags", + "type": "TypeSet", + "description": "List of access tags", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "created_at", + "name": "resource_group", "type": "TypeString", - "description": "The date and time that the reserved IP was created.", + "cloud_data_type": "resource_group", "computed": true - }, + } + ], + "ibm_is_subnet_reserved_ip": [ { - "name": "target_crn", + "name": "href", "type": "TypeString", - "description": "The crn for target.", + "description": "The URL for this reserved IP.", "computed": true }, { @@ -55823,15 +56486,15 @@ "computed": true }, { - "name": "target", + "name": "target_crn", "type": "TypeString", - "description": "Reserved IP target id.", + "description": "The crn for target.", "computed": true }, { - "name": "subnet", + "name": "reserved_ip", "type": "TypeString", - "description": "The subnet identifier.", + "description": "The reserved IP identifier.", "required": true }, { @@ -55847,9 +56510,27 @@ "computed": true }, { - "name": "href", + "name": "created_at", "type": "TypeString", - "description": "The URL for this reserved IP.", + "description": "The date and time that the reserved IP was created.", + "computed": true + }, + { + "name": "target", + "type": "TypeString", + "description": "Reserved IP target id.", + "computed": true + }, + { + "name": "subnet", + "type": "TypeString", + "description": "The subnet identifier.", + "required": true + }, + { + "name": "address", + "type": "TypeString", + "description": "The IP address", "computed": true } ], @@ -56077,6 +56758,96 @@ } ], "ibm_is_virtual_endpoint_gateway": [ + { + "name": "security_groups", + "type": "TypeSet", + "description": "Endpoint gateway securitygroups list", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "allow_dns_resolution_binding", + "type": "TypeBool", + "description": "Indicates whether to allow this endpoint gateway to participate in DNS resolution bindings with a VPC that has dns.enable_hub set to true.", + "computed": true + }, + { + "name": "health_state", + "type": "TypeString", + "description": "Endpoint gateway health state", + "computed": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "Endpoint gateway lifecycle state", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this Endpoint gateway", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "service_endpoints", + "type": "TypeList", + "description": "The fully qualified domain names for the target service. A fully qualified domain name for the target service", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "ips", + "type": "TypeList", + "description": "Endpoint gateway IPs", + "computed": true, + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "Endpoint gateway IP Address", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The IPs id", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The IPs name", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "Endpoint gateway IP resource type", + "computed": true + } + } + }, + { + "name": "vpc", + "type": "TypeString", + "description": "The VPC id", + "computed": true + }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "resource_group", "type": "TypeString", @@ -56120,64 +56891,6 @@ "type": "TypeString" } }, - { - "name": "service_endpoints", - "type": "TypeList", - "description": "The fully qualified domain names for the target service. A fully qualified domain name for the target service", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "allow_dns_resolution_binding", - "type": "TypeBool", - "description": "Indicates whether to allow this endpoint gateway to participate in DNS resolution bindings with a VPC that has dns.enable_hub set to true.", - "computed": true - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "Endpoint gateway resource type", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this Endpoint gateway", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "lifecycle_state", - "type": "TypeString", - "description": "Endpoint gateway lifecycle state", - "computed": true - }, - { - "name": "security_groups", - "type": "TypeSet", - "description": "Endpoint gateway securitygroups list", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "vpc", - "type": "TypeString", - "description": "The VPC id", - "computed": true - }, { "name": "name", "type": "TypeString", @@ -56185,42 +56898,10 @@ "required": true }, { - "name": "health_state", + "name": "resource_type", "type": "TypeString", - "description": "Endpoint gateway health state", + "description": "Endpoint gateway resource type", "computed": true - }, - { - "name": "ips", - "type": "TypeList", - "description": "Endpoint gateway IPs", - "computed": true, - "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "Endpoint gateway IP Address", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The IPs id", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The IPs name", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "Endpoint gateway IP resource type", - "computed": true - } - } } ], "ibm_is_virtual_endpoint_gateway_ips": [ @@ -56300,6 +56981,13 @@ } ], "ibm_is_virtual_endpoint_gateways": [ + { + "name": "resource_group", + "type": "TypeString", + "description": "The unique identifier of the resource group this endpoint gateway belongs to", + "cloud_data_type": "resource_group", + "optional": true + }, { "name": "name", "type": "TypeString", @@ -56460,16 +57148,15 @@ "computed": true } } - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "The unique identifier of the resource group this endpoint gateway belongs to", - "cloud_data_type": "resource_group", - "optional": true } ], "ibm_is_virtual_network_interface": [ + { + "name": "virtual_network_interface", + "type": "TypeString", + "description": "The network interface identifier.", + "required": true + }, { "name": "resource_group", "type": "TypeList", @@ -56498,15 +57185,21 @@ } }, { - "name": "primary_ip", + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + }, + { + "name": "subnet", "type": "TypeList", - "description": "The reserved IP for this virtual network interface.May be absent when `lifecycle_state` is `pending`.", + "description": "The associated subnet.", "computed": true, "elem": { - "address": { - "name": "address", + "crn": { + "name": "crn", "type": "TypeString", - "description": "The IP address.If the address has not yet been selected, the value will be `0.0.0.0`.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", + "description": "The CRN for this subnet.", "computed": true }, "deleted": { @@ -56526,19 +57219,19 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for this reserved IP.", + "description": "The URL for this subnet.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this reserved IP.", + "description": "The unique identifier for this subnet.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The name for this reserved IP. The name is unique across all reserved IPs in a subnet.", + "description": "The name for this subnet. The name is unique across all subnets in the VPC.", "computed": true }, "resource_type": { @@ -56550,23 +57243,11 @@ } }, { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", - "computed": true - }, - { - "name": "security_groups", + "name": "target", "type": "TypeList", - "description": "The security groups for this virtual network interface.", + "description": "The target of this virtual network interface.If absent, this virtual network interface is not attached to a target.", "computed": true, "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The security group's CRN.", - "computed": true - }, "deleted": { "name": "deleted", "type": "TypeList", @@ -56584,29 +57265,41 @@ "href": { "name": "href", "type": "TypeString", - "description": "The security group's canonical URL.", + "description": "The URL for this share mount target.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this security group.", + "description": "The unique identifier for this share mount target.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The name for this security group. The name is unique across all security groups for the VPC.", + "description": "The name for this share mount target. The name is unique across all targets for the file share.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", "computed": true } } }, { - "name": "target", + "name": "vpc", "type": "TypeList", - "description": "The target of this virtual network interface.If absent, this virtual network interface is not attached to a target.", + "description": "The VPC this virtual network interface resides in.", "computed": true, "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this VPC.", + "computed": true + }, "deleted": { "name": "deleted", "type": "TypeList", @@ -56624,19 +57317,19 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for this share mount target.", + "description": "The URL for this VPC.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this share mount target.", + "description": "The unique identifier for this VPC.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The name for this share mount target. The name is unique across all targets for the file share.", + "description": "The name for this VPC. The name is unique across all VPCs in the region.", "computed": true }, "resource_type": { @@ -56647,6 +57340,26 @@ } } }, + { + "name": "zone", + "type": "TypeList", + "description": "The zone this virtual network interface resides in.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this zone.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The globally unique name for this zone.", + "computed": true + } + } + }, { "name": "auto_delete", "type": "TypeBool", @@ -56654,27 +57367,28 @@ "computed": true }, { - "name": "href", + "name": "created_at", "type": "TypeString", - "description": "The URL for this virtual network interface.", + "description": "The date and time that the virtual network interface was created.", "computed": true }, { - "name": "lifecycle_state", + "name": "crn", "type": "TypeString", - "description": "The lifecycle state of the virtual network interface.", + "description": "The CRN for this virtual network interface.", + "cloud_data_type": "crn", "computed": true }, { - "name": "subnet", + "name": "primary_ip", "type": "TypeList", - "description": "The associated subnet.", + "description": "The reserved IP for this virtual network interface.May be absent when `lifecycle_state` is `pending`.", "computed": true, "elem": { - "crn": { - "name": "crn", + "address": { + "name": "address", "type": "TypeString", - "description": "The CRN for this subnet.", + "description": "The IP address.If the address has not yet been selected, the value will be `0.0.0.0`.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", "computed": true }, "deleted": { @@ -56694,19 +57408,19 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for this subnet.", + "description": "The URL for this reserved IP.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this subnet.", + "description": "The unique identifier for this reserved IP.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The name for this subnet. The name is unique across all subnets in the VPC.", + "description": "The name for this reserved IP. The name is unique across all reserved IPs in a subnet.", "computed": true }, "resource_type": { @@ -56718,15 +57432,15 @@ } }, { - "name": "vpc", + "name": "security_groups", "type": "TypeList", - "description": "The VPC this virtual network interface resides in.", + "description": "The security groups for this virtual network interface.", "computed": true, "elem": { "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN for this VPC.", + "description": "The security group's CRN.", "computed": true }, "deleted": { @@ -56746,46 +57460,27 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for this VPC.", + "description": "The security group's canonical URL.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this VPC.", + "description": "The unique identifier for this security group.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The name for this VPC. The name is unique across all VPCs in the region.", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", + "description": "The name for this security group. The name is unique across all security groups for the VPC.", "computed": true } } }, { - "name": "virtual_network_interface", - "type": "TypeString", - "description": "The network interface identifier.", - "required": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the virtual network interface was created.", - "computed": true - }, - { - "name": "crn", + "name": "href", "type": "TypeString", - "description": "The CRN for this virtual network interface.", - "cloud_data_type": "crn", + "description": "The URL for this virtual network interface.", "computed": true }, { @@ -56795,24 +57490,10 @@ "computed": true }, { - "name": "zone", - "type": "TypeList", - "description": "The zone this virtual network interface resides in.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this zone.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The globally unique name for this zone.", - "computed": true - } - } + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the virtual network interface.", + "computed": true } ], "ibm_is_virtual_network_interfaces": [ @@ -57169,21 +57850,15 @@ ], "ibm_is_volume": [ { - "name": "source_snapshot", + "name": "attachment_state", "type": "TypeString", - "description": "Identifier of the snapshot from which this volume was cloned", - "computed": true - }, - { - "name": "bandwidth", - "type": "TypeInt", - "description": "The maximum bandwidth (in megabits per second) for the volume", + "description": "The attachment state of the volume.", "computed": true }, { - "name": "iops", + "name": "capacity", "type": "TypeInt", - "description": "IOPS value for the Volume", + "description": "Vloume capacity value", "computed": true }, { @@ -57196,32 +57871,53 @@ } }, { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", + "name": "health_reasons", + "type": "TypeList", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this health state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this health state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this health state.", + "computed": true + } + } + }, + { + "name": "active", + "type": "TypeBool", + "description": "Indicates whether a running virtual server instance has an attachment to this volume.", "computed": true }, { - "name": "encryption_type", + "name": "encryption_key", "type": "TypeString", - "description": "Volume encryption type info", + "description": "Volume encryption key info", "computed": true }, { - "name": "resource_crn", - "type": "TypeString", - "description": "The crn of the resource", + "name": "iops", + "type": "TypeInt", + "description": "IOPS value for the Volume", "computed": true }, { - "name": "tags", - "type": "TypeSet", - "description": "Tags for the volume instance", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "status", + "type": "TypeString", + "description": "Volume status", + "computed": true }, { "name": "zone", @@ -57231,39 +57927,40 @@ "computed": true }, { - "name": "active", - "type": "TypeBool", - "description": "Indicates whether a running virtual server instance has an attachment to this volume.", + "name": "health_state", + "type": "TypeString", + "description": "The health of this resource.", "computed": true }, { - "name": "created_at", + "name": "source_snapshot", "type": "TypeString", - "description": "The date and time that the volume was created.", + "description": "Identifier of the snapshot from which this volume was cloned", "computed": true }, { - "name": "profile", + "name": "resource_status", "type": "TypeString", - "description": "Volume profile name", + "description": "The status of the resource", "computed": true }, { - "name": "status", - "type": "TypeString", - "description": "Volume status", + "name": "busy", + "type": "TypeBool", + "description": "Indicates whether this volume is performing an operation that must be serialized. If an operation specifies that it requires serialization, the operation will fail unless this property is `false`.", "computed": true }, { - "name": "resource_controller_url", + "name": "crn", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "CRN value for the volume instance", + "cloud_data_type": "crn", "computed": true }, { - "name": "resource_group_name", + "name": "resource_crn", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "The crn of the resource", "computed": true }, { @@ -57272,6 +57969,66 @@ "description": "Volume name", "required": true }, + { + "name": "profile", + "type": "TypeString", + "description": "Volume profile name", + "computed": true + }, + { + "name": "status_reasons", + "type": "TypeList", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the status reason", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the status reason", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about this status reason", + "computed": true + } + } + }, + { + "name": "tags", + "type": "TypeSet", + "description": "Tags for the volume instance", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true + }, + { + "name": "bandwidth", + "type": "TypeInt", + "description": "The maximum bandwidth (in megabits per second) for the volume", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource group name", + "cloud_data_type": "resource_group", + "computed": true + }, { "name": "operating_system", "type": "TypeList", @@ -57329,103 +58086,27 @@ } }, { - "name": "encryption_key", - "type": "TypeString", - "description": "Volume encryption key info", - "computed": true - }, - { - "name": "health_state", - "type": "TypeString", - "description": "The health of this resource.", - "computed": true - }, - { - "name": "attachment_state", + "name": "resource_controller_url", "type": "TypeString", - "description": "The attachment state of the volume.", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { - "name": "health_reasons", - "type": "TypeList", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the reason for this health state.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the reason for this health state.", - "computed": true - }, - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about the reason for this health state.", - "computed": true - } - } - }, - { - "name": "resource_group", + "name": "created_at", "type": "TypeString", - "description": "Resource group name", - "cloud_data_type": "resource_group", + "description": "The date and time that the volume was created.", "computed": true }, { - "name": "resource_status", + "name": "encryption_type", "type": "TypeString", - "description": "The status of the resource", + "description": "Volume encryption type info", "computed": true }, { - "name": "crn", + "name": "resource_group_name", "type": "TypeString", - "description": "CRN value for the volume instance", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "capacity", - "type": "TypeInt", - "description": "Vloume capacity value", - "computed": true - }, - { - "name": "status_reasons", - "type": "TypeList", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the status reason", - "computed": true - }, - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about this status reason", - "computed": true - } - } - }, - { - "name": "busy", - "type": "TypeBool", - "description": "Indicates whether this volume is performing an operation that must be serialized. If an operation specifies that it requires serialization, the operation will fail unless this property is `false`.", + "description": "The resource group name in which resource is provisioned", "computed": true } ], @@ -57464,6 +58145,36 @@ } ], "ibm_is_volumes": [ + { + "name": "attachment_state", + "type": "TypeString", + "description": "Attachment state of the Volume.", + "optional": true + }, + { + "name": "encryption", + "type": "TypeString", + "description": "Encryption type of Volume.", + "optional": true + }, + { + "name": "operating_system_family", + "type": "TypeString", + "description": "Operating system family of the Volume.", + "optional": true + }, + { + "name": "operating_system_architecture", + "type": "TypeString", + "description": "Operating system architecture of the Volume.", + "optional": true + }, + { + "name": "volume_name", + "type": "TypeString", + "description": "Volume name identifier.", + "optional": true + }, { "name": "zone_name", "type": "TypeString", @@ -57976,49 +58687,180 @@ } } } + } + ], + "ibm_is_vpc": [ + { + "name": "id", + "type": "TypeString", + "description": "Id of the ibm_is_vpc", + "cloud_data_type": "is", + "computed": true, + "cloud_data_range": [ + "service:vpc", + "resolved_to:id" + ] }, { - "name": "attachment_state", + "name": "default_network_acl_name", "type": "TypeString", - "description": "Attachment state of the Volume.", - "optional": true + "description": "Default Network ACL name", + "computed": true }, { - "name": "encryption", + "name": "resource_group", "type": "TypeString", - "description": "Encryption type of Volume.", - "optional": true + "cloud_data_type": "resource_group", + "computed": true }, { - "name": "operating_system_family", + "name": "status", "type": "TypeString", - "description": "Operating system family of the Volume.", - "optional": true + "computed": true }, { - "name": "operating_system_architecture", + "name": "crn", "type": "TypeString", - "description": "Operating system architecture of the Volume.", - "optional": true + "description": "The crn of the resource", + "cloud_data_type": "crn", + "computed": true }, { - "name": "volume_name", + "name": "security_group", + "type": "TypeList", + "computed": true, + "elem": { + "group_id": { + "name": "group_id", + "type": "TypeString", + "description": "Security group id", + "computed": true + }, + "group_name": { + "name": "group_name", + "type": "TypeString", + "description": "Security group name", + "computed": true + }, + "rules": { + "name": "rules", + "type": "TypeList", + "description": "Security Rules", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeInt", + "computed": true + }, + "direction": { + "name": "direction", + "type": "TypeString", + "description": "Direction of traffic to enforce, either inbound or outbound", + "computed": true + }, + "ip_version": { + "name": "ip_version", + "type": "TypeString", + "description": "IP version: ipv4", + "computed": true + }, + "port_max": { + "name": "port_max", + "type": "TypeInt", + "computed": true + }, + "port_min": { + "name": "port_min", + "type": "TypeInt", + "computed": true + }, + "protocol": { + "name": "protocol", + "type": "TypeString", + "computed": true + }, + "remote": { + "name": "remote", + "type": "TypeString", + "description": "Security group id: an IP address, a CIDR block, or a single security group identifier", + "computed": true + }, + "rule_id": { + "name": "rule_id", + "type": "TypeString", + "description": "Rule ID", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeInt", + "computed": true + } + } + } + } + }, + { + "name": "default_network_acl", + "type": "TypeString", + "computed": true + }, + { + "name": "default_network_acl_crn", + "type": "TypeString", + "description": "Default Network ACL CRN", + "computed": true + }, + { + "name": "default_routing_table_name", + "type": "TypeString", + "description": "Default routing table name", + "computed": true + }, + { + "name": "default_security_group", + "type": "TypeString", + "description": "Security group associated with VPC", + "computed": true + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true + }, + { + "name": "resource_status", + "type": "TypeString", + "description": "The status of the resource", + "computed": true + }, + { + "name": "identifier", "type": "TypeString", - "description": "Volume name identifier.", "optional": true - } - ], - "ibm_is_vpc": [ + }, { - "name": "id", + "name": "default_routing_table", "type": "TypeString", - "description": "Id of the ibm_is_vpc", - "cloud_data_type": "is", + "description": "Default routing table associated with VPC", + "computed": true + }, + { + "name": "default_security_group_crn", + "type": "TypeString", + "description": "Default security group CRN", + "computed": true + }, + { + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", "computed": true, - "cloud_data_range": [ - "service:vpc", - "resolved_to:id" - ] + "elem": { + "type": "TypeString" + } }, { "name": "classic_access", @@ -58026,10 +58868,23 @@ "computed": true }, { - "name": "default_network_acl_name", - "type": "TypeString", - "description": "Default Network ACL name", - "computed": true + "name": "cse_source_addresses", + "type": "TypeList", + "computed": true, + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "Cloud service endpoint IP Address", + "computed": true + }, + "zone_name": { + "name": "zone_name", + "type": "TypeString", + "description": "Location info of CSE Address", + "computed": true + } + } }, { "name": "dns", @@ -58210,51 +59065,27 @@ "computed": true }, { - "name": "default_security_group_crn", + "name": "resource_group_name", "type": "TypeString", - "description": "Default security group CRN", + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access tags", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "name", + "type": "TypeString", + "optional": true }, { - "name": "resource_status", + "name": "resource_name", "type": "TypeString", - "description": "The status of the resource", + "description": "The name of the resource", "computed": true }, { - "name": "health_reasons", - "type": "TypeList", - "description": "The reasons for the current `health_state` (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the reason for this health state.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the reason for this health state.", - "computed": true - }, - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about the reason for this health state.", - "computed": true - } - } + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", + "computed": true }, { "name": "subnets", @@ -58300,208 +59131,64 @@ } }, { - "name": "status", - "type": "TypeString", - "computed": true - }, - { - "name": "default_security_group", - "type": "TypeString", - "description": "Security group associated with VPC", - "computed": true - }, - { - "name": "tags", + "name": "access_tags", "type": "TypeSet", - "cloud_data_type": "tags", + "description": "List of access tags", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "name", - "type": "TypeString", - "optional": true - }, - { - "name": "default_network_acl_crn", - "type": "TypeString", - "description": "Default Network ACL CRN", - "computed": true - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - }, - { - "name": "resource_group", - "type": "TypeString", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "resource_crn", - "type": "TypeString", - "description": "The crn of the resource", - "computed": true - }, - { - "name": "cse_source_addresses", + "name": "health_reasons", "type": "TypeList", + "description": "The reasons for the current `health_state` (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", "computed": true, "elem": { - "address": { - "name": "address", + "code": { + "name": "code", "type": "TypeString", - "description": "Cloud service endpoint IP Address", + "description": "A snake case string succinctly identifying the reason for this health state.", "computed": true }, - "zone_name": { - "name": "zone_name", - "type": "TypeString", - "description": "Location info of CSE Address", - "computed": true - } - } - }, - { - "name": "default_network_acl", - "type": "TypeString", - "computed": true - }, - { - "name": "identifier", - "type": "TypeString", - "optional": true - }, - { - "name": "default_routing_table_name", - "type": "TypeString", - "description": "Default routing table name", - "computed": true - }, - { - "name": "default_routing_table", - "type": "TypeString", - "description": "Default routing table associated with VPC", - "computed": true - }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, - { - "name": "security_group", - "type": "TypeList", - "computed": true, - "elem": { - "group_id": { - "name": "group_id", + "message": { + "name": "message", "type": "TypeString", - "description": "Security group id", + "description": "An explanation of the reason for this health state.", "computed": true }, - "group_name": { - "name": "group_name", + "more_info": { + "name": "more_info", "type": "TypeString", - "description": "Security group name", + "description": "Link to documentation about the reason for this health state.", "computed": true - }, - "rules": { - "name": "rules", - "type": "TypeList", - "description": "Security Rules", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeInt", - "computed": true - }, - "direction": { - "name": "direction", - "type": "TypeString", - "description": "Direction of traffic to enforce, either inbound or outbound", - "computed": true - }, - "ip_version": { - "name": "ip_version", - "type": "TypeString", - "description": "IP version: ipv4", - "computed": true - }, - "port_max": { - "name": "port_max", - "type": "TypeInt", - "computed": true - }, - "port_min": { - "name": "port_min", - "type": "TypeInt", - "computed": true - }, - "protocol": { - "name": "protocol", - "type": "TypeString", - "computed": true - }, - "remote": { - "name": "remote", - "type": "TypeString", - "description": "Security group id: an IP address, a CIDR block, or a single security group identifier", - "computed": true - }, - "rule_id": { - "name": "rule_id", - "type": "TypeString", - "description": "Rule ID", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeInt", - "computed": true - } - } } } } ], "ibm_is_vpc_address_prefix": [ { - "name": "cidr", + "name": "vpc", "type": "TypeString", - "description": "The CIDR block for this prefix.", - "computed": true + "description": "The VPC identifier.", + "optional": true }, { - "name": "created_at", + "name": "vpc_name", "type": "TypeString", - "description": "The date and time that the prefix was created.", - "computed": true + "description": "The VPC name.", + "optional": true }, { - "name": "name", + "name": "address_prefix", "type": "TypeString", - "description": "The user-defined name for this address prefix. Names must be unique within the VPC the address prefix resides in.", + "description": "The address prefix identifier.", + "optional": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this address prefix.", "computed": true }, { @@ -58525,28 +59212,28 @@ } }, { - "name": "vpc", + "name": "name", "type": "TypeString", - "description": "The VPC identifier.", - "optional": true + "description": "The user-defined name for this address prefix. Names must be unique within the VPC the address prefix resides in.", + "computed": true }, { - "name": "vpc_name", + "name": "address_prefix_name", "type": "TypeString", - "description": "The VPC name.", + "description": "The address prefix name.", "optional": true }, { - "name": "address_prefix", + "name": "cidr", "type": "TypeString", - "description": "The address prefix identifier.", - "optional": true + "description": "The CIDR block for this prefix.", + "computed": true }, { - "name": "address_prefix_name", + "name": "created_at", "type": "TypeString", - "description": "The address prefix name.", - "optional": true + "description": "The date and time that the prefix was created.", + "computed": true }, { "name": "has_subnets", @@ -58554,12 +59241,6 @@ "description": "Indicates whether subnets exist with addresses from this prefix.", "computed": true }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this address prefix.", - "computed": true - }, { "name": "is_default", "type": "TypeBool", @@ -58653,21 +59334,9 @@ ], "ibm_is_vpc_default_routing_table": [ { - "name": "vpc", - "type": "TypeString", - "description": "VPC identifier", - "required": true - }, - { - "name": "lifecycle_state", - "type": "TypeString", - "description": "Default Routing table Lifecycle State", - "computed": true - }, - { - "name": "route_direct_link_ingress", + "name": "route_transit_gateway_ingress", "type": "TypeBool", - "description": "If set to true, this routing table will be used to route traffic that originates from Direct Link to this VPC.", + "description": "If set to true, this routing table will be used to route traffic that originates from Transit Gateway to this VPC.", "computed": true }, { @@ -58677,27 +59346,9 @@ "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "Default Routing table Created At", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "Default Routing table Href", - "computed": true - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "Default Routing table Resource Type", - "computed": true - }, - { - "name": "route_internet_ingress", + "name": "is_default", "type": "TypeBool", - "description": "If set to true, this routing table will be used to route traffic that originates from the internet. For this to succeed, the VPC must not already have a routing table with this property set to true.", + "description": "Indicates whether this is the default routing table for this VPC", "computed": true }, { @@ -58719,6 +59370,12 @@ } } }, + { + "name": "route_internet_ingress", + "type": "TypeBool", + "description": "If set to true, this routing table will be used to route traffic that originates from the internet. For this to succeed, the VPC must not already have a routing table with this property set to true.", + "computed": true + }, { "name": "subnets", "type": "TypeList", @@ -58739,9 +59396,9 @@ } }, { - "name": "default_routing_table", + "name": "href", "type": "TypeString", - "description": "Default Routing Table ID", + "description": "Default Routing table Href", "computed": true }, { @@ -58751,65 +59408,101 @@ "computed": true }, { - "name": "route_transit_gateway_ingress", - "type": "TypeBool", - "description": "If set to true, this routing table will be used to route traffic that originates from Transit Gateway to this VPC.", + "name": "created_at", + "type": "TypeString", + "description": "Default Routing table Created At", "computed": true }, { - "name": "is_default", + "name": "vpc", + "type": "TypeString", + "description": "VPC identifier", + "required": true + }, + { + "name": "default_routing_table", + "type": "TypeString", + "description": "Default Routing Table ID", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "Default Routing table Resource Type", + "computed": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "Default Routing table Lifecycle State", + "computed": true + }, + { + "name": "route_direct_link_ingress", "type": "TypeBool", - "description": "Indicates whether this is the default routing table for this VPC", + "description": "If set to true, this routing table will be used to route traffic that originates from Direct Link to this VPC.", "computed": true } ], "ibm_is_vpc_dns_resolution_binding": [ { - "name": "created_at", + "name": "name", "type": "TypeString", - "description": "The date and time that the DNS resolution binding was created.", + "description": "The name for this DNS resolution binding. The name is unique across all DNS resolution bindings for the VPC.", "computed": true }, { - "name": "href", + "name": "resource_type", "type": "TypeString", - "description": "The URL for this DNS resolution binding.", + "description": "The resource type.", "computed": true }, { - "name": "lifecycle_state", + "name": "vpc_id", "type": "TypeString", - "description": "The lifecycle state of the DNS resolution binding.", + "description": "The VPC identifier.", + "required": true + }, + { + "name": "identifier", + "type": "TypeString", + "description": "The DNS resolution binding identifier.", + "required": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the DNS resolution binding was created.", "computed": true }, { - "name": "vpc", + "name": "endpoint_gateways", "type": "TypeList", - "description": "The VPC bound to for DNS resolution.The VPC may be remote and therefore may not be directly retrievable.", + "description": "The endpoint gateways in the bound to VPC that are allowed to participate in this DNS resolution binding.The endpoint gateways may be remote and therefore may not be directly retrievable.", "computed": true, "elem": { "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN for this VPC.", + "description": "The CRN for this endpoint gateway.", "computed": true }, "href": { "name": "href", "type": "TypeString", - "description": "The URL for this VPC.", + "description": "The URL for this endpoint gateway.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this VPC.", + "description": "The unique identifier for this endpoint gateway.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The name for this VPC. The name is unique across all VPCs in the region.", + "description": "The name for this endpoint gateway. The name is unique across all endpoint gateways in the VPC.", "computed": true }, "remote": { @@ -58869,39 +59562,45 @@ } }, { - "name": "vpc_id", + "name": "href", "type": "TypeString", - "description": "The VPC identifier.", - "required": true + "description": "The URL for this DNS resolution binding.", + "computed": true }, { - "name": "endpoint_gateways", + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the DNS resolution binding.", + "computed": true + }, + { + "name": "vpc", "type": "TypeList", - "description": "The endpoint gateways in the bound to VPC that are allowed to participate in this DNS resolution binding.The endpoint gateways may be remote and therefore may not be directly retrievable.", + "description": "The VPC bound to for DNS resolution.The VPC may be remote and therefore may not be directly retrievable.", "computed": true, "elem": { "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN for this endpoint gateway.", + "description": "The CRN for this VPC.", "computed": true }, "href": { "name": "href", "type": "TypeString", - "description": "The URL for this endpoint gateway.", + "description": "The URL for this VPC.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this endpoint gateway.", + "description": "The unique identifier for this VPC.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The name for this endpoint gateway. The name is unique across all endpoint gateways in the VPC.", + "description": "The name for this VPC. The name is unique across all VPCs in the region.", "computed": true }, "remote": { @@ -58959,24 +59658,6 @@ "computed": true } } - }, - { - "name": "name", - "type": "TypeString", - "description": "The name for this DNS resolution binding. The name is unique across all DNS resolution bindings for the VPC.", - "computed": true - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", - "computed": true - }, - { - "name": "identifier", - "type": "TypeString", - "description": "The DNS resolution binding identifier.", - "required": true } ], "ibm_is_vpc_dns_resolution_bindings": [ @@ -59204,12 +59885,48 @@ } ], "ibm_is_vpc_routing_table": [ + { + "name": "routing_table", + "type": "TypeString", + "description": "The routing table identifier.", + "optional": true + }, { "name": "resource_type", "type": "TypeString", "description": "The resource type.", "computed": true }, + { + "name": "route_transit_gateway_ingress", + "type": "TypeBool", + "description": "Indicates whether this routing table is used to route traffic that originates from from [Transit Gateway](https://cloud.ibm.com/cloud/transit-gateway/) to this VPC.Incoming traffic will be routed according to the routing table with one exception: routes with an `action` of `deliver` are treated as `drop` unless the `next_hop` is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a `next_hop` of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that this routing table was created.", + "computed": true + }, + { + "name": "is_default", + "type": "TypeBool", + "description": "Indicates whether this is the default routing table for this VPC.", + "computed": true + }, + { + "name": "route_direct_link_ingress", + "type": "TypeBool", + "description": "Indicates whether this routing table is used to route traffic that originates from[Direct Link](https://cloud.ibm.com/docs/dl/) to this VPC.Incoming traffic will be routed according to the routing table with one exception: routes with an `action` of `deliver` are treated as `drop` unless the `next_hop` is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a `next_hop` of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.", + "computed": true + }, + { + "name": "route_internet_ingress", + "type": "TypeBool", + "description": "Indicates whether this routing table is used to route traffic that originates from the internet.Incoming traffic will be routed according to the routing table with two exceptions:- Traffic destined for IP addresses associated with public gateways will not be subject to routes in this routing table.- Routes with an action of deliver are treated as drop unless the `next_hop` is an IP address bound to a network interface on a subnet in the route's `zone`. Therefore, if an incoming packet matches a route with a `next_hop` of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.", + "computed": true + }, { "name": "accept_routes_from", "type": "TypeList", @@ -59224,6 +59941,36 @@ } } }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this routing table.", + "computed": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the routing table.", + "computed": true + }, + { + "name": "vpc", + "type": "TypeString", + "description": "The VPC identifier.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this routing table.", + "optional": true + }, + { + "name": "route_vpc_zone_ingress", + "type": "TypeBool", + "description": "Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC.Incoming traffic will be routed according to the routing table with one exception: routes with an `action` of `deliver` are treated as `drop` unless the `next_hop` is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a `next_hop` of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.", + "computed": true + }, { "name": "routes", "type": "TypeList", @@ -59309,72 +60056,6 @@ "computed": true } } - }, - { - "name": "vpc", - "type": "TypeString", - "description": "The VPC identifier.", - "required": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this routing table.", - "computed": true - }, - { - "name": "route_direct_link_ingress", - "type": "TypeBool", - "description": "Indicates whether this routing table is used to route traffic that originates from[Direct Link](https://cloud.ibm.com/docs/dl/) to this VPC.Incoming traffic will be routed according to the routing table with one exception: routes with an `action` of `deliver` are treated as `drop` unless the `next_hop` is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a `next_hop` of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.", - "computed": true - }, - { - "name": "route_internet_ingress", - "type": "TypeBool", - "description": "Indicates whether this routing table is used to route traffic that originates from the internet.Incoming traffic will be routed according to the routing table with two exceptions:- Traffic destined for IP addresses associated with public gateways will not be subject to routes in this routing table.- Routes with an action of deliver are treated as drop unless the `next_hop` is an IP address bound to a network interface on a subnet in the route's `zone`. Therefore, if an incoming packet matches a route with a `next_hop` of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.", - "computed": true - }, - { - "name": "route_transit_gateway_ingress", - "type": "TypeBool", - "description": "Indicates whether this routing table is used to route traffic that originates from from [Transit Gateway](https://cloud.ibm.com/cloud/transit-gateway/) to this VPC.Incoming traffic will be routed according to the routing table with one exception: routes with an `action` of `deliver` are treated as `drop` unless the `next_hop` is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a `next_hop` of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.", - "computed": true - }, - { - "name": "route_vpc_zone_ingress", - "type": "TypeBool", - "description": "Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC.Incoming traffic will be routed according to the routing table with one exception: routes with an `action` of `deliver` are treated as `drop` unless the `next_hop` is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a `next_hop` of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this routing table.", - "optional": true - }, - { - "name": "routing_table", - "type": "TypeString", - "description": "The routing table identifier.", - "optional": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that this routing table was created.", - "computed": true - }, - { - "name": "is_default", - "type": "TypeBool", - "description": "Indicates whether this is the default routing table for this VPC.", - "computed": true - }, - { - "name": "lifecycle_state", - "type": "TypeString", - "description": "The lifecycle state of the routing table.", - "computed": true } ], "ibm_is_vpc_routing_table_route": [ @@ -59385,39 +60066,15 @@ "optional": true }, { - "name": "lifecycle_state", - "type": "TypeString", - "description": "The lifecycle state of the route.", - "computed": true - }, - { - "name": "routing_table", - "type": "TypeString", - "description": "The routing table identifier.", - "required": true - }, - { - "name": "action", - "type": "TypeString", - "description": "The action to perform with a packet matching the route:- `delegate`: delegate to the system's built-in routes- `delegate_vpc`: delegate to the system's built-in routes, ignoring Internet-bound routes- `deliver`: deliver the packet to the specified `next_hop`- `drop`: drop the packet.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the route was created.", - "computed": true - }, - { - "name": "next_hop", + "name": "creator", "type": "TypeList", - "description": "If `action` is `deliver`, the next hop that packets will be delivered to. Forother `action` values, its `address` will be `0.0.0.0`.", + "description": "If present, the resource that created the route. Routes with this property present cannot bedirectly deleted. All routes with an `origin` of `learned` or `service` will have thisproperty set, and future `origin` values may also have this property set.", "computed": true, "elem": { - "address": { - "name": "address", + "crn": { + "name": "crn", "type": "TypeString", - "description": "The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", + "description": "The VPN gateway's CRN.", "computed": true }, "deleted": { @@ -59437,19 +60094,19 @@ "href": { "name": "href", "type": "TypeString", - "description": "The VPN connection's canonical URL.", + "description": "The VPN gateway's canonical URL.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this VPN gateway connection.", + "description": "The unique identifier for this VPN gateway.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The user-defined name for this VPN connection.", + "description": "The user-defined name for this VPN gateway.", "computed": true }, "resource_type": { @@ -59461,59 +60118,21 @@ } }, { - "name": "origin", + "name": "lifecycle_state", "type": "TypeString", - "description": "The origin of this route:- `service`: route was directly created by a service- `user`: route was directly created by a userThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the route on which the unexpected property value was encountered.", - "computed": true - }, - { - "name": "zone", - "type": "TypeList", - "description": "The zone the route applies to. (Traffic from subnets in this zone will besubject to this route.).", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this zone.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The globally unique name for this zone.", - "computed": true - } - } - }, - { - "name": "priority", - "type": "TypeInt", - "description": "The route's priority. Smaller values have higher priority. If a routing table contains routes with the same destination, the route with the highest priority (smallest value) is selected.", + "description": "The lifecycle state of the route.", "computed": true }, { - "name": "vpc", - "type": "TypeString", - "description": "The VPC identifier.", - "required": true - }, - { - "name": "route_id", - "type": "TypeString", - "description": "The VPC routing table route identifier.", - "optional": true - }, - { - "name": "creator", + "name": "next_hop", "type": "TypeList", - "description": "If present, the resource that created the route. Routes with this property present cannot bedirectly deleted. All routes with an `origin` of `learned` or `service` will have thisproperty set, and future `origin` values may also have this property set.", + "description": "If `action` is `deliver`, the next hop that packets will be delivered to. Forother `action` values, its `address` will be `0.0.0.0`.", "computed": true, "elem": { - "crn": { - "name": "crn", + "address": { + "name": "address", "type": "TypeString", - "description": "The VPN gateway's CRN.", + "description": "The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", "computed": true }, "deleted": { @@ -59533,19 +60152,19 @@ "href": { "name": "href", "type": "TypeString", - "description": "The VPN gateway's canonical URL.", + "description": "The VPN connection's canonical URL.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this VPN gateway.", + "description": "The unique identifier for this VPN gateway connection.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The user-defined name for this VPN gateway.", + "description": "The user-defined name for this VPN connection.", "computed": true }, "resource_type": { @@ -59556,6 +60175,38 @@ } } }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this route.", + "computed": true + }, + { + "name": "priority", + "type": "TypeInt", + "description": "The route's priority. Smaller values have higher priority. If a routing table contains routes with the same destination, the route with the highest priority (smallest value) is selected.", + "computed": true + }, + { + "name": "zone", + "type": "TypeList", + "description": "The zone the route applies to. (Traffic from subnets in this zone will besubject to this route.).", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this zone.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The globally unique name for this zone.", + "computed": true + } + } + }, { "name": "destination", "type": "TypeString", @@ -59563,9 +60214,39 @@ "computed": true }, { - "name": "href", + "name": "created_at", "type": "TypeString", - "description": "The URL for this route.", + "description": "The date and time that the route was created.", + "computed": true + }, + { + "name": "origin", + "type": "TypeString", + "description": "The origin of this route:- `service`: route was directly created by a service- `user`: route was directly created by a userThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the route on which the unexpected property value was encountered.", + "computed": true + }, + { + "name": "vpc", + "type": "TypeString", + "description": "The VPC identifier.", + "required": true + }, + { + "name": "routing_table", + "type": "TypeString", + "description": "The routing table identifier.", + "required": true + }, + { + "name": "route_id", + "type": "TypeString", + "description": "The VPC routing table route identifier.", + "optional": true + }, + { + "name": "action", + "type": "TypeString", + "description": "The action to perform with a packet matching the route:- `delegate`: delegate to the system's built-in routes- `delegate_vpc`: delegate to the system's built-in routes, ignoring Internet-bound routes- `deliver`: deliver the packet to the specified `next_hop`- `drop`: drop the packet.", "computed": true } ], @@ -59710,6 +60391,18 @@ } ], "ibm_is_vpc_routing_tables": [ + { + "name": "vpc", + "type": "TypeString", + "description": "VPC identifier", + "required": true + }, + { + "name": "is_default", + "type": "TypeBool", + "description": "Filters the collection to routing tables with the specified is_default value", + "optional": true + }, { "name": "routing_tables", "type": "TypeList", @@ -59835,21 +60528,16 @@ } } } - }, - { - "name": "vpc", - "type": "TypeString", - "description": "VPC identifier", - "required": true - }, - { - "name": "is_default", - "type": "TypeBool", - "description": "Filters the collection to routing tables with the specified is_default value", - "optional": true } ], "ibm_is_vpcs": [ + { + "name": "resource_group", + "type": "TypeString", + "description": "The unique identifier of the resource group this vpc belongs to", + "cloud_data_type": "resource_group", + "optional": true + }, { "name": "classic_access", "type": "TypeBool", @@ -60327,16 +61015,15 @@ } } } - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "The unique identifier of the resource group this vpc belongs to", - "cloud_data_type": "resource_group", - "optional": true } ], "ibm_is_vpn_gateway": [ + { + "name": "vpn_gateway_name", + "type": "TypeString", + "description": "The VPN gateway name.", + "optional": true + }, { "name": "resource_type", "type": "TypeString", @@ -60344,82 +61031,42 @@ "computed": true }, { - "name": "vpc", + "name": "health_reasons", "type": "TypeList", - "description": "VPC for the VPN Gateway", "computed": true, "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this VPC.", - "computed": true - }, - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, - "href": { - "name": "href", + "code": { + "name": "code", "type": "TypeString", - "description": "The URL for this VPC.", + "description": "A snake case string succinctly identifying the reason for this health state.", "computed": true }, - "id": { - "name": "id", + "message": { + "name": "message", "type": "TypeString", - "description": "The unique identifier for this VPC.", + "description": "An explanation of the reason for this health state.", "computed": true }, - "name": { - "name": "name", + "more_info": { + "name": "more_info", "type": "TypeString", - "description": "The unique user-defined name for this VPC.", + "description": "Link to documentation about the reason for this health state.", "computed": true } } }, { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that this VPN gateway was created.", - "computed": true - }, - { - "name": "crn", + "name": "mode", "type": "TypeString", - "description": "The VPN gateway's CRN.", - "cloud_data_type": "crn", + "description": "Route mode VPN gateway.", "computed": true }, { - "name": "name", + "name": "href", "type": "TypeString", - "description": "The user-defined name for this VPN gateway.", + "description": "The VPN gateway's canonical URL.", "computed": true }, - { - "name": "vpn_gateway", - "type": "TypeString", - "description": "The VPN gateway identifier.", - "optional": true - }, - { - "name": "vpn_gateway_name", - "type": "TypeString", - "description": "The VPN gateway name.", - "optional": true - }, { "name": "resource_group", "type": "TypeList", @@ -60448,9 +61095,9 @@ } }, { - "name": "mode", + "name": "health_state", "type": "TypeString", - "description": "Route mode VPN gateway.", + "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", "computed": true }, { @@ -60463,6 +61110,22 @@ "type": "TypeString" } }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "crn", + "type": "TypeString", + "description": "The VPN gateway's CRN.", + "cloud_data_type": "crn", + "computed": true + }, { "name": "members", "type": "TypeList", @@ -60496,11 +61159,83 @@ } }, { - "name": "status", + "name": "name", "type": "TypeString", - "description": "The status of the VPN gateway.", + "description": "The user-defined name for this VPN gateway.", "computed": true }, + { + "name": "vpc", + "type": "TypeList", + "description": "VPC for the VPN Gateway", + "computed": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this VPC.", + "computed": true + }, + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this VPC.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this VPC.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this VPC.", + "computed": true + } + } + }, + { + "name": "lifecycle_reasons", + "type": "TypeList", + "description": "The reasons for the current lifecycle_state (if any).", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this lifecycle state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this lifecycle state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this lifecycle state.", + "computed": true + } + } + }, { "name": "subnet", "type": "TypeList", @@ -60546,6 +61281,12 @@ } } }, + { + "name": "vpn_gateway", + "type": "TypeString", + "description": "The VPN gateway identifier.", + "optional": true + }, { "name": "connections", "type": "TypeList", @@ -60593,45 +61334,36 @@ } }, { - "name": "href", + "name": "created_at", "type": "TypeString", - "description": "The VPN gateway's canonical URL.", + "description": "The date and time that this VPN gateway was created.", "computed": true }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "computed": true, - "elem": { - "type": "TypeString" - } - } - ], - "ibm_is_vpn_gateway_connection": [ - { - "name": "vpn_gateway_connection_name", + "name": "status", "type": "TypeString", - "description": "The VPN gateway connection name.", - "optional": true + "description": "The status of the VPN gateway.", + "computed": true }, { - "name": "created_at", + "name": "lifecycle_state", "type": "TypeString", - "description": "The date and time that this VPN gateway connection was created.", + "description": "The lifecycle state of the VPN route.", "computed": true - }, + } + ], + "ibm_is_vpn_gateway_connection": [ { - "name": "routing_protocol", - "type": "TypeString", - "description": "Routing protocols are disabled for this VPN gateway connection.", + "name": "admin_state_up", + "type": "TypeBool", + "description": "If set to false, the VPN gateway connection is shut down.", "computed": true }, { - "name": "vpn_gateway", + "name": "href", "type": "TypeString", - "description": "The VPN gateway identifier.", - "optional": true + "description": "The VPN connection's canonical URL.", + "computed": true }, { "name": "ike_policy", @@ -60680,50 +61412,53 @@ } }, { - "name": "peer_cidrs", - "type": "TypeList", - "description": "The peer CIDRs for this resource.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "admin_state_up", - "type": "TypeBool", - "description": "If set to false, the VPN gateway connection is shut down.", - "computed": true - }, - { - "name": "authentication_mode", + "name": "peer_address", "type": "TypeString", - "description": "The authentication mode. Only `psk` is currently supported.", + "description": "The IP address of the peer VPN gateway.", "computed": true }, { - "name": "tunnels", + "name": "status_reasons", "type": "TypeList", - "description": "The VPN tunnel configuration for this VPN gateway connection (in static route mode).", + "description": "The reasons for the current status (if any).", "computed": true, "elem": { - "public_ip_address": { - "name": "public_ip_address", + "code": { + "name": "code", "type": "TypeString", - "description": "The IP address of the VPN gateway member in which the tunnel resides.", + "description": "A snake case string succinctly identifying the status reason.", "computed": true }, - "status": { - "name": "status", + "message": { + "name": "message", "type": "TypeString", - "description": "The status of the VPN Tunnel.", + "description": "An explanation of the status reason.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about this status reason.", "computed": true } } }, { - "name": "href", + "name": "vpn_gateway", "type": "TypeString", - "description": "The VPN connection's canonical URL.", + "description": "The VPN gateway identifier.", + "optional": true + }, + { + "name": "vpn_gateway_connection_name", + "type": "TypeString", + "description": "The VPN gateway connection name.", + "optional": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that this VPN gateway connection was created.", "computed": true }, { @@ -60772,12 +61507,6 @@ } } }, - { - "name": "mode", - "type": "TypeString", - "description": "The mode of the VPN gateway.", - "computed": true - }, { "name": "name", "type": "TypeString", @@ -60785,10 +61514,22 @@ "computed": true }, { - "name": "peer_address", - "type": "TypeString", - "description": "The IP address of the peer VPN gateway.", - "computed": true + "name": "local_cidrs", + "type": "TypeList", + "description": "The local CIDRs for this resource.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "peer_cidrs", + "type": "TypeList", + "description": "The peer CIDRs for this resource.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "vpn_gateway_name", @@ -60797,10 +61538,10 @@ "optional": true }, { - "name": "vpn_gateway_connection", + "name": "authentication_mode", "type": "TypeString", - "description": "The VPN gateway connection identifier.", - "optional": true + "description": "The authentication mode. Only `psk` is currently supported.", + "computed": true }, { "name": "dead_peer_detection", @@ -60829,30 +61570,59 @@ } }, { - "name": "local_cidrs", + "name": "mode", + "type": "TypeString", + "description": "The mode of the VPN gateway.", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The status of a VPN gateway connection.", + "computed": true + }, + { + "name": "tunnels", "type": "TypeList", - "description": "The local CIDRs for this resource.", + "description": "The VPN tunnel configuration for this VPN gateway connection (in static route mode).", "computed": true, "elem": { - "type": "TypeString" + "public_ip_address": { + "name": "public_ip_address", + "type": "TypeString", + "description": "The IP address of the VPN gateway member in which the tunnel resides.", + "computed": true + }, + "status": { + "name": "status", + "type": "TypeString", + "description": "The status of the VPN Tunnel.", + "computed": true + } } }, { - "name": "psk", + "name": "vpn_gateway_connection", "type": "TypeString", - "description": "The preshared key.", - "computed": true + "description": "The VPN gateway connection identifier.", + "optional": true }, { - "name": "resource_type", + "name": "psk", "type": "TypeString", - "description": "The resource type.", + "description": "The preshared key.", "computed": true }, { - "name": "status", + "name": "routing_protocol", "type": "TypeString", - "description": "The status of a VPN gateway connection.", + "description": "Routing protocols are disabled for this VPN gateway connection.", "computed": true } ], @@ -60971,6 +61741,32 @@ "description": "VPN gateway connection status", "computed": true }, + "status_reasons": { + "name": "status_reasons", + "type": "TypeList", + "description": "The reasons for the current status (if any).", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the status reason.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the status reason.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about this status reason.", + "computed": true + } + } + }, "timeout": { "name": "timeout", "type": "TypeInt", @@ -61042,6 +61838,69 @@ "description": "The VPN gateway's CRN", "computed": true }, + "health_reasons": { + "name": "health_reasons", + "type": "TypeList", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this health state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this health state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this health state.", + "computed": true + } + } + }, + "health_state": { + "name": "health_state", + "type": "TypeString", + "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", + "computed": true + }, + "lifecycle_reasons": { + "name": "lifecycle_reasons", + "type": "TypeList", + "description": "The reasons for the current lifecycle_state (if any).", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this lifecycle state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this lifecycle state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this lifecycle state.", + "computed": true + } + } + }, + "lifecycle_state": { + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the VPN route.", + "computed": true + }, "members": { "name": "members", "type": "TypeList", @@ -61169,6 +62028,30 @@ } ], "ibm_is_vpn_server": [ + { + "name": "port", + "type": "TypeInt", + "description": "The port number used by this VPN server.", + "computed": true + }, + { + "name": "client_auto_delete", + "type": "TypeBool", + "description": "If set to `true`, disconnected VPN clients will be automatically deleted after the `client_auto_delete_timeout` time has passed.", + "computed": true + }, + { + "name": "client_idle_timeout", + "type": "TypeInt", + "description": "The seconds a VPN client can be idle before this VPN server will disconnect it. If `0`, the server will not disconnect idle clients.", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The type of resource referenced.", + "computed": true + }, { "name": "certificate", "type": "TypeList", @@ -61184,75 +62067,154 @@ } }, { - "name": "client_authentication", + "name": "lifecycle_reasons", "type": "TypeList", - "description": "The methods used to authenticate VPN clients to this VPN server. VPN clients must authenticate against all provided methods.", + "description": "The reasons for the current lifecycle_state (if any).", "computed": true, "elem": { - "client_ca": { - "name": "client_ca", + "code": { + "name": "code", "type": "TypeString", - "description": "The CRN for this certificate instance,The certificate instance used for the VPN client certificate authority (CA).", + "description": "A snake case string succinctly identifying the reason for this lifecycle state.", "computed": true }, - "identity_provider": { - "name": "identity_provider", + "message": { + "name": "message", "type": "TypeString", - "description": "The type of identity provider to be used by the VPN client.- `iam`: IBM identity and access managementThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the route on which the unexpected property value was encountered,The type of identity provider to be used by VPN client.", + "description": "An explanation of the reason for this lifecycle state.", "computed": true }, - "method": { - "name": "method", + "more_info": { + "name": "more_info", "type": "TypeString", - "description": "The type of authentication.", + "description": "Link to documentation about the reason for this lifecycle state.", "computed": true } } }, { - "name": "client_auto_delete", - "type": "TypeBool", - "description": "If set to `true`, disconnected VPN clients will be automatically deleted after the `client_auto_delete_timeout` time has passed.", + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the VPN server was created.", "computed": true }, { - "name": "client_dns_server_ips", + "name": "security_groups", "type": "TypeList", - "description": "The DNS server addresses that will be provided to VPN clients that are connected to this VPN server.", + "description": "The security groups targeting this VPN server.", "computed": true, "elem": { - "address": { - "name": "address", + "crn": { + "name": "crn", "type": "TypeString", - "description": "The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", + "description": "The security group's CRN.", + "computed": true + }, + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The security group's canonical URL.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this security group.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this security group. Names must be unique within the VPC the security group resides in.", "computed": true } } }, { - "name": "client_idle_timeout", - "type": "TypeInt", - "description": "The seconds a VPN client can be idle before this VPN server will disconnect it. If `0`, the server will not disconnect idle clients.", + "name": "protocol", + "type": "TypeString", + "description": "The transport protocol used by this VPN server.", "computed": true }, { - "name": "client_ip_pool", + "name": "crn", "type": "TypeString", - "description": "The VPN client IPv4 address pool, expressed in CIDR format.", + "description": "The CRN for this VPN server.", + "cloud_data_type": "crn", "computed": true }, { - "name": "created_at", + "name": "enable_split_tunneling", + "type": "TypeBool", + "description": "Indicates whether the split tunneling is enabled on this VPN server.", + "computed": true + }, + { + "name": "client_ip_pool", "type": "TypeString", - "description": "The date and time that the VPN server was created.", + "description": "The VPN client IPv4 address pool, expressed in CIDR format.", "computed": true }, { - "name": "hostname", + "name": "health_state", "type": "TypeString", - "description": "Fully qualified domain name assigned to this VPN server.", + "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", "computed": true }, + { + "name": "client_authentication", + "type": "TypeList", + "description": "The methods used to authenticate VPN clients to this VPN server. VPN clients must authenticate against all provided methods.", + "computed": true, + "elem": { + "client_ca": { + "name": "client_ca", + "type": "TypeString", + "description": "The CRN for this certificate instance,The certificate instance used for the VPN client certificate authority (CA).", + "computed": true + }, + "identity_provider": { + "name": "identity_provider", + "type": "TypeString", + "description": "The type of identity provider to be used by the VPN client.- `iam`: IBM identity and access managementThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the route on which the unexpected property value was encountered,The type of identity provider to be used by VPN client.", + "computed": true + }, + "method": { + "name": "method", + "type": "TypeString", + "description": "The type of authentication.", + "computed": true + } + } + }, + { + "name": "client_dns_server_ips", + "type": "TypeList", + "description": "The DNS server addresses that will be provided to VPN clients that are connected to this VPN server.", + "computed": true, + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", + "computed": true + } + } + }, { "name": "resource_group", "type": "TypeList", @@ -61281,9 +62243,49 @@ } }, { - "name": "resource_type", + "name": "access_tags", + "type": "TypeSet", + "description": "List of access tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "health_reasons", + "type": "TypeList", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this health state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this health state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this health state.", + "computed": true + } + } + }, + { + "name": "hostname", "type": "TypeString", - "description": "The type of resource referenced.", + "description": "Fully qualified domain name assigned to this VPN server.", + "computed": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the VPN server.", "computed": true }, { @@ -61339,47 +62341,28 @@ } }, { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this VPN server", - "optional": true, - "computed": true - }, - { - "name": "client_auto_delete_timeout", - "type": "TypeInt", - "description": "Hours after which disconnected VPN clients will be automatically deleted. If `0`, disconnected VPN clients will be deleted immediately.", - "computed": true - }, - { - "name": "crn", + "name": "identifier", "type": "TypeString", - "description": "The CRN for this VPN server.", - "cloud_data_type": "crn", - "computed": true + "description": "The unique identifier for this VPN server", + "optional": true }, { - "name": "lifecycle_state", + "name": "name", "type": "TypeString", - "description": "The lifecycle state of the VPN server.", - "computed": true - }, - { - "name": "port", - "type": "TypeInt", - "description": "The port number used by this VPN server.", + "description": "The unique user-defined name for this VPN server", + "optional": true, "computed": true }, { - "name": "security_groups", + "name": "private_ips", "type": "TypeList", - "description": "The security groups targeting this VPN server.", + "description": "The reserved IPs bound to this VPN server.", "computed": true, "elem": { - "crn": { - "name": "crn", + "address": { + "name": "address", "type": "TypeString", - "description": "The security group's CRN.", + "description": "The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", "computed": true }, "deleted": { @@ -61399,19 +62382,25 @@ "href": { "name": "href", "type": "TypeString", - "description": "The security group's canonical URL.", + "description": "The URL for this reserved IP.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this security group.", + "description": "The unique identifier for this reserved IP.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The user-defined name for this security group. Names must be unique within the VPC the security group resides in.", + "description": "The user-defined or system-provided name for this reserved IP.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", "computed": true } } @@ -61463,15 +62452,9 @@ } }, { - "name": "identifier", - "type": "TypeString", - "description": "The unique identifier for this VPN server", - "optional": true - }, - { - "name": "enable_split_tunneling", - "type": "TypeBool", - "description": "Indicates whether the split tunneling is enabled on this VPN server.", + "name": "client_auto_delete_timeout", + "type": "TypeInt", + "description": "Hours after which disconnected VPN clients will be automatically deleted. If `0`, disconnected VPN clients will be deleted immediately.", "computed": true }, { @@ -61479,88 +62462,9 @@ "type": "TypeString", "description": "The URL for this VPN server.", "computed": true - }, - { - "name": "private_ips", - "type": "TypeList", - "description": "The reserved IPs bound to this VPN server.", - "computed": true, - "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", - "computed": true - }, - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this reserved IP.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this reserved IP.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined or system-provided name for this reserved IP.", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", - "computed": true - } - } - }, - { - "name": "health_state", - "type": "TypeString", - "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", - "computed": true - }, - { - "name": "protocol", - "type": "TypeString", - "description": "The transport protocol used by this VPN server.", - "computed": true - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access tags", - "computed": true, - "elem": { - "type": "TypeString" - } } ], "ibm_is_vpn_server_client": [ - { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", - "computed": true - }, { "name": "username", "type": "TypeString", @@ -61568,9 +62472,9 @@ "computed": true }, { - "name": "identifier", + "name": "vpn_server", "type": "TypeString", - "description": "The VPN client identifier.", + "description": "The VPN server identifier.", "required": true }, { @@ -61594,29 +62498,27 @@ "computed": true }, { - "name": "href", + "name": "resource_type", "type": "TypeString", - "description": "The URL for this VPN client.", + "description": "The resource type.", "computed": true }, { - "name": "remote_ip", - "type": "TypeList", - "description": "The remote IP address of this VPN client.", - "computed": true, - "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", - "computed": true - } - } + "name": "status", + "type": "TypeString", + "description": "The status of the VPN client:- `connected`: the VPN client is `connected` to this VPN server.- `disconnected`: the VPN client is `disconnected` from this VPN server.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the VPN client on which the unexpected property value was encountered.", + "computed": true }, { - "name": "vpn_server", + "name": "remote_port", + "type": "TypeInt", + "description": "The remote port of this VPN client.", + "computed": true + }, + { + "name": "identifier", "type": "TypeString", - "description": "The VPN server identifier.", + "description": "The VPN client identifier.", "required": true }, { @@ -61632,16 +62534,24 @@ "computed": true }, { - "name": "remote_port", - "type": "TypeInt", - "description": "The remote port of this VPN client.", + "name": "href", + "type": "TypeString", + "description": "The URL for this VPN client.", "computed": true }, { - "name": "status", - "type": "TypeString", - "description": "The status of the VPN client:- `connected`: the VPN client is `connected` to this VPN server.- `disconnected`: the VPN client is `disconnected` from this VPN server.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the VPN client on which the unexpected property value was encountered.", - "computed": true + "name": "remote_ip", + "type": "TypeList", + "description": "The remote IP address of this VPN client.", + "computed": true, + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", + "computed": true + } + } } ], "ibm_is_vpn_server_client_configuration": [ @@ -61766,16 +62676,28 @@ ], "ibm_is_vpn_server_route": [ { - "name": "vpn_server", + "name": "href", "type": "TypeString", - "description": "The VPN server identifier.", - "required": true + "description": "The URL for this VPN route.", + "computed": true }, { - "name": "identifier", + "name": "health_state", "type": "TypeString", - "description": "The unique identifier for this VPN server route", - "optional": true + "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", + "computed": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the VPN route.", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true }, { "name": "name", @@ -61790,12 +62712,6 @@ "description": "The action to perform with a packet matching the VPN route:- `translate`: translate the source IP address to one of the private IP addresses of the VPN server.- `deliver`: deliver the packet into the VPC.- `drop`: drop the packetThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the VPN route on which the unexpected property value was encountered.", "computed": true }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", - "computed": true - }, { "name": "created_at", "type": "TypeString", @@ -61809,16 +62725,67 @@ "computed": true }, { - "name": "href", + "name": "health_reasons", + "type": "TypeList", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this health state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this health state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this health state.", + "computed": true + } + } + }, + { + "name": "lifecycle_reasons", + "type": "TypeList", + "description": "The reasons for the current lifecycle_state (if any).", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this lifecycle state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this lifecycle state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this lifecycle state.", + "computed": true + } + } + }, + { + "name": "vpn_server", "type": "TypeString", - "description": "The URL for this VPN route.", - "computed": true + "description": "The VPN server identifier.", + "required": true }, { - "name": "lifecycle_state", + "name": "identifier", "type": "TypeString", - "description": "The lifecycle state of the VPN route.", - "computed": true + "description": "The unique identifier for this VPN server route", + "optional": true } ], "ibm_is_vpn_server_routes": [ @@ -61852,6 +62819,37 @@ "description": "The destination for this VPN route in the VPN server. If an incoming packet does not match any destination, it will be dropped.", "computed": true }, + "health_reasons": { + "name": "health_reasons", + "type": "TypeList", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this health state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this health state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this health state.", + "computed": true + } + } + }, + "health_state": { + "name": "health_state", + "type": "TypeString", + "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", + "computed": true + }, "href": { "name": "href", "type": "TypeString", @@ -61864,6 +62862,32 @@ "description": "The unique identifier for this VPN route.", "computed": true }, + "lifecycle_reasons": { + "name": "lifecycle_reasons", + "type": "TypeList", + "description": "The reasons for the current lifecycle_state (if any).", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this lifecycle state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this lifecycle state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this lifecycle state.", + "computed": true + } + } + }, "lifecycle_state": { "name": "lifecycle_state", "type": "TypeString", @@ -61886,6 +62910,13 @@ } ], "ibm_is_vpn_servers": [ + { + "name": "resource_group_id", + "type": "TypeString", + "description": "resource group identifier.", + "cloud_data_type": "resource_group", + "optional": true + }, { "name": "vpn_servers", "type": "TypeList", @@ -61997,19 +63028,44 @@ "description": "Indicates whether the split tunneling is enabled on this VPN server.", "computed": true }, - "health_state": { - "name": "health_state", - "type": "TypeString", - "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", - "computed": true - }, - "hostname": { - "name": "hostname", - "type": "TypeString", - "description": "Fully qualified domain name assigned to this VPN server.", - "computed": true - }, - "href": { + "health_reasons": { + "name": "health_reasons", + "type": "TypeList", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this health state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this health state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this health state.", + "computed": true + } + } + }, + "health_state": { + "name": "health_state", + "type": "TypeString", + "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", + "computed": true + }, + "hostname": { + "name": "hostname", + "type": "TypeString", + "description": "Fully qualified domain name assigned to this VPN server.", + "computed": true + }, + "href": { "name": "href", "type": "TypeString", "description": "The URL for this VPN server.", @@ -62021,6 +63077,32 @@ "description": "The unique identifier for this VPN server.", "computed": true }, + "lifecycle_reasons": { + "name": "lifecycle_reasons", + "type": "TypeList", + "description": "The reasons for the current lifecycle_state (if any).", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this lifecycle state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this lifecycle state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this lifecycle state.", + "computed": true + } + } + }, "lifecycle_state": { "name": "lifecycle_state", "type": "TypeString", @@ -62274,13 +63356,6 @@ } } } - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "resource group identifier.", - "cloud_data_type": "resource_group", - "optional": true } ], "ibm_is_zone": [ @@ -62530,22 +63605,6 @@ } ], "ibm_kms_key": [ - { - "name": "instance_id", - "type": "TypeString", - "description": "Key protect or hpcs instance GUID", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:kms|hs-crypto" - ] - }, - { - "name": "limit", - "type": "TypeInt", - "description": "Limit till the keys to be fetched", - "optional": true - }, { "name": "key_id", "type": "TypeString", @@ -62713,9 +63772,7 @@ "computed": true } } - } - ], - "ibm_kms_key_policies": [ + }, { "name": "instance_id", "type": "TypeString", @@ -62727,18 +63784,13 @@ ] }, { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private", - "default_value": "public", - "optional": true - }, - { - "name": "key_id", - "type": "TypeString", - "description": "Key ID of the Key", + "name": "limit", + "type": "TypeInt", + "description": "Limit till the keys to be fetched", "optional": true - }, + } + ], + "ibm_kms_key_policies": [ { "name": "alias", "type": "TypeString", @@ -62858,9 +63910,7 @@ } } } - } - ], - "ibm_kms_key_rings": [ + }, { "name": "instance_id", "type": "TypeString", @@ -62878,6 +63928,14 @@ "default_value": "public", "optional": true }, + { + "name": "key_id", + "type": "TypeString", + "description": "Key ID of the Key", + "optional": true + } + ], + "ibm_kms_key_rings": [ { "name": "key_rings", "type": "TypeList", @@ -62900,9 +63958,48 @@ "computed": true } } + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "Key protect or hpcs instance GUID", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:kms|hs-crypto" + ] + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private", + "default_value": "public", + "optional": true } ], "ibm_kms_keys": [ + { + "name": "instance_id", + "type": "TypeString", + "description": "Key protect or hpcs instance GUID", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:kms|hs-crypto" + ] + }, + { + "name": "key_name", + "type": "TypeString", + "description": "The name of the key to be fetched", + "optional": true + }, + { + "name": "limit", + "type": "TypeInt", + "description": "Limit till the keys to be fetched", + "optional": true + }, { "name": "alias", "type": "TypeString", @@ -63065,36 +64162,9 @@ "computed": true } } - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "Key protect or hpcs instance GUID", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:kms|hs-crypto" - ] - }, - { - "name": "key_name", - "type": "TypeString", - "description": "The name of the key to be fetched", - "optional": true - }, - { - "name": "limit", - "type": "TypeInt", - "description": "Limit till the keys to be fetched", - "optional": true } ], "ibm_kp_key": [ - { - "name": "key_protect_id", - "type": "TypeString", - "required": true - }, { "name": "key_name", "type": "TypeString", @@ -63126,76 +64196,41 @@ "computed": true } } + }, + { + "name": "key_protect_id", + "type": "TypeString", + "required": true } ], "ibm_lbaas": [ { - "name": "ssl_ciphers", - "type": "TypeSet", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "status", + "type": "TypeString", + "computed": true }, { - "name": "protocols", - "type": "TypeList", - "computed": true, - "elem": { - "backend_port": { - "name": "backend_port", - "type": "TypeInt", - "computed": true - }, - "backend_protocol": { - "name": "backend_protocol", - "type": "TypeString", - "computed": true - }, - "frontend_port": { - "name": "frontend_port", - "type": "TypeInt", - "computed": true - }, - "frontend_protocol": { - "name": "frontend_protocol", - "type": "TypeString", - "computed": true - }, - "load_balancing_method": { - "name": "load_balancing_method", - "type": "TypeString", - "computed": true - }, - "max_conn": { - "name": "max_conn", - "type": "TypeInt", - "computed": true - }, - "protocol_id": { - "name": "protocol_id", - "type": "TypeString", - "computed": true - }, - "session_stickiness": { - "name": "session_stickiness", - "type": "TypeString", - "computed": true - }, - "tls_certificate_id": { - "name": "tls_certificate_id", - "type": "TypeInt", - "computed": true - } - } + "name": "vip", + "type": "TypeString", + "computed": true }, { - "name": "name", - "type": "TypeString", - "required": true + "name": "server_instances_down", + "type": "TypeInt", + "computed": true }, { - "name": "description", + "name": "active_connections", + "type": "TypeInt", + "computed": true + }, + { + "name": "use_system_public_ip_pool", + "type": "TypeBool", + "computed": true + }, + { + "name": "type", "type": "TypeString", "computed": true }, @@ -63232,24 +64267,27 @@ } }, { - "name": "datacenter", + "name": "name", "type": "TypeString", - "computed": true + "required": true }, { - "name": "status", + "name": "description", "type": "TypeString", "computed": true }, { - "name": "use_system_public_ip_pool", - "type": "TypeBool", + "name": "datacenter", + "type": "TypeString", "computed": true }, { - "name": "server_instances_down", - "type": "TypeInt", - "computed": true + "name": "ssl_ciphers", + "type": "TypeSet", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "health_monitors", @@ -63294,19 +64332,56 @@ } }, { - "name": "type", - "type": "TypeString", - "computed": true - }, - { - "name": "vip", - "type": "TypeString", - "computed": true - }, - { - "name": "active_connections", - "type": "TypeInt", - "computed": true + "name": "protocols", + "type": "TypeList", + "computed": true, + "elem": { + "backend_port": { + "name": "backend_port", + "type": "TypeInt", + "computed": true + }, + "backend_protocol": { + "name": "backend_protocol", + "type": "TypeString", + "computed": true + }, + "frontend_port": { + "name": "frontend_port", + "type": "TypeInt", + "computed": true + }, + "frontend_protocol": { + "name": "frontend_protocol", + "type": "TypeString", + "computed": true + }, + "load_balancing_method": { + "name": "load_balancing_method", + "type": "TypeString", + "computed": true + }, + "max_conn": { + "name": "max_conn", + "type": "TypeInt", + "computed": true + }, + "protocol_id": { + "name": "protocol_id", + "type": "TypeString", + "computed": true + }, + "session_stickiness": { + "name": "session_stickiness", + "type": "TypeString", + "computed": true + }, + "tls_certificate_id": { + "name": "tls_certificate_id", + "type": "TypeInt", + "computed": true + } + } } ], "ibm_metrics_router_routes": [ @@ -63458,7 +64533,7 @@ "destination_crn": { "name": "destination_crn", "type": "TypeString", - "description": "The CRN of the destination service instance or resource.", + "description": "The CRN of the destination service instance or resource. Ensure you have a service authorization between IBM Cloud Metrics Routing and your Cloud resource. Read [S2S authorization](https://cloud.ibm.com/docs/metrics-router?topic=metrics-router-target-monitoring\u0026interface=ui#target-monitoring-ui) for details.", "computed": true }, "id": { @@ -63495,6 +64570,34 @@ } ], "ibm_network_vlan": [ + { + "name": "router_hostname", + "type": "TypeString", + "optional": true, + "computed": true + }, + { + "name": "virtual_guests", + "type": "TypeList", + "computed": true, + "elem": { + "domain": { + "name": "domain", + "type": "TypeString", + "computed": true + }, + "hostname": { + "name": "hostname", + "type": "TypeString", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeInt", + "computed": true + } + } + }, { "name": "subnets", "type": "TypeList", @@ -63548,34 +64651,6 @@ "type": "TypeInt", "optional": true, "computed": true - }, - { - "name": "router_hostname", - "type": "TypeString", - "optional": true, - "computed": true - }, - { - "name": "virtual_guests", - "type": "TypeList", - "computed": true, - "elem": { - "domain": { - "name": "domain", - "type": "TypeString", - "computed": true - }, - "hostname": { - "name": "hostname", - "type": "TypeString", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeInt", - "computed": true - } - } } ], "ibm_org": [ @@ -63595,33 +64670,27 @@ ], "ibm_org_quota": [ { - "name": "trial_db_allowed", - "type": "TypeBool", - "description": "Defines trial db are allowed for organization.", + "name": "total_reserved_route_ports", + "type": "TypeInt", + "description": "Defines the number of reserved route ports for organization.", "computed": true }, { - "name": "app_instance_limit", - "type": "TypeInt", - "description": "Defines the total app instance limit for organization.", + "name": "non_basic_services_allowed", + "type": "TypeBool", + "description": "Define non basic services are allowed for organization.", "computed": true }, { - "name": "app_tasks_limit", + "name": "total_routes", "type": "TypeInt", - "description": "Defines the total app task limit for organization.", + "description": "Defines the total route for organization.", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "Org quota name, for example qIBM", - "required": true - }, - { - "name": "total_routes", + "name": "memory_limit", "type": "TypeInt", - "description": "Defines the total route for organization.", + "description": "Defines the total memory limit for organization.", "computed": true }, { @@ -63630,6 +64699,12 @@ "description": "Defines the total instance memory limit for organization.", "computed": true }, + { + "name": "trial_db_allowed", + "type": "TypeBool", + "description": "Defines trial db are allowed for organization.", + "computed": true + }, { "name": "total_private_domains", "type": "TypeInt", @@ -63643,27 +64718,27 @@ "computed": true }, { - "name": "total_reserved_route_ports", - "type": "TypeInt", - "description": "Defines the number of reserved route ports for organization.", - "computed": true + "name": "name", + "type": "TypeString", + "description": "Org quota name, for example qIBM", + "required": true }, { - "name": "non_basic_services_allowed", - "type": "TypeBool", - "description": "Define non basic services are allowed for organization.", + "name": "total_services", + "type": "TypeInt", + "description": "Defines the total services for organization.", "computed": true }, { - "name": "total_services", + "name": "app_instance_limit", "type": "TypeInt", - "description": "Defines the total services for organization.", + "description": "Defines the total app instance limit for organization.", "computed": true }, { - "name": "memory_limit", + "name": "app_tasks_limit", "type": "TypeInt", - "description": "Defines the total memory limit for organization.", + "description": "Defines the total app task limit for organization.", "computed": true } ], @@ -63773,14 +64848,20 @@ ], "ibm_pi_cloud_connection": [ { - "name": "pi_cloud_connection_name", + "name": "port", "type": "TypeString", - "description": "Cloud Connection Name to be used", - "required": true + "computed": true }, { - "name": "metered", + "name": "gre_destination_address", + "type": "TypeString", + "description": "GRE destination IP address", + "computed": true + }, + { + "name": "vpc_enabled", "type": "TypeBool", + "description": "Enable VPC for this cloud connection", "computed": true }, { @@ -63789,12 +64870,17 @@ "computed": true }, { - "name": "user_ip_address", - "type": "TypeString", + "name": "speed", + "type": "TypeInt", "computed": true }, { - "name": "port", + "name": "metered", + "type": "TypeBool", + "computed": true + }, + { + "name": "user_ip_address", "type": "TypeString", "computed": true }, @@ -63808,26 +64894,9 @@ } }, { - "name": "gre_source_address", - "type": "TypeString", - "description": "GRE auto-assigned source IP address", - "computed": true - }, - { - "name": "vpc_enabled", + "name": "classic_enabled", "type": "TypeBool", - "description": "Enable VPC for this cloud connection", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "computed": true - }, - { - "name": "gre_destination_address", - "type": "TypeString", - "description": "GRE destination IP address", + "description": "Enable classic endpoint destination", "computed": true }, { @@ -63844,27 +64913,33 @@ "type": "TypeString", "required": true }, - { - "name": "speed", - "type": "TypeInt", - "computed": true - }, { "name": "global_routing", "type": "TypeBool", "computed": true }, { - "name": "classic_enabled", - "type": "TypeBool", - "description": "Enable classic endpoint destination", + "name": "gre_source_address", + "type": "TypeString", + "description": "GRE auto-assigned source IP address", "computed": true }, + { + "name": "pi_cloud_connection_name", + "type": "TypeString", + "description": "Cloud Connection Name to be used", + "required": true + }, { "name": "connection_mode", "type": "TypeString", "description": "Type of service the gateway is attached to", "computed": true + }, + { + "name": "status", + "type": "TypeString", + "computed": true } ], "ibm_pi_cloud_connections": [ @@ -63976,9 +65051,9 @@ ], "ibm_pi_cloud_instance": [ { - "name": "total_standard_storage_consumed", - "type": "TypeFloat", - "computed": true + "name": "pi_cloud_instance_id", + "type": "TypeString", + "required": true }, { "name": "enabled", @@ -63996,21 +65071,6 @@ "cloud_data_type": "region", "computed": true }, - { - "name": "total_processors_consumed", - "type": "TypeFloat", - "computed": true - }, - { - "name": "total_memory_consumed", - "type": "TypeFloat", - "computed": true - }, - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "required": true - }, { "name": "capabilities", "type": "TypeList", @@ -64020,7 +65080,7 @@ } }, { - "name": "total_instances", + "name": "total_processors_consumed", "type": "TypeFloat", "computed": true }, @@ -64029,6 +65089,11 @@ "type": "TypeFloat", "computed": true }, + { + "name": "total_standard_storage_consumed", + "type": "TypeFloat", + "computed": true + }, { "name": "pvm_instances", "type": "TypeList", @@ -64065,6 +65130,16 @@ "computed": true } } + }, + { + "name": "total_instances", + "type": "TypeFloat", + "computed": true + }, + { + "name": "total_memory_consumed", + "type": "TypeFloat", + "computed": true } ], "ibm_pi_console_languages": [ @@ -64099,7 +65174,95 @@ } } ], + "ibm_pi_datacenter": [ + { + "name": "pi_datacenter_zone", + "type": "TypeString", + "optional": true + }, + { + "name": "pi_datacenter_capabilities", + "type": "TypeMap", + "description": "Datacenter Capabilities", + "computed": true, + "elem": { + "type": "TypeBool" + } + }, + { + "name": "pi_datacenter_href", + "type": "TypeString", + "description": "Datacenter href", + "computed": true + }, + { + "name": "pi_datacenter_location", + "type": "TypeMap", + "description": "Datacenter location", + "computed": true + }, + { + "name": "pi_datacenter_status", + "type": "TypeString", + "description": "Datacenter status", + "computed": true + }, + { + "name": "pi_datacenter_type", + "type": "TypeString", + "description": "Datacenter type", + "computed": true + } + ], + "ibm_pi_datacenters": [ + { + "name": "datacenters", + "type": "TypeList", + "computed": true, + "elem": { + "pi_datacenter_capabilities": { + "name": "pi_datacenter_capabilities", + "type": "TypeMap", + "description": "Datacenter Capabilities", + "computed": true, + "elem": { + "type": "TypeBool" + } + }, + "pi_datacenter_href": { + "name": "pi_datacenter_href", + "type": "TypeString", + "description": "Datacenter href", + "computed": true + }, + "pi_datacenter_location": { + "name": "pi_datacenter_location", + "type": "TypeMap", + "description": "Datacenter location", + "computed": true + }, + "pi_datacenter_status": { + "name": "pi_datacenter_status", + "type": "TypeString", + "description": "Datacenter status", + "computed": true + }, + "pi_datacenter_type": { + "name": "pi_datacenter_type", + "type": "TypeString", + "description": "Datacenter type", + "computed": true + } + } + } + ], "ibm_pi_dhcp": [ + { + "name": "pi_dhcp_id", + "type": "TypeString", + "description": "The ID of the DHCP Server", + "required": true + }, { "name": "dhcp_id", "type": "TypeString", @@ -64154,12 +65317,6 @@ "name": "pi_cloud_instance_id", "type": "TypeString", "required": true - }, - { - "name": "pi_dhcp_id", - "type": "TypeString", - "description": "The ID of the DHCP Server", - "required": true } ], "ibm_pi_dhcps": [ @@ -64208,11 +65365,6 @@ } ], "ibm_pi_disaster_recovery_location": [ - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "required": true - }, { "name": "location", "type": "TypeString", @@ -64236,6 +65388,11 @@ "computed": true } } + }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "required": true } ], "ibm_pi_disaster_recovery_locations": [ @@ -64272,17 +65429,22 @@ ], "ibm_pi_image": [ { - "name": "hypervisor", + "name": "size", + "type": "TypeInt", + "computed": true + }, + { + "name": "architecture", "type": "TypeString", "computed": true }, { - "name": "storage_type", + "name": "operatingsystem", "type": "TypeString", "computed": true }, { - "name": "storage_pool", + "name": "storage_type", "type": "TypeString", "computed": true }, @@ -64298,37 +65460,27 @@ "required": true }, { - "name": "state", + "name": "pi_cloud_instance_id", "type": "TypeString", - "computed": true + "required": true }, { - "name": "architecture", + "name": "state", "type": "TypeString", "computed": true }, { - "name": "operatingsystem", + "name": "hypervisor", "type": "TypeString", "computed": true }, { - "name": "pi_cloud_instance_id", + "name": "storage_pool", "type": "TypeString", - "required": true - }, - { - "name": "size", - "type": "TypeInt", "computed": true } ], "ibm_pi_images": [ - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "required": true - }, { "name": "image_info", "type": "TypeList", @@ -64370,24 +65522,52 @@ "computed": true } } + }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "required": true } ], "ibm_pi_instance": [ { - "name": "license_repository_capacity", + "name": "minmem", + "type": "TypeFloat", + "computed": true + }, + { + "name": "maxmem", + "type": "TypeFloat", + "computed": true + }, + { + "name": "pin_policy", + "type": "TypeString", + "computed": true + }, + { + "name": "min_virtual_cores", "type": "TypeInt", "computed": true }, { - "name": "deployment_type", + "name": "storage_pool", "type": "TypeString", "computed": true }, { - "name": "health_status", + "name": "placement_group_id", "type": "TypeString", "computed": true }, + { + "name": "volumes", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "networks", "type": "TypeList", @@ -64426,8 +65606,8 @@ } }, { - "name": "status", - "type": "TypeString", + "name": "minproc", + "type": "TypeFloat", "computed": true }, { @@ -64436,67 +65616,45 @@ "computed": true }, { - "name": "maxmem", - "type": "TypeFloat", + "name": "max_virtual_cores", + "type": "TypeInt", "computed": true }, { - "name": "shared_processor_pool", + "name": "storage_type", "type": "TypeString", "computed": true }, { - "name": "memory", - "type": "TypeFloat", - "computed": true - }, - { - "name": "minproc", - "type": "TypeFloat", + "name": "storage_pool_affinity", + "type": "TypeBool", "computed": true }, { - "name": "minmem", - "type": "TypeFloat", + "name": "shared_processor_pool_id", + "type": "TypeString", "computed": true }, { - "name": "storage_pool", + "name": "pi_cloud_instance_id", "type": "TypeString", - "computed": true + "required": true }, { - "name": "storage_pool_affinity", - "type": "TypeBool", + "name": "memory", + "type": "TypeFloat", "computed": true }, { - "name": "min_virtual_cores", + "name": "virtual_cores_assigned", "type": "TypeInt", "computed": true }, { - "name": "placement_group_id", - "type": "TypeString", - "computed": true - }, - { - "name": "shared_processor_pool_id", + "name": "pi_instance_name", "type": "TypeString", - "computed": true - }, - { - "name": "volumes", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "processors", - "type": "TypeFloat", - "computed": true + "description": "Server Name to be used for pvminstances", + "required": true }, { "name": "addresses", @@ -64542,47 +65700,46 @@ "computed": true }, { - "name": "pin_policy", + "name": "status", "type": "TypeString", "computed": true }, { - "name": "pi_instance_name", - "type": "TypeString", - "description": "Server Name to be used for pvminstances", - "required": true + "name": "license_repository_capacity", + "type": "TypeInt", + "computed": true }, { - "name": "pi_cloud_instance_id", + "name": "deployment_type", "type": "TypeString", - "required": true + "computed": true }, { - "name": "virtual_cores_assigned", - "type": "TypeInt", + "name": "shared_processor_pool", + "type": "TypeString", "computed": true }, { - "name": "max_virtual_cores", - "type": "TypeInt", + "name": "processors", + "type": "TypeFloat", "computed": true }, { - "name": "storage_type", + "name": "health_status", "type": "TypeString", "computed": true } ], "ibm_pi_instance_ip": [ { - "name": "pi_instance_name", + "name": "external_ip", "type": "TypeString", - "description": "Server Name to be used for pvminstances", - "required": true + "computed": true }, { - "name": "pi_cloud_instance_id", + "name": "pi_instance_name", "type": "TypeString", + "description": "Server Name to be used for pvminstances", "required": true }, { @@ -64596,27 +65753,27 @@ "computed": true }, { - "name": "external_ip", + "name": "macaddress", "type": "TypeString", "computed": true }, { - "name": "ip", + "name": "type", "type": "TypeString", "computed": true }, { - "name": "ipoctet", + "name": "pi_cloud_instance_id", "type": "TypeString", - "computed": true + "required": true }, { - "name": "macaddress", + "name": "ip", "type": "TypeString", "computed": true }, { - "name": "type", + "name": "ipoctet", "type": "TypeString", "computed": true } @@ -64897,13 +66054,6 @@ } ], "ibm_pi_key": [ - { - "name": "sshkey", - "type": "TypeString", - "secure": true, - "computed": true, - "deprecated": "This field is deprecated, use ssh_key instead" - }, { "name": "pi_key_name", "type": "TypeString", @@ -64927,9 +66077,22 @@ "description": "SSH RSA key", "secure": true, "computed": true + }, + { + "name": "sshkey", + "type": "TypeString", + "secure": true, + "computed": true, + "deprecated": "This field is deprecated, use ssh_key instead" } ], "ibm_pi_keys": [ + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "description": "PI cloud instance ID", + "required": true + }, { "name": "keys", "type": "TypeList", @@ -64955,42 +66118,19 @@ "computed": true } } - }, - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "description": "PI cloud instance ID", - "required": true } ], "ibm_pi_network": [ - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "required": true - }, - { - "name": "cidr", - "type": "TypeString", - "computed": true - }, - { - "name": "gateway", - "type": "TypeString", - "computed": true - }, { "name": "used_ip_percent", "type": "TypeFloat", "computed": true }, { - "name": "dns", - "type": "TypeSet", + "name": "name", + "type": "TypeString", "computed": true, - "elem": { - "type": "TypeString" - } + "deprecated": "This value is deprecated in favor ofpi_network_name" }, { "name": "jumbo", @@ -65014,8 +66154,8 @@ "computed": true }, { - "name": "available_ip_count", - "type": "TypeFloat", + "name": "gateway", + "type": "TypeString", "computed": true }, { @@ -65024,24 +66164,30 @@ "computed": true }, { - "name": "name", - "type": "TypeString", - "computed": true, - "deprecated": "This value is deprecated in favor ofpi_network_name" - } - ], - "ibm_pi_network_port": [ - { - "name": "pi_network_name", + "name": "pi_cloud_instance_id", "type": "TypeString", - "description": "Network Name to be used for pvminstances", "required": true }, { - "name": "pi_cloud_instance_id", + "name": "cidr", "type": "TypeString", - "required": true + "computed": true }, + { + "name": "available_ip_count", + "type": "TypeFloat", + "computed": true + }, + { + "name": "dns", + "type": "TypeSet", + "computed": true, + "elem": { + "type": "TypeString" + } + } + ], + "ibm_pi_network_port": [ { "name": "network_ports", "type": "TypeList", @@ -65084,9 +66230,25 @@ "computed": true } } + }, + { + "name": "pi_network_name", + "type": "TypeString", + "description": "Network Name to be used for pvminstances", + "required": true + }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "required": true } ], "ibm_pi_placement_group": [ + { + "name": "pi_placement_group_name", + "type": "TypeString", + "required": true + }, { "name": "policy", "type": "TypeString", @@ -65104,11 +66266,6 @@ "elem": { "type": "TypeString" } - }, - { - "name": "pi_placement_group_name", - "type": "TypeString", - "required": true } ], "ibm_pi_placement_groups": [ @@ -65236,23 +66393,6 @@ } ], "ibm_pi_sap_profile": [ - { - "name": "memory", - "type": "TypeInt", - "description": "Amount of memory (in GB)", - "computed": true - }, - { - "name": "type", - "type": "TypeString", - "description": "Type of profile", - "computed": true - }, - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "required": true - }, { "name": "pi_sap_profile_id", "type": "TypeString", @@ -65270,6 +66410,23 @@ "type": "TypeInt", "description": "Amount of cores", "computed": true + }, + { + "name": "memory", + "type": "TypeInt", + "description": "Amount of memory (in GB)", + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Type of profile", + "computed": true + }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "required": true } ], "ibm_pi_sap_profiles": [ @@ -65318,34 +66475,10 @@ ], "ibm_pi_shared_processor_pool": [ { - "name": "status", - "type": "TypeString", - "description": "The status of the shared processor pool", - "computed": true - }, - { - "name": "status_detail", - "type": "TypeString", - "description": "The status details of the shared processor pool", - "computed": true - }, - { - "name": "name", + "name": "pi_cloud_instance_id", "type": "TypeString", - "description": "Name of the shared processor pool", - "computed": true - }, - { - "name": "host_id", - "type": "TypeInt", - "description": "The host ID where the shared processor pool resides", - "computed": true - }, - { - "name": "reserved_cores", - "type": "TypeInt", - "description": "The amount of reserved cores for the shared processor pool", - "computed": true + "description": "PI cloud instance ID", + "required": true }, { "name": "allocated_cores", @@ -65354,20 +66487,15 @@ "computed": true }, { - "name": "pi_shared_processor_pool_id", + "name": "status", "type": "TypeString", - "required": true + "description": "The status of the shared processor pool", + "computed": true }, { - "name": "pi_cloud_instance_id", + "name": "status_detail", "type": "TypeString", - "description": "PI cloud instance ID", - "required": true - }, - { - "name": "available_cores", - "type": "TypeFloat", - "description": "Shared processor pool available cores", + "description": "The status details of the shared processor pool", "computed": true }, { @@ -65433,6 +66561,35 @@ "computed": true } } + }, + { + "name": "pi_shared_processor_pool_id", + "type": "TypeString", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the shared processor pool", + "computed": true + }, + { + "name": "host_id", + "type": "TypeInt", + "description": "The host ID where the shared processor pool resides", + "computed": true + }, + { + "name": "reserved_cores", + "type": "TypeInt", + "description": "The amount of reserved cores for the shared processor pool", + "computed": true + }, + { + "name": "available_cores", + "type": "TypeFloat", + "description": "Shared processor pool available cores", + "computed": true } ], "ibm_pi_shared_processor_pools": [ @@ -65491,6 +66648,14 @@ } ], "ibm_pi_spp_placement_group": [ + { + "name": "members", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "pi_spp_placement_group_id", "type": "TypeString", @@ -65510,23 +66675,9 @@ "name": "pi_cloud_instance_id", "type": "TypeString", "required": true - }, - { - "name": "members", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } } ], "ibm_pi_spp_placement_groups": [ - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "description": "PI cloud instance ID", - "required": true - }, { "name": "spp_placement_groups", "type": "TypeList", @@ -65556,6 +66707,12 @@ "computed": true } } + }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "description": "PI cloud instance ID", + "required": true } ], "ibm_pi_storage_pool_capacity": [ @@ -65587,6 +66744,12 @@ "type": "TypeInt", "description": "Total pool capacity (GB)", "computed": true + }, + { + "name": "replication_enabled", + "type": "TypeBool", + "description": "Replication status of the storage pool", + "computed": true } ], "ibm_pi_storage_pools_capacity": [ @@ -65619,6 +66782,12 @@ "description": "Pool name", "computed": true }, + "replication_enabled": { + "name": "replication_enabled", + "type": "TypeBool", + "description": "Replication status of the storage pool", + "computed": true + }, "storage_type": { "name": "storage_type", "type": "TypeString", @@ -65635,11 +66804,6 @@ } ], "ibm_pi_storage_type_capacity": [ - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "required": true - }, { "name": "pi_storage_type", "type": "TypeString", @@ -65683,9 +66847,25 @@ "computed": true } } + }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "required": true } ], "ibm_pi_storage_types_capacity": [ + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "required": true + }, + { + "name": "maximum_storage_allocation", + "type": "TypeMap", + "description": "Maximum storage allocation", + "computed": true + }, { "name": "storage_types_capacity", "type": "TypeList", @@ -65737,20 +66917,14 @@ "computed": true } } - }, + } + ], + "ibm_pi_system_pools": [ { "name": "pi_cloud_instance_id", "type": "TypeString", "required": true }, - { - "name": "maximum_storage_allocation", - "type": "TypeMap", - "description": "Maximum storage allocation", - "computed": true - } - ], - "ibm_pi_system_pools": [ { "name": "system_pools", "type": "TypeList", @@ -65832,14 +67006,14 @@ "computed": true } } - }, - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "required": true } ], "ibm_pi_tenant": [ + { + "name": "tenant_name", + "type": "TypeString", + "computed": true + }, { "name": "cloud_instances", "type": "TypeSet", @@ -65871,40 +67045,34 @@ "name": "enabled", "type": "TypeBool", "computed": true - }, - { - "name": "tenant_name", - "type": "TypeString", - "computed": true } ], "ibm_pi_volume": [ { - "name": "auxiliary", - "type": "TypeBool", - "description": "true if volume is auxiliary otherwise false", + "name": "mirroring_state", + "type": "TypeString", + "description": "Mirroring state for replication enabled volume", "computed": true }, { - "name": "auxiliary_volume_name", + "name": "master_volume_name", "type": "TypeString", - "description": "Indicates auxiliary volume name", + "description": "Indicates master volume name", "computed": true }, { - "name": "size", - "type": "TypeInt", - "computed": true + "name": "pi_cloud_instance_id", + "type": "TypeString", + "required": true }, { - "name": "bootable", - "type": "TypeBool", + "name": "disk_type", + "type": "TypeString", "computed": true }, { - "name": "replication_type", + "name": "volume_pool", "type": "TypeString", - "description": "Replication type(metro,global)", "computed": true }, { @@ -65920,35 +67088,35 @@ "computed": true }, { - "name": "primary_role", + "name": "group_id", "type": "TypeString", - "description": "Indicates whether master/aux volume is playing the primary role", + "description": "Volume Group ID", "computed": true }, { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "required": true + "name": "size", + "type": "TypeInt", + "computed": true }, { - "name": "state", - "type": "TypeString", + "name": "bootable", + "type": "TypeBool", "computed": true }, { - "name": "shareable", + "name": "replication_enabled", "type": "TypeBool", + "description": "Indicates if the volume should be replication enabled or not", "computed": true }, { - "name": "mirroring_state", + "name": "state", "type": "TypeString", - "description": "Mirroring state for replication enabled volume", "computed": true }, { - "name": "volume_pool", - "type": "TypeString", + "name": "shareable", + "type": "TypeBool", "computed": true }, { @@ -65957,15 +67125,9 @@ "computed": true }, { - "name": "replication_enabled", + "name": "auxiliary", "type": "TypeBool", - "description": "Indicates if the volume should be replication enabled or not", - "computed": true - }, - { - "name": "master_volume_name", - "type": "TypeString", - "description": "Indicates master volume name", + "description": "true if volume is auxiliary otherwise false", "computed": true }, { @@ -65975,18 +67137,36 @@ "required": true }, { - "name": "disk_type", + "name": "replication_type", "type": "TypeString", + "description": "Replication type(metro,global)", "computed": true }, { - "name": "group_id", + "name": "primary_role", "type": "TypeString", - "description": "Volume Group ID", + "description": "Indicates whether master/aux volume is playing the primary role", + "computed": true + }, + { + "name": "auxiliary_volume_name", + "type": "TypeString", + "description": "Indicates auxiliary volume name", "computed": true } ], "ibm_pi_volume_flash_copy_mappings": [ + { + "name": "pi_volume_id", + "type": "TypeString", + "description": "Volume ID", + "required": true + }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "required": true + }, { "name": "flash_copy_mappings", "type": "TypeList", @@ -66035,20 +67215,30 @@ "computed": true } } + } + ], + "ibm_pi_volume_group": [ + { + "name": "volume_group_name", + "type": "TypeString", + "description": "Volume group name", + "computed": true }, { - "name": "pi_volume_id", + "name": "status", "type": "TypeString", - "description": "Volume ID", - "required": true + "computed": true }, { - "name": "pi_cloud_instance_id", + "name": "replication_status", "type": "TypeString", - "required": true - } - ], - "ibm_pi_volume_group": [ + "computed": true + }, + { + "name": "consistency_group_name", + "type": "TypeString", + "computed": true + }, { "name": "status_description_errors", "type": "TypeSet", @@ -66084,27 +67274,6 @@ "name": "pi_cloud_instance_id", "type": "TypeString", "required": true - }, - { - "name": "volume_group_name", - "type": "TypeString", - "description": "Volume group name", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "computed": true - }, - { - "name": "replication_status", - "type": "TypeString", - "computed": true - }, - { - "name": "consistency_group_name", - "type": "TypeString", - "computed": true } ], "ibm_pi_volume_group_details": [ @@ -66286,22 +67455,25 @@ "required": true }, { - "name": "cycle_period_seconds", - "type": "TypeInt", - "description": "Indicates the minimum period in seconds between multiple cycles", + "name": "replication_type", + "type": "TypeString", + "description": "Type of replication(metro,global)", "computed": true }, { - "name": "primary_role", + "name": "synchronized", "type": "TypeString", - "description": "Indicates whether master/aux volume is playing the primary role", + "description": "Indicates whether the relationship is synchronized", "computed": true }, { - "name": "replication_type", - "type": "TypeString", - "description": "Type of replication(metro,global)", - "computed": true + "name": "remote_copy_relationship_names", + "type": "TypeList", + "description": "List of remote-copy relationship names in a volume group", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "state", @@ -66316,36 +67488,33 @@ "required": true }, { - "name": "cycling_mode", + "name": "consistency_group_name", "type": "TypeString", - "description": "Indicates the type of cycling mode used", + "description": "The name of consistency group at storage controller level", "computed": true }, { - "name": "number_of_volumes", + "name": "cycle_period_seconds", "type": "TypeInt", - "description": "Number of volumes in volume group", + "description": "Indicates the minimum period in seconds between multiple cycles", "computed": true }, { - "name": "remote_copy_relationship_names", - "type": "TypeList", - "description": "List of remote-copy relationship names in a volume group", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "cycling_mode", + "type": "TypeString", + "description": "Indicates the type of cycling mode used", + "computed": true }, { - "name": "synchronized", - "type": "TypeString", - "description": "Indicates whether the relationship is synchronized", + "name": "number_of_volumes", + "type": "TypeInt", + "description": "Number of volumes in volume group", "computed": true }, { - "name": "consistency_group_name", + "name": "primary_role", "type": "TypeString", - "description": "The name of consistency group at storage controller level", + "description": "Indicates whether master/aux volume is playing the primary role", "computed": true } ], @@ -66502,26 +67671,27 @@ } }, { - "name": "progress", - "type": "TypeInt", - "description": "Indicates the progress of volume onboarding operation", - "computed": true - }, - { - "name": "results_onboarded_volumes", + "name": "results_volume_onboarding_failures", "type": "TypeList", - "description": "List of volumes which are onboarded successfully", "computed": true, "elem": { - "type": "TypeString" + "failure_message": { + "name": "failure_message", + "type": "TypeString", + "description": "The failure reason for the volumes which have failed to be onboarded", + "computed": true + }, + "volumes": { + "name": "volumes", + "type": "TypeList", + "description": "List of volumes which have failed to be onboarded", + "computed": true, + "elem": { + "type": "TypeString" + } + } } }, - { - "name": "status", - "type": "TypeString", - "description": "Indicates the status of volume onboarding operation", - "computed": true - }, { "name": "pi_volume_onboarding_id", "type": "TypeString", @@ -66540,26 +67710,25 @@ "computed": true }, { - "name": "results_volume_onboarding_failures", + "name": "progress", + "type": "TypeInt", + "description": "Indicates the progress of volume onboarding operation", + "computed": true + }, + { + "name": "results_onboarded_volumes", "type": "TypeList", + "description": "List of volumes which are onboarded successfully", "computed": true, "elem": { - "failure_message": { - "name": "failure_message", - "type": "TypeString", - "description": "The failure reason for the volumes which have failed to be onboarded", - "computed": true - }, - "volumes": { - "name": "volumes", - "type": "TypeList", - "description": "List of volumes which have failed to be onboarded", - "computed": true, - "elem": { - "type": "TypeString" - } - } + "type": "TypeString" } + }, + { + "name": "status", + "type": "TypeString", + "description": "Indicates the status of volume onboarding operation", + "computed": true } ], "ibm_pi_volume_onboardings": [ @@ -66606,28 +67775,22 @@ ], "ibm_pi_volume_remote_copy_relationship": [ { - "name": "auxiliary_volume_name", - "type": "TypeString", - "description": "Auxiliary volume name at storage host level", - "computed": true - }, - { - "name": "copy_type", + "name": "name", "type": "TypeString", - "description": "Indicates the copy type.", + "description": "Remote copy relationship name", "computed": true }, { - "name": "name", + "name": "state", "type": "TypeString", - "description": "Remote copy relationship name", + "description": "Indicates the relationship state", "computed": true }, { - "name": "primary_role", + "name": "pi_volume_id", "type": "TypeString", - "description": "Indicates whether master/aux volume is playing the primary role", - "computed": true + "description": "Volume name", + "required": true }, { "name": "pi_cloud_instance_id", @@ -66635,15 +67798,15 @@ "required": true }, { - "name": "cycling_mode", - "type": "TypeString", - "description": "Indicates the type of cycling mode used.", + "name": "cycle_period_seconds", + "type": "TypeInt", + "description": "Indicates the minimum period in seconds between multiple cycles", "computed": true }, { - "name": "freeze_time", + "name": "synchronized", "type": "TypeString", - "description": "Freeze time of remote copy relationship", + "description": "Indicates whether the relationship is synchronized", "computed": true }, { @@ -66653,28 +67816,28 @@ "computed": true }, { - "name": "master_volume_name", + "name": "copy_type", "type": "TypeString", - "description": "Master volume name at storage host level", + "description": "Indicates the copy type.", "computed": true }, { - "name": "state", + "name": "master_volume_name", "type": "TypeString", - "description": "Indicates the relationship state", + "description": "Master volume name at storage host level", "computed": true }, { - "name": "synchronized", - "type": "TypeString", - "description": "Indicates whether the relationship is synchronized", + "name": "progress", + "type": "TypeInt", + "description": "Indicates the relationship progress", "computed": true }, { - "name": "pi_volume_id", + "name": "auxiliary_volume_name", "type": "TypeString", - "description": "Volume name", - "required": true + "description": "Auxiliary volume name at storage host level", + "computed": true }, { "name": "consistency_group_name", @@ -66683,9 +67846,15 @@ "computed": true }, { - "name": "cycle_period_seconds", - "type": "TypeInt", - "description": "Indicates the minimum period in seconds between multiple cycles", + "name": "cycling_mode", + "type": "TypeString", + "description": "Indicates the type of cycling mode used.", + "computed": true + }, + { + "name": "freeze_time", + "type": "TypeString", + "description": "Freeze time of remote copy relationship", "computed": true }, { @@ -66695,9 +67864,9 @@ "computed": true }, { - "name": "progress", - "type": "TypeInt", - "description": "Indicates the relationship progress", + "name": "primary_role", + "type": "TypeString", + "description": "Indicates whether master/aux volume is playing the primary role", "computed": true }, { @@ -66707,6 +67876,111 @@ "computed": true } ], + "ibm_pi_workspace": [ + { + "name": "pi_workspace_status", + "type": "TypeString", + "description": "Workspace status", + "computed": true + }, + { + "name": "pi_workspace_type", + "type": "TypeString", + "description": "Workspace type", + "computed": true + }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "required": true + }, + { + "name": "pi_workspace_capabilities", + "type": "TypeMap", + "description": "Workspace Capabilities", + "computed": true, + "elem": { + "type": "TypeBool" + } + }, + { + "name": "pi_workspace_details", + "type": "TypeMap", + "description": "Workspace information", + "computed": true + }, + { + "name": "pi_workspace_location", + "type": "TypeMap", + "description": "Workspace location", + "computed": true + }, + { + "name": "pi_workspace_name", + "type": "TypeString", + "description": "Workspace name", + "computed": true + } + ], + "ibm_pi_workspaces": [ + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "required": true + }, + { + "name": "workspaces", + "type": "TypeList", + "computed": true, + "elem": { + "pi_workspace_capabilities": { + "name": "pi_workspace_capabilities", + "type": "TypeMap", + "description": "Workspace Capabilities", + "computed": true, + "elem": { + "type": "TypeBool" + } + }, + "pi_workspace_details": { + "name": "pi_workspace_details", + "type": "TypeMap", + "description": "Workspace information", + "computed": true + }, + "pi_workspace_id": { + "name": "pi_workspace_id", + "type": "TypeString", + "description": "Workspace ID", + "computed": true + }, + "pi_workspace_location": { + "name": "pi_workspace_location", + "type": "TypeMap", + "description": "Workspace location", + "computed": true + }, + "pi_workspace_name": { + "name": "pi_workspace_name", + "type": "TypeString", + "description": "Workspace name", + "computed": true + }, + "pi_workspace_status": { + "name": "pi_workspace_status", + "type": "TypeString", + "description": "Workspace status", + "computed": true + }, + "pi_workspace_type": { + "name": "pi_workspace_type", + "type": "TypeString", + "description": "Workspace type", + "computed": true + } + } + } + ], "ibm_pn_application_chrome": [ { "name": "guid", @@ -66728,18 +68002,6 @@ } ], "ibm_project_event_notification": [ - { - "name": "project_id", - "type": "TypeString", - "description": "The unique project ID.", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The project name.", - "computed": true - }, { "name": "description", "type": "TypeString", @@ -66959,22 +68221,48 @@ "computed": true } } + }, + { + "name": "project_id", + "type": "TypeString", + "description": "The unique project ID.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The project name.", + "computed": true } ], "ibm_resource_group": [ { - "name": "crn", + "name": "created_at", "type": "TypeString", - "description": "The full CRN associated with the resource group", - "cloud_data_type": "crn", + "description": "The date when the resource group was initially created.", "computed": true }, { - "name": "teams_url", + "name": "payment_methods_url", "type": "TypeString", - "description": "The URL to access the team details that associated with the resource group.", + "description": "The URL to access the payment methods details that associated with the resource group.", "computed": true }, + { + "name": "quota_id", + "type": "TypeString", + "description": "An alpha-numeric value identifying the quota ID associated with the resource group.", + "computed": true + }, + { + "name": "resource_linkages", + "type": "TypeSet", + "description": "An array of the resources that linked to the resource group", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "account_id", "type": "TypeString", @@ -67006,9 +68294,10 @@ "computed": true }, { - "name": "created_at", + "name": "crn", "type": "TypeString", - "description": "The date when the resource group was initially created.", + "description": "The full CRN associated with the resource group", + "cloud_data_type": "crn", "computed": true }, { @@ -67018,9 +68307,9 @@ "computed": true }, { - "name": "payment_methods_url", + "name": "teams_url", "type": "TypeString", - "description": "The URL to access the payment methods details that associated with the resource group.", + "description": "The URL to access the team details that associated with the resource group.", "computed": true }, { @@ -67028,24 +68317,15 @@ "type": "TypeString", "description": "The URL to access the quota details that associated with the resource group.", "computed": true - }, - { - "name": "quota_id", - "type": "TypeString", - "description": "An alpha-numeric value identifying the quota ID associated with the resource group.", - "computed": true - }, - { - "name": "resource_linkages", - "type": "TypeSet", - "description": "An array of the resources that linked to the resource group", - "computed": true, - "elem": { - "type": "TypeString" - } } ], "ibm_resource_instance": [ + { + "name": "name", + "type": "TypeString", + "description": "Resource instance name for example, myobjectstorage", + "required": true + }, { "name": "resource_group_id", "type": "TypeString", @@ -67058,10 +68338,9 @@ ] }, { - "name": "service", + "name": "resource_group_name", "type": "TypeString", - "description": "The service type of the instance", - "optional": true, + "description": "The resource group name in which resource is provisioned", "computed": true }, { @@ -67081,40 +68360,38 @@ "computed": true }, { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", + "name": "extensions", + "type": "TypeMap", + "description": "The extended metadata as a map associated with the resource instance.", "computed": true }, { - "name": "plan", + "name": "location", "type": "TypeString", - "description": "The plan type of the instance", + "description": "The location or the environment in which instance exists", + "cloud_data_type": "region", + "optional": true, "computed": true }, { - "name": "status", + "name": "service", "type": "TypeString", - "description": "The resource instance status", + "description": "The service type of the instance", + "optional": true, "computed": true }, { - "name": "resource_crn", + "name": "status", "type": "TypeString", - "description": "The crn of the resource", - "computed": true - }, - { - "name": "extensions", - "type": "TypeMap", - "description": "The extended metadata as a map associated with the resource instance.", + "description": "The resource instance status", "computed": true }, { - "name": "name", + "name": "crn", "type": "TypeString", - "description": "Resource instance name for example, myobjectstorage", - "required": true + "description": "CRN of resource instance", + "cloud_data_type": "crn", + "computed": true }, { "name": "guid", @@ -67123,18 +68400,15 @@ "computed": true }, { - "name": "location", + "name": "resource_crn", "type": "TypeString", - "description": "The location or the environment in which instance exists", - "cloud_data_type": "region", - "optional": true, + "description": "The crn of the resource", "computed": true }, { - "name": "crn", + "name": "plan", "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", + "description": "The plan type of the instance", "computed": true }, { @@ -67144,36 +68418,13 @@ "computed": true }, { - "name": "resource_group_name", + "name": "resource_controller_url", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", "computed": true } ], "ibm_resource_key": [ - { - "name": "crn", - "type": "TypeString", - "description": "crn of resource key", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "resource_instance_id", - "type": "TypeString", - "description": "The id of the resource instance", - "cloud_data_type": "resource_instance", - "optional": true, - "cloud_data_range": [ - "service:%s" - ] - }, - { - "name": "role", - "type": "TypeString", - "description": "User role", - "computed": true - }, { "name": "credentials", "type": "TypeMap", @@ -67181,13 +68432,6 @@ "secure": true, "computed": true }, - { - "name": "most_recent", - "type": "TypeBool", - "description": "If true and multiple entries are found, the most recently created resource key is used. If false, an error is returned", - "default_value": false, - "optional": true - }, { "name": "name", "type": "TypeString", @@ -67200,27 +68444,51 @@ "description": "The id of the resource alias", "optional": true }, + { + "name": "role", + "type": "TypeString", + "description": "User role", + "computed": true + }, { "name": "status", "type": "TypeString", "description": "Status of resource key", "computed": true }, + { + "name": "resource_instance_id", + "type": "TypeString", + "description": "The id of the resource instance", + "cloud_data_type": "resource_instance", + "optional": true, + "cloud_data_range": [ + "service:%s" + ] + }, { "name": "credentials_json", "type": "TypeString", "description": "Credentials asociated with the key in json string", "secure": true, "computed": true + }, + { + "name": "most_recent", + "type": "TypeBool", + "description": "If true and multiple entries are found, the most recently created resource key is used. If false, an error is returned", + "default_value": false, + "optional": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "crn of resource key", + "cloud_data_type": "crn", + "computed": true } ], "ibm_resource_quota": [ - { - "name": "vsi_limit", - "type": "TypeInt", - "description": "Defines the VSI limit.", - "computed": true - }, { "name": "name", "type": "TypeString", @@ -67262,9 +68530,25 @@ "type": "TypeInt", "description": "Defines the total service instances limit.", "computed": true + }, + { + "name": "vsi_limit", + "type": "TypeInt", + "description": "Defines the VSI limit.", + "computed": true } ], "ibm_resource_tag": [ + { + "name": "tags", + "type": "TypeSet", + "description": "List of tags associated with resource instance", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "resource_type", "type": "TypeString", @@ -67283,29 +68567,19 @@ "type": "TypeString", "description": "CRN of the resource on which the tags should be attached", "optional": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "List of tags associated with resource instance", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } } ], "ibm_satellite_attach_host_script": [ { - "name": "location", + "name": "description", "type": "TypeString", "description": "A unique name for the new Satellite location", - "cloud_data_type": "region", - "required": true + "computed": true }, { - "name": "host_provider", - "type": "TypeString", + "name": "coreos_host", + "type": "TypeBool", + "description": "If true, returns a CoreOS ignition file for the host. Otherwise, returns a RHEL attach script", "optional": true }, { @@ -67316,23 +68590,30 @@ "computed": true }, { - "name": "host_script", + "name": "script_path", "type": "TypeString", - "description": "Attach host script content", + "description": "The absolute path to the generated host script file", "computed": true }, { - "name": "description", + "name": "host_script", "type": "TypeString", - "description": "A unique name for the new Satellite location", + "description": "Attach host script content", "computed": true }, { - "name": "coreos_host", - "type": "TypeBool", - "description": "If true, returns a CoreOS ignition file for the host. Otherwise, returns a RHEL attach script", + "name": "custom_script", + "type": "TypeString", + "description": "The custom script that has to be appended to generated host script file", "optional": true }, + { + "name": "location", + "type": "TypeString", + "description": "A unique name for the new Satellite location", + "cloud_data_type": "region", + "required": true + }, { "name": "labels", "type": "TypeSet", @@ -67343,23 +68624,20 @@ } }, { - "name": "script_path", - "type": "TypeString", - "description": "The absolute path to the generated host script file", - "computed": true - }, - { - "name": "custom_script", + "name": "host_provider", "type": "TypeString", - "description": "The custom script that has to be appended to generated host script file", "optional": true } ], "ibm_satellite_cluster": [ { - "name": "private_service_endpoint_url", - "type": "TypeString", - "computed": true + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "name", @@ -67368,9 +68646,10 @@ "required": true }, { - "name": "state", + "name": "location", "type": "TypeString", - "description": "The lifecycle state of the cluster", + "description": "Name or id of the location", + "cloud_data_type": "region", "computed": true }, { @@ -67379,6 +68658,20 @@ "description": "The status of the cluster", "computed": true }, + { + "name": "worker_count", + "type": "TypeInt", + "description": "Number of workers", + "computed": true + }, + { + "name": "workers", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "ingress_secret", "type": "TypeString", @@ -67386,21 +68679,19 @@ "computed": true }, { - "name": "crn", - "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", + "name": "public_service_endpoint", + "type": "TypeBool", "computed": true }, { - "name": "health", + "name": "infrastructure_topology", "type": "TypeString", + "description": "String value for single node cluster option.", "computed": true }, { - "name": "worker_count", - "type": "TypeInt", - "description": "Number of workers", + "name": "health", + "type": "TypeString", "computed": true }, { @@ -67471,36 +68762,32 @@ } }, { - "name": "server_url", + "name": "resource_group_id", "type": "TypeString", - "description": "The server URL", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "optional": true, "computed": true }, { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "name": "private_service_endpoint", + "type": "TypeBool", "computed": true }, { - "name": "location", + "name": "public_service_endpoint_url", "type": "TypeString", - "description": "Name or id of the location", - "cloud_data_type": "region", "computed": true }, { - "name": "kube_version", + "name": "private_service_endpoint_url", "type": "TypeString", - "description": "Kubernetes version", "computed": true }, { - "name": "resource_group_id", + "name": "state", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "optional": true, + "description": "The lifecycle state of the cluster", "computed": true }, { @@ -67509,72 +68796,42 @@ "computed": true }, { - "name": "infrastructure_topology", + "name": "crn", "type": "TypeString", - "description": "String value for single node cluster option.", + "description": "CRN of resource instance", + "cloud_data_type": "crn", "computed": true }, { - "name": "workers", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "public_service_endpoint", - "type": "TypeBool", + "name": "server_url", + "type": "TypeString", + "description": "The server URL", "computed": true }, { - "name": "private_service_endpoint", - "type": "TypeBool", + "name": "kube_version", + "type": "TypeString", + "description": "Kubernetes version", "computed": true }, { - "name": "public_service_endpoint_url", + "name": "resource_group_name", "type": "TypeString", + "description": "The resource group name in which resource is provisioned", "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } } ], "ibm_satellite_cluster_worker_pool": [ { - "name": "host_labels", - "type": "TypeMap", - "description": "Host labels on the workers", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "region", + "name": "isolation", "type": "TypeString", - "description": "Name of the region", - "cloud_data_type": "region", - "optional": true, - "computed": true - }, - { - "name": "worker_count", - "type": "TypeInt", - "description": "The number of workers that are attached", + "description": "Isolation of the worker node", "computed": true }, { - "name": "isolation", - "type": "TypeString", - "description": "Isolation of the worker node", + "name": "auto_scale_enabled", + "type": "TypeBool", + "description": "Enable auto scalling for worker pool", "computed": true }, { @@ -67584,9 +68841,9 @@ "required": true }, { - "name": "flavor", + "name": "state", "type": "TypeString", - "description": "The flavor of the satellite worker node", + "description": "The state of the worker pool", "computed": true }, { @@ -67615,12 +68872,6 @@ "type": "TypeString" } }, - { - "name": "operating_system", - "type": "TypeString", - "description": "The operating system of the hosts in the worker pool", - "computed": true - }, { "name": "resource_group_id", "type": "TypeString", @@ -67630,9 +68881,9 @@ "computed": true }, { - "name": "auto_scale_enabled", - "type": "TypeBool", - "description": "Enable auto scalling for worker pool", + "name": "worker_count", + "type": "TypeInt", + "description": "The number of workers that are attached", "computed": true }, { @@ -67642,13 +68893,48 @@ "required": true }, { - "name": "state", + "name": "flavor", "type": "TypeString", - "description": "The state of the worker pool", + "description": "The flavor of the satellite worker node", + "computed": true + }, + { + "name": "host_labels", + "type": "TypeMap", + "description": "Host labels on the workers", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "operating_system", + "type": "TypeString", + "description": "The operating system of the hosts in the worker pool", + "computed": true + }, + { + "name": "region", + "type": "TypeString", + "description": "Name of the region", + "cloud_data_type": "region", + "optional": true, "computed": true } ], "ibm_satellite_cluster_worker_pool_zone_attachment": [ + { + "name": "worker_pool", + "type": "TypeString", + "description": "worker pool name", + "required": true + }, + { + "name": "zone", + "type": "TypeString", + "description": "worker pool zone name", + "required": true + }, { "name": "resource_group_id", "type": "TypeString", @@ -67682,21 +68968,39 @@ "type": "TypeString", "description": "Name or id of the cluster", "required": true + } + ], + "ibm_satellite_endpoint": [ + { + "name": "connection_type", + "type": "TypeString", + "description": "The type of the endpoint.", + "computed": true }, { - "name": "worker_pool", + "name": "server_host", "type": "TypeString", - "description": "worker pool name", - "required": true + "description": "The host name or IP address of the server endpoint. For 'http-tunnel' protocol, server_host can start with '*.' , which means a wildcard to it's sub domains. Such as '*.example.com' can accept request to 'api.example.com' and 'www.example.com'.", + "computed": true }, { - "name": "zone", + "name": "sni", "type": "TypeString", - "description": "worker pool zone name", - "required": true - } - ], - "ibm_satellite_endpoint": [ + "description": "The server name indicator (SNI) which used to connect to the server endpoint. Only useful if server side requires SNI.", + "computed": true + }, + { + "name": "server_protocol", + "type": "TypeString", + "description": "The protocol in the server application side. This parameter will change to default value if it is omitted even when using PATCH API. If client_protocol is 'udp', server_protocol must be 'udp'. If client_protocol is 'tcp'/'http', server_protocol could be 'tcp'/'tls' and default to 'tcp'. If client_protocol is 'tls'/'https', server_protocol could be 'tcp'/'tls' and default to 'tls'. If client_protocol is 'http-tunnel', server_protocol must be 'tcp'.", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Whether the Endpoint is active or not.", + "computed": true + }, { "name": "client_protocol", "type": "TypeString", @@ -67709,6 +69013,62 @@ "description": "Whether enable mutual auth in the client application side, when client_protocol is 'tls' or 'https', this field is required.", "computed": true }, + { + "name": "server_mutual_auth", + "type": "TypeBool", + "description": "Whether enable mutual auth in the server application side, when client_protocol is 'tls', this field is required.", + "computed": true + }, + { + "name": "connector_port", + "type": "TypeInt", + "description": "The connector port.", + "computed": true + }, + { + "name": "client_host", + "type": "TypeString", + "description": "The hostname which Satellite Link server listen on for the on-location endpoint, or the hostname which the connector server listen on for the on-cloud endpoint destiantion.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The time when the Endpoint is created.", + "computed": true + }, + { + "name": "last_change", + "type": "TypeString", + "description": "The last time modify the Endpoint configurations.", + "computed": true + }, + { + "name": "location", + "type": "TypeString", + "description": "The Location ID.", + "cloud_data_type": "region", + "required": true + }, + { + "name": "reject_unauth", + "type": "TypeBool", + "description": "Whether reject any connection to the server application which is not authorized with the list of supplied CAs in the fields certs.server_cert.", + "computed": true + }, + { + "name": "timeout", + "type": "TypeInt", + "description": "The inactivity timeout in the Endpoint side.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Service instance associated with this location.", + "cloud_data_type": "crn", + "computed": true + }, { "name": "certs", "type": "TypeList", @@ -67797,128 +69157,12 @@ } } }, - { - "name": "created_by", - "type": "TypeString", - "description": "The service or person who created the endpoint. Must be 1000 characters or fewer.", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Service instance associated with this location.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "last_change", - "type": "TypeString", - "description": "The last time modify the Endpoint configurations.", - "computed": true - }, - { - "name": "server_host", - "type": "TypeString", - "description": "The host name or IP address of the server endpoint. For 'http-tunnel' protocol, server_host can start with '*.' , which means a wildcard to it's sub domains. Such as '*.example.com' can accept request to 'api.example.com' and 'www.example.com'.", - "computed": true - }, - { - "name": "sni", - "type": "TypeString", - "description": "The server name indicator (SNI) which used to connect to the server endpoint. Only useful if server side requires SNI.", - "computed": true - }, - { - "name": "server_protocol", - "type": "TypeString", - "description": "The protocol in the server application side. This parameter will change to default value if it is omitted even when using PATCH API. If client_protocol is 'udp', server_protocol must be 'udp'. If client_protocol is 'tcp'/'http', server_protocol could be 'tcp'/'tls' and default to 'tcp'. If client_protocol is 'tls'/'https', server_protocol could be 'tcp'/'tls' and default to 'tls'. If client_protocol is 'http-tunnel', server_protocol must be 'tcp'.", - "computed": true - }, - { - "name": "timeout", - "type": "TypeInt", - "description": "The inactivity timeout in the Endpoint side.", - "computed": true - }, { "name": "service_name", "type": "TypeString", "description": "The service name of the endpoint.", "computed": true }, - { - "name": "status", - "type": "TypeString", - "description": "Whether the Endpoint is active or not.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The time when the Endpoint is created.", - "computed": true - }, - { - "name": "endpoint_id", - "type": "TypeString", - "description": "The Endpoint ID.", - "required": true - }, - { - "name": "server_mutual_auth", - "type": "TypeBool", - "description": "Whether enable mutual auth in the server application side, when client_protocol is 'tls', this field is required.", - "computed": true - }, - { - "name": "sources", - "type": "TypeList", - "computed": true, - "elem": { - "enabled": { - "name": "enabled", - "type": "TypeBool", - "description": "Whether the source is enabled for the endpoint.", - "computed": true - }, - "last_change": { - "name": "last_change", - "type": "TypeString", - "description": "The last time modify the Endpoint configurations.", - "computed": true - }, - "pending": { - "name": "pending", - "type": "TypeBool", - "description": "Whether the source has been enabled on this endpoint.", - "computed": true - }, - "source_id": { - "name": "source_id", - "type": "TypeString", - "description": "The Source ID.", - "computed": true - } - } - }, - { - "name": "connector_port", - "type": "TypeInt", - "description": "The connector port.", - "computed": true - }, - { - "name": "reject_unauth", - "type": "TypeBool", - "description": "Whether reject any connection to the server application which is not authorized with the list of supplied CAs in the fields certs.server_cert.", - "computed": true - }, - { - "name": "client_host", - "type": "TypeString", - "description": "The hostname which Satellite Link server listen on for the on-location endpoint, or the hostname which the connector server listen on for the on-cloud endpoint destiantion.", - "computed": true - }, { "name": "client_port", "type": "TypeInt", @@ -67990,18 +69234,11 @@ } }, { - "name": "location", + "name": "endpoint_id", "type": "TypeString", - "description": "The Location ID.", - "cloud_data_type": "region", + "description": "The Endpoint ID.", "required": true }, - { - "name": "connection_type", - "type": "TypeString", - "description": "The type of the endpoint.", - "computed": true - }, { "name": "display_name", "type": "TypeString", @@ -68013,26 +69250,64 @@ "type": "TypeInt", "description": "The port number of the server endpoint. For 'http-tunnel' protocol, server_port can be 0, which means any port. Such as 0 is good for 80 (http) and 443 (https).", "computed": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "The service or person who created the endpoint. Must be 1000 characters or fewer.", + "computed": true + }, + { + "name": "sources", + "type": "TypeList", + "computed": true, + "elem": { + "enabled": { + "name": "enabled", + "type": "TypeBool", + "description": "Whether the source is enabled for the endpoint.", + "computed": true + }, + "last_change": { + "name": "last_change", + "type": "TypeString", + "description": "The last time modify the Endpoint configurations.", + "computed": true + }, + "pending": { + "name": "pending", + "type": "TypeBool", + "description": "Whether the source has been enabled on this endpoint.", + "computed": true + }, + "source_id": { + "name": "source_id", + "type": "TypeString", + "description": "The Source ID.", + "computed": true + } + } } ], "ibm_satellite_link": [ { - "name": "crn", + "name": "location", "type": "TypeString", - "description": "Service instance associated with this location.", - "cloud_data_type": "crn", - "computed": true + "description": "The Location ID.", + "cloud_data_type": "region", + "required": true }, { - "name": "description", + "name": "crn", "type": "TypeString", - "description": "Description of the location.", + "description": "Service instance associated with this location.", + "cloud_data_type": "crn", "computed": true }, { - "name": "status", + "name": "satellite_link_host", "type": "TypeString", - "description": "Enabled/Disabled.", + "description": "Satellite Link hostname of the location.", "computed": true }, { @@ -68041,19 +69316,6 @@ "description": "Timestamp of creation of location.", "computed": true }, - { - "name": "location", - "type": "TypeString", - "description": "The Location ID.", - "cloud_data_type": "region", - "required": true - }, - { - "name": "ws_endpoint", - "type": "TypeString", - "description": "The ws endpoint of the location.", - "computed": true - }, { "name": "performance", "type": "TypeList", @@ -68131,97 +69393,40 @@ } }, { - "name": "satellite_link_host", - "type": "TypeString", - "description": "Satellite Link hostname of the location.", - "computed": true - }, - { - "name": "last_change", - "type": "TypeString", - "description": "Timestamp of latest modification of location.", - "computed": true - } - ], - "ibm_satellite_location": [ - { - "name": "crn", - "type": "TypeString", - "description": "Location CRN", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "ID of the resource group", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "host_attached_count", - "type": "TypeInt", - "description": "The total number of hosts that are attached to the Satellite location.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "host_available_count", - "type": "TypeInt", - "description": "The available number of hosts that can be assigned to a cluster resource in the Satellite location.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "created_on", + "name": "ws_endpoint", "type": "TypeString", - "description": "Created Date", + "description": "The ws endpoint of the location.", "computed": true }, - { - "name": "location", - "type": "TypeString", - "description": "A unique name for the new Satellite location", - "cloud_data_type": "region", - "required": true - }, { "name": "description", "type": "TypeString", - "description": "A description of the new Satellite location", + "description": "Description of the location.", "computed": true }, { - "name": "logging_account_id", + "name": "status", "type": "TypeString", - "description": "The account ID for IBM Log Analysis with LogDNA log forwarding", + "description": "Enabled/Disabled.", "computed": true }, { - "name": "ingress_secret", + "name": "last_change", "type": "TypeString", - "secure": true, + "description": "Timestamp of latest modification of location.", "computed": true - }, + } + ], + "ibm_satellite_location": [ { - "name": "zones", + "name": "tags", "type": "TypeSet", - "description": "The names of at least three high availability zones to use for the location", + "cloud_data_type": "tags", "computed": true, "elem": { "type": "TypeString" } }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "Name of the resource group", - "computed": true - }, { "name": "ingress_hostname", "type": "TypeString", @@ -68272,6 +69477,19 @@ } } }, + { + "name": "ingress_secret", + "type": "TypeString", + "secure": true, + "computed": true + }, + { + "name": "location", + "type": "TypeString", + "description": "A unique name for the new Satellite location", + "cloud_data_type": "region", + "required": true + }, { "name": "managed_from", "type": "TypeString", @@ -68285,9 +69503,65 @@ "computed": true }, { - "name": "tags", + "name": "logging_account_id", + "type": "TypeString", + "description": "The account ID for IBM Log Analysis with LogDNA log forwarding", + "computed": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "resource_group_name", + "type": "TypeString", + "description": "Name of the resource group", + "computed": true + }, + { + "name": "created_on", + "type": "TypeString", + "description": "Created Date", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "A description of the new Satellite location", + "computed": true + }, + { + "name": "zones", "type": "TypeSet", - "cloud_data_type": "tags", + "description": "The names of at least three high availability zones to use for the location", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "crn", + "type": "TypeString", + "description": "Location CRN", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "host_attached_count", + "type": "TypeInt", + "description": "The total number of hosts that are attached to the Satellite location.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "host_available_count", + "type": "TypeInt", + "description": "The available number of hosts that can be assigned to a cluster resource in the Satellite location.", "computed": true, "elem": { "type": "TypeString" @@ -68376,21 +69650,21 @@ "required": true }, { - "name": "config", + "name": "cluster", "type": "TypeString", - "description": "Storage Configuration Name or ID.", + "description": "ID of the Satellite cluster or Service Cluster that you want to apply the configuration to.", "computed": true }, { - "name": "config_uuid", + "name": "sat_cluster", "type": "TypeString", - "description": "The Universally Unique IDentifier (UUID) of the Storage Configuration.", + "description": "ID of the Satellite cluster that you applied the configuration to.", "computed": true }, { - "name": "assignment_type", + "name": "config_version_uuid", "type": "TypeString", - "description": "The Type of Assignment.", + "description": "The Universally Unique IDentifier (UUID) of the Storage Configuration Version.", "computed": true }, { @@ -68400,27 +69674,15 @@ "computed": true }, { - "name": "assignment_name", - "type": "TypeString", - "description": "Name of the Assignment.", - "computed": true - }, - { - "name": "config_version", - "type": "TypeString", - "description": "The Storage Configuration Version.", + "name": "is_assignment_upgrade_available", + "type": "TypeBool", + "description": "Whether an Upgrade is Available for the Assignment.", "computed": true }, { - "name": "created", + "name": "assignment_name", "type": "TypeString", - "description": "The Time of Creation of the Assignment.", - "computed": true - }, - { - "name": "rollout_success_count", - "type": "TypeInt", - "description": "The Rollout Success Count of the Assignment.", + "description": "Name of the Assignment.", "computed": true }, { @@ -68433,9 +69695,9 @@ } }, { - "name": "cluster", + "name": "created", "type": "TypeString", - "description": "ID of the Satellite cluster or Service Cluster that you want to apply the configuration to.", + "description": "The Time of Creation of the Assignment.", "computed": true }, { @@ -68445,9 +69707,21 @@ "computed": true }, { - "name": "config_version_uuid", + "name": "config", "type": "TypeString", - "description": "The Universally Unique IDentifier (UUID) of the Storage Configuration Version.", + "description": "Storage Configuration Name or ID.", + "computed": true + }, + { + "name": "config_uuid", + "type": "TypeString", + "description": "The Universally Unique IDentifier (UUID) of the Storage Configuration.", + "computed": true + }, + { + "name": "assignment_type", + "type": "TypeString", + "description": "The Type of Assignment.", "computed": true }, { @@ -68457,19 +69731,37 @@ "computed": true }, { - "name": "is_assignment_upgrade_available", - "type": "TypeBool", - "description": "Whether an Upgrade is Available for the Assignment.", + "name": "config_version", + "type": "TypeString", + "description": "The Storage Configuration Version.", "computed": true }, { - "name": "sat_cluster", - "type": "TypeString", - "description": "ID of the Satellite cluster that you applied the configuration to.", + "name": "rollout_success_count", + "type": "TypeInt", + "description": "The Rollout Success Count of the Assignment.", "computed": true } ], "ibm_satellite_storage_configuration": [ + { + "name": "config_version", + "type": "TypeString", + "description": "Version of the Storage Configuration.", + "computed": true + }, + { + "name": "storage_template_name", + "type": "TypeString", + "description": "The Storage Template Name.", + "computed": true + }, + { + "name": "storage_template_version", + "type": "TypeString", + "description": "The Storage Template Version.", + "computed": true + }, { "name": "user_config_parameters", "type": "TypeMap", @@ -68506,31 +69798,93 @@ "type": "TypeString", "description": "Name of the Storage Configuration.", "required": true + } + ], + "ibm_scc_account_location": [], + "ibm_scc_account_location_settings": [], + "ibm_scc_account_locations": [], + "ibm_scc_account_notification_settings": [], + "ibm_scc_control_library": [ + { + "name": "account_id", + "type": "TypeString", + "description": "The account ID.", + "computed": true }, { - "name": "config_version", + "name": "control_library_type", "type": "TypeString", - "description": "Version of the Storage Configuration.", + "description": "The control library type.", "computed": true }, { - "name": "storage_template_name", + "name": "controls_count", + "type": "TypeInt", + "description": "The number of controls.", + "computed": true + }, + { + "name": "updated_on", "type": "TypeString", - "description": "The Storage Template Name.", + "description": "The date when the control library was updated.", "computed": true }, { - "name": "storage_template_version", + "name": "latest", + "type": "TypeBool", + "description": "The latest version of the control library.", + "computed": true + }, + { + "name": "instance_id", "type": "TypeString", - "description": "The Storage Template Version.", + "description": "The ID of the Security and Compliance Center instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, + { + "name": "control_library_id", + "type": "TypeString", + "description": "The control library ID.", + "required": true + }, + { + "name": "control_library_description", + "type": "TypeString", + "description": "The control library description.", "computed": true - } - ], - "ibm_scc_account_location": [], - "ibm_scc_account_location_settings": [], - "ibm_scc_account_locations": [], - "ibm_scc_account_notification_settings": [], - "ibm_scc_control_library": [ + }, + { + "name": "created_on", + "type": "TypeString", + "description": "The date when the control library was created.", + "computed": true + }, + { + "name": "version_group_label", + "type": "TypeString", + "description": "The version group label.", + "computed": true + }, + { + "name": "control_library_version", + "type": "TypeString", + "description": "The control library version.", + "computed": true + }, + { + "name": "control_parents_count", + "type": "TypeInt", + "description": "The number of parent controls in the control library.", + "computed": true + }, + { + "name": "hierarchy_enabled", + "type": "TypeBool", + "description": "The indication of whether hierarchy is enabled for the control library.", + "computed": true + }, { "name": "controls", "type": "TypeList", @@ -68724,50 +70078,6 @@ } } }, - { - "name": "account_id", - "type": "TypeString", - "description": "The account ID.", - "computed": true - }, - { - "name": "control_library_description", - "type": "TypeString", - "description": "The control library description.", - "computed": true - }, - { - "name": "updated_by", - "type": "TypeString", - "description": "The user who updated the control library.", - "computed": true - }, - { - "name": "controls_count", - "type": "TypeInt", - "description": "The number of controls.", - "computed": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "The user who created the control library.", - "computed": true - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Security and Compliance Center instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "control_library_id", - "type": "TypeString", - "description": "The control library ID.", - "required": true - }, { "name": "control_library_name", "type": "TypeString", @@ -68775,51 +70085,15 @@ "computed": true }, { - "name": "control_library_version", - "type": "TypeString", - "description": "The control library version.", - "computed": true - }, - { - "name": "created_on", - "type": "TypeString", - "description": "The date when the control library was created.", - "computed": true - }, - { - "name": "latest", - "type": "TypeBool", - "description": "The latest version of the control library.", - "computed": true - }, - { - "name": "control_parents_count", - "type": "TypeInt", - "description": "The number of parent controls in the control library.", - "computed": true - }, - { - "name": "control_library_type", - "type": "TypeString", - "description": "The control library type.", - "computed": true - }, - { - "name": "version_group_label", + "name": "created_by", "type": "TypeString", - "description": "The version group label.", + "description": "The user who created the control library.", "computed": true }, { - "name": "updated_on", + "name": "updated_by", "type": "TypeString", - "description": "The date when the control library was updated.", - "computed": true - }, - { - "name": "hierarchy_enabled", - "type": "TypeBool", - "description": "The indication of whether hierarchy is enabled for the control library.", + "description": "The user who updated the control library.", "computed": true } ], @@ -68898,18 +70172,6 @@ } ], "ibm_scc_latest_reports": [ - { - "name": "sort", - "type": "TypeString", - "description": "This field sorts results by using a valid sort field. To learn more, see [Sorting](https://cloud.ibm.com/docs/api-handbook?topic=api-handbook-sorting).", - "optional": true - }, - { - "name": "home_account_id", - "type": "TypeString", - "description": "The ID of the home account.", - "computed": true - }, { "name": "controls_summary", "type": "TypeList", @@ -69205,31 +70467,69 @@ "cloud_data_type": "resource_instance", "immutable": true, "required": true - } - ], - "ibm_scc_profile": [ + }, { - "name": "created_by", + "name": "sort", "type": "TypeString", - "description": "The user who created the profile.", - "computed": true + "description": "This field sorts results by using a valid sort field. To learn more, see [Sorting](https://cloud.ibm.com/docs/api-handbook?topic=api-handbook-sorting).", + "optional": true }, { - "name": "attachments_count", - "type": "TypeInt", - "description": "The number of attachments related to this profile.", + "name": "home_account_id", + "type": "TypeString", + "description": "The ID of the home account.", "computed": true - }, + } + ], + "ibm_scc_profile": [ { - "name": "latest", - "type": "TypeBool", - "description": "The latest version of the profile.", - "computed": true + "name": "default_parameters", + "type": "TypeList", + "description": "The default parameters of the profile.", + "computed": true, + "elem": { + "assessment_id": { + "name": "assessment_id", + "type": "TypeString", + "description": "The implementation ID of the parameter.", + "computed": true + }, + "assessment_type": { + "name": "assessment_type", + "type": "TypeString", + "description": "The type of the implementation.", + "computed": true + }, + "parameter_default_value": { + "name": "parameter_default_value", + "type": "TypeString", + "description": "The default value of the parameter.", + "computed": true + }, + "parameter_display_name": { + "name": "parameter_display_name", + "type": "TypeString", + "description": "The parameter display name.", + "computed": true + }, + "parameter_name": { + "name": "parameter_name", + "type": "TypeString", + "description": "The parameter name.", + "computed": true + }, + "parameter_type": { + "name": "parameter_type", + "type": "TypeString", + "description": "The parameter type.", + "computed": true + } + } }, { - "name": "created_on", + "name": "profile_name", "type": "TypeString", - "description": "The date when the profile was created.", + "description": "The profile name.", "computed": true }, { @@ -69239,9 +70539,9 @@ "computed": true }, { - "name": "profile_type", + "name": "version_group_label", "type": "TypeString", - "description": "The profile type, such as custom or predefined.", + "description": "The version group label of the profile.", "computed": true }, { @@ -69259,21 +70559,21 @@ "computed": true }, { - "name": "updated_by", - "type": "TypeString", - "description": "The user who updated the profile.", + "name": "controls_count", + "type": "TypeInt", + "description": "The number of controls for the profile.", "computed": true }, { - "name": "controls_count", + "name": "attachments_count", "type": "TypeInt", - "description": "The number of controls for the profile.", + "description": "The number of attachments related to this profile.", "computed": true }, { - "name": "profile_name", - "type": "TypeString", - "description": "The profile name.", + "name": "control_parents_count", + "type": "TypeInt", + "description": "The number of parent controls for the profile.", "computed": true }, { @@ -69283,21 +70583,15 @@ "computed": true }, { - "name": "version_group_label", - "type": "TypeString", - "description": "The version group label of the profile.", + "name": "latest", + "type": "TypeBool", + "description": "The latest version of the profile.", "computed": true }, { - "name": "updated_on", + "name": "updated_by", "type": "TypeString", - "description": "The date when the profile was updated.", - "computed": true - }, - { - "name": "control_parents_count", - "type": "TypeInt", - "description": "The number of parent controls for the profile.", + "description": "The user who updated the profile.", "computed": true }, { @@ -69497,63 +70791,119 @@ } }, { - "name": "default_parameters", + "name": "profile_id", + "type": "TypeString", + "description": "The profile ID.", + "required": true + }, + { + "name": "profile_type", + "type": "TypeString", + "description": "The profile type, such as custom or predefined.", + "computed": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "The user who created the profile.", + "computed": true + }, + { + "name": "created_on", + "type": "TypeString", + "description": "The date when the profile was created.", + "computed": true + }, + { + "name": "updated_on", + "type": "TypeString", + "description": "The date when the profile was updated.", + "computed": true + } + ], + "ibm_scc_profile_attachment": [ + { + "name": "created_on", + "type": "TypeString", + "description": "The date when the attachment was created.", + "computed": true + }, + { + "name": "schedule", + "type": "TypeString", + "description": "The schedule of an attachment evaluation.", + "computed": true + }, + { + "name": "next_scan_time", + "type": "TypeString", + "description": "The start time of the next scan.", + "computed": true + }, + { + "name": "attachment_item_id", + "type": "TypeString", + "description": "The ID of the attachment.", + "computed": true + }, + { + "name": "scope", "type": "TypeList", - "description": "The default parameters of the profile.", + "description": "The scope payload for the multi cloud feature.", "computed": true, "elem": { - "assessment_id": { - "name": "assessment_id", - "type": "TypeString", - "description": "The implementation ID of the parameter.", - "computed": true - }, - "assessment_type": { - "name": "assessment_type", - "type": "TypeString", - "description": "The type of the implementation.", - "computed": true - }, - "parameter_default_value": { - "name": "parameter_default_value", - "type": "TypeString", - "description": "The default value of the parameter.", - "computed": true - }, - "parameter_display_name": { - "name": "parameter_display_name", - "type": "TypeString", - "description": "The parameter display name.", - "computed": true - }, - "parameter_name": { - "name": "parameter_name", + "environment": { + "name": "environment", "type": "TypeString", - "description": "The parameter name.", + "description": "The environment that relates to this scope.", "computed": true }, - "parameter_type": { - "name": "parameter_type", - "type": "TypeString", - "description": "The parameter type.", - "computed": true + "properties": { + "name": "properties", + "type": "TypeList", + "description": "The properties supported for scoping by this environment.", + "computed": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "The name of the property.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "The value of the property.", + "computed": true + } + } } } }, { - "name": "profile_id", + "name": "status", "type": "TypeString", - "description": "The profile ID.", - "required": true - } - ], - "ibm_scc_profile_attachment": [ + "description": "The status of an attachment evaluation.", + "computed": true + }, { - "name": "profile_id", + "name": "name", "type": "TypeString", - "description": "The profile ID.", + "description": "The name of the attachment.", + "computed": true + }, + { + "name": "attachment_id", + "type": "TypeString", + "description": "The attachment ID.", "required": true }, + { + "name": "created_by", + "type": "TypeString", + "description": "The user who created the attachment.", + "computed": true + }, { "name": "instance_id", "type": "TypeString", @@ -69563,9 +70913,9 @@ "required": true }, { - "name": "updated_by", + "name": "updated_on", "type": "TypeString", - "description": "The user who updated the attachment.", + "description": "The date when the attachment was updated.", "computed": true }, { @@ -69613,73 +70963,53 @@ } }, { - "name": "attachment_item_id", - "type": "TypeString", - "description": "The ID of the attachment.", - "computed": true - }, - { - "name": "created_on", - "type": "TypeString", - "description": "The date when the attachment was created.", - "computed": true - }, - { - "name": "schedule", + "name": "profile_id", "type": "TypeString", - "description": "The schedule of an attachment evaluation.", - "computed": true + "description": "The profile ID.", + "required": true }, { - "name": "next_scan_time", + "name": "account_id", "type": "TypeString", - "description": "The start time of the next scan.", + "description": "The account ID that is associated to the attachment.", "computed": true }, { - "name": "scope", + "name": "last_scan", "type": "TypeList", - "description": "The scope payload for the multi cloud feature.", + "description": "The details of the last scan of an attachment.", "computed": true, "elem": { - "environment": { - "name": "environment", + "id": { + "name": "id", "type": "TypeString", - "description": "The environment that relates to this scope.", + "description": "The ID of the last scan of an attachment.", "computed": true }, - "properties": { - "name": "properties", - "type": "TypeList", - "description": "The properties supported for scoping by this environment.", - "computed": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "The name of the property.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "The value of the property.", - "computed": true - } - } + "status": { + "name": "status", + "type": "TypeString", + "description": "The status of the last scan of an attachment.", + "computed": true + }, + "time": { + "name": "time", + "type": "TypeString", + "description": "The time when the last scan started.", + "computed": true } } }, { - "name": "created_by", + "name": "description", "type": "TypeString", - "description": "The user who created the attachment.", + "description": "The description for the attachment.", "computed": true }, { - "name": "updated_on", + "name": "updated_by", "type": "TypeString", - "description": "The date when the attachment was updated.", + "description": "The user who updated the attachment.", "computed": true }, { @@ -69718,90 +71048,43 @@ "computed": true } } - }, + } + ], + "ibm_scc_provider_type": [ { - "name": "description", + "name": "id", "type": "TypeString", - "description": "The description for the attachment.", + "description": "The unique identifier of the provider type.", "computed": true }, { - "name": "attachment_id", - "type": "TypeString", - "description": "The attachment ID.", - "required": true - }, - { - "name": "account_id", + "name": "mode", "type": "TypeString", - "description": "The account ID that is associated to the attachment.", + "description": "The mode that is used to get results from provider (`PUSH` or `PULL`).", "computed": true }, { - "name": "status", + "name": "data_type", "type": "TypeString", - "description": "The status of an attachment evaluation.", + "description": "The format of the results that a provider supports.", "computed": true }, { - "name": "last_scan", - "type": "TypeList", - "description": "The details of the last scan of an attachment.", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "The ID of the last scan of an attachment.", - "computed": true - }, - "status": { - "name": "status", - "type": "TypeString", - "description": "The status of the last scan of an attachment.", - "computed": true - }, - "time": { - "name": "time", - "type": "TypeString", - "description": "The time when the last scan started.", - "computed": true - } - } - }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the attachment.", - "computed": true - } - ], - "ibm_scc_provider_type": [ - { - "name": "icon", + "name": "provider_type_id", "type": "TypeString", - "description": "The icon of a provider in .svg format that is encoded as a base64 string.", - "computed": true - }, - { - "name": "attributes", - "type": "TypeMap", - "description": "The attributes that are required when you're creating an instance of a provider type. The attributes field can have multiple keys in its value. Each of those keys has a value object that includes the type, and display name as keys. For example, `{type:\"\", display_name:\"\"}`. **NOTE;** If the provider type is s2s-enabled, which means that if the `s2s_enabled` field is set to `true`, then a CRN field of type text is required in the attributes value object.", - "computed": true, - "elem": { - "type": "TypeString" - } + "description": "The provider type ID.", + "required": true }, { - "name": "updated_at", + "name": "name", "type": "TypeString", - "description": "Time at which resource was updated.", + "description": "The name of the provider type.", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The name of the provider type.", + "name": "instance_limit", + "type": "TypeInt", + "description": "The maximum number of instances that can be created for the provider type.", "computed": true }, { @@ -69825,41 +71108,23 @@ } }, { - "name": "id", - "type": "TypeString", - "description": "The unique identifier of the provider type.", - "computed": true - }, - { - "name": "type", + "name": "created_at", "type": "TypeString", - "description": "The type of the provider type.", - "computed": true - }, - { - "name": "s2s_enabled", - "type": "TypeBool", - "description": "A boolean that indicates whether the provider type is s2s-enabled.", + "description": "Time at which resource was created.", "computed": true }, { - "name": "mode", + "name": "updated_at", "type": "TypeString", - "description": "The mode that is used to get results from provider (`PUSH` or `PULL`).", + "description": "Time at which resource was updated.", "computed": true }, { - "name": "created_at", + "name": "type", "type": "TypeString", - "description": "Time at which resource was created.", + "description": "The type of the provider type.", "computed": true }, - { - "name": "provider_type_id", - "type": "TypeString", - "description": "The provider type ID.", - "required": true - }, { "name": "description", "type": "TypeString", @@ -69867,16 +71132,25 @@ "computed": true }, { - "name": "instance_limit", - "type": "TypeInt", - "description": "The maximum number of instances that can be created for the provider type.", + "name": "s2s_enabled", + "type": "TypeBool", + "description": "A boolean that indicates whether the provider type is s2s-enabled.", "computed": true }, { - "name": "data_type", + "name": "icon", "type": "TypeString", - "description": "The format of the results that a provider supports.", + "description": "The icon of a provider in .svg format that is encoded as a base64 string.", "computed": true + }, + { + "name": "attributes", + "type": "TypeMap", + "description": "The attributes that are required when you're creating an instance of a provider type. The attributes field can have multiple keys in its value. Each of those keys has a value object that includes the type, and display name as keys. For example, `{type:\"\", display_name:\"\"}`. **NOTE;** If the provider type is s2s-enabled, which means that if the `s2s_enabled` field is set to `true`, then a CRN field of type text is required in the attributes value object.", + "computed": true, + "elem": { + "type": "TypeString" + } } ], "ibm_scc_provider_type_collection": [ @@ -69985,23 +71259,6 @@ } ], "ibm_scc_provider_type_instance": [ - { - "name": "attributes", - "type": "TypeMap", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Time at which resource was updated.", - "computed": true - }, - { - "name": "provider_type_id", - "type": "TypeString", - "description": "The provider type ID.", - "required": true - }, { "name": "provider_type_instance_id", "type": "TypeString", @@ -70015,10 +71272,10 @@ "computed": true }, { - "name": "type", + "name": "provider_type_id", "type": "TypeString", - "description": "The type of the provider type.", - "computed": true + "description": "The provider type ID.", + "required": true }, { "name": "name", @@ -70026,12 +71283,23 @@ "description": "The name of the provider type instance.", "computed": true }, + { + "name": "attributes", + "type": "TypeMap", + "computed": true + }, { "name": "created_at", "type": "TypeString", "description": "Time at which resource was created.", "computed": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Time at which resource was updated.", + "computed": true + }, { "name": "instance_id", "type": "TypeString", @@ -70039,23 +71307,21 @@ "cloud_data_type": "resource_instance", "immutable": true, "required": true + }, + { + "name": "type", + "type": "TypeString", + "description": "The type of the provider type.", + "computed": true } ], "ibm_scc_report": [ { - "name": "cos_object", + "name": "scan_time", "type": "TypeString", - "description": "The Cloud Object Storage object that is associated with the report.", + "description": "The date when the scan was run.", "computed": true }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Security and Compliance Center instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, { "name": "account", "type": "TypeList", @@ -70082,32 +71348,6 @@ } } }, - { - "name": "profile", - "type": "TypeList", - "description": "The profile information.", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "The profile ID.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The profile name.", - "computed": true - }, - "version": { - "name": "version", - "type": "TypeString", - "description": "The profile version.", - "computed": true - } - } - }, { "name": "attachment", "type": "TypeList", @@ -70180,6 +71420,12 @@ } } }, + { + "name": "id", + "type": "TypeString", + "description": "The ID of the report.", + "computed": true + }, { "name": "group_id", "type": "TypeString", @@ -70193,10 +71439,38 @@ "computed": true }, { - "name": "scan_time", + "name": "instance_id", "type": "TypeString", - "description": "The date when the scan was run.", - "computed": true + "description": "The ID of the Security and Compliance Center instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, + { + "name": "profile", + "type": "TypeList", + "description": "The profile information.", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "The profile ID.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The profile name.", + "computed": true + }, + "version": { + "name": "version", + "type": "TypeString", + "description": "The profile version.", + "computed": true + } + } }, { "name": "report_id", @@ -70205,31 +71479,61 @@ "required": true }, { - "name": "id", + "name": "type", "type": "TypeString", - "description": "The ID of the report.", + "description": "The type of the scan.", "computed": true }, { - "name": "type", + "name": "cos_object", "type": "TypeString", - "description": "The type of the scan.", + "description": "The Cloud Object Storage object that is associated with the report.", "computed": true } ], "ibm_scc_report_controls": [ { - "name": "control_category", + "name": "not_compliant_count", + "type": "TypeInt", + "description": "The number of checks that are not compliant.", + "computed": true + }, + { + "name": "unable_to_perform_count", + "type": "TypeInt", + "description": "The number of checks that are unable to perform.", + "computed": true + }, + { + "name": "control_name", "type": "TypeString", - "description": "A control category value.", + "description": "The name of the control.", "optional": true }, { - "name": "total_count", + "name": "control_description", + "type": "TypeString", + "description": "The description of the control.", + "optional": true + }, + { + "name": "compliant_count", "type": "TypeInt", - "description": "The total number of checks.", + "description": "The number of compliant checks.", "computed": true }, + { + "name": "report_id", + "type": "TypeString", + "description": "The ID of the scan that is associated with a report.", + "required": true + }, + { + "name": "control_category", + "type": "TypeString", + "description": "A control category value.", + "optional": true + }, { "name": "controls", "type": "TypeList", @@ -70460,36 +71764,6 @@ } } }, - { - "name": "report_id", - "type": "TypeString", - "description": "The ID of the scan that is associated with a report.", - "required": true - }, - { - "name": "control_name", - "type": "TypeString", - "description": "The name of the control.", - "optional": true - }, - { - "name": "control_description", - "type": "TypeString", - "description": "The description of the control.", - "optional": true - }, - { - "name": "control_id", - "type": "TypeString", - "description": "The ID of the control.", - "optional": true - }, - { - "name": "not_compliant_count", - "type": "TypeInt", - "description": "The number of checks that are not compliant.", - "computed": true - }, { "name": "home_account_id", "type": "TypeString", @@ -70505,21 +71779,9 @@ "required": true }, { - "name": "status", - "type": "TypeString", - "description": "The compliance status value.", - "optional": true - }, - { - "name": "compliant_count", - "type": "TypeInt", - "description": "The number of compliant checks.", - "computed": true - }, - { - "name": "unable_to_perform_count", + "name": "total_count", "type": "TypeInt", - "description": "The number of checks that are unable to perform.", + "description": "The total number of checks.", "computed": true }, { @@ -70528,6 +71790,18 @@ "description": "The number of checks that require a user evaluation.", "computed": true }, + { + "name": "control_id", + "type": "TypeString", + "description": "The ID of the control.", + "optional": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The compliance status value.", + "optional": true + }, { "name": "sort", "type": "TypeString", @@ -70536,12 +71810,6 @@ } ], "ibm_scc_report_evaluations": [ - { - "name": "assessment_id", - "type": "TypeString", - "description": "The ID of the assessment.", - "optional": true - }, { "name": "component_id", "type": "TypeString", @@ -70560,20 +71828,6 @@ "description": "The evaluation status value.", "optional": true }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Security and Compliance Center instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "report_id", - "type": "TypeString", - "description": "The ID of the scan that is associated with a report.", - "required": true - }, { "name": "first", "type": "TypeList", @@ -70798,6 +72052,26 @@ } } }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Security and Compliance Center instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, + { + "name": "report_id", + "type": "TypeString", + "description": "The ID of the scan that is associated with a report.", + "required": true + }, + { + "name": "assessment_id", + "type": "TypeString", + "description": "The ID of the assessment.", + "optional": true + }, { "name": "target_name", "type": "TypeString", @@ -70807,18 +72081,16 @@ ], "ibm_scc_report_resources": [ { - "name": "first", - "type": "TypeList", - "description": "The page reference.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for the first and next page.", - "computed": true - } - } + "name": "account_id", + "type": "TypeString", + "description": "The ID of the account owning a resource.", + "optional": true + }, + { + "name": "sort", + "type": "TypeString", + "description": "This field sorts resources by using a valid sort field. To learn more, see [Sorting](https://cloud.ibm.com/docs/api-handbook?topic=api-handbook-sorting).", + "optional": true }, { "name": "resources", @@ -70920,6 +72192,14 @@ } } }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Security and Compliance Center instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, { "name": "resource_name", "type": "TypeString", @@ -70932,12 +72212,6 @@ "description": "The ID of the resource.", "optional": true }, - { - "name": "account_id", - "type": "TypeString", - "description": "The ID of the account owning a resource.", - "optional": true - }, { "name": "component_id", "type": "TypeString", @@ -70951,10 +72225,18 @@ "optional": true }, { - "name": "sort", - "type": "TypeString", - "description": "This field sorts resources by using a valid sort field. To learn more, see [Sorting](https://cloud.ibm.com/docs/api-handbook?topic=api-handbook-sorting).", - "optional": true + "name": "first", + "type": "TypeList", + "description": "The page reference.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for the first and next page.", + "computed": true + } + } }, { "name": "home_account_id", @@ -70962,14 +72244,6 @@ "description": "The ID of the home account.", "computed": true }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Security and Compliance Center instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, { "name": "report_id", "type": "TypeString", @@ -70978,24 +72252,6 @@ } ], "ibm_scc_report_rule": [ - { - "name": "updated_by", - "type": "TypeString", - "description": "The ID of the user who updated the rule.", - "computed": true - }, - { - "name": "report_id", - "type": "TypeString", - "description": "The ID of the scan that is associated with a report.", - "required": true - }, - { - "name": "id", - "type": "TypeString", - "description": "The rule ID.", - "computed": true - }, { "name": "type", "type": "TypeString", @@ -71015,9 +72271,9 @@ "computed": true }, { - "name": "updated_on", + "name": "updated_by", "type": "TypeString", - "description": "The date when the rule was updated.", + "description": "The ID of the user who updated the rule.", "computed": true }, { @@ -71037,6 +72293,12 @@ "immutable": true, "required": true }, + { + "name": "id", + "type": "TypeString", + "description": "The rule ID.", + "computed": true + }, { "name": "rule_id", "type": "TypeString", @@ -71060,161 +72322,21 @@ "type": "TypeString", "description": "The date when the rule was created.", "computed": true - } - ], - "ibm_scc_report_summary": [ - { - "name": "report_id", - "type": "TypeString", - "description": "The ID of the scan that is associated with a report.", - "required": true }, { - "name": "isntance_id", + "name": "updated_on", "type": "TypeString", - "description": "Instance ID.", + "description": "The date when the rule was updated.", "computed": true }, { - "name": "account", - "type": "TypeList", - "description": "The account that is associated with a report.", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "The account ID.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The account name.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The account type.", - "computed": true - } - } - }, - { - "name": "score", - "type": "TypeList", - "description": "The compliance score.", - "computed": true, - "elem": { - "passed": { - "name": "passed", - "type": "TypeInt", - "description": "The number of successful evaluations.", - "computed": true - }, - "percent": { - "name": "percent", - "type": "TypeInt", - "description": "The percentage of successful evaluations.", - "computed": true - }, - "total_count": { - "name": "total_count", - "type": "TypeInt", - "description": "The total number of evaluations.", - "computed": true - } - } - }, - { - "name": "controls", - "type": "TypeList", - "description": "The compliance stats.", - "computed": true, - "elem": { - "compliant_count": { - "name": "compliant_count", - "type": "TypeInt", - "description": "The number of compliant checks.", - "computed": true - }, - "not_compliant_count": { - "name": "not_compliant_count", - "type": "TypeInt", - "description": "The number of checks that are not compliant.", - "computed": true - }, - "status": { - "name": "status", - "type": "TypeString", - "description": "The allowed values of an aggregated status for controls, specifications, assessments, and resources.", - "computed": true - }, - "total_count": { - "name": "total_count", - "type": "TypeInt", - "description": "The total number of checks.", - "computed": true - }, - "unable_to_perform_count": { - "name": "unable_to_perform_count", - "type": "TypeInt", - "description": "The number of checks that are unable to perform.", - "computed": true - }, - "user_evaluation_required_count": { - "name": "user_evaluation_required_count", - "type": "TypeInt", - "description": "The number of checks that require a user evaluation.", - "computed": true - } - } - }, - { - "name": "evaluations", - "type": "TypeList", - "description": "The evaluation stats.", - "computed": true, - "elem": { - "completed_count": { - "name": "completed_count", - "type": "TypeInt", - "description": "The total number of completed evaluations.", - "computed": true - }, - "error_count": { - "name": "error_count", - "type": "TypeInt", - "description": "The number of evaluations that started, but did not finish, and ended with errors.", - "computed": true - }, - "failure_count": { - "name": "failure_count", - "type": "TypeInt", - "description": "The number of failed evaluations.", - "computed": true - }, - "pass_count": { - "name": "pass_count", - "type": "TypeInt", - "description": "The number of passed evaluations.", - "computed": true - }, - "status": { - "name": "status", - "type": "TypeString", - "description": "The allowed values of an aggregated status for controls, specifications, assessments, and resources.", - "computed": true - }, - "total_count": { - "name": "total_count", - "type": "TypeInt", - "description": "The total number of evaluations.", - "computed": true - } - } - }, + "name": "report_id", + "type": "TypeString", + "description": "The ID of the scan that is associated with a report.", + "required": true + } + ], + "ibm_scc_report_summary": [ { "name": "resources", "type": "TypeList", @@ -71369,6 +72491,158 @@ "cloud_data_type": "resource_instance", "immutable": true, "required": true + }, + { + "name": "report_id", + "type": "TypeString", + "description": "The ID of the scan that is associated with a report.", + "required": true + }, + { + "name": "isntance_id", + "type": "TypeString", + "description": "Instance ID.", + "computed": true + }, + { + "name": "account", + "type": "TypeList", + "description": "The account that is associated with a report.", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "The account ID.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The account name.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The account type.", + "computed": true + } + } + }, + { + "name": "score", + "type": "TypeList", + "description": "The compliance score.", + "computed": true, + "elem": { + "passed": { + "name": "passed", + "type": "TypeInt", + "description": "The number of successful evaluations.", + "computed": true + }, + "percent": { + "name": "percent", + "type": "TypeInt", + "description": "The percentage of successful evaluations.", + "computed": true + }, + "total_count": { + "name": "total_count", + "type": "TypeInt", + "description": "The total number of evaluations.", + "computed": true + } + } + }, + { + "name": "controls", + "type": "TypeList", + "description": "The compliance stats.", + "computed": true, + "elem": { + "compliant_count": { + "name": "compliant_count", + "type": "TypeInt", + "description": "The number of compliant checks.", + "computed": true + }, + "not_compliant_count": { + "name": "not_compliant_count", + "type": "TypeInt", + "description": "The number of checks that are not compliant.", + "computed": true + }, + "status": { + "name": "status", + "type": "TypeString", + "description": "The allowed values of an aggregated status for controls, specifications, assessments, and resources.", + "computed": true + }, + "total_count": { + "name": "total_count", + "type": "TypeInt", + "description": "The total number of checks.", + "computed": true + }, + "unable_to_perform_count": { + "name": "unable_to_perform_count", + "type": "TypeInt", + "description": "The number of checks that are unable to perform.", + "computed": true + }, + "user_evaluation_required_count": { + "name": "user_evaluation_required_count", + "type": "TypeInt", + "description": "The number of checks that require a user evaluation.", + "computed": true + } + } + }, + { + "name": "evaluations", + "type": "TypeList", + "description": "The evaluation stats.", + "computed": true, + "elem": { + "completed_count": { + "name": "completed_count", + "type": "TypeInt", + "description": "The total number of completed evaluations.", + "computed": true + }, + "error_count": { + "name": "error_count", + "type": "TypeInt", + "description": "The number of evaluations that started, but did not finish, and ended with errors.", + "computed": true + }, + "failure_count": { + "name": "failure_count", + "type": "TypeInt", + "description": "The number of failed evaluations.", + "computed": true + }, + "pass_count": { + "name": "pass_count", + "type": "TypeInt", + "description": "The number of passed evaluations.", + "computed": true + }, + "status": { + "name": "status", + "type": "TypeString", + "description": "The allowed values of an aggregated status for controls, specifications, assessments, and resources.", + "computed": true + }, + "total_count": { + "name": "total_count", + "type": "TypeInt", + "description": "The total number of evaluations.", + "computed": true + } + } } ], "ibm_scc_report_tags": [ @@ -71424,13 +72698,6 @@ } ], "ibm_scc_report_violation_drift": [ - { - "name": "scan_time_duration", - "type": "TypeInt", - "description": "The duration of the `scan_time` timestamp in number of days.", - "default_value": 0, - "optional": true - }, { "name": "home_account_id", "type": "TypeString", @@ -71520,49 +72787,16 @@ "type": "TypeString", "description": "The ID of the scan that is associated with a report.", "required": true + }, + { + "name": "scan_time_duration", + "type": "TypeInt", + "description": "The duration of the `scan_time` timestamp in number of days.", + "default_value": 0, + "optional": true } ], "ibm_scc_rule": [ - { - "name": "import", - "type": "TypeList", - "description": "The collection of import parameters.", - "computed": true, - "elem": { - "parameters": { - "name": "parameters", - "type": "TypeList", - "description": "The list of import parameters.", - "computed": true, - "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "The propery description.", - "computed": true - }, - "display_name": { - "name": "display_name", - "type": "TypeString", - "description": "The display name of the property.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The import parameter name.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The property type.", - "computed": true - } - } - } - } - }, { "name": "required_config", "type": "TypeList", @@ -71787,32 +73021,6 @@ } } }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Security and Compliance Center instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "updated_on", - "type": "TypeString", - "description": "The date when the rule was modified.", - "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "The details of a rule's response.", - "computed": true - }, - { - "name": "type", - "type": "TypeString", - "description": "The rule type (allowable values are `user_defined` or `system_defined`).", - "computed": true - }, { "name": "labels", "type": "TypeList", @@ -71823,27 +73031,9 @@ } }, { - "name": "rule_id", - "type": "TypeString", - "description": "The ID of the corresponding rule.", - "required": true - }, - { - "name": "updated_by", - "type": "TypeString", - "description": "The user who modified the rule.", - "computed": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "The user who created the rule.", - "computed": true - }, - { - "name": "account_id", + "name": "updated_on", "type": "TypeString", - "description": "The account ID.", + "description": "The date when the rule was modified.", "computed": true }, { @@ -71852,6 +73042,46 @@ "description": "The version number of a rule.", "computed": true }, + { + "name": "import", + "type": "TypeList", + "description": "The collection of import parameters.", + "computed": true, + "elem": { + "parameters": { + "name": "parameters", + "type": "TypeList", + "description": "The list of import parameters.", + "computed": true, + "elem": { + "description": { + "name": "description", + "type": "TypeString", + "description": "The propery description.", + "computed": true + }, + "display_name": { + "name": "display_name", + "type": "TypeString", + "description": "The display name of the property.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The import parameter name.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The property type.", + "computed": true + } + } + } + } + }, { "name": "target", "type": "TypeList", @@ -71904,17 +73134,61 @@ } } }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Security and Compliance Center instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, + { + "name": "rule_id", + "type": "TypeString", + "description": "The ID of the corresponding rule.", + "required": true + }, { "name": "created_on", "type": "TypeString", "description": "The date when the rule was created.", "computed": true }, + { + "name": "created_by", + "type": "TypeString", + "description": "The user who created the rule.", + "computed": true + }, + { + "name": "updated_by", + "type": "TypeString", + "description": "The user who modified the rule.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The details of a rule's response.", + "computed": true + }, { "name": "id", "type": "TypeString", "description": "The rule ID.", "computed": true + }, + { + "name": "account_id", + "type": "TypeString", + "description": "The account ID.", + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "The rule type (allowable values are `user_defined` or `system_defined`).", + "computed": true } ], "ibm_schematics_action": [ @@ -71929,59 +73203,27 @@ } }, { - "name": "user_state", - "type": "TypeList", - "description": "User defined status of the Schematics object.", - "computed": true, - "elem": { - "set_at": { - "name": "set_at", - "type": "TypeString", - "description": "When the User who set the state of the Object.", - "computed": true - }, - "set_by": { - "name": "set_by", - "type": "TypeString", - "description": "Name of the User who set the state of the Object.", - "computed": true - }, - "state": { - "name": "state", - "type": "TypeString", - "description": "User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution.", - "computed": true - } - } - }, - { - "name": "source_created_at", + "name": "inventory", "type": "TypeString", - "description": "Action Playbook Source creation time.", + "description": "Target inventory record ID, used by the action or ansible playbook.", "computed": true }, { - "name": "action_id", - "type": "TypeString", - "description": "Action Id. Use GET /actions API to look up the Action Ids in your IBM Cloud account.", - "required": true - }, - { - "name": "name", + "name": "id", "type": "TypeString", - "description": "The unique name of your action. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores. **Example** you can use the name to stop action.", + "description": "Action ID.", "computed": true }, { - "name": "source_readme_url", + "name": "created_by", "type": "TypeString", - "description": "URL of the `README` file, for the source URL.", + "description": "E-mail address of the user who created an action.", "computed": true }, { - "name": "settings", + "name": "bastion_credential", "type": "TypeList", - "description": "Environment variables for the Action.", + "description": "User editable variable data \u0026 system generated reference to value.", "computed": true, "elem": { "link": { @@ -72115,45 +73357,9 @@ } }, { - "name": "source_created_by", - "type": "TypeString", - "description": "E-mail address of user who created the Action Playbook Source.", - "computed": true - }, - { - "name": "source_type", - "type": "TypeString", - "description": "Type of source for the Template.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "Action creation time.", - "computed": true - }, - { - "name": "updated_by", - "type": "TypeString", - "description": "E-mail address of the user who updated an action.", - "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Action description.", - "computed": true - }, - { - "name": "command_parameter", - "type": "TypeString", - "description": "Schematics job command parameter (playbook-name).", - "computed": true - }, - { - "name": "bastion_credential", + "name": "action_inputs", "type": "TypeList", - "description": "User editable variable data \u0026 system generated reference to value.", + "description": "Input variables for the Action.", "computed": true, "elem": { "link": { @@ -72286,12 +73492,6 @@ } } }, - { - "name": "account", - "type": "TypeString", - "description": "Action account ID.", - "computed": true - }, { "name": "source_updated_by", "type": "TypeString", @@ -72299,42 +73499,49 @@ "computed": true }, { - "name": "created_by", + "name": "source_updated_at", "type": "TypeString", - "description": "E-mail address of the user who created an action.", + "description": "The action playbook updation time.", "computed": true }, { - "name": "sys_lock", + "name": "state", "type": "TypeList", - "description": "System lock status.", + "description": "Computed state of the Action.", "computed": true, "elem": { - "sys_locked": { - "name": "sys_locked", - "type": "TypeBool", - "description": "Is the automation locked by a Schematic job ?.", + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of automation (workspace or action).", "computed": true }, - "sys_locked_at": { - "name": "sys_locked_at", + "status_job_id": { + "name": "status_job_id", "type": "TypeString", - "description": "When the User performed the job that lead to locking of the automation ?.", + "description": "Job id reference for this status.", "computed": true }, - "sys_locked_by": { - "name": "sys_locked_by", + "status_message": { + "name": "status_message", "type": "TypeString", - "description": "Name of the User who performed the job, that lead to the locking of the automation.", + "description": "Automation status message - to be displayed along with the status_code.", "computed": true } } }, { - "name": "resource_group", + "name": "name", "type": "TypeString", - "description": "Resource-group name for an action. By default, action is created in default resource group.", - "cloud_data_type": "resource_group", + "description": "The unique name of your action. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores. **Example** you can use the name to stop action.", + "computed": true + }, + { + "name": "location", + "type": "TypeString", + "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "cloud_data_type": "region", + "optional": true, "computed": true }, { @@ -72429,41 +73636,113 @@ } }, { - "name": "updated_at", + "name": "crn", "type": "TypeString", - "description": "Action updation time.", + "description": "Action Cloud Resource Name.", + "cloud_data_type": "crn", "computed": true }, { - "name": "state", + "name": "source_created_by", + "type": "TypeString", + "description": "E-mail address of user who created the Action Playbook Source.", + "computed": true + }, + { + "name": "action_id", + "type": "TypeString", + "description": "Action Id. Use GET /actions API to look up the Action Ids in your IBM Cloud account.", + "required": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "Action creation time.", + "computed": true + }, + { + "name": "playbook_names", "type": "TypeList", - "description": "Computed state of the Action.", + "description": "Playbook names retrieved from the respository.", "computed": true, "elem": { - "status_code": { - "name": "status_code", + "type": "TypeString" + } + }, + { + "name": "source_readme_url", + "type": "TypeString", + "description": "URL of the `README` file, for the source URL.", + "computed": true + }, + { + "name": "bastion", + "type": "TypeList", + "description": "Describes a bastion resource.", + "computed": true, + "elem": { + "host": { + "name": "host", "type": "TypeString", - "description": "Status of automation (workspace or action).", + "description": "Reference to the Inventory resource definition.", "computed": true }, - "status_job_id": { - "name": "status_job_id", + "name": { + "name": "name", "type": "TypeString", - "description": "Job id reference for this status.", + "description": "Bastion Name(Unique).", + "computed": true + } + } + }, + { + "name": "targets_ini", + "type": "TypeString", + "description": "Inventory of host and host group for the playbook in `INI` file format. For example, `\"targets_ini\": \"[webserverhost] 172.22.192.6 [dbhost] 172.22.192.5\"`. For more information, about an inventory host group syntax, see [Inventory host groups](https://cloud.ibm.com/docs/schematics?topic=schematics-schematics-cli-reference#schematics-inventory-host-grps).", + "computed": true + }, + { + "name": "account", + "type": "TypeString", + "description": "Action account ID.", + "computed": true + }, + { + "name": "user_state", + "type": "TypeList", + "description": "User defined status of the Schematics object.", + "computed": true, + "elem": { + "set_at": { + "name": "set_at", + "type": "TypeString", + "description": "When the User who set the state of the Object.", "computed": true }, - "status_message": { - "name": "status_message", + "set_by": { + "name": "set_by", "type": "TypeString", - "description": "Automation status message - to be displayed along with the status_code.", + "description": "Name of the User who set the state of the Object.", + "computed": true + }, + "state": { + "name": "state", + "type": "TypeString", + "description": "User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution.", "computed": true } } }, { - "name": "action_inputs", + "name": "command_parameter", + "type": "TypeString", + "description": "Schematics job command parameter (playbook-name).", + "computed": true + }, + { + "name": "settings", "type": "TypeList", - "description": "Input variables for the Action.", + "description": "Environment variables for the Action.", "computed": true, "elem": { "link": { @@ -72596,6 +73875,177 @@ } } }, + { + "name": "updated_by", + "type": "TypeString", + "description": "E-mail address of the user who updated an action.", + "computed": true + }, + { + "name": "sys_lock", + "type": "TypeList", + "description": "System lock status.", + "computed": true, + "elem": { + "sys_locked": { + "name": "sys_locked", + "type": "TypeBool", + "description": "Is the automation locked by a Schematic job ?.", + "computed": true + }, + "sys_locked_at": { + "name": "sys_locked_at", + "type": "TypeString", + "description": "When the User performed the job that lead to locking of the automation ?.", + "computed": true + }, + "sys_locked_by": { + "name": "sys_locked_by", + "type": "TypeString", + "description": "Name of the User who performed the job, that lead to the locking of the automation.", + "computed": true + } + } + }, + { + "name": "source_created_at", + "type": "TypeString", + "description": "Action Playbook Source creation time.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Action updation time.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Action description.", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource-group name for an action. By default, action is created in default resource group.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "source", + "type": "TypeList", + "description": "Source of templates, playbooks, or controls.", + "computed": true, + "elem": { + "catalog": { + "name": "catalog", + "type": "TypeList", + "description": "Connection details to IBM Cloud Catalog source.", + "computed": true, + "elem": { + "catalog_name": { + "name": "catalog_name", + "type": "TypeString", + "description": "name of the private catalog.", + "computed": true + }, + "offering_id": { + "name": "offering_id", + "type": "TypeString", + "description": "Id of the offering the IBM Catalog.", + "computed": true + }, + "offering_kind": { + "name": "offering_kind", + "type": "TypeString", + "description": "Type of the offering, in the IBM Catalog.", + "computed": true + }, + "offering_name": { + "name": "offering_name", + "type": "TypeString", + "description": "Name of the offering in the IBM Catalog.", + "computed": true + }, + "offering_repo_url": { + "name": "offering_repo_url", + "type": "TypeString", + "description": "Repo Url of the offering, in the IBM Catalog.", + "computed": true + }, + "offering_version": { + "name": "offering_version", + "type": "TypeString", + "description": "Version string of the offering in the IBM Catalog.", + "computed": true + }, + "offering_version_id": { + "name": "offering_version_id", + "type": "TypeString", + "description": "Id of the offering version the IBM Catalog.", + "computed": true + } + } + }, + "git": { + "name": "git", + "type": "TypeList", + "description": "Connection details to Git source.", + "computed": true, + "elem": { + "computed_git_repo_url": { + "name": "computed_git_repo_url", + "type": "TypeString", + "description": "The Complete URL which is computed by git_repo_url, git_repo_folder and branch.", + "computed": true + }, + "git_branch": { + "name": "git_branch", + "type": "TypeString", + "description": "Name of the branch, used to fetch the Git Repo.", + "computed": true + }, + "git_release": { + "name": "git_release", + "type": "TypeString", + "description": "Name of the release tag, used to fetch the Git Repo.", + "computed": true + }, + "git_repo_folder": { + "name": "git_repo_folder", + "type": "TypeString", + "description": "Name of the folder in the Git Repo, that contains the template.", + "computed": true + }, + "git_repo_url": { + "name": "git_repo_url", + "type": "TypeString", + "description": "URL to the GIT Repo that can be used to clone the template.", + "computed": true + }, + "git_token": { + "name": "git_token", + "type": "TypeString", + "description": "Personal Access Token to connect to Git URLs.", + "computed": true + } + } + }, + "source_type": { + "name": "source_type", + "type": "TypeString", + "description": "Type of source for the Template.", + "computed": true + } + } + }, + { + "name": "source_type", + "type": "TypeString", + "description": "Type of source for the Template.", + "computed": true + }, { "name": "action_outputs", "type": "TypeList", @@ -72731,858 +74181,1330 @@ "computed": true } } + } + ], + "ibm_schematics_agent": [ + { + "name": "created_at", + "type": "TypeString", + "description": "The agent creation date-time.", + "computed": true }, { - "name": "crn", + "name": "updated_at", "type": "TypeString", - "description": "Action Cloud Resource Name.", - "cloud_data_type": "crn", + "description": "The agent registration updation time.", "computed": true }, { - "name": "source", + "name": "recent_prs_job", "type": "TypeList", - "description": "Source of templates, playbooks, or controls.", + "description": "Run a pre-requisite scanner for deploying agent.", "computed": true, "elem": { - "catalog": { - "name": "catalog", + "agent_id": { + "name": "agent_id", + "type": "TypeString", + "description": "Id of the agent.", + "computed": true + }, + "agent_version": { + "name": "agent_version", + "type": "TypeString", + "description": "Agent version.", + "computed": true + }, + "job_id": { + "name": "job_id", + "type": "TypeString", + "description": "Job Id.", + "computed": true + }, + "log_url": { + "name": "log_url", + "type": "TypeString", + "description": "URL to the full pre-requisite scanner job logs.", + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Final result of the pre-requisite scanner job.", + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "The outcome of the pre-requisite scanner job, in a formatted log string.", + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "The agent prs job updation time.", + "computed": true + }, + "updated_by": { + "name": "updated_by", + "type": "TypeString", + "description": "Email address of user who ran the agent prs job.", + "computed": true + } + } + }, + { + "name": "version", + "type": "TypeString", + "description": "Agent version.", + "computed": true + }, + { + "name": "agent_crn", + "type": "TypeString", + "description": "The agent crn, obtained from the Schematics agent deployment configuration.", + "computed": true + }, + { + "name": "id", + "type": "TypeString", + "description": "The agent resource id.", + "computed": true + }, + { + "name": "updated_by", + "type": "TypeString", + "description": "Email address of user who updated the agent registration.", + "computed": true + }, + { + "name": "system_state", + "type": "TypeList", + "description": "Computed state of the agent.", + "computed": true, + "elem": { + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Agent Status.", + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "The agent status message.", + "computed": true + } + } + }, + { + "name": "recent_health_job", + "type": "TypeList", + "description": "Agent health check.", + "computed": true, + "elem": { + "agent_id": { + "name": "agent_id", + "type": "TypeString", + "description": "Id of the agent.", + "computed": true + }, + "agent_version": { + "name": "agent_version", + "type": "TypeString", + "description": "Agent version.", + "computed": true + }, + "job_id": { + "name": "job_id", + "type": "TypeString", + "description": "Job Id.", + "computed": true + }, + "log_url": { + "name": "log_url", + "type": "TypeString", + "description": "URL to the full health-check job logs.", + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Final result of the health-check job.", + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "The outcome of the health-check job, in a formatted log string.", + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "The agent health check job updation time.", + "computed": true + }, + "updated_by": { + "name": "updated_by", + "type": "TypeString", + "description": "Email address of user who ran the agent health check job.", + "computed": true + } + } + }, + { + "name": "tags", + "type": "TypeList", + "description": "Tags for the agent.", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "agent_metadata", + "type": "TypeList", + "description": "The metadata of an agent.", + "computed": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the metadata.", + "computed": true + }, + "value": { + "name": "value", "type": "TypeList", - "description": "Connection details to IBM Cloud Catalog source.", + "description": "Value of the metadata name.", "computed": true, "elem": { - "catalog_name": { - "name": "catalog_name", + "type": "TypeString" + } + } + } + }, + { + "name": "user_state", + "type": "TypeList", + "description": "User defined status of the agent.", + "computed": true, + "elem": { + "set_at": { + "name": "set_at", + "type": "TypeString", + "description": "When the User who set the state of the Object.", + "computed": true + }, + "set_by": { + "name": "set_by", + "type": "TypeString", + "description": "Name of the User who set the state of the Object.", + "computed": true + }, + "state": { + "name": "state", + "type": "TypeString", + "description": "User-defined states * `enable` Agent is enabled by the user. * `disable` Agent is disbaled by the user.", + "computed": true + } + } + }, + { + "name": "agent_kpi", + "type": "TypeList", + "description": "Schematics Agent key performance indicators.", + "computed": true, + "elem": { + "application_indicators": { + "name": "application_indicators", + "type": "TypeList", + "description": "Agent application key performance indicators.", + "computed": true, + "elem": { + "type": "TypeMap" + } + }, + "availability_indicator": { + "name": "availability_indicator", + "type": "TypeString", + "description": "Overall availability indicator reported by the agent.", + "computed": true + }, + "infra_indicators": { + "name": "infra_indicators", + "type": "TypeList", + "description": "Agent infrastructure key performance indicators.", + "computed": true, + "elem": { + "type": "TypeMap" + } + }, + "lifecycle_indicator": { + "name": "lifecycle_indicator", + "type": "TypeString", + "description": "Overall lifecycle indicator reported by the agents.", + "computed": true + }, + "percent_usage_indicator": { + "name": "percent_usage_indicator", + "type": "TypeString", + "description": "Percentage usage of the agent resources.", + "computed": true + } + } + }, + { + "name": "description", + "type": "TypeString", + "description": "Agent description.", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "The resource-group name for the agent. By default, agent will be registered in Default Resource Group.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "agent_infrastructure", + "type": "TypeList", + "description": "The infrastructure parameters used by the agent.", + "computed": true, + "elem": { + "cluster_id": { + "name": "cluster_id", + "type": "TypeString", + "description": "The cluster ID where agent services will be running.", + "computed": true + }, + "cluster_resource_group": { + "name": "cluster_resource_group", + "type": "TypeString", + "description": "The resource group of the cluster (is it required?).", + "computed": true + }, + "cos_bucket_name": { + "name": "cos_bucket_name", + "type": "TypeString", + "description": "The COS bucket name used to store the logs.", + "computed": true + }, + "cos_bucket_region": { + "name": "cos_bucket_region", + "type": "TypeString", + "description": "The COS bucket region.", + "computed": true + }, + "cos_instance_name": { + "name": "cos_instance_name", + "type": "TypeString", + "description": "The COS instance name to store the agent logs.", + "computed": true + }, + "infra_type": { + "name": "infra_type", + "type": "TypeString", + "description": "Type of target agent infrastructure.", + "computed": true + } + } + }, + { + "name": "agent_location", + "type": "TypeString", + "description": "The location where agent is deployed in the user environment.", + "computed": true + }, + { + "name": "agent_inputs", + "type": "TypeList", + "description": "Additional input variables for the agent.", + "computed": true, + "elem": { + "link": { + "name": "link", + "type": "TypeString", + "description": "The reference link to the variable value By default the expression points to `$self.value`.", + "computed": true + }, + "metadata": { + "name": "metadata", + "type": "TypeList", + "description": "An user editable metadata for the variables.", + "computed": true, + "elem": { + "aliases": { + "name": "aliases", + "type": "TypeList", + "description": "The list of aliases for the variable name.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "cloud_data_type": { + "name": "cloud_data_type", "type": "TypeString", - "description": "name of the private catalog.", + "description": "Cloud data type of the variable. eg. resource_group_id, region, vpc_id.", "computed": true }, - "offering_id": { - "name": "offering_id", + "default_value": { + "name": "default_value", "type": "TypeString", - "description": "Id of the offering the IBM Catalog.", + "description": "Default value for the variable only if the override value is not specified.", "computed": true }, - "offering_kind": { - "name": "offering_kind", + "description": { + "name": "description", "type": "TypeString", - "description": "Type of the offering, in the IBM Catalog.", + "description": "The description of the meta data.", "computed": true }, - "offering_name": { - "name": "offering_name", + "group_by": { + "name": "group_by", "type": "TypeString", - "description": "Name of the offering in the IBM Catalog.", + "description": "The display name of the group this variable belongs to.", "computed": true }, - "offering_repo_url": { - "name": "offering_repo_url", - "type": "TypeString", - "description": "Repo Url of the offering, in the IBM Catalog.", + "hidden": { + "name": "hidden", + "type": "TypeBool", + "description": "If **true**, the variable is not displayed on UI or Command line.", "computed": true }, - "offering_version": { - "name": "offering_version", - "type": "TypeString", - "description": "Version string of the offering in the IBM Catalog.", + "immutable": { + "name": "immutable", + "type": "TypeBool", + "description": "Is the variable readonly ?.", "computed": true }, - "offering_version_id": { - "name": "offering_version_id", + "link_status": { + "name": "link_status", "type": "TypeString", - "description": "Id of the offering version the IBM Catalog.", + "description": "The status of the link.", "computed": true - } - } - }, - "git": { - "name": "git", - "type": "TypeList", - "description": "Connection details to Git source.", - "computed": true, - "elem": { - "computed_git_repo_url": { - "name": "computed_git_repo_url", + }, + "matches": { + "name": "matches", "type": "TypeString", - "description": "The Complete URL which is computed by git_repo_url, git_repo_folder and branch.", + "description": "The regex for the variable value.", "computed": true }, - "git_branch": { - "name": "git_branch", - "type": "TypeString", - "description": "Name of the branch, used to fetch the Git Repo.", + "max_length": { + "name": "max_length", + "type": "TypeInt", + "description": "The maximum length of the variable value. Applicable for the string type.", "computed": true }, - "git_release": { - "name": "git_release", - "type": "TypeString", - "description": "Name of the release tag, used to fetch the Git Repo.", + "max_value": { + "name": "max_value", + "type": "TypeInt", + "description": "The maximum value of the variable. Applicable for the integer type.", "computed": true }, - "git_repo_folder": { - "name": "git_repo_folder", - "type": "TypeString", - "description": "Name of the folder in the Git Repo, that contains the template.", + "min_length": { + "name": "min_length", + "type": "TypeInt", + "description": "The minimum length of the variable value. Applicable for the string type.", "computed": true }, - "git_repo_url": { - "name": "git_repo_url", + "min_value": { + "name": "min_value", + "type": "TypeInt", + "description": "The minimum value of the variable. Applicable for the integer type.", + "computed": true + }, + "options": { + "name": "options", + "type": "TypeList", + "description": "The list of possible values for this variable. If type is **integer** or **date**, then the array of string is converted to array of integers or date during the runtime.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "position": { + "name": "position", + "type": "TypeInt", + "description": "The relative position of this variable in a list.", + "computed": true + }, + "required": { + "name": "required", + "type": "TypeBool", + "description": "If the variable required?.", + "computed": true + }, + "secure": { + "name": "secure", + "type": "TypeBool", + "description": "Is the variable secure or sensitive ?.", + "computed": true + }, + "source": { + "name": "source", "type": "TypeString", - "description": "URL to the GIT Repo that can be used to clone the template.", + "description": "The source of this meta-data.", "computed": true }, - "git_token": { - "name": "git_token", + "type": { + "name": "type", "type": "TypeString", - "description": "Personal Access Token to connect to Git URLs.", + "description": "Type of the variable.", "computed": true } } }, - "source_type": { - "name": "source_type", + "name": { + "name": "name", "type": "TypeString", - "description": "Type of source for the Template.", + "description": "The name of the variable. For example, `name = \"inventory username\"`.", + "computed": true + }, + "use_default": { + "name": "use_default", + "type": "TypeBool", + "description": "True, will ignore the data in the value attribute, instead the data in metadata.default_value will be used.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "The value for the variable or reference to the value. For example, `value = \"\u003cprovide your ssh_key_value with \n\u003e\"`. **Note** The SSH key should contain `\n` at the end of the key details in case of command line or API calls.", "computed": true } } }, { - "name": "bastion", + "name": "creation_by", + "type": "TypeString", + "description": "The email address of an user who created the agent.", + "computed": true + }, + { + "name": "recent_deploy_job", "type": "TypeList", - "description": "Describes a bastion resource.", + "description": "Post-installations checks for Agent health.", "computed": true, "elem": { - "host": { - "name": "host", + "agent_id": { + "name": "agent_id", "type": "TypeString", - "description": "Reference to the Inventory resource definition.", + "description": "Id of the agent.", "computed": true }, - "name": { - "name": "name", + "agent_version": { + "name": "agent_version", "type": "TypeString", - "description": "Bastion Name(Unique).", + "description": "Agent version.", + "computed": true + }, + "is_redeployed": { + "name": "is_redeployed", + "type": "TypeBool", + "description": "True, when the same version of the agent was redeployed.", + "computed": true + }, + "job_id": { + "name": "job_id", + "type": "TypeString", + "description": "Job Id.", + "computed": true + }, + "log_url": { + "name": "log_url", + "type": "TypeString", + "description": "URL to the full agent deployment job logs.", + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Final result of the agent deployment job.", + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "The outcome of the agent deployment job, in a formatted log string.", + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "The agent deploy job updation time.", + "computed": true + }, + "updated_by": { + "name": "updated_by", + "type": "TypeString", + "description": "Email address of user who ran the agent deploy job.", "computed": true } } }, { - "name": "targets_ini", + "name": "agent_id", "type": "TypeString", - "description": "Inventory of host and host group for the playbook in `INI` file format. For example, `\"targets_ini\": \"[webserverhost] 172.22.192.6 [dbhost] 172.22.192.5\"`. For more information, about an inventory host group syntax, see [Inventory host groups](https://cloud.ibm.com/docs/schematics?topic=schematics-schematics-cli-reference#schematics-inventory-host-grps).", + "description": "Agent ID to get the details of agent.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the agent (must be unique, for an account).", "computed": true }, { - "name": "source_updated_at", + "name": "schematics_location", "type": "TypeString", - "description": "The action playbook updation time.", + "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "computed": true + } + ], + "ibm_schematics_agent_deploy": [ + { + "name": "agent_id", + "type": "TypeString", + "description": "Agent ID to get the details of agent.", + "required": true + }, + { + "name": "agent_version", + "type": "TypeString", + "description": "Agent version.", "computed": true }, { - "name": "playbook_names", - "type": "TypeList", - "description": "Playbook names retrieved from the respository.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "log_url", + "type": "TypeString", + "description": "URL to the full agent deployment job logs.", + "computed": true }, { - "name": "location", + "name": "status_message", "type": "TypeString", - "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", - "cloud_data_type": "region", - "optional": true, + "description": "The outcome of the agent deployment job, in a formatted log string.", "computed": true }, { - "name": "inventory", + "name": "job_id", "type": "TypeString", - "description": "Target inventory record ID, used by the action or ansible playbook.", + "description": "Job Id.", "computed": true }, { - "name": "id", + "name": "updated_at", "type": "TypeString", - "description": "Action ID.", + "description": "The agent deploy job updation time.", + "computed": true + }, + { + "name": "updated_by", + "type": "TypeString", + "description": "Email address of user who ran the agent deploy job.", + "computed": true + }, + { + "name": "is_redeployed", + "type": "TypeBool", + "description": "True, when the same version of the agent was redeployed.", + "computed": true + }, + { + "name": "status_code", + "type": "TypeString", + "description": "Final result of the agent deployment job.", "computed": true } ], - "ibm_schematics_inventory": [ + "ibm_schematics_agent_health": [ { "name": "updated_at", "type": "TypeString", - "description": "Inventory updation time.", + "description": "The agent health check job updation time.", "computed": true }, { - "name": "resource_queries", - "type": "TypeList", - "description": "Input resource queries that is used to dynamically generate the inventory of host and host group for the playbook.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "updated_by", + "type": "TypeString", + "description": "Email address of user who ran the agent health check job.", + "computed": true }, { - "name": "inventory_id", + "name": "agent_version", "type": "TypeString", - "description": "Resource Inventory Id. Use `GET /v2/inventories` API to look up the Resource Inventory definition Ids in your IBM Cloud account.", - "required": true + "description": "Agent version.", + "computed": true }, { - "name": "description", + "name": "status_code", "type": "TypeString", - "description": "The description of your Inventory. The description can be up to 2048 characters long in size.", + "description": "Final result of the health-check job.", "computed": true }, { - "name": "resource_group", + "name": "status_message", "type": "TypeString", - "description": "Resource-group name for the Inventory definition. By default, Inventory will be created in Default Resource Group.", - "cloud_data_type": "resource_group", + "description": "The outcome of the health-check job, in a formatted log string.", "computed": true }, { - "name": "created_by", + "name": "log_url", "type": "TypeString", - "description": "Email address of user who created the Inventory.", + "description": "URL to the full health-check job logs.", + "computed": true + }, + { + "name": "agent_id", + "type": "TypeString", + "description": "Agent ID to get the details of agent.", + "required": true + }, + { + "name": "job_id", + "type": "TypeString", + "description": "Job Id.", + "computed": true + } + ], + "ibm_schematics_agent_prs": [ + { + "name": "updated_at", + "type": "TypeString", + "description": "The agent prs job updation time.", "computed": true }, { "name": "updated_by", "type": "TypeString", - "description": "Email address of user who updated the Inventory.", + "description": "Email address of user who ran the agent prs job.", "computed": true }, { - "name": "inventories_ini", + "name": "agent_version", "type": "TypeString", - "description": "Input inventory of host and host group for the playbook, in the .ini file format.", + "description": "Agent version.", "computed": true }, { - "name": "name", + "name": "status_code", "type": "TypeString", - "description": "The unique name of your Inventory. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores.", + "description": "Final result of the pre-requisite scanner job.", "computed": true }, { - "name": "id", + "name": "status_message", "type": "TypeString", - "description": "Inventory id.", + "description": "The outcome of the pre-requisite scanner job, in a formatted log string.", "computed": true }, { - "name": "location", + "name": "log_url", "type": "TypeString", - "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", - "cloud_data_type": "region", - "optional": true, + "description": "URL to the full pre-requisite scanner job logs.", "computed": true }, { - "name": "created_at", + "name": "agent_id", "type": "TypeString", - "description": "Inventory creation time.", + "description": "Agent ID to get the details of agent.", + "required": true + }, + { + "name": "job_id", + "type": "TypeString", + "description": "Job Id.", "computed": true } ], - "ibm_schematics_job": [ + "ibm_schematics_agents": [ { - "name": "command_object", + "name": "name", "type": "TypeString", - "description": "Name of the Schematics automation resource.", + "description": "The name of the agent (must be unique, for an account).", + "optional": true + }, + { + "name": "total_count", + "type": "TypeInt", + "description": "The total number of records.", "computed": true }, { - "name": "status", + "name": "limit", + "type": "TypeInt", + "description": "The number of records returned.", + "computed": true + }, + { + "name": "offset", + "type": "TypeInt", + "description": "The skipped number of records.", + "computed": true + }, + { + "name": "agents", "type": "TypeList", - "description": "Job Status.", + "description": "The list of agents in the account.", "computed": true, "elem": { - "action_job_status": { - "name": "action_job_status", + "agent_crn": { + "name": "agent_crn", + "type": "TypeString", + "description": "The Agent crn, obtained from the Schematics Agent deployment configuration.", + "computed": true + }, + "agent_location": { + "name": "agent_location", + "type": "TypeString", + "description": "The location where agent is deployed in the user environment.", + "computed": true + }, + "connection_state": { + "name": "connection_state", "type": "TypeList", - "description": "Action Job Status.", + "description": "Connection status of the agent.", "computed": true, "elem": { - "action_name": { - "name": "action_name", - "type": "TypeString", - "description": "Action name.", - "computed": true - }, - "bastion_status_code": { - "name": "bastion_status_code", - "type": "TypeString", - "description": "Status of Resources.", - "computed": true - }, - "bastion_status_message": { - "name": "bastion_status_message", - "type": "TypeString", - "description": "Bastion status message - to be displayed along with the bastion_status_code;.", - "computed": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "computed": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "Action Job status message - to be displayed along with the action_status_code.", - "computed": true - }, - "targets_status_code": { - "name": "targets_status_code", - "type": "TypeString", - "description": "Status of Resources.", - "computed": true - }, - "targets_status_message": { - "name": "targets_status_message", + "checked_at": { + "name": "checked_at", "type": "TypeString", - "description": "Aggregated status message for all target resources, to be displayed along with the targets_status_code;.", + "description": "When the connection state is modified.", "computed": true }, - "updated_at": { - "name": "updated_at", + "state": { + "name": "state", "type": "TypeString", - "description": "Job status updation timestamp.", + "description": "Agent Connection Status * `Connected` When Schematics is able to connect to the agent. * `Disconnected` When Schematics is able not connect to the agent.", "computed": true } } }, - "flow_job_status": { - "name": "flow_job_status", + "description": { + "name": "description", + "type": "TypeString", + "description": "Agent description.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The Agent registration id.", + "computed": true + }, + "location": { + "name": "location", + "type": "TypeString", + "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The name of the agent (must be unique, for an account).", + "computed": true + }, + "profile_id": { + "name": "profile_id", + "type": "TypeString", + "description": "The IAM trusted profile id, used by the Agent instance.", + "computed": true + }, + "registered_at": { + "name": "registered_at", + "type": "TypeString", + "description": "The Agent registration date-time.", + "computed": true + }, + "registered_by": { + "name": "registered_by", + "type": "TypeString", + "description": "The email address of an user who registered the Agent.", + "computed": true + }, + "resource_group": { + "name": "resource_group", + "type": "TypeString", + "description": "The resource-group name for the agent. By default, Agent will be registered in Default Resource Group.", + "computed": true + }, + "system_state": { + "name": "system_state", "type": "TypeList", - "description": "Environment Flow JOB Status.", + "description": "Computed state of the agent.", "computed": true, "elem": { - "flow_id": { - "name": "flow_id", + "message": { + "name": "message", "type": "TypeString", - "description": "flow id.", + "description": "The Agent status message.", "computed": true }, - "flow_name": { - "name": "flow_name", + "state": { + "name": "state", "type": "TypeString", - "description": "flow name.", + "description": "Agent Status.", "computed": true - }, - "status_code": { - "name": "status_code", + } + } + }, + "tags": { + "name": "tags", + "type": "TypeList", + "description": "Tags for the agent.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "The Agent registration updation time.", + "computed": true + }, + "updated_by": { + "name": "updated_by", + "type": "TypeString", + "description": "Email address of user who updated the Agent registration.", + "computed": true + }, + "user_state": { + "name": "user_state", + "type": "TypeList", + "description": "User defined status of the agent.", + "computed": true, + "elem": { + "set_at": { + "name": "set_at", "type": "TypeString", - "description": "Status of Jobs.", + "description": "When the User who set the state of the Object.", "computed": true }, - "status_message": { - "name": "status_message", + "set_by": { + "name": "set_by", "type": "TypeString", - "description": "Flow Job status message - to be displayed along with the status_code;.", + "description": "Name of the User who set the state of the Object.", "computed": true }, - "updated_at": { - "name": "updated_at", + "state": { + "name": "state", "type": "TypeString", - "description": "Job status updation timestamp.", - "computed": true - }, - "workitems": { - "name": "workitems", - "type": "TypeList", - "description": "Environment's individual workItem status details;.", - "computed": true, - "elem": { - "job_id": { - "name": "job_id", - "type": "TypeString", - "description": "workspace job id.", - "computed": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "computed": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "workitem job status message;.", - "computed": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "workitem job status updation timestamp.", - "computed": true - }, - "workspace_id": { - "name": "workspace_id", - "type": "TypeString", - "description": "Workspace id.", - "computed": true - }, - "workspace_name": { - "name": "workspace_name", - "type": "TypeString", - "description": "workspace name.", - "computed": true - } - } - } - } - }, - "system_job_status": { - "name": "system_job_status", - "type": "TypeList", - "description": "System Job Status.", - "computed": true, - "elem": { - "schematics_resource_status": { - "name": "schematics_resource_status", - "type": "TypeList", - "description": "job staus for each schematics resource.", - "computed": true, - "elem": { - "schematics_resource_id": { - "name": "schematics_resource_id", - "type": "TypeString", - "description": "id for each resource which is targeted as a part of system job.", - "computed": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "computed": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "system job status message.", - "computed": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "Job status updation timestamp.", - "computed": true - } - } - }, - "system_status_code": { - "name": "system_status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "computed": true - }, - "system_status_message": { - "name": "system_status_message", - "type": "TypeString", - "description": "System job message.", - "computed": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "Job status updation timestamp.", - "computed": true - } - } - }, - "workspace_job_status": { - "name": "workspace_job_status", - "type": "TypeList", - "description": "Workspace Job Status.", - "computed": true, - "elem": { - "flow_status": { - "name": "flow_status", - "type": "TypeList", - "description": "Environment Flow JOB Status.", - "computed": true, - "elem": { - "flow_id": { - "name": "flow_id", - "type": "TypeString", - "description": "flow id.", - "computed": true - }, - "flow_name": { - "name": "flow_name", - "type": "TypeString", - "description": "flow name.", - "computed": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "computed": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "Flow Job status message - to be displayed along with the status_code;.", - "computed": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "Job status updation timestamp.", - "computed": true - }, - "workitems": { - "name": "workitems", - "type": "TypeList", - "description": "Environment's individual workItem status details;.", - "computed": true, - "elem": { - "job_id": { - "name": "job_id", - "type": "TypeString", - "description": "workspace job id.", - "computed": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "computed": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "workitem job status message;.", - "computed": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "workitem job status updation timestamp.", - "computed": true - }, - "workspace_id": { - "name": "workspace_id", - "type": "TypeString", - "description": "Workspace id.", - "computed": true - }, - "workspace_name": { - "name": "workspace_name", - "type": "TypeString", - "description": "workspace name.", - "computed": true - } - } - } - } - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "computed": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "Workspace job status message (eg. App1_Setup_Pending, for a 'Setup' flow in the 'App1' Workspace).", - "computed": true - }, - "template_status": { - "name": "template_status", - "type": "TypeList", - "description": "Workspace Flow Template job status.", - "computed": true, - "elem": { - "flow_index": { - "name": "flow_index", - "type": "TypeInt", - "description": "Index of the template in the Flow.", - "computed": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "computed": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "Template job status message (eg. VPCt1_Apply_Pending, for a 'VPCt1' Template).", - "computed": true - }, - "template_id": { - "name": "template_id", - "type": "TypeString", - "description": "Template Id.", - "computed": true - }, - "template_name": { - "name": "template_name", - "type": "TypeString", - "description": "Template name.", - "computed": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "Job status updation timestamp.", - "computed": true - } - } - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "Job status updation timestamp.", - "computed": true - }, - "workspace_name": { - "name": "workspace_name", - "type": "TypeString", - "description": "Workspace name.", + "description": "User-defined states * `enable` Agent is enabled by the user. * `disable` Agent is disbaled by the user.", "computed": true } } } } - }, + } + ], + "ibm_schematics_inventory": [ { - "name": "command_name", + "name": "updated_at", "type": "TypeString", - "description": "Schematics job command name.", + "description": "Inventory updation time.", "computed": true }, { - "name": "name", + "name": "inventories_ini", "type": "TypeString", - "description": "Job name, uniquely derived from the related Workspace or Action.", + "description": "Input inventory of host and host group for the playbook, in the .ini file format.", "computed": true }, { - "name": "submitted_by", + "name": "resource_queries", + "type": "TypeList", + "description": "Input resource queries that is used to dynamically generate the inventory of host and host group for the playbook.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "inventory_id", "type": "TypeString", - "description": "Email address of user who submitted the job.", + "description": "Resource Inventory Id. Use `GET /v2/inventories` API to look up the Resource Inventory definition Ids in your IBM Cloud account.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The unique name of your Inventory. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores.", "computed": true }, { - "name": "command_parameter", + "name": "description", "type": "TypeString", - "description": "Schematics job command parameter (playbook-name).", + "description": "The description of your Inventory. The description can be up to 2048 characters long in size.", "computed": true }, { - "name": "id", + "name": "location", "type": "TypeString", - "description": "Job ID.", + "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "cloud_data_type": "region", + "optional": true, "computed": true }, { - "name": "description", + "name": "created_at", "type": "TypeString", - "description": "The description of your job is derived from the related action or workspace. The description can be up to 2048 characters long in size.", + "description": "Inventory creation time.", "computed": true }, { - "name": "start_at", + "name": "id", "type": "TypeString", - "description": "Job start time.", + "description": "Inventory id.", "computed": true }, { "name": "resource_group", "type": "TypeString", - "description": "Resource-group name derived from the related Workspace or Action.", + "description": "Resource-group name for the Inventory definition. By default, Inventory will be created in Default Resource Group.", "cloud_data_type": "resource_group", "computed": true }, { - "name": "duration", + "name": "created_by", "type": "TypeString", - "description": "Duration of job execution; example 40 sec.", + "description": "Email address of user who created the Inventory.", "computed": true }, { - "name": "command_object_id", + "name": "updated_by", "type": "TypeString", - "description": "Job command object id (workspace-id, action-id).", + "description": "Email address of user who updated the Inventory.", + "computed": true + } + ], + "ibm_schematics_job": [ + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource-group name derived from the related Workspace or Action.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "job_env_settings", + "name": "submitted_by", + "type": "TypeString", + "description": "Email address of user who submitted the job.", + "computed": true + }, + { + "name": "log_summary", "type": "TypeList", - "description": "Environment variables used by the Job while performing Action or Workspace.", + "description": "Job log summary record.", "computed": true, "elem": { - "link": { - "name": "link", - "type": "TypeString", - "description": "Reference link to the variable value By default the expression will point to self.value.", + "action_job": { + "name": "action_job", + "type": "TypeList", + "description": "Flow Job log summary.", + "computed": true, + "elem": { + "play_count": { + "name": "play_count", + "type": "TypeFloat", + "description": "number of plays in playbook.", + "computed": true + }, + "recap": { + "name": "recap", + "type": "TypeList", + "description": "Recap records.", + "computed": true, + "elem": { + "changed": { + "name": "changed", + "type": "TypeFloat", + "description": "Number of changed.", + "computed": true + }, + "failed": { + "name": "failed", + "type": "TypeFloat", + "description": "Number of failed.", + "computed": true + }, + "ok": { + "name": "ok", + "type": "TypeFloat", + "description": "Number of OK.", + "computed": true + }, + "skipped": { + "name": "skipped", + "type": "TypeFloat", + "description": "Number of skipped.", + "computed": true + }, + "target": { + "name": "target", + "type": "TypeList", + "description": "List of target or host name.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "unreachable": { + "name": "unreachable", + "type": "TypeFloat", + "description": "Number of unreachable.", + "computed": true + } + } + }, + "target_count": { + "name": "target_count", + "type": "TypeFloat", + "description": "number of targets or hosts.", + "computed": true + }, + "task_count": { + "name": "task_count", + "type": "TypeFloat", + "description": "number of tasks in playbook.", + "computed": true + } + } + }, + "elapsed_time": { + "name": "elapsed_time", + "type": "TypeFloat", + "description": "Job log elapsed time (log_analyzed_till - log_start_at).", "computed": true }, - "metadata": { - "name": "metadata", + "flow_job": { + "name": "flow_job", "type": "TypeList", - "description": "User editable metadata for the variables.", + "description": "Flow Job log summary.", "computed": true, "elem": { - "aliases": { - "name": "aliases", + "workitems": { + "name": "workitems", "type": "TypeList", - "description": "List of aliases for the variable name.", "computed": true, "elem": { - "type": "TypeString" + "job_id": { + "name": "job_id", + "type": "TypeString", + "description": "workspace JOB ID.", + "computed": true + }, + "log_url": { + "name": "log_url", + "type": "TypeString", + "description": "Log url for job.", + "computed": true + }, + "resources_add": { + "name": "resources_add", + "type": "TypeFloat", + "description": "Number of resources add.", + "computed": true + }, + "resources_destroy": { + "name": "resources_destroy", + "type": "TypeFloat", + "description": "Number of resources destroy.", + "computed": true + }, + "resources_modify": { + "name": "resources_modify", + "type": "TypeFloat", + "description": "Number of resources modify.", + "computed": true + }, + "workspace_id": { + "name": "workspace_id", + "type": "TypeString", + "description": "workspace ID.", + "computed": true + } } }, - "default_value": { - "name": "default_value", - "type": "TypeString", - "description": "Default value for the variable, if the override value is not specified.", + "workitems_completed": { + "name": "workitems_completed", + "type": "TypeFloat", + "description": "Number of workitems completed successfully.", "computed": true }, - "description": { - "name": "description", - "type": "TypeString", - "description": "Description of the meta data.", + "workitems_failed": { + "name": "workitems_failed", + "type": "TypeFloat", + "description": "Number of workitems failed.", "computed": true }, - "group_by": { - "name": "group_by", + "workitems_pending": { + "name": "workitems_pending", + "type": "TypeFloat", + "description": "Number of workitems pending in the flow.", + "computed": true + } + } + }, + "job_id": { + "name": "job_id", + "type": "TypeString", + "description": "Workspace Id.", + "computed": true + }, + "job_type": { + "name": "job_type", + "type": "TypeString", + "description": "Type of Job.", + "computed": true + }, + "log_analyzed_till": { + "name": "log_analyzed_till", + "type": "TypeString", + "description": "Job log update timestamp.", + "computed": true + }, + "log_errors": { + "name": "log_errors", + "type": "TypeList", + "description": "Job log errors.", + "computed": true, + "elem": { + "error_code": { + "name": "error_code", "type": "TypeString", - "description": "Display name of the group this variable belongs to.", + "description": "Error code in the Log.", "computed": true }, - "hidden": { - "name": "hidden", - "type": "TypeBool", - "description": "If true, the variable will not be displayed on UI or CLI.", + "error_count": { + "name": "error_count", + "type": "TypeFloat", + "description": "Number of occurrence.", "computed": true }, - "immutable": { - "name": "immutable", - "type": "TypeBool", - "description": "Is the variable readonly ?.", + "error_msg": { + "name": "error_msg", + "type": "TypeString", + "description": "Summary error message in the log.", "computed": true - }, - "matches": { - "name": "matches", + } + } + }, + "log_start_at": { + "name": "log_start_at", + "type": "TypeString", + "description": "Job log start timestamp.", + "computed": true + }, + "repo_download_job": { + "name": "repo_download_job", + "type": "TypeList", + "description": "Repo download Job log summary.", + "computed": true, + "elem": { + "detected_filetype": { + "name": "detected_filetype", "type": "TypeString", - "description": "Regex for the variable value.", + "description": "Detected template or data file type.", "computed": true }, - "max_length": { - "name": "max_length", - "type": "TypeInt", - "description": "Maximum length of the variable value. Applicable for string type.", + "inputs_count": { + "name": "inputs_count", + "type": "TypeString", + "description": "Number of inputs detected.", "computed": true }, - "max_value": { - "name": "max_value", - "type": "TypeInt", - "description": "Maximum value of the variable. Applicable for integer type.", + "outputs_count": { + "name": "outputs_count", + "type": "TypeString", + "description": "Number of outputs detected.", "computed": true }, - "min_length": { - "name": "min_length", - "type": "TypeInt", - "description": "Minimum length of the variable value. Applicable for string type.", + "quarantined_file_count": { + "name": "quarantined_file_count", + "type": "TypeFloat", + "description": "Number of files quarantined.", "computed": true }, - "min_value": { - "name": "min_value", - "type": "TypeInt", - "description": "Minimum value of the variable. Applicable for integer type.", + "scanned_file_count": { + "name": "scanned_file_count", + "type": "TypeFloat", + "description": "Number of files scanned.", + "computed": true + } + } + }, + "system_job": { + "name": "system_job", + "type": "TypeList", + "description": "System Job log summary.", + "computed": true, + "elem": { + "failed": { + "name": "failed", + "type": "TypeFloat", + "description": "Number of failed.", "computed": true }, - "options": { - "name": "options", - "type": "TypeList", - "description": "List of possible values for this variable. If type is integer or date, then the array of string will be converted to array of integers or date during runtime.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "position": { - "name": "position", - "type": "TypeInt", - "description": "Relative position of this variable in a list.", + "success": { + "name": "success", + "type": "TypeFloat", + "description": "Number of passed.", "computed": true }, - "secure": { - "name": "secure", - "type": "TypeBool", - "description": "Is the variable secure or sensitive ?.", + "target_count": { + "name": "target_count", + "type": "TypeFloat", + "description": "number of targets or hosts.", + "computed": true + } + } + }, + "workspace_job": { + "name": "workspace_job", + "type": "TypeList", + "description": "Workspace Job log summary.", + "computed": true, + "elem": { + "resources_add": { + "name": "resources_add", + "type": "TypeFloat", + "description": "Number of resources add.", "computed": true }, - "source": { - "name": "source", - "type": "TypeString", - "description": "Source of this meta-data.", + "resources_destroy": { + "name": "resources_destroy", + "type": "TypeFloat", + "description": "Number of resources destroy.", "computed": true }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of the variable.", + "resources_modify": { + "name": "resources_modify", + "type": "TypeFloat", + "description": "Number of resources modify.", "computed": true } } - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the variable.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Value for the variable or reference to the value.", - "computed": true } } }, { - "name": "submitted_at", - "type": "TypeString", - "description": "Job submission time.", - "computed": true - }, - { - "name": "log_store_url", - "type": "TypeString", - "description": "Job log store URL.", - "computed": true - }, - { - "name": "results_url", - "type": "TypeString", - "description": "Job results store URL.", - "computed": true - }, - { - "name": "job_id", - "type": "TypeString", - "description": "Job Id. Use `GET /v2/jobs` API to look up the Job Ids in your IBM Cloud account.", - "required": true + "name": "command_options", + "type": "TypeList", + "description": "Command line options for the command.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "job_inputs", + "name": "job_env_settings", "type": "TypeList", - "description": "Job inputs used by Action or Workspace.", + "description": "Environment variables used by the Job while performing Action or Workspace.", "computed": true, "elem": { "link": { @@ -73716,11 +75638,91 @@ } }, { - "name": "location", + "name": "tags", + "type": "TypeList", + "description": "User defined tags, while running the job.", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "duration", "type": "TypeString", - "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", - "cloud_data_type": "region", - "optional": true, + "description": "Duration of job execution; example 40 sec.", + "computed": true + }, + { + "name": "command_object", + "type": "TypeString", + "description": "Name of the Schematics automation resource.", + "computed": true + }, + { + "name": "command_object_id", + "type": "TypeString", + "description": "Job command object id (workspace-id, action-id).", + "computed": true + }, + { + "name": "submitted_at", + "type": "TypeString", + "description": "Job submission time.", + "computed": true + }, + { + "name": "command_parameter", + "type": "TypeString", + "description": "Schematics job command parameter (playbook-name).", + "computed": true + }, + { + "name": "state_store_url", + "type": "TypeString", + "description": "Job state store URL.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", + "computed": true + }, + { + "name": "command_name", + "type": "TypeString", + "description": "Schematics job command name.", + "computed": true + }, + { + "name": "end_at", + "type": "TypeString", + "description": "Job end time.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The description of your job is derived from the related action or workspace. The description can be up to 2048 characters long in size.", + "computed": true + }, + { + "name": "start_at", + "type": "TypeString", + "description": "Job start time.", + "computed": true + }, + { + "name": "results_url", + "type": "TypeString", + "description": "Job results store URL.", + "computed": true + }, + { + "name": "id", + "type": "TypeString", + "description": "Job ID.", "computed": true }, { @@ -75782,295 +77784,523 @@ } }, { - "name": "log_summary", + "name": "bastion", "type": "TypeList", - "description": "Job log summary record.", + "description": "Describes a bastion resource.", "computed": true, "elem": { - "action_job": { - "name": "action_job", + "host": { + "name": "host", + "type": "TypeString", + "description": "Reference to the Inventory resource definition.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Bastion Name(Unique).", + "computed": true + } + } + }, + { + "name": "job_inputs", + "type": "TypeList", + "description": "Job inputs used by Action or Workspace.", + "computed": true, + "elem": { + "link": { + "name": "link", + "type": "TypeString", + "description": "Reference link to the variable value By default the expression will point to self.value.", + "computed": true + }, + "metadata": { + "name": "metadata", "type": "TypeList", - "description": "Flow Job log summary.", + "description": "User editable metadata for the variables.", "computed": true, "elem": { - "play_count": { - "name": "play_count", - "type": "TypeFloat", - "description": "number of plays in playbook.", - "computed": true - }, - "recap": { - "name": "recap", + "aliases": { + "name": "aliases", "type": "TypeList", - "description": "Recap records.", + "description": "List of aliases for the variable name.", "computed": true, "elem": { - "changed": { - "name": "changed", - "type": "TypeFloat", - "description": "Number of changed.", - "computed": true - }, - "failed": { - "name": "failed", - "type": "TypeFloat", - "description": "Number of failed.", - "computed": true - }, - "ok": { - "name": "ok", - "type": "TypeFloat", - "description": "Number of OK.", - "computed": true - }, - "skipped": { - "name": "skipped", - "type": "TypeFloat", - "description": "Number of skipped.", - "computed": true - }, - "target": { - "name": "target", - "type": "TypeList", - "description": "List of target or host name.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "unreachable": { - "name": "unreachable", - "type": "TypeFloat", - "description": "Number of unreachable.", - "computed": true - } + "type": "TypeString" } }, - "target_count": { - "name": "target_count", - "type": "TypeFloat", - "description": "number of targets or hosts.", + "default_value": { + "name": "default_value", + "type": "TypeString", + "description": "Default value for the variable, if the override value is not specified.", "computed": true }, - "task_count": { - "name": "task_count", - "type": "TypeFloat", - "description": "number of tasks in playbook.", + "description": { + "name": "description", + "type": "TypeString", + "description": "Description of the meta data.", "computed": true - } - } - }, - "elapsed_time": { - "name": "elapsed_time", - "type": "TypeFloat", - "description": "Job log elapsed time (log_analyzed_till - log_start_at).", - "computed": true - }, - "flow_job": { - "name": "flow_job", - "type": "TypeList", - "description": "Flow Job log summary.", - "computed": true, - "elem": { - "workitems": { - "name": "workitems", + }, + "group_by": { + "name": "group_by", + "type": "TypeString", + "description": "Display name of the group this variable belongs to.", + "computed": true + }, + "hidden": { + "name": "hidden", + "type": "TypeBool", + "description": "If true, the variable will not be displayed on UI or CLI.", + "computed": true + }, + "immutable": { + "name": "immutable", + "type": "TypeBool", + "description": "Is the variable readonly ?.", + "computed": true + }, + "matches": { + "name": "matches", + "type": "TypeString", + "description": "Regex for the variable value.", + "computed": true + }, + "max_length": { + "name": "max_length", + "type": "TypeInt", + "description": "Maximum length of the variable value. Applicable for string type.", + "computed": true + }, + "max_value": { + "name": "max_value", + "type": "TypeInt", + "description": "Maximum value of the variable. Applicable for integer type.", + "computed": true + }, + "min_length": { + "name": "min_length", + "type": "TypeInt", + "description": "Minimum length of the variable value. Applicable for string type.", + "computed": true + }, + "min_value": { + "name": "min_value", + "type": "TypeInt", + "description": "Minimum value of the variable. Applicable for integer type.", + "computed": true + }, + "options": { + "name": "options", "type": "TypeList", + "description": "List of possible values for this variable. If type is integer or date, then the array of string will be converted to array of integers or date during runtime.", "computed": true, "elem": { - "job_id": { - "name": "job_id", - "type": "TypeString", - "description": "workspace JOB ID.", - "computed": true - }, - "log_url": { - "name": "log_url", - "type": "TypeString", - "description": "Log url for job.", - "computed": true - }, - "resources_add": { - "name": "resources_add", - "type": "TypeFloat", - "description": "Number of resources add.", - "computed": true - }, - "resources_destroy": { - "name": "resources_destroy", - "type": "TypeFloat", - "description": "Number of resources destroy.", - "computed": true - }, - "resources_modify": { - "name": "resources_modify", - "type": "TypeFloat", - "description": "Number of resources modify.", - "computed": true - }, - "workspace_id": { - "name": "workspace_id", - "type": "TypeString", - "description": "workspace ID.", - "computed": true - } + "type": "TypeString" } }, - "workitems_completed": { - "name": "workitems_completed", - "type": "TypeFloat", - "description": "Number of workitems completed successfully.", + "position": { + "name": "position", + "type": "TypeInt", + "description": "Relative position of this variable in a list.", "computed": true }, - "workitems_failed": { - "name": "workitems_failed", - "type": "TypeFloat", - "description": "Number of workitems failed.", + "secure": { + "name": "secure", + "type": "TypeBool", + "description": "Is the variable secure or sensitive ?.", "computed": true }, - "workitems_pending": { - "name": "workitems_pending", - "type": "TypeFloat", - "description": "Number of workitems pending in the flow.", + "source": { + "name": "source", + "type": "TypeString", + "description": "Source of this meta-data.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of the variable.", "computed": true } } }, - "job_id": { - "name": "job_id", - "type": "TypeString", - "description": "Workspace Id.", - "computed": true - }, - "job_type": { - "name": "job_type", + "name": { + "name": "name", "type": "TypeString", - "description": "Type of Job.", + "description": "Name of the variable.", "computed": true }, - "log_analyzed_till": { - "name": "log_analyzed_till", + "value": { + "name": "value", "type": "TypeString", - "description": "Job log update timestamp.", + "description": "Value for the variable or reference to the value.", "computed": true - }, - "log_errors": { - "name": "log_errors", + } + } + }, + { + "name": "log_store_url", + "type": "TypeString", + "description": "Job log store URL.", + "computed": true + }, + { + "name": "status", + "type": "TypeList", + "description": "Job Status.", + "computed": true, + "elem": { + "action_job_status": { + "name": "action_job_status", "type": "TypeList", - "description": "Job log errors.", + "description": "Action Job Status.", "computed": true, "elem": { - "error_code": { - "name": "error_code", + "action_name": { + "name": "action_name", "type": "TypeString", - "description": "Error code in the Log.", + "description": "Action name.", "computed": true }, - "error_count": { - "name": "error_count", - "type": "TypeFloat", - "description": "Number of occurrence.", + "bastion_status_code": { + "name": "bastion_status_code", + "type": "TypeString", + "description": "Status of Resources.", "computed": true }, - "error_msg": { - "name": "error_msg", + "bastion_status_message": { + "name": "bastion_status_message", "type": "TypeString", - "description": "Summary error message in the log.", + "description": "Bastion status message - to be displayed along with the bastion_status_code;.", + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "Action Job status message - to be displayed along with the action_status_code.", + "computed": true + }, + "targets_status_code": { + "name": "targets_status_code", + "type": "TypeString", + "description": "Status of Resources.", + "computed": true + }, + "targets_status_message": { + "name": "targets_status_message", + "type": "TypeString", + "description": "Aggregated status message for all target resources, to be displayed along with the targets_status_code;.", + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", "computed": true } } }, - "log_start_at": { - "name": "log_start_at", - "type": "TypeString", - "description": "Job log start timestamp.", - "computed": true - }, - "repo_download_job": { - "name": "repo_download_job", + "flow_job_status": { + "name": "flow_job_status", "type": "TypeList", - "description": "Repo download Job log summary.", + "description": "Environment Flow JOB Status.", "computed": true, "elem": { - "detected_filetype": { - "name": "detected_filetype", + "flow_id": { + "name": "flow_id", "type": "TypeString", - "description": "Detected template or data file type.", + "description": "flow id.", "computed": true }, - "inputs_count": { - "name": "inputs_count", + "flow_name": { + "name": "flow_name", "type": "TypeString", - "description": "Number of inputs detected.", + "description": "flow name.", "computed": true }, - "outputs_count": { - "name": "outputs_count", + "status_code": { + "name": "status_code", "type": "TypeString", - "description": "Number of outputs detected.", + "description": "Status of Jobs.", "computed": true }, - "quarantined_file_count": { - "name": "quarantined_file_count", - "type": "TypeFloat", - "description": "Number of files quarantined.", + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "Flow Job status message - to be displayed along with the status_code;.", "computed": true }, - "scanned_file_count": { - "name": "scanned_file_count", - "type": "TypeFloat", - "description": "Number of files scanned.", + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", "computed": true + }, + "workitems": { + "name": "workitems", + "type": "TypeList", + "description": "Environment's individual workItem status details;.", + "computed": true, + "elem": { + "job_id": { + "name": "job_id", + "type": "TypeString", + "description": "workspace job id.", + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "workitem job status message;.", + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "workitem job status updation timestamp.", + "computed": true + }, + "workspace_id": { + "name": "workspace_id", + "type": "TypeString", + "description": "Workspace id.", + "computed": true + }, + "workspace_name": { + "name": "workspace_name", + "type": "TypeString", + "description": "workspace name.", + "computed": true + } + } } } }, - "system_job": { - "name": "system_job", + "system_job_status": { + "name": "system_job_status", "type": "TypeList", - "description": "System Job log summary.", + "description": "System Job Status.", "computed": true, "elem": { - "failed": { - "name": "failed", - "type": "TypeFloat", - "description": "Number of failed.", + "schematics_resource_status": { + "name": "schematics_resource_status", + "type": "TypeList", + "description": "job staus for each schematics resource.", + "computed": true, + "elem": { + "schematics_resource_id": { + "name": "schematics_resource_id", + "type": "TypeString", + "description": "id for each resource which is targeted as a part of system job.", + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "system job status message.", + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", + "computed": true + } + } + }, + "system_status_code": { + "name": "system_status_code", + "type": "TypeString", + "description": "Status of Jobs.", "computed": true }, - "success": { - "name": "success", - "type": "TypeFloat", - "description": "Number of passed.", + "system_status_message": { + "name": "system_status_message", + "type": "TypeString", + "description": "System job message.", "computed": true }, - "target_count": { - "name": "target_count", - "type": "TypeFloat", - "description": "number of targets or hosts.", + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", "computed": true } } }, - "workspace_job": { - "name": "workspace_job", + "workspace_job_status": { + "name": "workspace_job_status", "type": "TypeList", - "description": "Workspace Job log summary.", + "description": "Workspace Job Status.", "computed": true, "elem": { - "resources_add": { - "name": "resources_add", - "type": "TypeFloat", - "description": "Number of resources add.", + "flow_status": { + "name": "flow_status", + "type": "TypeList", + "description": "Environment Flow JOB Status.", + "computed": true, + "elem": { + "flow_id": { + "name": "flow_id", + "type": "TypeString", + "description": "flow id.", + "computed": true + }, + "flow_name": { + "name": "flow_name", + "type": "TypeString", + "description": "flow name.", + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "Flow Job status message - to be displayed along with the status_code;.", + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", + "computed": true + }, + "workitems": { + "name": "workitems", + "type": "TypeList", + "description": "Environment's individual workItem status details;.", + "computed": true, + "elem": { + "job_id": { + "name": "job_id", + "type": "TypeString", + "description": "workspace job id.", + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "workitem job status message;.", + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "workitem job status updation timestamp.", + "computed": true + }, + "workspace_id": { + "name": "workspace_id", + "type": "TypeString", + "description": "Workspace id.", + "computed": true + }, + "workspace_name": { + "name": "workspace_name", + "type": "TypeString", + "description": "workspace name.", + "computed": true + } + } + } + } + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", "computed": true }, - "resources_destroy": { - "name": "resources_destroy", - "type": "TypeFloat", - "description": "Number of resources destroy.", + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "Workspace job status message (eg. App1_Setup_Pending, for a 'Setup' flow in the 'App1' Workspace).", "computed": true }, - "resources_modify": { - "name": "resources_modify", - "type": "TypeFloat", - "description": "Number of resources modify.", + "template_status": { + "name": "template_status", + "type": "TypeList", + "description": "Workspace Flow Template job status.", + "computed": true, + "elem": { + "flow_index": { + "name": "flow_index", + "type": "TypeInt", + "description": "Index of the template in the Flow.", + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "Template job status message (eg. VPCt1_Apply_Pending, for a 'VPCt1' Template).", + "computed": true + }, + "template_id": { + "name": "template_id", + "type": "TypeString", + "description": "Template Id.", + "computed": true + }, + "template_name": { + "name": "template_name", + "type": "TypeString", + "description": "Template name.", + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", + "computed": true + } + } + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", + "computed": true + }, + "workspace_name": { + "name": "workspace_name", + "type": "TypeString", + "description": "Workspace name.", "computed": true } } @@ -76078,64 +78308,45 @@ } }, { - "name": "command_options", - "type": "TypeList", - "description": "Command line options for the command.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "job_id", + "type": "TypeString", + "description": "Job Id. Use `GET /v2/jobs` API to look up the Job Ids in your IBM Cloud account.", + "required": true }, { - "name": "tags", - "type": "TypeList", - "description": "User defined tags, while running the job.", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "name", + "type": "TypeString", + "description": "Job name, uniquely derived from the related Workspace or Action.", + "computed": true }, { - "name": "end_at", + "name": "location", "type": "TypeString", - "description": "Job end time.", + "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "cloud_data_type": "region", + "optional": true, "computed": true - }, + } + ], + "ibm_schematics_output": [ { - "name": "bastion", - "type": "TypeList", - "description": "Describes a bastion resource.", - "computed": true, - "elem": { - "host": { - "name": "host", - "type": "TypeString", - "description": "Reference to the Inventory resource definition.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Bastion Name(Unique).", - "computed": true - } - } + "name": "output_json", + "type": "TypeString", + "description": "The json output in string", + "optional": true }, { - "name": "state_store_url", + "name": "resource_controller_url", "type": "TypeString", - "description": "Job state store URL.", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this Workspace", "computed": true }, { - "name": "updated_at", + "name": "workspace_id", "type": "TypeString", - "description": "Job status updation timestamp.", - "computed": true - } - ], - "ibm_schematics_output": [ + "description": "The ID of the workspace for which you want to retrieve output values. To find the workspace ID, use the `GET /workspaces` API.", + "required": true + }, { "name": "location", "type": "TypeString", @@ -76153,382 +78364,558 @@ "name": "output_values", "type": "TypeMap", "computed": true - }, + } + ], + "ibm_schematics_policies": [ { - "name": "output_json", + "name": "policy_kind", "type": "TypeString", - "description": "The json output in string", + "description": "Policy kind or categories for managing and deriving policy decision * `agent_assignment_policy` Agent assignment policy for job execution.", "optional": true }, { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this Workspace", + "name": "total_count", + "type": "TypeInt", + "description": "The total number of policy records.", "computed": true }, { - "name": "workspace_id", - "type": "TypeString", - "description": "The ID of the workspace for which you want to retrieve output values. To find the workspace ID, use the `GET /workspaces` API.", - "required": true - } - ], - "ibm_schematics_resource_query": [ + "name": "limit", + "type": "TypeInt", + "description": "The number of policy records returned.", + "computed": true + }, { - "name": "updated_by", - "type": "TypeString", - "description": "Email address of user who updated the Resource query.", + "name": "offset", + "type": "TypeInt", + "description": "The skipped number of policy records.", "computed": true }, { - "name": "queries", + "name": "policies", "type": "TypeList", + "description": "The list of Schematics policies.", "computed": true, "elem": { - "query_condition": { - "name": "query_condition", + "account": { + "name": "account", + "type": "TypeString", + "description": "The Account id.", + "computed": true + }, + "created_at": { + "name": "created_at", + "type": "TypeString", + "description": "The policy creation time.", + "computed": true + }, + "created_by": { + "name": "created_by", + "type": "TypeString", + "description": "The user who created the Policy.", + "computed": true + }, + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The policy CRN.", + "computed": true + }, + "description": { + "name": "description", + "type": "TypeString", + "description": "The description of Schematics customization policy.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The system generated Policy Id.", + "computed": true + }, + "location": { + "name": "location", + "type": "TypeString", + "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The name of Schematics customization policy.", + "computed": true + }, + "policy_kind": { + "name": "policy_kind", + "type": "TypeString", + "description": "Policy kind or categories for managing and deriving policy decision * `agent_assignment_policy` Agent assignment policy for job execution.", + "computed": true + }, + "resource_group": { + "name": "resource_group", + "type": "TypeString", + "description": "Resource-group name for the Policy. By default, Policy will be created in Default Resource Group.", + "computed": true + }, + "state": { + "name": "state", "type": "TypeList", + "description": "User defined status of the Schematics object.", "computed": true, "elem": { - "description": { - "name": "description", + "set_at": { + "name": "set_at", "type": "TypeString", - "description": "Description of resource query param variable.", + "description": "When the User who set the state of the Object.", "computed": true }, - "name": { - "name": "name", + "set_by": { + "name": "set_by", "type": "TypeString", - "description": "Name of the resource query param.", + "description": "Name of the User who set the state of the Object.", "computed": true }, - "value": { - "name": "value", + "state": { + "name": "state", "type": "TypeString", - "description": "Value of the resource query param.", + "description": "User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution.", "computed": true } } }, - "query_select": { - "name": "query_select", + "tags": { + "name": "tags", "type": "TypeList", - "description": "List of query selection parameters.", + "description": "Tags for the Schematics customization policy.", "computed": true, "elem": { "type": "TypeString" } }, - "query_type": { - "name": "query_type", + "updated_at": { + "name": "updated_at", "type": "TypeString", - "description": "Type of the query(workspaces).", + "description": "The policy updation time.", "computed": true } } - }, + } + ], + "ibm_schematics_policy": [ { - "name": "updated_at", - "type": "TypeString", - "description": "Resource query updation time.", - "computed": true + "name": "tags", + "type": "TypeList", + "description": "Tags for the Schematics customization policy.", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "location", - "type": "TypeString", - "description": "The Region of the workspace.", - "cloud_data_type": "region", - "optional": true + "name": "target", + "type": "TypeList", + "description": "The objects for the Schematics policy.", + "computed": true, + "elem": { + "selector_ids": { + "name": "selector_ids", + "type": "TypeList", + "description": "Static selectors of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "selector_kind": { + "name": "selector_kind", + "type": "TypeString", + "description": "Types of schematics object selector.", + "computed": true + }, + "selector_scope": { + "name": "selector_scope", + "type": "TypeList", + "description": "Selectors to dynamically list of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy.", + "computed": true, + "elem": { + "kind": { + "name": "kind", + "type": "TypeString", + "description": "Name of the Schematics automation resource.", + "computed": true + }, + "locations": { + "name": "locations", + "type": "TypeList", + "description": "The location based selector.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "resource_groups": { + "name": "resource_groups", + "type": "TypeList", + "description": "The resource group based selector.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "tags": { + "name": "tags", + "type": "TypeList", + "description": "The tag based selector.", + "computed": true, + "elem": { + "type": "TypeString" + } + } + } + } + } }, { - "name": "type", + "name": "crn", "type": "TypeString", - "description": "Resource type (cluster, vsi, icd, vpc).", + "description": "The policy CRN.", + "cloud_data_type": "crn", "computed": true }, { - "name": "name", + "name": "policy_id", "type": "TypeString", - "description": "Resource query name.", - "computed": true + "description": "ID to get the details of policy.", + "required": true }, { - "name": "id", - "type": "TypeString", - "description": "Resource Query id.", - "computed": true + "name": "state", + "type": "TypeList", + "description": "User defined status of the Schematics object.", + "computed": true, + "elem": { + "set_at": { + "name": "set_at", + "type": "TypeString", + "description": "When the User who set the state of the Object.", + "computed": true + }, + "set_by": { + "name": "set_by", + "type": "TypeString", + "description": "Name of the User who set the state of the Object.", + "computed": true + }, + "state": { + "name": "state", + "type": "TypeString", + "description": "User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution.", + "computed": true + } + } }, { - "name": "created_at", + "name": "resource_group", "type": "TypeString", - "description": "Resource query creation time.", + "description": "The resource group name for the policy. By default, Policy will be created in `default` Resource Group.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "created_by", + "name": "location", "type": "TypeString", - "description": "Email address of user who created the Resource query.", + "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "cloud_data_type": "region", "computed": true }, { - "name": "query_id", - "type": "TypeString", - "description": "Resource query Id. Use `GET /v2/resource_query` API to look up the Resource query definition Ids in your IBM Cloud account.", - "required": true - } - ], - "ibm_schematics_state": [ - { - "name": "workspace_id", - "type": "TypeString", - "description": "The ID of the workspace for which you want to retrieve the Terraform statefile URL. To find the workspace ID, use the GET /v1/workspaces API.", - "required": true - }, - { - "name": "location", + "name": "created_by", "type": "TypeString", - "description": "The Region of the workspace.", - "cloud_data_type": "region", - "optional": true + "description": "The user who created the policy.", + "computed": true }, { - "name": "template_id", + "name": "name", "type": "TypeString", - "description": "The ID of the Terraform template for which you want to retrieve the Terraform statefile. When you create a workspace, the Terraform template that your workspace points to is assigned a unique ID. To find this ID, use the GET /v1/workspaces API and review the template_data.id value.", - "required": true + "description": "Name of Schematics customization policy.", + "computed": true }, { - "name": "state_store", + "name": "description", "type": "TypeString", + "description": "The description of Schematics customization policy.", "computed": true }, { - "name": "state_store_json", + "name": "id", "type": "TypeString", + "description": "The system generated policy Id.", "computed": true }, { - "name": "resource_controller_url", + "name": "account", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this workspace", + "description": "The Account id.", "computed": true - } - ], - "ibm_schematics_workspace": [ + }, { - "name": "template_inputs", + "name": "scoped_resources", "type": "TypeList", - "description": "Information about the input variables that your template uses.", + "description": "List of scoped Schematics resources targeted by the policy.", "computed": true, "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "The description of your input variable.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The name of the variable.", - "computed": true - }, - "secure": { - "name": "secure", - "type": "TypeBool", - "description": "If set to `true`, the value of your input variable is protected and not returned in your API response.", - "computed": true - }, - "type": { - "name": "type", + "id": { + "name": "id", "type": "TypeString", - "description": "`Terraform v0.11` supports `string`, `list`, `map` data type. For more information, about the syntax, see [Configuring input variables](https://www.terraform.io/docs/configuration-0-11/variables.html).\u003cbr\u003e `Terraform v0.12` additionally, supports `bool`, `number` and complex data types such as `list(type)`, `map(type)`,`object({attribute name=type,..})`, `set(type)`, `tuple([type])`. For more information, about the syntax to use the complex data type, see [Configuring variables](https://www.terraform.io/docs/configuration/variables.html#type-constraints).", + "description": "Schematics resource Id.", "computed": true }, - "value": { - "name": "value", + "kind": { + "name": "kind", "type": "TypeString", - "description": "Enter the value as a string for the primitive types such as `bool`, `number`, `string`, and `HCL` format for the complex variables, as you provide in a `.tfvars` file. **You need to enter escaped string of `HCL` format for the complex variable value**. For more information, about how to declare variables in a terraform configuration file and provide value to schematics, see [Providing values for the declared variables](https://cloud.ibm.com/docs/schematics?topic=schematics-create-tf-config#declare-variable).", + "description": "Name of the Schematics automation resource.", "computed": true } } }, - { - "name": "frozen", - "type": "TypeBool", - "description": "If set to true, the workspace is frozen and changes to the workspace are disabled.", - "computed": true - }, - { - "name": "frozen_at", - "type": "TypeString", - "description": "The timestamp when the workspace was frozen.", - "computed": true - }, - { - "name": "locked_time", - "type": "TypeString", - "description": "The timestamp when the workspace was locked.", - "computed": true - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this workspace", - "computed": true - }, { "name": "created_at", "type": "TypeString", - "description": "The timestamp when the workspace was created.", + "description": "The policy creation time.", "computed": true }, { - "name": "last_health_check_at", + "name": "updated_at", "type": "TypeString", - "description": "The timestamp when the last health check was performed by Schematics.", + "description": "The policy updation time.", "computed": true }, { - "name": "status", + "name": "kind", "type": "TypeString", - "description": "The status of the workspace. **Active**: After you successfully ran your infrastructure code by applying your Terraform execution plan, the state of your workspace changes to `Active`. **Connecting**: Schematics tries to connect to the template in your source repo. If successfully connected, the template is downloaded and metadata, such as input parameters, is extracted. After the template is downloaded, the state of the workspace changes to `Scanning`. **Draft**: The workspace is created without a reference to a GitHub or GitLab repository. **Failed**: If errors occur during the execution of your infrastructure code in IBM Cloud Schematics, your workspace status is set to `Failed`. **Inactive**: The Terraform template was scanned successfully and the workspace creation is complete. You can now start running Schematics plan and apply jobs to provision the IBM Cloud resources that you specified in your template. If you have an `Active` workspace and decide to remove all your resources, your workspace is set to `Inactive` after all your resources are removed. **In progress**: When you instruct IBM Cloud Schematics to run your infrastructure code by applying your Terraform execution plan, the status of our workspace changes to `In progress`. **Scanning**: The download of the Terraform template is complete and vulnerability scanning started. If the scan is successful, the workspace state changes to `Inactive`. If errors in your template are found, the state changes to `Template Error`. **Stopped**: The Schematics plan, apply, or destroy job was cancelled manually. **Template Error**: The Schematics template contains errors and cannot be processed.", + "description": "Policy kind or categories for managing and deriving policy decision * `agent_assignment_policy` Agent assignment policy for job execution.", "computed": true }, { - "name": "template_env_settings", + "name": "parameter", "type": "TypeList", - "description": "List of environment values.", + "description": "The parameter to tune the Schematics policy.", "computed": true, "elem": { - "hidden": { - "name": "hidden", - "type": "TypeBool", - "description": "If set to `true`, the value of your input variable is protected and not returned in your API response.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The name of the variable.", - "computed": true - }, - "secure": { - "name": "secure", - "type": "TypeBool", - "description": "If set to `true`, the value of your input variable is protected and not returned in your API response.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Enter the value as a string for the primitive types such as `bool`, `number`, `string`, and `HCL` format for the complex variables, as you provide in a `.tfvars` file. **You need to enter escaped string of `HCL` format for the complex variable value**. For more information, about how to declare variables in a terraform configuration file and provide value to schematics, see [Providing values for the declared variables](/docs/schematics?topic=schematics-create-tf-config#declare-variable).", - "computed": true + "agent_assignment_policy_parameter": { + "name": "agent_assignment_policy_parameter", + "type": "TypeList", + "description": "Parameters for the `agent_assignment_policy`.", + "computed": true, + "elem": { + "selector_ids": { + "name": "selector_ids", + "type": "TypeList", + "description": "The static selectors of schematics object ids (workspace, action or blueprint) for the Schematics policy.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "selector_kind": { + "name": "selector_kind", + "type": "TypeString", + "description": "Types of schematics object selector.", + "computed": true + }, + "selector_scope": { + "name": "selector_scope", + "type": "TypeList", + "description": "The selectors to dynamically list of schematics object ids (workspace, action or blueprint) for the Schematics policy.", + "computed": true, + "elem": { + "kind": { + "name": "kind", + "type": "TypeString", + "description": "Name of the Schematics automation resource.", + "computed": true + }, + "locations": { + "name": "locations", + "type": "TypeList", + "description": "The location based selector.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "resource_groups": { + "name": "resource_groups", + "type": "TypeList", + "description": "The resource group based selector.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "tags": { + "name": "tags", + "type": "TypeList", + "description": "The tag based selector.", + "computed": true, + "elem": { + "type": "TypeString" + } + } + } + } + } } } + } + ], + "ibm_schematics_resource_query": [ + { + "name": "location", + "type": "TypeString", + "description": "The Region of the workspace.", + "cloud_data_type": "region", + "optional": true }, { - "name": "template_git_full_url", + "name": "name", "type": "TypeString", - "description": "Full repository URL.", + "description": "Resource query name.", "computed": true }, { - "name": "is_frozen", - "type": "TypeBool", - "computed": true, - "deprecated": "use frozen instead" + "name": "updated_at", + "type": "TypeString", + "description": "Resource query updation time.", + "computed": true }, { - "name": "location", + "name": "updated_by", "type": "TypeString", - "description": "The IBM Cloud location where your workspace was provisioned.", - "cloud_data_type": "region", - "optional": true, + "description": "Email address of user who updated the Resource query.", "computed": true }, { - "name": "shared_data", + "name": "queries", "type": "TypeList", - "description": "Information about the Target used by the templates originating from IBM Cloud catalog offerings. This information is not relevant when you create a workspace from your own Terraform template.", "computed": true, "elem": { - "cluster_id": { - "name": "cluster_id", - "type": "TypeString", - "description": "The ID of the cluster where you want to provision the resources of all IBM Cloud catalog templates that are included in the catalog offering.", - "computed": true - }, - "cluster_name": { - "name": "cluster_name", - "type": "TypeString", - "description": "Target cluster name.", - "computed": true - }, - "entitlement_keys": { - "name": "entitlement_keys", + "query_condition": { + "name": "query_condition", "type": "TypeList", - "description": "The entitlement key that you want to use to install IBM Cloud entitled software.", "computed": true, "elem": { - "type": "TypeMap" + "description": { + "name": "description", + "type": "TypeString", + "description": "Description of resource query param variable.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the resource query param.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Value of the resource query param.", + "computed": true + } } }, - "namespace": { - "name": "namespace", - "type": "TypeString", - "description": "The Kubernetes namespace or OpenShift project where the resources of all IBM Cloud catalog templates that are included in the catalog offering are deployed into.", - "computed": true - }, - "region": { - "name": "region", - "type": "TypeString", - "description": "The IBM Cloud region that you want to use for the resources of all IBM Cloud catalog templates that are included in the catalog offering.", - "computed": true + "query_select": { + "name": "query_select", + "type": "TypeList", + "description": "List of query selection parameters.", + "computed": true, + "elem": { + "type": "TypeString" + } }, - "resource_group_id": { - "name": "resource_group_id", + "query_type": { + "name": "query_type", "type": "TypeString", - "description": "The ID of the resource group that you want to use for the resources of all IBM Cloud catalog templates that are included in the catalog offering.", + "description": "Type of the query(workspaces).", "computed": true } } }, { - "name": "template_git_release", + "name": "query_id", "type": "TypeString", - "description": "The repository release.", + "description": "Resource query Id. Use `GET /v2/resource_query` API to look up the Resource query definition Ids in your IBM Cloud account.", + "required": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Resource type (cluster, vsi, icd, vpc).", "computed": true }, { - "name": "template_git_repo_url", + "name": "id", "type": "TypeString", - "description": "The repository URL.", + "description": "Resource Query id.", "computed": true }, { - "name": "frozen_by", + "name": "created_at", "type": "TypeString", - "description": "The user ID that froze the workspace.", + "description": "Resource query creation time.", "computed": true }, { - "name": "crn", + "name": "created_by", "type": "TypeString", - "description": "The workspace CRN.", - "cloud_data_type": "crn", + "description": "Email address of user who created the Resource query.", "computed": true + } + ], + "ibm_schematics_state": [ + { + "name": "workspace_id", + "type": "TypeString", + "description": "The ID of the workspace for which you want to retrieve the Terraform statefile URL. To find the workspace ID, use the GET /v1/workspaces API.", + "required": true }, { - "name": "description", + "name": "location", + "type": "TypeString", + "description": "The Region of the workspace.", + "cloud_data_type": "region", + "optional": true + }, + { + "name": "template_id", + "type": "TypeString", + "description": "The ID of the Terraform template for which you want to retrieve the Terraform statefile. When you create a workspace, the Terraform template that your workspace points to is assigned a unique ID. To find this ID, use the GET /v1/workspaces API and review the template_data.id value.", + "required": true + }, + { + "name": "state_store", "type": "TypeString", - "description": "The description of the workspace.", "computed": true }, { - "name": "status_msg", + "name": "state_store_json", "type": "TypeString", - "description": "The success or error message that was returned for the last plan, apply, or destroy job that ran against your workspace.", + "computed": true + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this workspace", + "computed": true + } + ], + "ibm_schematics_workspace": [ + { + "name": "locked", + "type": "TypeBool", + "description": "If set to true, the workspace is locked and disabled for changes.", "computed": true }, { @@ -76537,6 +78924,49 @@ "description": "The user ID that initiated a resource-related job, such as applying or destroying resources, that locked the workspace.", "computed": true }, + { + "name": "description", + "type": "TypeString", + "description": "The description of the workspace.", + "computed": true + }, + { + "name": "template_type", + "type": "TypeString", + "description": "The Terraform version that was used to run your Terraform code.", + "computed": true + }, + { + "name": "template_git_release", + "type": "TypeString", + "description": "The repository release.", + "computed": true + }, + { + "name": "template_git_repo_sha_value", + "type": "TypeString", + "description": "The repository SHA value.", + "computed": true + }, + { + "name": "is_frozen", + "type": "TypeBool", + "computed": true, + "deprecated": "use frozen instead" + }, + { + "name": "frozen", + "type": "TypeBool", + "description": "If set to true, the workspace is frozen and changes to the workspace are disabled.", + "computed": true + }, + { + "name": "is_locked", + "type": "TypeBool", + "description": "If set to true, the workspace is locked and disabled for changes.", + "computed": true, + "deprecated": "Use locked instead" + }, { "name": "catalog_ref", "type": "TypeList", @@ -76599,6 +79029,45 @@ } } }, + { + "name": "last_health_check_at", + "type": "TypeString", + "description": "The timestamp when the last health check was performed by Schematics.", + "computed": true + }, + { + "name": "location", + "type": "TypeString", + "description": "The IBM Cloud location where your workspace was provisioned.", + "cloud_data_type": "region", + "optional": true, + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the workspace.", + "computed": true + }, + { + "name": "template_uninstall_script_name", + "type": "TypeString", + "description": "Uninstall script name.", + "computed": true + }, + { + "name": "updated_by", + "type": "TypeString", + "description": "The user ID that updated the workspace.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The workspace CRN.", + "cloud_data_type": "crn", + "computed": true + }, { "name": "runtime_data", "type": "TypeList", @@ -76662,44 +79131,21 @@ } }, { - "name": "tags", - "type": "TypeList", - "description": "A list of tags that are associated with the workspace.", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "template_git_branch", + "name": "status", "type": "TypeString", - "description": "The repository branch.", + "description": "The status of the workspace. **Active**: After you successfully ran your infrastructure code by applying your Terraform execution plan, the state of your workspace changes to `Active`. **Connecting**: Schematics tries to connect to the template in your source repo. If successfully connected, the template is downloaded and metadata, such as input parameters, is extracted. After the template is downloaded, the state of the workspace changes to `Scanning`. **Draft**: The workspace is created without a reference to a GitHub or GitLab repository. **Failed**: If errors occur during the execution of your infrastructure code in IBM Cloud Schematics, your workspace status is set to `Failed`. **Inactive**: The Terraform template was scanned successfully and the workspace creation is complete. You can now start running Schematics plan and apply jobs to provision the IBM Cloud resources that you specified in your template. If you have an `Active` workspace and decide to remove all your resources, your workspace is set to `Inactive` after all your resources are removed. **In progress**: When you instruct IBM Cloud Schematics to run your infrastructure code by applying your Terraform execution plan, the status of our workspace changes to `In progress`. **Scanning**: The download of the Terraform template is complete and vulnerability scanning started. If the scan is successful, the workspace state changes to `Inactive`. If errors in your template are found, the state changes to `Template Error`. **Stopped**: The Schematics plan, apply, or destroy job was cancelled manually. **Template Error**: The Schematics template contains errors and cannot be processed.", "computed": true }, { - "name": "template_git_url", + "name": "template_values", "type": "TypeString", - "description": "The source URL.", + "description": "A list of variable values that you want to apply during the Helm chart installation. The list must be provided in JSON format, such as `\"\"autoscaling: enabled: true minReplicas: 2\"`. The values that you define here override the default Helm chart values. This field is supported only for IBM Cloud catalog offerings that are provisioned by using the Terraform Helm provider.", "computed": true }, { - "name": "is_locked", - "type": "TypeBool", - "description": "If set to true, the workspace is locked and disabled for changes.", - "computed": true, - "deprecated": "Use locked instead" - }, - { - "name": "updated_at", + "name": "resource_controller_url", "type": "TypeString", - "description": "The timestamp when the workspace was last updated.", - "computed": true - }, - { - "name": "locked", - "type": "TypeBool", - "description": "If set to true, the workspace is locked and disabled for changes.", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this workspace", "computed": true }, { @@ -76712,15 +79158,19 @@ } }, { - "name": "template_git_folder", - "type": "TypeString", - "description": "The subfolder in your GitHub or GitLab repository where your Terraform template is stored. If your template is stored in the root directory, `.` is returned.", - "computed": true + "name": "tags", + "type": "TypeList", + "description": "A list of tags that are associated with the workspace.", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "template_values", + "name": "template_git_folder", "type": "TypeString", - "description": "A list of variable values that you want to apply during the Helm chart installation. The list must be provided in JSON format, such as `\"\"autoscaling: enabled: true minReplicas: 2\"`. The values that you define here override the default Helm chart values. This field is supported only for IBM Cloud catalog offerings that are provisioned by using the Terraform Helm provider.", + "description": "The subfolder in your GitHub or GitLab repository where your Terraform template is stored. If your template is stored in the root directory, `.` is returned.", "computed": true }, { @@ -76859,34 +79309,72 @@ "computed": true }, { - "name": "template_git_repo_sha_value", + "name": "template_git_full_url", "type": "TypeString", - "description": "The repository SHA value.", + "description": "Full repository URL.", "computed": true }, { - "name": "name", + "name": "resource_group", "type": "TypeString", - "description": "The name of the workspace.", + "description": "The resource group the workspace was provisioned in.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "template_uninstall_script_name", + "name": "template_init_state_file", "type": "TypeString", - "description": "Uninstall script name.", + "description": "Init state file.", "computed": true }, { - "name": "template_git_has_uploadedgitrepotar", - "type": "TypeBool", - "description": "Has uploaded Git repository tar.", - "optional": true, + "name": "template_inputs", + "type": "TypeList", + "description": "Information about the input variables that your template uses.", + "computed": true, + "elem": { + "description": { + "name": "description", + "type": "TypeString", + "description": "The description of your input variable.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The name of the variable.", + "computed": true + }, + "secure": { + "name": "secure", + "type": "TypeBool", + "description": "If set to `true`, the value of your input variable is protected and not returned in your API response.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "`Terraform v0.11` supports `string`, `list`, `map` data type. For more information, about the syntax, see [Configuring input variables](https://www.terraform.io/docs/configuration-0-11/variables.html).\u003cbr\u003e `Terraform v0.12` additionally, supports `bool`, `number` and complex data types such as `list(type)`, `map(type)`,`object({attribute name=type,..})`, `set(type)`, `tuple([type])`. For more information, about the syntax to use the complex data type, see [Configuring variables](https://www.terraform.io/docs/configuration/variables.html#type-constraints).", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Enter the value as a string for the primitive types such as `bool`, `number`, `string`, and `HCL` format for the complex variables, as you provide in a `.tfvars` file. **You need to enter escaped string of `HCL` format for the complex variable value**. For more information, about how to declare variables in a terraform configuration file and provide value to schematics, see [Providing values for the declared variables](https://cloud.ibm.com/docs/schematics?topic=schematics-create-tf-config#declare-variable).", + "computed": true + } + } + }, + { + "name": "frozen_by", + "type": "TypeString", + "description": "The user ID that froze the workspace.", "computed": true }, { - "name": "status_code", + "name": "locked_time", "type": "TypeString", - "description": "The success or error code that was returned for the last plan, apply, or destroy job that ran against your workspace.", + "description": "The timestamp when the workspace was locked.", "computed": true }, { @@ -76902,55 +79390,141 @@ "computed": true }, { - "name": "resource_group", + "name": "template_git_branch", "type": "TypeString", - "description": "The resource group the workspace was provisioned in.", - "cloud_data_type": "resource_group", + "description": "The repository branch.", "computed": true }, { - "name": "template_init_state_file", + "name": "frozen_at", "type": "TypeString", - "description": "Init state file.", + "description": "The timestamp when the workspace was frozen.", "computed": true }, { - "name": "template_type", + "name": "status_code", "type": "TypeString", - "description": "The Terraform version that was used to run your Terraform code.", + "description": "The success or error code that was returned for the last plan, apply, or destroy job that ran against your workspace.", "computed": true }, { - "name": "updated_by", + "name": "template_git_repo_url", "type": "TypeString", - "description": "The user ID that updated the workspace.", + "description": "The repository URL.", "computed": true - } - ], - "ibm_secrets_manager_secret": [ + }, { - "name": "api_key", + "name": "template_git_url", "type": "TypeString", - "description": "The API key that is generated for this secret.After the secret reaches the end of its lease (see the `ttl` field), the API key is deleted automatically. If you want to continue to use the same API key for future read operations, see the `reuse_api_key` field.", - "secure": true, + "description": "The source URL.", "computed": true }, { - "name": "instance_id", + "name": "created_at", "type": "TypeString", - "description": "Secrets Manager instance GUID", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:secrets-manager" - ] + "description": "The timestamp when the workspace was created.", + "computed": true }, { - "name": "creation_date", + "name": "shared_data", + "type": "TypeList", + "description": "Information about the Target used by the templates originating from IBM Cloud catalog offerings. This information is not relevant when you create a workspace from your own Terraform template.", + "computed": true, + "elem": { + "cluster_id": { + "name": "cluster_id", + "type": "TypeString", + "description": "The ID of the cluster where you want to provision the resources of all IBM Cloud catalog templates that are included in the catalog offering.", + "computed": true + }, + "cluster_name": { + "name": "cluster_name", + "type": "TypeString", + "description": "Target cluster name.", + "computed": true + }, + "entitlement_keys": { + "name": "entitlement_keys", + "type": "TypeList", + "description": "The entitlement key that you want to use to install IBM Cloud entitled software.", + "computed": true, + "elem": { + "type": "TypeMap" + } + }, + "namespace": { + "name": "namespace", + "type": "TypeString", + "description": "The Kubernetes namespace or OpenShift project where the resources of all IBM Cloud catalog templates that are included in the catalog offering are deployed into.", + "computed": true + }, + "region": { + "name": "region", + "type": "TypeString", + "description": "The IBM Cloud region that you want to use for the resources of all IBM Cloud catalog templates that are included in the catalog offering.", + "computed": true + }, + "resource_group_id": { + "name": "resource_group_id", + "type": "TypeString", + "description": "The ID of the resource group that you want to use for the resources of all IBM Cloud catalog templates that are included in the catalog offering.", + "computed": true + } + } + }, + { + "name": "template_env_settings", + "type": "TypeList", + "description": "List of environment values.", + "computed": true, + "elem": { + "hidden": { + "name": "hidden", + "type": "TypeBool", + "description": "If set to `true`, the value of your input variable is protected and not returned in your API response.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The name of the variable.", + "computed": true + }, + "secure": { + "name": "secure", + "type": "TypeBool", + "description": "If set to `true`, the value of your input variable is protected and not returned in your API response.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Enter the value as a string for the primitive types such as `bool`, `number`, `string`, and `HCL` format for the complex variables, as you provide in a `.tfvars` file. **You need to enter escaped string of `HCL` format for the complex variable value**. For more information, about how to declare variables in a terraform configuration file and provide value to schematics, see [Providing values for the declared variables](/docs/schematics?topic=schematics-create-tf-config#declare-variable).", + "computed": true + } + } + }, + { + "name": "template_git_has_uploadedgitrepotar", + "type": "TypeBool", + "description": "Has uploaded Git repository tar.", + "optional": true, + "computed": true + }, + { + "name": "updated_at", "type": "TypeString", - "description": "The date the secret was created. The date format follows RFC 3339.", + "description": "The timestamp when the workspace was last updated.", "computed": true }, + { + "name": "status_msg", + "type": "TypeString", + "description": "The success or error message that was returned for the last plan, apply, or destroy job that ran against your workspace.", + "computed": true + } + ], + "ibm_secrets_manager_secret": [ { "name": "secret_data", "type": "TypeMap", @@ -76959,10 +79533,35 @@ "computed": true }, { - "name": "password", + "name": "service_id", "type": "TypeString", - "description": "The password to assign to this secret.", - "secure": true, + "description": "The service ID under which the API key (see the `api_key` field) is created. This service ID is added to the access groups that you assign for this secret.", + "computed": true + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "Endpoint Type. 'public' or 'private'", + "default_value": "public", + "options": "public, private", + "optional": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier for the entity that created the secret.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret.", + "computed": true + }, + { + "name": "secret_group_id", + "type": "TypeString", + "description": "The v4 UUID that uniquely identifies the secret group to assign to this secret.If you omit this parameter, your secret is assigned to the `default` secret group.", "computed": true }, { @@ -76975,54 +79574,66 @@ } }, { - "name": "secret_id", - "type": "TypeString", - "description": "The v4 UUID that uniquely identifies the secret.", - "required": true - }, - { - "name": "next_rotation_date", + "name": "name", "type": "TypeString", - "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that can be auto-rotated and have an existing rotation policy.", + "description": "A human-readable alias to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as an alias for your secret.", "computed": true }, { - "name": "name", + "name": "crn", "type": "TypeString", - "description": "A human-readable alias to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as an alias for your secret.", + "description": "The Cloud Resource Name (CRN) that uniquely identifies your Secrets Manager resource.", + "cloud_data_type": "crn", "computed": true }, { - "name": "state_description", + "name": "ttl", "type": "TypeString", - "description": "A text representation of the secret state.", + "description": "The time-to-live (TTL) or lease duration to assign to generated credentials.For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value can be either an integer that specifies the number of seconds, or the string representation of a duration, such as `120m` or `24h`.", "computed": true }, { - "name": "last_update_date", + "name": "instance_id", "type": "TypeString", - "description": "Updates when the actual secret is modified. The date format follows RFC 3339.", - "computed": true + "description": "Secrets Manager instance GUID", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:secrets-manager" + ] }, { - "name": "expiration_date", + "name": "password", "type": "TypeString", - "description": "The date the secret material expires. The date format follows RFC 3339.You can set an expiration date on supported secret types at their creation. If you create a secret without specifying an expiration date, the secret does not expire. The `expiration_date` field is supported for the following secret types:- `arbitrary`- `username_password`.", + "description": "The password to assign to this secret.", + "secure": true, "computed": true }, { - "name": "service_id", + "name": "next_rotation_date", "type": "TypeString", - "description": "The service ID under which the API key (see the `api_key` field) is created. This service ID is added to the access groups that you assign for this secret.", + "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that can be auto-rotated and have an existing rotation policy.", "computed": true }, { - "name": "endpoint_type", - "type": "TypeString", - "description": "Endpoint Type. 'public' or 'private'", - "default_value": "public", - "options": "public, private", - "optional": true + "name": "metadata", + "type": "TypeList", + "description": "The metadata that describes the resource array.", + "computed": true, + "elem": { + "collection_total": { + "name": "collection_total", + "type": "TypeInt", + "description": "The number of elements in the resource array.", + "computed": true + }, + "collection_type": { + "name": "collection_type", + "type": "TypeString", + "description": "The type of resources in the resource array.", + "computed": true + } + } }, { "name": "type", @@ -77031,15 +79642,24 @@ "computed": true }, { - "name": "secret_group_id", + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to filter for secrets in your instance.Up to 30 labels can be created. Labels can be between 2-30 characters, including spaces. Special characters not permitted include the angled bracket, comma, colon, ampersand, and vertical pipe character (|).To protect your privacy, do not use personal data, such as your name or location, as a label for your secret.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "state_description", "type": "TypeString", - "description": "The v4 UUID that uniquely identifies the secret group to assign to this secret.If you omit this parameter, your secret is assigned to the `default` secret group.", + "description": "A text representation of the secret state.", "computed": true }, { - "name": "created_by", + "name": "last_update_date", "type": "TypeString", - "description": "The unique identifier for the entity that created the secret.", + "description": "Updates when the actual secret is modified. The date format follows RFC 3339.", "computed": true }, { @@ -77074,6 +79694,13 @@ } } }, + { + "name": "secret_type", + "type": "TypeString", + "description": "The secret type. Supported options include: arbitrary, iam_credentials, username_password.", + "required": true, + "options": "arbitrary,iam_credentials,imported_cert,public_cert,private_cert,username_password,kv" + }, { "name": "username", "type": "TypeString", @@ -77082,32 +79709,12 @@ "computed": true }, { - "name": "crn", + "name": "payload", "type": "TypeString", - "description": "The Cloud Resource Name (CRN) that uniquely identifies your Secrets Manager resource.", - "cloud_data_type": "crn", + "description": "The new secret data to assign to an `arbitrary` secret.", + "secure": true, "computed": true }, - { - "name": "metadata", - "type": "TypeList", - "description": "The metadata that describes the resource array.", - "computed": true, - "elem": { - "collection_total": { - "name": "collection_total", - "type": "TypeInt", - "description": "The number of elements in the resource array.", - "computed": true - }, - "collection_type": { - "name": "collection_type", - "type": "TypeString", - "description": "The type of resources in the resource array.", - "computed": true - } - } - }, { "name": "state", "type": "TypeInt", @@ -77115,45 +79722,35 @@ "computed": true }, { - "name": "payload", + "name": "creation_date", "type": "TypeString", - "description": "The new secret data to assign to an `arbitrary` secret.", - "secure": true, - "computed": true - }, - { - "name": "reuse_api_key", - "type": "TypeBool", - "description": "(IAM credentials) Reuse the service ID and API key for future read operations.", + "description": "The date the secret was created. The date format follows RFC 3339.", "computed": true }, { - "name": "secret_type", + "name": "expiration_date", "type": "TypeString", - "description": "The secret type. Supported options include: arbitrary, iam_credentials, username_password.", - "required": true, - "options": "arbitrary,iam_credentials,imported_cert,public_cert,private_cert,username_password,kv" + "description": "The date the secret material expires. The date format follows RFC 3339.You can set an expiration date on supported secret types at their creation. If you create a secret without specifying an expiration date, the secret does not expire. The `expiration_date` field is supported for the following secret types:- `arbitrary`- `username_password`.", + "computed": true }, { - "name": "description", + "name": "api_key", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret.", + "description": "The API key that is generated for this secret.After the secret reaches the end of its lease (see the `ttl` field), the API key is deleted automatically. If you want to continue to use the same API key for future read operations, see the `reuse_api_key` field.", + "secure": true, "computed": true }, { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to filter for secrets in your instance.Up to 30 labels can be created. Labels can be between 2-30 characters, including spaces. Special characters not permitted include the angled bracket, comma, colon, ampersand, and vertical pipe character (|).To protect your privacy, do not use personal data, such as your name or location, as a label for your secret.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "reuse_api_key", + "type": "TypeBool", + "description": "(IAM credentials) Reuse the service ID and API key for future read operations.", + "computed": true }, { - "name": "ttl", + "name": "secret_id", "type": "TypeString", - "description": "The time-to-live (TTL) or lease duration to assign to generated credentials.For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value can be either an integer that specifies the number of seconds, or the string representation of a duration, such as `120m` or `24h`.", - "computed": true + "description": "The v4 UUID that uniquely identifies the secret.", + "required": true } ], "ibm_secrets_manager_secrets": [ @@ -77469,12 +80066,6 @@ } ], "ibm_service_key": [ - { - "name": "space_guid", - "type": "TypeString", - "description": "The guid of the space in which the service instance is present", - "required": true - }, { "name": "credentials", "type": "TypeMap", @@ -77493,39 +80084,58 @@ "type": "TypeString", "description": "Service instance name for example, speech_to_text", "required": true + }, + { + "name": "space_guid", + "type": "TypeString", + "description": "The guid of the space in which the service instance is present", + "required": true } ], "ibm_service_plan": [ { - "name": "plan", + "name": "service", "type": "TypeString", - "description": "The plan type ex- shared", + "description": "Service name for example, cloudantNoSQLDB", "required": true }, { - "name": "service", + "name": "plan", "type": "TypeString", - "description": "Service name for example, cloudantNoSQLDB", + "description": "The plan type ex- shared", "required": true } ], "ibm_sm_arbitrary_secret": [ { - "name": "expiration_date", + "name": "name", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", + "description": "The human-readable name of your secret.", + "optional": true, "computed": true }, { - "name": "endpoint_type", + "name": "secret_group_name", "type": "TypeString", - "description": "public or private.", + "description": "The human-readable name of your secret group.", "optional": true }, { - "name": "created_at", + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "computed": true + }, + { + "name": "state_description", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "A text representation of the secret state.", + "computed": true + }, + { + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", "computed": true }, { @@ -77537,18 +80147,6 @@ "type": "TypeString" } }, - { - "name": "secret_type", - "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true - }, { "name": "downloaded", "type": "TypeBool", @@ -77556,9 +80154,9 @@ "computed": true }, { - "name": "secret_group_id", + "name": "updated_at", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { @@ -77577,34 +80175,16 @@ "required": true }, { - "name": "name", - "type": "TypeString", - "description": "The human-readable name of your secret.", - "computed": true - }, - { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", - "computed": true - }, - { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", - "computed": true - }, - { - "name": "created_by", + "name": "crn", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", "computed": true }, { - "name": "crn", + "name": "created_at", "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { @@ -77617,16 +80197,28 @@ } }, { - "name": "locks_total", + "name": "secret_group_id", + "type": "TypeString", + "description": "A v4 UUID identifier, or `default` secret group.", + "computed": true + }, + { + "name": "versions_total", "type": "TypeInt", - "description": "The number of locks of the secret.", + "description": "The number of versions of the secret.", "computed": true }, { - "name": "secret_id", + "name": "endpoint_type", "type": "TypeString", - "description": "The ID of the secret.", - "required": true + "description": "public or private.", + "optional": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier that is associated with the entity that created the secret.", + "computed": true }, { "name": "description", @@ -77635,9 +80227,15 @@ "computed": true }, { - "name": "state_description", + "name": "secret_type", "type": "TypeString", - "description": "A text representation of the secret state.", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "computed": true + }, + { + "name": "expiration_date", + "type": "TypeString", + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true }, { @@ -77648,13 +80246,59 @@ "immutable": true, "optional": true, "computed": true + }, + { + "name": "secret_id", + "type": "TypeString", + "description": "The ID of the secret.", + "optional": true, + "computed": true } ], "ibm_sm_arbitrary_secret_metadata": [ { - "name": "name", + "name": "description", "type": "TypeString", - "description": "The human-readable name of your secret.", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "computed": true + }, + { + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "computed": true + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true + }, + { + "name": "secret_id", + "type": "TypeString", + "description": "The ID of the secret.", + "required": true + }, + { + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", + "computed": true + }, + { + "name": "secret_group_id", + "type": "TypeString", + "description": "A v4 UUID identifier, or `default` secret group.", "computed": true }, { @@ -77663,6 +80307,12 @@ "description": "A text representation of the secret state.", "computed": true }, + { + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", + "computed": true + }, { "name": "instance_id", "type": "TypeString", @@ -77681,15 +80331,9 @@ "computed": true }, { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", - "computed": true - }, - { - "name": "expiration_date", + "name": "created_by", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { @@ -77699,12 +80343,6 @@ "cloud_data_type": "crn", "computed": true }, - { - "name": "description", - "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", - "computed": true - }, { "name": "downloaded", "type": "TypeBool", @@ -77721,33 +80359,15 @@ } }, { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", - "computed": true - }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, - { - "name": "secret_id", - "type": "TypeString", - "description": "The ID of the secret.", - "required": true - }, - { - "name": "created_at", + "name": "name", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The human-readable name of your secret.", "computed": true }, { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "name": "secret_type", + "type": "TypeString", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { @@ -77757,46 +80377,19 @@ "computed": true }, { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true - }, - { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "secret_group_id", + "name": "expiration_date", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true }, { - "name": "secret_type", + "name": "created_at", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true } ], "ibm_sm_configurations": [ - { - "name": "groups", - "type": "TypeString", - "description": "Filter secrets by groups. You can apply multiple filters by using a comma-separated list of secret group IDs. If you need to filter secrets that are in the default secret group, use the `default` keyword.", - "optional": true - }, - { - "name": "total_count", - "type": "TypeInt", - "description": "The total number of resources in a collection.", - "computed": true - }, { "name": "configurations", "type": "TypeList", @@ -77941,6 +80534,18 @@ "type": "TypeString", "description": "Obtain a collection of secrets that contain the specified string in one or more of the fields: `id`, `name`, `description`,\n `labels`, `secret_type`.", "optional": true + }, + { + "name": "groups", + "type": "TypeString", + "description": "Filter secrets by groups. You can apply multiple filters by using a comma-separated list of secret group IDs. If you need to filter secrets that are in the default secret group, use the `default` keyword.", + "optional": true + }, + { + "name": "total_count", + "type": "TypeInt", + "description": "The total number of resources in a collection.", + "computed": true } ], "ibm_sm_en_registration": [ @@ -77976,16 +80581,18 @@ ], "ibm_sm_iam_credentials_configuration": [ { - "name": "name", + "name": "created_at", "type": "TypeString", - "description": "The name of the configuration.", - "required": true + "description": "The date when a resource was created. The date format follows RFC 3339.", + "computed": true }, { - "name": "secret_type", + "name": "instance_id", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", - "computed": true + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { "name": "region", @@ -77997,89 +80604,82 @@ "computed": true }, { - "name": "endpoint_type", + "name": "name", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The name of the configuration.", + "required": true }, { - "name": "config_type", + "name": "secret_type", "type": "TypeString", - "description": "The configuration type.", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "created_by", + "name": "updated_at", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "created_at", + "name": "api_key", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "An IBM Cloud API key that can create and manage service IDs. The API key must be assigned the Editor platform role on the Access Groups Service and the Operator platform role on the IAM Identity Service. For more information, see the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-configure-iam-engine).", + "secure": true, "computed": true }, { - "name": "updated_at", + "name": "endpoint_type", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true + "description": "public or private.", + "optional": true }, { - "name": "api_key", + "name": "config_type", "type": "TypeString", - "description": "An IBM Cloud API key that can create and manage service IDs. The API key must be assigned the Editor platform role on the Access Groups Service and the Operator platform role on the IAM Identity Service. For more information, see the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-configure-iam-engine).", - "secure": true, + "description": "The configuration type.", "computed": true }, { - "name": "instance_id", + "name": "created_by", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "description": "The unique identifier that is associated with the entity that created the secret.", + "computed": true } ], "ibm_sm_iam_credentials_secret": [ { - "name": "secret_id", - "type": "TypeString", - "description": "The ID of the secret.", - "required": true - }, - { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", + "name": "access_groups", + "type": "TypeList", + "description": "Access Groups that you can use for an `iam_credentials` secret.Up to 10 Access Groups can be used for each secret.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "description", + "name": "api_key", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "description": "The API key that is generated for this secret.After the secret reaches the end of its lease (see the `ttl` field), the API key is deleted automatically.", + "secure": true, "computed": true }, { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", - "computed": true + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true }, { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "name", + "name": "updated_at", "type": "TypeString", - "description": "The human-readable name of your secret.", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { @@ -78088,6 +80688,24 @@ "description": "The number of versions of the secret.", "computed": true }, + { + "name": "secret_group_id", + "type": "TypeString", + "description": "A v4 UUID identifier, or `default` secret group.", + "computed": true + }, + { + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "computed": true + }, + { + "name": "service_id_is_static", + "type": "TypeBool", + "description": "Indicates whether an `iam_credentials` secret was created with a static service ID.If it is set to `true`, the service ID for the secret was provided by the user at secret creation. If it is set to `false`, the service ID was generated by Secrets Manager.", + "computed": true + }, { "name": "reuse_api_key", "type": "TypeBool", @@ -78095,9 +80713,38 @@ "computed": true }, { - "name": "created_at", + "name": "crn", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The human-readable name of your secret.", + "optional": true, + "computed": true + }, + { + "name": "secret_type", + "type": "TypeString", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "computed": true + }, + { + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, { @@ -78110,50 +80757,65 @@ } }, { - "name": "api_key_id", + "name": "state_description", "type": "TypeString", - "description": "The ID of the API key that is generated for this secret.", + "description": "A text representation of the secret state.", "computed": true }, { - "name": "service_id_is_static", - "type": "TypeBool", - "description": "Indicates whether an `iam_credentials` secret was created with a static service ID.If it is set to `true`, the service ID for the secret was provided by the user at secret creation. If it is set to `false`, the service ID was generated by Secrets Manager.", + "name": "api_key_id", + "type": "TypeString", + "description": "The ID of the API key that is generated for this secret.", "computed": true }, { - "name": "region", + "name": "secret_id", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, + "description": "The ID of the secret.", "optional": true, "computed": true }, { - "name": "created_by", + "name": "ttl", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The time-to-live (TTL) or lease duration to assign to generated credentials.For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value can be either an integer that specifies the number of seconds, or the string representation of a duration, such as `120m` or `24h`.Minimum duration is 1 minute. Maximum is 90 days.", "computed": true }, { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "name": "next_rotation_date", + "type": "TypeString", + "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", "computed": true }, { - "name": "secret_type", + "name": "instance_id", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", - "computed": true + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { - "name": "state_description", + "name": "created_at", "type": "TypeString", - "description": "A text representation of the secret state.", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, + { + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "secret_group_name", + "type": "TypeString", + "description": "The human-readable name of your secret group.", + "optional": true + }, { "name": "rotation", "type": "TypeList", @@ -78187,57 +80849,41 @@ } }, { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true }, { - "name": "ttl", - "type": "TypeString", - "description": "The time-to-live (TTL) or lease duration to assign to generated credentials.For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value can be either an integer that specifies the number of seconds, or the string representation of a duration, such as `120m` or `24h`.Minimum duration is 1 minute. Maximum is 90 days.", + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", "computed": true }, { - "name": "access_groups", - "type": "TypeList", - "description": "Access Groups that you can use for an `iam_credentials` secret.Up to 10 Access Groups can be used for each secret.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "endpoint_type", + "name": "service_id", "type": "TypeString", - "description": "public or private.", - "optional": true - }, + "description": "The service ID under which the API key (see the `api_key` field) is created.If you omit this parameter, Secrets Manager generates a new service ID for your secret at its creation and adds it to the access groups that you assign.Optionally, you can use this field to provide your own service ID if you prefer to manage its access directly or retain the service ID after your secret expires, is rotated, or deleted. If you provide a service ID, do not include the `access_groups` parameter.", + "computed": true + } + ], + "ibm_sm_iam_credentials_secret_metadata": [ { - "name": "secret_group_id", + "name": "created_at", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "updated_at", - "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { - "name": "service_id", + "name": "api_key_id", "type": "TypeString", - "description": "The service ID under which the API key (see the `api_key` field) is created.If you omit this parameter, Secrets Manager generates a new service ID for your secret at its creation and adds it to the access groups that you assign.Optionally, you can use this field to provide your own service ID if you prefer to manage its access directly or retain the service ID after your secret expires, is rotated, or deleted. If you provide a service ID, do not include the `access_groups` parameter.", + "description": "The ID of the API key that is generated for this secret.", "computed": true }, { @@ -78247,30 +80893,12 @@ "computed": true }, { - "name": "api_key", - "type": "TypeString", - "description": "The API key that is generated for this secret.After the secret reaches the end of its lease (see the `ttl` field), the API key is deleted automatically.", - "secure": true, - "computed": true - } - ], - "ibm_sm_iam_credentials_secret_metadata": [ - { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", - "computed": true - }, - { - "name": "state_description", - "type": "TypeString", - "description": "A text representation of the secret state.", - "computed": true - }, - { - "name": "service_id", + "name": "region", "type": "TypeString", - "description": "The service ID under which the API key (see the `api_key` field) is created.If you omit this parameter, Secrets Manager generates a new service ID for your secret at its creation and adds it to the access groups that you assign.Optionally, you can use this field to provide your own service ID if you prefer to manage its access directly or retain the service ID after your secret expires, is rotated, or deleted. If you provide a service ID, do not include the `access_groups` parameter.", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, { @@ -78280,16 +80908,19 @@ "computed": true }, { - "name": "next_rotation_date", + "name": "secret_id", "type": "TypeString", - "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", - "computed": true + "description": "The ID of the secret.", + "required": true }, { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", - "computed": true + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "updated_at", @@ -78298,29 +80929,11 @@ "computed": true }, { - "name": "region", + "name": "ttl", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "description": "The time-to-live (TTL) or lease duration to assign to generated credentials.For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value can be either an integer that specifies the number of seconds, or the string representation of a duration, such as `120m` or `24h`.Minimum duration is 1 minute. Maximum is 90 days.", "computed": true }, - { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, { "name": "crn", "type": "TypeString", @@ -78329,22 +80942,22 @@ "computed": true }, { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", - "computed": true - }, - { - "name": "secret_type", - "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", - "computed": true + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "api_key_id", - "type": "TypeString", - "description": "The ID of the API key that is generated for this secret.", - "computed": true + "name": "access_groups", + "type": "TypeList", + "description": "Access Groups that you can use for an `iam_credentials` secret.Up to 10 Access Groups can be used for each secret.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "rotation", @@ -78379,10 +80992,16 @@ } }, { - "name": "secret_id", + "name": "state_description", "type": "TypeString", - "description": "The ID of the secret.", - "required": true + "description": "A text representation of the secret state.", + "computed": true + }, + { + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", + "computed": true }, { "name": "description", @@ -78391,33 +81010,33 @@ "computed": true }, { - "name": "secret_group_id", + "name": "name", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", + "description": "The human-readable name of your secret.", "computed": true }, { - "name": "reuse_api_key", + "name": "downloaded", "type": "TypeBool", - "description": "Determines whether to use the same service ID and API key for future read operations on an`iam_credentials` secret. The value is always `true` for IAM credentials secrets managed by Terraform.", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true }, { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", + "name": "secret_group_id", + "type": "TypeString", + "description": "A v4 UUID identifier, or `default` secret group.", "computed": true }, { - "name": "created_by", + "name": "secret_type", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "name": "reuse_api_key", + "type": "TypeBool", + "description": "Determines whether to use the same service ID and API key for future read operations on an`iam_credentials` secret. The value is always `true` for IAM credentials secrets managed by Terraform.", "computed": true }, { @@ -78429,60 +81048,57 @@ "required": true }, { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true }, { - "name": "name", + "name": "created_by", "type": "TypeString", - "description": "The human-readable name of your secret.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "ttl", - "type": "TypeString", - "description": "The time-to-live (TTL) or lease duration to assign to generated credentials.For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value can be either an integer that specifies the number of seconds, or the string representation of a duration, such as `120m` or `24h`.Minimum duration is 1 minute. Maximum is 90 days.", + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", "computed": true }, { - "name": "access_groups", - "type": "TypeList", - "description": "Access Groups that you can use for an `iam_credentials` secret.Up to 10 Access Groups can be used for each secret.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "service_id", + "type": "TypeString", + "description": "The service ID under which the API key (see the `api_key` field) is created.If you omit this parameter, Secrets Manager generates a new service ID for your secret at its creation and adds it to the access groups that you assign.Optionally, you can use this field to provide your own service ID if you prefer to manage its access directly or retain the service ID after your secret expires, is rotated, or deleted. If you provide a service ID, do not include the `access_groups` parameter.", + "computed": true } ], "ibm_sm_imported_certificate": [ { - "name": "secret_group_id", + "name": "created_at", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "state_description", + "name": "certificate", "type": "TypeString", - "description": "A text representation of the secret state.", + "description": "The PEM-encoded contents of your certificate.", + "secure": true, "computed": true }, { - "name": "crn", + "name": "region", "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The human-readable name of your secret.", + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", "computed": true }, { @@ -78492,22 +81108,13 @@ "computed": true }, { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "expiration_date", - "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", - "computed": true + "name": "alt_names", + "type": "TypeList", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "issuer", @@ -78516,56 +81123,71 @@ "computed": true }, { - "name": "key_algorithm", - "type": "TypeString", - "description": "The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.", - "computed": true + "name": "validity", + "type": "TypeList", + "description": "The date and time that the certificate validity period begins and ends.", + "computed": true, + "elem": { + "not_after": { + "name": "not_after", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + }, + "not_before": { + "name": "not_before", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + } + } }, { - "name": "alt_names", - "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "instance_id", + "name": "name", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "description": "The human-readable name of your secret.", + "optional": true, + "computed": true }, { - "name": "region", + "name": "signing_algorithm", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", + "computed": true + }, + { + "name": "private_key", + "type": "TypeString", + "description": "(Optional) The PEM-encoded private key to associate with the certificate.", + "secure": true, "computed": true }, { "name": "secret_id", "type": "TypeString", "description": "The ID of the secret.", - "required": true + "optional": true, + "computed": true }, { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "description", + "type": "TypeString", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "computed": true }, { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "name": "secret_group_id", + "type": "TypeString", + "description": "A v4 UUID identifier, or `default` secret group.", "computed": true }, { @@ -78574,6 +81196,18 @@ "description": "The number of versions of the secret.", "computed": true }, + { + "name": "expiration_date", + "type": "TypeString", + "description": "The date a secret is expired. The date format follows RFC 3339.", + "computed": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier that is associated with the entity that created the secret.", + "computed": true + }, { "name": "common_name", "type": "TypeString", @@ -78581,48 +81215,53 @@ "computed": true }, { - "name": "intermediate_included", - "type": "TypeBool", - "description": "Indicates whether the certificate was imported with an associated intermediate certificate.", + "name": "serial_number", + "type": "TypeString", + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", "computed": true }, { - "name": "private_key", + "name": "endpoint_type", "type": "TypeString", - "description": "(Optional) The PEM-encoded private key to associate with the certificate.", - "secure": true, - "computed": true + "description": "public or private.", + "optional": true }, { - "name": "validity", - "type": "TypeList", - "description": "The date and time that the certificate validity period begins and ends.", - "computed": true, - "elem": { - "not_after": { - "name": "not_after", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - }, - "not_before": { - "name": "not_before", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - } - } + "name": "crn", + "type": "TypeString", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", + "computed": true }, { - "name": "created_by", + "name": "updated_at", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "description", + "name": "private_key_included", + "type": "TypeBool", + "description": "Indicates whether the certificate was imported with an associated private key.", + "computed": true + }, + { + "name": "intermediate", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "description": "(Optional) The PEM-encoded intermediate certificate to associate with the root certificate.", + "secure": true, + "computed": true + }, + { + "name": "intermediate_included", + "type": "TypeBool", + "description": "Indicates whether the certificate was imported with an associated intermediate certificate.", + "computed": true + }, + { + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true }, { @@ -78635,34 +81274,43 @@ } }, { - "name": "signing_algorithm", + "name": "secret_group_name", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", - "computed": true + "description": "The human-readable name of your secret group.", + "optional": true }, { - "name": "locks_total", + "name": "state", "type": "TypeInt", - "description": "The number of locks of the secret.", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { - "name": "updated_at", + "name": "state_description", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "A text representation of the secret state.", "computed": true }, { - "name": "intermediate", + "name": "key_algorithm", "type": "TypeString", - "description": "(Optional) The PEM-encoded intermediate certificate to associate with the root certificate.", - "secure": true, + "description": "The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.", "computed": true }, { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + } + ], + "ibm_sm_imported_certificate_metadata": [ + { + "name": "secret_type", + "type": "TypeString", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { @@ -78672,54 +81320,54 @@ "computed": true }, { - "name": "serial_number", + "name": "created_by", "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "certificate", + "name": "secret_group_id", "type": "TypeString", - "description": "The PEM-encoded contents of your certificate.", - "secure": true, + "description": "A v4 UUID identifier, or `default` secret group.", "computed": true - } - ], - "ibm_sm_imported_certificate_metadata": [ + }, { - "name": "created_at", + "name": "serial_number", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", "computed": true }, { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", - "computed": true + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { - "name": "expiration_date", + "name": "updated_at", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "issuer", + "name": "key_algorithm", "type": "TypeString", - "description": "The distinguished name that identifies the entity that signed and issued the certificate.", + "description": "The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.", "computed": true }, { - "name": "state_description", + "name": "crn", "type": "TypeString", - "description": "A text representation of the secret state.", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", "computed": true }, { - "name": "key_algorithm", + "name": "state_description", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.", + "description": "A text representation of the secret state.", "computed": true }, { @@ -78743,34 +81391,36 @@ } }, { - "name": "created_by", + "name": "common_name", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The Common Name (AKA CN) represents the server name protected by the SSL certificate.", "computed": true }, { - "name": "crn", + "name": "region", "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, { - "name": "secret_group_id", + "name": "secret_id", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", - "computed": true + "description": "The ID of the secret.", + "required": true }, { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true }, { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", "computed": true, "elem": { "type": "TypeString" @@ -78783,42 +81433,16 @@ "computed": true }, { - "name": "name", + "name": "signing_algorithm", "type": "TypeString", - "description": "The human-readable name of your secret.", + "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", "computed": true }, { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "secret_id", - "type": "TypeString", - "description": "The ID of the secret.", - "required": true - }, - { - "name": "instance_id", + "name": "created_at", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "alt_names", - "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } + "description": "The date when a resource was created. The date format follows RFC 3339.", + "computed": true }, { "name": "intermediate_included", @@ -78827,36 +81451,42 @@ "computed": true }, { - "name": "private_key_included", - "type": "TypeBool", - "description": "Indicates whether the certificate was imported with an associated private key.", - "computed": true + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true }, { - "name": "serial_number", + "name": "name", "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", + "description": "The human-readable name of your secret.", "computed": true }, { - "name": "region", - "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { - "name": "description", + "name": "expiration_date", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true }, { - "name": "updated_at", + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "description", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", "computed": true }, { @@ -78866,66 +81496,58 @@ "computed": true }, { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, - { - "name": "secret_type", - "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", - "computed": true - }, - { - "name": "signing_algorithm", - "type": "TypeString", - "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", - "computed": true + "name": "alt_names", + "type": "TypeList", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "common_name", + "name": "issuer", "type": "TypeString", - "description": "The Common Name (AKA CN) represents the server name protected by the SSL certificate.", + "description": "The distinguished name that identifies the entity that signed and issued the certificate.", "computed": true } ], "ibm_sm_kv_secret": [ { - "name": "name", + "name": "secret_id", "type": "TypeString", - "description": "The human-readable name of your secret.", + "description": "The ID of the secret.", + "optional": true, "computed": true }, { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "name": "description", + "type": "TypeString", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", "computed": true }, { - "name": "state_description", + "name": "secret_group_id", "type": "TypeString", - "description": "A text representation of the secret state.", + "description": "A v4 UUID identifier, or `default` secret group.", "computed": true }, { - "name": "crn", + "name": "endpoint_type", "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", - "computed": true + "description": "public or private.", + "optional": true }, { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "name": "secret_type", + "type": "TypeString", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "name": "data", + "type": "TypeMap", + "description": "The payload data of a key-value secret.", + "secure": true, "computed": true, "elem": { "type": "TypeString" @@ -78944,21 +81566,28 @@ "computed": true }, { - "name": "secret_group_id", - "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", - "computed": true - }, - { - "name": "data", - "type": "TypeMap", - "description": "The payload data of a key-value secret.", - "secure": true, + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", "computed": true, "elem": { "type": "TypeString" } }, + { + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", + "computed": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, { "name": "region", "type": "TypeString", @@ -78968,12 +81597,6 @@ "optional": true, "computed": true }, - { - "name": "secret_id", - "type": "TypeString", - "description": "The ID of the secret.", - "required": true - }, { "name": "custom_metadata", "type": "TypeMap", @@ -78983,6 +81606,24 @@ "type": "TypeString" } }, + { + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "computed": true + }, + { + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "computed": true + }, + { + "name": "state_description", + "type": "TypeString", + "description": "A text representation of the secret state.", + "computed": true + }, { "name": "versions_total", "type": "TypeInt", @@ -78990,45 +81631,54 @@ "computed": true }, { - "name": "updated_at", + "name": "crn", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", "computed": true }, { - "name": "instance_id", + "name": "name", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "description": "The human-readable name of your secret.", + "optional": true, + "computed": true }, { - "name": "endpoint_type", + "name": "secret_group_name", "type": "TypeString", - "description": "public or private.", + "description": "The human-readable name of your secret group.", "optional": true }, { - "name": "description", + "name": "updated_at", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true + } + ], + "ibm_sm_kv_secret_metadata": [ + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", + "name": "created_at", + "type": "TypeString", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "secret_type", + "name": "crn", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", "computed": true - } - ], - "ibm_sm_kv_secret_metadata": [ + }, { "name": "labels", "type": "TypeList", @@ -79038,12 +81688,30 @@ "type": "TypeString" } }, + { + "name": "name", + "type": "TypeString", + "description": "The human-readable name of your secret.", + "computed": true + }, { "name": "secret_group_id", "type": "TypeString", "description": "A v4 UUID identifier, or `default` secret group.", "computed": true }, + { + "name": "description", + "type": "TypeString", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "computed": true + }, + { + "name": "state_description", + "type": "TypeString", + "description": "A text representation of the secret state.", + "computed": true + }, { "name": "versions_total", "type": "TypeInt", @@ -79056,6 +81724,18 @@ "description": "public or private.", "optional": true }, + { + "name": "secret_id", + "type": "TypeString", + "description": "The ID of the secret.", + "required": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier that is associated with the entity that created the secret.", + "computed": true + }, { "name": "custom_metadata", "type": "TypeMap", @@ -79066,125 +81746,88 @@ } }, { - "name": "secret_type", - "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", "computed": true }, { - "name": "state_description", + "name": "updated_at", "type": "TypeString", - "description": "A text representation of the secret state.", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "crn", - "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true }, { - "name": "description", + "name": "secret_type", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "locks_total", + "name": "state", "type": "TypeInt", - "description": "The number of locks of the secret.", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { - "name": "name", + "name": "region", "type": "TypeString", - "description": "The human-readable name of your secret.", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true - }, + } + ], + "ibm_sm_private_certificate": [ { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "name": "secret_group_id", + "type": "TypeString", + "description": "A v4 UUID identifier, or `default` secret group.", "computed": true }, { - "name": "secret_id", + "name": "expiration_date", "type": "TypeString", - "description": "The ID of the secret.", - "required": true + "description": "The date a secret is expired. The date format follows RFC 3339.", + "computed": true }, { - "name": "created_by", + "name": "instance_id", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { - "name": "created_at", + "name": "description", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", "computed": true }, { - "name": "updated_at", + "name": "secret_type", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "region", + "name": "signing_algorithm", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", "computed": true }, { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", - "computed": true - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - } - ], - "ibm_sm_private_certificate": [ - { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", - "computed": true - }, - { - "name": "certificate_authority", - "type": "TypeString", - "description": "The intermediate certificate authority that signed this certificate.", - "computed": true - }, - { - "name": "secret_id", - "type": "TypeString", - "description": "The ID of the secret.", - "required": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true - }, - { - "name": "issuer", - "type": "TypeString", - "description": "The distinguished name that identifies the entity that signed and issued the certificate.", + "name": "certificate_authority", + "type": "TypeString", + "description": "The intermediate certificate authority that signed this certificate.", "computed": true }, { @@ -79214,95 +81857,20 @@ "computed": true }, { - "name": "certificate_template", - "type": "TypeString", - "description": "The name of the certificate template.", - "computed": true - }, - { - "name": "expiration_date", - "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", - "computed": true - }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, - { - "name": "secret_group_id", - "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "key_algorithm", - "type": "TypeString", - "description": "The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.", - "computed": true - }, - { - "name": "certificate", + "name": "state_description", "type": "TypeString", - "description": "The PEM-encoded contents of your certificate.", - "secure": true, + "description": "A text representation of the secret state.", "computed": true }, { - "name": "ca_chain", + "name": "alt_names", "type": "TypeList", - "description": "The chain of certificate authorities that are associated with the certificate.", - "secure": true, + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", "computed": true, "elem": { "type": "TypeString" } }, - { - "name": "crn", - "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The human-readable name of your secret.", - "computed": true - }, - { - "name": "secret_type", - "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", - "computed": true - }, - { - "name": "state_description", - "type": "TypeString", - "description": "A text representation of the secret state.", - "computed": true - }, - { - "name": "signing_algorithm", - "type": "TypeString", - "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", - "computed": true - }, { "name": "rotation", "type": "TypeList", @@ -79336,40 +81904,80 @@ } }, { - "name": "issuing_ca", - "type": "TypeString", - "description": "The PEM-encoded certificate of the certificate authority that signed and issued this certificate.", - "secure": true, + "name": "revocation_time_seconds", + "type": "TypeInt", + "description": "The timestamp of the certificate revocation.", "computed": true }, { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "description", + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", + "computed": true + }, + { + "name": "serial_number", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", "computed": true }, { - "name": "next_rotation_date", + "name": "certificate", "type": "TypeString", - "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", + "description": "The PEM-encoded contents of your certificate.", + "secure": true, "computed": true }, { - "name": "instance_id", + "name": "region", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", "immutable": true, - "required": true + "optional": true, + "computed": true + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true + }, + { + "name": "issuing_ca", + "type": "TypeString", + "description": "The PEM-encoded certificate of the certificate authority that signed and issued this certificate.", + "secure": true, + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "common_name", + "type": "TypeString", + "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", + "computed": true + }, + { + "name": "secret_id", + "type": "TypeString", + "description": "The ID of the secret.", + "optional": true, + "computed": true }, { "name": "created_at", @@ -79377,6 +81985,12 @@ "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, + { + "name": "secret_group_name", + "type": "TypeString", + "description": "The human-readable name of your secret group.", + "optional": true + }, { "name": "state", "type": "TypeInt", @@ -79384,61 +81998,84 @@ "computed": true }, { - "name": "alt_names", + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "computed": true + }, + { + "name": "issuer", + "type": "TypeString", + "description": "The distinguished name that identifies the entity that signed and issued the certificate.", + "computed": true + }, + { + "name": "next_rotation_date", + "type": "TypeString", + "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", + "computed": true + }, + { + "name": "private_key", + "type": "TypeString", + "description": "(Optional) The PEM-encoded private key to associate with the certificate.", + "secure": true, + "computed": true + }, + { + "name": "ca_chain", "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", + "description": "The chain of certificate authorities that are associated with the certificate.", + "secure": true, "computed": true, "elem": { "type": "TypeString" } }, { - "name": "common_name", + "name": "created_by", "type": "TypeString", - "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", - "computed": true - }, - { - "name": "revocation_time_seconds", - "type": "TypeInt", - "description": "The timestamp of the certificate revocation.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true }, { - "name": "region", + "name": "name", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, + "description": "The human-readable name of your secret.", "optional": true, "computed": true }, { - "name": "serial_number", + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", + "computed": true + }, + { + "name": "certificate_template", "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", + "description": "The name of the certificate template.", "computed": true }, { - "name": "private_key", + "name": "key_algorithm", "type": "TypeString", - "description": "(Optional) The PEM-encoded private key to associate with the certificate.", - "secure": true, + "description": "The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.", "computed": true } ], @@ -79450,72 +82087,60 @@ "computed": true }, { - "name": "key_type", + "name": "ip_sans", "type": "TypeString", - "description": "The type of private key to generate.", - "computed": true - }, - { - "name": "exclude_cn_from_sans", - "type": "TypeBool", - "description": "Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to `true`, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address.", + "description": "The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", "computed": true }, { - "name": "ou", + "name": "organization", "type": "TypeList", - "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", + "description": "The Organization (O) values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "country", + "name": "name", + "type": "TypeString", + "description": "The name of the configuration.", + "required": true + }, + { + "name": "alt_names", "type": "TypeList", - "description": "The Country (C) values to define in the subject field of the resulting certificate.", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "config_type", - "type": "TypeString", - "description": "Th configuration type.", - "computed": true - }, - { - "name": "issuer", - "type": "TypeString", - "description": "The distinguished name that identifies the entity that signed and issued the certificate.", - "computed": true - }, - { - "name": "private_key_format", + "name": "uri_sans", "type": "TypeString", - "description": "The format of the generated private key.", + "description": "The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", "computed": true }, { - "name": "postal_code", + "name": "street_address", "type": "TypeList", - "description": "The postal code values to define in the subject field of the resulting certificate.", + "description": "The street address values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "status", + "name": "issuer", "type": "TypeString", - "description": "The status of the certificate authority. The status of a root certificate authority is either `configured` or `expired`. For intermediate certificate authorities, possible statuses include `signing_required`,`signed_certificate_required`, `certificate_template_required`, `configured`, `expired` or `revoked`.", + "description": "The distinguished name that identifies the entity that signed and issued the certificate.", "computed": true }, { - "name": "expiration_date", - "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", + "name": "crl_expiry_seconds", + "type": "TypeInt", + "description": "The time until the certificate revocation list (CRL) expires, in seconds.", "computed": true }, { @@ -79525,87 +82150,92 @@ "computed": true }, { - "name": "alt_names", - "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "status", + "type": "TypeString", + "description": "The status of the certificate authority. The status of a root certificate authority is either `configured` or `expired`. For intermediate certificate authorities, possible statuses include `signing_required`,`signed_certificate_required`, `certificate_template_required`, `configured`, `expired` or `revoked`.", + "computed": true }, { - "name": "street_address", - "type": "TypeList", - "description": "The street address values to define in the subject field of the resulting certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { - "name": "organization", - "type": "TypeList", - "description": "The Organization (O) values to define in the subject field of the resulting certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "issuing_certificates_urls_encoded", + "type": "TypeBool", + "description": "Determines whether to encode the URL of the issuing certificate in the certificates that are issued by this certificate authority.", + "computed": true }, { - "name": "province", + "name": "country", "type": "TypeList", - "description": "The Province (ST) values to define in the subject field of the resulting certificate.", + "description": "The Country (C) values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "crl_expiry_seconds", - "type": "TypeInt", - "description": "The time until the certificate revocation list (CRL) expires, in seconds.", + "name": "serial_number", + "type": "TypeString", + "description": "The serial number to assign to the generated certificate. To assign a random serial number, you can omit this field.", "computed": true }, { - "name": "uri_sans", + "name": "endpoint_type", "type": "TypeString", - "description": "The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "description": "public or private.", + "optional": true + }, + { + "name": "signing_method", + "type": "TypeString", + "description": "The signing method to use with this certificate authority to generate private certificates.You can choose between internal or externally signed options. For more information, see the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-intermediate-certificate-authorities).", "computed": true }, { - "name": "locality", + "name": "crl_disable", + "type": "TypeBool", + "description": "Disables or enables certificate revocation list (CRL) building.If CRL building is disabled, a signed but zero-length CRL is returned when downloading the CRL. If CRL building is enabled, it will rebuild the CRL.", + "computed": true + }, + { + "name": "other_sans", "type": "TypeList", - "description": "The Locality (L) values to define in the subject field of the resulting certificate.", + "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The alternative names must match the values that are specified in the `allowed_other_sans` field in the associated certificate template. The format is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "ip_sans", - "type": "TypeString", - "description": "The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "name": "key_bits", + "type": "TypeInt", + "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", "computed": true }, { - "name": "format", - "type": "TypeString", - "description": "The format of the returned data.", + "name": "exclude_cn_from_sans", + "type": "TypeBool", + "description": "Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to `true`, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address.", "computed": true }, { - "name": "other_sans", + "name": "province", "type": "TypeList", - "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The alternative names must match the values that are specified in the `allowed_other_sans` field in the associated certificate template. The format is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`.", + "description": "The Province (ST) values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "serial_number", + "name": "expiration_date", "type": "TypeString", - "description": "The serial number to assign to the generated certificate. To assign a random serial number, you can omit this field.", + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true }, { @@ -79615,44 +82245,62 @@ "computed": true }, { - "name": "issuing_certificates_urls_encoded", - "type": "TypeBool", - "description": "Determines whether to encode the URL of the issuing certificate in the certificates that are issued by this certificate authority.", + "name": "max_ttl_seconds", + "type": "TypeInt", + "description": "The maximum time-to-live (TTL) for certificates that are created by this CA in seconds.", "computed": true }, { - "name": "key_bits", - "type": "TypeInt", - "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", - "computed": true + "name": "locality", + "type": "TypeList", + "description": "The Locality (L) values to define in the subject field of the resulting certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "region", + "name": "postal_code", + "type": "TypeList", + "description": "The postal code values to define in the subject field of the resulting certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "config_type", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "description": "Th configuration type.", "computed": true }, { - "name": "endpoint_type", + "name": "format", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The format of the returned data.", + "computed": true }, { - "name": "name", + "name": "private_key_format", "type": "TypeString", - "description": "The name of the configuration.", - "required": true + "description": "The format of the generated private key.", + "computed": true }, { - "name": "signing_method", + "name": "key_type", "type": "TypeString", - "description": "The signing method to use with this certificate authority to generate private certificates.You can choose between internal or externally signed options. For more information, see the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-intermediate-certificate-authorities).", + "description": "The type of private key to generate.", "computed": true }, + { + "name": "ou", + "type": "TypeList", + "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "data", "type": "TypeList", @@ -79711,43 +82359,59 @@ } }, { - "name": "instance_id", + "name": "region", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", "immutable": true, - "required": true + "optional": true, + "computed": true + } + ], + "ibm_sm_private_certificate_configuration_root_ca": [ + { + "name": "uri_sans", + "type": "TypeString", + "description": "The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "computed": true }, { - "name": "max_ttl_seconds", + "name": "key_bits", "type": "TypeInt", - "description": "The maximum time-to-live (TTL) for certificates that are created by this CA in seconds.", + "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", "computed": true }, { - "name": "crl_disable", + "name": "exclude_cn_from_sans", "type": "TypeBool", - "description": "Disables or enables certificate revocation list (CRL) building.If CRL building is disabled, a signed but zero-length CRL is returned when downloading the CRL. If CRL building is enabled, it will rebuild the CRL.", + "description": "Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to `true`, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address.", "computed": true - } - ], - "ibm_sm_private_certificate_configuration_root_ca": [ + }, { - "name": "created_by", + "name": "locality", + "type": "TypeList", + "description": "The Locality (L) values to define in the subject field of the resulting certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "expiration_date", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true }, { - "name": "updated_at", + "name": "created_at", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "max_ttl_seconds", - "type": "TypeInt", - "description": "The maximum time-to-live (TTL) for certificates that are created by this CA in seconds.", + "name": "issuing_certificates_urls_encoded", + "type": "TypeBool", + "description": "Determines whether to encode the URL of the issuing certificate in the certificates that are issued by this certificate authority.", "computed": true }, { @@ -79757,10 +82421,10 @@ "computed": true }, { - "name": "max_path_length", - "type": "TypeInt", - "description": "The maximum path length to encode in the generated certificate. `-1` means no limit.If the signing certificate has a maximum path length set, the path length is set to one less than that of the signing certificate. A limit of `0` means a literal path length of zero.", - "computed": true + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true }, { "name": "permitted_dns_domains", @@ -79772,78 +82436,137 @@ } }, { - "name": "street_address", + "name": "postal_code", "type": "TypeList", - "description": "The street address values to define in the subject field of the resulting certificate.", + "description": "The postal code values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "endpoint_type", + "name": "status", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The status of the certificate authority. The status of a root certificate authority is either `configured` or `expired`. For intermediate certificate authorities, possible statuses include `signing_required`,`signed_certificate_required`, `certificate_template_required`, `configured`, `expired` or `revoked`.", + "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The name of the configuration.", - "required": true + "name": "crl_distribution_points_encoded", + "type": "TypeBool", + "description": "Determines whether to encode the certificate revocation list (CRL) distribution points in the certificates that are issued by this certificate authority.", + "computed": true }, { - "name": "secret_type", + "name": "ip_sans", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "description": "The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", "computed": true }, { - "name": "issuing_certificates_urls_encoded", - "type": "TypeBool", - "description": "Determines whether to encode the URL of the issuing certificate in the certificates that are issued by this certificate authority.", + "name": "max_path_length", + "type": "TypeInt", + "description": "The maximum path length to encode in the generated certificate. `-1` means no limit.If the signing certificate has a maximum path length set, the path length is set to one less than that of the signing certificate. A limit of `0` means a literal path length of zero.", "computed": true }, { - "name": "format", + "name": "created_by", "type": "TypeString", - "description": "The format of the returned data.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "key_bits", - "type": "TypeInt", - "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "locality", + "name": "other_sans", "type": "TypeList", - "description": "The Locality (L) values to define in the subject field of the resulting certificate.", + "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The alternative names must match the values that are specified in the `allowed_other_sans` field in the associated certificate template. The format is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "alt_names", + "name": "country", "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", + "description": "The Country (C) values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "uri_sans", + "name": "instance_id", "type": "TypeString", - "description": "The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, + { + "name": "format", + "type": "TypeString", + "description": "The format of the returned data.", "computed": true }, { - "name": "postal_code", + "name": "key_type", + "type": "TypeString", + "description": "The type of private key to generate.", + "computed": true + }, + { + "name": "serial_number", + "type": "TypeString", + "description": "The serial number to assign to the generated certificate. To assign a random serial number, you can omit this field.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the configuration.", + "required": true + }, + { + "name": "config_type", + "type": "TypeString", + "description": "The configuration type.", + "computed": true + }, + { + "name": "crl_disable", + "type": "TypeBool", + "description": "Disables or enables certificate revocation list (CRL) building.If CRL building is disabled, a signed but zero-length CRL is returned when downloading the CRL. If CRL building is enabled, it will rebuild the CRL.", + "computed": true + }, + { + "name": "province", "type": "TypeList", - "description": "The postal code values to define in the subject field of the resulting certificate.", + "description": "The Province (ST) values to define in the subject field of the resulting certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "secret_type", + "type": "TypeString", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "computed": true + }, + { + "name": "crl_expiry_seconds", + "type": "TypeInt", + "description": "The time until the certificate revocation list (CRL) expires, in seconds.", + "computed": true + }, + { + "name": "ou", + "type": "TypeList", + "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" @@ -79858,6 +82581,15 @@ "optional": true, "computed": true }, + { + "name": "alt_names", + "type": "TypeList", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "private_key_format", "type": "TypeString", @@ -79865,20 +82597,14 @@ "computed": true }, { - "name": "country", + "name": "street_address", "type": "TypeList", - "description": "The Country (C) values to define in the subject field of the resulting certificate.", + "description": "The street address values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, - { - "name": "status", - "type": "TypeString", - "description": "The status of the certificate authority. The status of a root certificate authority is either `configured` or `expired`. For intermediate certificate authorities, possible statuses include `signing_required`,`signed_certificate_required`, `certificate_template_required`, `configured`, `expired` or `revoked`.", - "computed": true - }, { "name": "data", "type": "TypeList", @@ -79938,220 +82664,233 @@ } }, { - "name": "other_sans", - "type": "TypeList", - "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The alternative names must match the values that are specified in the `allowed_other_sans` field in the associated certificate template. The format is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "max_ttl_seconds", + "type": "TypeInt", + "description": "The maximum time-to-live (TTL) for certificates that are created by this CA in seconds.", + "computed": true }, { - "name": "province", + "name": "ttl_seconds", + "type": "TypeInt", + "description": "The requested time-to-live (TTL) for certificates that are created by this CA. This field's value cannot be longer than the `max_ttl` limit.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).", + "computed": true + }, + { + "name": "organization", "type": "TypeList", - "description": "The Province (ST) values to define in the subject field of the resulting certificate.", + "description": "The Organization (O) values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } - }, - { - "name": "serial_number", - "type": "TypeString", - "description": "The serial number to assign to the generated certificate. To assign a random serial number, you can omit this field.", - "computed": true - }, + } + ], + "ibm_sm_private_certificate_configuration_template": [ { - "name": "created_at", - "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "name": "client_flag", + "type": "TypeBool", + "description": "Determines whether private certificates are flagged for client use.", "computed": true }, { - "name": "crl_distribution_points_encoded", + "name": "use_csr_common_name", "type": "TypeBool", - "description": "Determines whether to encode the certificate revocation list (CRL) distribution points in the certificates that are issued by this certificate authority.", + "description": "When used with the `private_cert_configuration_action_sign_csr` action, this field determines whether to use the common name (CN) from a certificate signing request (CSR) instead of the CN that's included in the data of the certificate.Does not include any requested Subject Alternative Names (SANs) in the CSR. To use the alternative names, include the `use_csr_sans` property.", "computed": true }, { - "name": "ip_sans", + "name": "config_type", "type": "TypeString", - "description": "The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "description": "Th configuration type.", "computed": true }, { - "name": "key_type", + "name": "created_by", "type": "TypeString", - "description": "The type of private key to generate.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "exclude_cn_from_sans", + "name": "allow_localhost", "type": "TypeBool", - "description": "Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to `true`, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address.", + "description": "Determines whether to allow `localhost` to be included as one of the requested common names.", "computed": true }, { - "name": "organization", + "name": "allowed_domains", "type": "TypeList", - "description": "The Organization (O) values to define in the subject field of the resulting certificate.", + "description": "The domains to define for the certificate template. This property is used along with the `allow_bare_domains` and `allow_subdomains` options.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "expiration_date", - "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", - "computed": true + "name": "ou", + "type": "TypeList", + "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "name": "country", + "type": "TypeList", + "description": "The Country (C) values to define in the subject field of the resulting certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "crl_expiry_seconds", - "type": "TypeInt", - "description": "The time until the certificate revocation list (CRL) expires, in seconds.", + "name": "use_csr_sans", + "type": "TypeBool", + "description": "When used with the `private_cert_configuration_action_sign_csr` action, this field determines whether to use the Subject Alternative Names(SANs) from a certificate signing request (CSR) instead of the SANs that are included in the data of the certificate.Does not include the common name in the CSR. To use the common name, include the `use_csr_common_name` property.", "computed": true }, { - "name": "ou", + "name": "street_address", "type": "TypeList", - "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", + "description": "The street address values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "config_type", - "type": "TypeString", - "description": "The configuration type.", + "name": "not_before_duration_seconds", + "type": "TypeInt", + "description": "The duration in seconds by which to backdate the `not_before` property of an issued private certificate.", "computed": true }, { - "name": "crl_disable", - "type": "TypeBool", - "description": "Disables or enables certificate revocation list (CRL) building.If CRL building is disabled, a signed but zero-length CRL is returned when downloading the CRL. If CRL building is enabled, it will rebuild the CRL.", - "computed": true + "name": "name", + "type": "TypeString", + "description": "The name of the configuration.", + "required": true }, { - "name": "ttl_seconds", - "type": "TypeInt", - "description": "The requested time-to-live (TTL) for certificates that are created by this CA. This field's value cannot be longer than the `max_ttl` limit.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).", - "computed": true - } - ], - "ibm_sm_private_certificate_configuration_template": [ - { - "name": "allow_localhost", - "type": "TypeBool", - "description": "Determines whether to allow `localhost` to be included as one of the requested common names.", + "name": "allowed_secret_groups", + "type": "TypeString", + "description": "Scopes the creation of private certificates to only the secret groups that you specify.This field can be supplied as a comma-delimited list of secret group IDs.", "computed": true }, { - "name": "allowed_domains", + "name": "ext_key_usage_oids", "type": "TypeList", - "description": "The domains to define for the certificate template. This property is used along with the `allow_bare_domains` and `allow_subdomains` options.", + "description": "A list of extended key usage Object Identifiers (OIDs).", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "server_flag", + "name": "allow_ip_sans", "type": "TypeBool", - "description": "Determines whether private certificates are flagged for server use.", + "description": "Determines whether to allow clients to request a private certificate with IP Subject Alternative Names.", "computed": true }, { - "name": "key_usage", + "name": "email_protection_flag", + "type": "TypeBool", + "description": "Determines whether private certificates are flagged for email protection use.", + "computed": true + }, + { + "name": "locality", "type": "TypeList", - "description": "The allowed key usage constraint to define for private certificates.You can find valid values in the [Go x509 package documentation](https://pkg.go.dev/crypto/x509#KeyUsage). Omit the `KeyUsage` part of the value. Values are not case-sensitive. To specify no key usage constraints, set this field to an empty list.", + "description": "The Locality (L) values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "ext_key_usage_oids", + "name": "postal_code", "type": "TypeList", - "description": "A list of extended key usage Object Identifiers (OIDs).", + "description": "The postal code values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "locality", + "name": "policy_identifiers", "type": "TypeList", - "description": "The Locality (L) values to define in the subject field of the resulting certificate.", + "description": "A list of policy Object Identifiers (OIDs).", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "created_at", + "name": "secret_type", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "certificate_authority", + "name": "updated_at", "type": "TypeString", - "description": "The name of the intermediate certificate authority.", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "not_before_duration_seconds", + "name": "max_ttl_seconds", "type": "TypeInt", - "description": "The duration in seconds by which to backdate the `not_before` property of an issued private certificate.", + "description": "The maximum time-to-live (TTL) for certificates that are created by this CA in seconds.", "computed": true }, { - "name": "allow_glob_domains", - "type": "TypeBool", - "description": "Determines whether to allow glob patterns, for example, `ftp*.example.com`, in the names that are specified in the `allowed_domains` field.If set to `true`, clients are allowed to request private certificates with names that match the glob patterns.", + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, { - "name": "allow_ip_sans", + "name": "enforce_hostnames", "type": "TypeBool", - "description": "Determines whether to allow clients to request a private certificate with IP Subject Alternative Names.", + "description": "Determines whether to enforce only valid host names for common names, DNS Subject Alternative Names, and the host section of email addresses.", "computed": true }, { - "name": "country", + "name": "allowed_uri_sans", "type": "TypeList", - "description": "The Country (C) values to define in the subject field of the resulting certificate.", + "description": "The URI Subject Alternative Names to allow for private certificates.Values can contain glob patterns, for example `spiffe://hostname/_*`.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "serial_number", + "name": "key_type", "type": "TypeString", - "description": "The serial number to assign to the generated certificate. To assign a random serial number, you can omit this field.", + "description": "The type of private key to generate.", "computed": true }, { - "name": "endpoint_type", + "name": "ext_key_usage", + "type": "TypeList", + "description": "The allowed extended key usage constraint on private certificates.You can find valid values in the [Go x509 package documentation](https://golang.org/pkg/crypto/x509/#ExtKeyUsage). Omit the `ExtKeyUsage` part of the value. Values are not case-sensitive. To specify no key usage constraints, set this field to an empty list.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "serial_number", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The serial number to assign to the generated certificate. To assign a random serial number, you can omit this field.", + "computed": true }, { - "name": "created_by", + "name": "created_at", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { @@ -80161,36 +82900,30 @@ "computed": true }, { - "name": "allowed_uri_sans", + "name": "allow_glob_domains", + "type": "TypeBool", + "description": "Determines whether to allow glob patterns, for example, `ftp*.example.com`, in the names that are specified in the `allowed_domains` field.If set to `true`, clients are allowed to request private certificates with names that match the glob patterns.", + "computed": true + }, + { + "name": "province", "type": "TypeList", - "description": "The URI Subject Alternative Names to allow for private certificates.Values can contain glob patterns, for example `spiffe://hostname/_*`.", + "description": "The Province (ST) values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "client_flag", - "type": "TypeBool", - "description": "Determines whether private certificates are flagged for client use.", - "computed": true - }, - { - "name": "email_protection_flag", + "name": "basic_constraints_valid_for_non_ca", "type": "TypeBool", - "description": "Determines whether private certificates are flagged for email protection use.", + "description": "Determines whether to mark the Basic Constraints extension of an issued private certificate as valid for non-CA certificates.", "computed": true }, { - "name": "use_csr_sans", + "name": "allowed_domains_template", "type": "TypeBool", - "description": "When used with the `private_cert_configuration_action_sign_csr` action, this field determines whether to use the Subject Alternative Names(SANs) from a certificate signing request (CSR) instead of the SANs that are included in the data of the certificate.Does not include the common name in the CSR. To use the common name, include the `use_csr_common_name` property.", - "computed": true - }, - { - "name": "secret_type", - "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "description": "Determines whether to allow the domains that are supplied in the `allowed_domains` field to contain access control list (ACL) templates.", "computed": true }, { @@ -80200,14 +82933,34 @@ "computed": true }, { - "name": "street_address", + "name": "key_usage", "type": "TypeList", - "description": "The street address values to define in the subject field of the resulting certificate.", + "description": "The allowed key usage constraint to define for private certificates.You can find valid values in the [Go x509 package documentation](https://pkg.go.dev/crypto/x509#KeyUsage). Omit the `KeyUsage` part of the value. Values are not case-sensitive. To specify no key usage constraints, set this field to an empty list.", "computed": true, "elem": { "type": "TypeString" } }, + { + "name": "require_cn", + "type": "TypeBool", + "description": "Determines whether to require a common name to create a private certificate.By default, a common name is required to generate a certificate. To make the `common_name` field optional, set the `require_cn` option to `false`.", + "computed": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true + }, { "name": "allowed_other_sans", "type": "TypeList", @@ -80218,30 +82971,15 @@ } }, { - "name": "key_bits", - "type": "TypeInt", - "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", - "computed": true - }, - { - "name": "use_csr_common_name", + "name": "server_flag", "type": "TypeBool", - "description": "When used with the `private_cert_configuration_action_sign_csr` action, this field determines whether to use the common name (CN) from a certificate signing request (CSR) instead of the CN that's included in the data of the certificate.Does not include any requested Subject Alternative Names (SANs) in the CSR. To use the alternative names, include the `use_csr_sans` property.", - "computed": true - }, - { - "name": "region", - "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "description": "Determines whether private certificates are flagged for server use.", "computed": true }, { - "name": "max_ttl_seconds", + "name": "key_bits", "type": "TypeInt", - "description": "The maximum time-to-live (TTL) for certificates that are created by this CA in seconds.", + "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", "computed": true }, { @@ -80260,33 +82998,37 @@ } }, { - "name": "policy_identifiers", - "type": "TypeList", - "description": "A list of policy Object Identifiers (OIDs).", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "certificate_authority", + "type": "TypeString", + "description": "The name of the intermediate certificate authority.", + "computed": true }, { - "name": "basic_constraints_valid_for_non_ca", - "type": "TypeBool", - "description": "Determines whether to mark the Basic Constraints extension of an issued private certificate as valid for non-CA certificates.", + "name": "ttl_seconds", + "type": "TypeInt", + "description": "The requested Time To Live, after which the certificate will be expired.", "computed": true }, { - "name": "instance_id", + "name": "allow_any_name", + "type": "TypeBool", + "description": "Determines whether to allow clients to request a private certificate that matches any common name.", + "computed": true + } + ], + "ibm_sm_private_certificate_metadata": [ + { + "name": "crn", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", + "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The name of the configuration.", - "required": true + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", + "computed": true }, { "name": "updated_at", @@ -80295,136 +83037,60 @@ "computed": true }, { - "name": "key_type", + "name": "certificate_authority", "type": "TypeString", - "description": "The type of private key to generate.", + "description": "The intermediate certificate authority that signed this certificate.", "computed": true }, { - "name": "ou", - "type": "TypeList", - "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "next_rotation_date", + "type": "TypeString", + "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", + "computed": true }, { - "name": "postal_code", - "type": "TypeList", - "description": "The postal code values to define in the subject field of the resulting certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true }, { - "name": "require_cn", - "type": "TypeBool", - "description": "Determines whether to require a common name to create a private certificate.By default, a common name is required to generate a certificate. To make the `common_name` field optional, set the `require_cn` option to `false`.", + "name": "created_at", + "type": "TypeString", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "allowed_domains_template", - "type": "TypeBool", - "description": "Determines whether to allow the domains that are supplied in the `allowed_domains` field to contain access control list (ACL) templates.", + "name": "description", + "type": "TypeString", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", "computed": true }, { - "name": "enforce_hostnames", - "type": "TypeBool", - "description": "Determines whether to enforce only valid host names for common names, DNS Subject Alternative Names, and the host section of email addresses.", + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { - "name": "ttl_seconds", - "type": "TypeInt", - "description": "The requested Time To Live, after which the certificate will be expired.", + "name": "signing_algorithm", + "type": "TypeString", + "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", "computed": true }, { - "name": "allow_any_name", - "type": "TypeBool", - "description": "Determines whether to allow clients to request a private certificate that matches any common name.", - "computed": true - }, - { - "name": "ext_key_usage", - "type": "TypeList", - "description": "The allowed extended key usage constraint on private certificates.You can find valid values in the [Go x509 package documentation](https://golang.org/pkg/crypto/x509/#ExtKeyUsage). Omit the `ExtKeyUsage` part of the value. Values are not case-sensitive. To specify no key usage constraints, set this field to an empty list.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "province", + "name": "labels", "type": "TypeList", - "description": "The Province (ST) values to define in the subject field of the resulting certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "config_type", - "type": "TypeString", - "description": "Th configuration type.", - "computed": true - }, - { - "name": "allowed_secret_groups", - "type": "TypeString", - "description": "Scopes the creation of private certificates to only the secret groups that you specify.This field can be supplied as a comma-delimited list of secret group IDs.", - "computed": true - } - ], - "ibm_sm_private_certificate_metadata": [ - { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true - }, - { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "next_rotation_date", + "name": "revocation_time_rfc3339", "type": "TypeString", - "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", - "computed": true - }, - { - "name": "validity", - "type": "TypeList", - "description": "The date and time that the certificate validity period begins and ends.", - "computed": true, - "elem": { - "not_after": { - "name": "not_after", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - }, - "not_before": { - "name": "not_before", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - } - } - }, - { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "description": "The date and time that the certificate was revoked. The date format follows RFC 3339.", "computed": true }, { @@ -80433,102 +83099,18 @@ "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, - { - "name": "state_description", - "type": "TypeString", - "description": "A text representation of the secret state.", - "computed": true - }, - { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", - "computed": true - }, - { - "name": "region", - "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "expiration_date", - "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", - "computed": true - }, { "name": "issuer", "type": "TypeString", "description": "The distinguished name that identifies the entity that signed and issued the certificate.", "computed": true }, - { - "name": "serial_number", - "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", - "computed": true - }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "secret_group_id", - "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", - "computed": true - }, { "name": "key_algorithm", "type": "TypeString", "description": "The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.", "computed": true }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "common_name", - "type": "TypeString", - "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", - "computed": true - }, { "name": "rotation", "type": "TypeList", @@ -80562,21 +83144,27 @@ } }, { - "name": "revocation_time_rfc3339", + "name": "created_by", "type": "TypeString", - "description": "The date and time that the certificate was revoked. The date format follows RFC 3339.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "description", + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", + "computed": true + }, + { + "name": "common_name", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", "computed": true }, { - "name": "name", + "name": "expiration_date", "type": "TypeString", - "description": "The human-readable name of your secret.", + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true }, { @@ -80589,52 +83177,35 @@ } }, { - "name": "certificate_template", - "type": "TypeString", - "description": "The name of the certificate template.", - "computed": true - }, - { - "name": "secret_id", - "type": "TypeString", - "description": "The ID of the secret.", - "required": true - }, - { - "name": "signing_algorithm", + "name": "region", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, { - "name": "certificate_authority", + "name": "serial_number", "type": "TypeString", - "description": "The intermediate certificate authority that signed this certificate.", - "computed": true - }, - { - "name": "revocation_time_seconds", - "type": "TypeInt", - "description": "The timestamp of the certificate revocation.", + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", "computed": true }, { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true - } - ], - "ibm_sm_public_certificate": [ + }, { "name": "name", "type": "TypeString", @@ -80642,24 +83213,24 @@ "computed": true }, { - "name": "issuer", + "name": "state_description", "type": "TypeString", - "description": "The distinguished name that identifies the entity that signed and issued the certificate.", + "description": "A text representation of the secret state.", "computed": true }, { - "name": "intermediate", - "type": "TypeString", - "description": "(Optional) The PEM-encoded intermediate certificate to associate with the root certificate.", - "secure": true, + "name": "revocation_time_seconds", + "type": "TypeInt", + "description": "The timestamp of the certificate revocation.", "computed": true }, { - "name": "private_key", + "name": "instance_id", "type": "TypeString", - "description": "(Optional) The PEM-encoded private key to associate with the certificate.", - "secure": true, - "computed": true + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { "name": "secret_id", @@ -80668,47 +83239,97 @@ "required": true }, { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", + "name": "secret_group_id", + "type": "TypeString", + "description": "A v4 UUID identifier, or `default` secret group.", + "computed": true + }, + { + "name": "certificate_template", + "type": "TypeString", + "description": "The name of the certificate template.", + "computed": true + }, + { + "name": "validity", + "type": "TypeList", + "description": "The date and time that the certificate validity period begins and ends.", "computed": true, "elem": { - "type": "TypeString" + "not_after": { + "name": "not_after", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + }, + "not_before": { + "name": "not_before", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + } } - }, + } + ], + "ibm_sm_public_certificate": [ { - "name": "description", + "name": "name", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "description": "The human-readable name of your secret.", + "optional": true, "computed": true }, { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", + "name": "signing_algorithm", + "type": "TypeString", + "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", "computed": true }, { - "name": "instance_id", + "name": "certificate", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "description": "The PEM-encoded contents of your certificate.", + "secure": true, + "computed": true }, { - "name": "region", + "name": "validity", + "type": "TypeList", + "description": "The date and time that the certificate validity period begins and ends.", + "computed": true, + "elem": { + "not_after": { + "name": "not_after", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + }, + "not_before": { + "name": "not_before", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + } + } + }, + { + "name": "secret_id", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, + "description": "The ID of the secret.", "optional": true, "computed": true }, { - "name": "bundle_certs", - "type": "TypeBool", - "description": "Indicates whether the issued certificate is bundled with intermediate certificates.", + "name": "crn", + "type": "TypeString", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "secret_type", + "type": "TypeString", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { @@ -80800,17 +83421,50 @@ } }, { - "name": "key_algorithm", + "name": "rotation", + "type": "TypeList", + "description": "Determines whether Secrets Manager rotates your secrets automatically.", + "computed": true, + "elem": { + "auto_rotate": { + "name": "auto_rotate", + "type": "TypeBool", + "description": "Determines whether Secrets Manager rotates your secret automatically.Default is `false`. If `auto_rotate` is set to `true` the service rotates your secret based on the defined interval.", + "computed": true + }, + "rotate_keys": { + "name": "rotate_keys", + "type": "TypeBool", + "description": "Determines whether Secrets Manager rotates the private key for your public certificate automatically.Default is `false`. If it is set to `true`, the service generates and stores a new private key for your rotated certificate.", + "computed": true + } + } + }, + { + "name": "intermediate", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm to be used to generate the public key that is associated with the certificate.The algorithm that you select determines the encryption algorithm (`RSA` or `ECDSA`) and key size to be used to generate keys and sign certificates. For longer living certificates, it is recommended to use longer keys to provide more encryption protection. Allowed values: RSA2048, RSA4096, EC256, EC384.", + "description": "(Optional) The PEM-encoded intermediate certificate to associate with the root certificate.", + "secure": true, "computed": true }, { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, + { + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "state_description", "type": "TypeString", @@ -80818,33 +83472,39 @@ "computed": true }, { - "name": "updated_at", + "name": "key_algorithm", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "The identifier for the cryptographic algorithm to be used to generate the public key that is associated with the certificate.The algorithm that you select determines the encryption algorithm (`RSA` or `ECDSA`) and key size to be used to generate keys and sign certificates. For longer living certificates, it is recommended to use longer keys to provide more encryption protection. Allowed values: RSA2048, RSA4096, EC256, EC384.", "computed": true }, { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", + "name": "serial_number", + "type": "TypeString", + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", "computed": true }, { - "name": "created_at", + "name": "secret_group_name", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The human-readable name of your secret group.", + "optional": true + }, + { + "name": "ca", + "type": "TypeString", + "description": "The name of the certificate authority configuration.", "computed": true }, { - "name": "expiration_date", + "name": "dns", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", + "description": "The name of the DNS provider configuration.", "computed": true }, { - "name": "serial_number", + "name": "issuer", "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", + "description": "The distinguished name that identifies the entity that signed and issued the certificate.", "computed": true }, { @@ -80854,33 +83514,22 @@ "optional": true }, { - "name": "alt_names", - "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "created_at", + "type": "TypeString", + "description": "The date when a resource was created. The date format follows RFC 3339.", + "computed": true }, { - "name": "rotation", - "type": "TypeList", - "description": "Determines whether Secrets Manager rotates your secrets automatically.", - "computed": true, - "elem": { - "auto_rotate": { - "name": "auto_rotate", - "type": "TypeBool", - "description": "Determines whether Secrets Manager rotates your secret automatically.Default is `false`. If `auto_rotate` is set to `true` the service rotates your secret based on the defined interval.", - "computed": true - }, - "rotate_keys": { - "name": "rotate_keys", - "type": "TypeBool", - "description": "Determines whether Secrets Manager rotates the private key for your public certificate automatically.Default is `false`. If it is set to `true`, the service generates and stores a new private key for your rotated certificate.", - "computed": true - } - } + "name": "description", + "type": "TypeString", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "computed": true + }, + { + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "computed": true }, { "name": "labels", @@ -80892,73 +83541,60 @@ } }, { - "name": "secret_group_id", - "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", "computed": true }, { - "name": "secret_type", + "name": "updated_at", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "signing_algorithm", + "name": "expiration_date", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true }, { - "name": "validity", - "type": "TypeList", - "description": "The date and time that the certificate validity period begins and ends.", - "computed": true, - "elem": { - "not_after": { - "name": "not_after", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - }, - "not_before": { - "name": "not_before", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - } - } + "name": "bundle_certs", + "type": "TypeBool", + "description": "Indicates whether the issued certificate is bundled with intermediate certificates.", + "computed": true }, { - "name": "dns", + "name": "secret_group_id", "type": "TypeString", - "description": "The name of the DNS provider configuration.", + "description": "A v4 UUID identifier, or `default` secret group.", "computed": true }, { - "name": "certificate", - "type": "TypeString", - "description": "The PEM-encoded contents of your certificate.", - "secure": true, + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", "computed": true }, { - "name": "crn", - "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", - "computed": true + "name": "alt_names", + "type": "TypeList", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { @@ -80968,24 +83604,32 @@ "computed": true }, { - "name": "ca", + "name": "private_key", "type": "TypeString", - "description": "The name of the certificate authority configuration.", + "description": "(Optional) The PEM-encoded private key to associate with the certificate.", + "secure": true, "computed": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true } ], "ibm_sm_public_certificate_configuration_ca_lets_encrypt": [ { - "name": "lets_encrypt_private_key", + "name": "created_at", "type": "TypeString", - "description": "The PEM encoded private key of your Lets Encrypt account.", - "secure": true, + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "lets_encrypt_preferred_chain", + "name": "lets_encrypt_environment", "type": "TypeString", - "description": "Prefer the chain with an issuer matching this Subject Common Name.", + "description": "The configuration of the Let's Encrypt CA environment.", "computed": true }, { @@ -80995,21 +83639,16 @@ "optional": true }, { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true - }, - { - "name": "updated_at", + "name": "lets_encrypt_private_key", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "The PEM encoded private key of your Lets Encrypt account.", + "secure": true, "computed": true }, { - "name": "lets_encrypt_environment", + "name": "lets_encrypt_preferred_chain", "type": "TypeString", - "description": "The configuration of the Let's Encrypt CA environment.", + "description": "Prefer the chain with an issuer matching this Subject Common Name.", "computed": true }, { @@ -81036,38 +83675,47 @@ "required": true }, { - "name": "created_at", + "name": "created_by", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The unique identifier that is associated with the entity that created the secret.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true } ], "ibm_sm_public_certificate_configuration_dns_cis": [ { - "name": "created_by", + "name": "name", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The name of the configuration.", + "required": true + }, + { + "name": "secret_type", + "type": "TypeString", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "created_at", + "name": "created_by", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "cloud_internet_services_apikey", + "name": "updated_at", "type": "TypeString", - "description": "An IBM Cloud API key that can to list domains in your Cloud Internet Services instance.To grant Secrets Manager the ability to view the Cloud Internet Services instance and all of its domains, the API key must be assigned the Reader service role on Internet Services (`internet-svcs`).If you need to manage specific domains, you can assign the Manager role. For production environments, it is recommended that you assign the Reader access role, and then use the[IAM Policy Management API](https://cloud.ibm.com/apidocs/iam-policy-management#create-policy) to control specific domains. For more information, see the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-prepare-order-certificates#authorize-specific-domains).", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "region", + "name": "cloud_internet_services_apikey", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "description": "An IBM Cloud API key that can to list domains in your Cloud Internet Services instance.To grant Secrets Manager the ability to view the Cloud Internet Services instance and all of its domains, the API key must be assigned the Reader service role on Internet Services (`internet-svcs`).If you need to manage specific domains, you can assign the Manager role. For production environments, it is recommended that you assign the Reader access role, and then use the[IAM Policy Management API](https://cloud.ibm.com/apidocs/iam-policy-management#create-policy) to control specific domains. For more information, see the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-prepare-order-certificates#authorize-specific-domains).", "computed": true }, { @@ -81076,12 +83724,6 @@ "description": "public or private.", "optional": true }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the configuration.", - "required": true - }, { "name": "config_type", "type": "TypeString", @@ -81089,15 +83731,9 @@ "computed": true }, { - "name": "secret_type", - "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", - "computed": true - }, - { - "name": "updated_at", + "name": "created_at", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { @@ -81113,25 +83749,28 @@ "cloud_data_type": "resource_instance", "immutable": true, "required": true - } - ], - "ibm_sm_public_certificate_configuration_dns_classic_infrastructure": [ + }, { - "name": "created_by", + "name": "region", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true - }, + } + ], + "ibm_sm_public_certificate_configuration_dns_classic_infrastructure": [ { - "name": "created_at", + "name": "endpoint_type", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", - "computed": true + "description": "public or private.", + "optional": true }, { - "name": "classic_infrastructure_password", + "name": "config_type", "type": "TypeString", - "description": "Your classic infrastructure API key.For information about viewing and accessing your classic infrastructure API key, see the [docs](https://cloud.ibm.com/docs/account?topic=account-classic_keys).", + "description": "Th configuration type.", "computed": true }, { @@ -81141,9 +83780,9 @@ "computed": true }, { - "name": "config_type", + "name": "created_at", "type": "TypeString", - "description": "Th configuration type.", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { @@ -81158,6 +83797,24 @@ "description": "The username that is associated with your classic infrastructure account.In most cases, your classic infrastructure username is your `\u003caccount_id\u003e_\u003cemail_address\u003e`. For more information, see the [docs](https://cloud.ibm.com/docs/account?topic=account-classic_keys).", "computed": true }, + { + "name": "classic_infrastructure_password", + "type": "TypeString", + "description": "Your classic infrastructure API key.For information about viewing and accessing your classic infrastructure API key, see the [docs](https://cloud.ibm.com/docs/account?topic=account-classic_keys).", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the configuration.", + "required": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier that is associated with the entity that created the secret.", + "computed": true + }, { "name": "instance_id", "type": "TypeString", @@ -81174,101 +83831,91 @@ "immutable": true, "optional": true, "computed": true - }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the configuration.", - "required": true } ], "ibm_sm_public_certificate_metadata": [ { - "name": "common_name", - "type": "TypeString", - "description": "The Common Name (AKA CN) represents the server name protected by the SSL certificate.", - "computed": true + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "dns", - "type": "TypeString", - "description": "The name of the DNS provider configuration.", + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", "computed": true }, { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "name": "signing_algorithm", + "type": "TypeString", + "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", "computed": true }, { - "name": "secret_type", + "name": "common_name", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "description": "The Common Name (AKA CN) represents the server name protected by the SSL certificate.", "computed": true }, { - "name": "secret_group_id", + "name": "endpoint_type", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", - "computed": true + "description": "public or private.", + "optional": true }, { - "name": "state_description", + "name": "name", "type": "TypeString", - "description": "A text representation of the secret state.", + "description": "The human-readable name of your secret.", "computed": true }, { - "name": "signing_algorithm", + "name": "secret_group_id", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", + "description": "A v4 UUID identifier, or `default` secret group.", "computed": true }, { - "name": "validity", + "name": "alt_names", "type": "TypeList", - "description": "The date and time that the certificate validity period begins and ends.", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", "computed": true, "elem": { - "not_after": { - "name": "not_after", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - }, - "not_before": { - "name": "not_before", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - } + "type": "TypeString" } }, { - "name": "crn", + "name": "serial_number", "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", "computed": true }, { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "bundle_certs", + "type": "TypeBool", + "description": "Indicates whether the issued certificate is bundled with intermediate certificates.", "computed": true }, { - "name": "issuer", + "name": "instance_id", "type": "TypeString", - "description": "The distinguished name that identifies the entity that signed and issued the certificate.", - "computed": true + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { "name": "region", @@ -81280,13 +83927,16 @@ "computed": true }, { - "name": "alt_names", - "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "created_at", + "type": "TypeString", + "description": "The date when a resource was created. The date format follows RFC 3339.", + "computed": true + }, + { + "name": "issuer", + "type": "TypeString", + "description": "The distinguished name that identifies the entity that signed and issued the certificate.", + "computed": true }, { "name": "issuance_info", @@ -81377,39 +84027,60 @@ } }, { - "name": "updated_at", + "name": "validity", + "type": "TypeList", + "description": "The date and time that the certificate validity period begins and ends.", + "computed": true, + "elem": { + "not_after": { + "name": "not_after", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + }, + "not_before": { + "name": "not_before", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + } + } + }, + { + "name": "ca", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "The name of the certificate authority configuration.", "computed": true }, { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "name": "crn", + "type": "TypeString", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", "computed": true }, { - "name": "bundle_certs", - "type": "TypeBool", - "description": "Indicates whether the issued certificate is bundled with intermediate certificates.", + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", "computed": true }, { - "name": "name", + "name": "state_description", "type": "TypeString", - "description": "The human-readable name of your secret.", + "description": "A text representation of the secret state.", "computed": true }, { - "name": "expiration_date", + "name": "updated_at", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "key_algorithm", + "name": "expiration_date", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm to be used to generate the public key that is associated with the certificate.The algorithm that you select determines the encryption algorithm (`RSA` or `ECDSA`) and key size to be used to generate keys and sign certificates. For longer living certificates, it is recommended to use longer keys to provide more encryption protection. Allowed values: RSA2048, RSA4096, EC256, EC384.", + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true }, { @@ -81419,51 +84090,46 @@ "required": true }, { - "name": "description", + "name": "key_algorithm", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "description": "The identifier for the cryptographic algorithm to be used to generate the public key that is associated with the certificate.The algorithm that you select determines the encryption algorithm (`RSA` or `ECDSA`) and key size to be used to generate keys and sign certificates. For longer living certificates, it is recommended to use longer keys to provide more encryption protection. Allowed values: RSA2048, RSA4096, EC256, EC384.", "computed": true }, { - "name": "versions_total", + "name": "state", "type": "TypeInt", - "description": "The number of versions of the secret.", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { - "name": "serial_number", + "name": "dns", "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", + "description": "The name of the DNS provider configuration.", "computed": true }, { - "name": "ca", + "name": "created_by", "type": "TypeString", - "description": "The name of the certificate authority configuration.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "instance_id", + "name": "description", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "computed": true }, { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true }, { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "secret_type", + "type": "TypeString", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "computed": true }, { "name": "rotation", @@ -81484,30 +84150,23 @@ "computed": true } } - }, + } + ], + "ibm_sm_secret_group": [ { - "name": "endpoint_type", + "name": "updated_at", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The date that a resource was recently modified. The date format follows RFC 3339.", + "computed": true }, { - "name": "created_at", + "name": "instance_id", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", - "computed": true + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, - { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", - "computed": true, - "elem": { - "type": "TypeString" - } - } - ], - "ibm_sm_secret_group": [ { "name": "region", "type": "TypeString", @@ -81546,13 +84205,9 @@ "type": "TypeString", "description": "The date that a resource was created. The date format follows RFC 3339.", "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "The date that a resource was recently modified. The date format follows RFC 3339.", - "computed": true - }, + } + ], + "ibm_sm_secret_groups": [ { "name": "instance_id", "type": "TypeString", @@ -81560,9 +84215,22 @@ "cloud_data_type": "resource_instance", "immutable": true, "required": true - } - ], - "ibm_sm_secret_groups": [ + }, + { + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true + }, { "name": "secret_groups", "type": "TypeList", @@ -81606,65 +84274,9 @@ "type": "TypeInt", "description": "The total number of resources in a collection.", "computed": true - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "region", - "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true } ], "ibm_sm_secrets": [ - { - "name": "region", - "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, - { - "name": "sort", - "type": "TypeString", - "description": "Sort a collection of secrets by the specified field in ascending order. To sort in descending order use the `-` character. Available values: id | created_at | updated_at | expiration_date | secret_type | name", - "optional": true - }, - { - "name": "search", - "type": "TypeString", - "description": "Obtain a collection of secrets that contain the specified string in one or more of the fields: `id`, `name`, `description`,\n `labels`, `secret_type`.", - "optional": true - }, - { - "name": "groups", - "type": "TypeString", - "description": "Filter secrets by groups. You can apply multiple filters by using a comma-separated list of secret group IDs. If you need to filter secrets that are in the default secret group, use the `default` keyword.", - "optional": true - }, { "name": "total_count", "type": "TypeInt", @@ -82072,6 +84684,39 @@ "cloud_data_type": "resource_instance", "immutable": true, "required": true + }, + { + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true + }, + { + "name": "sort", + "type": "TypeString", + "description": "Sort a collection of secrets by the specified field in ascending order. To sort in descending order use the `-` character. Available values: id | created_at | updated_at | expiration_date | secret_type | name", + "optional": true + }, + { + "name": "search", + "type": "TypeString", + "description": "Obtain a collection of secrets that contain the specified string in one or more of the fields: `id`, `name`, `description`,\n `labels`, `secret_type`.", + "optional": true + }, + { + "name": "groups", + "type": "TypeString", + "description": "Filter secrets by groups. You can apply multiple filters by using a comma-separated list of secret group IDs. If you need to filter secrets that are in the default secret group, use the `default` keyword.", + "optional": true } ], "ibm_sm_username_password_secret": [ @@ -82082,20 +84727,69 @@ "computed": true }, { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", - "computed": true + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "name": "secret_group_id", + "type": "TypeString", + "description": "A v4 UUID identifier, or `default` secret group.", "computed": true }, { - "name": "rotation", - "type": "TypeList", + "name": "secret_group_name", + "type": "TypeString", + "description": "The human-readable name of your secret group.", + "optional": true + }, + { + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "computed": true + }, + { + "name": "username", + "type": "TypeString", + "description": "The username that is assigned to the secret.", + "computed": true + }, + { + "name": "password", + "type": "TypeString", + "description": "The password that is assigned to the secret.", + "secure": true, + "computed": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, + { + "name": "secret_id", + "type": "TypeString", + "description": "The ID of the secret.", + "optional": true, + "computed": true + }, + { + "name": "rotation", + "type": "TypeList", "description": "Determines whether Secrets Manager rotates your secrets automatically.", "computed": true, "elem": { @@ -82126,41 +84820,24 @@ } }, { - "name": "next_rotation_date", - "type": "TypeString", - "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", - "computed": true - }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, - { - "name": "crn", + "name": "region", "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, { - "name": "secret_type", + "name": "created_by", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "password", + "name": "created_at", "type": "TypeString", - "description": "The password that is assigned to the secret.", - "secure": true, + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { @@ -82173,21 +84850,15 @@ } }, { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true }, { - "name": "name", + "name": "secret_type", "type": "TypeString", - "description": "The human-readable name of your secret.", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { @@ -82196,41 +84867,6 @@ "description": "A text representation of the secret state.", "computed": true }, - { - "name": "updated_at", - "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "region", - "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "secret_id", - "type": "TypeString", - "description": "The ID of the secret.", - "required": true - }, - { - "name": "secret_group_id", - "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", - "computed": true - }, { "name": "versions_total", "type": "TypeInt", @@ -82244,22 +84880,11 @@ "computed": true }, { - "name": "username", + "name": "endpoint_type", "type": "TypeString", - "description": "The username that is assigned to the secret.", - "computed": true + "description": "public or private.", + "optional": true }, - { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", - "computed": true, - "elem": { - "type": "TypeString" - } - } - ], - "ibm_sm_username_password_secret_metadata": [ { "name": "crn", "type": "TypeString", @@ -82268,43 +84893,26 @@ "computed": true }, { - "name": "description", - "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", "computed": true }, { "name": "name", "type": "TypeString", "description": "The human-readable name of your secret.", + "optional": true, "computed": true }, { - "name": "secret_type", - "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", - "computed": true - }, - { - "name": "state_description", + "name": "next_rotation_date", "type": "TypeString", - "description": "A text representation of the secret state.", + "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", "computed": true - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "secret_id", - "type": "TypeString", - "description": "The ID of the secret.", - "required": true - }, + } + ], + "ibm_sm_username_password_secret_metadata": [ { "name": "labels", "type": "TypeList", @@ -82315,9 +84923,15 @@ } }, { - "name": "updated_at", + "name": "secret_type", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "computed": true + }, + { + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { @@ -82327,9 +84941,12 @@ "computed": true }, { - "name": "expiration_date", + "name": "region", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, { @@ -82338,12 +84955,6 @@ "description": "public or private.", "optional": true }, - { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true - }, { "name": "created_at", "type": "TypeString", @@ -82351,13 +84962,10 @@ "computed": true }, { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "description", + "type": "TypeString", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "computed": true }, { "name": "downloaded", @@ -82366,36 +84974,9 @@ "computed": true }, { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", - "computed": true - }, - { - "name": "next_rotation_date", - "type": "TypeString", - "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", - "computed": true - }, - { - "name": "region", - "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", - "computed": true - }, - { - "name": "secret_group_id", + "name": "name", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", + "description": "The human-readable name of your secret.", "computed": true }, { @@ -82429,9 +85010,90 @@ "computed": true } } + }, + { + "name": "expiration_date", + "type": "TypeString", + "description": "The date a secret is expired. The date format follows RFC 3339.", + "computed": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, + { + "name": "secret_id", + "type": "TypeString", + "description": "The ID of the secret.", + "required": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "next_rotation_date", + "type": "TypeString", + "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", + "computed": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier that is associated with the entity that created the secret.", + "computed": true + }, + { + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", + "computed": true + }, + { + "name": "secret_group_id", + "type": "TypeString", + "description": "A v4 UUID identifier, or `default` secret group.", + "computed": true + }, + { + "name": "state_description", + "type": "TypeString", + "description": "A text representation of the secret state.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "computed": true } ], "ibm_space": [ + { + "name": "developers", + "type": "TypeSet", + "description": "The IBMID of the users who have developer role in this space, ex - user@example.com", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "space", "type": "TypeString", @@ -82468,15 +85130,6 @@ "elem": { "type": "TypeString" } - }, - { - "name": "developers", - "type": "TypeSet", - "description": "The IBMID of the users who have developer role in this space, ex - user@example.com", - "computed": true, - "elem": { - "type": "TypeString" - } } ], "ibm_tg_connection_prefix_filter": [ @@ -82487,16 +85140,16 @@ "computed": true }, { - "name": "connection_id", + "name": "gateway", "type": "TypeString", - "description": "The Transit Gateway Connection identifier", + "description": "The Transit Gateway identifier", "required": true }, { - "name": "action", + "name": "connection_id", "type": "TypeString", - "description": "Whether to permit or deny the prefix filter", - "computed": true + "description": "The Transit Gateway Connection identifier", + "required": true }, { "name": "before", @@ -82505,9 +85158,9 @@ "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that this prefix filter was created", + "name": "ge", + "type": "TypeInt", + "description": "IP Prefix GE", "computed": true }, { @@ -82517,21 +85170,21 @@ "computed": true }, { - "name": "gateway", + "name": "filter_id", "type": "TypeString", - "description": "The Transit Gateway identifier", + "description": "The Transit Gateway Connection Prefix Filter identifier", "required": true }, { - "name": "filter_id", + "name": "action", "type": "TypeString", - "description": "The Transit Gateway Connection Prefix Filter identifier", - "required": true + "description": "Whether to permit or deny the prefix filter", + "computed": true }, { - "name": "ge", - "type": "TypeInt", - "description": "IP Prefix GE", + "name": "created_at", + "type": "TypeString", + "description": "The date and time that this prefix filter was created", "computed": true }, { @@ -82542,6 +85195,18 @@ } ], "ibm_tg_connection_prefix_filters": [ + { + "name": "gateway", + "type": "TypeString", + "description": "The Transit Gateway identifier", + "required": true + }, + { + "name": "connection_id", + "type": "TypeString", + "description": "The Transit Gateway Connection identifier", + "required": true + }, { "name": "prefix_filters", "type": "TypeList", @@ -82596,31 +85261,14 @@ "computed": true } } - }, - { - "name": "gateway", - "type": "TypeString", - "description": "The Transit Gateway identifier", - "required": true - }, - { - "name": "connection_id", - "type": "TypeString", - "description": "The Transit Gateway Connection identifier", - "required": true } ], "ibm_tg_gateway": [ { - "name": "updated_at", - "type": "TypeString", - "computed": true - }, - { - "name": "resource_group", + "name": "name", "type": "TypeString", - "cloud_data_type": "resource_group", - "computed": true + "description": "The Transit Gateway identifier", + "required": true }, { "name": "crn", @@ -82629,13 +85277,9 @@ "computed": true }, { - "name": "created_at", + "name": "location", "type": "TypeString", - "computed": true - }, - { - "name": "global", - "type": "TypeBool", + "cloud_data_type": "region", "computed": true }, { @@ -82643,18 +85287,6 @@ "type": "TypeString", "computed": true }, - { - "name": "name", - "type": "TypeString", - "description": "The Transit Gateway identifier", - "required": true - }, - { - "name": "location", - "type": "TypeString", - "cloud_data_type": "region", - "computed": true - }, { "name": "connections", "type": "TypeList", @@ -82753,6 +85385,27 @@ "computed": true } } + }, + { + "name": "created_at", + "type": "TypeString", + "computed": true + }, + { + "name": "global", + "type": "TypeBool", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "cloud_data_type": "resource_group", + "computed": true } ], "ibm_tg_gateways": [ @@ -82811,12 +85464,6 @@ } ], "ibm_tg_location": [ - { - "name": "name", - "type": "TypeString", - "description": "Name of the Location.", - "required": true - }, { "name": "type", "type": "TypeString", @@ -82854,6 +85501,12 @@ "computed": true } } + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the Location.", + "required": true } ], "ibm_tg_locations": [ @@ -82885,6 +85538,48 @@ } ], "ibm_tg_route_report": [ + { + "name": "overlapping_routes", + "type": "TypeList", + "description": "Collection of transit gateway overlapping routes", + "computed": true, + "elem": { + "routes": { + "name": "routes", + "type": "TypeList", + "description": "Collection of transit gateway overlapping route's details", + "computed": true, + "elem": { + "connection_id": { + "name": "connection_id", + "type": "TypeString", + "computed": true + }, + "prefix": { + "name": "prefix", + "type": "TypeString", + "computed": true + } + } + } + } + }, + { + "name": "status", + "type": "TypeString", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "computed": true + }, + { + "name": "gateway", + "type": "TypeString", + "description": "The Transit Gateway identifier", + "required": true + }, { "name": "route_report", "type": "TypeString", @@ -82959,48 +85654,6 @@ "name": "created_at", "type": "TypeString", "computed": true - }, - { - "name": "overlapping_routes", - "type": "TypeList", - "description": "Collection of transit gateway overlapping routes", - "computed": true, - "elem": { - "routes": { - "name": "routes", - "type": "TypeList", - "description": "Collection of transit gateway overlapping route's details", - "computed": true, - "elem": { - "connection_id": { - "name": "connection_id", - "type": "TypeString", - "computed": true - }, - "prefix": { - "name": "prefix", - "type": "TypeString", - "computed": true - } - } - } - } - }, - { - "name": "status", - "type": "TypeString", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "computed": true - }, - { - "name": "gateway", - "type": "TypeString", - "description": "The Transit Gateway identifier", - "required": true } ], "ibm_tg_route_reports": [ @@ -83132,6 +85785,12 @@ }, "Resources": { "ibm_api_gateway_endpoint": [ + { + "name": "base_path", + "type": "TypeString", + "description": "Base path of an endpoint", + "computed": true + }, { "name": "provider_id", "type": "TypeString", @@ -83139,12 +85798,6 @@ "default_value": "user-defined", "optional": true }, - { - "name": "endpoint_id", - "type": "TypeString", - "description": "Endpoint ID", - "computed": true - }, { "name": "type", "type": "TypeString", @@ -83152,6 +85805,32 @@ "default_value": "unshare", "optional": true }, + { + "name": "service_instance_crn", + "type": "TypeString", + "description": "Api Gateway Service Instance Crn", + "immutable": true, + "required": true + }, + { + "name": "open_api_doc_name", + "type": "TypeString", + "description": "Json File path", + "required": true + }, + { + "name": "managed", + "type": "TypeBool", + "description": "Managed indicates if endpoint is online or offline.", + "default_value": false, + "optional": true + }, + { + "name": "endpoint_id", + "type": "TypeString", + "description": "Endpoint ID", + "computed": true + }, { "name": "name", "type": "TypeString", @@ -83172,35 +85851,22 @@ "type": "TypeBool", "description": "The Shared status of an endpoint", "computed": true - }, + } + ], + "ibm_api_gateway_endpoint_subscription": [ { - "name": "base_path", + "name": "client_id", "type": "TypeString", - "description": "Base path of an endpoint", + "description": "Subscription Id, API key that is used to create subscription", + "optional": true, "computed": true }, { - "name": "service_instance_crn", - "type": "TypeString", - "description": "Api Gateway Service Instance Crn", - "immutable": true, - "required": true - }, - { - "name": "open_api_doc_name", + "name": "name", "type": "TypeString", - "description": "Json File path", + "description": "Subscription name", "required": true }, - { - "name": "managed", - "type": "TypeBool", - "description": "Managed indicates if endpoint is online or offline.", - "default_value": false, - "optional": true - } - ], - "ibm_api_gateway_endpoint_subscription": [ { "name": "type", "type": "TypeString", @@ -83232,28 +85898,36 @@ "description": "Endpoint ID", "immutable": true, "required": true - }, + } + ], + "ibm_app": [ { - "name": "client_id", + "name": "buildpack", "type": "TypeString", - "description": "Subscription Id, API key that is used to create subscription", + "description": "Buildpack to build the app. 3 options: a) Blank means autodetection; b) A Git Url pointing to a buildpack; c) Name of an installed buildpack.", + "optional": true + }, + { + "name": "service_instance_guid", + "type": "TypeSet", + "description": "Define the service instance guids that should be bound to this application.", "optional": true, - "computed": true + "elem": { + "type": "TypeString" + } }, { - "name": "name", - "type": "TypeString", - "description": "Subscription name", - "required": true - } - ], - "ibm_app": [ + "name": "health_check_timeout", + "type": "TypeInt", + "description": "Timeout in seconds for health checking of an staged app when starting up.", + "optional": true + }, { - "name": "memory", + "name": "instances", "type": "TypeInt", - "description": "The amount of memory each instance should have. In megabytes.", - "optional": true, - "computed": true + "description": "The number of instances", + "default_value": 1, + "optional": true }, { "name": "space_guid", @@ -83263,29 +85937,36 @@ "required": true }, { - "name": "environment_json", - "type": "TypeMap", - "description": "Key/value pairs of all the environment variables to run in your app. Does not include any system or service variables.", - "optional": true - }, - { - "name": "tags", + "name": "route_guid", "type": "TypeSet", - "cloud_data_type": "tags", + "description": "Define the route guids which should be bound to the application.", "optional": true, "elem": { "type": "TypeString" } }, { - "name": "service_instance_guid", + "name": "tags", "type": "TypeSet", - "description": "Define the service instance guids that should be bound to this application.", + "cloud_data_type": "tags", "optional": true, "elem": { "type": "TypeString" } }, + { + "name": "name", + "type": "TypeString", + "description": "The name for the app", + "required": true + }, + { + "name": "memory", + "type": "TypeInt", + "description": "The amount of memory each instance should have. In megabytes.", + "optional": true, + "computed": true + }, { "name": "health_check_type", "type": "TypeString", @@ -83294,39 +85975,24 @@ "optional": true }, { - "name": "health_check_timeout", - "type": "TypeInt", - "description": "Timeout in seconds for health checking of an staged app when starting up.", + "name": "environment_json", + "type": "TypeMap", + "description": "Key/value pairs of all the environment variables to run in your app. Does not include any system or service variables.", "optional": true }, { - "name": "name", - "type": "TypeString", - "description": "The name for the app", - "required": true - }, - { - "name": "instances", + "name": "wait_time_minutes", "type": "TypeInt", - "description": "The number of instances", - "default_value": 1, + "description": "Define timeout to wait for the app instances to start/update/restage etc.", + "default_value": 20, "optional": true }, { - "name": "buildpack", + "name": "app_version", "type": "TypeString", - "description": "Buildpack to build the app. 3 options: a) Blank means autodetection; b) A Git Url pointing to a buildpack; c) Name of an installed buildpack.", + "description": "Version of the application", "optional": true }, - { - "name": "route_guid", - "type": "TypeSet", - "description": "Define the route guids which should be bound to the application.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, { "name": "command", "type": "TypeString", @@ -83351,19 +86017,6 @@ "type": "TypeString", "description": "Define the path of the zip file of the application.", "required": true - }, - { - "name": "app_version", - "type": "TypeString", - "description": "Version of the application", - "optional": true - }, - { - "name": "wait_time_minutes", - "type": "TypeInt", - "description": "Define timeout to wait for the app instances to start/update/restage etc.", - "default_value": 20, - "optional": true } ], "ibm_app_config_collection": [ @@ -83375,10 +86028,10 @@ "required": true }, { - "name": "collection_id", + "name": "description", "type": "TypeString", - "description": "Collection Id.", - "required": true + "description": "Collection description", + "optional": true }, { "name": "tags", @@ -83394,9 +86047,9 @@ "computed": true }, { - "name": "href", + "name": "updated_time", "type": "TypeString", - "description": "Collection URL.", + "description": "Last modified time of the collection data.", "computed": true }, { @@ -83412,15 +86065,15 @@ "required": true }, { - "name": "description", + "name": "collection_id", "type": "TypeString", - "description": "Collection description", - "optional": true + "description": "Collection Id.", + "required": true }, { - "name": "updated_time", + "name": "href", "type": "TypeString", - "description": "Last modified time of the collection data.", + "description": "Collection URL.", "computed": true }, { @@ -83431,138 +86084,68 @@ } ], "ibm_app_config_environment": [ - { - "name": "name", - "type": "TypeString", - "description": "Environment name.", - "required": true - }, - { - "name": "tags", - "type": "TypeString", - "description": "Tags associated with the environment", - "cloud_data_type": "tags", - "optional": true - }, - { - "name": "color_code", - "type": "TypeString", - "description": "Color code to distinguish the environment.", - "optional": true - }, - { - "name": "guid", - "type": "TypeString", - "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", - "immutable": true, - "required": true - }, - { - "name": "environment_id", - "type": "TypeString", - "description": "Environment Id.", - "required": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Environment description", - "optional": true - }, { "name": "created_time", "type": "TypeString", "description": "Creation time of the environment.", "computed": true }, - { - "name": "updated_time", - "type": "TypeString", - "description": "Last modified time of the environment data.", - "computed": true - }, { "name": "href", "type": "TypeString", "description": "Environment URL.", "computed": true - } - ], - "ibm_app_config_feature": [ - { - "name": "feature_id", - "type": "TypeString", - "description": "Feature id.", - "required": true }, { - "name": "type", + "name": "description", "type": "TypeString", - "description": "Type of the feature (BOOLEAN, STRING, NUMERIC).", - "required": true, - "options": "BOOLEAN, NUMERIC, STRING" + "description": "Environment description", + "optional": true }, { "name": "tags", "type": "TypeString", - "description": "Tags associated with the feature.", + "description": "Tags associated with the environment", "cloud_data_type": "tags", "optional": true }, { - "name": "collections", - "type": "TypeList", - "description": "List of collection id representing the collections that are associated with the specified feature flag.", - "optional": true, - "elem": { - "collection_id": { - "name": "collection_id", - "type": "TypeString", - "description": "Collection id.", - "required": true - } - } - }, - { - "name": "enabled", - "type": "TypeBool", - "description": "The state of the feature flag.", - "computed": true - }, - { - "name": "disabled_value", + "name": "color_code", "type": "TypeString", - "description": "Value of the feature when it is disabled. The value can be BOOLEAN, STRING or a NUMERIC value as per the `type` attribute.", - "required": true + "description": "Color code to distinguish the environment.", + "optional": true }, { "name": "updated_time", "type": "TypeString", - "description": "Last modified time of the feature flag data.", + "description": "Last modified time of the environment data.", "computed": true }, { - "name": "href", + "name": "guid", "type": "TypeString", - "description": "Feature flag URL.", - "computed": true + "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", + "immutable": true, + "required": true }, { - "name": "created_time", + "name": "name", "type": "TypeString", - "description": "Creation time of the feature flag.", - "computed": true + "description": "Environment name.", + "required": true }, { - "name": "guid", + "name": "environment_id", "type": "TypeString", - "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", + "description": "Environment Id.", "required": true - }, + } + ], + "ibm_app_config_feature": [ { - "name": "enabled_value", + "name": "disabled_value", "type": "TypeString", - "description": "Value of the feature when it is enabled. The value can be BOOLEAN, STRING or a NUMERIC value as per the `type` attribute.", + "description": "Value of the feature when it is disabled. The value can be BOOLEAN, STRING or a NUMERIC value as per the `type` attribute.", "required": true }, { @@ -83615,10 +86198,24 @@ } }, { - "name": "segment_exists", - "type": "TypeBool", - "description": "Denotes if the targeting rules are specified for the feature flag.", - "computed": true + "name": "collections", + "type": "TypeList", + "description": "List of collection id representing the collections that are associated with the specified feature flag.", + "optional": true, + "elem": { + "collection_id": { + "name": "collection_id", + "type": "TypeString", + "description": "Collection id.", + "required": true + } + } + }, + { + "name": "guid", + "type": "TypeString", + "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", + "required": true }, { "name": "environment_id", @@ -83627,72 +86224,79 @@ "required": true }, { - "name": "name", + "name": "type", "type": "TypeString", - "description": "Feature name.", - "required": true + "description": "Type of the feature (BOOLEAN, STRING, NUMERIC).", + "required": true, + "options": "BOOLEAN, NUMERIC, STRING" }, { "name": "rollout_percentage", "type": "TypeInt", "description": "Rollout percentage of the feature.", "optional": true - } - ], - "ibm_app_config_property": [ + }, + { + "name": "segment_exists", + "type": "TypeBool", + "description": "Denotes if the targeting rules are specified for the feature flag.", + "computed": true + }, { "name": "href", "type": "TypeString", - "description": "Property URL.", + "description": "Feature flag URL.", "computed": true }, { "name": "name", "type": "TypeString", - "description": "Property name.", + "description": "Feature name.", "required": true }, { - "name": "tags", + "name": "feature_id", "type": "TypeString", - "description": "Tags associated with the property.", - "cloud_data_type": "tags", - "optional": true + "description": "Feature id.", + "required": true }, { - "name": "updated_time", - "type": "TypeString", - "description": "Last modified time of the property data.", + "name": "enabled", + "type": "TypeBool", + "description": "The state of the feature flag.", "computed": true }, { - "name": "evaluation_time", + "name": "created_time", "type": "TypeString", - "description": "The last occurrence of the property value evaluation.", + "description": "Creation time of the feature flag.", "computed": true }, { - "name": "description", + "name": "enabled_value", "type": "TypeString", - "description": "Property description.", - "optional": true + "description": "Value of the feature when it is enabled. The value can be BOOLEAN, STRING or a NUMERIC value as per the `type` attribute.", + "required": true }, { - "name": "value", + "name": "tags", "type": "TypeString", - "description": "Value of the Property. The value can be Boolean, String or a Numeric value as per the `type` attribute.", - "required": true + "description": "Tags associated with the feature.", + "cloud_data_type": "tags", + "optional": true }, { - "name": "segment_exists", - "type": "TypeBool", - "description": "Denotes if the targeting rules are specified for the property.", + "name": "updated_time", + "type": "TypeString", + "description": "Last modified time of the feature flag data.", "computed": true - }, + } + ], + "ibm_app_config_property": [ { - "name": "environment_id", + "name": "guid", "type": "TypeString", - "description": "Environment Id.", + "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", "required": true }, { @@ -83707,6 +86311,13 @@ "description": "Type of the Property (BOOLEAN, STRING, NUMERIC).", "required": true }, + { + "name": "tags", + "type": "TypeString", + "description": "Tags associated with the property.", + "cloud_data_type": "tags", + "optional": true + }, { "name": "format", "type": "TypeString", @@ -83750,6 +86361,18 @@ } } }, + { + "name": "href", + "type": "TypeString", + "description": "Property URL.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Property description.", + "optional": true + }, { "name": "collections", "type": "TypeList", @@ -83764,6 +86387,12 @@ } } }, + { + "name": "segment_exists", + "type": "TypeBool", + "description": "Denotes if the targeting rules are specified for the property.", + "computed": true + }, { "name": "created_time", "type": "TypeString", @@ -83771,44 +86400,61 @@ "computed": true }, { - "name": "guid", + "name": "updated_time", "type": "TypeString", - "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", + "description": "Last modified time of the property data.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Property name.", "required": true - } - ], - "ibm_app_config_segment": [ + }, { - "name": "tags", + "name": "value", "type": "TypeString", - "description": "Tags associated with the segments.", - "cloud_data_type": "tags", - "optional": true + "description": "Value of the Property. The value can be Boolean, String or a Numeric value as per the `type` attribute.", + "required": true }, { - "name": "created_time", + "name": "environment_id", "type": "TypeString", - "description": "Creation time of the segment.", - "computed": true + "description": "Environment Id.", + "required": true }, { - "name": "href", + "name": "evaluation_time", "type": "TypeString", - "description": "Segment URL.", + "description": "The last occurrence of the property value evaluation.", "computed": true - }, + } + ], + "ibm_app_config_segment": [ { - "name": "segment_id", + "name": "guid", "type": "TypeString", - "description": "Segment id.", + "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", "required": true }, + { + "name": "updated_time", + "type": "TypeString", + "description": "Last modified time of the segment data.", + "computed": true + }, { "name": "name", "type": "TypeString", "description": "Segment name.", "required": true }, + { + "name": "segment_id", + "type": "TypeString", + "description": "Segment id.", + "required": true + }, { "name": "description", "type": "TypeString", @@ -83816,10 +86462,23 @@ "optional": true }, { - "name": "updated_time", + "name": "tags", "type": "TypeString", - "description": "Last modified time of the segment data.", - "computed": true + "description": "Tags associated with the segments.", + "cloud_data_type": "tags", + "optional": true + }, + { + "name": "created_time", + "type": "TypeString", + "description": "Creation time of the segment.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "Segment URL.", + "computed": true }, { "name": "rules", @@ -83849,46 +86508,9 @@ } } } - }, - { - "name": "guid", - "type": "TypeString", - "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", - "required": true } ], "ibm_app_config_snapshot": [ - { - "name": "git_branch", - "type": "TypeString", - "description": "Branch name to which you need to write or update the configuration.", - "required": true - }, - { - "name": "git_token", - "type": "TypeString", - "description": "Git token, this needs to be provided with enough permission to write and update the file.", - "secure": true, - "required": true - }, - { - "name": "created_time", - "type": "TypeString", - "description": "Creation time of the git config.", - "computed": true - }, - { - "name": "updated_time", - "type": "TypeString", - "description": "Last modified time of the git config data.", - "computed": true - }, - { - "name": "guid", - "type": "TypeString", - "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", - "required": true - }, { "name": "git_config_id", "type": "TypeString", @@ -83896,10 +86518,10 @@ "required": true }, { - "name": "action", + "name": "git_branch", "type": "TypeString", - "description": "action promote", - "optional": true + "description": "Branch name to which you need to write or update the configuration.", + "required": true }, { "name": "href", @@ -83928,30 +86550,10 @@ } }, { - "name": "environment", - "type": "TypeList", - "description": "Environment object", - "computed": true, - "elem": { - "color_code": { - "name": "color_code", - "type": "TypeString", - "description": "Environment color code.", - "computed": true - }, - "environment_id": { - "name": "environment_id", - "type": "TypeString", - "description": "Environment id.", - "computed": true - }, - "environment_name": { - "name": "environment_name", - "type": "TypeString", - "description": "Environment name.", - "computed": true - } - } + "name": "git_file_path", + "type": "TypeString", + "description": "Git file path, this is a path where your configuration file will be written.", + "required": true }, { "name": "collection_id", @@ -83960,9 +86562,21 @@ "required": true }, { - "name": "git_config_name", + "name": "action", "type": "TypeString", - "description": "Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only", + "description": "action promote", + "optional": true + }, + { + "name": "environment_id", + "type": "TypeString", + "description": "Environment id.", + "required": true + }, + { + "name": "guid", + "type": "TypeString", + "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", "required": true }, { @@ -83972,28 +86586,58 @@ "required": true }, { - "name": "git_file_path", + "name": "git_config_name", "type": "TypeString", - "description": "Git file path, this is a path where your configuration file will be written.", + "description": "Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only", "required": true }, { - "name": "environment_id", + "name": "git_token", "type": "TypeString", - "description": "Environment id.", + "description": "Git token, this needs to be provided with enough permission to write and update the file.", + "secure": true, "required": true - } - ], - "ibm_app_domain_private": [ + }, { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "optional": true, + "name": "created_time", + "type": "TypeString", + "description": "Creation time of the git config.", + "computed": true + }, + { + "name": "updated_time", + "type": "TypeString", + "description": "Last modified time of the git config data.", + "computed": true + }, + { + "name": "environment", + "type": "TypeList", + "description": "Environment object", + "computed": true, "elem": { - "type": "TypeString" + "color_code": { + "name": "color_code", + "type": "TypeString", + "description": "Environment color code.", + "computed": true + }, + "environment_id": { + "name": "environment_id", + "type": "TypeString", + "description": "Environment id.", + "computed": true + }, + "environment_name": { + "name": "environment_name", + "type": "TypeString", + "description": "Environment name.", + "computed": true + } } - }, + } + ], + "ibm_app_domain_private": [ { "name": "name", "type": "TypeString", @@ -84007,6 +86651,15 @@ "description": "The organization that owns the domain.", "immutable": true, "required": true + }, + { + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } } ], "ibm_app_domain_shared": [ @@ -84203,18 +86856,6 @@ } ], "ibm_appid_application": [ - { - "name": "client_id", - "type": "TypeString", - "description": "The `client_id` is a public identifier for applications", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The application name to be registered. Application name cannot exceed 50 characters.", - "required": true - }, { "name": "type", "type": "TypeString", @@ -84253,16 +86894,21 @@ "description": "The service `tenantId`", "immutable": true, "required": true - } - ], - "ibm_appid_application_roles": [ + }, { - "name": "tenant_id", + "name": "client_id", "type": "TypeString", - "description": "The service `tenantId`", - "immutable": true, - "required": true + "description": "The `client_id` is a public identifier for applications", + "computed": true }, + { + "name": "name", + "type": "TypeString", + "description": "The application name to be registered. Application name cannot exceed 50 characters.", + "required": true + } + ], + "ibm_appid_application_roles": [ { "name": "client_id", "type": "TypeString", @@ -84278,18 +86924,16 @@ "elem": { "type": "TypeString" } + }, + { + "name": "tenant_id", + "type": "TypeString", + "description": "The service `tenantId`", + "immutable": true, + "required": true } ], "ibm_appid_application_scopes": [ - { - "name": "scopes", - "type": "TypeList", - "description": "A `scope` is a runtime action in your application that you register with IBM Cloud App ID to create an access permission", - "required": true, - "elem": { - "type": "TypeString" - } - }, { "name": "tenant_id", "type": "TypeString", @@ -84303,6 +86947,15 @@ "description": "The `client_id` is a public identifier for applications", "immutable": true, "required": true + }, + { + "name": "scopes", + "type": "TypeList", + "description": "A `scope` is a runtime action in your application that you register with IBM Cloud App ID to create an access permission", + "required": true, + "elem": { + "type": "TypeString" + } } ], "ibm_appid_audit_status": [ @@ -84370,24 +87023,24 @@ ], "ibm_appid_cloud_directory_user": [ { - "name": "display_name", - "type": "TypeString", - "description": "Cloud Directory user display name", - "optional": true, - "computed": true - }, - { - "name": "user_name", - "type": "TypeString", - "description": "Optional username", - "optional": true - }, - { - "name": "status", - "type": "TypeString", - "description": "Accepted values `PENDING` or `CONFIRMED`", - "default_value": "PENDING", - "optional": true + "name": "email", + "type": "TypeSet", + "description": "A set of user emails", + "required": true, + "elem": { + "primary": { + "name": "primary", + "type": "TypeBool", + "description": "`true` if this is primary email", + "optional": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "User email", + "required": true + } + } }, { "name": "meta", @@ -84410,22 +87063,17 @@ } }, { - "name": "active", + "name": "create_profile", "type": "TypeBool", - "description": "Determines if the user account is active or not", + "description": "A boolean indication if a profile should be created for the Cloud Directory user", "default_value": true, + "immutable": true, "optional": true }, { - "name": "locked_until", - "type": "TypeInt", - "description": "Integer (epoch time in milliseconds), determines till when the user account will be locked", - "optional": true - }, - { - "name": "user_id", + "name": "subject", "type": "TypeString", - "description": "Cloud Directory user ID", + "description": "The user's identifier ('subject' in identity token)", "computed": true }, { @@ -84436,24 +87084,30 @@ "required": true }, { - "name": "email", - "type": "TypeSet", - "description": "A set of user emails", - "required": true, - "elem": { - "primary": { - "name": "primary", - "type": "TypeBool", - "description": "`true` if this is primary email", - "optional": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "User email", - "required": true - } - } + "name": "user_id", + "type": "TypeString", + "description": "Cloud Directory user ID", + "computed": true + }, + { + "name": "display_name", + "type": "TypeString", + "description": "Cloud Directory user display name", + "optional": true, + "computed": true + }, + { + "name": "user_name", + "type": "TypeString", + "description": "Optional username", + "optional": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Accepted values `PENDING` or `CONFIRMED`", + "default_value": "PENDING", + "optional": true }, { "name": "tenant_id", @@ -84463,18 +87117,17 @@ "required": true }, { - "name": "create_profile", + "name": "active", "type": "TypeBool", - "description": "A boolean indication if a profile should be created for the Cloud Directory user", + "description": "Determines if the user account is active or not", "default_value": true, - "immutable": true, "optional": true }, { - "name": "subject", - "type": "TypeString", - "description": "The user's identifier ('subject' in identity token)", - "computed": true + "name": "locked_until", + "type": "TypeInt", + "description": "Integer (epoch time in milliseconds), determines till when the user account will be locked", + "optional": true } ], "ibm_appid_idp_cloud_directory": [ @@ -84484,18 +87137,6 @@ "default_value": true, "optional": true }, - { - "name": "reset_password_notification_enabled", - "type": "TypeBool", - "default_value": true, - "optional": true - }, - { - "name": "tenant_id", - "type": "TypeString", - "immutable": true, - "required": true - }, { "name": "signup_enabled", "type": "TypeBool", @@ -84508,18 +87149,23 @@ "default_value": true, "optional": true }, - { - "name": "reset_password_enabled", - "type": "TypeBool", - "default_value": true, - "optional": true - }, { "name": "identity_confirm_access_mode", "type": "TypeString", "default_value": "FULL", "optional": true }, + { + "name": "tenant_id", + "type": "TypeString", + "immutable": true, + "required": true + }, + { + "name": "is_active", + "type": "TypeBool", + "required": true + }, { "name": "identity_confirm_methods", "type": "TypeList", @@ -84534,9 +87180,16 @@ "optional": true }, { - "name": "is_active", + "name": "reset_password_enabled", "type": "TypeBool", - "required": true + "default_value": true, + "optional": true + }, + { + "name": "reset_password_notification_enabled", + "type": "TypeBool", + "default_value": true, + "optional": true } ], "ibm_appid_idp_custom": [ @@ -84819,18 +87472,6 @@ } ], "ibm_appid_password_regex": [ - { - "name": "error_message", - "type": "TypeString", - "description": "Custom error message", - "optional": true - }, - { - "name": "regex", - "type": "TypeString", - "description": "The escaped regex expression rule for acceptable password", - "required": true - }, { "name": "tenant_id", "type": "TypeString", @@ -84843,6 +87484,18 @@ "type": "TypeString", "description": "The regex expression rule for acceptable password encoded in base64", "computed": true + }, + { + "name": "error_message", + "type": "TypeString", + "description": "Custom error message", + "optional": true + }, + { + "name": "regex", + "type": "TypeString", + "description": "The escaped regex expression rule for acceptable password", + "required": true } ], "ibm_appid_redirect_urls": [ @@ -84864,6 +87517,12 @@ } ], "ibm_appid_role": [ + { + "name": "role_id", + "type": "TypeString", + "description": "Role ID", + "computed": true + }, { "name": "tenant_id", "type": "TypeString", @@ -84903,12 +87562,6 @@ } } } - }, - { - "name": "role_id", - "type": "TypeString", - "description": "Role ID", - "computed": true } ], "ibm_appid_theme_color": [ @@ -84945,13 +87598,6 @@ } ], "ibm_appid_token_config": [ - { - "name": "anonymous_access_enabled", - "type": "TypeBool", - "description": "The length of time for which an anonymous token is valid in seconds", - "optional": true, - "computed": true - }, { "name": "refresh_token_enabled", "type": "TypeBool", @@ -85033,16 +87679,16 @@ "type": "TypeInt", "default_value": 2592000, "optional": true + }, + { + "name": "anonymous_access_enabled", + "type": "TypeBool", + "description": "The length of time for which an anonymous token is valid in seconds", + "optional": true, + "computed": true } ], "ibm_appid_user_roles": [ - { - "name": "tenant_id", - "type": "TypeString", - "description": "The AppID instance GUID", - "immutable": true, - "required": true - }, { "name": "subject", "type": "TypeString", @@ -85058,9 +87704,28 @@ "elem": { "type": "TypeString" } + }, + { + "name": "tenant_id", + "type": "TypeString", + "description": "The AppID instance GUID", + "immutable": true, + "required": true } ], "ibm_atracker_route": [ + { + "name": "created_at", + "type": "TypeString", + "description": "The timestamp of the route creation time.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The timestamp of the route last updated time.", + "computed": true + }, { "name": "api_version", "type": "TypeInt", @@ -85068,30 +87733,24 @@ "computed": true }, { - "name": "receive_global_events", - "type": "TypeBool", - "description": "Indicates whether or not all global events should be forwarded to this region.", - "optional": true, - "deprecated": "use rules.locations instead" - }, - { - "name": "created", + "name": "crn", "type": "TypeString", - "description": "The timestamp of the route creation time.", - "computed": true, - "deprecated": "use created_at instead" + "description": "The crn of the route resource.", + "cloud_data_type": "crn", + "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The timestamp of the route creation time.", + "name": "version", + "type": "TypeInt", + "description": "The version of the route.", "computed": true }, { - "name": "updated_at", + "name": "created", "type": "TypeString", - "description": "The timestamp of the route last updated time.", - "computed": true + "description": "The timestamp of the route creation time.", + "computed": true, + "deprecated": "use created_at instead" }, { "name": "updated", @@ -85109,6 +87768,13 @@ "max_length": 1000, "matches": "^[a-zA-Z0-9 -._:]+$" }, + { + "name": "receive_global_events", + "type": "TypeBool", + "description": "Indicates whether or not all global events should be forwarded to this region.", + "optional": true, + "deprecated": "use rules.locations instead" + }, { "name": "rules", "type": "TypeList", @@ -85134,36 +87800,9 @@ } } } - }, - { - "name": "crn", - "type": "TypeString", - "description": "The crn of the route resource.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "version", - "type": "TypeInt", - "description": "The version of the route.", - "computed": true } ], "ibm_atracker_settings": [ - { - "name": "metadata_region_backup", - "type": "TypeString", - "description": "Provide a back up region to store meta data.", - "max_length": 256, - "matches": "^[a-zA-Z0-9 -_]*", - "optional": true - }, - { - "name": "api_version", - "type": "TypeInt", - "description": "The lowest API version of targets or routes that customer might have under his or her account.", - "computed": true - }, { "name": "metadata_region_primary", "type": "TypeString", @@ -85196,9 +87835,90 @@ "elem": { "type": "TypeString" } + }, + { + "name": "metadata_region_backup", + "type": "TypeString", + "description": "Provide a back up region to store meta data.", + "max_length": 256, + "matches": "^[a-zA-Z0-9 -_]*", + "optional": true + }, + { + "name": "api_version", + "type": "TypeInt", + "description": "The lowest API version of targets or routes that customer might have under his or her account.", + "computed": true } ], "ibm_atracker_target": [ + { + "name": "logdna_endpoint", + "type": "TypeList", + "description": "Property values for a LogDNA Endpoint.", + "optional": true, + "elem": { + "ingestion_key": { + "name": "ingestion_key", + "type": "TypeString", + "description": "The LogDNA ingestion key is used for routing logs to a specific LogDNA instance.", + "secure": true, + "required": true + }, + "target_crn": { + "name": "target_crn", + "type": "TypeString", + "description": "The CRN of the LogDNA instance.", + "required": true + } + }, + "max_items": 1 + }, + { + "name": "region", + "type": "TypeString", + "description": "Include this optional field if you want to create a target in a different region other than the one you are connected.", + "immutable": true, + "min_length": 3, + "max_length": 1000, + "matches": "^[a-zA-Z0-9 -._:]+$", + "optional": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The timestamp of the target last updated time.", + "computed": true + }, + { + "name": "api_version", + "type": "TypeInt", + "description": "The API version of the target.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the target. The name must be 1000 characters or less, and cannot include any special characters other than `(space) - . _ :`.", + "required": true, + "min_length": 1, + "max_length": 1000, + "matches": "^[a-zA-Z0-9 -._:]+$" + }, + { + "name": "target_type", + "type": "TypeString", + "description": "The type of the target. It can be cloud_object_storage, logdna or event_streams. Based on this type you must include cos_endpoint, logdna_endpoint or eventstreams_endpoint.", + "immutable": true, + "required": true, + "options": "cloud_object_storage, logdna, event_streams" + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The timestamp of the target creation time.", + "computed": true + }, { "name": "cos_endpoint", "type": "TypeList", @@ -85239,6 +87959,50 @@ }, "max_items": 1 }, + { + "name": "eventstreams_endpoint", + "type": "TypeList", + "description": "Property values for an Event Streams Endpoint in requests.", + "optional": true, + "elem": { + "api_key": { + "name": "api_key", + "type": "TypeString", + "description": "The user password (api key) for the message hub topic in the Event Streams instance.", + "secure": true, + "required": true + }, + "brokers": { + "name": "brokers", + "type": "TypeList", + "description": "List of broker endpoints.", + "required": true, + "elem": { + "type": "TypeString" + } + }, + "target_crn": { + "name": "target_crn", + "type": "TypeString", + "description": "The CRN of the Event Streams instance.", + "required": true + }, + "topic": { + "name": "topic", + "type": "TypeString", + "description": "The messsage hub topic defined in the Event Streams instance.", + "required": true + } + }, + "max_items": 1 + }, + { + "name": "encrypt_key", + "type": "TypeString", + "description": "The encryption key that is used to encrypt events before Activity Tracker services buffer them on storage. This credential is masked in the response.", + "computed": true, + "deprecated": "use encryption_key instead" + }, { "name": "cos_write_status", "type": "TypeList", @@ -85266,62 +88030,6 @@ }, "deprecated": "use write_status instead" }, - { - "name": "created", - "type": "TypeString", - "description": "The timestamp of the target creation time.", - "computed": true, - "deprecated": "use created_at instead" - }, - { - "name": "target_type", - "type": "TypeString", - "description": "The type of the target. It can be cloud_object_storage, logdna or event_streams. Based on this type you must include cos_endpoint, logdna_endpoint or eventstreams_endpoint.", - "immutable": true, - "required": true, - "options": "cloud_object_storage, logdna, event_streams" - }, - { - "name": "encryption_key", - "type": "TypeString", - "description": "The encryption key that is used to encrypt events before Activity Tracker services buffer them on storage. This credential is masked in the response.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The timestamp of the target creation time.", - "computed": true - }, - { - "name": "api_version", - "type": "TypeInt", - "description": "The API version of the target.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the target. The name must be 1000 characters or less, and cannot include any special characters other than `(space) - . _ :`.", - "required": true, - "min_length": 1, - "max_length": 1000, - "matches": "^[a-zA-Z0-9 -._:]+$" - }, - { - "name": "crn", - "type": "TypeString", - "description": "The crn of the target resource.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "encrypt_key", - "type": "TypeString", - "description": "The encryption key that is used to encrypt events before Activity Tracker services buffer them on storage. This credential is masked in the response.", - "computed": true, - "deprecated": "use encryption_key instead" - }, { "name": "write_status", "type": "TypeList", @@ -85348,191 +88056,227 @@ } } }, + { + "name": "created", + "type": "TypeString", + "description": "The timestamp of the target creation time.", + "computed": true, + "deprecated": "use created_at instead" + }, + { + "name": "crn", + "type": "TypeString", + "description": "The crn of the target resource.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "encryption_key", + "type": "TypeString", + "description": "The encryption key that is used to encrypt events before Activity Tracker services buffer them on storage. This credential is masked in the response.", + "computed": true + }, { "name": "updated", "type": "TypeString", "description": "The timestamp of the target last updated time.", "computed": true, "deprecated": "use updated_at instead" + } + ], + "ibm_billing_report_snapshot": [ + { + "name": "compression", + "type": "TypeString", + "description": "Compression format of the snapshot report.", + "computed": true }, { - "name": "logdna_endpoint", + "name": "history", "type": "TypeList", - "description": "Property values for a LogDNA Endpoint.", - "optional": true, + "description": "List of previous versions of the snapshot configurations.", + "computed": true, "elem": { - "ingestion_key": { - "name": "ingestion_key", + "account_id": { + "name": "account_id", "type": "TypeString", - "description": "The LogDNA ingestion key is used for routing logs to a specific LogDNA instance.", - "secure": true, - "required": true + "description": "Account ID for which billing report snapshot is configured.", + "computed": true }, - "target_crn": { - "name": "target_crn", + "account_type": { + "name": "account_type", "type": "TypeString", - "description": "The CRN of the LogDNA instance.", - "required": true - } - }, - "max_items": 1 - }, - { - "name": "eventstreams_endpoint", - "type": "TypeList", - "description": "Property values for an Event Streams Endpoint in requests.", - "optional": true, - "elem": { - "api_key": { - "name": "api_key", + "description": "Type of account. Possible values [enterprise, account].", + "computed": true + }, + "compression": { + "name": "compression", "type": "TypeString", - "description": "The user password (api key) for the message hub topic in the Event Streams instance.", - "secure": true, - "required": true + "description": "Compression format of the snapshot report.", + "computed": true }, - "brokers": { - "name": "brokers", + "content_type": { + "name": "content_type", + "type": "TypeString", + "description": "Type of content stored in snapshot report.", + "computed": true + }, + "cos_bucket": { + "name": "cos_bucket", + "type": "TypeString", + "description": "The name of the COS bucket to store the snapshot of the billing reports.", + "computed": true + }, + "cos_endpoint": { + "name": "cos_endpoint", + "type": "TypeString", + "description": "The endpoint of the COS instance.", + "computed": true + }, + "cos_location": { + "name": "cos_location", + "type": "TypeString", + "description": "Region of the COS instance.", + "computed": true + }, + "cos_reports_folder": { + "name": "cos_reports_folder", + "type": "TypeString", + "description": "The billing reports root folder to store the billing reports snapshots. Defaults to \"IBMCloud-Billing-Reports\".", + "computed": true + }, + "end_time": { + "name": "end_time", + "type": "TypeInt", + "description": "Timestamp in milliseconds when the snapshot configuration ends.", + "computed": true + }, + "interval": { + "name": "interval", + "type": "TypeString", + "description": "Frequency of taking the snapshot of the billing reports.", + "computed": true + }, + "report_types": { + "name": "report_types", "type": "TypeList", - "description": "List of broker endpoints.", - "required": true, + "description": "The type of billing reports to take snapshot of. Possible values are [account_summary, enterprise_summary, account_resource_instance_usage].", + "computed": true, "elem": { "type": "TypeString" } }, - "target_crn": { - "name": "target_crn", + "start_time": { + "name": "start_time", + "type": "TypeInt", + "description": "Timestamp in milliseconds when the snapshot configuration was created.", + "computed": true + }, + "state": { + "name": "state", "type": "TypeString", - "description": "The CRN of the Event Streams instance.", - "required": true + "description": "Status of the billing snapshot configuration. Possible values are [enabled, disabled].", + "computed": true }, - "topic": { - "name": "topic", + "updated_by": { + "name": "updated_by", "type": "TypeString", - "description": "The messsage hub topic defined in the Event Streams instance.", - "required": true + "description": "Account that updated the billing snapshot configuration.", + "computed": true + }, + "versioning": { + "name": "versioning", + "type": "TypeString", + "description": "A new version of report is created or the existing report version is overwritten with every update.", + "computed": true } - }, - "max_items": 1 + } }, { - "name": "region", + "name": "versioning", "type": "TypeString", - "description": "Include this optional field if you want to create a target in a different region other than the one you are connected.", - "immutable": true, - "min_length": 3, - "max_length": 1000, - "matches": "^[a-zA-Z0-9 -._:]+$", + "description": "A new version of report is created or the existing report version is overwritten with every update.", + "default_value": "new", + "options": "new, overwrite", "optional": true }, { - "name": "updated_at", - "type": "TypeString", - "description": "The timestamp of the target last updated time.", - "computed": true - } - ], - "ibm_cbr_rule": [ - { - "name": "last_modified_by_id", + "name": "cos_bucket", "type": "TypeString", - "description": "IAM ID of the user or service which modified the resource.", - "computed": true + "description": "The name of the COS bucket to store the snapshot of the billing reports.", + "required": true }, { - "name": "version", + "name": "cos_endpoint", "type": "TypeString", + "description": "The endpoint of the COS instance.", "computed": true }, { - "name": "contexts", + "name": "report_types", "type": "TypeList", - "description": "The contexts this rule applies to.", - "required": true, + "description": "The type of billing reports to take snapshot of. Possible values are [account_summary, enterprise_summary, account_resource_instance_usage].", + "optional": true, "elem": { - "attributes": { - "name": "attributes", - "type": "TypeList", - "description": "The attributes.", - "required": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "The attribute name.", - "required": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "The attribute value.", - "required": true - } - } - } + "type": "TypeString" } }, { - "name": "crn", + "name": "state", "type": "TypeString", - "description": "The rule CRN.", - "cloud_data_type": "crn", + "description": "Status of the billing snapshot configuration. Possible values are [enabled, disabled].", "computed": true }, { - "name": "x_correlation_id", + "name": "cos_location", "type": "TypeString", - "description": "The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests and retries of those requests. If a value of this headers is not supplied in a request, the service generates a random (version 4) UUID.", - "min_length": 1, - "max_length": 1024, - "matches": "^[a-zA-Z0-9 ,\\-_]+$", - "optional": true + "description": "Region of the COS instance.", + "required": true }, { - "name": "href", - "type": "TypeString", - "description": "The href link to the resource.", + "name": "created_at", + "type": "TypeInt", + "description": "Timestamp in milliseconds when the snapshot configuration was created.", "computed": true }, { - "name": "created_at", + "name": "interval", "type": "TypeString", - "description": "The time the resource was created.", - "computed": true + "description": "Frequency of taking the snapshot of the billing reports.", + "required": true, + "options": "daily" }, { - "name": "operations", - "type": "TypeList", - "description": "The operations this rule applies to.", - "optional": true, - "elem": { - "api_types": { - "name": "api_types", - "type": "TypeList", - "description": "The API types this rule applies to.", - "required": true, - "elem": { - "api_type_id": { - "name": "api_type_id", - "type": "TypeString", - "required": true - } - } - } - }, - "max_items": 1 + "name": "cos_reports_folder", + "type": "TypeString", + "description": "The billing reports root folder to store the billing reports snapshots. Defaults to \"IBMCloud-Billing-Reports\".", + "default_value": "IBMCloud-Billing-Reports", + "optional": true }, { - "name": "enforcement_mode", + "name": "last_updated_at", + "type": "TypeInt", + "description": "Timestamp in milliseconds when the snapshot configuration was last updated.", + "computed": true + }, + { + "name": "account_type", "type": "TypeString", - "description": "The rule enforcement mode: * `enabled` - The restrictions are enforced and reported. This is the default. * `disabled` - The restrictions are disabled. Nothing is enforced or reported. * `report` - The restrictions are evaluated and reported, but not enforced.", - "default_value": "enabled", - "options": "disabled, enabled, report", - "optional": true + "description": "Type of account. Possible values are [enterprise, account].", + "computed": true }, { - "name": "created_by_id", + "name": "content_type", "type": "TypeString", - "description": "IAM ID of the user or service which created the resource.", + "description": "Type of content stored in snapshot report.", + "computed": true + } + ], + "ibm_cbr_rule": [ + { + "name": "created_at", + "type": "TypeString", + "description": "The time the resource was created.", "computed": true }, { @@ -85545,19 +88289,11 @@ "optional": true }, { - "name": "last_modified_at", + "name": "href", "type": "TypeString", - "description": "The last time the resource was modified.", + "description": "The href link to the resource.", "computed": true }, - { - "name": "description", - "type": "TypeString", - "description": "The description of the rule.", - "max_length": 300, - "matches": "^[\\x20-\\xFE]*$", - "optional": true - }, { "name": "resources", "type": "TypeList", @@ -85617,13 +88353,12 @@ } } } - } - ], - "ibm_cbr_zone": [ + }, { - "name": "address_count", - "type": "TypeInt", - "description": "The number of addresses in the zone.", + "name": "crn", + "type": "TypeString", + "description": "The rule CRN.", + "cloud_data_type": "crn", "computed": true }, { @@ -85633,13 +88368,106 @@ "computed": true }, { - "name": "account_id", + "name": "last_modified_at", "type": "TypeString", - "description": "The id of the account owning this zone.", + "description": "The last time the resource was modified.", + "computed": true + }, + { + "name": "last_modified_by_id", + "type": "TypeString", + "description": "IAM ID of the user or service which modified the resource.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The description of the rule.", + "max_length": 300, + "matches": "^[\\x20-\\xFE]*$", + "optional": true + }, + { + "name": "contexts", + "type": "TypeList", + "description": "The contexts this rule applies to.", "required": true, + "elem": { + "attributes": { + "name": "attributes", + "type": "TypeList", + "description": "The attributes.", + "required": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "The attribute name.", + "required": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "The attribute value.", + "required": true + } + } + } + } + }, + { + "name": "operations", + "type": "TypeList", + "description": "The operations this rule applies to.", + "optional": true, + "elem": { + "api_types": { + "name": "api_types", + "type": "TypeList", + "description": "The API types this rule applies to.", + "required": true, + "elem": { + "api_type_id": { + "name": "api_type_id", + "type": "TypeString", + "required": true + } + } + } + }, + "max_items": 1 + }, + { + "name": "enforcement_mode", + "type": "TypeString", + "description": "The rule enforcement mode: * `enabled` - The restrictions are enforced and reported. This is the default. * `disabled` - The restrictions are disabled. Nothing is enforced or reported. * `report` - The restrictions are evaluated and reported, but not enforced.", + "default_value": "enabled", + "options": "disabled, enabled, report", + "optional": true + }, + { + "name": "x_correlation_id", + "type": "TypeString", + "description": "The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests and retries of those requests. If a value of this headers is not supplied in a request, the service generates a random (version 4) UUID.", "min_length": 1, - "max_length": 128, - "matches": "^[a-zA-Z0-9\\-]+$" + "max_length": 1024, + "matches": "^[a-zA-Z0-9 ,\\-_]+$", + "optional": true + }, + { + "name": "version", + "type": "TypeString", + "computed": true + } + ], + "ibm_cbr_zone": [ + { + "name": "description", + "type": "TypeString", + "description": "The description of the zone.", + "max_length": 300, + "matches": "^[\\x20-\\xFE]*$", + "optional": true }, { "name": "transaction_id", @@ -85651,17 +88479,31 @@ "optional": true }, { - "name": "created_at", + "name": "excluded_count", + "type": "TypeInt", + "description": "The number of excluded addresses in the zone.", + "computed": true + }, + { + "name": "version", "type": "TypeString", - "description": "The time the resource was created.", "computed": true }, { - "name": "last_modified_at", + "name": "last_modified_by_id", "type": "TypeString", - "description": "The last time the resource was modified.", + "description": "IAM ID of the user or service which modified the resource.", "computed": true }, + { + "name": "account_id", + "type": "TypeString", + "description": "The id of the account owning this zone.", + "required": true, + "min_length": 1, + "max_length": 128, + "matches": "^[a-zA-Z0-9\\-]+$" + }, { "name": "x_correlation_id", "type": "TypeString", @@ -85678,6 +88520,33 @@ "cloud_data_type": "crn", "computed": true }, + { + "name": "address_count", + "type": "TypeInt", + "description": "The number of addresses in the zone.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The href link to the resource.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The time the resource was created.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the zone.", + "required": true, + "min_length": 1, + "max_length": 128, + "matches": "^[a-zA-Z0-9 \\-_]+$" + }, { "name": "addresses", "type": "TypeList", @@ -85758,227 +88627,31 @@ } }, { - "name": "excluded_count", - "type": "TypeInt", - "description": "The number of excluded addresses in the zone.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The href link to the resource.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the zone.", - "required": true, - "min_length": 1, - "max_length": 128, - "matches": "^[a-zA-Z0-9 \\-_]+$" - }, - { - "name": "description", - "type": "TypeString", - "description": "The description of the zone.", - "max_length": 300, - "matches": "^[\\x20-\\xFE]*$", - "optional": true - }, - { - "name": "last_modified_by_id", + "name": "created_by_id", "type": "TypeString", - "description": "IAM ID of the user or service which modified the resource.", + "description": "IAM ID of the user or service which created the resource.", "computed": true }, { - "name": "version", + "name": "last_modified_at", "type": "TypeString", + "description": "The last time the resource was modified.", "computed": true } ], "ibm_cd_tekton_pipeline": [ - { - "name": "status", - "type": "TypeString", - "description": "Pipeline status.", - "computed": true - }, - { - "name": "toolchain", - "type": "TypeList", - "description": "Toolchain object containing references to the parent toolchain.", - "computed": true, - "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for the toolchain that contains the Tekton pipeline.", - "required": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "UUID.", - "required": true - } - } - }, - { - "name": "properties", - "type": "TypeList", - "description": "Tekton pipeline's environment properties.", - "computed": true, - "elem": { - "enum": { - "name": "enum", - "type": "TypeList", - "description": "Options for `single_select` property type. Only needed when using `single_select` property type.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "API URL for interacting with the property.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Property name.", - "immutable": true, - "required": true - }, - "path": { - "name": "path", - "type": "TypeString", - "description": "A dot notation path for `integration` type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.", - "optional": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Property type.", - "immutable": true, - "required": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Property value. Any string value is valid.", - "optional": true - } - } - }, - { - "name": "href", - "type": "TypeString", - "description": "API URL for interacting with the pipeline.", - "computed": true - }, { "name": "build_number", "type": "TypeInt", "description": "The latest pipeline run build number. If this property is absent, the pipeline hasn't had any pipeline runs.", "computed": true }, - { - "name": "runs_url", - "type": "TypeString", - "description": "URL for this pipeline showing the list of pipeline runs.", - "computed": true - }, - { - "name": "next_build_number", - "type": "TypeInt", - "description": "The build number that will be used for the next pipeline run.", - "optional": true - }, - { - "name": "enable_notifications", - "type": "TypeBool", - "description": "Flag whether to enable notifications for this pipeline. When enabled, pipeline run events will be published on all slack integration specified channels in the parent toolchain. If omitted, this feature is disabled by default.", - "default_value": false, - "optional": true - }, - { - "name": "enable_partial_cloning", - "type": "TypeBool", - "description": "Flag whether to enable partial cloning for this pipeline. When partial clone is enabled, only the files contained within the paths specified in definition repositories are read and cloned, this means that symbolic links might not work. If omitted, this feature is disabled by default.", - "default_value": false, - "optional": true - }, - { - "name": "pipeline_id", - "type": "TypeString", - "description": "String.", - "immutable": true, - "required": true - }, { "name": "name", "type": "TypeString", "description": "String.", "computed": true }, - { - "name": "resource_group", - "type": "TypeList", - "description": "The resource group in which the pipeline was created.", - "cloud_data_type": "resource_group", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "ID.", - "optional": true - } - } - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Standard RFC 3339 Date Time String.", - "computed": true - }, - { - "name": "enabled", - "type": "TypeBool", - "description": "Flag whether this pipeline is enabled.", - "computed": true - }, - { - "name": "worker", - "type": "TypeList", - "description": "Details of the worker used to run the pipeline.", - "optional": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "ID of the worker.", - "required": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the worker. Computed based on the worker ID.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of the worker. Computed based on the worker ID.", - "computed": true - } - }, - "max_items": 1 - }, { "name": "definitions", "type": "TypeList", @@ -86064,6 +88737,44 @@ } } }, + { + "name": "href", + "type": "TypeString", + "description": "API URL for interacting with the pipeline.", + "computed": true + }, + { + "name": "enabled", + "type": "TypeBool", + "description": "Flag whether this pipeline is enabled.", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Pipeline status.", + "computed": true + }, + { + "name": "toolchain", + "type": "TypeList", + "description": "Toolchain object containing references to the parent toolchain.", + "computed": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for the toolchain that contains the Tekton pipeline.", + "required": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "UUID.", + "required": true + } + } + }, { "name": "created_at", "type": "TypeString", @@ -86348,62 +89059,198 @@ "max_items": 1 } } - } - ], - "ibm_cd_tekton_pipeline_definition": [ + }, { - "name": "definition_id", - "type": "TypeString", - "description": "The aggregated definition ID.", - "computed": true + "name": "next_build_number", + "type": "TypeInt", + "description": "The build number that will be used for the next pipeline run.", + "optional": true }, { - "name": "pipeline_id", - "type": "TypeString", - "description": "The Tekton pipeline ID.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[-0-9a-z]+$" + "name": "enable_partial_cloning", + "type": "TypeBool", + "description": "Flag whether to enable partial cloning for this pipeline. When partial clone is enabled, only the files contained within the paths specified in definition repositories are read and cloned, this means that symbolic links might not work. If omitted, this feature is disabled by default.", + "default_value": false, + "optional": true }, { - "name": "source", + "name": "properties", "type": "TypeList", - "description": "Source repository containing the Tekton pipeline definition.", - "required": true, + "description": "Tekton pipeline's environment properties.", + "computed": true, "elem": { - "properties": { - "name": "properties", + "enum": { + "name": "enum", "type": "TypeList", - "description": "Properties of the source, which define the URL of the repository and a branch or tag.", - "required": true, + "description": "Options for `single_select` property type. Only needed when using `single_select` property type.", + "optional": true, "elem": { - "branch": { - "name": "branch", - "type": "TypeString", - "description": "A branch from the repo, specify one of branch or tag only.", - "optional": true - }, - "path": { - "name": "path", - "type": "TypeString", - "description": "The path to the definition's YAML files.", - "required": true - }, - "tag": { - "name": "tag", - "type": "TypeString", - "description": "A tag from the repo, specify one of branch or tag only.", - "optional": true - }, - "tool": { - "name": "tool", - "type": "TypeList", - "description": "Reference to the repository tool in the parent toolchain.", - "computed": true, - "elem": { - "id": { + "type": "TypeString" + } + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "API URL for interacting with the property.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Property name.", + "immutable": true, + "required": true + }, + "path": { + "name": "path", + "type": "TypeString", + "description": "A dot notation path for `integration` type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.", + "optional": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Property type.", + "immutable": true, + "required": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Property value. Any string value is valid.", + "optional": true + } + } + }, + { + "name": "resource_group", + "type": "TypeList", + "description": "The resource group in which the pipeline was created.", + "cloud_data_type": "resource_group", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "ID.", + "optional": true + } + } + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Standard RFC 3339 Date Time String.", + "computed": true + }, + { + "name": "runs_url", + "type": "TypeString", + "description": "URL for this pipeline showing the list of pipeline runs.", + "computed": true + }, + { + "name": "worker", + "type": "TypeList", + "description": "Details of the worker used to run the pipeline.", + "optional": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "ID of the worker.", + "required": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the worker. Computed based on the worker ID.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of the worker. Computed based on the worker ID.", + "computed": true + } + }, + "max_items": 1 + }, + { + "name": "enable_notifications", + "type": "TypeBool", + "description": "Flag whether to enable notifications for this pipeline. When enabled, pipeline run events will be published on all slack integration specified channels in the parent toolchain. If omitted, this feature is disabled by default.", + "default_value": false, + "optional": true + }, + { + "name": "pipeline_id", + "type": "TypeString", + "description": "String.", + "immutable": true, + "required": true + } + ], + "ibm_cd_tekton_pipeline_definition": [ + { + "name": "href", + "type": "TypeString", + "description": "API URL for interacting with the definition.", + "computed": true + }, + { + "name": "definition_id", + "type": "TypeString", + "description": "The aggregated definition ID.", + "computed": true + }, + { + "name": "pipeline_id", + "type": "TypeString", + "description": "The Tekton pipeline ID.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[-0-9a-z]+$" + }, + { + "name": "source", + "type": "TypeList", + "description": "Source repository containing the Tekton pipeline definition.", + "required": true, + "elem": { + "properties": { + "name": "properties", + "type": "TypeList", + "description": "Properties of the source, which define the URL of the repository and a branch or tag.", + "required": true, + "elem": { + "branch": { + "name": "branch", + "type": "TypeString", + "description": "A branch from the repo, specify one of branch or tag only.", + "optional": true + }, + "path": { + "name": "path", + "type": "TypeString", + "description": "The path to the definition's YAML files.", + "required": true + }, + "tag": { + "name": "tag", + "type": "TypeString", + "description": "A tag from the repo, specify one of branch or tag only.", + "optional": true + }, + "tool": { + "name": "tool", + "type": "TypeList", + "description": "Reference to the repository tool in the parent toolchain.", + "computed": true, + "elem": { + "id": { "name": "id", "type": "TypeString", "description": "ID of the repository tool instance in the parent toolchain.", @@ -86431,41 +89278,9 @@ }, "max_items": 1, "min_items": 1 - }, - { - "name": "href", - "type": "TypeString", - "description": "API URL for interacting with the definition.", - "computed": true } ], "ibm_cd_tekton_pipeline_property": [ - { - "name": "href", - "type": "TypeString", - "description": "API URL for interacting with the property.", - "computed": true - }, - { - "name": "pipeline_id", - "type": "TypeString", - "description": "The Tekton pipeline ID.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[-0-9a-z]+$" - }, - { - "name": "name", - "type": "TypeString", - "description": "Property name.", - "immutable": true, - "required": true, - "min_length": 1, - "max_length": 253, - "matches": "^[-0-9a-zA-Z_.]{1,253}$" - }, { "name": "value", "type": "TypeString", @@ -86498,6 +89313,32 @@ "max_length": 4096, "matches": "^[-0-9a-zA-Z_.]*$", "optional": true + }, + { + "name": "href", + "type": "TypeString", + "description": "API URL for interacting with the property.", + "computed": true + }, + { + "name": "pipeline_id", + "type": "TypeString", + "description": "The Tekton pipeline ID.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[-0-9a-z]+$" + }, + { + "name": "name", + "type": "TypeString", + "description": "Property name.", + "immutable": true, + "required": true, + "min_length": 1, + "max_length": 253, + "matches": "^[-0-9a-zA-Z_.]{1,253}$" } ], "ibm_cd_tekton_pipeline_trigger": [ @@ -86511,6 +89352,125 @@ "max_length": 36, "matches": "^[-0-9a-z]+$" }, + { + "name": "favorite", + "type": "TypeBool", + "description": "Mark the trigger as a favorite.", + "default_value": false, + "optional": true + }, + { + "name": "events", + "type": "TypeList", + "description": "Only needed for Git triggers. List of events to which a Git trigger listens. Choose one or more from: 'push', 'pull_request' and 'pull_request_closed'. For SCM repositories that use 'merge request' events, such events map to the equivalent 'pull request' events.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "cron", + "type": "TypeString", + "description": "Only needed for timer triggers. Cron expression that indicates when this trigger will activate. Maximum frequency is every 5 minutes. The string is based on UNIX crontab syntax: minute, hour, day of month, month, day of week. Example: 0 *_/2 * * * - every 2 hours.", + "min_length": 5, + "max_length": 253, + "matches": "^[-0-9a-zA-Z,\\*\\/ ]{5,253}$", + "optional": true + }, + { + "name": "secret", + "type": "TypeList", + "description": "Only needed for generic webhook trigger type. Secret used to start generic webhook trigger.", + "optional": true, + "elem": { + "algorithm": { + "name": "algorithm", + "type": "TypeString", + "description": "Algorithm used for `digest_matches` secret type. Only needed for `digest_matches` secret type.", + "optional": true + }, + "key_name": { + "name": "key_name", + "type": "TypeString", + "description": "Secret name, not needed if type is `internal_validation`.", + "optional": true + }, + "source": { + "name": "source", + "type": "TypeString", + "description": "Secret location, not needed if secret type is `internal_validation`.", + "optional": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Secret type.", + "required": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Secret value, not needed if secret type is `internal_validation`.", + "optional": true + } + }, + "max_items": 1 + }, + { + "name": "event_listener", + "type": "TypeString", + "description": "Event listener name. The name of the event listener to which the trigger is associated. The event listeners are defined in the definition repositories of the Tekton pipeline.", + "required": true, + "min_length": 1, + "max_length": 253, + "matches": "^[-0-9a-zA-Z_.]{1,253}$" + }, + { + "name": "max_concurrent_runs", + "type": "TypeInt", + "description": "Defines the maximum number of concurrent runs for this trigger. If omitted then the concurrency limit is disabled for this trigger.", + "optional": true + }, + { + "name": "href", + "type": "TypeString", + "description": "API URL for interacting with the trigger. Only included when fetching the list of pipeline triggers.", + "computed": true + }, + { + "name": "worker", + "type": "TypeList", + "description": "Details of the worker used to run the trigger.", + "optional": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "ID of the worker.", + "required": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the worker. Computed based on the worker ID.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of the worker. Computed based on the worker ID.", + "computed": true + } + }, + "max_items": 1 + }, + { + "name": "enabled", + "type": "TypeBool", + "description": "Flag whether the trigger is enabled.", + "default_value": true, + "optional": true + }, { "name": "source", "type": "TypeList", @@ -86587,6 +89547,12 @@ "description": "The Trigger ID.", "computed": true }, + { + "name": "webhook_url", + "type": "TypeString", + "description": "Webhook URL that can be used to trigger pipeline runs.", + "computed": true + }, { "name": "type", "type": "TypeString", @@ -86595,43 +89561,24 @@ "options": "generic, manual, scm, timer" }, { - "name": "event_listener", + "name": "name", "type": "TypeString", - "description": "Event listener name. The name of the event listener to which the trigger is associated. The event listeners are defined in the definition repositories of the Tekton pipeline.", + "description": "Trigger name.", "required": true, "min_length": 1, "max_length": 253, - "matches": "^[-0-9a-zA-Z_.]{1,253}$" - }, - { - "name": "enabled", - "type": "TypeBool", - "description": "Flag whether the trigger is enabled.", - "default_value": true, - "optional": true + "matches": "^([a-zA-Z0-9]{1,2}|[a-zA-Z0-9][0-9a-zA-Z-_.: \\/\\(\\)\\[\\]]{1,251}[a-zA-Z0-9])$" }, { - "name": "events", + "name": "tags", "type": "TypeList", - "description": "Only needed for Git triggers. List of events to which a Git trigger listens. Choose one or more from: 'push', 'pull_request' and 'pull_request_closed'. For SCM repositories that use 'merge request' events, such events map to the equivalent 'pull request' events.", + "description": "Optional trigger tags array.", + "cloud_data_type": "tags", "optional": true, "elem": { "type": "TypeString" } }, - { - "name": "webhook_url", - "type": "TypeString", - "description": "Webhook URL that can be used to trigger pipeline runs.", - "computed": true - }, - { - "name": "favorite", - "type": "TypeBool", - "description": "Mark the trigger as a favorite.", - "default_value": false, - "optional": true - }, { "name": "timezone", "type": "TypeString", @@ -86641,51 +89588,6 @@ "matches": "^[-0-9a-zA-Z+_., \\/]{1,253}$", "optional": true }, - { - "name": "href", - "type": "TypeString", - "description": "API URL for interacting with the trigger. Only included when fetching the list of pipeline triggers.", - "computed": true - }, - { - "name": "secret", - "type": "TypeList", - "description": "Only needed for generic webhook trigger type. Secret used to start generic webhook trigger.", - "optional": true, - "elem": { - "algorithm": { - "name": "algorithm", - "type": "TypeString", - "description": "Algorithm used for `digest_matches` secret type. Only needed for `digest_matches` secret type.", - "optional": true - }, - "key_name": { - "name": "key_name", - "type": "TypeString", - "description": "Secret name, not needed if type is `internal_validation`.", - "optional": true - }, - "source": { - "name": "source", - "type": "TypeString", - "description": "Secret location, not needed if secret type is `internal_validation`.", - "optional": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Secret type.", - "required": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Secret value, not needed if secret type is `internal_validation`.", - "optional": true - } - }, - "max_items": 1 - }, { "name": "properties", "type": "TypeList", @@ -86734,76 +89636,9 @@ "optional": true } } - }, - { - "name": "name", - "type": "TypeString", - "description": "Trigger name.", - "required": true, - "min_length": 1, - "max_length": 253, - "matches": "^([a-zA-Z0-9]{1,2}|[a-zA-Z0-9][0-9a-zA-Z-_.: \\/\\(\\)\\[\\]]{1,251}[a-zA-Z0-9])$" - }, - { - "name": "tags", - "type": "TypeList", - "description": "Optional trigger tags array.", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "worker", - "type": "TypeList", - "description": "Details of the worker used to run the trigger.", - "optional": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "ID of the worker.", - "required": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the worker. Computed based on the worker ID.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of the worker. Computed based on the worker ID.", - "computed": true - } - }, - "max_items": 1 - }, - { - "name": "max_concurrent_runs", - "type": "TypeInt", - "description": "Defines the maximum number of concurrent runs for this trigger. If omitted then the concurrency limit is disabled for this trigger.", - "optional": true - }, - { - "name": "cron", - "type": "TypeString", - "description": "Only needed for timer triggers. Cron expression that indicates when this trigger will activate. Maximum frequency is every 5 minutes. The string is based on UNIX crontab syntax: minute, hour, day of month, month, day of week. Example: 0 *_/2 * * * - every 2 hours.", - "min_length": 5, - "max_length": 253, - "matches": "^[-0-9a-zA-Z,\\*\\/ ]{5,253}$", - "optional": true } ], "ibm_cd_tekton_pipeline_trigger_property": [ - { - "name": "href", - "type": "TypeString", - "description": "API URL for interacting with the trigger property.", - "computed": true - }, { "name": "pipeline_id", "type": "TypeString", @@ -86866,26 +89701,26 @@ "max_length": 4096, "matches": "^[-0-9a-zA-Z_.]*$", "optional": true - } - ], - "ibm_cd_toolchain": [ + }, { - "name": "account_id", + "name": "href", "type": "TypeString", - "description": "Account ID where toolchain can be found.", + "description": "API URL for interacting with the trigger property.", "computed": true - }, + } + ], + "ibm_cd_toolchain": [ { - "name": "crn", + "name": "location", "type": "TypeString", - "description": "Toolchain CRN.", - "cloud_data_type": "crn", + "description": "Toolchain region.", + "cloud_data_type": "region", "computed": true }, { - "name": "href", + "name": "ui_href", "type": "TypeString", - "description": "URI that can be used to retrieve toolchain.", + "description": "URL of a user-facing user interface for this toolchain.", "computed": true }, { @@ -86895,12 +89730,15 @@ "computed": true }, { - "name": "description", - "type": "TypeString", - "description": "Describes the toolchain.", - "max_length": 500, - "matches": "^(.*?)$", - "optional": true + "name": "tags", + "type": "TypeSet", + "description": "Toolchain tags.", + "cloud_data_type": "tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "resource_group_id", @@ -86913,9 +89751,30 @@ "matches": "^[0-9a-f]{32}$" }, { - "name": "ui_href", + "name": "description", "type": "TypeString", - "description": "URL of a user-facing user interface for this toolchain.", + "description": "Describes the toolchain.", + "max_length": 500, + "matches": "^(.*?)$", + "optional": true + }, + { + "name": "account_id", + "type": "TypeString", + "description": "Account ID where toolchain can be found.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Toolchain CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI that can be used to retrieve toolchain.", "computed": true }, { @@ -86930,17 +89789,6 @@ "description": "Identity that created the toolchain.", "computed": true }, - { - "name": "tags", - "type": "TypeSet", - "description": "Toolchain tags.", - "cloud_data_type": "tags", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "name", "type": "TypeString", @@ -86948,53 +89796,9 @@ "required": true, "max_length": 128, "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$" - }, - { - "name": "location", - "type": "TypeString", - "description": "Toolchain region.", - "cloud_data_type": "region", - "computed": true } ], "ibm_cd_toolchain_tool_appconfig": [ - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "Tool ID.", - "computed": true - }, { "name": "parameters", "type": "TypeList", @@ -87042,22 +89846,10 @@ "min_items": 1 }, { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "href", + "name": "crn", "type": "TypeString", - "description": "URI representing the tool.", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true }, { @@ -87085,9 +89877,78 @@ "type": "TypeString", "description": "Latest tool update timestamp.", "computed": true + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "Tool ID.", + "computed": true + }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true } ], "ibm_cd_toolchain_tool_artifactory": [ + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, { "name": "href", "type": "TypeString", @@ -87114,6 +89975,12 @@ } } }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + }, { "name": "state", "type": "TypeString", @@ -87214,6 +90081,67 @@ }, "max_items": 1, "min_items": 1 + } + ], + "ibm_cd_toolchain_tool_bitbucketgit": [ + { + "name": "initialization", + "type": "TypeList", + "required": true, + "elem": { + "git_id": { + "name": "git_id", + "type": "TypeString", + "description": "Set this value to 'bitbucketgit' for bitbucket.org, or to the GUID of a custom Bitbucket server.", + "immutable": true, + "optional": true + }, + "owner_id": { + "name": "owner_id", + "type": "TypeString", + "description": "The Bitbucket user or group that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.", + "immutable": true, + "optional": true + }, + "private_repo": { + "name": "private_repo", + "type": "TypeBool", + "description": "Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.", + "default_value": false, + "immutable": true, + "optional": true + }, + "repo_name": { + "name": "repo_name", + "type": "TypeString", + "description": "The name of the new Bitbucket repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.", + "immutable": true, + "optional": true + }, + "repo_url": { + "name": "repo_url", + "type": "TypeString", + "description": "The URL of the bitbucket repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.", + "immutable": true, + "optional": true + }, + "source_repo_url": { + "name": "source_repo_url", + "type": "TypeString", + "description": "The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.", + "immutable": true, + "optional": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.", + "immutable": true, + "required": true + } + }, + "max_items": 1, + "min_items": 1 }, { "name": "resource_group_id", @@ -87230,24 +90158,36 @@ "computed": true }, { - "name": "toolchain_crn", + "name": "href", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "URI representing the tool.", "computed": true }, + { + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "optional": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "optional": true + } + } + }, { "name": "updated_at", "type": "TypeString", "description": "Latest tool update timestamp.", "computed": true - } - ], - "ibm_cd_toolchain_tool_bitbucketgit": [ - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true }, { "name": "state", @@ -87376,64 +90316,13 @@ "min_items": 1 }, { - "name": "initialization", - "type": "TypeList", - "required": true, - "elem": { - "git_id": { - "name": "git_id", - "type": "TypeString", - "description": "Set this value to 'bitbucketgit' for bitbucket.org, or to the GUID of a custom Bitbucket server.", - "immutable": true, - "optional": true - }, - "owner_id": { - "name": "owner_id", - "type": "TypeString", - "description": "The Bitbucket user or group that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.", - "immutable": true, - "optional": true - }, - "private_repo": { - "name": "private_repo", - "type": "TypeBool", - "description": "Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.", - "default_value": false, - "immutable": true, - "optional": true - }, - "repo_name": { - "name": "repo_name", - "type": "TypeString", - "description": "The name of the new Bitbucket repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.", - "immutable": true, - "optional": true - }, - "repo_url": { - "name": "repo_url", - "type": "TypeString", - "description": "The URL of the bitbucket repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.", - "immutable": true, - "optional": true - }, - "source_repo_url": { - "name": "source_repo_url", - "type": "TypeString", - "description": "The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.", - "immutable": true, - "optional": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.", - "immutable": true, - "required": true - } - }, - "max_items": 1, - "min_items": 1 - }, + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + } + ], + "ibm_cd_toolchain_tool_custom": [ { "name": "resource_group_id", "type": "TypeString", @@ -87442,16 +90331,9 @@ "computed": true }, { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "toolchain_crn", + "name": "href", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "URI representing the tool.", "computed": true }, { @@ -87475,13 +90357,27 @@ } }, { - "name": "updated_at", + "name": "state", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "Current configuration state of the tool.", "computed": true - } - ], - "ibm_cd_toolchain_tool_custom": [ + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "Tool ID.", + "computed": true + }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + }, { "name": "name", "type": "TypeString", @@ -87556,17 +90452,19 @@ "computed": true }, { - "name": "href", + "name": "toolchain_crn", "type": "TypeString", - "description": "URI representing the tool.", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { - "name": "state", + "name": "updated_at", "type": "TypeString", - "description": "Current configuration state of the tool.", + "description": "Latest tool update timestamp.", "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_devopsinsights": [ { "name": "toolchain_id", "type": "TypeString", @@ -87578,16 +90476,18 @@ "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" }, { - "name": "resource_group_id", + "name": "name", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true }, { - "name": "toolchain_crn", + "name": "crn", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true }, { @@ -87617,13 +90517,18 @@ "computed": true }, { - "name": "tool_id", + "name": "resource_group_id", "type": "TypeString", - "description": "Tool ID.", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true - } - ], - "ibm_cd_toolchain_tool_devopsinsights": [ + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, { "name": "href", "type": "TypeString", @@ -87636,6 +90541,24 @@ "description": "Current configuration state of the tool.", "computed": true }, + { + "name": "tool_id", + "type": "TypeString", + "description": "Tool ID.", + "computed": true + } + ], + "ibm_cd_toolchain_tool_eventnotifications": [ + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + }, { "name": "resource_group_id", "type": "TypeString", @@ -87644,16 +90567,15 @@ "computed": true }, { - "name": "crn", + "name": "toolchain_crn", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { - "name": "toolchain_crn", + "name": "href", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "URI representing the tool.", "computed": true }, { @@ -87676,38 +90598,6 @@ } } }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "Tool ID.", - "computed": true - }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true - } - ], - "ibm_cd_toolchain_tool_eventnotifications": [ { "name": "name", "type": "TypeString", @@ -87738,13 +90628,6 @@ "max_items": 1, "min_items": 1 }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, { "name": "crn", "type": "TypeString", @@ -87753,15 +90636,15 @@ "computed": true }, { - "name": "href", + "name": "updated_at", "type": "TypeString", - "description": "URI representing the tool.", + "description": "Latest tool update timestamp.", "computed": true }, { - "name": "updated_at", + "name": "state", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "Current configuration state of the tool.", "computed": true }, { @@ -87769,92 +90652,12 @@ "type": "TypeString", "description": "Tool ID.", "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_githubconsolidated": [ { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, - { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "optional": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "optional": true - } - } - }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - } - ], - "ibm_cd_toolchain_tool_githubconsolidated": [ - { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "optional": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "optional": true - } - } - }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true - }, - { - "name": "initialization", - "type": "TypeList", + "name": "initialization", + "type": "TypeList", "required": true, "elem": { "auto_init": { @@ -87949,22 +90752,41 @@ "computed": true }, { - "name": "crn", + "name": "toolchain_crn", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { - "name": "toolchain_crn", + "name": "tool_id", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "Tool ID.", "computed": true }, { - "name": "href", + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "optional": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "optional": true + } + } + }, + { + "name": "updated_at", "type": "TypeString", - "description": "URI representing the tool.", + "description": "Latest tool update timestamp.", "computed": true }, { @@ -87973,6 +90795,24 @@ "description": "Current configuration state of the tool.", "computed": true }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true + }, { "name": "parameters", "type": "TypeList", @@ -88107,88 +90947,20 @@ "min_items": 1 }, { - "name": "updated_at", + "name": "crn", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true }, { - "name": "tool_id", + "name": "href", "type": "TypeString", - "description": "Tool ID.", + "description": "URI representing the tool.", "computed": true } ], "ibm_cd_toolchain_tool_gitlab": [ - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "Tool ID.", - "computed": true - }, - { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "optional": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "optional": true - } - } - }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true - }, { "name": "parameters", "type": "TypeList", @@ -88397,6 +91169,13 @@ "max_items": 1, "min_items": 1 }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true + }, { "name": "crn", "type": "TypeString", @@ -88405,13 +91184,17 @@ "computed": true }, { - "name": "href", + "name": "updated_at", "type": "TypeString", - "description": "URI representing the tool.", + "description": "Latest tool update timestamp.", "computed": true - } - ], - "ibm_cd_toolchain_tool_hashicorpvault": [ + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "Tool ID.", + "computed": true + }, { "name": "toolchain_id", "type": "TypeString", @@ -88431,10 +91214,15 @@ "optional": true }, { - "name": "resource_group_id", + "name": "toolchain_crn", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", "computed": true }, { @@ -88462,6 +91250,42 @@ "type": "TypeString", "description": "Current configuration state of the tool.", "computed": true + } + ], + "ibm_cd_toolchain_tool_hashicorpvault": [ + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true }, { "name": "tool_id", @@ -88469,6 +91293,16 @@ "description": "Tool ID.", "computed": true }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + }, { "name": "parameters", "type": "TypeList", @@ -88555,19 +91389,6 @@ "max_items": 1, "min_items": 1 }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, { "name": "href", "type": "TypeString", @@ -88575,80 +91396,33 @@ "computed": true }, { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - } - ], - "ibm_cd_toolchain_tool_hostedgit": [ - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true - }, - { - "name": "initialization", + "name": "referent", "type": "TypeList", - "required": true, + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, "elem": { - "git_id": { - "name": "git_id", - "type": "TypeString", - "description": "Set this value to 'hostedgit' to target Git Repos and Issue Tracking.", - "immutable": true, - "optional": true - }, - "owner_id": { - "name": "owner_id", - "type": "TypeString", - "description": "The GitLab user or group that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.", - "immutable": true, - "optional": true - }, - "private_repo": { - "name": "private_repo", - "type": "TypeBool", - "description": "Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.", - "default_value": true, - "immutable": true, - "optional": true - }, - "repo_name": { - "name": "repo_name", - "type": "TypeString", - "description": "The name of the new GitLab repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.", - "immutable": true, - "optional": true - }, - "repo_url": { - "name": "repo_url", + "api_href": { + "name": "api_href", "type": "TypeString", - "description": "The URL of the GitLab repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.", - "immutable": true, + "description": "URI representing this resource through an API.", "optional": true }, - "source_repo_url": { - "name": "source_repo_url", + "ui_href": { + "name": "ui_href", "type": "TypeString", - "description": "The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.", - "immutable": true, + "description": "URI representing this resource through the UI.", "optional": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.", - "immutable": true, - "required": true } - }, - "max_items": 1, - "min_items": 1 + } }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + } + ], + "ibm_cd_toolchain_tool_hostedgit": [ { "name": "resource_group_id", "type": "TypeString", @@ -88669,6 +91443,18 @@ "description": "CRN of toolchain which the tool is bound to.", "computed": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, { "name": "referent", "type": "TypeList", @@ -88689,18 +91475,6 @@ } } }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, { "name": "tool_id", "type": "TypeString", @@ -88717,6 +91491,14 @@ "max_length": 36, "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true + }, { "name": "parameters", "type": "TypeList", @@ -88827,88 +91609,72 @@ "min_items": 1 }, { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - } - ], - "ibm_cd_toolchain_tool_jenkins": [ - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, - { - "name": "referent", + "name": "initialization", "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, + "required": true, "elem": { - "api_href": { - "name": "api_href", + "git_id": { + "name": "git_id", "type": "TypeString", - "description": "URI representing this resource through an API.", + "description": "Set this value to 'hostedgit' to target Git Repos and Issue Tracking.", + "immutable": true, "optional": true }, - "ui_href": { - "name": "ui_href", + "owner_id": { + "name": "owner_id", "type": "TypeString", - "description": "URI representing this resource through the UI.", + "description": "The GitLab user or group that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.", + "immutable": true, + "optional": true + }, + "private_repo": { + "name": "private_repo", + "type": "TypeBool", + "description": "Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.", + "default_value": true, + "immutable": true, + "optional": true + }, + "repo_name": { + "name": "repo_name", + "type": "TypeString", + "description": "The name of the new GitLab repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.", + "immutable": true, + "optional": true + }, + "repo_url": { + "name": "repo_url", + "type": "TypeString", + "description": "The URL of the GitLab repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.", + "immutable": true, + "optional": true + }, + "source_repo_url": { + "name": "source_repo_url", + "type": "TypeString", + "description": "The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.", + "immutable": true, "optional": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.", + "immutable": true, + "required": true } - } - }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "Tool ID.", - "computed": true - }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true + }, + "max_items": 1, + "min_items": 1 }, { - "name": "updated_at", + "name": "href", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "URI representing the tool.", "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_jenkins": [ { "name": "parameters", "type": "TypeList", @@ -88951,15 +91717,78 @@ "max_items": 1, "min_items": 1 }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "optional": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "optional": true + } + } + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true + }, { "name": "resource_group_id", "type": "TypeString", "description": "Resource group where the tool is located.", "cloud_data_type": "resource_group", "computed": true - } - ], - "ibm_cd_toolchain_tool_jira": [ + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "Tool ID.", + "computed": true + }, { "name": "toolchain_id", "type": "TypeString", @@ -88969,13 +91798,9 @@ "min_length": 36, "max_length": 36, "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_jira": [ { "name": "referent", "type": "TypeList", @@ -88996,12 +91821,6 @@ } } }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, { "name": "tool_id", "type": "TypeString", @@ -89072,6 +91891,22 @@ "cloud_data_type": "crn", "computed": true }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + }, { "name": "toolchain_crn", "type": "TypeString", @@ -89083,21 +91918,15 @@ "type": "TypeString", "description": "Latest tool update timestamp.", "computed": true - } - ], - "ibm_cd_toolchain_tool_keyprotect": [ + }, { "name": "state", "type": "TypeString", "description": "Current configuration state of the tool.", "computed": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "Tool ID.", - "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_keyprotect": [ { "name": "toolchain_id", "type": "TypeString", @@ -89108,6 +91937,66 @@ "max_length": 36, "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "optional": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "optional": true + } + } + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true + }, { "name": "parameters", "type": "TypeList", @@ -89142,6 +92031,38 @@ "max_items": 1, "min_items": 1 }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "Tool ID.", + "computed": true + } + ], + "ibm_cd_toolchain_tool_nexus": [ + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true + }, { "name": "resource_group_id", "type": "TypeString", @@ -89149,6 +92070,12 @@ "cloud_data_type": "resource_group", "computed": true }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, { "name": "href", "type": "TypeString", @@ -89181,43 +92108,12 @@ "description": "Latest tool update timestamp.", "computed": true }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - } - ], - "ibm_cd_toolchain_tool_nexus": [ { "name": "tool_id", "type": "TypeString", "description": "Tool ID.", "computed": true }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true - }, { "name": "parameters", "type": "TypeList", @@ -89278,17 +92174,36 @@ "min_items": 1 }, { - "name": "toolchain_crn", + "name": "crn", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true }, { - "name": "href", + "name": "state", "type": "TypeString", - "description": "URI representing the tool.", + "description": "Current configuration state of the tool.", + "computed": true + } + ], + "ibm_cd_toolchain_tool_pagerduty": [ + { + "name": "tool_id", + "type": "TypeString", + "description": "Tool ID.", "computed": true }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + }, { "name": "referent", "type": "TypeList", @@ -89310,20 +92225,9 @@ } }, { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, - { - "name": "resource_group_id", + "name": "state", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", + "description": "Current configuration state of the tool.", "computed": true }, { @@ -89333,6 +92237,18 @@ "cloud_data_type": "crn", "computed": true }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, { "name": "updated_at", "type": "TypeString", @@ -89340,13 +92256,13 @@ "computed": true }, { - "name": "state", + "name": "name", "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - } - ], - "ibm_cd_toolchain_tool_pagerduty": [ + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true + }, { "name": "parameters", "type": "TypeList", @@ -89376,78 +92292,15 @@ "max_items": 1, "min_items": 1 }, - { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "optional": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "optional": true - } - } - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true - }, { "name": "resource_group_id", "type": "TypeString", "description": "Resource group where the tool is located.", "cloud_data_type": "resource_group", "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "Tool ID.", - "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_pipeline": [ { "name": "toolchain_id", "type": "TypeString", @@ -89457,9 +92310,7 @@ "min_length": 36, "max_length": 36, "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - } - ], - "ibm_cd_toolchain_tool_pipeline": [ + }, { "name": "name", "type": "TypeString", @@ -89476,14 +92327,36 @@ "computed": true }, { - "name": "toolchain_id", + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "optional": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "optional": true + } + } + }, + { + "name": "updated_at", "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + "description": "Latest tool update timestamp.", + "computed": true + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "Tool ID.", + "computed": true }, { "name": "parameters", @@ -89520,43 +92393,11 @@ "description": "URI representing the tool.", "computed": true }, - { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "optional": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "optional": true - } - } - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, { "name": "state", "type": "TypeString", "description": "Current configuration state of the tool.", "computed": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "Tool ID.", - "computed": true } ], "ibm_cd_toolchain_tool_privateworker": [ @@ -89607,12 +92448,50 @@ "max_items": 1, "min_items": 1 }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "Tool ID.", + "computed": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true + }, { "name": "toolchain_crn", "type": "TypeString", "description": "CRN of toolchain which the tool is bound to.", "computed": true }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, { "name": "referent", "type": "TypeList", @@ -89632,12 +92511,18 @@ "optional": true } } - }, + } + ], + "ibm_cd_toolchain_tool_saucelabs": [ { - "name": "state", + "name": "toolchain_id", "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" }, { "name": "resource_group_id", @@ -89653,32 +92538,12 @@ "cloud_data_type": "crn", "computed": true }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, { "name": "updated_at", "type": "TypeString", "description": "Latest tool update timestamp.", "computed": true }, - { - "name": "tool_id", - "type": "TypeString", - "description": "Tool ID.", - "computed": true - } - ], - "ibm_cd_toolchain_tool_saucelabs": [ - { - "name": "tool_id", - "type": "TypeString", - "description": "Tool ID.", - "computed": true - }, { "name": "name", "type": "TypeString", @@ -89711,10 +92576,9 @@ "min_items": 1 }, { - "name": "resource_group_id", + "name": "toolchain_crn", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { @@ -89723,41 +92587,6 @@ "description": "URI representing the tool.", "computed": true }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, { "name": "referent", "type": "TypeList", @@ -89777,9 +92606,7 @@ "optional": true } } - } - ], - "ibm_cd_toolchain_tool_secretsmanager": [ + }, { "name": "state", "type": "TypeString", @@ -89791,17 +92618,9 @@ "type": "TypeString", "description": "Tool ID.", "computed": true - }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, + } + ], + "ibm_cd_toolchain_tool_secretsmanager": [ { "name": "parameters", "type": "TypeList", @@ -89848,6 +92667,19 @@ "max_items": 1, "min_items": 1 }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, { "name": "href", "type": "TypeString", @@ -89880,6 +92712,12 @@ "description": "Latest tool update timestamp.", "computed": true }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, { "name": "name", "type": "TypeString", @@ -89889,10 +92727,9 @@ "optional": true }, { - "name": "resource_group_id", + "name": "tool_id", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", + "description": "Tool ID.", "computed": true }, { @@ -89903,13 +92740,84 @@ "computed": true }, { - "name": "toolchain_crn", + "name": "toolchain_id", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" } ], "ibm_cd_toolchain_tool_securitycompliance": [ + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, + { + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "optional": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "optional": true + } + } + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "Tool ID.", + "computed": true + }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + }, { "name": "name", "type": "TypeString", @@ -90013,17 +92921,14 @@ "min_items": 1 }, { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "updated_at", + "name": "crn", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_slack": [ { "name": "tool_id", "type": "TypeString", @@ -90041,17 +92946,16 @@ "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" }, { - "name": "resource_group_id", + "name": "crn", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true }, { - "name": "crn", + "name": "toolchain_crn", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { @@ -90080,14 +92984,26 @@ } } }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + }, { "name": "state", "type": "TypeString", "description": "Current configuration state of the tool.", "computed": true - } - ], - "ibm_cd_toolchain_tool_slack": [ + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true + }, { "name": "parameters", "type": "TypeList", @@ -90158,118 +93074,9 @@ "description": "Resource group where the tool is located.", "cloud_data_type": "resource_group", "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "Tool ID.", - "computed": true - }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, - { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "optional": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "optional": true - } - } - }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - } - ], - "ibm_cd_toolchain_tool_sonarqube": [ - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_sonarqube": [ { "name": "name", "type": "TypeString", @@ -90321,12 +93128,21 @@ "min_items": 1 }, { - "name": "resource_group_id", + "name": "href", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", + "description": "URI representing the tool.", "computed": true }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + }, { "name": "crn", "type": "TypeString", @@ -90334,6 +93150,12 @@ "cloud_data_type": "crn", "computed": true }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, { "name": "referent", "type": "TypeList", @@ -90354,11 +93176,30 @@ } } }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, { "name": "tool_id", "type": "TypeString", "description": "Tool ID.", "computed": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true } ], "ibm_cdn": [ @@ -90377,34 +93218,18 @@ "required": true }, { - "name": "host_name", - "type": "TypeString", - "description": "Host name", - "immutable": true, - "required": true - }, - { - "name": "header", - "type": "TypeString", - "description": "Header info", - "optional": true, - "computed": true - }, - { - "name": "path", + "name": "cache_key_query_rule", "type": "TypeString", - "description": "Path details", - "default_value": "/*", - "immutable": true, + "description": "query rule info", + "default_value": "include-all", "optional": true }, { - "name": "vendor_name", + "name": "host_name", "type": "TypeString", - "description": "Vendor name", - "default_value": "akamai", + "description": "Host name", "immutable": true, - "optional": true + "required": true }, { "name": "http_port", @@ -90419,6 +93244,19 @@ "description": "Status info of the CDN instance", "computed": true }, + { + "name": "respect_headers", + "type": "TypeBool", + "description": "respect headers info", + "default_value": true, + "optional": true + }, + { + "name": "file_extension", + "type": "TypeString", + "description": "File extension info", + "optional": true + }, { "name": "certificate_type", "type": "TypeString", @@ -90427,10 +93265,18 @@ "optional": true }, { - "name": "performance_configuration", + "name": "path", "type": "TypeString", - "description": "performance configuration info", - "default_value": "General web delivery", + "description": "Path details", + "default_value": "/*", + "immutable": true, + "optional": true + }, + { + "name": "vendor_name", + "type": "TypeString", + "description": "Vendor name", + "default_value": "akamai", "immutable": true, "optional": true }, @@ -90440,6 +93286,14 @@ "description": "Bucket name", "optional": true }, + { + "name": "protocol", + "type": "TypeString", + "description": "Protocol name", + "default_value": "HTTP", + "immutable": true, + "optional": true + }, { "name": "https_port", "type": "TypeInt", @@ -90456,35 +93310,29 @@ "computed": true }, { - "name": "respect_headers", - "type": "TypeBool", - "description": "respect headers info", - "default_value": true, - "optional": true - }, - { - "name": "file_extension", - "type": "TypeString", - "description": "File extension info", - "optional": true - }, - { - "name": "cache_key_query_rule", + "name": "header", "type": "TypeString", - "description": "query rule info", - "default_value": "include-all", - "optional": true + "description": "Header info", + "optional": true, + "computed": true }, { - "name": "protocol", + "name": "performance_configuration", "type": "TypeString", - "description": "Protocol name", - "default_value": "HTTP", + "description": "performance configuration info", + "default_value": "General web delivery", "immutable": true, "optional": true } ], "ibm_cis": [ + { + "name": "parameters", + "type": "TypeMap", + "description": "Arbitrary parameters to pass. Must be a JSON object", + "immutable": true, + "optional": true + }, { "name": "tags", "type": "TypeSet", @@ -90498,9 +93346,30 @@ } }, { - "name": "status", + "name": "resource_controller_url", "type": "TypeString", - "description": "Status of resource instance", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", + "computed": true + }, + { + "name": "plan", + "type": "TypeString", + "description": "The plan type of the service", + "required": true + }, + { + "name": "guid", + "type": "TypeString", + "description": "Unique identifier of resource instance", + "computed": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "The resource group id", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, "computed": true }, { @@ -90522,18 +93391,11 @@ "computed": true }, { - "name": "resource_status", + "name": "resource_name", "type": "TypeString", - "description": "The status of the resource", + "description": "The name of the resource", "computed": true }, - { - "name": "parameters", - "type": "TypeMap", - "description": "Arbitrary parameters to pass. Must be a JSON object", - "immutable": true, - "optional": true - }, { "name": "resource_crn", "type": "TypeString", @@ -90541,10 +93403,10 @@ "computed": true }, { - "name": "plan", + "name": "resource_status", "type": "TypeString", - "description": "The plan type of the service", - "required": true + "description": "The status of the resource", + "computed": true }, { "name": "location", @@ -90555,74 +93417,19 @@ "required": true }, { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", - "computed": true - }, - { - "name": "guid", - "type": "TypeString", - "description": "Unique identifier of resource instance", - "computed": true - }, - { - "name": "resource_group_id", + "name": "status", "type": "TypeString", - "description": "The resource group id", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, + "description": "Status of resource instance", "computed": true } ], "ibm_cis_alert": [ - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "policy_id", - "type": "TypeString", - "description": "Identifier of the Alert Policy", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Policy name", - "required": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Policy Description", - "optional": true - }, { "name": "alert_type", "type": "TypeString", "description": "Condition for the alert", "required": true }, - { - "name": "enabled", - "type": "TypeBool", - "description": "Is the alert policy active", - "required": true - }, { "name": "mechanisms", "type": "TypeList", @@ -90658,21 +93465,43 @@ "type": "TypeString", "description": "Conditions based on filter type", "optional": true - } - ], - "ibm_cis_bot_management": [ + }, { - "name": "auth_id_logging", + "name": "cis_id", "type": "TypeString", - "description": "Auth ID Logging", - "computed": true + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] }, { - "name": "use_latest_model", + "name": "policy_id", "type": "TypeString", - "description": "Use Latest Model", + "description": "Identifier of the Alert Policy", "computed": true }, + { + "name": "enabled", + "type": "TypeBool", + "description": "Is the alert policy active", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Policy name", + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Policy Description", + "optional": true + } + ], + "ibm_cis_bot_management": [ { "name": "cis_id", "type": "TypeString", @@ -90706,19 +93535,21 @@ "type": "TypeString", "description": "Enable JS", "computed": true - } - ], - "ibm_cis_cache_settings": [ + }, { - "name": "cis_id", + "name": "auth_id_logging", "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] + "description": "Auth ID Logging", + "computed": true }, + { + "name": "use_latest_model", + "type": "TypeString", + "description": "Use Latest Model", + "computed": true + } + ], + "ibm_cis_cache_settings": [ { "name": "development_mode", "type": "TypeString", @@ -90728,10 +93559,12 @@ "computed": true }, { - "name": "purge_all", - "type": "TypeBool", - "description": "Purge all setting", - "optional": true + "name": "query_string_sort", + "type": "TypeString", + "description": "Query String sort setting", + "options": "on, off", + "optional": true, + "computed": true }, { "name": "purge_by_tags", @@ -90742,6 +93575,16 @@ "type": "TypeString" } }, + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, { "name": "domain_id", "type": "TypeString", @@ -90773,26 +93616,24 @@ "computed": true }, { - "name": "query_string_sort", - "type": "TypeString", - "description": "Query String sort setting", - "options": "on, off", - "optional": true, - "computed": true - }, - { - "name": "purge_by_urls", + "name": "purge_by_hosts", "type": "TypeList", - "description": "Purge by URLs", + "description": "Purge by hosts", "optional": true, "elem": { "type": "TypeString" } }, { - "name": "purge_by_hosts", + "name": "purge_all", + "type": "TypeBool", + "description": "Purge all setting", + "optional": true + }, + { + "name": "purge_by_urls", "type": "TypeList", - "description": "Purge by hosts", + "description": "Purge by URLs", "optional": true, "elem": { "type": "TypeString" @@ -90800,28 +93641,6 @@ } ], "ibm_cis_certificate_order": [ - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS object id or CRN", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "domain_id", - "type": "TypeString", - "description": "Associated CIS domain", - "required": true - }, - { - "name": "certificate_id", - "type": "TypeString", - "description": "certificate id", - "computed": true - }, { "name": "type", "type": "TypeString", @@ -90844,24 +93663,31 @@ "type": "TypeString", "description": "certificate status", "computed": true - } - ], - "ibm_cis_certificate_upload": [ + }, { - "name": "hosts", - "type": "TypeList", - "description": "hosts which the certificate uploaded to", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "cis_id", + "type": "TypeString", + "description": "CIS object id or CRN", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] }, { - "name": "signature", + "name": "domain_id", "type": "TypeString", - "description": "certificate signature", - "computed": true + "description": "Associated CIS domain", + "required": true }, + { + "name": "certificate_id", + "type": "TypeString", + "description": "certificate id", + "computed": true + } + ], + "ibm_cis_certificate_upload": [ { "name": "uploaded_on", "type": "TypeString", @@ -90874,24 +93700,6 @@ "description": "certificate expires date", "computed": true }, - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "bundle_method", - "type": "TypeString", - "description": "Certificate bundle method", - "default_value": "ubiquitous", - "options": "ubiquitous, optimal, force", - "optional": true - }, { "name": "priority", "type": "TypeInt", @@ -90899,26 +93707,6 @@ "optional": true, "computed": true }, - { - "name": "domain_id", - "type": "TypeString", - "description": "Associated CIS domain", - "required": true - }, - { - "name": "private_key", - "type": "TypeString", - "description": "Certificate private key", - "secure": true, - "required": true - }, - { - "name": "certificate", - "type": "TypeString", - "description": "Certificate key", - "secure": true, - "required": true - }, { "name": "issuer", "type": "TypeString", @@ -90926,9 +93714,9 @@ "computed": true }, { - "name": "modified_on", + "name": "signature", "type": "TypeString", - "description": "certificate modified date", + "description": "certificate signature", "computed": true }, { @@ -90937,13 +93725,28 @@ "computed": true }, { - "name": "status", + "name": "bundle_method", "type": "TypeString", - "description": "certificate status", + "description": "Certificate bundle method", + "default_value": "ubiquitous", + "options": "ubiquitous, optimal, force", + "optional": true + }, + { + "name": "hosts", + "type": "TypeList", + "description": "hosts which the certificate uploaded to", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "modified_on", + "type": "TypeString", + "description": "certificate modified date", "computed": true - } - ], - "ibm_cis_custom_page": [ + }, { "name": "cis_id", "type": "TypeString", @@ -90961,17 +93764,27 @@ "required": true }, { - "name": "url", + "name": "certificate", "type": "TypeString", - "description": "Custom page url", + "description": "Certificate key", + "secure": true, "required": true }, { - "name": "description", + "name": "private_key", "type": "TypeString", - "description": "Free text", - "computed": true + "description": "Certificate private key", + "secure": true, + "required": true }, + { + "name": "status", + "type": "TypeString", + "description": "certificate status", + "computed": true + } + ], + "ibm_cis_custom_page": [ { "name": "preview_target", "type": "TypeString", @@ -90979,11 +93792,26 @@ "computed": true }, { - "name": "modified_on", + "name": "created_on", "type": "TypeString", - "description": "Custom page modified date", + "description": "Custom page created date", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Free text", "computed": true }, + { + "name": "required_tokens", + "type": "TypeList", + "description": "Custom page state", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "page_id", "type": "TypeString", @@ -90992,6 +93820,12 @@ "required": true, "options": "basic_challenge, waf_challenge, waf_block, ratelimit_block,country_challenge, ip_block, under_attack, 500_errors, 1000_errors, always_online" }, + { + "name": "url", + "type": "TypeString", + "description": "Custom page url", + "required": true + }, { "name": "state", "type": "TypeString", @@ -90999,28 +93833,51 @@ "computed": true }, { - "name": "required_tokens", - "type": "TypeList", - "description": "Custom page state", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "modified_on", + "type": "TypeString", + "description": "Custom page modified date", + "computed": true }, { - "name": "created_on", + "name": "cis_id", "type": "TypeString", - "description": "Custom page created date", - "computed": true + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, + { + "name": "domain_id", + "type": "TypeString", + "description": "Associated CIS domain", + "required": true } ], "ibm_cis_dns_record": [ + { + "name": "data", + "type": "TypeMap", + "optional": true + }, + { + "name": "domain_id", + "type": "TypeString", + "description": "Associated CIS domain", + "required": true + }, { "name": "name", "type": "TypeString", "description": "DNS record name", "optional": true }, + { + "name": "created_on", + "type": "TypeString", + "computed": true + }, { "name": "proxied", "type": "TypeBool", @@ -91029,17 +93886,25 @@ "optional": true }, { - "name": "domain_id", + "name": "modified_on", "type": "TypeString", - "description": "Associated CIS domain", - "required": true + "computed": true }, { - "name": "zone_name", + "name": "record_id", "type": "TypeString", - "description": "zone name", "computed": true }, + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS object id or CRN", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, { "name": "content", "type": "TypeString", @@ -91060,55 +93925,24 @@ "optional": true }, { - "name": "record_id", - "type": "TypeString", - "computed": true - }, - { - "name": "created_on", - "type": "TypeString", + "name": "proxiable", + "type": "TypeBool", "computed": true }, { - "name": "modified_on", + "name": "zone_name", "type": "TypeString", + "description": "zone name", "computed": true }, - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS object id or CRN", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, { "name": "type", "type": "TypeString", "description": "Record type", "required": true - }, - { - "name": "data", - "type": "TypeMap", - "optional": true - }, - { - "name": "proxiable", - "type": "TypeBool", - "computed": true } ], "ibm_cis_dns_records_import": [ - { - "name": "file", - "type": "TypeString", - "description": "File to import", - "immutable": true, - "required": true - }, { "name": "total_records_parsed", "type": "TypeInt", @@ -91136,29 +93970,23 @@ "type": "TypeString", "description": "Associated CIS domain", "required": true - } - ], - "ibm_cis_domain": [ - { - "name": "original_name_servers", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } }, { - "name": "domain_id", + "name": "file", "type": "TypeString", - "computed": true - }, + "description": "File to import", + "immutable": true, + "required": true + } + ], + "ibm_cis_domain": [ { - "name": "verification_key", + "name": "status", "type": "TypeString", "computed": true }, { - "name": "cname_suffix", + "name": "domain_id", "type": "TypeString", "computed": true }, @@ -91173,16 +94001,34 @@ ] }, { - "name": "domain", + "name": "type", "type": "TypeString", - "description": "CISzone - Domain", - "required": true + "description": "CISzone - Domain Type", + "default_value": "full", + "options": "full, partial", + "optional": true }, { - "name": "status", + "name": "paused", + "type": "TypeBool", + "computed": true + }, + { + "name": "verification_key", + "type": "TypeString", + "computed": true + }, + { + "name": "cname_suffix", "type": "TypeString", "computed": true }, + { + "name": "domain", + "type": "TypeString", + "description": "CISzone - Domain", + "required": true + }, { "name": "name_servers", "type": "TypeList", @@ -91192,24 +94038,36 @@ } }, { - "name": "type", + "name": "original_name_servers", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } + } + ], + "ibm_cis_domain_settings": [ + { + "name": "prefetch_preload", "type": "TypeString", - "description": "CISzone - Domain Type", - "default_value": "full", - "options": "full, partial", - "optional": true + "description": "prefetch_preload setting", + "options": "on, off", + "optional": true, + "computed": true }, { - "name": "paused", - "type": "TypeBool", + "name": "tls_client_auth", + "type": "TypeString", + "description": "tls_client_auth setting", + "options": "on, off", + "optional": true, "computed": true - } - ], - "ibm_cis_domain_settings": [ + }, { - "name": "cname_flattening", + "name": "waf", "type": "TypeString", - "description": "cname_flattening setting", + "description": "WAF setting", + "options": "on, off", "optional": true, "computed": true }, @@ -91222,69 +94080,63 @@ "computed": true }, { - "name": "ip_geolocation", + "name": "always_use_https", "type": "TypeString", - "description": "ip_geolocation setting", + "description": "always_use_https setting", "options": "on, off", "optional": true, "computed": true }, { - "name": "brotli", + "name": "response_buffering", "type": "TypeString", - "description": "brotli setting", + "description": "response_buffering setting", "options": "on, off", "optional": true, "computed": true }, { - "name": "security_header", + "name": "script_load_optimization", + "type": "TypeString", + "description": "script_load_optimization setting", + "options": "on, off", + "optional": true, + "computed": true + }, + { + "name": "minify", "type": "TypeList", - "description": "Security Header Setting", + "description": "Minify setting", "optional": true, "computed": true, "elem": { - "enabled": { - "name": "enabled", - "type": "TypeBool", - "description": "security header enabled/disabled", - "required": true - }, - "include_subdomains": { - "name": "include_subdomains", - "type": "TypeBool", - "description": "security header subdomain included or not", + "css": { + "name": "css", + "type": "TypeString", + "description": "Minify CSS setting", "required": true }, - "max_age": { - "name": "max_age", - "type": "TypeInt", - "description": "security header max age", + "html": { + "name": "html", + "type": "TypeString", + "description": "Minify HTML setting", "required": true }, - "nosniff": { - "name": "nosniff", - "type": "TypeBool", - "description": "security header no sniff", + "js": { + "name": "js", + "type": "TypeString", + "description": "Minify JS setting", "required": true - }, - "preload": { - "name": "preload", - "type": "TypeBool", - "description": "security header preload", - "default_value": false, - "optional": true } }, "max_items": 1, "min_items": 1 }, { - "name": "min_tls_version", + "name": "domain_id", "type": "TypeString", - "description": "Minimum version of TLS required", - "default_value": "1.1", - "optional": true + "description": "Associated CIS domain", + "required": true }, { "name": "automatic_https_rewrites", @@ -91295,66 +94147,57 @@ "computed": true }, { - "name": "ipv6", + "name": "http2", "type": "TypeString", - "description": "ipv6 setting", + "description": "http2 setting", "options": "on, off", "optional": true, "computed": true }, { - "name": "browser_check", + "name": "origin_error_page_pass_thru", "type": "TypeString", - "description": "browser_check setting", + "description": "origin_error_page_pass_thru setting", "options": "on, off", "optional": true, "computed": true }, { - "name": "waf", + "name": "server_side_exclude", "type": "TypeString", - "description": "WAF setting", + "description": "server_side_exclude setting", "options": "on, off", "optional": true, "computed": true }, { - "name": "image_size_optimization", - "type": "TypeString", - "description": "image_size_optimization setting", + "name": "challenge_ttl", + "type": "TypeInt", + "description": "Challenge TTL setting", + "options": "300, 900, 1800, 2700, 3600, 7200, 10800, 14400, 28800, 57600, 86400, 604800, 2592000, 31536000", "optional": true, "computed": true }, { - "name": "pseudo_ipv4", + "name": "ipv6", "type": "TypeString", - "description": "pseudo_ipv4 setting", + "description": "ipv6 setting", + "options": "on, off", "optional": true, "computed": true }, { - "name": "cipher", - "type": "TypeSet", - "description": "Cipher settings", - "options": "ECDHE-ECDSA-AES128-GCM-SHA256,ECDHE-ECDSA-CHACHA20-POLY1305, ECDHE-RSA-AES128-GCM-SHA256,ECDHE-RSA-CHACHA20-POLY1305, ECDHE-ECDSA-AES128-SHA256, ECDHE-ECDSA-AES128-SHA, ECDHE-RSA-AES128-SHA256, ECDHE-RSA-AES128-SHA, AES128-GCM-SHA256, AES128-SHA256, AES128-SHA, ECDHE-ECDSA-AES256-GCM-SHA384, ECDHE-ECDSA-AES256-SHA384, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-RSA-AES256-SHA384, ECDHE-RSA-AES256-SHA, AES256-GCM-SHA384, AES256-SHA256, AES256-SHA, DES-CBC3-SHA, AEAD-AES128-GCM-SHA256, AEAD-AES256-GCM-SHA384, AEAD-CHACHA20-POLY1305-SHA256", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "hotlink_protection", + "name": "browser_check", "type": "TypeString", - "description": "hotlink_protection setting", + "description": "browser_check setting", "options": "on, off", "optional": true, "computed": true }, { - "name": "prefetch_preload", + "name": "image_load_optimization", "type": "TypeString", - "description": "prefetch_preload setting", + "description": "image_load_optimization setting", "options": "on, off", "optional": true, "computed": true @@ -91390,77 +94233,113 @@ "min_items": 1 }, { - "name": "dnssec", + "name": "certificate_status", "type": "TypeString", - "description": "DNS Sec setting", - "options": "active, disabled", - "optional": true, - "computed": true + "description": "Certificate status", + "computed": true, + "deprecated": "This field is deprecated" }, { - "name": "ssl", + "name": "min_tls_version", "type": "TypeString", - "description": "SSL/TLS setting", - "optional": true, - "computed": true + "description": "Minimum version of TLS required", + "default_value": "1.1", + "optional": true }, { - "name": "tls_client_auth", + "name": "cname_flattening", "type": "TypeString", - "description": "tls_client_auth setting", - "options": "on, off", + "description": "cname_flattening setting", "optional": true, "computed": true }, { - "name": "server_side_exclude", + "name": "ip_geolocation", "type": "TypeString", - "description": "server_side_exclude setting", + "description": "ip_geolocation setting", "options": "on, off", "optional": true, "computed": true }, { - "name": "domain_id", - "type": "TypeString", - "description": "Associated CIS domain", - "required": true + "name": "max_upload", + "type": "TypeInt", + "description": "Maximum upload", + "options": "100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500", + "optional": true, + "computed": true }, { - "name": "certificate_status", - "type": "TypeString", - "description": "Certificate status", + "name": "security_header", + "type": "TypeList", + "description": "Security Header Setting", + "optional": true, "computed": true, - "deprecated": "This field is deprecated" + "elem": { + "enabled": { + "name": "enabled", + "type": "TypeBool", + "description": "security header enabled/disabled", + "required": true + }, + "include_subdomains": { + "name": "include_subdomains", + "type": "TypeBool", + "description": "security header subdomain included or not", + "required": true + }, + "max_age": { + "name": "max_age", + "type": "TypeInt", + "description": "security header max age", + "required": true + }, + "nosniff": { + "name": "nosniff", + "type": "TypeBool", + "description": "security header no sniff", + "required": true + }, + "preload": { + "name": "preload", + "type": "TypeBool", + "description": "security header preload", + "default_value": false, + "optional": true + } + }, + "max_items": 1, + "min_items": 1 }, { - "name": "always_use_https", + "name": "cis_id", "type": "TypeString", - "description": "always_use_https setting", - "options": "on, off", - "optional": true, - "computed": true + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] }, { - "name": "origin_error_page_pass_thru", + "name": "dnssec", "type": "TypeString", - "description": "origin_error_page_pass_thru setting", - "options": "on, off", + "description": "DNS Sec setting", + "options": "active, disabled", "optional": true, "computed": true }, { - "name": "response_buffering", + "name": "ssl", "type": "TypeString", - "description": "response_buffering setting", - "options": "on, off", + "description": "SSL/TLS setting", "optional": true, "computed": true }, { - "name": "true_client_ip_header", + "name": "brotli", "type": "TypeString", - "description": "true_client_ip_header setting", + "description": "brotli setting", "options": "on, off", "optional": true, "computed": true @@ -91474,99 +94353,48 @@ "computed": true }, { - "name": "challenge_ttl", - "type": "TypeInt", - "description": "Challenge TTL setting", - "options": "300, 900, 1800, 2700, 3600, 7200, 10800, 14400, 28800, 57600, 86400, 604800, 2592000, 31536000", + "name": "cipher", + "type": "TypeSet", + "description": "Cipher settings", + "options": "ECDHE-ECDSA-AES128-GCM-SHA256,ECDHE-ECDSA-CHACHA20-POLY1305, ECDHE-RSA-AES128-GCM-SHA256,ECDHE-RSA-CHACHA20-POLY1305, ECDHE-ECDSA-AES128-SHA256, ECDHE-ECDSA-AES128-SHA, ECDHE-RSA-AES128-SHA256, ECDHE-RSA-AES128-SHA, AES128-GCM-SHA256, AES128-SHA256, AES128-SHA, ECDHE-ECDSA-AES256-GCM-SHA384, ECDHE-ECDSA-AES256-SHA384, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-RSA-AES256-SHA384, ECDHE-RSA-AES256-SHA, AES256-GCM-SHA384, AES256-SHA256, AES256-SHA, DES-CBC3-SHA, AEAD-AES128-GCM-SHA256, AEAD-AES256-GCM-SHA384, AEAD-CHACHA20-POLY1305-SHA256", "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "max_upload", - "type": "TypeInt", - "description": "Maximum upload", - "options": "100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500", + "name": "hotlink_protection", + "type": "TypeString", + "description": "hotlink_protection setting", + "options": "on, off", "optional": true, "computed": true }, { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "http2", + "name": "image_size_optimization", "type": "TypeString", - "description": "http2 setting", - "options": "on, off", + "description": "image_size_optimization setting", "optional": true, "computed": true }, { - "name": "image_load_optimization", + "name": "true_client_ip_header", "type": "TypeString", - "description": "image_load_optimization setting", + "description": "true_client_ip_header setting", "options": "on, off", "optional": true, "computed": true }, { - "name": "script_load_optimization", + "name": "pseudo_ipv4", "type": "TypeString", - "description": "script_load_optimization setting", - "options": "on, off", + "description": "pseudo_ipv4 setting", "optional": true, "computed": true - }, - { - "name": "minify", - "type": "TypeList", - "description": "Minify setting", - "optional": true, - "computed": true, - "elem": { - "css": { - "name": "css", - "type": "TypeString", - "description": "Minify CSS setting", - "required": true - }, - "html": { - "name": "html", - "type": "TypeString", - "description": "Minify HTML setting", - "required": true - }, - "js": { - "name": "js", - "type": "TypeString", - "description": "Minify JS setting", - "required": true - } - }, - "max_items": 1, - "min_items": 1 - } - ], - "ibm_cis_edge_functions_action": [ - { - "name": "action_name", - "type": "TypeString", - "description": "Edge function action script name", - "immutable": true, - "required": true - }, - { - "name": "script", - "type": "TypeString", - "description": "Edge function action script", - "required": true - }, + } + ], + "ibm_cis_edge_functions_action": [ { "name": "cis_id", "type": "TypeString", @@ -91582,9 +94410,28 @@ "type": "TypeString", "description": "CIS Domain ID", "required": true + }, + { + "name": "action_name", + "type": "TypeString", + "description": "Edge function action script name", + "immutable": true, + "required": true + }, + { + "name": "script", + "type": "TypeString", + "description": "Edge function action script", + "required": true } ], "ibm_cis_edge_functions_trigger": [ + { + "name": "request_limit_fail_open", + "type": "TypeBool", + "description": "Edge function trigger request limit fail open", + "computed": true + }, { "name": "cis_id", "type": "TypeString", @@ -91618,15 +94465,19 @@ "type": "TypeString", "description": "Edge function trigger action name", "optional": true - }, - { - "name": "request_limit_fail_open", - "type": "TypeBool", - "description": "Edge function trigger request limit fail open", - "computed": true } ], "ibm_cis_filter": [ + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, { "name": "domain_id", "type": "TypeString", @@ -91657,19 +94508,20 @@ "description": "Filter Description", "options": "Filter-creation", "optional": true - }, + } + ], + "ibm_cis_firewall": [ { "name": "cis_id", "type": "TypeString", - "description": "CIS instance crn", + "description": "CIS object id", "cloud_data_type": "resource_instance", + "immutable": true, "required": true, "cloud_data_range": [ "service:internet-svcs" ] - } - ], - "ibm_cis_firewall": [ + }, { "name": "domain_id", "type": "TypeString", @@ -91850,20 +94702,21 @@ } }, "max_items": 1 - }, - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS object id", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] } ], "ibm_cis_firewall_rule": [ + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS instance crn", + "required": true + }, + { + "name": "domain_id", + "type": "TypeString", + "description": "Associated CIS domain", + "required": true + }, { "name": "filter_id", "type": "TypeString", @@ -91894,21 +94747,29 @@ "type": "TypeBool", "description": "Firewallrules Paused", "optional": true - }, + } + ], + "ibm_cis_global_load_balancer": [ { - "name": "cis_id", + "name": "domain_id", "type": "TypeString", - "description": "CIS instance crn", + "description": "Associated CIS domain", "required": true }, { - "name": "domain_id", + "name": "proxied", + "type": "TypeBool", + "description": "set to true if proxy needs to be enabled", + "default_value": false, + "optional": true + }, + { + "name": "session_affinity", "type": "TypeString", - "description": "Associated CIS domain", - "required": true - } - ], - "ibm_cis_global_load_balancer": [ + "description": "Session affinity info", + "default_value": "none", + "optional": true + }, { "name": "region_pools", "type": "TypeSet", @@ -91930,38 +94791,85 @@ } }, { - "name": "modified_on", + "name": "cis_id", "type": "TypeString", - "description": "Load balancer modified date", - "computed": true + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] }, { - "name": "name", - "type": "TypeString", - "description": "name", - "required": true + "name": "enabled", + "type": "TypeBool", + "description": "set to true of LB needs to enabled", + "default_value": true, + "optional": true }, { - "name": "default_pool_ids", + "name": "pop_pools", "type": "TypeSet", - "description": "List of default Pool IDs", - "required": true, + "optional": true, "elem": { - "type": "TypeString" + "pool_ids": { + "name": "pool_ids", + "type": "TypeList", + "required": true, + "elem": { + "type": "TypeString" + } + }, + "pop": { + "name": "pop", + "type": "TypeString", + "description": "pop pools region", + "required": true + } } }, + { + "name": "steering_policy", + "type": "TypeString", + "description": "Steering policy info", + "optional": true + }, + { + "name": "created_on", + "type": "TypeString", + "description": "Load balancer creation date", + "computed": true + }, + { + "name": "modified_on", + "type": "TypeString", + "description": "Load balancer modified date", + "computed": true + }, { "name": "glb_id", "type": "TypeString", "description": "global load balancer id", "computed": true }, + { + "name": "name", + "type": "TypeString", + "description": "name", + "required": true + }, { "name": "fallback_pool_id", "type": "TypeString", "description": "fallback pool ID", "required": true }, + { + "name": "description", + "type": "TypeString", + "description": "Description for the load balancer instance", + "optional": true + }, { "name": "ttl", "type": "TypeInt", @@ -91970,10 +94878,21 @@ "optional": true }, { - "name": "session_affinity", - "type": "TypeString", - "description": "Session affinity info", - "default_value": "none", + "name": "default_pool_ids", + "type": "TypeSet", + "description": "List of default Pool IDs", + "required": true, + "elem": { + "type": "TypeString" + } + } + ], + "ibm_cis_healthcheck": [ + { + "name": "allow_insecure", + "type": "TypeBool", + "description": "allow_insecure", + "default_value": false, "optional": true }, { @@ -91987,76 +94906,45 @@ ] }, { - "name": "domain_id", + "name": "monitor_id", "type": "TypeString", - "description": "Associated CIS domain", - "required": true + "description": "GLB Monitor/Health check id", + "computed": true }, { - "name": "description", + "name": "method", "type": "TypeString", - "description": "Description for the load balancer instance", + "description": "method", + "default_value": "GET", + "options": "GET, HEAD", "optional": true }, { - "name": "steering_policy", - "type": "TypeString", - "description": "Steering policy info", + "name": "interval", + "type": "TypeInt", + "description": "interval", + "default_value": 60, + "min_value": "5", + "max_value": "3600", "optional": true }, { - "name": "pop_pools", - "type": "TypeSet", - "optional": true, - "elem": { - "pool_ids": { - "name": "pool_ids", - "type": "TypeList", - "required": true, - "elem": { - "type": "TypeString" - } - }, - "pop": { - "name": "pop", - "type": "TypeString", - "description": "pop pools region", - "required": true - } - } - }, - { - "name": "created_on", + "name": "modified_on", "type": "TypeString", - "description": "Load balancer creation date", "computed": true }, { - "name": "proxied", - "type": "TypeBool", - "description": "set to true if proxy needs to be enabled", - "default_value": false, - "optional": true - }, - { - "name": "enabled", - "type": "TypeBool", - "description": "set to true of LB needs to enabled", - "default_value": true, - "optional": true - } - ], - "ibm_cis_healthcheck": [ - { - "name": "expected_body", + "name": "expected_codes", "type": "TypeString", - "description": "expected_body", + "description": "expected_codes", "optional": true }, { - "name": "expected_codes", + "name": "type", "type": "TypeString", - "description": "expected_codes", + "description": "type", + "default_value": "http", + "options": "http, https, tcp", "optional": true }, { @@ -92069,37 +94957,21 @@ "optional": true }, { - "name": "follow_redirects", - "type": "TypeBool", - "description": "follow_redirects", - "default_value": false, - "optional": true - }, - { - "name": "path", - "type": "TypeString", - "description": "path", - "default_value": "/", - "optional": true - }, - { - "name": "description", - "type": "TypeString", - "description": "description", - "default_value": " ", - "optional": true - }, - { - "name": "type", - "type": "TypeString", - "description": "type", - "default_value": "http", - "options": "http, https, tcp", + "name": "retries", + "type": "TypeInt", + "description": "retries", + "default_value": 2, + "min_value": "1", + "max_value": "3", "optional": true }, { - "name": "modified_on", - "type": "TypeString", + "name": "port", + "type": "TypeInt", + "description": "port number", + "min_value": "1", + "max_value": "65535", + "optional": true, "computed": true }, { @@ -92123,70 +94995,45 @@ } }, { - "name": "monitor_id", + "name": "path", "type": "TypeString", - "description": "GLB Monitor/Health check id", - "computed": true - }, - { - "name": "allow_insecure", - "type": "TypeBool", - "description": "allow_insecure", - "default_value": false, + "description": "path", + "default_value": "/", "optional": true }, { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "method", + "name": "expected_body", "type": "TypeString", - "description": "method", - "default_value": "GET", - "options": "GET, HEAD", + "description": "expected_body", "optional": true }, { - "name": "retries", - "type": "TypeInt", - "description": "retries", - "default_value": 2, - "min_value": "1", - "max_value": "3", + "name": "description", + "type": "TypeString", + "description": "description", + "default_value": " ", "optional": true }, { - "name": "interval", - "type": "TypeInt", - "description": "interval", - "default_value": 60, - "min_value": "5", - "max_value": "3600", + "name": "follow_redirects", + "type": "TypeBool", + "description": "follow_redirects", + "default_value": false, "optional": true }, { "name": "create_on", "type": "TypeString", "computed": true - }, - { - "name": "port", - "type": "TypeInt", - "description": "port number", - "min_value": "1", - "max_value": "65535", - "optional": true, - "computed": true } ], "ibm_cis_logpush_job": [ + { + "name": "frequency", + "type": "TypeString", + "description": "The frequency at which CIS sends batches of logs to your destination", + "optional": true + }, { "name": "job_id", "type": "TypeInt", @@ -92194,14 +95041,10 @@ "computed": true }, { - "name": "cis_id", + "name": "destination_conf", "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] + "description": "Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.", + "computed": true }, { "name": "domain_id", @@ -92210,11 +95053,10 @@ "required": true }, { - "name": "logdna", - "type": "TypeString", - "description": "Information to identify the LogDNA instance the data will be pushed.", - "secure": true, - "required": true + "name": "enabled", + "type": "TypeBool", + "description": "Whether the logpush job enabled or not", + "optional": true }, { "name": "name", @@ -92222,12 +95064,6 @@ "description": "Logpush Job Name", "optional": true }, - { - "name": "enabled", - "type": "TypeBool", - "description": "Whether the logpush job enabled or not", - "optional": true - }, { "name": "logpull_options", "type": "TypeString", @@ -92241,19 +95077,36 @@ "required": true }, { - "name": "frequency", + "name": "cis_id", "type": "TypeString", - "description": "The frequency at which CIS sends batches of logs to your destination", - "optional": true + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] }, { - "name": "destination_conf", + "name": "logdna", "type": "TypeString", - "description": "Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.", - "computed": true + "description": "Information to identify the LogDNA instance the data will be pushed.", + "secure": true, + "required": true } ], "ibm_cis_mtls": [ + { + "name": "created_at", + "type": "TypeString", + "description": "Certificate Created At", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Certificate Updated At", + "computed": true + }, { "name": "id", "type": "TypeString", @@ -92266,6 +95119,12 @@ "description": "Mtls transaction ID", "computed": true }, + { + "name": "name", + "type": "TypeString", + "description": "Certificate name", + "required": true + }, { "name": "certificate", "type": "TypeString", @@ -92282,18 +95141,6 @@ "type": "TypeString" } }, - { - "name": "created_at", - "type": "TypeString", - "description": "Certificate Created At", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Certificate Updated At", - "computed": true - }, { "name": "expires_on", "type": "TypeString", @@ -92315,45 +95162,36 @@ "type": "TypeString", "description": "Associated CIS domain", "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Certificate name", - "required": true } ], "ibm_cis_mtls_app": [ { - "name": "policy_name", - "type": "TypeString", - "description": "Policy Name", - "default_value": "mtls-policy", - "optional": true - }, - { - "name": "pol_created_at", + "name": "name", "type": "TypeString", - "description": "Policy Created At", - "computed": true + "description": "App Name", + "required": true }, { - "name": "app_id", + "name": "app_created_at", "type": "TypeString", - "description": "APP ID", + "description": "Certificate Created At", "computed": true }, { - "name": "app_created_at", + "name": "policy_id", "type": "TypeString", - "description": "Certificate Created At", + "description": "Policy ID", "computed": true }, { - "name": "pol_updated_at", + "name": "cis_id", "type": "TypeString", - "description": "Policy updated At", - "computed": true + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] }, { "name": "domain_id", @@ -92362,46 +95200,43 @@ "required": true }, { - "name": "policy_decision", + "name": "session_duration", "type": "TypeString", - "description": "Policy Action", - "default_value": "non_identity", + "description": "Duration for app validatidity", + "default_value": "24h", "optional": true }, { - "name": "common_rule_val", + "name": "policy_name", "type": "TypeString", - "description": "Policy common rule value", + "description": "Policy Name", + "default_value": "mtls-policy", "optional": true }, { - "name": "cert_rule_val", + "name": "policy_decision", "type": "TypeString", - "description": "Policy certificate rule value", - "default_value": "CA root certificate", + "description": "Policy Action", + "default_value": "non_identity", "optional": true }, { - "name": "app_updated_at", + "name": "pol_created_at", "type": "TypeString", - "description": "Certificate Updated At", + "description": "Policy Created At", "computed": true }, { - "name": "policy_id", + "name": "common_rule_val", "type": "TypeString", - "description": "Policy ID", - "computed": true + "description": "Policy common rule value", + "optional": true }, { - "name": "cis_id", + "name": "app_id", "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] + "description": "APP ID", + "computed": true }, { "name": "domain", @@ -92410,17 +95245,23 @@ "required": true }, { - "name": "name", + "name": "cert_rule_val", "type": "TypeString", - "description": "App Name", - "required": true + "description": "Policy certificate rule value", + "default_value": "CA root certificate", + "optional": true }, { - "name": "session_duration", + "name": "app_updated_at", "type": "TypeString", - "description": "Duration for app validatidity", - "default_value": "24h", - "optional": true + "description": "Certificate Updated At", + "computed": true + }, + { + "name": "pol_updated_at", + "type": "TypeString", + "description": "Policy updated At", + "computed": true } ], "ibm_cis_origin_auth": [ @@ -92432,22 +95273,22 @@ "optional": true }, { - "name": "certificate", + "name": "private_key", "type": "TypeString", - "description": "Certificate content which needs to be uploaded", + "description": "Private key content which needs to be uploaded", "secure": true, "required": true }, { - "name": "status", + "name": "expires_on", "type": "TypeString", - "description": "Authentication status whether active or not", + "description": "Certificate expires on", "computed": true }, { - "name": "cert_id", + "name": "uploaded_on", "type": "TypeString", - "description": "Certificate ID which is uploaded", + "description": "Certificate uploaded on", "computed": true }, { @@ -92467,15 +95308,34 @@ ] }, { - "name": "domain_id", + "name": "level", "type": "TypeString", - "description": "Associated CIS domain", + "description": "Origin auth level zone or hostname", "required": true }, { - "name": "level", + "name": "certificate", "type": "TypeString", - "description": "Origin auth level zone or hostname", + "description": "Certificate content which needs to be uploaded", + "secure": true, + "required": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Authentication status whether active or not", + "computed": true + }, + { + "name": "cert_id", + "type": "TypeString", + "description": "Certificate ID which is uploaded", + "computed": true + }, + { + "name": "domain_id", + "type": "TypeString", + "description": "Associated CIS domain", "required": true }, { @@ -92483,28 +95343,54 @@ "type": "TypeString", "description": "Host name needed for host level authentication", "optional": true + } + ], + "ibm_cis_origin_pool": [ + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] }, { - "name": "private_key", + "name": "name", "type": "TypeString", - "description": "Private key content which needs to be uploaded", - "secure": true, + "description": "name", "required": true }, { - "name": "expires_on", + "name": "modified_on", "type": "TypeString", - "description": "Certificate expires on", + "description": "Modified date info", "computed": true }, { - "name": "uploaded_on", + "name": "enabled", + "type": "TypeBool", + "description": "Boolean value set to true if cis origin pool needs to be enabled", + "required": true + }, + { + "name": "notification_email", "type": "TypeString", - "description": "Certificate uploaded on", + "description": "Email address configured to recieve the notifications", + "optional": true + }, + { + "name": "health", + "type": "TypeString", + "description": "Health info", "computed": true - } - ], - "ibm_cis_origin_pool": [ + }, + { + "name": "pool_id", + "type": "TypeString", + "computed": true + }, { "name": "check_regions", "type": "TypeSet", @@ -92527,31 +95413,16 @@ "optional": true }, { - "name": "notification_email", - "type": "TypeString", - "description": "Email address configured to recieve the notifications", - "optional": true - }, - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "pool_id", - "type": "TypeString", + "name": "healthy", + "type": "TypeBool", + "description": "Health status", "computed": true }, { - "name": "name", + "name": "created_on", "type": "TypeString", - "description": "name", - "required": true + "description": "Creation date info", + "computed": true }, { "name": "minimum_origins", @@ -92560,12 +95431,6 @@ "default_value": 1, "optional": true }, - { - "name": "enabled", - "type": "TypeBool", - "description": "Boolean value set to true if cis origin pool needs to be enabled", - "required": true - }, { "name": "origins", "type": "TypeSet", @@ -92609,38 +95474,30 @@ "optional": true } } - }, + } + ], + "ibm_cis_page_rule": [ { - "name": "health", + "name": "id", "type": "TypeString", - "description": "Health info", - "computed": true - }, - { - "name": "healthy", - "type": "TypeBool", - "description": "Health status", + "description": "Id of the ibm_cis_page_rule", "computed": true }, { - "name": "created_on", + "name": "cis_id", "type": "TypeString", - "description": "Creation date info", - "computed": true + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] }, { - "name": "modified_on", - "type": "TypeString", - "description": "Modified date info", - "computed": true - } - ], - "ibm_cis_page_rule": [ - { - "name": "id", + "name": "domain_id", "type": "TypeString", - "description": "Id of the ibm_cis_page_rule", - "computed": true + "description": "Associated CIS domain", + "required": true }, { "name": "rule_id", @@ -92746,54 +95603,32 @@ "optional": true } } - }, - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "domain_id", - "type": "TypeString", - "description": "Associated CIS domain", - "required": true } ], "ibm_cis_range_app": [ { - "name": "proxy_protocol", + "name": "traffic_type", "type": "TypeString", - "description": "Allows for the true client IP to be passed to the service.", - "options": "off, v1, v2, simple", + "description": "Configure how traffic is handled at the edge.", + "default_value": "direct", + "options": "direct, http, https", "optional": true }, { - "name": "edge_ips_type", - "type": "TypeString", - "description": "The type of edge IP configuration.", - "default_value": "dynamic", - "options": "dynamic", - "optional": true + "name": "origin_direct", + "type": "TypeList", + "description": "IP address and port of the origin for this Range application.", + "optional": true, + "elem": { + "type": "TypeString" + } }, { - "name": "edge_ips_connectivity", + "name": "origin_dns", "type": "TypeString", - "description": "Specifies the IP version.", - "default_value": "all", - "options": "ipv4, ipv6, all", + "description": "DNS record pointing to the origin for this Range application.", "optional": true }, - { - "name": "dns_type", - "type": "TypeString", - "description": "Type of the DNS record for this application", - "required": true - }, { "name": "ip_firewall", "type": "TypeBool", @@ -92801,16 +95636,19 @@ "optional": true }, { - "name": "created_on", + "name": "proxy_protocol", "type": "TypeString", - "description": "created on date", - "computed": true + "description": "Allows for the true client IP to be passed to the service.", + "options": "off, v1, v2, simple", + "optional": true }, { - "name": "modified_on", + "name": "tls", "type": "TypeString", - "description": "modified on date", - "computed": true + "description": "Configure if and how TLS connections are terminated at the edge.", + "default_value": "off", + "options": "off, flexible, full, strict", + "optional": true }, { "name": "domain_id", @@ -92819,41 +95657,22 @@ "required": true }, { - "name": "app_id", - "type": "TypeString", - "description": "Application identifier", - "computed": true - }, - { - "name": "origin_direct", - "type": "TypeList", - "description": "IP address and port of the origin for this Range application.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "origin_dns", + "name": "protocol", "type": "TypeString", - "description": "DNS record pointing to the origin for this Range application.", - "optional": true + "description": "Defines the protocol and port for this application", + "required": true }, { - "name": "traffic_type", + "name": "dns_type", "type": "TypeString", - "description": "Configure how traffic is handled at the edge.", - "default_value": "direct", - "options": "direct, http, https", - "optional": true + "description": "Type of the DNS record for this application", + "required": true }, { - "name": "tls", + "name": "modified_on", "type": "TypeString", - "description": "Configure if and how TLS connections are terminated at the edge.", - "default_value": "off", - "options": "off, flexible, full, strict", - "optional": true + "description": "modified on date", + "computed": true }, { "name": "cis_id", @@ -92866,10 +95685,22 @@ ] }, { - "name": "protocol", + "name": "app_id", "type": "TypeString", - "description": "Defines the protocol and port for this application", - "required": true + "description": "Application identifier", + "computed": true + }, + { + "name": "origin_port", + "type": "TypeInt", + "description": "Port at the origin that listens to traffic", + "optional": true + }, + { + "name": "created_on", + "type": "TypeString", + "description": "created on date", + "computed": true }, { "name": "dns", @@ -92878,13 +95709,39 @@ "required": true }, { - "name": "origin_port", - "type": "TypeInt", - "description": "Port at the origin that listens to traffic", + "name": "edge_ips_type", + "type": "TypeString", + "description": "The type of edge IP configuration.", + "default_value": "dynamic", + "options": "dynamic", + "optional": true + }, + { + "name": "edge_ips_connectivity", + "type": "TypeString", + "description": "Specifies the IP version.", + "default_value": "all", + "options": "ipv4, ipv6, all", "optional": true } ], "ibm_cis_rate_limit": [ + { + "name": "correlate", + "type": "TypeList", + "description": "Ratelimiting Correlate", + "optional": true, + "elem": { + "by": { + "name": "by", + "type": "TypeString", + "description": "Whether to enable NAT based rate limiting", + "default_value": "nat", + "optional": true + } + }, + "max_items": 1 + }, { "name": "action", "type": "TypeList", @@ -92928,95 +95785,6 @@ "max_items": 1, "min_items": 1 }, - { - "name": "domain_id", - "type": "TypeString", - "description": "CIS Domain ID", - "required": true - }, - { - "name": "disabled", - "type": "TypeBool", - "description": "Whether this rate limiting rule is currently disabled.", - "default_value": false, - "optional": true - }, - { - "name": "description", - "type": "TypeString", - "description": "A note that you can use to describe the reason for a rate limiting rule.", - "max_length": 1024, - "optional": true - }, - { - "name": "bypass", - "type": "TypeList", - "description": "Bypass URL", - "optional": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "bypass URL name", - "default_value": "url", - "optional": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "bypass URL value", - "optional": true - } - } - }, - { - "name": "threshold", - "type": "TypeInt", - "description": "Rate Limiting Threshold", - "required": true, - "min_value": "1", - "max_value": "1000000" - }, - { - "name": "period", - "type": "TypeInt", - "description": "Rate Limiting Period", - "required": true, - "min_value": "1", - "max_value": "86400" - }, - { - "name": "correlate", - "type": "TypeList", - "description": "Ratelimiting Correlate", - "optional": true, - "elem": { - "by": { - "name": "by", - "type": "TypeString", - "description": "Whether to enable NAT based rate limiting", - "default_value": "nat", - "optional": true - } - }, - "max_items": 1 - }, - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS Intance CRN", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "rule_id", - "type": "TypeString", - "description": "Rate Limit rule Id", - "computed": true - }, { "name": "match", "type": "TypeList", @@ -93114,22 +95882,6 @@ } }, "max_items": 1 - } - ], - "ibm_cis_routing": [ - { - "name": "domain_id", - "type": "TypeString", - "description": "CIS Domain ID", - "required": true - }, - { - "name": "smart_routing", - "type": "TypeString", - "description": "Smart Routing value", - "options": "on, off", - "optional": true, - "computed": true }, { "name": "cis_id", @@ -93140,50 +95892,72 @@ "cloud_data_range": [ "service:internet-svcs" ] - } - ], - "ibm_cis_tls_settings": [ + }, { "name": "domain_id", "type": "TypeString", - "description": "Associated CIS domain", + "description": "CIS Domain ID", "required": true }, { - "name": "universal_ssl", + "name": "disabled", "type": "TypeBool", - "description": "Universal SSL setting", - "optional": true, - "computed": true + "description": "Whether this rate limiting rule is currently disabled.", + "default_value": false, + "optional": true }, { - "name": "tls_1_3", - "type": "TypeString", - "description": "TLS 1.3 setting", - "options": "on, off, zrt", + "name": "bypass", + "type": "TypeList", + "description": "Bypass URL", "optional": true, - "computed": true + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "bypass URL name", + "default_value": "url", + "optional": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "bypass URL value", + "optional": true + } + } }, { - "name": "min_tls_version", + "name": "description", "type": "TypeString", - "description": "Minimum version of TLS required", - "default_value": "1.1", - "options": "1.1, 1.2, 1.3, 1.4", + "description": "A note that you can use to describe the reason for a rate limiting rule.", + "max_length": 1024, "optional": true }, { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", + "name": "threshold", + "type": "TypeInt", + "description": "Rate Limiting Threshold", "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] + "min_value": "1", + "max_value": "1000000" + }, + { + "name": "period", + "type": "TypeInt", + "description": "Rate Limiting Period", + "required": true, + "min_value": "1", + "max_value": "86400" + }, + { + "name": "rule_id", + "type": "TypeString", + "description": "Rate Limit rule Id", + "computed": true } ], - "ibm_cis_waf_group": [ + "ibm_cis_routing": [ { "name": "cis_id", "type": "TypeString", @@ -93201,18 +95975,56 @@ "required": true }, { - "name": "group_id", + "name": "smart_routing", "type": "TypeString", - "description": "WAF Rule group id", - "immutable": true, + "description": "Smart Routing value", + "options": "on, off", + "optional": true, + "computed": true + } + ], + "ibm_cis_tls_settings": [ + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, + { + "name": "domain_id", + "type": "TypeString", + "description": "Associated CIS domain", "required": true }, { - "name": "name", + "name": "universal_ssl", + "type": "TypeBool", + "description": "Universal SSL setting", + "optional": true, + "computed": true + }, + { + "name": "tls_1_3", "type": "TypeString", - "description": "WAF Rule group name", + "description": "TLS 1.3 setting", + "options": "on, off, zrt", + "optional": true, "computed": true }, + { + "name": "min_tls_version", + "type": "TypeString", + "description": "Minimum version of TLS required", + "default_value": "1.1", + "options": "1.1, 1.2, 1.3, 1.4", + "optional": true + } + ], + "ibm_cis_waf_group": [ { "name": "modified_rules_count", "type": "TypeInt", @@ -93227,10 +96039,14 @@ "optional": true }, { - "name": "package_id", + "name": "cis_id", "type": "TypeString", - "description": "WAF Rule package id", - "required": true + "description": "CIS Intance CRN", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] }, { "name": "mode", @@ -93240,39 +96056,44 @@ "options": "on, off" }, { - "name": "description", + "name": "name", "type": "TypeString", - "description": "WAF Rule group description", + "description": "WAF Rule group name", "computed": true }, { - "name": "rules_count", - "type": "TypeInt", - "description": "WAF Rule group rules count", + "name": "description", + "type": "TypeString", + "description": "WAF Rule group description", "computed": true - } - ], - "ibm_cis_waf_package": [ + }, { - "name": "sensitivity", + "name": "domain_id", "type": "TypeString", - "description": "WAF pakcage sensitivity", - "required": true, - "options": "high, medium, low, off" + "description": "CIS Domain ID", + "required": true }, { - "name": "action_mode", + "name": "package_id", "type": "TypeString", - "description": "WAF pakcage action mode", - "required": true, - "options": "simulate, block, challenge" + "description": "WAF Rule package id", + "required": true }, { - "name": "description", + "name": "group_id", "type": "TypeString", - "description": "WAF package description", - "computed": true + "description": "WAF Rule group id", + "immutable": true, + "required": true }, + { + "name": "rules_count", + "type": "TypeInt", + "description": "WAF Rule group rules count", + "computed": true + } + ], + "ibm_cis_waf_package": [ { "name": "cis_id", "type": "TypeString", @@ -93307,25 +96128,42 @@ "type": "TypeString", "description": "WAF pakcage detection mode", "computed": true - } - ], - "ibm_cis_waf_rule": [ + }, { - "name": "cis_id", + "name": "sensitivity", "type": "TypeString", - "description": "CIS Intance CRN", - "cloud_data_type": "resource_instance", + "description": "WAF pakcage sensitivity", "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] + "options": "high, medium, low, off" + }, + { + "name": "action_mode", + "type": "TypeString", + "description": "WAF pakcage action mode", + "required": true, + "options": "simulate, block, challenge" }, + { + "name": "description", + "type": "TypeString", + "description": "WAF package description", + "computed": true + } + ], + "ibm_cis_waf_rule": [ { "name": "domain_id", "type": "TypeString", "description": "CIS Domain ID", "required": true }, + { + "name": "rule_id", + "type": "TypeString", + "description": "CIS WAF Rule id", + "immutable": true, + "required": true + }, { "name": "package_id", "type": "TypeString", @@ -93334,10 +96172,11 @@ "required": true }, { - "name": "description", + "name": "mode", "type": "TypeString", - "description": "CIS WAF Rule descriptions", - "computed": true + "description": "CIS WAF Rule mode", + "required": true, + "options": "on, off, default, disable, simulate, block, challenge" }, { "name": "priority", @@ -93345,6 +96184,22 @@ "description": "CIS WAF Rule Priority", "computed": true }, + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS Intance CRN", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, + { + "name": "description", + "type": "TypeString", + "description": "CIS WAF Rule descriptions", + "computed": true + }, { "name": "group", "type": "TypeList", @@ -93365,20 +96220,6 @@ } } }, - { - "name": "rule_id", - "type": "TypeString", - "description": "CIS WAF Rule id", - "immutable": true, - "required": true - }, - { - "name": "mode", - "type": "TypeString", - "description": "CIS WAF Rule mode", - "required": true, - "options": "on, off, default, disable, simulate, block, challenge" - }, { "name": "allowed_modes", "type": "TypeString", @@ -93390,16 +96231,6 @@ } ], "ibm_cis_webhook": [ - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, { "name": "webhook_id", "type": "TypeString", @@ -93430,39 +96261,19 @@ "description": "API key needed to use the webhook", "secure": true, "optional": true - } - ], - "ibm_cloud_shell_account_settings": [ - { - "name": "enabled", - "type": "TypeBool", - "description": "When enabled, Cloud Shell is available to all users in the account.", - "optional": true - }, - { - "name": "created_at", - "type": "TypeInt", - "description": "Creation timestamp in Unix epoch time.", - "computed": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "IAM ID of creator.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeInt", - "description": "Timestamp of last update in Unix epoch time.", - "computed": true }, { - "name": "updated_by", + "name": "cis_id", "type": "TypeString", - "description": "IAM ID of last updater.", - "computed": true - }, + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + } + ], + "ibm_cloud_shell_account_settings": [ { "name": "account_id", "type": "TypeString", @@ -93470,31 +96281,12 @@ "immutable": true, "required": true }, - { - "name": "default_enable_new_features", - "type": "TypeBool", - "description": "You can choose which Cloud Shell features are available in the account and whether any new features are enabled as they become available. The feature settings apply only to the enabled Cloud Shell locations.", - "optional": true - }, { "name": "default_enable_new_regions", "type": "TypeBool", "description": "Set whether Cloud Shell is enabled in a specific location for the account. The location determines where user and session data are stored. By default, users are routed to the nearest available location.", "optional": true }, - { - "name": "type", - "type": "TypeString", - "description": "Type of api response object.", - "computed": true - }, - { - "name": "rev", - "type": "TypeString", - "description": "Unique revision number for the settings object.", - "optional": true, - "computed": true - }, { "name": "features", "type": "TypeList", @@ -93516,6 +96308,37 @@ } } }, + { + "name": "created_at", + "type": "TypeInt", + "description": "Creation timestamp in Unix epoch time.", + "computed": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "IAM ID of creator.", + "computed": true + }, + { + "name": "rev", + "type": "TypeString", + "description": "Unique revision number for the settings object.", + "optional": true, + "computed": true + }, + { + "name": "default_enable_new_features", + "type": "TypeBool", + "description": "You can choose which Cloud Shell features are available in the account and whether any new features are enabled as they become available. The feature settings apply only to the enabled Cloud Shell locations.", + "optional": true + }, + { + "name": "enabled", + "type": "TypeBool", + "description": "When enabled, Cloud Shell is available to all users in the account.", + "optional": true + }, { "name": "regions", "type": "TypeList", @@ -93536,66 +96359,32 @@ "optional": true } } - } - ], - "ibm_cloudant": [ - { - "name": "parameters", - "type": "TypeMap", - "description": "Arbitrary parameters to pass. Must be a JSON object", - "optional": true - }, - { - "name": "plan_history", - "type": "TypeList", - "description": "The plan history of the instance.", - "computed": true, - "elem": { - "resource_plan_id": { - "name": "resource_plan_id", - "type": "TypeString", - "computed": true - }, - "start_date": { - "name": "start_date", - "type": "TypeString", - "computed": true - } - } }, { - "name": "allow_cleanup", - "type": "TypeBool", - "description": "A boolean that dictates if the resource instance should be deleted (cleaned up) during the processing of a region instance delete call.", + "name": "type", + "type": "TypeString", + "description": "Type of api response object.", "computed": true }, { - "name": "resource_keys_url", - "type": "TypeString", - "description": "The relative path to the resource keys for the instance.", + "name": "updated_at", + "type": "TypeInt", + "description": "Timestamp of last update in Unix epoch time.", "computed": true }, { - "name": "update_by", + "name": "updated_by", "type": "TypeString", - "description": "The subject who updated the instance.", + "description": "IAM ID of last updater.", "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, + } + ], + "ibm_cloudant": [ { - "name": "service_endpoints", + "name": "crn", "type": "TypeString", - "description": "Types of the service endpoints. Possible values are 'public', 'private', 'public-and-private'.", - "optional": true, + "description": "CRN of resource instance", + "cloud_data_type": "crn", "computed": true }, { @@ -93605,35 +96394,54 @@ "computed": true }, { - "name": "target_crn", - "type": "TypeString", - "description": "The full deployment CRN as defined in the global catalog", + "name": "allow_cleanup", + "type": "TypeBool", + "description": "A boolean that dictates if the resource instance should be deleted (cleaned up) during the processing of a region instance delete call.", "computed": true }, { - "name": "state", + "name": "resource_aliases_url", "type": "TypeString", - "description": "The current state of the instance.", + "description": "The relative path to the resource aliases for the instance.", "computed": true }, { - "name": "locked", - "type": "TypeBool", - "description": "A boolean that dictates if the resource instance should be deleted (cleaned up) during the processing of a region instance delete call.", - "computed": true + "name": "cors_config", + "type": "TypeList", + "description": "Configuration for CORS.", + "optional": true, + "elem": { + "allow_credentials": { + "name": "allow_credentials", + "type": "TypeBool", + "description": "Boolean value to allow authentication credentials. If set to true, browser requests must be done by using withCredentials = true.", + "default_value": true, + "optional": true + }, + "origins": { + "name": "origins", + "type": "TypeList", + "description": "An array of strings that contain allowed origin domains. You have to specify the full URL including the protocol. It is recommended that only the HTTPS protocol is used. Subdomains count as separate domains, so you have to specify all subdomains used.", + "required": true, + "elem": { + "type": "TypeString" + } + } + }, + "max_items": 1, + "min_items": 1 }, { - "name": "created_by", - "type": "TypeString", - "description": "The subject who created the instance.", - "computed": true + "name": "parameters", + "type": "TypeMap", + "description": "Arbitrary parameters to pass. Must be a JSON object", + "optional": true }, { - "name": "environment_crn", + "name": "scheduled_reclaim_by", "type": "TypeString", - "description": "CRN of the IBM Cloudant Dedicated Hardware plan instance", - "immutable": true, - "optional": true + "description": "The subject who initiated the instance reclamation.", + "computed": true }, { "name": "capacity", @@ -93642,6 +96450,13 @@ "default_value": 1, "optional": true }, + { + "name": "enable_cors", + "type": "TypeBool", + "description": "Boolean value to turn CORS on and off.", + "default_value": true, + "optional": true + }, { "name": "resource_group_id", "type": "TypeString", @@ -93652,52 +96467,39 @@ "computed": true }, { - "name": "status", - "type": "TypeString", - "description": "Status of resource instance", - "computed": true - }, - { - "name": "resource_id", + "name": "plan", "type": "TypeString", - "description": "The unique ID of the offering", - "computed": true + "description": "The plan type of the service", + "required": true }, { - "name": "sub_type", + "name": "status", "type": "TypeString", - "description": "The sub-type of instance, e.g. cfaas .", + "description": "Status of resource instance", "computed": true }, { - "name": "update_at", + "name": "resource_plan_id", "type": "TypeString", - "description": "The date when the instance was last updated.", + "description": "The unique ID of the plan associated with the offering", "computed": true }, { - "name": "scheduled_reclaim_by", + "name": "deleted_at", "type": "TypeString", - "description": "The subject who initiated the instance reclamation.", + "description": "The date when the instance was deleted.", "computed": true }, { - "name": "include_data_events", - "type": "TypeBool", - "description": "Include data event types in events sent to IBM Cloud Activity Tracker with LogDNA for the IBM Cloudant instance. By default only emitted events are of \"management\" type.", - "default_value": false, - "optional": true - }, - { - "name": "resource_name", + "name": "scheduled_reclaim_at", "type": "TypeString", - "description": "The name of the resource", + "description": "The date when the instance was scheduled for reclamation.", "computed": true }, { - "name": "resource_status", + "name": "resource_crn", "type": "TypeString", - "description": "The status of the resource", + "description": "The crn of the resource", "computed": true }, { @@ -93710,10 +96512,10 @@ } }, { - "name": "restored_at", + "name": "name", "type": "TypeString", - "description": "The date when the instance under reclamation was restored.", - "computed": true + "description": "A name for the resource instance", + "required": true }, { "name": "location", @@ -93724,22 +96526,21 @@ "required": true }, { - "name": "parameters_json", + "name": "account_id", "type": "TypeString", - "description": "Arbitrary parameters to pass in Json string format", - "optional": true + "description": "An alpha-numeric value identifying the account ID.", + "computed": true }, { - "name": "crn", + "name": "state", "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", + "description": "The current state of the instance.", "computed": true }, { - "name": "account_id", + "name": "sub_type", "type": "TypeString", - "description": "An alpha-numeric value identifying the account ID.", + "description": "The sub-type of instance, e.g. cfaas .", "computed": true }, { @@ -93748,6 +96549,12 @@ "description": "The status of the last operation requested on the instance", "computed": true }, + { + "name": "resource_keys_url", + "type": "TypeString", + "description": "The relative path to the resource keys for the instance.", + "computed": true + }, { "name": "deleted_by", "type": "TypeString", @@ -93755,69 +96562,106 @@ "computed": true }, { - "name": "scheduled_reclaim_at", + "name": "service", "type": "TypeString", - "description": "The date when the instance was scheduled for reclamation.", + "description": "The service type of the instance", "computed": true }, { - "name": "extensions", - "type": "TypeMap", - "description": "The extended metadata as a map associated with the resource instance.", + "name": "restored_at", + "type": "TypeString", + "description": "The date when the instance under reclamation was restored.", "computed": true }, { - "name": "name", + "name": "dashboard_url", "type": "TypeString", - "description": "A name for the resource instance", - "required": true + "description": "Dashboard URL to access resource.", + "computed": true }, { - "name": "guid", + "name": "target_crn", "type": "TypeString", - "description": "Guid of resource instance", + "description": "The full deployment CRN as defined in the global catalog", "computed": true }, { - "name": "dashboard_url", + "name": "type", "type": "TypeString", - "description": "Dashboard URL to access resource.", + "description": "The type of the instance, e.g. service_instance.", "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The date when the instance was created.", + "name": "locked", + "type": "TypeBool", + "description": "A boolean that dictates if the resource instance should be deleted (cleaned up) during the processing of a region instance delete call.", "computed": true }, { - "name": "resource_crn", + "name": "resource_status", "type": "TypeString", - "description": "The crn of the resource", + "description": "The status of the resource", "computed": true }, { - "name": "resource_group_name", + "name": "legacy_credentials", + "type": "TypeBool", + "description": "Use both legacy credentials and IAM for authentication", + "default_value": false, + "immutable": true, + "optional": true + }, + { + "name": "service_endpoints", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "Types of the service endpoints. Possible values are 'public', 'private', 'public-and-private'.", + "optional": true, "computed": true }, { - "name": "service", + "name": "restored_by", "type": "TypeString", - "description": "The service type of the instance", + "description": "The subject who restored the instance back from reclamation.", "computed": true }, { - "name": "plan", + "name": "resource_name", "type": "TypeString", - "description": "The plan type of the service", - "required": true + "description": "The name of the resource", + "computed": true }, { - "name": "type", + "name": "plan_history", + "type": "TypeList", + "description": "The plan history of the instance.", + "computed": true, + "elem": { + "resource_plan_id": { + "name": "resource_plan_id", + "type": "TypeString", + "computed": true + }, + "start_date": { + "name": "start_date", + "type": "TypeString", + "computed": true + } + } + }, + { + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "resource_id", "type": "TypeString", - "description": "The type of the instance, e.g. service_instance.", + "description": "The unique ID of the offering", "computed": true }, { @@ -93827,78 +96671,89 @@ "computed": true }, { - "name": "restored_by", + "name": "created_by", "type": "TypeString", - "description": "The subject who restored the instance back from reclamation.", + "description": "The subject who created the instance.", "computed": true }, { - "name": "enable_cors", - "type": "TypeBool", - "description": "Boolean value to turn CORS on and off.", - "default_value": true, - "optional": true + "name": "update_by", + "type": "TypeString", + "description": "The subject who updated the instance.", + "computed": true }, { - "name": "resource_plan_id", + "name": "resource_controller_url", "type": "TypeString", - "description": "The unique ID of the plan associated with the offering", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", "computed": true }, { - "name": "resource_aliases_url", + "name": "extensions", + "type": "TypeMap", + "description": "The extended metadata as a map associated with the resource instance.", + "computed": true + }, + { + "name": "parameters_json", "type": "TypeString", - "description": "The relative path to the resource aliases for the instance.", + "description": "Arbitrary parameters to pass in Json string format", + "optional": true + }, + { + "name": "include_data_events", + "type": "TypeBool", + "description": "Include data event types in events sent to IBM Cloud Activity Tracker with LogDNA for the IBM Cloudant instance. By default only emitted events are of \"management\" type.", + "default_value": false, + "optional": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date when the instance was created.", "computed": true }, { - "name": "deleted_at", + "name": "update_at", "type": "TypeString", - "description": "The date when the instance was deleted.", + "description": "The date when the instance was last updated.", "computed": true }, { - "name": "resource_controller_url", + "name": "resource_group_name", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "legacy_credentials", - "type": "TypeBool", - "description": "Use both legacy credentials and IAM for authentication", - "default_value": false, + "name": "environment_crn", + "type": "TypeString", + "description": "CRN of the IBM Cloudant Dedicated Hardware plan instance", "immutable": true, "optional": true }, { - "name": "cors_config", - "type": "TypeList", - "description": "Configuration for CORS.", - "optional": true, - "elem": { - "allow_credentials": { - "name": "allow_credentials", - "type": "TypeBool", - "description": "Boolean value to allow authentication credentials. If set to true, browser requests must be done by using withCredentials = true.", - "default_value": true, - "optional": true - }, - "origins": { - "name": "origins", - "type": "TypeList", - "description": "An array of strings that contain allowed origin domains. You have to specify the full URL including the protocol. It is recommended that only the HTTPS protocol is used. Subdomains count as separate domains, so you have to specify all subdomains used.", - "required": true, - "elem": { - "type": "TypeString" - } - } - }, - "max_items": 1, - "min_items": 1 + "name": "guid", + "type": "TypeString", + "description": "Guid of resource instance", + "computed": true } ], "ibm_cloudant_database": [ + { + "name": "instance_crn", + "type": "TypeString", + "description": "Cloudant Instance CRN.", + "immutable": true, + "required": true + }, + { + "name": "db", + "type": "TypeString", + "description": "Path parameter to specify the database name.", + "immutable": true, + "required": true + }, { "name": "partitioned", "type": "TypeBool", @@ -93914,40 +96769,45 @@ "immutable": true, "optional": true, "computed": true - }, - { - "name": "instance_crn", - "type": "TypeString", - "description": "Cloudant Instance CRN.", - "immutable": true, - "required": true - }, - { - "name": "db", - "type": "TypeString", - "description": "Path parameter to specify the database name.", - "immutable": true, - "required": true } ], "ibm_cm_catalog": [ { - "name": "label_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "tags", + "name": "features", "type": "TypeList", - "description": "List of tags associated with this catalog.", - "cloud_data_type": "tags", + "description": "List of features associated with this catalog.", "optional": true, "elem": { - "type": "TypeString" + "description": { + "name": "description", + "type": "TypeString", + "description": "Feature description.", + "optional": true + }, + "description_i18n": { + "name": "description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + "title": { + "name": "title", + "type": "TypeString", + "description": "Heading.", + "optional": true + }, + "title_i18n": { + "name": "title_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "optional": true, + "elem": { + "type": "TypeString" + } + } } }, { @@ -93960,19 +96820,21 @@ } }, { - "name": "crn", + "name": "rev", "type": "TypeString", - "description": "CRN associated with the catalog.", - "cloud_data_type": "crn", + "description": "Cloudant revision.", "computed": true }, { - "name": "resource_group_id", + "name": "offerings_url", "type": "TypeString", - "description": "Resource group id the catalog is owned by.", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, + "description": "URL path to offerings.", + "computed": true + }, + { + "name": "owning_account", + "type": "TypeString", + "description": "Account that owns catalog.", "computed": true }, { @@ -94050,9 +96912,16 @@ "computed": true }, { - "name": "label", + "name": "crn", "type": "TypeString", - "description": "Display Name in the requested language.", + "description": "CRN associated with the catalog.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "short_description", + "type": "TypeString", + "description": "Description in the requested language.", "optional": true }, { @@ -94068,148 +96937,20 @@ "optional": true }, { - "name": "owning_account", - "type": "TypeString", - "description": "Account that owns catalog.", - "computed": true - }, - { - "name": "kind", - "type": "TypeString", - "description": "Kind of catalog. Supported kinds are offering and vpe.", - "optional": true - }, - { - "name": "created", - "type": "TypeString", - "description": "The date-time this catalog was created.", - "computed": true - }, - { - "name": "target_account_contexts", + "name": "tags", "type": "TypeList", - "description": "List of target accounts contexts on this catalog.", - "optional": true, - "elem": { - "api_key": { - "name": "api_key", - "type": "TypeString", - "description": "API key of the target account.", - "secure": true, - "optional": true - }, - "label": { - "name": "label", - "type": "TypeString", - "description": "Label for this target account context.", - "optional": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Unique identifier/name for this target account context.", - "optional": true - }, - "project_id": { - "name": "project_id", - "type": "TypeString", - "description": "Project ID.", - "optional": true - }, - "trusted_profile": { - "name": "trusted_profile", - "type": "TypeList", - "description": "Trusted profile information.", - "optional": true, - "elem": { - "catalog_crn": { - "name": "catalog_crn", - "type": "TypeString", - "description": "CRN of this catalog.", - "computed": true - }, - "catalog_name": { - "name": "catalog_name", - "type": "TypeString", - "description": "Name of this catalog.", - "computed": true - }, - "target_service_id": { - "name": "target_service_id", - "type": "TypeString", - "description": "Target service ID.", - "optional": true, - "computed": true - }, - "trusted_profile_id": { - "name": "trusted_profile_id", - "type": "TypeString", - "description": "Trusted profile ID.", - "optional": true - } - }, - "max_items": 1 - } - } - }, - { - "name": "short_description", - "type": "TypeString", - "description": "Description in the requested language.", - "optional": true - }, - { - "name": "short_description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", + "description": "List of tags associated with this catalog.", + "cloud_data_type": "tags", "optional": true, "elem": { "type": "TypeString" } }, { - "name": "features", - "type": "TypeList", - "description": "List of features associated with this catalog.", - "optional": true, - "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "Feature description.", - "optional": true - }, - "description_i18n": { - "name": "description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - "title": { - "name": "title", - "type": "TypeString", - "description": "Heading.", - "optional": true - }, - "title_i18n": { - "name": "title_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "optional": true, - "elem": { - "type": "TypeString" - } - } - } - }, - { - "name": "disabled", - "type": "TypeBool", - "description": "Denotes whether a catalog is disabled.", - "optional": true + "name": "updated", + "type": "TypeString", + "description": "The date-time this catalog was last updated.", + "computed": true }, { "name": "syndication_settings", @@ -94377,122 +97118,46 @@ } }, { - "name": "rev", - "type": "TypeString", - "description": "Cloudant revision.", - "computed": true - }, - { - "name": "offerings_url", - "type": "TypeString", - "description": "URL path to offerings.", - "computed": true - }, - { - "name": "updated", - "type": "TypeString", - "description": "The date-time this catalog was last updated.", - "computed": true - } - ], - "ibm_cm_object": [ - { - "name": "url", - "type": "TypeString", - "description": "The url for this specific object.", - "computed": true - }, - { - "name": "catalog_name", - "type": "TypeString", - "description": "The name of the catalog.", - "computed": true - }, - { - "name": "rev", + "name": "kind", "type": "TypeString", - "description": "Cloudant revision.", - "computed": true + "description": "Kind of catalog. Supported kinds are offering and vpe.", + "optional": true }, { - "name": "object_id", + "name": "created", "type": "TypeString", - "description": "The ID of the object.", + "description": "The date-time this catalog was created.", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The programmatic name of this object.", - "required": true - }, - { - "name": "crn", + "name": "label", "type": "TypeString", - "description": "The crn for this specific object.", - "cloud_data_type": "crn", - "computed": true + "description": "Display Name in the requested language.", + "optional": true }, { - "name": "publish", - "type": "TypeList", - "description": "Publish information.", - "computed": true, + "name": "short_description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "optional": true, "elem": { - "ibm_approved": { - "name": "ibm_approved", - "type": "TypeBool", - "description": "Indicates if this offering has been approved for use by all IBMers.", - "computed": true - }, - "permit_ibm_public_publish": { - "name": "permit_ibm_public_publish", - "type": "TypeBool", - "description": "Is it permitted to request publishing to IBM or Public.", - "computed": true - }, - "portal_approval_record": { - "name": "portal_approval_record", - "type": "TypeString", - "description": "The portal's approval record ID.", - "computed": true - }, - "portal_url": { - "name": "portal_url", - "type": "TypeString", - "description": "The portal UI URL.", - "computed": true - }, - "public_approved": { - "name": "public_approved", - "type": "TypeBool", - "description": "Indicates if this offering has been approved for use by all IBM Cloud users.", - "computed": true - } + "type": "TypeString" } }, { - "name": "data", - "type": "TypeString", - "description": "Stringified map of data values for this object.", - "optional": true, - "computed": true + "name": "disabled", + "type": "TypeBool", + "description": "Denotes whether a catalog is disabled.", + "optional": true }, { - "name": "catalog_id", + "name": "resource_group_id", "type": "TypeString", - "description": "Catalog identifier.", + "description": "Resource group id the catalog is owned by.", + "cloud_data_type": "resource_group", "immutable": true, - "required": true - }, - { - "name": "short_description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", "optional": true, - "elem": { - "type": "TypeString" - } + "computed": true }, { "name": "label_i18n", @@ -94504,31 +97169,90 @@ } }, { - "name": "tags", + "name": "target_account_contexts", "type": "TypeList", - "description": "List of tags associated with this catalog.", - "cloud_data_type": "tags", + "description": "List of target accounts contexts on this catalog.", "optional": true, "elem": { - "type": "TypeString" + "api_key": { + "name": "api_key", + "type": "TypeString", + "description": "API key of the target account.", + "secure": true, + "optional": true + }, + "label": { + "name": "label", + "type": "TypeString", + "description": "Label for this target account context.", + "optional": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Unique identifier/name for this target account context.", + "optional": true + }, + "project_id": { + "name": "project_id", + "type": "TypeString", + "description": "Project ID.", + "optional": true + }, + "trusted_profile": { + "name": "trusted_profile", + "type": "TypeList", + "description": "Trusted profile information.", + "optional": true, + "elem": { + "catalog_crn": { + "name": "catalog_crn", + "type": "TypeString", + "description": "CRN of this catalog.", + "computed": true + }, + "catalog_name": { + "name": "catalog_name", + "type": "TypeString", + "description": "Name of this catalog.", + "computed": true + }, + "target_service_id": { + "name": "target_service_id", + "type": "TypeString", + "description": "Target service ID.", + "optional": true, + "computed": true + }, + "trusted_profile_id": { + "name": "trusted_profile_id", + "type": "TypeString", + "description": "Trusted profile ID.", + "optional": true + } + }, + "max_items": 1 + } } - }, + } + ], + "ibm_cm_object": [ { - "name": "created", + "name": "object_id", "type": "TypeString", - "description": "The date and time this catalog was created.", + "description": "The ID of the object.", "computed": true }, { - "name": "kind", + "name": "name", "type": "TypeString", - "description": "Kind of object. Options are \"vpe\", \"preset_configuration\", or \"proxy_source\".", + "description": "The programmatic name of this object.", "required": true }, { - "name": "parent_id", + "name": "label", "type": "TypeString", - "description": "The parent for this specific object.", + "description": "Display name in the requested language.", "optional": true }, { @@ -94537,6 +97261,32 @@ "description": "Short description in the requested language.", "optional": true }, + { + "name": "data", + "type": "TypeString", + "description": "Stringified map of data values for this object.", + "optional": true, + "computed": true + }, + { + "name": "label_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "tags", + "type": "TypeList", + "description": "List of tags associated with this catalog.", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, { "name": "state", "type": "TypeList", @@ -94576,11 +97326,102 @@ } }, { - "name": "label", + "name": "catalog_id", "type": "TypeString", - "description": "Display name in the requested language.", + "description": "Catalog identifier.", + "immutable": true, + "required": true + }, + { + "name": "url", + "type": "TypeString", + "description": "The url for this specific object.", + "computed": true + }, + { + "name": "parent_id", + "type": "TypeString", + "description": "The parent for this specific object.", "optional": true }, + { + "name": "short_description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "publish", + "type": "TypeList", + "description": "Publish information.", + "computed": true, + "elem": { + "ibm_approved": { + "name": "ibm_approved", + "type": "TypeBool", + "description": "Indicates if this offering has been approved for use by all IBMers.", + "computed": true + }, + "permit_ibm_public_publish": { + "name": "permit_ibm_public_publish", + "type": "TypeBool", + "description": "Is it permitted to request publishing to IBM or Public.", + "computed": true + }, + "portal_approval_record": { + "name": "portal_approval_record", + "type": "TypeString", + "description": "The portal's approval record ID.", + "computed": true + }, + "portal_url": { + "name": "portal_url", + "type": "TypeString", + "description": "The portal UI URL.", + "computed": true + }, + "public_approved": { + "name": "public_approved", + "type": "TypeBool", + "description": "Indicates if this offering has been approved for use by all IBM Cloud users.", + "computed": true + } + } + }, + { + "name": "catalog_name", + "type": "TypeString", + "description": "The name of the catalog.", + "computed": true + }, + { + "name": "rev", + "type": "TypeString", + "description": "Cloudant revision.", + "computed": true + }, + { + "name": "kind", + "type": "TypeString", + "description": "Kind of object. Options are \"vpe\", \"preset_configuration\", or \"proxy_source\".", + "required": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The crn for this specific object.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "created", + "type": "TypeString", + "description": "The date and time this catalog was created.", + "computed": true + }, { "name": "updated", "type": "TypeString", @@ -94590,25 +97431,276 @@ ], "ibm_cm_offering": [ { - "name": "url", + "name": "provider_info", + "type": "TypeList", + "description": "Information on the provider for this offering, or omitted if no provider information is given.", + "optional": true, + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "The id of this provider.", + "optional": true, + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The name of this provider.", + "optional": true, + "computed": true + } + }, + "max_items": 1 + }, + { + "name": "image_pull_keys", + "type": "TypeList", + "description": "Image pull keys for this offering.", + "optional": true, + "computed": true, + "elem": { + "description": { + "name": "description", + "type": "TypeString", + "description": "Key description.", + "optional": true, + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Key name.", + "optional": true, + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Key value.", + "optional": true, + "computed": true + } + } + }, + { + "name": "support", + "type": "TypeList", + "description": "Offering Support information.", + "computed": true, + "elem": { + "locations": { + "name": "locations", + "type": "TypeList", + "description": "A list of country codes indicating where support is provided.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "process": { + "name": "process", + "type": "TypeString", + "description": "Support process as provided by an ISV.", + "computed": true + }, + "process_i18n": { + "name": "process_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "support_details": { + "name": "support_details", + "type": "TypeList", + "description": "A list of support options (e.g. email, phone, slack, other).", + "computed": true, + "elem": { + "availability": { + "name": "availability", + "type": "TypeList", + "description": "Times when support is available.", + "computed": true, + "elem": { + "always_available": { + "name": "always_available", + "type": "TypeBool", + "description": "Is this support always available.", + "computed": true + }, + "times": { + "name": "times", + "type": "TypeList", + "description": "A list of support times.", + "computed": true, + "elem": { + "day": { + "name": "day", + "type": "TypeInt", + "description": "The day of the week, represented as an integer.", + "computed": true + }, + "end_time": { + "name": "end_time", + "type": "TypeString", + "description": "HOURS:MINUTES:SECONDS using 24 hour time (e.g. 8:15:00).", + "computed": true + }, + "start_time": { + "name": "start_time", + "type": "TypeString", + "description": "HOURS:MINUTES:SECONDS using 24 hour time (e.g. 8:15:00).", + "computed": true + } + } + }, + "timezone": { + "name": "timezone", + "type": "TypeString", + "description": "Timezone (e.g. America/New_York).", + "computed": true + } + } + }, + "contact": { + "name": "contact", + "type": "TypeString", + "description": "Contact for the current support detail.", + "computed": true + }, + "response_wait_time": { + "name": "response_wait_time", + "type": "TypeList", + "description": "Time descriptor.", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "Valid values are hour or day.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "Amount of time to wait in unit 'type'.", + "computed": true + } + } + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of the current support detail.", + "computed": true + } + } + }, + "support_escalation": { + "name": "support_escalation", + "type": "TypeList", + "description": "Support escalation policy.", + "computed": true, + "elem": { + "contact": { + "name": "contact", + "type": "TypeString", + "description": "Escalation contact.", + "computed": true + }, + "escalation_wait_time": { + "name": "escalation_wait_time", + "type": "TypeList", + "description": "Time descriptor.", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "Valid values are hour or day.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "Amount of time to wait in unit 'type'.", + "computed": true + } + } + }, + "response_wait_time": { + "name": "response_wait_time", + "type": "TypeList", + "description": "Time descriptor.", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "Valid values are hour or day.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "Amount of time to wait in unit 'type'.", + "computed": true + } + } + } + } + }, + "support_type": { + "name": "support_type", + "type": "TypeString", + "description": "Support type for this product.", + "computed": true + }, + "url": { + "name": "url", + "type": "TypeString", + "description": "URL to be displayed in the Consumption UI for getting support on this offering.", + "computed": true + } + } + }, + { + "name": "short_description", "type": "TypeString", - "description": "The url for this specific offering.", + "description": "Short description in the requested language.", + "optional": true, "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The programmatic name of this offering.", + "name": "publish_approved", + "type": "TypeBool", + "description": "Offering has been approved to publish to permitted to IBM or Public Catalog.", + "computed": true + }, + { + "name": "share_with_ibm", + "type": "TypeBool", + "description": "Denotes IBM employee availability of an Offering - if share_enabled is true.", "optional": true, "computed": true }, { - "name": "offering_docs_url", + "name": "portal_ui_url", "type": "TypeString", - "description": "URL for an additional docs with this offering.", + "description": "The portal UI URL.", "optional": true, "computed": true }, + { + "name": "rev", + "type": "TypeString", + "description": "Cloudant revision.", + "computed": true + }, { "name": "offering_support_url", "type": "TypeString", @@ -94617,6 +97709,196 @@ "computed": true, "deprecated": "This argument is deprecated" }, + { + "name": "features", + "type": "TypeList", + "description": "list of features associated with this offering.", + "optional": true, + "computed": true, + "elem": { + "description": { + "name": "description", + "type": "TypeString", + "description": "Feature description.", + "optional": true, + "computed": true + }, + "description_i18n": { + "name": "description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "title": { + "name": "title", + "type": "TypeString", + "description": "Heading.", + "optional": true, + "computed": true + }, + "title_i18n": { + "name": "title_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + } + } + }, + { + "name": "repo_info", + "type": "TypeList", + "description": "Repository info for offerings.", + "computed": true, + "elem": { + "token": { + "name": "token", + "type": "TypeString", + "description": "Token for private repos.", + "optional": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Public or enterprise GitHub.", + "optional": true + } + } + }, + { + "name": "deprecate_pending", + "type": "TypeList", + "description": "Deprecation information for an Offering.", + "computed": true, + "elem": { + "deprecate_date": { + "name": "deprecate_date", + "type": "TypeString", + "description": "Date of deprecation.", + "computed": true + }, + "deprecate_state": { + "name": "deprecate_state", + "type": "TypeString", + "description": "Deprecation state.", + "computed": true + }, + "description": { + "name": "description", + "type": "TypeString", + "computed": true + } + } + }, + { + "name": "disclaimer", + "type": "TypeString", + "description": "A disclaimer for this offering.", + "optional": true, + "computed": true + }, + { + "name": "media", + "type": "TypeList", + "description": "A list of media items related to this offering.", + "optional": true, + "computed": true, + "elem": { + "api_url": { + "name": "api_url", + "type": "TypeString", + "description": "CM API specific URL of the specified media item.", + "optional": true, + "computed": true + }, + "caption": { + "name": "caption", + "type": "TypeString", + "description": "Caption for this media item.", + "optional": true, + "computed": true + }, + "caption_i18n": { + "name": "caption_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "thumbnail_url": { + "name": "thumbnail_url", + "type": "TypeString", + "description": "Thumbnail URL for this media item.", + "optional": true, + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of this media item.", + "optional": true, + "computed": true + }, + "url": { + "name": "url", + "type": "TypeString", + "description": "URL of the specified media item.", + "optional": true, + "computed": true + }, + "url_proxy": { + "name": "url_proxy", + "type": "TypeList", + "description": "Offering URL proxy information.", + "optional": true, + "computed": true, + "elem": { + "sha": { + "name": "sha", + "type": "TypeString", + "description": "SHA256 fingerprint of image.", + "optional": true, + "computed": true + }, + "url": { + "name": "url", + "type": "TypeString", + "description": "URL of the specified media item being proxied.", + "optional": true, + "computed": true + } + }, + "max_items": 1 + } + } + }, + { + "name": "label_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "offering_docs_url", + "type": "TypeString", + "description": "URL for an additional docs with this offering.", + "optional": true, + "computed": true + }, { "name": "long_description_i18n", "type": "TypeMap", @@ -94627,6 +97909,14 @@ "type": "TypeString" } }, + { + "name": "ibm_publish_approved", + "type": "TypeBool", + "description": "Indicates if this offering has been approved for use by all IBMers.", + "optional": true, + "computed": true, + "deprecated": "This argument is deprecated" + }, { "name": "publish_public_crn", "type": "TypeString", @@ -94635,13 +97925,33 @@ "computed": true }, { - "name": "rev", + "name": "portal_approval_record", "type": "TypeString", - "description": "Cloudant revision.", + "description": "The portal's approval record ID.", + "optional": true, "computed": true }, { - "name": "label_i18n", + "name": "offering_identifier", + "type": "TypeString", + "description": "Computed Offering ID.", + "computed": true + }, + { + "name": "offering_id", + "type": "TypeString", + "description": "Offering identifier. Provide this when an offering already exists and you wish to use it as a terraform resource.", + "immutable": true, + "optional": true + }, + { + "name": "updated", + "type": "TypeString", + "description": "The date and time this catalog was last updated.", + "computed": true + }, + { + "name": "short_description_i18n", "type": "TypeMap", "description": "A map of translated strings, by language code.", "optional": true, @@ -94651,21 +97961,293 @@ } }, { - "name": "updated", + "name": "public_publish_approved", + "type": "TypeBool", + "description": "Indicates if this offering has been approved for use by all IBM Cloud users.", + "optional": true, + "computed": true, + "deprecated": "This argument is deprecated" + }, + { + "name": "catalog_id", "type": "TypeString", - "description": "The date and time this catalog was last updated.", + "description": "Catalog identifier.", + "immutable": true, + "required": true + }, + { + "name": "keywords", + "type": "TypeList", + "description": "List of keywords associated with offering, typically used to search for it.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "permit_request_ibm_public_publish", + "type": "TypeBool", + "description": "Is it permitted to request publishing to IBM or Public.", + "optional": true, + "computed": true, + "deprecated": "This argument is deprecated" + }, + { + "name": "product_kind", + "type": "TypeString", + "description": "The product kind. Valid values are module, solution, or empty string.", + "optional": true, "computed": true }, { - "name": "short_description_i18n", + "name": "public_original_crn", + "type": "TypeString", + "description": "The original offering CRN that this publish entry came from.", + "optional": true, + "computed": true + }, + { + "name": "hidden", + "type": "TypeBool", + "description": "Determine if this offering should be displayed in the Consumption UI.", + "optional": true, + "computed": true + }, + { + "name": "badges", + "type": "TypeList", + "description": "A list of badges for this offering.", + "computed": true, + "elem": { + "authority": { + "name": "authority", + "type": "TypeString", + "description": "Authority for the current badge.", + "computed": true + }, + "constraints": { + "name": "constraints", + "type": "TypeList", + "description": "An optional set of constraints indicating which versions in an Offering have this particular badge.", + "computed": true, + "elem": { + "rule": { + "name": "rule", + "type": "TypeString", + "description": "Rule for the current constraint.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of the current constraint.", + "computed": true + } + } + }, + "description": { + "name": "description", + "type": "TypeString", + "description": "Description of the current badge.", + "computed": true + }, + "description_i18n": { + "name": "description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "icon": { + "name": "icon", + "type": "TypeString", + "description": "Icon for the current badge.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "ID of the current badge.", + "computed": true + }, + "label": { + "name": "label", + "type": "TypeString", + "description": "Display name for the current badge.", + "computed": true + }, + "label_i18n": { + "name": "label_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "learn_more_links": { + "name": "learn_more_links", + "type": "TypeList", + "description": "Learn more links for a badge.", + "computed": true, + "elem": { + "first_party": { + "name": "first_party", + "type": "TypeString", + "description": "First party link.", + "computed": true + }, + "third_party": { + "name": "third_party", + "type": "TypeString", + "description": "Third party link.", + "computed": true + } + } + }, + "tag": { + "name": "tag", + "type": "TypeString", + "description": "Tag for the current badge.", + "computed": true + } + } + }, + { + "name": "offering_icon_url", + "type": "TypeString", + "description": "URL for an icon associated with this offering.", + "optional": true, + "computed": true + }, + { + "name": "tags", + "type": "TypeList", + "description": "List of tags associated with this catalog.", + "cloud_data_type": "tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "deprecate", + "type": "TypeBool", + "description": "Deprecate this offering.", + "optional": true + }, + { + "name": "share_enabled", + "type": "TypeBool", + "description": "Denotes sharing including access list availability of an Offering is enabled.", + "optional": true, + "computed": true + }, + { + "name": "long_description", + "type": "TypeString", + "description": "Long description in the requested language.", + "optional": true, + "computed": true + }, + { + "name": "pc_managed", + "type": "TypeBool", + "description": "Offering is managed by Partner Center.", + "computed": true + }, + { + "name": "share_with_all", + "type": "TypeBool", + "description": "Denotes public availability of an Offering - if share_enabled is true.", + "optional": true, + "computed": true + }, + { + "name": "url", + "type": "TypeString", + "description": "The url for this specific offering.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The crn for this specific offering.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The programmatic name of this offering.", + "optional": true, + "computed": true + }, + { + "name": "created", + "type": "TypeString", + "description": "The date and time this catalog was created.", + "computed": true + }, + { + "name": "catalog_name", + "type": "TypeString", + "description": "The name of the catalog.", + "computed": true + }, + { + "name": "metadata", "type": "TypeMap", - "description": "A map of translated strings, by language code.", + "description": "Map of metadata values for this offering.", "optional": true, "computed": true, "elem": { "type": "TypeString" } }, + { + "name": "label", + "type": "TypeString", + "description": "Display Name in the requested language.", + "optional": true, + "computed": true + }, + { + "name": "rating", + "type": "TypeList", + "description": "Repository info for offerings.", + "computed": true, + "elem": { + "four_star_count": { + "name": "four_star_count", + "type": "TypeInt", + "description": "Four start rating.", + "computed": true + }, + "one_star_count": { + "name": "one_star_count", + "type": "TypeInt", + "description": "One start rating.", + "computed": true + }, + "three_star_count": { + "name": "three_star_count", + "type": "TypeInt", + "description": "Three start rating.", + "computed": true + }, + "two_star_count": { + "name": "two_star_count", + "type": "TypeInt", + "description": "Two start rating.", + "computed": true + } + } + }, { "name": "kinds", "type": "TypeList", @@ -96750,624 +100332,6 @@ } } }, - { - "name": "portal_approval_record", - "type": "TypeString", - "description": "The portal's approval record ID.", - "optional": true, - "computed": true - }, - { - "name": "hidden", - "type": "TypeBool", - "description": "Determine if this offering should be displayed in the Consumption UI.", - "optional": true, - "computed": true - }, - { - "name": "share_with_all", - "type": "TypeBool", - "description": "Denotes public availability of an Offering - if share_enabled is true.", - "optional": true, - "computed": true - }, - { - "name": "ibm_publish_approved", - "type": "TypeBool", - "description": "Indicates if this offering has been approved for use by all IBMers.", - "optional": true, - "computed": true, - "deprecated": "This argument is deprecated" - }, - { - "name": "label", - "type": "TypeString", - "description": "Display Name in the requested language.", - "optional": true, - "computed": true - }, - { - "name": "tags", - "type": "TypeList", - "description": "List of tags associated with this catalog.", - "cloud_data_type": "tags", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "keywords", - "type": "TypeList", - "description": "List of keywords associated with offering, typically used to search for it.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "deprecate", - "type": "TypeBool", - "description": "Deprecate this offering.", - "optional": true - }, - { - "name": "short_description", - "type": "TypeString", - "description": "Short description in the requested language.", - "optional": true, - "computed": true - }, - { - "name": "pc_managed", - "type": "TypeBool", - "description": "Offering is managed by Partner Center.", - "computed": true - }, - { - "name": "public_original_crn", - "type": "TypeString", - "description": "The original offering CRN that this publish entry came from.", - "optional": true, - "computed": true - }, - { - "name": "created", - "type": "TypeString", - "description": "The date and time this catalog was created.", - "computed": true - }, - { - "name": "features", - "type": "TypeList", - "description": "list of features associated with this offering.", - "optional": true, - "computed": true, - "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "Feature description.", - "optional": true, - "computed": true - }, - "description_i18n": { - "name": "description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "title": { - "name": "title", - "type": "TypeString", - "description": "Heading.", - "optional": true, - "computed": true - }, - "title_i18n": { - "name": "title_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - } - } - }, - { - "name": "portal_ui_url", - "type": "TypeString", - "description": "The portal UI URL.", - "optional": true, - "computed": true - }, - { - "name": "publish_approved", - "type": "TypeBool", - "description": "Offering has been approved to publish to permitted to IBM or Public Catalog.", - "computed": true - }, - { - "name": "share_enabled", - "type": "TypeBool", - "description": "Denotes sharing including access list availability of an Offering is enabled.", - "optional": true, - "computed": true - }, - { - "name": "permit_request_ibm_public_publish", - "type": "TypeBool", - "description": "Is it permitted to request publishing to IBM or Public.", - "optional": true, - "computed": true, - "deprecated": "This argument is deprecated" - }, - { - "name": "catalog_name", - "type": "TypeString", - "description": "The name of the catalog.", - "computed": true - }, - { - "name": "image_pull_keys", - "type": "TypeList", - "description": "Image pull keys for this offering.", - "optional": true, - "computed": true, - "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "Key description.", - "optional": true, - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Key name.", - "optional": true, - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Key value.", - "optional": true, - "computed": true - } - } - }, - { - "name": "offering_identifier", - "type": "TypeString", - "description": "Computed Offering ID.", - "computed": true - }, - { - "name": "badges", - "type": "TypeList", - "description": "A list of badges for this offering.", - "computed": true, - "elem": { - "authority": { - "name": "authority", - "type": "TypeString", - "description": "Authority for the current badge.", - "computed": true - }, - "constraints": { - "name": "constraints", - "type": "TypeList", - "description": "An optional set of constraints indicating which versions in an Offering have this particular badge.", - "computed": true, - "elem": { - "rule": { - "name": "rule", - "type": "TypeString", - "description": "Rule for the current constraint.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of the current constraint.", - "computed": true - } - } - }, - "description": { - "name": "description", - "type": "TypeString", - "description": "Description of the current badge.", - "computed": true - }, - "description_i18n": { - "name": "description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "icon": { - "name": "icon", - "type": "TypeString", - "description": "Icon for the current badge.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "ID of the current badge.", - "computed": true - }, - "label": { - "name": "label", - "type": "TypeString", - "description": "Display name for the current badge.", - "computed": true - }, - "label_i18n": { - "name": "label_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "learn_more_links": { - "name": "learn_more_links", - "type": "TypeList", - "description": "Learn more links for a badge.", - "computed": true, - "elem": { - "first_party": { - "name": "first_party", - "type": "TypeString", - "description": "First party link.", - "computed": true - }, - "third_party": { - "name": "third_party", - "type": "TypeString", - "description": "Third party link.", - "computed": true - } - } - }, - "tag": { - "name": "tag", - "type": "TypeString", - "description": "Tag for the current badge.", - "computed": true - } - } - }, - { - "name": "rating", - "type": "TypeList", - "description": "Repository info for offerings.", - "computed": true, - "elem": { - "four_star_count": { - "name": "four_star_count", - "type": "TypeInt", - "description": "Four start rating.", - "computed": true - }, - "one_star_count": { - "name": "one_star_count", - "type": "TypeInt", - "description": "One start rating.", - "computed": true - }, - "three_star_count": { - "name": "three_star_count", - "type": "TypeInt", - "description": "Three start rating.", - "computed": true - }, - "two_star_count": { - "name": "two_star_count", - "type": "TypeInt", - "description": "Two start rating.", - "computed": true - } - } - }, - { - "name": "share_with_ibm", - "type": "TypeBool", - "description": "Denotes IBM employee availability of an Offering - if share_enabled is true.", - "optional": true, - "computed": true - }, - { - "name": "public_publish_approved", - "type": "TypeBool", - "description": "Indicates if this offering has been approved for use by all IBM Cloud users.", - "optional": true, - "computed": true, - "deprecated": "This argument is deprecated" - }, - { - "name": "provider_info", - "type": "TypeList", - "description": "Information on the provider for this offering, or omitted if no provider information is given.", - "optional": true, - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "The id of this provider.", - "optional": true, - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The name of this provider.", - "optional": true, - "computed": true - } - }, - "max_items": 1 - }, - { - "name": "support", - "type": "TypeList", - "description": "Offering Support information.", - "computed": true, - "elem": { - "locations": { - "name": "locations", - "type": "TypeList", - "description": "A list of country codes indicating where support is provided.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "process": { - "name": "process", - "type": "TypeString", - "description": "Support process as provided by an ISV.", - "computed": true - }, - "process_i18n": { - "name": "process_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "support_details": { - "name": "support_details", - "type": "TypeList", - "description": "A list of support options (e.g. email, phone, slack, other).", - "computed": true, - "elem": { - "availability": { - "name": "availability", - "type": "TypeList", - "description": "Times when support is available.", - "computed": true, - "elem": { - "always_available": { - "name": "always_available", - "type": "TypeBool", - "description": "Is this support always available.", - "computed": true - }, - "times": { - "name": "times", - "type": "TypeList", - "description": "A list of support times.", - "computed": true, - "elem": { - "day": { - "name": "day", - "type": "TypeInt", - "description": "The day of the week, represented as an integer.", - "computed": true - }, - "end_time": { - "name": "end_time", - "type": "TypeString", - "description": "HOURS:MINUTES:SECONDS using 24 hour time (e.g. 8:15:00).", - "computed": true - }, - "start_time": { - "name": "start_time", - "type": "TypeString", - "description": "HOURS:MINUTES:SECONDS using 24 hour time (e.g. 8:15:00).", - "computed": true - } - } - }, - "timezone": { - "name": "timezone", - "type": "TypeString", - "description": "Timezone (e.g. America/New_York).", - "computed": true - } - } - }, - "contact": { - "name": "contact", - "type": "TypeString", - "description": "Contact for the current support detail.", - "computed": true - }, - "response_wait_time": { - "name": "response_wait_time", - "type": "TypeList", - "description": "Time descriptor.", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "Valid values are hour or day.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", - "description": "Amount of time to wait in unit 'type'.", - "computed": true - } - } - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of the current support detail.", - "computed": true - } - } - }, - "support_escalation": { - "name": "support_escalation", - "type": "TypeList", - "description": "Support escalation policy.", - "computed": true, - "elem": { - "contact": { - "name": "contact", - "type": "TypeString", - "description": "Escalation contact.", - "computed": true - }, - "escalation_wait_time": { - "name": "escalation_wait_time", - "type": "TypeList", - "description": "Time descriptor.", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "Valid values are hour or day.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", - "description": "Amount of time to wait in unit 'type'.", - "computed": true - } - } - }, - "response_wait_time": { - "name": "response_wait_time", - "type": "TypeList", - "description": "Time descriptor.", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "Valid values are hour or day.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", - "description": "Amount of time to wait in unit 'type'.", - "computed": true - } - } - } - } - }, - "support_type": { - "name": "support_type", - "type": "TypeString", - "description": "Support type for this product.", - "computed": true - }, - "url": { - "name": "url", - "type": "TypeString", - "description": "URL to be displayed in the Consumption UI for getting support on this offering.", - "computed": true - } - } - }, - { - "name": "product_kind", - "type": "TypeString", - "description": "The product kind. Valid values are module, solution, or empty string.", - "optional": true, - "computed": true - }, - { - "name": "metadata", - "type": "TypeMap", - "description": "Map of metadata values for this offering.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "disclaimer", - "type": "TypeString", - "description": "A disclaimer for this offering.", - "optional": true, - "computed": true - }, - { - "name": "catalog_id", - "type": "TypeString", - "description": "Catalog identifier.", - "immutable": true, - "required": true - }, - { - "name": "offering_id", - "type": "TypeString", - "description": "Offering identifier. Provide this when an offering already exists and you wish to use it as a terraform resource.", - "immutable": true, - "optional": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The crn for this specific offering.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "offering_icon_url", - "type": "TypeString", - "description": "URL for an icon associated with this offering.", - "optional": true, - "computed": true - }, - { - "name": "long_description", - "type": "TypeString", - "description": "Long description in the requested language.", - "optional": true, - "computed": true - }, { "name": "share_with_access_list", "type": "TypeList", @@ -97376,129 +100340,6 @@ "elem": { "type": "TypeString" } - }, - { - "name": "repo_info", - "type": "TypeList", - "description": "Repository info for offerings.", - "computed": true, - "elem": { - "token": { - "name": "token", - "type": "TypeString", - "description": "Token for private repos.", - "optional": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Public or enterprise GitHub.", - "optional": true - } - } - }, - { - "name": "media", - "type": "TypeList", - "description": "A list of media items related to this offering.", - "optional": true, - "computed": true, - "elem": { - "api_url": { - "name": "api_url", - "type": "TypeString", - "description": "CM API specific URL of the specified media item.", - "optional": true, - "computed": true - }, - "caption": { - "name": "caption", - "type": "TypeString", - "description": "Caption for this media item.", - "optional": true, - "computed": true - }, - "caption_i18n": { - "name": "caption_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "thumbnail_url": { - "name": "thumbnail_url", - "type": "TypeString", - "description": "Thumbnail URL for this media item.", - "optional": true, - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of this media item.", - "optional": true, - "computed": true - }, - "url": { - "name": "url", - "type": "TypeString", - "description": "URL of the specified media item.", - "optional": true, - "computed": true - }, - "url_proxy": { - "name": "url_proxy", - "type": "TypeList", - "description": "Offering URL proxy information.", - "optional": true, - "computed": true, - "elem": { - "sha": { - "name": "sha", - "type": "TypeString", - "description": "SHA256 fingerprint of image.", - "optional": true, - "computed": true - }, - "url": { - "name": "url", - "type": "TypeString", - "description": "URL of the specified media item being proxied.", - "optional": true, - "computed": true - } - }, - "max_items": 1 - } - } - }, - { - "name": "deprecate_pending", - "type": "TypeList", - "description": "Deprecation information for an Offering.", - "computed": true, - "elem": { - "deprecate_date": { - "name": "deprecate_date", - "type": "TypeString", - "description": "Date of deprecation.", - "computed": true - }, - "deprecate_state": { - "name": "deprecate_state", - "type": "TypeString", - "description": "Deprecation state.", - "computed": true - }, - "description": { - "name": "description", - "type": "TypeString", - "computed": true - } - } } ], "ibm_cm_offering_instance": [ @@ -97509,9 +100350,9 @@ "required": true }, { - "name": "cluster_region", + "name": "offering_id", "type": "TypeString", - "description": "Cluster region (e.g., us-south).", + "description": "Offering ID this instance was created from.", "required": true }, { @@ -97527,11 +100368,10 @@ "optional": true }, { - "name": "wait_until_successful", - "type": "TypeBool", - "description": "Whether to wait until the offering instance successfully provisions, or to return when accepted", - "default_value": true, - "optional": true + "name": "url", + "type": "TypeString", + "description": "url reference to this object.", + "computed": true }, { "name": "label", @@ -97555,10 +100395,11 @@ } }, { - "name": "offering_id", + "name": "resource_group_id", "type": "TypeString", - "description": "Offering ID this instance was created from.", - "required": true + "description": "id of the resource group", + "cloud_data_type": "resource_group", + "optional": true }, { "name": "kind_format", @@ -97566,6 +100407,26 @@ "description": "the format this instance has (helm, operator, ova...).", "required": true }, + { + "name": "cluster_region", + "type": "TypeString", + "description": "Cluster region (e.g., us-south).", + "required": true + }, + { + "name": "wait_until_successful", + "type": "TypeBool", + "description": "Whether to wait until the offering instance successfully provisions, or to return when accepted", + "default_value": true, + "optional": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "platform CRN for this instance.", + "cloud_data_type": "crn", + "computed": true + }, { "name": "version", "type": "TypeString", @@ -97583,29 +100444,21 @@ "type": "TypeString", "description": "id of the schematics workspace, for offerings installed through schematics", "computed": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "id of the resource group", - "cloud_data_type": "resource_group", - "optional": true - }, + } + ], + "ibm_cm_validation": [ { - "name": "url", + "name": "validated", "type": "TypeString", - "description": "url reference to this object.", + "description": "Data and time of last successful validation.", "computed": true }, { - "name": "crn", + "name": "state", "type": "TypeString", - "description": "platform CRN for this instance.", - "cloud_data_type": "crn", + "description": "Current validation state - \u003cempty\u003e, in_progress, valid, invalid, expired.", "computed": true - } - ], - "ibm_cm_validation": [ + }, { "name": "last_operation", "type": "TypeString", @@ -97619,10 +100472,9 @@ "computed": true }, { - "name": "revalidate_if_validated", + "name": "mark_version_consumable", "type": "TypeBool", - "description": "If the version should be revalidated if it is already validated.", - "immutable": true, + "description": "If the version should be marked as consumable or \"ready to share\".", "optional": true }, { @@ -97650,6 +100502,48 @@ "type": "TypeString" } }, + { + "name": "x_auth_refresh_token", + "type": "TypeString", + "description": "Authentication token used to submit validation job.", + "secure": true, + "optional": true, + "deprecated": "This argument is deprecated because it is now retrieved automatically." + }, + { + "name": "revalidate_if_validated", + "type": "TypeBool", + "description": "If the version should be revalidated if it is already validated.", + "immutable": true, + "optional": true + }, + { + "name": "environment_variables", + "type": "TypeList", + "description": "Environment variables to include in the schematics workspace.", + "immutable": true, + "optional": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the environment variable.", + "optional": true + }, + "secure": { + "name": "secure", + "type": "TypeBool", + "description": "If the environment variablel should be secure.", + "optional": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Value of the environment variable.", + "optional": true + } + } + }, { "name": "schematics", "type": "TypeList", @@ -97700,71 +100594,47 @@ "max_items": 1 }, { - "name": "state", + "name": "requested", "type": "TypeString", - "description": "Current validation state - \u003cempty\u003e, in_progress, valid, invalid, expired.", + "description": "Data and time of last validation request.", "computed": true - }, + } + ], + "ibm_cm_version": [ { - "name": "mark_version_consumable", + "name": "single_instance", "type": "TypeBool", - "description": "If the version should be marked as consumable or \"ready to share\".", - "optional": true + "description": "Denotes if single instance can be deployed to a given cluster.", + "computed": true }, { - "name": "environment_variables", - "type": "TypeList", - "description": "Environment variables to include in the schematics workspace.", - "immutable": true, - "optional": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the environment variable.", - "optional": true - }, - "secure": { - "name": "secure", - "type": "TypeBool", - "description": "If the environment variablel should be secure.", - "optional": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Value of the environment variable.", - "optional": true - } - } + "name": "terraform_version", + "type": "TypeString", + "description": "Provide a terraform version for this offering version to use.", + "optional": true }, { - "name": "validated", + "name": "x_auth_token", "type": "TypeString", - "description": "Data and time of last successful validation.", - "computed": true + "description": "Authentication token used to access the specified zip file.", + "immutable": true, + "optional": true }, { - "name": "requested", + "name": "long_description", "type": "TypeString", - "description": "Data and time of last validation request.", + "description": "Long description for version.", "computed": true }, { - "name": "x_auth_refresh_token", - "type": "TypeString", - "description": "Authentication token used to submit validation job.", - "secure": true, + "name": "target_kinds", + "type": "TypeList", + "description": "Deployment target of the content being onboarded. Current valid values are iks, roks, vcenter, power-iaas, terraform, and vpc-x86. Required for virtual server image for VPC.", + "immutable": true, "optional": true, - "deprecated": "This argument is deprecated because it is now retrieved automatically." - } - ], - "ibm_cm_version": [ - { - "name": "import_sha", - "type": "TypeString", - "description": "SHA256 fingerprint of the image file. Required for virtual server image for VPC.", - "optional": true + "elem": { + "type": "TypeString" + } }, { "name": "created", @@ -97773,100 +100643,335 @@ "computed": true }, { - "name": "package_version", - "type": "TypeString", - "description": "Version of the package used to create this version.", - "computed": true - }, - { - "name": "solution_info", + "name": "configuration", "type": "TypeList", - "description": "Version Solution Information. Only supported for Product kind Solution.", + "description": "List of user solicited overrides.", "optional": true, "computed": true, "elem": { - "architecture_diagrams": { - "name": "architecture_diagrams", + "custom_config": { + "name": "custom_config", "type": "TypeList", - "description": "Architecture diagrams for this solution.", + "description": "Render type.", "optional": true, + "computed": true, "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "Description of this diagram.", - "optional": true - }, - "description_i18n": { - "name": "description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - "diagram": { - "name": "diagram", + "associations": { + "name": "associations", "type": "TypeList", - "description": "Offering Media information.", + "description": "List of parameters that are associated with this configuration.", "optional": true, + "computed": true, "elem": { - "api_url": { - "name": "api_url", - "type": "TypeString", - "description": "CM API specific URL of the specified media item.", - "optional": true - }, - "caption": { - "name": "caption", - "type": "TypeString", - "description": "Caption for this media item.", - "optional": true - }, - "caption_i18n": { - "name": "caption_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - "thumbnail_url": { - "name": "thumbnail_url", - "type": "TypeString", - "description": "Thumbnail URL for this media item.", - "optional": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of this media item.", - "optional": true - }, - "url": { - "name": "url", - "type": "TypeString", - "description": "URL of the specified media item.", - "optional": true - }, - "url_proxy": { - "name": "url_proxy", + "parameters": { + "name": "parameters", "type": "TypeList", - "description": "Offering URL proxy information.", + "description": "Parameters for this association.", "optional": true, + "computed": true, "elem": { - "sha": { - "name": "sha", + "name": { + "name": "name", "type": "TypeString", - "description": "SHA256 fingerprint of image.", - "optional": true + "description": "Name of this parameter.", + "optional": true, + "computed": true }, - "url": { - "name": "url", - "type": "TypeString", - "description": "URL of the specified media item being proxied.", + "options_refresh": { + "name": "options_refresh", + "type": "TypeBool", + "description": "Refresh options.", + "optional": true, + "computed": true + } + } + } + }, + "max_items": 1 + }, + "config_constraints": { + "name": "config_constraints", + "type": "TypeMap", + "description": "Map of constraint parameters that will be passed to the custom widget.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "grouping": { + "name": "grouping", + "type": "TypeString", + "description": "Determines where this configuration type is rendered (3 sections today - Target, Resource, and Deployment).", + "optional": true, + "computed": true + }, + "grouping_index": { + "name": "grouping_index", + "type": "TypeInt", + "description": "Determines the order that this configuration item shows in that particular grouping.", + "optional": true, + "computed": true + }, + "original_grouping": { + "name": "original_grouping", + "type": "TypeString", + "description": "Original grouping type for this configuration (3 types - Target, Resource, and Deployment).", + "optional": true, + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "ID of the widget type.", + "optional": true, + "computed": true + } + }, + "max_items": 1 + }, + "default_value": { + "name": "default_value", + "type": "TypeString", + "description": "The default value as a JSON encoded string. To use a secret when the type is password, specify a JSON encoded value of $ref:#/components/schemas/SecretInstance, prefixed with `cmsm_v1:`.", + "optional": true, + "computed": true + }, + "description": { + "name": "description", + "type": "TypeString", + "description": "Key description.", + "optional": true, + "computed": true + }, + "display_name": { + "name": "display_name", + "type": "TypeString", + "description": "Display name for configuration type.", + "optional": true, + "computed": true + }, + "hidden": { + "name": "hidden", + "type": "TypeBool", + "description": "Hide values.", + "optional": true, + "computed": true + }, + "key": { + "name": "key", + "type": "TypeString", + "description": "Configuration key.", + "optional": true, + "computed": true + }, + "options": { + "name": "options", + "type": "TypeList", + "description": "List of options of type.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeMap" + } + }, + "required": { + "name": "required", + "type": "TypeBool", + "description": "Is key required to install.", + "optional": true, + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Value type (string, boolean, int).", + "optional": true, + "computed": true + }, + "type_metadata": { + "name": "type_metadata", + "type": "TypeString", + "description": "The original type, as found in the source being onboarded.", + "optional": true, + "computed": true + }, + "value_constraint": { + "name": "value_constraint", + "type": "TypeString", + "description": "Constraint associated with value, e.g., for string type - regx:[a-z].", + "optional": true, + "computed": true + } + } + }, + { + "name": "required_resources", + "type": "TypeList", + "description": "Resource requirments for installation.", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of requirement.", + "optional": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "mem, disk, cores, and nodes can be parsed as an int. targetVersion will be a semver range value.", + "optional": true + } + } + }, + { + "name": "deprecate_pending", + "type": "TypeList", + "description": "Deprecation information for a Version.", + "computed": true, + "elem": { + "deprecate_date": { + "name": "deprecate_date", + "type": "TypeString", + "description": "Date of deprecation.", + "computed": true + }, + "deprecate_state": { + "name": "deprecate_state", + "type": "TypeString", + "description": "Deprecation state.", + "computed": true + }, + "description": { + "name": "description", + "type": "TypeString", + "computed": true + } + } + }, + { + "name": "content", + "type": "TypeString", + "description": "Byte array representing the content to be imported. Only supported for OVA images at this time.", + "immutable": true, + "optional": true + }, + { + "name": "install_kind", + "type": "TypeString", + "description": "Install type. Example: instance. Required for virtual server image for VPC.", + "immutable": true, + "optional": true + }, + { + "name": "version", + "type": "TypeString", + "description": "Semantic version of the software being onboarded. Required for virtual server image for VPC.", + "computed": true + }, + { + "name": "is_vsi", + "type": "TypeBool", + "description": "Indicates that the current terraform template is used to install a virtual server image.", + "immutable": true, + "optional": true + }, + { + "name": "tgz_url", + "type": "TypeString", + "description": "File used to on-board this version.", + "computed": true + }, + { + "name": "solution_info", + "type": "TypeList", + "description": "Version Solution Information. Only supported for Product kind Solution.", + "optional": true, + "computed": true, + "elem": { + "architecture_diagrams": { + "name": "architecture_diagrams", + "type": "TypeList", + "description": "Architecture diagrams for this solution.", + "optional": true, + "elem": { + "description": { + "name": "description", + "type": "TypeString", + "description": "Description of this diagram.", + "optional": true + }, + "description_i18n": { + "name": "description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + "diagram": { + "name": "diagram", + "type": "TypeList", + "description": "Offering Media information.", + "optional": true, + "elem": { + "api_url": { + "name": "api_url", + "type": "TypeString", + "description": "CM API specific URL of the specified media item.", + "optional": true + }, + "caption": { + "name": "caption", + "type": "TypeString", + "description": "Caption for this media item.", + "optional": true + }, + "caption_i18n": { + "name": "caption_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + "thumbnail_url": { + "name": "thumbnail_url", + "type": "TypeString", + "description": "Thumbnail URL for this media item.", + "optional": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of this media item.", + "optional": true + }, + "url": { + "name": "url", + "type": "TypeString", + "description": "URL of the specified media item.", + "optional": true + }, + "url_proxy": { + "name": "url_proxy", + "type": "TypeList", + "description": "Offering URL proxy information.", + "optional": true, + "elem": { + "sha": { + "name": "sha", + "type": "TypeString", + "description": "SHA256 fingerprint of image.", + "optional": true + }, + "url": { + "name": "url", + "type": "TypeString", + "description": "URL of the specified media item being proxied.", "optional": true } }, @@ -98471,588 +101576,6 @@ }, "max_items": 1 }, - { - "name": "version", - "type": "TypeString", - "description": "Semantic version of the software being onboarded. Required for virtual server image for VPC.", - "computed": true - }, - { - "name": "import_metadata", - "type": "TypeList", - "description": "Generic data to be included with content being onboarded. Required for virtual server image for VPC.", - "optional": true, - "elem": { - "file": { - "name": "file", - "type": "TypeList", - "description": "Details for the stored image file. Required for virtual server image for VPC.", - "optional": true, - "elem": { - "size": { - "name": "size", - "type": "TypeInt", - "description": "Size of the stored image file rounded up to the next gigabyte. Required for virtual server image for VPC.", - "optional": true - } - }, - "max_items": 1 - }, - "images": { - "name": "images", - "type": "TypeList", - "description": "Image operating system. Required for virtual server image for VPC.", - "optional": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "Programmatic ID of virtual server image. Required for virtual server image for VPC.", - "optional": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Programmatic name of virtual server image. Required for virtual server image for VPC.", - "optional": true - }, - "region": { - "name": "region", - "type": "TypeString", - "description": "Region the virtual server image is available in. Required for virtual server image for VPC.", - "optional": true - } - } - }, - "minimum_provisioned_size": { - "name": "minimum_provisioned_size", - "type": "TypeInt", - "description": "Minimum size (in gigabytes) of a volume onto which this image may be provisioned. Required for virtual server image for VPC.", - "optional": true - }, - "operating_system": { - "name": "operating_system", - "type": "TypeList", - "description": "Operating system included in this image. Required for virtual server image for VPC.", - "optional": true, - "elem": { - "architecture": { - "name": "architecture", - "type": "TypeString", - "description": "Operating system architecture. Required for virtual server image for VPC.", - "optional": true - }, - "dedicated_host_only": { - "name": "dedicated_host_only", - "type": "TypeBool", - "description": "Images with this operating system can only be used on dedicated hosts or dedicated host groups. Required for virtual server image for VPC.", - "optional": true - }, - "display_name": { - "name": "display_name", - "type": "TypeString", - "description": "Unique, display-friendly name for the operating system. Required for virtual server image for VPC.", - "optional": true - }, - "family": { - "name": "family", - "type": "TypeString", - "description": "Software family for this operating system. Required for virtual server image for VPC.", - "optional": true - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "URL for this operating system. Required for virtual server image for VPC.", - "optional": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Globally unique name for this operating system Required for virtual server image for VPC.", - "optional": true - }, - "vendor": { - "name": "vendor", - "type": "TypeString", - "description": "Vendor of the operating system. Required for virtual server image for VPC.", - "optional": true - }, - "version": { - "name": "version", - "type": "TypeString", - "description": "Major release version of this operating system. Required for virtual server image for VPC.", - "optional": true - } - }, - "max_items": 1 - } - }, - "max_items": 1 - }, - { - "name": "x_auth_token", - "type": "TypeString", - "description": "Authentication token used to access the specified zip file.", - "immutable": true, - "optional": true - }, - { - "name": "iam_permissions", - "type": "TypeList", - "description": "List of IAM permissions that are required to consume this version.", - "optional": true, - "elem": { - "resources": { - "name": "resources", - "type": "TypeList", - "description": "Resources for this permission.", - "optional": true, - "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "Resource description.", - "optional": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Resource name.", - "optional": true - }, - "role_crns": { - "name": "role_crns", - "type": "TypeList", - "description": "Role CRNs for this permission.", - "optional": true, - "elem": { - "type": "TypeString" - } - } - } - }, - "role_crns": { - "name": "role_crns", - "type": "TypeList", - "description": "Role CRNs for this permission.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - "service_name": { - "name": "service_name", - "type": "TypeString", - "description": "Service name.", - "optional": true - } - } - }, - { - "name": "validation", - "type": "TypeList", - "description": "Validation response.", - "computed": true, - "elem": { - "last_operation": { - "name": "last_operation", - "type": "TypeString", - "description": "Last operation (e.g. submit_deployment, generate_installer, install_offering.", - "optional": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "Any message needing to be conveyed as part of the validation job.", - "optional": true - }, - "requested": { - "name": "requested", - "type": "TypeString", - "description": "Date and time of last validation was requested.", - "optional": true - }, - "state": { - "name": "state", - "type": "TypeString", - "description": "Current validation state - \u003cempty\u003e, in_progress, valid, invalid, expired.", - "optional": true - }, - "target": { - "name": "target", - "type": "TypeMap", - "description": "Validation target information (e.g. cluster_id, region, namespace, etc). Values will vary by Content type.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - "validated": { - "name": "validated", - "type": "TypeString", - "description": "Date and time of last successful validation.", - "optional": true - } - } - }, - { - "name": "is_vsi", - "type": "TypeBool", - "description": "Indicates that the current terraform template is used to install a virtual server image.", - "immutable": true, - "optional": true - }, - { - "name": "tgz_url", - "type": "TypeString", - "description": "File used to on-board this version.", - "computed": true - }, - { - "name": "offering_identifier", - "type": "TypeString", - "description": "Offering ID, in the format of \u003caccount_id\u003e:o:\u003coffering_id\u003e.", - "computed": true - }, - { - "name": "product_kind", - "type": "TypeString", - "description": "Optional product kind for the software being onboarded. Valid values are software, module, or solution. Default value is software.", - "immutable": true, - "optional": true - }, - { - "name": "usage", - "type": "TypeString", - "description": "The usage text for this version.", - "optional": true - }, - { - "name": "working_directory", - "type": "TypeString", - "description": "Optional - The sub-folder within the specified tgz file that contains the software being onboarded.", - "immutable": true, - "optional": true - }, - { - "name": "include_config", - "type": "TypeBool", - "description": "Add all possible configuration values to this version when importing.", - "immutable": true, - "optional": true - }, - { - "name": "long_description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "install_kind", - "type": "TypeString", - "description": "Install type. Example: instance. Required for virtual server image for VPC.", - "immutable": true, - "optional": true - }, - { - "name": "format_kind", - "type": "TypeString", - "description": "Format of content being onboarded. Example: vsi-image. Required for virtual server image for VPC.", - "immutable": true, - "optional": true - }, - { - "name": "configuration", - "type": "TypeList", - "description": "List of user solicited overrides.", - "optional": true, - "computed": true, - "elem": { - "custom_config": { - "name": "custom_config", - "type": "TypeList", - "description": "Render type.", - "optional": true, - "computed": true, - "elem": { - "associations": { - "name": "associations", - "type": "TypeList", - "description": "List of parameters that are associated with this configuration.", - "optional": true, - "computed": true, - "elem": { - "parameters": { - "name": "parameters", - "type": "TypeList", - "description": "Parameters for this association.", - "optional": true, - "computed": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of this parameter.", - "optional": true, - "computed": true - }, - "options_refresh": { - "name": "options_refresh", - "type": "TypeBool", - "description": "Refresh options.", - "optional": true, - "computed": true - } - } - } - }, - "max_items": 1 - }, - "config_constraints": { - "name": "config_constraints", - "type": "TypeMap", - "description": "Map of constraint parameters that will be passed to the custom widget.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "grouping": { - "name": "grouping", - "type": "TypeString", - "description": "Determines where this configuration type is rendered (3 sections today - Target, Resource, and Deployment).", - "optional": true, - "computed": true - }, - "grouping_index": { - "name": "grouping_index", - "type": "TypeInt", - "description": "Determines the order that this configuration item shows in that particular grouping.", - "optional": true, - "computed": true - }, - "original_grouping": { - "name": "original_grouping", - "type": "TypeString", - "description": "Original grouping type for this configuration (3 types - Target, Resource, and Deployment).", - "optional": true, - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "ID of the widget type.", - "optional": true, - "computed": true - } - }, - "max_items": 1 - }, - "default_value": { - "name": "default_value", - "type": "TypeString", - "description": "The default value as a JSON encoded string. To use a secret when the type is password, specify a JSON encoded value of $ref:#/components/schemas/SecretInstance, prefixed with `cmsm_v1:`.", - "optional": true, - "computed": true - }, - "description": { - "name": "description", - "type": "TypeString", - "description": "Key description.", - "optional": true, - "computed": true - }, - "display_name": { - "name": "display_name", - "type": "TypeString", - "description": "Display name for configuration type.", - "optional": true, - "computed": true - }, - "hidden": { - "name": "hidden", - "type": "TypeBool", - "description": "Hide values.", - "optional": true, - "computed": true - }, - "key": { - "name": "key", - "type": "TypeString", - "description": "Configuration key.", - "optional": true, - "computed": true - }, - "options": { - "name": "options", - "type": "TypeList", - "description": "List of options of type.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeMap" - } - }, - "required": { - "name": "required", - "type": "TypeBool", - "description": "Is key required to install.", - "optional": true, - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Value type (string, boolean, int).", - "optional": true, - "computed": true - }, - "type_metadata": { - "name": "type_metadata", - "type": "TypeString", - "description": "The original type, as found in the source being onboarded.", - "optional": true, - "computed": true - }, - "value_constraint": { - "name": "value_constraint", - "type": "TypeString", - "description": "Constraint associated with value, e.g., for string type - regx:[a-z].", - "optional": true, - "computed": true - } - } - }, - { - "name": "offering_id", - "type": "TypeString", - "description": "Offering identification.", - "immutable": true, - "required": true - }, - { - "name": "zipurl", - "type": "TypeString", - "description": "URL path to zip location. If not specified, must provide content in the body of this call.", - "immutable": true, - "optional": true - }, - { - "name": "updated", - "type": "TypeString", - "description": "The date and time this version was last updated.", - "computed": true - }, - { - "name": "deprecated", - "type": "TypeBool", - "description": "read only field, indicating if this version is deprecated.", - "computed": true - }, - { - "name": "long_description", - "type": "TypeString", - "description": "Long description for version.", - "computed": true - }, - { - "name": "is_consumable", - "type": "TypeBool", - "description": "Is the version able to be shared.", - "computed": true - }, - { - "name": "label", - "type": "TypeString", - "description": "Display name of version. Required for virtual server image for VPC.", - "optional": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of version. Required for virtual server image for VPC.", - "immutable": true, - "optional": true - }, - { - "name": "source_url", - "type": "TypeString", - "description": "Content's source URL (e.g git repo).", - "computed": true - }, - { - "name": "entitlement", - "type": "TypeList", - "description": "Entitlement license info.", - "computed": true, - "elem": { - "image_repo_name": { - "name": "image_repo_name", - "type": "TypeString", - "description": "Image repository name.", - "optional": true - }, - "part_numbers": { - "name": "part_numbers", - "type": "TypeList", - "description": "list of license entitlement part numbers, eg. D1YGZLL,D1ZXILL.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - "product_id": { - "name": "product_id", - "type": "TypeString", - "description": "Product ID.", - "optional": true - }, - "provider_id": { - "name": "provider_id", - "type": "TypeString", - "description": "Provider ID.", - "optional": true - }, - "provider_name": { - "name": "provider_name", - "type": "TypeString", - "description": "Provider name.", - "optional": true - } - } - }, - { - "name": "repotype", - "type": "TypeString", - "description": "The type of repository containing this version. Valid values are 'public_git' or 'enterprise_git'.", - "immutable": true, - "optional": true - }, - { - "name": "tags", - "type": "TypeList", - "description": "Tags array.", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "target_kinds", - "type": "TypeList", - "description": "Deployment target of the content being onboarded. Current valid values are iks, roks, vcenter, power-iaas, terraform, and vpc-x86. Required for virtual server image for VPC.", - "immutable": true, - "optional": true, - "elem": { - "type": "TypeString" - } - }, { "name": "metadata", "type": "TypeList", @@ -99317,214 +101840,237 @@ } }, { - "name": "kind_id", + "name": "zipurl", "type": "TypeString", - "description": "Kind ID.", + "description": "URL path to zip location. If not specified, must provide content in the body of this call.", + "immutable": true, + "optional": true + }, + { + "name": "rev", + "type": "TypeString", + "description": "Cloudant revision.", "computed": true }, { - "name": "crn", + "name": "version_id", "type": "TypeString", - "description": "Version's CRN.", - "cloud_data_type": "crn", + "description": "Unique ID.", "computed": true }, { - "name": "outputs", - "type": "TypeList", - "description": "List of output values for this version.", - "computed": true, - "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "Output description.", - "optional": true - }, - "key": { - "name": "key", - "type": "TypeString", - "description": "Output key.", - "optional": true - } - } + "name": "deprecate", + "type": "TypeBool", + "description": "Deprecate this version.", + "optional": true }, { - "name": "required_resources", - "type": "TypeList", - "description": "Resource requirments for installation.", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of requirement.", - "optional": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "mem, disk, cores, and nodes can be parsed as an int. targetVersion will be a semver range value.", - "optional": true - } - } + "name": "is_consumable", + "type": "TypeBool", + "description": "Is the version able to be shared.", + "computed": true }, { - "name": "licenses", + "name": "usage", + "type": "TypeString", + "description": "The usage text for this version.", + "optional": true + }, + { + "name": "import_sha", + "type": "TypeString", + "description": "SHA256 fingerprint of the image file. Required for virtual server image for VPC.", + "optional": true + }, + { + "name": "import_metadata", "type": "TypeList", - "description": "List of licenses the product was built with.", + "description": "Generic data to be included with content being onboarded. Required for virtual server image for VPC.", "optional": true, - "computed": true, "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "License description.", - "optional": true, - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "License ID.", + "file": { + "name": "file", + "type": "TypeList", + "description": "Details for the stored image file. Required for virtual server image for VPC.", "optional": true, - "computed": true + "elem": { + "size": { + "name": "size", + "type": "TypeInt", + "description": "Size of the stored image file rounded up to the next gigabyte. Required for virtual server image for VPC.", + "optional": true + } + }, + "max_items": 1 }, - "name": { - "name": "name", - "type": "TypeString", - "description": "license name.", + "images": { + "name": "images", + "type": "TypeList", + "description": "Image operating system. Required for virtual server image for VPC.", "optional": true, - "computed": true + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "Programmatic ID of virtual server image. Required for virtual server image for VPC.", + "optional": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Programmatic name of virtual server image. Required for virtual server image for VPC.", + "optional": true + }, + "region": { + "name": "region", + "type": "TypeString", + "description": "Region the virtual server image is available in. Required for virtual server image for VPC.", + "optional": true + } + } }, - "type": { - "name": "type", - "type": "TypeString", - "description": "type of license e.g., Apache xxx.", - "optional": true, - "computed": true + "minimum_provisioned_size": { + "name": "minimum_provisioned_size", + "type": "TypeInt", + "description": "Minimum size (in gigabytes) of a volume onto which this image may be provisioned. Required for virtual server image for VPC.", + "optional": true }, - "url": { - "name": "url", - "type": "TypeString", - "description": "URL for the license text.", + "operating_system": { + "name": "operating_system", + "type": "TypeList", + "description": "Operating system included in this image. Required for virtual server image for VPC.", "optional": true, - "computed": true + "elem": { + "architecture": { + "name": "architecture", + "type": "TypeString", + "description": "Operating system architecture. Required for virtual server image for VPC.", + "optional": true + }, + "dedicated_host_only": { + "name": "dedicated_host_only", + "type": "TypeBool", + "description": "Images with this operating system can only be used on dedicated hosts or dedicated host groups. Required for virtual server image for VPC.", + "optional": true + }, + "display_name": { + "name": "display_name", + "type": "TypeString", + "description": "Unique, display-friendly name for the operating system. Required for virtual server image for VPC.", + "optional": true + }, + "family": { + "name": "family", + "type": "TypeString", + "description": "Software family for this operating system. Required for virtual server image for VPC.", + "optional": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "URL for this operating system. Required for virtual server image for VPC.", + "optional": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Globally unique name for this operating system Required for virtual server image for VPC.", + "optional": true + }, + "vendor": { + "name": "vendor", + "type": "TypeString", + "description": "Vendor of the operating system. Required for virtual server image for VPC.", + "optional": true + }, + "version": { + "name": "version", + "type": "TypeString", + "description": "Major release version of this operating system. Required for virtual server image for VPC.", + "optional": true + } + }, + "max_items": 1 } - } - }, - { - "name": "image_manifest_url", - "type": "TypeString", - "description": "If set, denotes a url to a YAML file with list of container images used by this version.", - "computed": true - }, - { - "name": "image_pull_key_name", - "type": "TypeString", - "description": "ID of the image pull key to use from Offering.ImagePullKeys.", - "computed": true - }, - { - "name": "version_id", - "type": "TypeString", - "description": "Unique ID.", - "computed": true - }, - { - "name": "content", - "type": "TypeString", - "description": "Byte array representing the content to be imported. Only supported for OVA images at this time.", - "immutable": true, - "optional": true + }, + "max_items": 1 }, { - "name": "sha", + "name": "kind_id", "type": "TypeString", - "description": "SHA256 fingerprint of the image file. Required for virtual server image for VPC.", + "description": "Kind ID.", "computed": true }, { - "name": "terraform_version", - "type": "TypeString", - "description": "Provide a terraform version for this offering version to use.", - "optional": true - }, - { - "name": "flavor", + "name": "validation", "type": "TypeList", - "description": "Version Flavor Information. Only supported for Product kind Solution.", - "optional": true, + "description": "Validation response.", + "computed": true, "elem": { - "index": { - "name": "index", - "type": "TypeInt", - "description": "Order that this flavor should appear when listed for a single version.", + "last_operation": { + "name": "last_operation", + "type": "TypeString", + "description": "Last operation (e.g. submit_deployment, generate_installer, install_offering.", "optional": true }, - "label": { - "name": "label", + "message": { + "name": "message", "type": "TypeString", - "description": "Label for this flavor.", + "description": "Any message needing to be conveyed as part of the validation job.", "optional": true }, - "label_i18n": { - "name": "label_i18n", + "requested": { + "name": "requested", + "type": "TypeString", + "description": "Date and time of last validation was requested.", + "optional": true + }, + "state": { + "name": "state", + "type": "TypeString", + "description": "Current validation state - \u003cempty\u003e, in_progress, valid, invalid, expired.", + "optional": true + }, + "target": { + "name": "target", "type": "TypeMap", - "description": "A map of translated strings, by language code.", + "description": "Validation target information (e.g. cluster_id, region, namespace, etc). Values will vary by Content type.", "optional": true, "elem": { "type": "TypeString" } }, - "name": { - "name": "name", + "validated": { + "name": "validated", "type": "TypeString", - "description": "Programmatic name for this flavor.", + "description": "Date and time of last successful validation.", "optional": true } - }, - "max_items": 1 - }, - { - "name": "rev", - "type": "TypeString", - "description": "Cloudant revision.", - "computed": true - }, - { - "name": "single_instance", - "type": "TypeBool", - "description": "Denotes if single instance can be deployed to a given cluster.", - "computed": true + } }, { - "name": "install", + "name": "pre_install", "type": "TypeList", - "description": "Script information.", + "description": "Optional pre-install instructions.", "optional": true, - "computed": true, "elem": { "delete_script": { "name": "delete_script", "type": "TypeString", "description": "Optional script that if run will remove the installed version.", - "optional": true, - "computed": true + "optional": true }, "instructions": { "name": "instructions", "type": "TypeString", "description": "Instruction on step and by whom (role) that are needed to take place to prepare the target for installing this version.", - "optional": true, - "computed": true + "optional": true }, "instructions_i18n": { "name": "instructions_i18n", "type": "TypeMap", "description": "A map of translated strings, by language code.", "optional": true, - "computed": true, "elem": { "type": "TypeString" } @@ -99533,25 +102079,55 @@ "name": "scope", "type": "TypeString", "description": "Optional value indicating if this script is scoped to a namespace or the entire cluster.", - "optional": true, - "computed": true + "optional": true }, "script": { "name": "script", "type": "TypeString", "description": "Optional script that needs to be run post any pre-condition script.", - "optional": true, - "computed": true + "optional": true }, "script_permission": { "name": "script_permission", "type": "TypeString", "description": "Optional iam permissions that are required on the target cluster to run this script.", - "optional": true, - "computed": true + "optional": true } - }, - "max_items": 1 + } + }, + { + "name": "image_pull_key_name", + "type": "TypeString", + "description": "ID of the image pull key to use from Offering.ImagePullKeys.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of version. Required for virtual server image for VPC.", + "immutable": true, + "optional": true + }, + { + "name": "product_kind", + "type": "TypeString", + "description": "Optional product kind for the software being onboarded. Valid values are software, module, or solution. Default value is software.", + "immutable": true, + "optional": true + }, + { + "name": "target_version", + "type": "TypeString", + "description": "The semver value for this new version, if not found in the zip url package content.", + "immutable": true, + "optional": true + }, + { + "name": "include_config", + "type": "TypeBool", + "description": "Add all possible configuration values to this version when importing.", + "immutable": true, + "optional": true }, { "name": "catalog_id", @@ -99561,15 +102137,39 @@ "required": true }, { - "name": "deprecate", - "type": "TypeBool", - "description": "Deprecate this version.", + "name": "tags", + "type": "TypeList", + "description": "Tags array.", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "sha", + "type": "TypeString", + "description": "SHA256 fingerprint of the image file. Required for virtual server image for VPC.", + "computed": true + }, + { + "name": "offering_id", + "type": "TypeString", + "description": "Offering identification.", + "immutable": true, + "required": true + }, + { + "name": "format_kind", + "type": "TypeString", + "description": "Format of content being onboarded. Example: vsi-image. Required for virtual server image for VPC.", + "immutable": true, "optional": true }, { - "name": "target_version", + "name": "repotype", "type": "TypeString", - "description": "The semver value for this new version, if not found in the zip url package content.", + "description": "The type of repository containing this version. Valid values are 'public_git' or 'enterprise_git'.", "immutable": true, "optional": true }, @@ -99580,28 +102180,32 @@ "computed": true }, { - "name": "pre_install", + "name": "install", "type": "TypeList", - "description": "Optional pre-install instructions.", + "description": "Script information.", "optional": true, + "computed": true, "elem": { "delete_script": { "name": "delete_script", "type": "TypeString", "description": "Optional script that if run will remove the installed version.", - "optional": true + "optional": true, + "computed": true }, "instructions": { "name": "instructions", "type": "TypeString", "description": "Instruction on step and by whom (role) that are needed to take place to prepare the target for installing this version.", - "optional": true + "optional": true, + "computed": true }, "instructions_i18n": { "name": "instructions_i18n", "type": "TypeMap", "description": "A map of translated strings, by language code.", "optional": true, + "computed": true, "elem": { "type": "TypeString" } @@ -99610,37 +102214,196 @@ "name": "scope", "type": "TypeString", "description": "Optional value indicating if this script is scoped to a namespace or the entire cluster.", - "optional": true + "optional": true, + "computed": true }, "script": { "name": "script", "type": "TypeString", "description": "Optional script that needs to be run post any pre-condition script.", - "optional": true + "optional": true, + "computed": true }, "script_permission": { "name": "script_permission", "type": "TypeString", "description": "Optional iam permissions that are required on the target cluster to run this script.", - "optional": true + "optional": true, + "computed": true } - } + }, + "max_items": 1 }, { - "name": "state", + "name": "image_manifest_url", + "type": "TypeString", + "description": "If set, denotes a url to a YAML file with list of container images used by this version.", + "computed": true + }, + { + "name": "offering_identifier", + "type": "TypeString", + "description": "Offering ID, in the format of \u003caccount_id\u003e:o:\u003coffering_id\u003e.", + "computed": true + }, + { + "name": "iam_permissions", "type": "TypeList", - "description": "Offering state.", - "computed": true, + "description": "List of IAM permissions that are required to consume this version.", + "optional": true, "elem": { - "current": { - "name": "current", - "type": "TypeString", - "description": "one of: new, validated, account-published, ibm-published, public-published.", - "computed": true - }, - "current_entered": { - "name": "current_entered", - "type": "TypeString", + "resources": { + "name": "resources", + "type": "TypeList", + "description": "Resources for this permission.", + "optional": true, + "elem": { + "description": { + "name": "description", + "type": "TypeString", + "description": "Resource description.", + "optional": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Resource name.", + "optional": true + }, + "role_crns": { + "name": "role_crns", + "type": "TypeList", + "description": "Role CRNs for this permission.", + "optional": true, + "elem": { + "type": "TypeString" + } + } + } + }, + "role_crns": { + "name": "role_crns", + "type": "TypeList", + "description": "Role CRNs for this permission.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + "service_name": { + "name": "service_name", + "type": "TypeString", + "description": "Service name.", + "optional": true + } + } + }, + { + "name": "label", + "type": "TypeString", + "description": "Display name of version. Required for virtual server image for VPC.", + "optional": true + }, + { + "name": "entitlement", + "type": "TypeList", + "description": "Entitlement license info.", + "computed": true, + "elem": { + "image_repo_name": { + "name": "image_repo_name", + "type": "TypeString", + "description": "Image repository name.", + "optional": true + }, + "part_numbers": { + "name": "part_numbers", + "type": "TypeList", + "description": "list of license entitlement part numbers, eg. D1YGZLL,D1ZXILL.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + "product_id": { + "name": "product_id", + "type": "TypeString", + "description": "Product ID.", + "optional": true + }, + "provider_id": { + "name": "provider_id", + "type": "TypeString", + "description": "Provider ID.", + "optional": true + }, + "provider_name": { + "name": "provider_name", + "type": "TypeString", + "description": "Provider name.", + "optional": true + } + } + }, + { + "name": "licenses", + "type": "TypeList", + "description": "List of licenses the product was built with.", + "optional": true, + "computed": true, + "elem": { + "description": { + "name": "description", + "type": "TypeString", + "description": "License description.", + "optional": true, + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "License ID.", + "optional": true, + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "license name.", + "optional": true, + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "type of license e.g., Apache xxx.", + "optional": true, + "computed": true + }, + "url": { + "name": "url", + "type": "TypeString", + "description": "URL for the license text.", + "optional": true, + "computed": true + } + } + }, + { + "name": "state", + "type": "TypeList", + "description": "Offering state.", + "computed": true, + "elem": { + "current": { + "name": "current", + "type": "TypeString", + "description": "one of: new, validated, account-published, ibm-published, public-published.", + "computed": true + }, + "current_entered": { + "name": "current_entered", + "type": "TypeString", "description": "Date and time of current request.", "computed": true }, @@ -99671,29 +102434,107 @@ "computed": true }, { - "name": "deprecate_pending", - "type": "TypeList", - "description": "Deprecation information for a Version.", + "name": "long_description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", "computed": true, "elem": { - "deprecate_date": { - "name": "deprecate_date", - "type": "TypeString", - "description": "Date of deprecation.", - "computed": true + "type": "TypeString" + } + }, + { + "name": "flavor", + "type": "TypeList", + "description": "Version Flavor Information. Only supported for Product kind Solution.", + "optional": true, + "elem": { + "index": { + "name": "index", + "type": "TypeInt", + "description": "Order that this flavor should appear when listed for a single version.", + "optional": true }, - "deprecate_state": { - "name": "deprecate_state", + "label": { + "name": "label", "type": "TypeString", - "description": "Deprecation state.", - "computed": true + "description": "Label for this flavor.", + "optional": true + }, + "label_i18n": { + "name": "label_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "optional": true, + "elem": { + "type": "TypeString" + } }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Programmatic name for this flavor.", + "optional": true + } + }, + "max_items": 1 + }, + { + "name": "crn", + "type": "TypeString", + "description": "Version's CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "updated", + "type": "TypeString", + "description": "The date and time this version was last updated.", + "computed": true + }, + { + "name": "source_url", + "type": "TypeString", + "description": "Content's source URL (e.g git repo).", + "computed": true + }, + { + "name": "outputs", + "type": "TypeList", + "description": "List of output values for this version.", + "computed": true, + "elem": { "description": { "name": "description", "type": "TypeString", - "computed": true + "description": "Output description.", + "optional": true + }, + "key": { + "name": "key", + "type": "TypeString", + "description": "Output key.", + "optional": true } } + }, + { + "name": "deprecated", + "type": "TypeBool", + "description": "read only field, indicating if this version is deprecated.", + "computed": true + }, + { + "name": "working_directory", + "type": "TypeString", + "description": "Optional - The sub-folder within the specified tgz file that contains the software being onboarded.", + "immutable": true, + "optional": true + }, + { + "name": "package_version", + "type": "TypeString", + "description": "Version of the package used to create this version.", + "computed": true } ], "ibm_code_engine_app": [ @@ -99708,19 +102549,12 @@ "matches": "^[a-z]([-a-z0-9]*[a-z0-9])?$" }, { - "name": "run_commands", - "type": "TypeList", - "description": "Optional commands for the app that are passed to start the container. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "scale_max_instances", - "type": "TypeInt", - "description": "Optional maximum number of instances for this app. If you set this value to `0`, this property does not set a upper scaling limit. However, the app scaling is still limited by the project quota for instances. See [Limits and quotas for Code Engine](https://cloud.ibm.com/docs/codeengine?topic=codeengine-limits).", - "default_value": 10, + "name": "scale_ephemeral_storage_limit", + "type": "TypeString", + "description": "Optional amount of ephemeral storage to set for the instance of the app. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", + "default_value": "400M", + "max_length": 10, + "matches": "^([0-9.]+)([eEinumkKMGTPB]*)$", "optional": true }, { @@ -99730,56 +102564,66 @@ "computed": true }, { - "name": "href", + "name": "app_id", "type": "TypeString", - "description": "When you provision a new app, a URL is created identifying the location of the instance.", + "description": "The identifier of the resource.", "computed": true }, { - "name": "image_reference", + "name": "project_id", "type": "TypeString", - "description": "The name of the image that is used for this app. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.", + "description": "The ID of the project.", + "immutable": true, "required": true, - "min_length": 1, - "max_length": 256, - "matches": "^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\\/])?[a-z0-9][a-z0-9\\-_.\\/]+[a-z0-9](:[\\w][\\w.\\-]{0,127})?(@sha256:[a-fA-F0-9]{64})?$" - }, - { - "name": "run_service_account", - "type": "TypeString", - "description": "Optional name of the service account. For built-in service accounts, you can use the shortened names `manager` , `none`, `reader`, and `writer`.", - "default_value": "default", - "options": "default, manager, none, reader, writer", - "matches": "^(manager|reader|writer|none|default)$", - "optional": true + "min_length": 36, + "max_length": 36, + "matches": "^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$" }, { - "name": "created_at", - "type": "TypeString", - "description": "The timestamp when the resource was created.", - "computed": true + "name": "run_volume_mounts", + "type": "TypeList", + "description": "Optional mounts of config maps or a secrets.", + "optional": true, + "elem": { + "mount_path": { + "name": "mount_path", + "type": "TypeString", + "description": "The path that should be mounted.", + "required": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Optional name of the mount. If not set, it will be generated based on the `ref` and a random ID. In case the `ref` is longer than 58 characters, it will be cut off.", + "optional": true + }, + "reference": { + "name": "reference", + "type": "TypeString", + "description": "The name of the referenced secret or config map.", + "required": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Specify the type of the volume mount. Allowed types are: 'config_map', 'secret'.", + "required": true + } + } }, { - "name": "scale_ephemeral_storage_limit", - "type": "TypeString", - "description": "Optional amount of ephemeral storage to set for the instance of the app. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", - "default_value": "400M", - "max_length": 10, - "matches": "^([0-9.]+)([eEinumkKMGTPB]*)$", + "name": "scale_min_instances", + "type": "TypeInt", + "description": "Optional minimum number of instances for this app. If you set this value to `0`, the app will scale down to zero, if not hit by any request for some time.", + "default_value": 0, "optional": true }, { - "name": "app_id", + "name": "endpoint", "type": "TypeString", - "description": "The identifier of the resource.", + "description": "Optional URL to invoke app. Depending on visibility this is accessible publicly or in the private network only. Empty in case 'managed_domain_mappings' is set to 'local'.", "computed": true }, - { - "name": "run_as_user", - "type": "TypeInt", - "description": "Optional user ID (UID) to run the app (e.g., `1001`).", - "optional": true - }, { "name": "run_env_variables", "type": "TypeList", @@ -99825,6 +102669,36 @@ } } }, + { + "name": "scale_max_instances", + "type": "TypeInt", + "description": "Optional maximum number of instances for this app. If you set this value to `0`, this property does not set a upper scaling limit. However, the app scaling is still limited by the project quota for instances. See [Limits and quotas for Code Engine](https://cloud.ibm.com/docs/codeengine?topic=codeengine-limits).", + "default_value": 10, + "optional": true + }, + { + "name": "etag", + "type": "TypeString", + "computed": true + }, + { + "name": "image_reference", + "type": "TypeString", + "description": "The name of the image that is used for this app. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.", + "required": true, + "min_length": 1, + "max_length": 256, + "matches": "^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\\/])?[a-z0-9][a-z0-9\\-_.\\/]+[a-z0-9](:[\\w][\\w.\\-]{0,127})?(@sha256:[a-fA-F0-9]{64})?$" + }, + { + "name": "run_arguments", + "type": "TypeList", + "description": "Optional arguments for the app that are passed to start the container. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, { "name": "scale_concurrency", "type": "TypeInt", @@ -99833,9 +102707,37 @@ "optional": true }, { - "name": "run_arguments", + "name": "scale_initial_instances", + "type": "TypeInt", + "description": "Optional initial number of instances that are created upon app creation or app update.", + "default_value": 1, + "optional": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The timestamp when the resource was created.", + "computed": true + }, + { + "name": "image_port", + "type": "TypeInt", + "description": "Optional port the app listens on. While the app will always be exposed via port `443` for end users, this port is used to connect to the port that is exposed by the container image.", + "default_value": 8080, + "optional": true + }, + { + "name": "managed_domain_mappings", + "type": "TypeString", + "description": "Optional value controlling which of the system managed domain mappings will be setup for the application. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports application private visibility.", + "default_value": "local_public", + "options": "local, local_private, local_public", + "optional": true + }, + { + "name": "run_commands", "type": "TypeList", - "description": "Optional arguments for the app that are passed to start the container. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.", + "description": "Optional commands for the app that are passed to start the container. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.", "optional": true, "elem": { "type": "TypeString" @@ -99850,32 +102752,6 @@ "matches": "^([0-9.]+)([eEinumkKMGTPB]*)$", "optional": true }, - { - "name": "status_details", - "type": "TypeList", - "description": "The detailed status of the application.", - "computed": true, - "elem": { - "latest_created_revision": { - "name": "latest_created_revision", - "type": "TypeString", - "description": "Latest app revision that has been created.", - "computed": true - }, - "latest_ready_revision": { - "name": "latest_ready_revision", - "type": "TypeString", - "description": "Latest app revision that reached a ready state.", - "computed": true - }, - "reason": { - "name": "reason", - "type": "TypeString", - "description": "Optional information to provide more context in case of a 'failed' or 'warning' status.", - "computed": true - } - } - }, { "name": "resource_type", "type": "TypeString", @@ -99883,14 +102759,10 @@ "computed": true }, { - "name": "project_id", + "name": "status", "type": "TypeString", - "description": "The ID of the project.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$" + "description": "The current status of the app.", + "computed": true }, { "name": "scale_cpu_limit", @@ -99902,29 +102774,39 @@ "optional": true }, { - "name": "entity_tag", + "name": "href", "type": "TypeString", - "description": "The version of the app instance, which is used to achieve optimistic locking.", + "description": "When you provision a new app, a URL is created identifying the location of the instance.", "computed": true }, { - "name": "etag", - "type": "TypeString", - "computed": true + "name": "scale_concurrency_target", + "type": "TypeInt", + "description": "Optional threshold of concurrent requests per instance at which one or more additional instances are created. Use this value to scale up instances based on concurrent number of requests. This option defaults to the value of the `scale_concurrency` option, if not specified.", + "optional": true }, { - "name": "managed_domain_mappings", + "name": "image_secret", "type": "TypeString", - "description": "Optional value controlling which of the system managed domain mappings will be setup for the application. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports application private visibility.", - "default_value": "local_public", - "options": "local, local_private, local_public", + "description": "Optional name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the app will be created but cannot reach the ready status, until this property is provided, too.", + "min_length": 1, + "max_length": 253, + "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$", "optional": true }, { - "name": "scale_min_instances", + "name": "run_as_user", "type": "TypeInt", - "description": "Optional minimum number of instances for this app. If you set this value to `0`, the app will scale down to zero, if not hit by any request for some time.", - "default_value": 0, + "description": "Optional user ID (UID) to run the app (e.g., `1001`).", + "optional": true + }, + { + "name": "run_service_account", + "type": "TypeString", + "description": "Optional name of the service account. For built-in service accounts, you can use the shortened names `manager` , `none`, `reader`, and `writer`.", + "default_value": "default", + "options": "default, manager, none, reader, writer", + "matches": "^(manager|reader|writer|none|default)$", "optional": true }, { @@ -99935,92 +102817,39 @@ "optional": true }, { - "name": "image_secret", + "name": "entity_tag", "type": "TypeString", - "description": "Optional name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the app will be created but cannot reach the ready status, until this property is provided, too.", - "min_length": 1, - "max_length": 253, - "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$", - "optional": true + "description": "The version of the app instance, which is used to achieve optimistic locking.", + "computed": true }, { - "name": "run_volume_mounts", + "name": "status_details", "type": "TypeList", - "description": "Optional mounts of config maps or a secrets.", - "optional": true, + "description": "The detailed status of the application.", + "computed": true, "elem": { - "mount_path": { - "name": "mount_path", - "type": "TypeString", - "description": "The path that should be mounted.", - "required": true - }, - "name": { - "name": "name", + "latest_created_revision": { + "name": "latest_created_revision", "type": "TypeString", - "description": "Optional name of the mount. If not set, it will be generated based on the `ref` and a random ID. In case the `ref` is longer than 58 characters, it will be cut off.", - "optional": true + "description": "Latest app revision that has been created.", + "computed": true }, - "reference": { - "name": "reference", + "latest_ready_revision": { + "name": "latest_ready_revision", "type": "TypeString", - "description": "The name of the referenced secret or config map.", - "required": true + "description": "Latest app revision that reached a ready state.", + "computed": true }, - "type": { - "name": "type", + "reason": { + "name": "reason", "type": "TypeString", - "description": "Specify the type of the volume mount. Allowed types are: 'config_map', 'secret'.", - "required": true + "description": "Optional information to provide more context in case of a 'failed' or 'warning' status.", + "computed": true } } - }, - { - "name": "endpoint", - "type": "TypeString", - "description": "Optional URL to invoke app. Depending on visibility this is accessible publicly or in the private network only. Empty in case 'managed_domain_mappings' is set to 'local'.", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The current status of the app.", - "computed": true - }, - { - "name": "image_port", - "type": "TypeInt", - "description": "Optional port the app listens on. While the app will always be exposed via port `443` for end users, this port is used to connect to the port that is exposed by the container image.", - "default_value": 8080, - "optional": true - }, - { - "name": "scale_concurrency_target", - "type": "TypeInt", - "description": "Optional threshold of concurrent requests per instance at which one or more additional instances are created. Use this value to scale up instances based on concurrent number of requests. This option defaults to the value of the `scale_concurrency` option, if not specified.", - "optional": true - }, - { - "name": "scale_initial_instances", - "type": "TypeInt", - "description": "Optional initial number of instances that are created upon app creation or app update.", - "default_value": 1, - "optional": true } ], "ibm_code_engine_binding": [ - { - "name": "resource_type", - "type": "TypeString", - "description": "The type of the binding.", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The current status of the binding.", - "computed": true - }, { "name": "binding_id", "type": "TypeString", @@ -100084,35 +102913,46 @@ "type": "TypeString", "description": "When you provision a new binding, a URL is created identifying the location of the instance.", "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The type of the binding.", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The current status of the binding.", + "computed": true } ], "ibm_code_engine_build": [ { - "name": "name", + "name": "source_type", "type": "TypeString", - "description": "The name of the build. Use a name that is unique within the project.", - "immutable": true, - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?$" + "description": "Specifies the type of source to determine if your build source is in a repository or based on local source code.* local - For builds from local source code.* git - For builds from git version controlled source code.", + "default_value": "git", + "options": "git, local", + "optional": true }, { - "name": "output_image", + "name": "source_url", "type": "TypeString", - "description": "The name of the image.", - "required": true, + "description": "The URL of the code repository. This field is required if the `source_type` is `git`. If the `source_type` value is `local`, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like `https://github.com/IBM/CodeEngine`. If the repository requires authentication, you need to provide a 'ssh' URL like `git@github.com:IBM/CodeEngine.git` along with a `source_secret` that points to a secret of format `ssh_auth`.", "min_length": 1, - "max_length": 256, - "matches": "^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\\/])?[a-z0-9][a-z0-9\\-_.\\/]+[a-z0-9](:[\\w][\\w.\\-]{0,127})?(@sha256:[a-fA-F0-9]{64})?$" + "max_length": 253, + "matches": "^((https:\\/\\/[a-z0-9]([\\-.]?[a-z0-9])+(:\\d{1,5})?)|((ssh:\\/\\/)?git@[a-z0-9]([\\-.]{0,1}[a-z0-9])+(:[a-zA-Z0-9\\/][\\w\\-.]*)?))(\\/([\\w\\-.]|%20)+)*$", + "optional": true }, { - "name": "timeout", - "type": "TypeInt", - "description": "The maximum amount of time, in seconds, that can pass before the build must succeed or fail.", - "default_value": 600, - "min_value": "1", - "max_value": "3600", + "name": "strategy_spec_file", + "type": "TypeString", + "description": "Optional path to the specification file that is used for build strategies for building an image.", + "default_value": "Dockerfile", + "min_length": 1, + "max_length": 253, + "matches": "^[\\S]*$", "optional": true }, { @@ -100122,25 +102962,36 @@ "computed": true }, { - "name": "etag", + "name": "status", "type": "TypeString", + "description": "The current status of the build.", "computed": true }, { - "name": "entity_tag", + "name": "source_context_dir", "type": "TypeString", - "description": "The version of the build instance, which is used to achieve optimistic locking.", - "computed": true + "description": "Option directory in the repository that contains the buildpacks file or the Dockerfile.", + "max_length": 253, + "matches": "^(.*)+$", + "optional": true }, { - "name": "project_id", + "name": "output_secret", "type": "TypeString", - "description": "The ID of the project.", - "immutable": true, + "description": "The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.", "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$" + "min_length": 1, + "max_length": 253, + "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$" + }, + { + "name": "strategy_type", + "type": "TypeString", + "description": "The strategy to use for building the image.", + "required": true, + "min_length": 1, + "max_length": 253, + "matches": "[\\S]*" }, { "name": "source_revision", @@ -100151,52 +103002,56 @@ "optional": true }, { - "name": "source_secret", - "type": "TypeString", - "description": "Name of the secret that is used access the repository source. This field is optional if the `source_type` is `git`. Additionally, if the `source_url` points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the `source_type` value is `local`, this field must be omitted.", - "min_length": 1, - "max_length": 253, - "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$", - "optional": true + "name": "status_details", + "type": "TypeList", + "description": "The detailed status of the build.", + "computed": true, + "elem": { + "reason": { + "name": "reason", + "type": "TypeString", + "description": "Optional information to provide more context in case of a 'failed' or 'warning' status.", + "computed": true + } + } }, { - "name": "source_type", + "name": "etag", "type": "TypeString", - "description": "Specifies the type of source to determine if your build source is in a repository or based on local source code.* local - For builds from local source code.* git - For builds from git version controlled source code.", - "default_value": "git", - "options": "git, local", - "optional": true + "computed": true }, { - "name": "source_url", + "name": "name", "type": "TypeString", - "description": "The URL of the code repository. This field is required if the `source_type` is `git`. If the `source_type` value is `local`, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like `https://github.com/IBM/CodeEngine`. If the repository requires authentication, you need to provide a 'ssh' URL like `git@github.com:IBM/CodeEngine.git` along with a `source_secret` that points to a secret of format `ssh_auth`.", + "description": "The name of the build. Use a name that is unique within the project.", + "immutable": true, + "required": true, "min_length": 1, - "max_length": 253, - "matches": "^((https:\\/\\/[a-z0-9]([\\-.]?[a-z0-9])+(:\\d{1,5})?)|((ssh:\\/\\/)?git@[a-z0-9]([\\-.]{0,1}[a-z0-9])+(:[a-zA-Z0-9\\/][\\w\\-.]*)?))(\\/([\\w\\-.]|%20)+)*$", - "optional": true + "max_length": 63, + "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?$" }, { - "name": "created_at", + "name": "resource_type", "type": "TypeString", - "description": "The timestamp when the resource was created.", + "description": "The type of the build.", "computed": true }, { - "name": "strategy_type", + "name": "output_image", "type": "TypeString", - "description": "The strategy to use for building the image.", + "description": "The name of the image.", "required": true, "min_length": 1, - "max_length": 253, - "matches": "[\\S]*" + "max_length": 256, + "matches": "^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\\/])?[a-z0-9][a-z0-9\\-_.\\/]+[a-z0-9](:[\\w][\\w.\\-]{0,127})?(@sha256:[a-fA-F0-9]{64})?$" }, { - "name": "source_context_dir", + "name": "source_secret", "type": "TypeString", - "description": "Option directory in the repository that contains the buildpacks file or the Dockerfile.", + "description": "Name of the secret that is used access the repository source. This field is optional if the `source_type` is `git`. Additionally, if the `source_url` points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the `source_type` value is `local`, this field must be omitted.", + "min_length": 1, "max_length": 253, - "matches": "^(.*)+$", + "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$", "optional": true }, { @@ -100210,29 +103065,25 @@ "optional": true }, { - "name": "resource_type", - "type": "TypeString", - "description": "The type of the build.", - "computed": true + "name": "timeout", + "type": "TypeInt", + "description": "The maximum amount of time, in seconds, that can pass before the build must succeed or fail.", + "default_value": 600, + "min_value": "1", + "max_value": "3600", + "optional": true }, { - "name": "output_secret", + "name": "created_at", "type": "TypeString", - "description": "The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.", - "required": true, - "min_length": 1, - "max_length": 253, - "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$" + "description": "The timestamp when the resource was created.", + "computed": true }, { - "name": "strategy_spec_file", + "name": "entity_tag", "type": "TypeString", - "description": "Optional path to the specification file that is used for build strategies for building an image.", - "default_value": "Dockerfile", - "min_length": 1, - "max_length": 253, - "matches": "^[\\S]*$", - "optional": true + "description": "The version of the build instance, which is used to achieve optimistic locking.", + "computed": true }, { "name": "build_id", @@ -100241,33 +103092,17 @@ "computed": true }, { - "name": "status", + "name": "project_id", "type": "TypeString", - "description": "The current status of the build.", - "computed": true - }, - { - "name": "status_details", - "type": "TypeList", - "description": "The detailed status of the build.", - "computed": true, - "elem": { - "reason": { - "name": "reason", - "type": "TypeString", - "description": "Optional information to provide more context in case of a 'failed' or 'warning' status.", - "computed": true - } - } + "description": "The ID of the project.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$" } ], "ibm_code_engine_config_map": [ - { - "name": "created_at", - "type": "TypeString", - "description": "The timestamp when the resource was created.", - "computed": true - }, { "name": "entity_tag", "type": "TypeString", @@ -100280,6 +103115,17 @@ "description": "When you provision a new config map, a URL is created identifying the location of the instance.", "computed": true }, + { + "name": "config_map_id", + "type": "TypeString", + "description": "The identifier of the resource.", + "computed": true + }, + { + "name": "etag", + "type": "TypeString", + "computed": true + }, { "name": "data", "type": "TypeMap", @@ -100290,19 +103136,9 @@ } }, { - "name": "name", - "type": "TypeString", - "description": "The name of the config map. Use a name that is unique within the project.", - "immutable": true, - "required": true, - "min_length": 1, - "max_length": 253, - "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$" - }, - { - "name": "config_map_id", + "name": "created_at", "type": "TypeString", - "description": "The identifier of the resource.", + "description": "The timestamp when the resource was created.", "computed": true }, { @@ -100311,11 +103147,6 @@ "description": "The type of the config map.", "computed": true }, - { - "name": "etag", - "type": "TypeString", - "computed": true - }, { "name": "project_id", "type": "TypeString", @@ -100325,19 +103156,23 @@ "min_length": 36, "max_length": 36, "matches": "^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$" + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the config map. Use a name that is unique within the project.", + "immutable": true, + "required": true, + "min_length": 1, + "max_length": 253, + "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$" } ], "ibm_code_engine_job": [ { - "name": "created_at", - "type": "TypeString", - "description": "The timestamp when the resource was created.", - "computed": true - }, - { - "name": "href", + "name": "job_id", "type": "TypeString", - "description": "When you provision a new job, a URL is created identifying the location of the instance.", + "description": "The identifier of the resource.", "computed": true }, { @@ -100351,59 +103186,29 @@ "matches": "^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$" }, { - "name": "run_arguments", - "type": "TypeList", - "description": "Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "scale_retry_limit", - "type": "TypeInt", - "description": "The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if `run_mode` is `task`.", - "default_value": 3, - "optional": true - }, - { - "name": "entity_tag", - "type": "TypeString", - "description": "The version of the job instance, which is used to achieve optimistic locking.", - "computed": true - }, - { - "name": "etag", - "type": "TypeString", - "computed": true - }, - { - "name": "run_service_account", + "name": "image_reference", "type": "TypeString", - "description": "The name of the service account. For built-in service accounts, you can use the shortened names `manager`, `none`, `reader`, and `writer`. This property must not be set on a job run, which references a job template.", - "default_value": "default", - "options": "default, manager, none, reader, writer", - "matches": "^(manager|reader|writer|none|default)$", - "optional": true + "description": "The name of the image that is used for this job. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.", + "required": true, + "min_length": 1, + "max_length": 256, + "matches": "^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\\/])?[a-z0-9][a-z0-9\\-_.\\/]+[a-z0-9](:[\\w][\\w.\\-]{0,127})?(@sha256:[a-fA-F0-9]{64})?$" }, { - "name": "scale_array_spec", + "name": "image_secret", "type": "TypeString", - "description": "Define a custom set of array indices as comma-separated list containing single values and hyphen-separated ranges like `5,12-14,23,27`. Each instance can pick up its array index via environment variable `JOB_INDEX`. The number of unique array indices specified here determines the number of job instances to run.", - "default_value": "0", + "description": "The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.", "min_length": 1, "max_length": 253, - "matches": "^(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?(?:,(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?)*$", + "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$", "optional": true }, { - "name": "run_commands", - "type": "TypeList", - "description": "Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.", - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "run_as_user", + "type": "TypeInt", + "description": "The user ID (UID) to run the application (e.g., 1001).", + "default_value": 0, + "optional": true }, { "name": "run_env_variables", @@ -100451,46 +103256,23 @@ } }, { - "name": "run_volume_mounts", + "name": "run_service_account", + "type": "TypeString", + "description": "The name of the service account. For built-in service accounts, you can use the shortened names `manager`, `none`, `reader`, and `writer`. This property must not be set on a job run, which references a job template.", + "default_value": "default", + "options": "default, manager, none, reader, writer", + "matches": "^(manager|reader|writer|none|default)$", + "optional": true + }, + { + "name": "run_commands", "type": "TypeList", - "description": "Optional mounts of config maps or a secrets.", + "description": "Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.", "optional": true, "elem": { - "mount_path": { - "name": "mount_path", - "type": "TypeString", - "description": "The path that should be mounted.", - "required": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Optional name of the mount. If not set, it will be generated based on the `ref` and a random ID. In case the `ref` is longer than 58 characters, it will be cut off.", - "optional": true - }, - "reference": { - "name": "reference", - "type": "TypeString", - "description": "The name of the referenced secret or config map.", - "required": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Specify the type of the volume mount. Allowed types are: 'config_map', 'secret'.", - "required": true - } + "type": "TypeString" } }, - { - "name": "scale_cpu_limit", - "type": "TypeString", - "description": "Optional amount of CPU set for the instance of the job. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo).", - "default_value": "1", - "max_length": 10, - "matches": "^([0-9.]+)([eEinumkKMGTPB]*)$", - "optional": true - }, { "name": "scale_ephemeral_storage_limit", "type": "TypeString", @@ -100510,51 +103292,23 @@ "optional": true }, { - "name": "image_reference", - "type": "TypeString", - "description": "The name of the image that is used for this job. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.", - "required": true, - "min_length": 1, - "max_length": 256, - "matches": "^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\\/])?[a-z0-9][a-z0-9\\-_.\\/]+[a-z0-9](:[\\w][\\w.\\-]{0,127})?(@sha256:[a-fA-F0-9]{64})?$" - }, - { - "name": "image_secret", - "type": "TypeString", - "description": "The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.", - "min_length": 1, - "max_length": 253, - "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$", + "name": "scale_retry_limit", + "type": "TypeInt", + "description": "The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if `run_mode` is `task`.", + "default_value": 3, "optional": true }, { - "name": "job_id", + "name": "href", "type": "TypeString", - "description": "The identifier of the resource.", + "description": "When you provision a new job, a URL is created identifying the location of the instance.", "computed": true }, { - "name": "resource_type", + "name": "etag", "type": "TypeString", - "description": "The type of the job.", "computed": true }, - { - "name": "run_mode", - "type": "TypeString", - "description": "The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `max_execution_time` and `retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `max_execution_time` and `retry_limit` properties are not allowed.", - "default_value": "task", - "options": "daemon, task", - "matches": "^(task|daemon)$", - "optional": true - }, - { - "name": "scale_max_execution_time", - "type": "TypeInt", - "description": "The maximum execution time in seconds for runs of the job. This property can only be specified if `run_mode` is `task`.", - "default_value": 7200, - "optional": true - }, { "name": "name", "type": "TypeString", @@ -100566,60 +103320,104 @@ "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?$" }, { - "name": "run_as_user", - "type": "TypeInt", - "description": "The user ID (UID) to run the application (e.g., 1001).", - "default_value": 0, - "optional": true - } - ], - "ibm_code_engine_project": [ - { - "name": "href", + "name": "scale_cpu_limit", "type": "TypeString", - "description": "When you provision a new resource, a URL is created identifying the location of the instance.", - "computed": true + "description": "Optional amount of CPU set for the instance of the job. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo).", + "default_value": "1", + "max_length": 10, + "matches": "^([0-9.]+)([eEinumkKMGTPB]*)$", + "optional": true }, { - "name": "region", + "name": "created_at", "type": "TypeString", - "description": "The region for your project deployment. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.", - "cloud_data_type": "region", + "description": "The timestamp when the resource was created.", "computed": true }, { "name": "resource_type", "type": "TypeString", - "description": "The type of the project.", - "computed": true - }, - { - "name": "project_id", - "type": "TypeString", - "description": "The ID of the project.", - "computed": true - }, - { - "name": "account_id", - "type": "TypeString", - "description": "An alphanumeric value identifying the account ID.", + "description": "The type of the job.", "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The timestamp when the project was created.", - "computed": true + "name": "run_arguments", + "type": "TypeList", + "description": "Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.", + "optional": true, + "elem": { + "type": "TypeString" + } }, { - "name": "status", + "name": "run_mode", "type": "TypeString", - "description": "The current state of the project. For example, if the project is created and ready to get used, it will return active.", - "computed": true + "description": "The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `max_execution_time` and `retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `max_execution_time` and `retry_limit` properties are not allowed.", + "default_value": "task", + "options": "daemon, task", + "matches": "^(task|daemon)$", + "optional": true }, { - "name": "name", - "type": "TypeString", + "name": "run_volume_mounts", + "type": "TypeList", + "description": "Optional mounts of config maps or a secrets.", + "optional": true, + "elem": { + "mount_path": { + "name": "mount_path", + "type": "TypeString", + "description": "The path that should be mounted.", + "required": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Optional name of the mount. If not set, it will be generated based on the `ref` and a random ID. In case the `ref` is longer than 58 characters, it will be cut off.", + "optional": true + }, + "reference": { + "name": "reference", + "type": "TypeString", + "description": "The name of the referenced secret or config map.", + "required": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Specify the type of the volume mount. Allowed types are: 'config_map', 'secret'.", + "required": true + } + } + }, + { + "name": "scale_array_spec", + "type": "TypeString", + "description": "Define a custom set of array indices as comma-separated list containing single values and hyphen-separated ranges like `5,12-14,23,27`. Each instance can pick up its array index via environment variable `JOB_INDEX`. The number of unique array indices specified here determines the number of job instances to run.", + "default_value": "0", + "min_length": 1, + "max_length": 253, + "matches": "^(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?(?:,(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?)*$", + "optional": true + }, + { + "name": "scale_max_execution_time", + "type": "TypeInt", + "description": "The maximum execution time in seconds for runs of the job. This property can only be specified if `run_mode` is `task`.", + "default_value": 7200, + "optional": true + }, + { + "name": "entity_tag", + "type": "TypeString", + "description": "The version of the job instance, which is used to achieve optimistic locking.", + "computed": true + } + ], + "ibm_code_engine_project": [ + { + "name": "name", + "type": "TypeString", "description": "The name of the project.", "immutable": true, "required": true, @@ -100627,6 +103425,19 @@ "max_length": 128, "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9\\-._: ])+$" }, + { + "name": "project_id", + "type": "TypeString", + "description": "The ID of the project.", + "computed": true + }, + { + "name": "region", + "type": "TypeString", + "description": "The region for your project deployment. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.", + "cloud_data_type": "region", + "computed": true + }, { "name": "resource_group_id", "type": "TypeString", @@ -100637,12 +103448,42 @@ "matches": "^[a-z0-9]*$", "optional": true }, + { + "name": "account_id", + "type": "TypeString", + "description": "An alphanumeric value identifying the account ID.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The timestamp when the project was created.", + "computed": true + }, { "name": "crn", "type": "TypeString", "description": "The CRN of the project.", "cloud_data_type": "crn", "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "When you provision a new resource, a URL is created identifying the location of the instance.", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The type of the project.", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The current state of the project. For example, if the project is created and ready to get used, it will return active.", + "computed": true } ], "ibm_code_engine_secret": [ @@ -100652,6 +103493,23 @@ "description": "The timestamp when the resource was created.", "computed": true }, + { + "name": "id", + "type": "TypeString", + "description": "The identifier of the resource.", + "computed": true + }, + { + "name": "etag", + "type": "TypeString", + "computed": true + }, + { + "name": "entity_tag", + "type": "TypeString", + "description": "The version of the secret instance, which is used to achieve optimistic locking.", + "computed": true + }, { "name": "href", "type": "TypeString", @@ -100659,8 +103517,9 @@ "computed": true }, { - "name": "etag", + "name": "resource_type", "type": "TypeString", + "description": "The type of the secret.", "computed": true }, { @@ -100673,6 +103532,25 @@ "max_length": 36, "matches": "^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$" }, + { + "name": "format", + "type": "TypeString", + "description": "Specify the format of the secret.", + "immutable": true, + "required": true, + "options": "basic_auth, generic, registry, service_access, ssh_auth, tls", + "matches": "^(generic|ssh_auth|basic_auth|tls|service_access|registry)$" + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the secret.", + "immutable": true, + "required": true, + "min_length": 1, + "max_length": 253, + "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$" + }, { "name": "data", "type": "TypeMap", @@ -100758,51 +103636,26 @@ }, "max_items": 1 }, - { - "name": "id", - "type": "TypeString", - "description": "The identifier of the resource.", - "computed": true - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The type of the secret.", - "computed": true - }, { "name": "secret_id", "type": "TypeString", "description": "The identifier of the resource.", "computed": true - }, - { - "name": "format", - "type": "TypeString", - "description": "Specify the format of the secret.", - "immutable": true, - "required": true, - "options": "basic_auth, generic, registry, service_access, ssh_auth, tls", - "matches": "^(generic|ssh_auth|basic_auth|tls|service_access|registry)$" - }, + } + ], + "ibm_compute_autoscale_group": [ { "name": "name", "type": "TypeString", - "description": "The name of the secret.", - "immutable": true, - "required": true, - "min_length": 1, - "max_length": 253, - "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$" + "description": "Name", + "required": true }, { - "name": "entity_tag", - "type": "TypeString", - "description": "The version of the secret instance, which is used to achieve optimistic locking.", - "computed": true - } - ], - "ibm_compute_autoscale_group": [ + "name": "maximum_member_count", + "type": "TypeInt", + "description": "Maximum member count", + "required": true + }, { "name": "virtual_server_id", "type": "TypeInt", @@ -100810,26 +103663,20 @@ "optional": true }, { - "name": "port", - "type": "TypeInt", - "description": "Port number", + "name": "health_check", + "type": "TypeMap", "optional": true }, { - "name": "network_vlan_ids", + "name": "tags", "type": "TypeSet", - "description": "List of network VLAN ids", + "description": "List of tags", + "cloud_data_type": "tags", "optional": true, "elem": { - "type": "TypeInt" + "type": "TypeString" } }, - { - "name": "name", - "type": "TypeString", - "description": "Name", - "required": true - }, { "name": "regional_group", "type": "TypeString", @@ -100838,9 +103685,9 @@ "required": true }, { - "name": "maximum_member_count", + "name": "minimum_member_count", "type": "TypeInt", - "description": "Maximum member count", + "description": "Minimum member count", "required": true }, { @@ -100856,14 +103703,9 @@ "required": true }, { - "name": "minimum_member_count", + "name": "port", "type": "TypeInt", - "description": "Minimum member count", - "required": true - }, - { - "name": "health_check", - "type": "TypeMap", + "description": "Port number", "optional": true }, { @@ -101233,13 +104075,12 @@ } }, { - "name": "tags", + "name": "network_vlan_ids", "type": "TypeSet", - "description": "List of tags", - "cloud_data_type": "tags", + "description": "List of network VLAN ids", "optional": true, "elem": { - "type": "TypeString" + "type": "TypeInt" } } ], @@ -101347,28 +104188,27 @@ ], "ibm_compute_bare_metal": [ { - "name": "network_speed", - "type": "TypeInt", - "description": "Network speed in MBPS", - "default_value": 100, + "name": "fixed_config_preset", + "type": "TypeString", + "description": "Fixed config preset value", "immutable": true, "optional": true }, { - "name": "hourly_billing", + "name": "software_guard_extensions", "type": "TypeBool", - "description": "Enables hourly billing", - "default_value": true, + "default_value": false, "immutable": true, "optional": true }, { - "name": "tcp_monitoring", - "type": "TypeBool", - "description": "TCP monitoring enabled if set as true", - "default_value": false, + "name": "disk_key_names", + "type": "TypeList", "immutable": true, - "optional": true + "optional": true, + "elem": { + "type": "TypeString" + } }, { "name": "memory", @@ -101413,52 +104253,55 @@ } }, { - "name": "quote_id", + "name": "private_ipv4_address_id", "type": "TypeInt", - "description": "Quote ID for Quote based provisioning", - "immutable": true, - "optional": true - }, - { - "name": "global_identifier", - "type": "TypeString", - "description": "The unique global identifier of the bare metal server", "computed": true }, { - "name": "post_install_script_uri", - "type": "TypeString", + "name": "ipv6_enabled", + "type": "TypeBool", + "description": "Boolean value true if IPV6 ia enabled or false", + "default_value": false, "immutable": true, "optional": true }, { - "name": "redundant_power_supply", - "type": "TypeBool", + "name": "user_metadata", + "type": "TypeString", + "description": "User metadata info", "immutable": true, - "optional": true, - "computed": true + "optional": true }, { - "name": "package_key_name", + "name": "notes", "type": "TypeString", - "immutable": true, + "description": "Optional notes info", "optional": true }, { - "name": "process_key_name", + "name": "datacenter", "type": "TypeString", "immutable": true, - "optional": true + "optional": true, + "computed": true }, { - "name": "unbonded_network", + "name": "private_network_only", "type": "TypeBool", + "description": "only private network configured if is true", "default_value": false, "immutable": true, "optional": true }, { - "name": "private_ipv4_address", + "name": "private_vlan_id", + "type": "TypeInt", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "public_ipv4_address", "type": "TypeString", "computed": true }, @@ -101471,66 +104314,82 @@ } }, { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "domain", + "type": "TypeString", + "description": "Domain name", + "immutable": true, + "required": true }, { - "name": "fixed_config_preset", + "name": "os_reference_code", "type": "TypeString", - "description": "Fixed config preset value", + "description": "OS refernece code value", "immutable": true, - "optional": true + "optional": true, + "computed": true }, { - "name": "gpu_secondary_key_name", - "type": "TypeString", + "name": "image_template_id", + "type": "TypeInt", + "description": "OS image template ID", "immutable": true, "optional": true }, { - "name": "redundant_network", - "type": "TypeBool", - "default_value": false, + "name": "quote_id", + "type": "TypeInt", + "description": "Quote ID for Quote based provisioning", "immutable": true, "optional": true }, { - "name": "public_bandwidth", + "name": "public_vlan_id", "type": "TypeInt", "immutable": true, "optional": true, "computed": true }, { - "name": "ipv6_enabled", - "type": "TypeBool", - "description": "Boolean value true if IPV6 ia enabled or false", - "default_value": false, + "name": "private_subnet", + "type": "TypeString", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "file_storage_ids", + "type": "TypeSet", + "optional": true, + "computed": true, + "elem": { + "type": "TypeInt" + } + }, + { + "name": "network_speed", + "type": "TypeInt", + "description": "Network speed in MBPS", + "default_value": 100, "immutable": true, "optional": true }, { - "name": "datacenter", + "name": "process_key_name", "type": "TypeString", "immutable": true, - "optional": true, - "computed": true + "optional": true }, { - "name": "software_guard_extensions", + "name": "unbonded_network", "type": "TypeBool", "default_value": false, "immutable": true, "optional": true }, { - "name": "os_key_name", - "type": "TypeString", + "name": "restricted_network", + "type": "TypeBool", + "default_value": false, "immutable": true, "optional": true }, @@ -101542,11 +104401,9 @@ "optional": true }, { - "name": "domain", + "name": "private_ipv4_address", "type": "TypeString", - "description": "Domain name", - "immutable": true, - "required": true + "computed": true }, { "name": "ssh_key_ids", @@ -101559,95 +104416,80 @@ } }, { - "name": "os_reference_code", - "type": "TypeString", - "description": "OS refernece code value", + "name": "hourly_billing", + "type": "TypeBool", + "description": "Enables hourly billing", + "default_value": true, "immutable": true, - "optional": true, - "computed": true + "optional": true }, { - "name": "disk_key_names", - "type": "TypeList", + "name": "gpu_key_name", + "type": "TypeString", "immutable": true, - "optional": true, - "elem": { - "type": "TypeString" - } + "optional": true }, { - "name": "private_subnet", + "name": "gpu_secondary_key_name", "type": "TypeString", "immutable": true, - "optional": true, - "computed": true + "optional": true }, { - "name": "public_ipv4_address", + "name": "public_subnet", "type": "TypeString", + "immutable": true, + "optional": true, "computed": true }, { - "name": "ipv6_address", - "type": "TypeString", + "name": "public_ipv4_address_id", + "type": "TypeInt", "computed": true }, { - "name": "ipv6_address_id", + "name": "secondary_ip_count", "type": "TypeInt", - "computed": true + "description": "Secondary IP addresses count", + "immutable": true, + "optional": true }, { - "name": "hostname", + "name": "ipv6_address", "type": "TypeString", - "description": "Host name", - "immutable": true, - "optional": true + "computed": true }, { - "name": "private_network_only", - "type": "TypeBool", - "description": "only private network configured if is true", - "default_value": false, - "immutable": true, - "optional": true + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } }, { - "name": "restricted_network", + "name": "tcp_monitoring", "type": "TypeBool", + "description": "TCP monitoring enabled if set as true", "default_value": false, "immutable": true, "optional": true }, { - "name": "public_vlan_id", - "type": "TypeInt", + "name": "redundant_power_supply", + "type": "TypeBool", "immutable": true, "optional": true, "computed": true }, { - "name": "user_metadata", - "type": "TypeString", - "description": "User metadata info", + "name": "redundant_network", + "type": "TypeBool", + "default_value": false, "immutable": true, "optional": true }, - { - "name": "notes", - "type": "TypeString", - "description": "Optional notes info", - "optional": true - }, - { - "name": "file_storage_ids", - "type": "TypeSet", - "optional": true, - "computed": true, - "elem": { - "type": "TypeInt" - } - }, { "name": "block_storage_ids", "type": "TypeSet", @@ -101658,46 +104500,32 @@ } }, { - "name": "gpu_key_name", + "name": "os_key_name", "type": "TypeString", "immutable": true, "optional": true }, { - "name": "private_vlan_id", - "type": "TypeInt", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "secondary_ip_count", - "type": "TypeInt", - "description": "Secondary IP addresses count", + "name": "package_key_name", + "type": "TypeString", "immutable": true, "optional": true }, { - "name": "image_template_id", - "type": "TypeInt", - "description": "OS image template ID", + "name": "post_install_script_uri", + "type": "TypeString", "immutable": true, "optional": true }, { - "name": "public_subnet", - "type": "TypeString", + "name": "public_bandwidth", + "type": "TypeInt", "immutable": true, "optional": true, "computed": true }, { - "name": "public_ipv4_address_id", - "type": "TypeInt", - "computed": true - }, - { - "name": "private_ipv4_address_id", + "name": "ipv6_address_id", "type": "TypeInt", "computed": true }, @@ -101708,23 +104536,36 @@ "default_value": false, "immutable": true, "optional": true + }, + { + "name": "global_identifier", + "type": "TypeString", + "description": "The unique global identifier of the bare metal server", + "computed": true + }, + { + "name": "hostname", + "type": "TypeString", + "description": "Host name", + "immutable": true, + "optional": true } ], "ibm_compute_dedicated_host": [ { - "name": "flavor", + "name": "datacenter", "type": "TypeString", - "description": "The flavor of the dedicatated host.", - "default_value": "56_CORES_X_242_RAM_X_1_4_TB", + "description": "The data center in which the dedicatated host is to be provisioned.", "immutable": true, - "optional": true + "required": true }, { - "name": "router_hostname", - "type": "TypeString", - "description": "The hostname of the primary router that the dedicated host is associated with.", + "name": "hourly_billing", + "type": "TypeBool", + "description": "The billing type for the dedicatated host.", + "default_value": true, "immutable": true, - "required": true + "optional": true }, { "name": "cpu_count", @@ -101732,27 +104573,12 @@ "description": "The capacity that the dedicated host's CPU allocation is restricted to.", "computed": true }, - { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - }, { "name": "disk_capacity", "type": "TypeInt", "description": "The capacity that the dedicated host's disk allocation is restricted to.", "computed": true }, - { - "name": "memory_capacity", - "type": "TypeInt", - "description": "The capacity that the dedicated host's memory allocation is restricted to.", - "computed": true - }, { "name": "wait_time_minutes", "type": "TypeInt", @@ -101773,22 +104599,56 @@ "required": true }, { - "name": "datacenter", + "name": "flavor", "type": "TypeString", - "description": "The data center in which the dedicatated host is to be provisioned.", + "description": "The flavor of the dedicatated host.", + "default_value": "56_CORES_X_242_RAM_X_1_4_TB", "immutable": true, - "required": true + "optional": true }, { - "name": "hourly_billing", - "type": "TypeBool", - "description": "The billing type for the dedicatated host.", - "default_value": true, + "name": "router_hostname", + "type": "TypeString", + "description": "The hostname of the primary router that the dedicated host is associated with.", "immutable": true, - "optional": true + "required": true + }, + { + "name": "memory_capacity", + "type": "TypeInt", + "description": "The capacity that the dedicated host's memory allocation is restricted to.", + "computed": true + }, + { + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } } ], "ibm_compute_monitor": [ + { + "name": "guest_id", + "type": "TypeInt", + "description": "Guest ID", + "immutable": true, + "required": true + }, + { + "name": "ip_address", + "type": "TypeString", + "description": "IP Address", + "optional": true + }, + { + "name": "query_type_id", + "type": "TypeInt", + "description": "Query Type ID", + "required": true + }, { "name": "response_action_id", "type": "TypeInt", @@ -101820,25 +104680,6 @@ "elem": { "type": "TypeString" } - }, - { - "name": "guest_id", - "type": "TypeInt", - "description": "Guest ID", - "immutable": true, - "required": true - }, - { - "name": "ip_address", - "type": "TypeString", - "description": "IP Address", - "optional": true - }, - { - "name": "query_type_id", - "type": "TypeInt", - "description": "Query Type ID", - "required": true } ], "ibm_compute_placement_group": [ @@ -101906,13 +104747,6 @@ } ], "ibm_compute_reserved_capacity": [ - { - "name": "pod", - "type": "TypeString", - "description": "Pod name", - "immutable": true, - "required": true - }, { "name": "name", "type": "TypeString", @@ -101953,6 +104787,13 @@ "description": "Dataceneter name", "immutable": true, "required": true + }, + { + "name": "pod", + "type": "TypeString", + "description": "Pod name", + "immutable": true, + "required": true } ], "ibm_compute_ssh_key": [ @@ -101993,6 +104834,25 @@ } ], "ibm_compute_ssl_certificate": [ + { + "name": "key_size", + "type": "TypeInt", + "description": "SSL key size", + "computed": true + }, + { + "name": "certificate", + "type": "TypeString", + "description": "SSL Certifcate", + "immutable": true, + "required": true + }, + { + "name": "validity_begin", + "type": "TypeString", + "description": "Validity begins from", + "computed": true + }, { "name": "common_name", "type": "TypeString", @@ -102018,21 +104878,16 @@ "computed": true }, { - "name": "tags", - "type": "TypeSet", - "description": "Tags set for resource", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "create_date", + "type": "TypeString", + "description": "certificate creation date", + "computed": true }, { - "name": "certificate", + "name": "modify_date", "type": "TypeString", - "description": "SSL Certifcate", - "immutable": true, - "required": true + "description": "certificate modificatiob date", + "computed": true }, { "name": "intermediate_certificate", @@ -102050,35 +104905,55 @@ "required": true }, { - "name": "validity_begin", + "name": "tags", + "type": "TypeSet", + "description": "Tags set for resource", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + } + ], + "ibm_compute_user": [ + { + "name": "address2", "type": "TypeString", - "description": "Validity begins from", - "computed": true + "description": "Address info of the user", + "optional": true }, { - "name": "key_size", - "type": "TypeInt", - "description": "SSL key size", + "name": "ibm_id", + "type": "TypeString", + "description": "IBM ID of the user", "computed": true }, { - "name": "create_date", + "name": "address1", "type": "TypeString", - "description": "certificate creation date", - "computed": true + "description": "Address info of the user", + "required": true }, { - "name": "modify_date", + "name": "city", "type": "TypeString", - "description": "certificate modificatiob date", - "computed": true - } - ], - "ibm_compute_user": [ + "description": "City name", + "required": true + }, { - "name": "last_name", + "name": "tags", + "type": "TypeSet", + "description": "Tags set for the resources", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "first_name", "type": "TypeString", - "description": "Last name of the user", + "description": "First name of the user", "required": true }, { @@ -102087,12 +104962,6 @@ "description": "email address of the user", "required": true }, - { - "name": "address2", - "type": "TypeString", - "description": "Address info of the user", - "optional": true - }, { "name": "country", "type": "TypeString", @@ -102105,19 +104974,6 @@ "description": "time zone info", "required": true }, - { - "name": "user_status", - "type": "TypeString", - "description": "user status info", - "default_value": "ACTIVE", - "optional": true - }, - { - "name": "company_name", - "type": "TypeString", - "description": "comapany name", - "required": true - }, { "name": "permissions", "type": "TypeSet", @@ -102127,37 +104983,6 @@ "type": "TypeString" } }, - { - "name": "api_key", - "type": "TypeString", - "description": "API key for the user", - "secure": true, - "optional": true, - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "Tags set for the resources", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "username", - "type": "TypeString", - "description": "user name", - "optional": true, - "computed": true - }, - { - "name": "state", - "type": "TypeString", - "description": "Satate name", - "required": true - }, { "name": "password", "type": "TypeString", @@ -102173,84 +104998,77 @@ "optional": true }, { - "name": "ibm_id", + "name": "api_key", "type": "TypeString", - "description": "IBM ID of the user", + "description": "API key for the user", + "secure": true, + "optional": true, "computed": true }, { - "name": "first_name", + "name": "username", "type": "TypeString", - "description": "First name of the user", - "required": true + "description": "user name", + "optional": true, + "computed": true }, { - "name": "address1", + "name": "last_name", "type": "TypeString", - "description": "Address info of the user", + "description": "Last name of the user", "required": true }, { - "name": "city", + "name": "company_name", "type": "TypeString", - "description": "City name", + "description": "comapany name", "required": true - } - ], - "ibm_compute_vm_instance": [ - { - "name": "private_subnet", - "type": "TypeString", - "immutable": true, - "optional": true, - "computed": true }, { - "name": "resource_name", + "name": "state", "type": "TypeString", - "description": "The name of the resource", - "computed": true + "description": "Satate name", + "required": true }, { - "name": "domain", + "name": "user_status", "type": "TypeString", + "description": "user status info", + "default_value": "ACTIVE", "optional": true - }, + } + ], + "ibm_compute_vm_instance": [ { - "name": "dedicated_host_name", - "type": "TypeString", - "immutable": true, - "optional": true + "name": "secondary_ip_addresses", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "public_subnet", + "name": "flavor_key_name", "type": "TypeString", - "immutable": true, + "description": "Flavor key name used to provision vm.", "optional": true, "computed": true }, { - "name": "reserved_instance_primary_disk", + "name": "ip_address_id_private", "type": "TypeInt", - "description": "The primary disk of reserved instance", - "immutable": true, - "optional": true + "computed": true }, { - "name": "public_vlan_id", + "name": "private_vlan_id", "type": "TypeInt", "immutable": true, "optional": true, "computed": true }, { - "name": "private_interface_id", - "type": "TypeInt", - "computed": true - }, - { - "name": "block_storage_ids", - "type": "TypeSet", + "name": "disks", + "type": "TypeList", "optional": true, "computed": true, "elem": { @@ -102258,83 +105076,79 @@ } }, { - "name": "local_disk", - "type": "TypeBool", - "default_value": true, + "name": "domain", + "type": "TypeString", + "optional": true + }, + { + "name": "reserved_capacity_name", + "type": "TypeString", + "description": "The reserved group id", "immutable": true, "optional": true }, { - "name": "bulk_vms", + "name": "tags", "type": "TypeSet", - "immutable": true, + "cloud_data_type": "tags", "optional": true, "elem": { - "domain": { - "name": "domain", - "type": "TypeString", - "immutable": true, - "required": true - }, - "hostname": { - "name": "hostname", - "type": "TypeString", - "immutable": true, - "required": true - } - }, - "min_items": 2 + "type": "TypeString" + } }, { - "name": "datacenter_choice", - "type": "TypeList", - "description": "The user provided datacenter options", + "name": "hostname", + "type": "TypeString", + "optional": true + }, + { + "name": "ssh_key_ids", + "type": "TypeSet", "optional": true, "elem": { - "type": "TypeMap" + "type": "TypeInt" } }, { - "name": "placement_group_id", + "name": "cores", "type": "TypeInt", - "description": "The placement group id", - "immutable": true, - "optional": true + "optional": true, + "computed": true }, { - "name": "dedicated_acct_host_only", - "type": "TypeBool", - "immutable": true, - "optional": true + "name": "memory", + "type": "TypeInt", + "optional": true, + "computed": true }, { - "name": "notes", - "type": "TypeString", - "optional": true + "name": "private_interface_id", + "type": "TypeInt", + "computed": true }, { - "name": "public_bandwidth_unlimited", - "type": "TypeBool", - "default_value": false, + "name": "private_subnet", + "type": "TypeString", "immutable": true, - "optional": true + "optional": true, + "computed": true }, { - "name": "transient", - "type": "TypeBool", + "name": "datacenter", + "type": "TypeString", "immutable": true, - "optional": true + "optional": true, + "computed": true }, { - "name": "ssh_key_ids", - "type": "TypeSet", - "optional": true, - "elem": { - "type": "TypeInt" - } + "name": "placement_group_id", + "type": "TypeInt", + "description": "The placement group id", + "immutable": true, + "optional": true }, { - "name": "private_security_group_ids", + "name": "public_security_group_ids", "type": "TypeSet", "immutable": true, "optional": true, @@ -102345,85 +105159,112 @@ "max_items": 5 }, { - "name": "ip_address_id", - "type": "TypeInt", + "name": "ipv6_address", + "type": "TypeString", "computed": true }, { - "name": "public_ipv6_subnet_id", + "name": "secondary_ip_count", "type": "TypeInt", - "computed": true + "immutable": true, + "optional": true }, { - "name": "file_storage_ids", - "type": "TypeSet", + "name": "public_bandwidth_limited", + "type": "TypeInt", + "immutable": true, "optional": true, - "computed": true, - "elem": { - "type": "TypeInt" - } + "computed": true }, { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", + "name": "datacenter_choice", + "type": "TypeList", + "description": "The user provided datacenter options", "optional": true, "elem": { - "type": "TypeString" + "type": "TypeMap" } }, { - "name": "placement_group_name", - "type": "TypeString", - "description": "The placement group name", + "name": "ipv6_static_enabled", + "type": "TypeBool", + "default_value": false, "immutable": true, "optional": true }, { - "name": "flavor_key_name", - "type": "TypeString", - "description": "Flavor key name used to provision vm.", + "name": "bulk_vms", + "type": "TypeSet", + "immutable": true, "optional": true, - "computed": true + "elem": { + "domain": { + "name": "domain", + "type": "TypeString", + "immutable": true, + "required": true + }, + "hostname": { + "name": "hostname", + "type": "TypeString", + "immutable": true, + "required": true + } + }, + "min_items": 2 }, { - "name": "private_subnet_id", + "name": "reserved_instance_primary_disk", + "type": "TypeInt", + "description": "The primary disk of reserved instance", + "immutable": true, + "optional": true + }, + { + "name": "ipv6_address_id", "type": "TypeInt", "computed": true }, { - "name": "quote_id", + "name": "evault", "type": "TypeInt", - "description": "Quote ID for Quote based provisioning", "immutable": true, "optional": true }, { - "name": "hostname", + "name": "public_subnet", "type": "TypeString", - "optional": true + "immutable": true, + "optional": true, + "computed": true }, { - "name": "network_speed", + "name": "public_subnet_id", "type": "TypeInt", - "default_value": 100, - "optional": true + "computed": true }, { - "name": "ipv4_address", + "name": "ip_address_id", + "type": "TypeInt", + "computed": true + }, + { + "name": "public_ipv6_subnet", "type": "TypeString", "computed": true }, { - "name": "wait_time_minutes", - "type": "TypeInt", - "default_value": 90, + "name": "file_storage_ids", + "type": "TypeSet", "optional": true, - "deprecated": "This field is deprecated. Use timeouts block instead" + "computed": true, + "elem": { + "type": "TypeInt" + } }, { - "name": "os_reference_code", - "type": "TypeString", + "name": "image_id", + "type": "TypeInt", "immutable": true, "optional": true }, @@ -102435,68 +105276,38 @@ "optional": true }, { - "name": "secondary_ip_addresses", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "memory", + "name": "public_vlan_id", "type": "TypeInt", + "immutable": true, "optional": true, "computed": true }, { - "name": "disks", - "type": "TypeList", - "optional": true, - "computed": true, - "elem": { - "type": "TypeInt" - } - }, - { - "name": "image_id", - "type": "TypeInt", - "immutable": true, - "optional": true - }, - { - "name": "evault", - "type": "TypeInt", + "name": "post_install_script_uri", + "type": "TypeString", "immutable": true, "optional": true }, { - "name": "public_subnet_id", - "type": "TypeInt", + "name": "ipv4_address", + "type": "TypeString", "computed": true }, { - "name": "public_security_group_ids", + "name": "block_storage_ids", "type": "TypeSet", - "immutable": true, "optional": true, "computed": true, "elem": { "type": "TypeInt" - }, - "max_items": 5 + } }, { - "name": "public_ipv6_subnet", + "name": "resource_status", "type": "TypeString", + "description": "The status of the resource", "computed": true }, - { - "name": "hourly_billing", - "type": "TypeBool", - "default_value": true, - "immutable": true, - "optional": true - }, { "name": "reserved_capacity_id", "type": "TypeInt", @@ -102505,113 +105316,143 @@ "optional": true }, { - "name": "ipv4_address_private", - "type": "TypeString", - "computed": true - }, - { - "name": "resource_controller_url", + "name": "notes", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true + "optional": true }, { - "name": "ipv6_enabled", + "name": "transient", "type": "TypeBool", - "default_value": false, "immutable": true, "optional": true }, { - "name": "ipv6_address_id", + "name": "public_interface_id", "type": "TypeInt", "computed": true }, { - "name": "public_bandwidth_limited", - "type": "TypeInt", + "name": "local_disk", + "type": "TypeBool", + "default_value": true, "immutable": true, - "optional": true, - "computed": true + "optional": true }, { - "name": "ip_address_id_private", - "type": "TypeInt", - "computed": true + "name": "os_reference_code", + "type": "TypeString", + "immutable": true, + "optional": true }, { - "name": "secondary_ip_count", + "name": "dedicated_host_id", "type": "TypeInt", "immutable": true, "optional": true }, { - "name": "resource_status", - "type": "TypeString", - "description": "The status of the resource", - "computed": true + "name": "public_bandwidth_unlimited", + "type": "TypeBool", + "default_value": false, + "immutable": true, + "optional": true }, { - "name": "datacenter", + "name": "resource_name", "type": "TypeString", - "immutable": true, - "optional": true, + "description": "The name of the resource", "computed": true }, { - "name": "reserved_capacity_name", + "name": "dedicated_host_name", "type": "TypeString", - "description": "The reserved group id", "immutable": true, "optional": true }, { - "name": "private_vlan_id", - "type": "TypeInt", + "name": "ipv4_address_private", + "type": "TypeString", + "computed": true + }, + { + "name": "private_security_group_ids", + "type": "TypeSet", "immutable": true, "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeInt" + }, + "max_items": 5 }, { - "name": "dedicated_host_id", + "name": "network_speed", "type": "TypeInt", + "default_value": 100, + "optional": true + }, + { + "name": "user_metadata", + "type": "TypeString", "immutable": true, "optional": true }, { - "name": "public_interface_id", + "name": "wait_time_minutes", "type": "TypeInt", + "default_value": 90, + "optional": true, + "deprecated": "This field is deprecated. Use timeouts block instead" + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { - "name": "ipv6_static_enabled", + "name": "hourly_billing", "type": "TypeBool", - "default_value": false, + "default_value": true, "immutable": true, "optional": true }, { - "name": "ipv6_address", + "name": "placement_group_name", "type": "TypeString", - "computed": true + "description": "The placement group name", + "immutable": true, + "optional": true }, { - "name": "cores", + "name": "ipv6_enabled", + "type": "TypeBool", + "default_value": false, + "immutable": true, + "optional": true + }, + { + "name": "public_ipv6_subnet_id", "type": "TypeInt", - "optional": true, "computed": true }, { - "name": "user_metadata", - "type": "TypeString", + "name": "quote_id", + "type": "TypeInt", + "description": "Quote ID for Quote based provisioning", "immutable": true, "optional": true }, { - "name": "post_install_script_uri", - "type": "TypeString", + "name": "dedicated_acct_host_only", + "type": "TypeBool", "immutable": true, "optional": true + }, + { + "name": "private_subnet_id", + "type": "TypeInt", + "computed": true } ], "ibm_container_addons": [ @@ -102742,6 +105583,19 @@ } ], "ibm_container_alb": [ + { + "name": "zone", + "type": "TypeString", + "description": "ALB zone", + "computed": true + }, + { + "name": "region", + "type": "TypeString", + "cloud_data_type": "region", + "optional": true, + "deprecated": "This field is deprecated" + }, { "name": "user_ip", "type": "TypeString", @@ -102750,6 +105604,13 @@ "optional": true, "computed": true }, + { + "name": "enable", + "type": "TypeBool", + "description": "set to true if ALB needs to be enabled", + "optional": true, + "computed": true + }, { "name": "disable_deployment", "type": "TypeBool", @@ -102765,9 +105626,9 @@ "computed": true }, { - "name": "zone", + "name": "replicas", "type": "TypeString", - "description": "ALB zone", + "description": "Desired number of ALB replicas.", "computed": true }, { @@ -102789,53 +105650,14 @@ "description": "Cluster id", "computed": true }, - { - "name": "enable", - "type": "TypeBool", - "description": "set to true if ALB needs to be enabled", - "optional": true, - "computed": true - }, - { - "name": "replicas", - "type": "TypeString", - "description": "Desired number of ALB replicas.", - "computed": true - }, { "name": "resize", "type": "TypeBool", "description": "Indicate whether resizing should be done", "computed": true - }, - { - "name": "region", - "type": "TypeString", - "cloud_data_type": "region", - "optional": true, - "deprecated": "This field is deprecated" } ], "ibm_container_alb_cert": [ - { - "name": "cert_crn", - "type": "TypeString", - "description": "Certificate CRN id", - "required": true - }, - { - "name": "secret_name", - "type": "TypeString", - "description": "Secret name", - "immutable": true, - "required": true - }, - { - "name": "persistence", - "type": "TypeBool", - "description": "Persistence of secret", - "optional": true - }, { "name": "expires_on", "type": "TypeString", @@ -102849,6 +105671,15 @@ "computed": true, "deprecated": "This field is depricated and is not available in v2 version of ingress api" }, + { + "name": "region", + "type": "TypeString", + "description": "region name", + "cloud_data_type": "region", + "optional": true, + "computed": true, + "deprecated": "This field is deprecated" + }, { "name": "cluster_id", "type": "TypeString", @@ -102861,12 +105692,11 @@ ] }, { - "name": "namespace", + "name": "secret_name", "type": "TypeString", - "description": "Namespace of the secret", - "default_value": "ibm-cert-store", + "description": "Secret name", "immutable": true, - "optional": true + "required": true }, { "name": "domain_name", @@ -102887,71 +105717,89 @@ "computed": true }, { - "name": "region", + "name": "cert_crn", "type": "TypeString", - "description": "region name", - "cloud_data_type": "region", - "optional": true, - "computed": true, - "deprecated": "This field is deprecated" + "description": "Certificate CRN id", + "required": true + }, + { + "name": "namespace", + "type": "TypeString", + "description": "Namespace of the secret", + "default_value": "ibm-cert-store", + "immutable": true, + "optional": true + }, + { + "name": "persistence", + "type": "TypeBool", + "description": "Persistence of secret", + "optional": true } ], "ibm_container_alb_create": [ { - "name": "resize", + "name": "enable", "type": "TypeBool", - "description": "resize", - "computed": true + "description": "If set to true, the ALB is enabled by default.", + "default_value": true, + "optional": true }, { - "name": "nlb_version", + "name": "ingress_image", "type": "TypeString", - "description": "The version of the network load balancer that you want to use for the ALB.", + "description": "The type of Ingress image that you want to use for your ALB deployment.", "immutable": true, "optional": true }, { - "name": "user_ip", + "name": "ip", "type": "TypeString", - "description": "IP assigned by the user", - "computed": true + "description": "The IP address that you want to assign to the ALB.", + "optional": true }, { - "name": "replicas", + "name": "zone", "type": "TypeString", - "description": "number of instances", - "computed": true + "description": "The zone where you want to deploy the ALB.", + "immutable": true, + "required": true }, { - "name": "disable_deployment", - "type": "TypeBool", - "description": "Set to true if ALB needs to be disabled", + "name": "name", + "type": "TypeString", + "description": "ALB name", "computed": true }, { - "name": "alb_id", + "name": "user_ip", "type": "TypeString", - "description": "The ID of the application load balancer (ALB).", + "description": "IP assigned by the user", "computed": true }, { - "name": "enable", + "name": "alb_type", + "type": "TypeString", + "description": "The type of ALB that you want to create.", + "required": true + }, + { + "name": "resize", "type": "TypeBool", - "description": "If set to true, the ALB is enabled by default.", - "default_value": true, - "optional": true + "description": "resize", + "computed": true }, { - "name": "ip", + "name": "nlb_version", "type": "TypeString", - "description": "The IP address that you want to assign to the ALB.", + "description": "The version of the network load balancer that you want to use for the ALB.", + "immutable": true, "optional": true }, { - "name": "zone", + "name": "vlan_id", "type": "TypeString", - "description": "The zone where you want to deploy the ALB.", - "immutable": true, + "description": "The VLAN ID that you want to use for your ALBs.", "required": true }, { @@ -102966,29 +105814,22 @@ ] }, { - "name": "name", + "name": "alb_id", "type": "TypeString", - "description": "ALB name", + "description": "The ID of the application load balancer (ALB).", "computed": true }, { - "name": "ingress_image", - "type": "TypeString", - "description": "The type of Ingress image that you want to use for your ALB deployment.", - "immutable": true, - "optional": true - }, - { - "name": "alb_type", - "type": "TypeString", - "description": "The type of ALB that you want to create.", - "required": true + "name": "disable_deployment", + "type": "TypeBool", + "description": "Set to true if ALB needs to be disabled", + "computed": true }, { - "name": "vlan_id", + "name": "replicas", "type": "TypeString", - "description": "The VLAN ID that you want to use for your ALBs.", - "required": true + "description": "number of instances", + "computed": true } ], "ibm_container_api_key_reset": [ @@ -103017,6 +105858,32 @@ } ], "ibm_container_bind_service": [ + { + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true + }, + { + "name": "tags", + "type": "TypeSet", + "description": "List of tags for the resource", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "service_instance_id", + "type": "TypeString", + "description": "Service instance ID", + "immutable": true, + "optional": true, + "computed": true + }, { "name": "org_guid", "type": "TypeString", @@ -103024,6 +105891,13 @@ "optional": true, "deprecated": "This field is deprecated" }, + { + "name": "namespace_id", + "type": "TypeString", + "description": "namespace ID", + "immutable": true, + "required": true + }, { "name": "space_guid", "type": "TypeString", @@ -103031,6 +105905,13 @@ "optional": true, "deprecated": "This field is deprecated" }, + { + "name": "account_guid", + "type": "TypeString", + "description": "The bluemix account guid this cluster belongs to", + "optional": true, + "deprecated": "This field is deprecated" + }, { "name": "key", "type": "TypeString", @@ -103039,14 +105920,11 @@ "optional": true }, { - "name": "tags", - "type": "TypeSet", - "description": "List of tags for the resource", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "role", + "type": "TypeString", + "description": "Role info", + "immutable": true, + "optional": true }, { "name": "region", @@ -103056,14 +105934,6 @@ "optional": true, "deprecated": "This field is deprecated" }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true - }, { "name": "cluster_name_id", "type": "TypeString", @@ -103082,51 +105952,169 @@ "immutable": true, "optional": true, "computed": true + } + ], + "ibm_container_cluster": [ + { + "name": "server_url", + "type": "TypeString", + "computed": true }, { - "name": "service_instance_id", + "name": "wait_for_worker_update", + "type": "TypeBool", + "description": "Wait for worker node to update during kube version update.", + "default_value": true, + "optional": true + }, + { + "name": "workers_info", + "type": "TypeList", + "description": "The IDs of the worker node", + "optional": true, + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "optional": true, + "computed": true + }, + "pool_name": { + "name": "pool_name", + "type": "TypeString", + "computed": true + }, + "version": { + "name": "version", + "type": "TypeString", + "optional": true, + "computed": true + } + } + }, + { + "name": "space_guid", "type": "TypeString", - "description": "Service instance ID", - "immutable": true, + "description": "The bluemix space guid this cluster belongs to", "optional": true, - "computed": true + "deprecated": "This field is deprecated" }, { - "name": "namespace_id", + "name": "wait_time_minutes", + "type": "TypeInt", + "optional": true, + "deprecated": "This field is deprecated" + }, + { + "name": "image_security_enforcement", + "type": "TypeBool", + "description": "Set true to enable image security enforcement policies", + "default_value": false, + "optional": true + }, + { + "name": "resource_status", "type": "TypeString", - "description": "namespace ID", - "immutable": true, - "required": true + "description": "The status of the resource", + "computed": true }, { - "name": "account_guid", + "name": "taints", + "type": "TypeSet", + "description": "WorkerPool Taints", + "optional": true, + "elem": { + "effect": { + "name": "effect", + "type": "TypeString", + "description": "Effect for taint. Accepted values are NoSchedule, PreferNoSchedule and NoExecute.", + "required": true + }, + "key": { + "name": "key", + "type": "TypeString", + "description": "Key for taint", + "required": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Value for taint.", + "required": true + } + } + }, + { + "name": "gateway_enabled", + "type": "TypeBool", + "description": "Set true for gateway enabled clusters", + "default_value": false, + "optional": true + }, + { + "name": "kube_version", "type": "TypeString", - "description": "The bluemix account guid this cluster belongs to", + "description": "Kubernetes version info", "optional": true, - "deprecated": "This field is deprecated" + "computed": true }, { - "name": "role", + "name": "resource_group_id", "type": "TypeString", - "description": "Role info", - "immutable": true, + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "optional": true, + "computed": true + }, + { + "name": "default_pool_size", + "type": "TypeInt", + "description": "The size of the default worker pool", + "default_value": 1, "optional": true - } - ], - "ibm_container_cluster": [ + }, { - "name": "patch_version", + "name": "wait_till", "type": "TypeString", - "description": "Kubernetes patch version", + "description": "wait_till can be configured for Master Ready, One worker Ready, Ingress Ready or Normal", + "default_value": "IngressReady", "optional": true }, { - "name": "operating_system", + "name": "name", "type": "TypeString", - "description": "The operating system of the workers in the default worker pool.", + "description": "The cluster name", "immutable": true, + "required": true + }, + { + "name": "kms_config", + "type": "TypeList", + "description": "Enables KMS on a given cluster", "optional": true, - "computed": true + "elem": { + "crk_id": { + "name": "crk_id", + "type": "TypeString", + "description": "ID of the customer root key.", + "required": true + }, + "instance_id": { + "name": "instance_id", + "type": "TypeString", + "description": "ID of the KMS instance to use to encrypt the cluster.", + "required": true + }, + "private_endpoint": { + "name": "private_endpoint", + "type": "TypeBool", + "description": "Specify this option to use the KMS public service endpoint.", + "default_value": false, + "optional": true + } + }, + "max_items": 1 }, { "name": "worker_pools", @@ -103197,46 +106185,6 @@ } } }, - { - "name": "datacenter", - "type": "TypeString", - "description": "The datacenter where this cluster will be deployed", - "immutable": true, - "required": true - }, - { - "name": "taints", - "type": "TypeSet", - "description": "WorkerPool Taints", - "optional": true, - "elem": { - "effect": { - "name": "effect", - "type": "TypeString", - "description": "Effect for taint. Accepted values are NoSchedule, PreferNoSchedule and NoExecute.", - "required": true - }, - "key": { - "name": "key", - "type": "TypeString", - "description": "Key for taint", - "required": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Value for taint.", - "required": true - } - } - }, - { - "name": "private_vlan_id", - "type": "TypeString", - "description": "Private VLAN ID", - "immutable": true, - "optional": true - }, { "name": "albs", "type": "TypeList", @@ -103290,110 +106238,72 @@ } }, { - "name": "service_subnet", + "name": "resource_group_name", "type": "TypeString", - "description": "Custom subnet CIDR to provide private IP addresses for services", - "immutable": true, - "optional": true, + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "default_pool_size", - "type": "TypeInt", - "description": "The size of the default worker pool", - "default_value": 1, - "optional": true - }, - { - "name": "kube_version", + "name": "region", "type": "TypeString", - "description": "Kubernetes version info", + "description": "The cluster region", + "cloud_data_type": "region", "optional": true, - "computed": true - }, - { - "name": "retry_patch_version", - "type": "TypeInt", - "description": "Argument which helps to retry the patch version updates on worker nodes. Increment the value to retry the patch updates if the previous apply fails", - "optional": true + "computed": true, + "deprecated": "This field is deprecated" }, { - "name": "machine_type", + "name": "private_service_endpoint_url", "type": "TypeString", - "description": "Machine type", - "immutable": true, - "optional": true - }, - { - "name": "wait_time_minutes", - "type": "TypeInt", - "optional": true, - "deprecated": "This field is deprecated" + "computed": true }, { - "name": "kms_config", - "type": "TypeList", - "description": "Enables KMS on a given cluster", + "name": "labels", + "type": "TypeMap", + "description": "list of labels to the default worker pool", "optional": true, + "computed": true, "elem": { - "crk_id": { - "name": "crk_id", - "type": "TypeString", - "description": "ID of the customer root key.", - "required": true - }, - "instance_id": { - "name": "instance_id", - "type": "TypeString", - "description": "ID of the KMS instance to use to encrypt the cluster.", - "required": true - }, - "private_endpoint": { - "name": "private_endpoint", - "type": "TypeBool", - "description": "Specify this option to use the KMS public service endpoint.", - "default_value": false, - "optional": true - } - }, - "max_items": 1 - }, - { - "name": "disk_encryption", - "type": "TypeBool", - "description": "disc encryption done, if set to true.", - "default_value": true, - "immutable": true, - "optional": true + "type": "TypeString" + } }, { - "name": "force_delete_storage", - "type": "TypeBool", - "description": "Force the removal of a cluster and its persistent storage. Deleted data cannot be recovered", - "default_value": false, - "optional": true + "name": "ingress_hostname", + "type": "TypeString", + "computed": true }, { - "name": "org_guid", + "name": "public_service_endpoint_url", "type": "TypeString", - "description": "The bluemix organization guid this cluster belongs to", - "optional": true, - "deprecated": "This field is deprecated" + "computed": true }, { - "name": "private_service_endpoint_url", + "name": "operating_system", "type": "TypeString", + "description": "The operating system of the workers in the default worker pool.", + "immutable": true, + "optional": true, "computed": true }, { - "name": "billing", - "type": "TypeString", + "name": "tags", + "type": "TypeSet", + "description": "Tags for the resource", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", "optional": true, - "deprecated": "This field is deprecated" + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "server_url", + "name": "service_subnet", "type": "TypeString", + "description": "Custom subnet CIDR to provide private IP addresses for services", + "immutable": true, + "optional": true, "computed": true }, { @@ -103406,28 +106316,38 @@ } }, { - "name": "public_service_endpoint_url", + "name": "account_guid", "type": "TypeString", - "computed": true + "description": "The bluemix account guid this cluster belongs to", + "optional": true, + "deprecated": "This field is deprecated" }, { - "name": "resource_status", - "type": "TypeString", - "description": "The status of the resource", + "name": "public_service_endpoint", + "type": "TypeBool", + "immutable": true, + "optional": true, "computed": true }, { - "name": "name", + "name": "public_vlan_id", "type": "TypeString", - "description": "The cluster name", + "description": "Public VLAN ID", "immutable": true, - "required": true + "optional": true }, { - "name": "entitlement", + "name": "resource_name", "type": "TypeString", - "description": "Entitlement option reduces additional OCP Licence cost in Openshift Clusters", - "optional": true + "description": "The name of the resource", + "computed": true + }, + { + "name": "hardware", + "type": "TypeString", + "description": "Hardware type", + "immutable": true, + "required": true }, { "name": "webhook", @@ -103452,115 +106372,100 @@ } }, { - "name": "tags", - "type": "TypeSet", - "description": "Tags for the resource", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "crn", + "type": "TypeString", + "description": "CRN of resource instance", + "cloud_data_type": "crn", + "computed": true }, { - "name": "resource_group_id", + "name": "resource_crn", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "optional": true, + "description": "The crn of the resource", "computed": true }, { - "name": "public_service_endpoint", - "type": "TypeBool", - "immutable": true, - "optional": true, - "computed": true + "name": "entitlement", + "type": "TypeString", + "description": "Entitlement option reduces additional OCP Licence cost in Openshift Clusters", + "optional": true }, { - "name": "region", + "name": "billing", "type": "TypeString", - "description": "The cluster region", - "cloud_data_type": "region", "optional": true, - "computed": true, "deprecated": "This field is deprecated" }, { - "name": "wait_for_worker_update", + "name": "disk_encryption", "type": "TypeBool", - "description": "Wait for worker node to update during kube version update.", + "description": "disc encryption done, if set to true.", "default_value": true, + "immutable": true, "optional": true }, { - "name": "pod_subnet", + "name": "patch_version", "type": "TypeString", - "description": "Custom subnet CIDR to provide private IP addresses for pods", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "is_trusted", - "type": "TypeBool", - "optional": true, - "deprecated": "This field is deprecated" + "description": "Kubernetes patch version", + "optional": true }, { - "name": "ingress_hostname", + "name": "ingress_secret", "type": "TypeString", + "secure": true, "computed": true }, { - "name": "ingress_secret", + "name": "force_delete_storage", + "type": "TypeBool", + "description": "Force the removal of a cluster and its persistent storage. Deleted data cannot be recovered", + "default_value": false, + "optional": true + }, + { + "name": "resource_controller_url", "type": "TypeString", - "secure": true, + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", "computed": true }, { - "name": "private_service_endpoint", - "type": "TypeBool", - "immutable": true, + "name": "worker_num", + "type": "TypeInt", + "description": "Number of worker nodes", + "default_value": 0, "optional": true, - "computed": true + "deprecated": "This field is deprecated" }, { - "name": "image_security_enforcement", + "name": "update_all_workers", "type": "TypeBool", - "description": "Set true to enable image security enforcement policies", + "description": "Updates all the woker nodes if sets to true", "default_value": false, "optional": true }, { - "name": "space_guid", + "name": "machine_type", "type": "TypeString", - "description": "The bluemix space guid this cluster belongs to", - "optional": true, - "deprecated": "This field is deprecated" + "description": "Machine type", + "immutable": true, + "optional": true }, { - "name": "public_vlan_id", + "name": "private_vlan_id", "type": "TypeString", - "description": "Public VLAN ID", + "description": "Private VLAN ID", "immutable": true, "optional": true }, { - "name": "resource_name", + "name": "pod_subnet", "type": "TypeString", - "description": "The name of the resource", + "description": "Custom subnet CIDR to provide private IP addresses for pods", + "immutable": true, + "optional": true, "computed": true }, - { - "name": "wait_till", - "type": "TypeString", - "description": "wait_till can be configured for Master Ready, One worker Ready, Ingress Ready or Normal", - "default_value": "IngressReady", - "optional": true - }, { "name": "no_subnet", "type": "TypeBool", @@ -103570,104 +106475,54 @@ "optional": true }, { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, - { - "name": "hardware", - "type": "TypeString", - "description": "Hardware type", - "immutable": true, - "required": true - }, - { - "name": "gateway_enabled", + "name": "is_trusted", "type": "TypeBool", - "description": "Set true for gateway enabled clusters", - "default_value": false, - "optional": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "account_guid", - "type": "TypeString", - "description": "The bluemix account guid this cluster belongs to", "optional": true, "deprecated": "This field is deprecated" }, { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", + "name": "private_service_endpoint", + "type": "TypeBool", + "immutable": true, + "optional": true, "computed": true }, { - "name": "resource_crn", - "type": "TypeString", - "description": "The crn of the resource", - "computed": true + "name": "retry_patch_version", + "type": "TypeInt", + "description": "Argument which helps to retry the patch version updates on worker nodes. Increment the value to retry the patch updates if the previous apply fails", + "optional": true }, { - "name": "worker_num", - "type": "TypeInt", - "description": "Number of worker nodes", - "default_value": 0, + "name": "org_guid", + "type": "TypeString", + "description": "The bluemix organization guid this cluster belongs to", "optional": true, "deprecated": "This field is deprecated" }, { - "name": "labels", - "type": "TypeMap", - "description": "list of labels to the default worker pool", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, + "name": "datacenter", + "type": "TypeString", + "description": "The datacenter where this cluster will be deployed", + "immutable": true, + "required": true + } + ], + "ibm_container_cluster_feature": [ { - "name": "workers_info", - "type": "TypeList", - "description": "The IDs of the worker node", - "optional": true, - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "optional": true, - "computed": true - }, - "pool_name": { - "name": "pool_name", - "type": "TypeString", - "computed": true - }, - "version": { - "name": "version", - "type": "TypeString", - "optional": true, - "computed": true - } - } + "name": "refresh_api_servers", + "type": "TypeBool", + "description": "Boolean value true of API server to be refreshed in K8S cluster", + "default_value": true, + "optional": true }, { - "name": "update_all_workers", + "name": "reload_workers", "type": "TypeBool", - "description": "Updates all the woker nodes if sets to true", - "default_value": false, + "description": "Boolean value set true if worker nodes to be reloaded", + "default_value": true, "optional": true - } - ], - "ibm_container_cluster_feature": [ + }, { "name": "private_service_endpoint_url", "type": "TypeString", @@ -103708,20 +106563,6 @@ "name": "public_service_endpoint_url", "type": "TypeString", "computed": true - }, - { - "name": "refresh_api_servers", - "type": "TypeBool", - "description": "Boolean value true of API server to be refreshed in K8S cluster", - "default_value": true, - "optional": true - }, - { - "name": "reload_workers", - "type": "TypeBool", - "description": "Boolean value set true if worker nodes to be reloaded", - "default_value": true, - "optional": true } ], "ibm_container_dedicated_host": [ @@ -103868,6 +106709,13 @@ } ], "ibm_container_dedicated_host_pool": [ + { + "name": "metro", + "type": "TypeString", + "description": "The metro to create the dedicated host pool in", + "immutable": true, + "required": true + }, { "name": "flavor_class", "type": "TypeString", @@ -103954,28 +106802,21 @@ "description": "The name of the dedicated host pool", "immutable": true, "required": true - }, - { - "name": "metro", - "type": "TypeString", - "description": "The metro to create the dedicated host pool in", - "immutable": true, - "required": true } ], "ibm_container_ingress_instance": [ { - "name": "user_managed", - "type": "TypeBool", - "description": "If the instance was created by the user", - "computed": true + "name": "instance_crn", + "type": "TypeString", + "description": "Instance CRN id", + "immutable": true, + "required": true }, { - "name": "is_default", - "type": "TypeBool", - "description": "Designates if the instance is the default for the cluster", - "default_value": false, - "optional": true + "name": "secret_group_name", + "type": "TypeString", + "description": "Name of the secret group for the instance", + "computed": true }, { "name": "status", @@ -103990,25 +106831,11 @@ "computed": true }, { - "name": "secret_group_id", - "type": "TypeString", - "description": "Secret group for the instance registration", - "default_value": "", - "optional": true - }, - { - "name": "secret_group_name", - "type": "TypeString", - "description": "Name of the secret group for the instance", + "name": "user_managed", + "type": "TypeBool", + "description": "If the instance was created by the user", "computed": true }, - { - "name": "instance_crn", - "type": "TypeString", - "description": "Instance CRN id", - "immutable": true, - "required": true - }, { "name": "cluster", "type": "TypeString", @@ -104025,15 +106852,33 @@ "type": "TypeString", "description": "Instance registration name", "computed": true + }, + { + "name": "secret_group_id", + "type": "TypeString", + "description": "Secret group for the instance registration", + "default_value": "", + "optional": true + }, + { + "name": "is_default", + "type": "TypeBool", + "description": "Designates if the instance is the default for the cluster", + "default_value": false, + "optional": true } ], "ibm_container_ingress_secret_opaque": [ { - "name": "secret_name", + "name": "cluster", "type": "TypeString", - "description": "Secret name", + "description": "Cluster ID or name", + "cloud_data_type": "cluster", "immutable": true, - "required": true + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] }, { "name": "secret_namespace", @@ -104042,12 +106887,6 @@ "immutable": true, "required": true }, - { - "name": "type", - "type": "TypeString", - "description": "Opaque secret type", - "computed": true - }, { "name": "persistence", "type": "TypeBool", @@ -104061,12 +106900,6 @@ "description": "If the secret was created by the user", "computed": true }, - { - "name": "status", - "type": "TypeString", - "description": "Status of the secret", - "computed": true - }, { "name": "fields", "type": "TypeSet", @@ -104106,53 +106939,41 @@ } }, { - "name": "cluster", + "name": "secret_name", "type": "TypeString", - "description": "Cluster ID or name", - "cloud_data_type": "cluster", + "description": "Secret name", "immutable": true, "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] - } - ], - "ibm_container_ingress_secret_tls": [ - { - "name": "cert_crn", - "type": "TypeString", - "description": "Certificate CRN", - "required": true + "min_length": 1, + "max_length": 63, + "matches": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)$" }, { - "name": "domain_name", + "name": "type", "type": "TypeString", - "description": "Domain name", + "description": "Opaque secret type", "computed": true }, { - "name": "expires_on", + "name": "status", "type": "TypeString", - "description": "Certificate expires on date", + "description": "Status of the secret", "computed": true }, { - "name": "user_managed", - "type": "TypeBool", - "description": "If the secret was created by the user", - "computed": true + "name": "update_secret", + "type": "TypeInt", + "description": "Updates secret from secrets manager if value is changed (increment each usage)", + "optional": true }, { - "name": "cluster", + "name": "last_updated_timestamp", "type": "TypeString", - "description": "Cluster ID or name", - "cloud_data_type": "cluster", - "immutable": true, - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] - }, + "description": "Timestamp secret was last updated", + "computed": true + } + ], + "ibm_container_ingress_secret_tls": [ { "name": "type", "type": "TypeString", @@ -104160,10 +106981,16 @@ "computed": true }, { - "name": "persistence", - "type": "TypeBool", - "description": "Persistence of secret", - "optional": true + "name": "cert_crn", + "type": "TypeString", + "description": "Certificate CRN", + "required": true + }, + { + "name": "expires_on", + "type": "TypeString", + "description": "Certificate expires on date", + "computed": true }, { "name": "status", @@ -104171,18 +106998,38 @@ "description": "Secret Status", "computed": true }, + { + "name": "update_secret", + "type": "TypeInt", + "description": "Updates secret from secrets manager if value is changed (increment each usage)", + "optional": true + }, { "name": "last_updated_timestamp", "type": "TypeString", "description": "Timestamp secret was last updated", "computed": true }, + { + "name": "cluster", + "type": "TypeString", + "description": "Cluster ID or name", + "cloud_data_type": "cluster", + "immutable": true, + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] + }, { "name": "secret_name", "type": "TypeString", "description": "Secret name", "immutable": true, - "required": true + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)$" }, { "name": "secret_namespace", @@ -104190,39 +107037,43 @@ "description": "Secret namespace", "immutable": true, "required": true - } - ], - "ibm_container_nlb_dns": [ + }, { - "name": "nlb_ssl_secret_name", - "type": "TypeString", - "computed": true + "name": "persistence", + "type": "TypeBool", + "description": "Persistence of secret", + "optional": true }, { - "name": "nlb_ssl_secret_status", + "name": "domain_name", "type": "TypeString", + "description": "Domain name", "computed": true }, { - "name": "nlb_type", - "type": "TypeString", + "name": "user_managed", + "type": "TypeBool", + "description": "If the secret was created by the user", "computed": true - }, + } + ], + "ibm_container_nlb_dns": [ { - "name": "secret_namespace", + "name": "nlb_dns_type", "type": "TypeString", "computed": true }, { - "name": "nlb_monitor_state", + "name": "nlb_ssl_secret_name", "type": "TypeString", "computed": true }, { - "name": "nlb_host", + "name": "resource_group_id", "type": "TypeString", - "immutable": true, - "required": true + "description": "The ID of the resource group that the cluster is in. To check the resource group ID of the cluster, use the GET /v1/clusters/idOrName API. To list available resource group IDs, run ibmcloud resource groups.", + "cloud_data_type": "resource_group", + "optional": true }, { "name": "nlb_ips", @@ -104233,48 +107084,44 @@ } }, { - "name": "nlb_dns_type", + "name": "nlb_host", + "type": "TypeString", + "immutable": true, + "required": true + }, + { + "name": "nlb_monitor_state", "type": "TypeString", "computed": true }, { - "name": "resource_group_id", + "name": "nlb_ssl_secret_status", "type": "TypeString", - "description": "The ID of the resource group that the cluster is in. To check the resource group ID of the cluster, use the GET /v1/clusters/idOrName API. To list available resource group IDs, run ibmcloud resource groups.", - "cloud_data_type": "resource_group", - "optional": true + "computed": true }, { - "name": "cluster", + "name": "nlb_type", "type": "TypeString", - "description": "The name or ID of the cluster. To list the clusters that you have access to, use the `GET /v1/clusters` API or run `ibmcloud ks cluster ls`.", - "cloud_data_type": "cluster", - "immutable": true, - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] - } - ], - "ibm_container_storage_attachment": [ + "computed": true + }, { - "name": "volume", + "name": "secret_namespace", "type": "TypeString", - "description": "VPC Volume ID", - "immutable": true, - "required": true + "computed": true }, { "name": "cluster", "type": "TypeString", - "description": "Cluster name or ID", + "description": "The name or ID of the cluster. To list the clusters that you have access to, use the `GET /v1/clusters` API or run `ibmcloud ks cluster ls`.", "cloud_data_type": "cluster", "immutable": true, "required": true, "cloud_data_range": [ "resolved_to:id" ] - }, + } + ], + "ibm_container_storage_attachment": [ { "name": "worker", "type": "TypeString", @@ -104313,48 +107160,27 @@ "type": "TypeString", "description": "The type of volume", "computed": true - } - ], - "ibm_container_vpc_alb": [ + }, { - "name": "alb_id", + "name": "volume", "type": "TypeString", - "description": "ALB ID", + "description": "VPC Volume ID", "immutable": true, "required": true }, { - "name": "alb_type", + "name": "cluster", "type": "TypeString", - "description": "Type of the ALB", - "computed": true - }, - { - "name": "enable", - "type": "TypeBool", - "description": "Enable the ALB instance in the cluster", - "optional": true - }, - { - "name": "disable_deployment", - "type": "TypeBool", - "description": "Disable the ALB instance in the cluster", + "description": "Cluster name or ID", + "cloud_data_type": "cluster", "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "load_balancer_hostname", - "type": "TypeString", - "description": "Load balancer host name", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "Status of the ALB", - "computed": true - }, + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] + } + ], + "ibm_container_vpc_alb": [ { "name": "zone", "type": "TypeString", @@ -104369,21 +107195,21 @@ "optional": true }, { - "name": "cluster", + "name": "alb_type", "type": "TypeString", - "description": "cluster id", + "description": "Type of the ALB", "computed": true }, { - "name": "name", + "name": "cluster", "type": "TypeString", - "description": "ALB name", + "description": "cluster id", "computed": true }, { - "name": "resize", - "type": "TypeBool", - "description": "boolean value to resize the albs", + "name": "load_balancer_hostname", + "type": "TypeString", + "description": "Load balancer host name", "computed": true }, { @@ -104391,40 +107217,53 @@ "type": "TypeString", "description": "ALB state", "computed": true - } - ], - "ibm_container_vpc_alb_create": [ - { - "name": "name", - "type": "TypeString", - "description": "ALB name", - "computed": true }, { - "name": "load_balancer_hostname", - "type": "TypeString", - "description": "Load balancer host name", + "name": "resize", + "type": "TypeBool", + "description": "boolean value to resize the albs", "computed": true }, { - "name": "state", + "name": "status", "type": "TypeString", - "description": "ALB state", + "description": "Status of the ALB", "computed": true }, { - "name": "type", + "name": "alb_id", "type": "TypeString", - "description": "The type of ALB that you want to create.", + "description": "ALB ID", "immutable": true, "required": true }, { - "name": "alb_id", - "type": "TypeString", - "description": "The ID of the application load balancer (ALB).", + "name": "enable", + "type": "TypeBool", + "description": "Enable the ALB instance in the cluster", + "optional": true + }, + { + "name": "disable_deployment", + "type": "TypeBool", + "description": "Disable the ALB instance in the cluster", "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "ALB name", "computed": true + } + ], + "ibm_container_vpc_alb_create": [ + { + "name": "enable", + "type": "TypeBool", + "description": "Enable the ALB instance in the cluster", + "optional": true }, { "name": "alb_type", @@ -104438,18 +107277,37 @@ "description": "Disable the ALB instance in the cluster", "computed": true }, + { + "name": "name", + "type": "TypeString", + "description": "ALB name", + "computed": true + }, { "name": "resize", "type": "TypeBool", "description": "boolean value to resize the albs", "computed": true }, + { + "name": "state", + "type": "TypeString", + "description": "ALB state", + "computed": true + }, { "name": "status", "type": "TypeString", "description": "Status of the ALB", "computed": true }, + { + "name": "type", + "type": "TypeString", + "description": "The type of ALB that you want to create.", + "immutable": true, + "required": true + }, { "name": "zone", "type": "TypeString", @@ -104476,10 +107334,17 @@ "optional": true }, { - "name": "enable", - "type": "TypeBool", - "description": "Enable the ALB instance in the cluster", - "optional": true + "name": "alb_id", + "type": "TypeString", + "description": "The ID of the application load balancer (ALB).", + "immutable": true, + "computed": true + }, + { + "name": "load_balancer_hostname", + "type": "TypeString", + "description": "Load balancer host name", + "computed": true } ], "ibm_container_vpc_cluster": [ @@ -104490,6 +107355,33 @@ "immutable": true, "required": true }, + { + "name": "name", + "type": "TypeString", + "description": "The cluster name", + "immutable": true, + "required": true + }, + { + "name": "zones", + "type": "TypeSet", + "description": "Zone info", + "required": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "Zone for the worker pool in a multizone cluster", + "required": true + }, + "subnet_id": { + "name": "subnet_id", + "type": "TypeString", + "description": "The VPC subnet to assign the cluster", + "required": true + } + } + }, { "name": "retry_patch_version", "type": "TypeInt", @@ -104497,60 +107389,96 @@ "optional": true }, { - "name": "service_subnet", + "name": "secondary_storage", "type": "TypeString", - "description": "Custom subnet CIDR to provide private IP addresses for services", + "description": "The secondary storage option for the default worker pool.", "immutable": true, "optional": true, "computed": true }, { - "name": "operating_system", + "name": "albs", + "type": "TypeList", + "computed": true, + "elem": { + "alb_type": { + "name": "alb_type", + "type": "TypeString", + "computed": true + }, + "disable_deployment": { + "name": "disable_deployment", + "type": "TypeBool", + "computed": true + }, + "enable": { + "name": "enable", + "type": "TypeBool", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "computed": true + }, + "load_balancer_hostname": { + "name": "load_balancer_hostname", + "type": "TypeString", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "computed": true + }, + "resize": { + "name": "resize", + "type": "TypeBool", + "computed": true + }, + "state": { + "name": "state", + "type": "TypeString", + "computed": true + } + } + }, + { + "name": "pod_subnet", "type": "TypeString", - "description": "The operating system of the workers in the default worker pool.", + "description": "Custom subnet CIDR to provide private IP addresses for pods", "immutable": true, "optional": true, "computed": true }, { - "name": "tags", - "type": "TypeSet", - "description": "List of tags for the resources", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "worker_count", + "type": "TypeInt", + "description": "Number of worker nodes in the cluster", + "default_value": 1, + "optional": true }, { - "name": "wait_till", + "name": "resource_controller_url", "type": "TypeString", - "description": "wait_till can be configured for Master Ready, One worker Ready or Ingress Ready or Normal", - "default_value": "IngressReady", - "optional": true + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", + "computed": true }, { - "name": "cos_instance_crn", + "name": "kms_account_id", "type": "TypeString", - "description": "A standard cloud object storage instance CRN to back up the internal registry in your OpenShift on VPC Gen 2 cluster", + "description": "Account ID of kms instance holder - if not provided, defaults to the account in use", "optional": true }, { - "name": "resource_controller_url", + "name": "private_service_endpoint_url", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", "computed": true }, { - "name": "resource_group_id", + "name": "ingress_secret", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, + "secure": true, "computed": true }, { @@ -104560,97 +107488,94 @@ "computed": true }, { - "name": "worker_count", - "type": "TypeInt", - "description": "Number of worker nodes in the cluster", - "default_value": 1, - "optional": true - }, - { - "name": "force_delete_storage", - "type": "TypeBool", - "description": "Force the removal of a cluster and its persistent storage. Deleted data cannot be recovered", - "default_value": false, - "optional": true + "name": "resource_status", + "type": "TypeString", + "description": "The status of the resource", + "computed": true }, { - "name": "image_security_enforcement", - "type": "TypeBool", - "description": "Set true to enable image security enforcement policies", - "default_value": false, - "optional": true + "name": "vpc_id", + "type": "TypeString", + "description": "The vpc id where the cluster is", + "immutable": true, + "required": true }, { - "name": "master_status", + "name": "kube_version", "type": "TypeString", + "description": "Kubernetes version", + "optional": true, "computed": true }, { - "name": "host_pool_id", + "name": "patch_version", "type": "TypeString", - "description": "The ID of the cluster's associated host pool", - "immutable": true, + "description": "Kubernetes patch version", "optional": true }, { - "name": "resource_group_name", + "name": "wait_till", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true + "description": "wait_till can be configured for Master Ready, One worker Ready or Ingress Ready or Normal", + "default_value": "IngressReady", + "optional": true }, { - "name": "zones", - "type": "TypeSet", - "description": "Zone info", - "required": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "Zone for the worker pool in a multizone cluster", - "required": true - }, - "subnet_id": { - "name": "subnet_id", - "type": "TypeString", - "description": "The VPC subnet to assign the cluster", - "required": true - } - } + "name": "cos_instance_crn", + "type": "TypeString", + "description": "A standard cloud object storage instance CRN to back up the internal registry in your OpenShift on VPC Gen 2 cluster", + "optional": true }, { - "name": "wait_for_worker_update", + "name": "force_delete_storage", "type": "TypeBool", - "description": "Wait for worker node to update during kube version update.", - "default_value": true, + "description": "Force the removal of a cluster and its persistent storage. Deleted data cannot be recovered", + "default_value": false, "optional": true }, { - "name": "secondary_storage", + "name": "resource_group_id", "type": "TypeString", - "description": "The secondary storage option for the default worker pool.", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", "immutable": true, "optional": true, "computed": true }, { - "name": "ingress_secret", + "name": "host_pool_id", "type": "TypeString", - "secure": true, - "computed": true + "description": "The ID of the cluster's associated host pool", + "immutable": true, + "optional": true }, { - "name": "resource_status", + "name": "resource_name", "type": "TypeString", - "description": "The status of the resource", + "description": "The name of the resource", "computed": true }, { - "name": "name", + "name": "worker_labels", + "type": "TypeMap", + "description": "Labels for default worker pool", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "state", "type": "TypeString", - "description": "The cluster name", - "immutable": true, - "required": true + "computed": true + }, + { + "name": "image_security_enforcement", + "type": "TypeBool", + "description": "Set true to enable image security enforcement policies", + "default_value": false, + "optional": true }, { "name": "kms_config", @@ -104688,11 +107613,28 @@ "optional": true }, { - "name": "patch_version", - "type": "TypeString", - "description": "Kubernetes patch version", - "optional": true - }, + "name": "tags", + "type": "TypeSet", + "description": "List of tags for the resources", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "master_status", + "type": "TypeString", + "computed": true + }, + { + "name": "public_service_endpoint_url", + "type": "TypeString", + "computed": true + }, { "name": "taints", "type": "TypeSet", @@ -104720,193 +107662,112 @@ } }, { - "name": "disable_public_service_endpoint", - "type": "TypeBool", - "description": "Boolean value true if Public service endpoint to be disabled", - "default_value": false, - "optional": true - }, - { - "name": "kms_instance_id", - "type": "TypeString", - "description": "Instance ID for boot volume encryption", - "optional": true - }, - { - "name": "state", - "type": "TypeString", - "computed": true - }, - { - "name": "albs", - "type": "TypeList", - "computed": true, - "elem": { - "alb_type": { - "name": "alb_type", - "type": "TypeString", - "computed": true - }, - "disable_deployment": { - "name": "disable_deployment", - "type": "TypeBool", - "computed": true - }, - "enable": { - "name": "enable", - "type": "TypeBool", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "computed": true - }, - "load_balancer_hostname": { - "name": "load_balancer_hostname", - "type": "TypeString", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "computed": true - }, - "resize": { - "name": "resize", - "type": "TypeBool", - "computed": true - }, - "state": { - "name": "state", - "type": "TypeString", - "computed": true - } - } - }, - { - "name": "public_service_endpoint_url", + "name": "crn", "type": "TypeString", + "description": "CRN of resource instance", + "cloud_data_type": "crn", "computed": true }, { - "name": "private_service_endpoint_url", + "name": "ingress_hostname", "type": "TypeString", "computed": true }, { - "name": "vpc_id", - "type": "TypeString", - "description": "The vpc id where the cluster is", - "immutable": true, - "required": true - }, - { - "name": "worker_labels", - "type": "TypeMap", - "description": "Labels for default worker pool", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "crk", - "type": "TypeString", - "description": "Root Key ID for boot volume encryption", + "name": "wait_for_worker_update", + "type": "TypeBool", + "description": "Wait for worker node to update during kube version update.", + "default_value": true, "optional": true }, { - "name": "kube_version", + "name": "service_subnet", "type": "TypeString", - "description": "Kubernetes version", + "description": "Custom subnet CIDR to provide private IP addresses for services", + "immutable": true, "optional": true, "computed": true }, { - "name": "pod_subnet", + "name": "operating_system", "type": "TypeString", - "description": "Custom subnet CIDR to provide private IP addresses for pods", + "description": "The operating system of the workers in the default worker pool.", "immutable": true, "optional": true, "computed": true }, { - "name": "kms_account_id", - "type": "TypeString", - "description": "Account ID of kms instance holder - if not provided, defaults to the account in use", + "name": "disable_public_service_endpoint", + "type": "TypeBool", + "description": "Boolean value true if Public service endpoint to be disabled", + "default_value": false, "optional": true }, { - "name": "master_url", + "name": "entitlement", "type": "TypeString", - "computed": true + "description": "Entitlement option reduces additional OCP Licence cost in Openshift Clusters", + "optional": true }, { - "name": "resource_name", + "name": "resource_group_name", "type": "TypeString", - "description": "The name of the resource", + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "entitlement", + "name": "kms_instance_id", "type": "TypeString", - "description": "Entitlement option reduces additional OCP Licence cost in Openshift Clusters", + "description": "Instance ID for boot volume encryption", "optional": true }, { - "name": "crn", + "name": "crk", "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", - "computed": true + "description": "Root Key ID for boot volume encryption", + "optional": true }, { - "name": "ingress_hostname", + "name": "master_url", "type": "TypeString", "computed": true } ], "ibm_container_vpc_worker": [ { - "name": "check_ptx_status", - "type": "TypeBool", - "description": "Check portworx status after worker replace", - "default_value": false, + "name": "sds", + "type": "TypeString", + "description": "Name of Software Defined Storage", "immutable": true, "optional": true }, { - "name": "ptx_timeout", + "name": "resource_group_id", "type": "TypeString", - "description": "Timeout for checking ptx pods/status", - "default_value": "15m", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", "immutable": true, "optional": true }, { - "name": "replace_worker", + "name": "ip", "type": "TypeString", - "description": "Worker name/id that needs to be replaced", - "immutable": true, - "required": true + "description": "IP of the replaced worker", + "computed": true }, { - "name": "resource_group_id", + "name": "cluster_name", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", + "description": "Cluster name", "immutable": true, - "optional": true + "required": true }, { - "name": "sds_timeout", + "name": "replace_worker", "type": "TypeString", - "description": "Timeout for checking sds deployment/status", - "default_value": "15m", + "description": "Worker name/id that needs to be replaced", "immutable": true, - "optional": true + "required": true }, { "name": "kube_config_path", @@ -104916,27 +107777,37 @@ "optional": true }, { - "name": "ip", - "type": "TypeString", - "description": "IP of the replaced worker", - "computed": true + "name": "check_ptx_status", + "type": "TypeBool", + "description": "Check portworx status after worker replace", + "default_value": false, + "immutable": true, + "optional": true }, { - "name": "cluster_name", + "name": "ptx_timeout", "type": "TypeString", - "description": "Cluster name", + "description": "Timeout for checking ptx pods/status", + "default_value": "15m", "immutable": true, - "required": true + "optional": true }, { - "name": "sds", + "name": "sds_timeout", "type": "TypeString", - "description": "Name of Software Defined Storage", + "description": "Timeout for checking sds deployment/status", + "default_value": "15m", "immutable": true, "optional": true } ], "ibm_container_vpc_worker_pool": [ + { + "name": "worker_count", + "type": "TypeInt", + "description": "The number of workers", + "required": true + }, { "name": "host_pool_id", "type": "TypeString", @@ -104945,10 +107816,17 @@ "optional": true }, { - "name": "kms_instance_id", + "name": "resource_controller_url", "type": "TypeString", - "description": "Instance ID for boot volume encryption", - "optional": true + "description": "Resource Controller URL", + "computed": true + }, + { + "name": "flavor", + "type": "TypeString", + "description": "cluster node falvor", + "immutable": true, + "required": true }, { "name": "worker_pool_name", @@ -104958,24 +107836,20 @@ "required": true }, { - "name": "zones", - "type": "TypeSet", - "description": "Zones info", - "required": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "zone name", - "required": true - }, - "subnet_id": { - "name": "subnet_id", - "type": "TypeString", - "description": "subnet ID", - "required": true - } - } + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "vpc_id", + "type": "TypeString", + "description": "The vpc id where the cluster is", + "immutable": true, + "required": true }, { "name": "taints", @@ -105004,20 +107878,10 @@ } }, { - "name": "operating_system", - "type": "TypeString", - "description": "The operating system of the workers in the worker pool.", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "secondary_storage", + "name": "crk", "type": "TypeString", - "description": "The secondary storage option for the workers in the worker pool.", - "immutable": true, - "optional": true, - "computed": true + "description": "Root Key ID for boot volume encryption", + "optional": true }, { "name": "kms_account_id", @@ -105026,40 +107890,62 @@ "optional": true }, { - "name": "autoscale_enabled", - "type": "TypeBool", - "description": "Autoscaling is enabled on the workerpool", - "computed": true - }, - { - "name": "worker_pool_id", + "name": "cluster", "type": "TypeString", - "computed": true + "description": "Cluster name", + "cloud_data_type": "cluster", + "immutable": true, + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] }, { - "name": "worker_count", - "type": "TypeInt", - "description": "The number of workers", - "required": true + "name": "zones", + "type": "TypeSet", + "description": "Zones info", + "required": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "zone name", + "required": true + }, + "subnet_id": { + "name": "subnet_id", + "type": "TypeString", + "description": "subnet ID", + "required": true + } + } }, { - "name": "resource_controller_url", + "name": "worker_pool_id", "type": "TypeString", - "description": "Resource Controller URL", "computed": true }, { - "name": "crk", + "name": "kms_instance_id", "type": "TypeString", - "description": "Root Key ID for boot volume encryption", + "description": "Instance ID for boot volume encryption", "optional": true }, { - "name": "vpc_id", - "type": "TypeString", - "description": "The vpc id where the cluster is", - "immutable": true, - "required": true + "name": "autoscale_enabled", + "type": "TypeBool", + "description": "Autoscaling is enabled on the workerpool", + "computed": true + }, + { + "name": "labels", + "type": "TypeMap", + "description": "Labels", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "entitlement", @@ -105068,32 +107954,28 @@ "optional": true }, { - "name": "cluster", + "name": "operating_system", "type": "TypeString", - "description": "Cluster name", - "cloud_data_type": "cluster", + "description": "The operating system of the workers in the worker pool.", "immutable": true, - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "optional": true, + "computed": true }, { - "name": "flavor", + "name": "secondary_storage", "type": "TypeString", - "description": "cluster node falvor", + "description": "The secondary storage option for the workers in the worker pool.", "immutable": true, - "required": true - }, - { - "name": "labels", - "type": "TypeMap", - "description": "Labels", "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "computed": true + } + ], + "ibm_container_worker_pool": [ + { + "name": "state", + "type": "TypeString", + "description": "worker pool state", + "computed": true }, { "name": "resource_group_id", @@ -105101,26 +107983,38 @@ "description": "ID of the resource group.", "cloud_data_type": "resource_group", "immutable": true, - "optional": true, + "optional": true + }, + { + "name": "autoscale_enabled", + "type": "TypeBool", + "description": "Autoscaling is enabled on the workerpool", "computed": true - } - ], - "ibm_container_worker_pool": [ + }, { - "name": "hardware", + "name": "cluster", "type": "TypeString", - "description": "Hardware type", - "default_value": "shared", + "description": "Cluster name", + "cloud_data_type": "cluster", "immutable": true, - "optional": true + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] }, { - "name": "worker_pool_name", + "name": "machine_type", "type": "TypeString", - "description": "worker pool name", + "description": "worker nodes machine type", "immutable": true, "required": true }, + { + "name": "size_per_zone", + "type": "TypeInt", + "description": "Number of nodes per zone", + "required": true + }, { "name": "entitlement", "type": "TypeString", @@ -105128,18 +108022,56 @@ "optional": true }, { - "name": "operating_system", + "name": "region", "type": "TypeString", - "description": "The operating system of the workers in the worker pool.", - "immutable": true, + "description": "The worker pool region", + "cloud_data_type": "region", "optional": true, - "computed": true + "computed": true, + "deprecated": "This field is deprecated" + }, + { + "name": "zones", + "type": "TypeList", + "computed": true, + "elem": { + "private_vlan": { + "name": "private_vlan", + "type": "TypeString", + "computed": true + }, + "public_vlan": { + "name": "public_vlan", + "type": "TypeString", + "computed": true + }, + "worker_count": { + "name": "worker_count", + "type": "TypeInt", + "computed": true + }, + "zone": { + "name": "zone", + "type": "TypeString", + "computed": true + } + } }, { "name": "worker_pool_id", "type": "TypeString", "computed": true }, + { + "name": "labels", + "type": "TypeMap", + "description": "list of labels to worker pool", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "taints", "type": "TypeSet", @@ -105167,51 +108099,13 @@ } }, { - "name": "region", - "type": "TypeString", - "description": "The worker pool region", - "cloud_data_type": "region", - "optional": true, - "computed": true, - "deprecated": "This field is deprecated" - }, - { - "name": "resource_group_id", + "name": "hardware", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", + "description": "Hardware type", + "default_value": "shared", "immutable": true, "optional": true }, - { - "name": "machine_type", - "type": "TypeString", - "description": "worker nodes machine type", - "immutable": true, - "required": true - }, - { - "name": "size_per_zone", - "type": "TypeInt", - "description": "Number of nodes per zone", - "required": true - }, - { - "name": "state", - "type": "TypeString", - "description": "worker pool state", - "computed": true - }, - { - "name": "labels", - "type": "TypeMap", - "description": "list of labels to worker pool", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "resource_controller_url", "type": "TypeString", @@ -105219,21 +108113,19 @@ "computed": true }, { - "name": "autoscale_enabled", - "type": "TypeBool", - "description": "Autoscaling is enabled on the workerpool", - "computed": true + "name": "worker_pool_name", + "type": "TypeString", + "description": "worker pool name", + "immutable": true, + "required": true }, { - "name": "cluster", + "name": "operating_system", "type": "TypeString", - "description": "Cluster name", - "cloud_data_type": "cluster", + "description": "The operating system of the workers in the worker pool.", "immutable": true, - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "optional": true, + "computed": true }, { "name": "disk_encryption", @@ -105242,33 +108134,6 @@ "default_value": true, "immutable": true, "optional": true - }, - { - "name": "zones", - "type": "TypeList", - "computed": true, - "elem": { - "private_vlan": { - "name": "private_vlan", - "type": "TypeString", - "computed": true - }, - "public_vlan": { - "name": "public_vlan", - "type": "TypeString", - "computed": true - }, - "worker_count": { - "name": "worker_count", - "type": "TypeInt", - "computed": true - }, - "zone": { - "name": "zone", - "type": "TypeString", - "computed": true - } - } } ], "ibm_container_worker_pool_zone_attachment": [ @@ -105289,14 +108154,6 @@ "optional": true, "computed": true }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true - }, { "name": "region", "type": "TypeString", @@ -105306,6 +108163,18 @@ "computed": true, "deprecated": "This field is deprecated" }, + { + "name": "worker_count", + "type": "TypeInt", + "computed": true + }, + { + "name": "wait_till_albs", + "type": "TypeBool", + "description": "wait_till_albs can be configured to wait for albs during the worker pool zone attachment.", + "default_value": true, + "optional": true + }, { "name": "zone", "type": "TypeString", @@ -105327,107 +108196,50 @@ "computed": true }, { - "name": "worker_count", - "type": "TypeInt", - "computed": true - }, - { - "name": "wait_till_albs", - "type": "TypeBool", - "description": "wait_till_albs can be configured to wait for albs during the worker pool zone attachment.", - "default_value": true, + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "immutable": true, "optional": true } ], "ibm_cos_bucket": [ { - "name": "single_site_location", - "type": "TypeString", - "description": "single site location info", - "immutable": true, - "options": "ams03,che01,hkg02,mel01,mex01,mil01,mon01,osl01,par01,sjc04,sao01,seo01,sng01,tor01", - "optional": true - }, - { - "name": "region_location", - "type": "TypeString", - "description": "Region Location info.", - "immutable": true, - "optional": true - }, - { - "name": "cross_region_location", + "name": "s3_endpoint_direct", "type": "TypeString", - "description": "Cros region location info", - "immutable": true, - "options": "us,eu,ap", - "optional": true + "description": "Direct endpoint for the COS bucket", + "computed": true }, { - "name": "abort_incomplete_multipart_upload_days", + "name": "retention_rule", "type": "TypeList", - "description": "Enable abort incomplete multipart upload to COS Bucket after a defined period of time", + "description": "A retention policy is enabled at the IBM Cloud Object Storage bucket level. Minimum, maximum and default retention period are defined by this policy and apply to all objects in the bucket.", + "immutable": true, "optional": true, "elem": { - "days_after_initiation": { - "name": "days_after_initiation", + "default": { + "name": "default", "type": "TypeInt", - "description": "Specifies the number of days when the specific rule action takes effect.", - "optional": true - }, - "enable": { - "name": "enable", - "type": "TypeBool", - "description": "Enable or disable rule for a bucket", + "description": "If an object is stored in the bucket without specifying a custom retention period.", "required": true }, - "prefix": { - "name": "prefix", - "type": "TypeString", - "description": "The rule applies to any objects with keys that match this prefix", - "optional": true, - "computed": true - }, - "rule_id": { - "name": "rule_id", - "type": "TypeString", - "description": "Unique identifier for the rule. Rules allow you to set a specific time frame after which objects are deleted. Set Rule ID for cos bucket", - "optional": true, - "computed": true - } - }, - "max_items": 1 - }, - { - "name": "kms_key_crn", - "type": "TypeString", - "description": "CRN of the key you want to use data at rest encryption", - "immutable": true, - "optional": true - }, - { - "name": "activity_tracking", - "type": "TypeList", - "description": "Enables sending log data to Activity Tracker and LogDNA to provide visibility into object read and write events", - "optional": true, - "elem": { - "activity_tracker_crn": { - "name": "activity_tracker_crn", - "type": "TypeString", - "description": "The instance of Activity Tracker that will receive object event data", + "maximum": { + "name": "maximum", + "type": "TypeInt", + "description": "Maximum duration of time an object can be kept unmodified in the bucket.", "required": true }, - "read_data_events": { - "name": "read_data_events", - "type": "TypeBool", - "description": "If set to true, all object read events will be sent to Activity Tracker.", - "default_value": false, - "optional": true + "minimum": { + "name": "minimum", + "type": "TypeInt", + "description": "Minimum duration of time an object must be kept unmodified in the bucket", + "required": true }, - "write_data_events": { - "name": "write_data_events", + "permanent": { + "name": "permanent", "type": "TypeBool", - "description": "If set to true, all object write events will be sent to Activity Tracker.", + "description": "Enable or disable the permanent retention policy on the bucket", "default_value": false, "optional": true } @@ -105435,88 +108247,54 @@ "max_items": 1 }, { - "name": "archive_rule", + "name": "noncurrent_version_expiration", "type": "TypeList", - "description": "Enable configuration archive_rule (glacier/accelerated) to COS Bucket after a defined period of time", + "description": "Enable configuration expire_rule to COS Bucket after a defined period of time", "optional": true, "elem": { - "days": { - "name": "days", - "type": "TypeInt", - "description": "Specifies the number of days when the specific rule action takes effect.", - "required": true - }, "enable": { "name": "enable", "type": "TypeBool", - "description": "Enable or disable an archive rule for a bucket", + "description": "Enable or disable an expire rule for a bucket", "required": true }, - "rule_id": { - "name": "rule_id", + "noncurrent_days": { + "name": "noncurrent_days", + "type": "TypeInt", + "description": "Specifies the number of days when the specific rule action takes effect.", + "optional": true + }, + "prefix": { + "name": "prefix", "type": "TypeString", - "description": "Unique identifier for the rule.Archive rules allow you to set a specific time frame after which objects transition to the archive. Set Rule ID for cos bucket", + "description": "The rule applies to any objects with keys that match this prefix", "optional": true, "computed": true }, - "type": { - "name": "type", + "rule_id": { + "name": "rule_id", "type": "TypeString", - "description": "Specifies the storage class/archive type to which you want the object to transition. It can be Glacier or Accelerated", - "required": true - } - }, - "max_items": 1 - }, - { - "name": "object_lock", - "type": "TypeBool", - "description": "Enable objectlock for the bucket. When enabled, buckets within the container vault can have Object Lock Configuration applied to the bucket.", - "optional": true - }, - { - "name": "allowed_ip", - "type": "TypeList", - "description": "List of IPv4 or IPv6 addresses", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "object_versioning", - "type": "TypeList", - "description": "Protect objects from accidental deletion or overwrites. Versioning allows you to keep multiple versions of an object protecting from unintentional data loss.", - "optional": true, - "elem": { - "enable": { - "name": "enable", - "type": "TypeBool", - "description": "Enable or suspend the versioning for objects in the bucket", - "default_value": false, - "optional": true + "description": "Unique identifier for the rule.Expire rules allow you to set a specific time frame after which objects are deleted. Set Rule ID for cos bucket", + "optional": true, + "computed": true } }, "max_items": 1 }, { - "name": "bucket_name", + "name": "key_protect", "type": "TypeString", - "description": "COS Bucket name", + "description": "CRN of the key you want to use data at rest encryption", "immutable": true, - "required": true + "optional": true }, { - "name": "resource_instance_id", + "name": "single_site_location", "type": "TypeString", - "description": "resource instance ID", - "cloud_data_type": "resource_instance", + "description": "single site location info", "immutable": true, - "required": true, - "matches": "^crn:.+:.+:.+:.+:.+:a\\/[0-9a-f]{32}:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\:\\:$", - "cloud_data_range": [ - "service:cloud-object-storage" - ] + "options": "ams03,che01,hkg02,mel01,mex01,mil01,mon01,osl01,par01,sjc04,sao01,seo01,sng01,tor01", + "optional": true }, { "name": "storage_class", @@ -105536,35 +108314,47 @@ "optional": true }, { - "name": "s3_endpoint_private", + "name": "s3_endpoint_public", "type": "TypeString", - "description": "Private endpoint for the COS bucket", + "description": "Public endpoint for the COS bucket", "computed": true }, { - "name": "s3_endpoint_direct", + "name": "object_lock", + "type": "TypeBool", + "description": "Enable objectlock for the bucket. When enabled, buckets within the container vault can have Object Lock Configuration applied to the bucket.", + "optional": true + }, + { + "name": "resource_instance_id", "type": "TypeString", - "description": "Direct endpoint for the COS bucket", - "computed": true + "description": "resource instance ID", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true, + "matches": "^crn:.+:.+:.+:.+:.+:a\\/[0-9a-f]{32}:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\:\\:$", + "cloud_data_range": [ + "service:cloud-object-storage" + ] }, { - "name": "noncurrent_version_expiration", + "name": "abort_incomplete_multipart_upload_days", "type": "TypeList", - "description": "Enable configuration expire_rule to COS Bucket after a defined period of time", + "description": "Enable abort incomplete multipart upload to COS Bucket after a defined period of time", "optional": true, "elem": { + "days_after_initiation": { + "name": "days_after_initiation", + "type": "TypeInt", + "description": "Specifies the number of days when the specific rule action takes effect.", + "optional": true + }, "enable": { "name": "enable", "type": "TypeBool", - "description": "Enable or disable an expire rule for a bucket", + "description": "Enable or disable rule for a bucket", "required": true }, - "noncurrent_days": { - "name": "noncurrent_days", - "type": "TypeInt", - "description": "Specifies the number of days when the specific rule action takes effect.", - "optional": true - }, "prefix": { "name": "prefix", "type": "TypeString", @@ -105575,7 +108365,7 @@ "rule_id": { "name": "rule_id", "type": "TypeString", - "description": "Unique identifier for the rule.Expire rules allow you to set a specific time frame after which objects are deleted. Set Rule ID for cos bucket", + "description": "Unique identifier for the rule. Rules allow you to set a specific time frame after which objects are deleted. Set Rule ID for cos bucket", "optional": true, "computed": true } @@ -105583,34 +108373,15 @@ "max_items": 1 }, { - "name": "retention_rule", + "name": "object_versioning", "type": "TypeList", - "description": "A retention policy is enabled at the IBM Cloud Object Storage bucket level. Minimum, maximum and default retention period are defined by this policy and apply to all objects in the bucket.", - "immutable": true, + "description": "Protect objects from accidental deletion or overwrites. Versioning allows you to keep multiple versions of an object protecting from unintentional data loss.", "optional": true, "elem": { - "default": { - "name": "default", - "type": "TypeInt", - "description": "If an object is stored in the bucket without specifying a custom retention period.", - "required": true - }, - "maximum": { - "name": "maximum", - "type": "TypeInt", - "description": "Maximum duration of time an object can be kept unmodified in the bucket.", - "required": true - }, - "minimum": { - "name": "minimum", - "type": "TypeInt", - "description": "Minimum duration of time an object must be kept unmodified in the bucket", - "required": true - }, - "permanent": { - "name": "permanent", + "enable": { + "name": "enable", "type": "TypeBool", - "description": "Enable or disable the permanent retention policy on the bucket", + "description": "Enable or suspend the versioning for objects in the bucket", "default_value": false, "optional": true } @@ -105624,31 +108395,97 @@ "optional": true }, { - "name": "crn", - "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", - "computed": true + "name": "force_delete", + "type": "TypeBool", + "description": "COS buckets need to be empty before they can be deleted. force_delete option empty the bucket and delete it.", + "default_value": true, + "optional": true }, { - "name": "key_protect", + "name": "satellite_location_id", "type": "TypeString", - "description": "CRN of the key you want to use data at rest encryption", + "description": "Provide satellite location info.", "immutable": true, "optional": true }, { - "name": "satellite_location_id", + "name": "region_location", "type": "TypeString", - "description": "Provide satellite location info.", + "description": "Region Location info.", "immutable": true, "optional": true }, { - "name": "s3_endpoint_public", - "type": "TypeString", - "description": "Public endpoint for the COS bucket", - "computed": true + "name": "allowed_ip", + "type": "TypeList", + "description": "List of IPv4 or IPv6 addresses", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "activity_tracking", + "type": "TypeList", + "description": "Enables sending log data to Activity Tracker and LogDNA to provide visibility into object read and write events", + "optional": true, + "elem": { + "activity_tracker_crn": { + "name": "activity_tracker_crn", + "type": "TypeString", + "description": "The instance of Activity Tracker that will receive object event data", + "required": true + }, + "read_data_events": { + "name": "read_data_events", + "type": "TypeBool", + "description": "If set to true, all object read events will be sent to Activity Tracker.", + "default_value": false, + "optional": true + }, + "write_data_events": { + "name": "write_data_events", + "type": "TypeBool", + "description": "If set to true, all object write events will be sent to Activity Tracker.", + "default_value": false, + "optional": true + } + }, + "max_items": 1 + }, + { + "name": "archive_rule", + "type": "TypeList", + "description": "Enable configuration archive_rule (glacier/accelerated) to COS Bucket after a defined period of time", + "optional": true, + "elem": { + "days": { + "name": "days", + "type": "TypeInt", + "description": "Specifies the number of days when the specific rule action takes effect.", + "required": true + }, + "enable": { + "name": "enable", + "type": "TypeBool", + "description": "Enable or disable an archive rule for a bucket", + "required": true + }, + "rule_id": { + "name": "rule_id", + "type": "TypeString", + "description": "Unique identifier for the rule.Archive rules allow you to set a specific time frame after which objects transition to the archive. Set Rule ID for cos bucket", + "optional": true, + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Specifies the storage class/archive type to which you want the object to transition. It can be Glacier or Accelerated", + "required": true + } + }, + "max_items": 1 }, { "name": "metrics_monitoring", @@ -105727,62 +108564,65 @@ "max_items": 1000 }, { - "name": "force_delete", - "type": "TypeBool", - "description": "COS buckets need to be empty before they can be deleted. force_delete option empty the bucket and delete it.", - "default_value": true, - "optional": true - } - ], - "ibm_cos_bucket_object": [ + "name": "bucket_name", + "type": "TypeString", + "description": "COS Bucket name", + "immutable": true, + "required": true + }, { - "name": "force_delete", - "type": "TypeBool", - "description": "COS buckets need to be empty before they can be deleted. force_delete option empty the bucket and delete it.", - "default_value": true, - "optional": true + "name": "crn", + "type": "TypeString", + "description": "CRN of resource instance", + "cloud_data_type": "crn", + "computed": true }, { - "name": "object_lock_retain_until_date", + "name": "kms_key_crn", "type": "TypeString", - "description": "An object cannot be deleted when the current time is earlier than the retainUntilDate. After this date, the object can be deleted.", + "description": "CRN of the key you want to use data at rest encryption", + "immutable": true, "optional": true }, { - "name": "last_modified", + "name": "cross_region_location", "type": "TypeString", - "description": "COS object last modified date", - "computed": true + "description": "Cros region location info", + "immutable": true, + "options": "us,eu,ap", + "optional": true }, { - "name": "content_length", - "type": "TypeInt", - "description": "COS object content length", + "name": "s3_endpoint_private", + "type": "TypeString", + "description": "Private endpoint for the COS bucket", "computed": true - }, + } + ], + "ibm_cos_bucket_object": [ { - "name": "object_sql_url", + "name": "body", "type": "TypeString", - "description": "Access the object using an SQL Query instance.The reference url is used to perform queries against objects storing structured data.", + "description": "COS object body", "computed": true }, { - "name": "object_lock_legal_hold_status", + "name": "content", "type": "TypeString", - "description": "An object lock configuration on the object, the valid states are ON/OFF. When ON prevents deletion of the object version.", + "description": "COS object content", "optional": true }, { - "name": "website_redirect", + "name": "content_file", "type": "TypeString", - "description": "Redirect a request to another object or an URL", + "description": "COS object content file path", "optional": true }, { - "name": "content", + "name": "content_type", "type": "TypeString", - "description": "COS object content", - "optional": true + "description": "COS object content type", + "computed": true }, { "name": "bucket_location", @@ -105792,55 +108632,72 @@ "required": true }, { - "name": "content_file", + "name": "content_base64", "type": "TypeString", - "description": "COS object content file path", + "description": "COS object content in base64 encoding", "optional": true }, { - "name": "etag", + "name": "key", "type": "TypeString", - "description": "COS object MD5 hexdigest", - "optional": true, - "computed": true + "description": "COS object key", + "immutable": true, + "required": true }, { - "name": "version_id", + "name": "last_modified", "type": "TypeString", + "description": "COS object last modified date", "computed": true }, { - "name": "bucket_crn", + "name": "object_sql_url", "type": "TypeString", - "description": "COS bucket CRN", - "immutable": true, - "required": true + "description": "Access the object using an SQL Query instance.The reference url is used to perform queries against objects storing structured data.", + "computed": true }, { - "name": "content_base64", + "name": "object_lock_retain_until_date", "type": "TypeString", - "description": "COS object content in base64 encoding", + "description": "An object cannot be deleted when the current time is earlier than the retainUntilDate. After this date, the object can be deleted.", "optional": true }, { - "name": "content_type", + "name": "website_redirect", "type": "TypeString", - "description": "COS object content type", + "description": "Redirect a request to another object or an URL", + "optional": true + }, + { + "name": "content_length", + "type": "TypeInt", + "description": "COS object content length", "computed": true }, { - "name": "endpoint_type", + "name": "etag", "type": "TypeString", - "description": "COS endpoint type: public, private, direct", - "default_value": "public", + "description": "COS object MD5 hexdigest", + "optional": true, + "computed": true + }, + { + "name": "version_id", + "type": "TypeString", + "computed": true + }, + { + "name": "force_delete", + "type": "TypeBool", + "description": "COS buckets need to be empty before they can be deleted. force_delete option empty the bucket and delete it.", + "default_value": true, "optional": true }, { - "name": "key", + "name": "object_lock_legal_hold_status", "type": "TypeString", - "description": "COS object key", - "immutable": true, - "required": true + "description": "An object lock configuration on the object, the valid states are ON/OFF. When ON prevents deletion of the object version.", + "optional": true }, { "name": "object_lock_mode", @@ -105849,13 +108706,35 @@ "optional": true }, { - "name": "body", + "name": "bucket_crn", "type": "TypeString", - "description": "COS object body", - "computed": true + "description": "COS bucket CRN", + "immutable": true, + "required": true + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "COS endpoint type: public, private, direct", + "default_value": "public", + "optional": true } ], "ibm_cos_bucket_object_lock_configuration": [ + { + "name": "bucket_location", + "type": "TypeString", + "description": "COS bucket location", + "immutable": true, + "required": true + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "COS endpoint type: public, private, direct", + "default_value": "public", + "optional": true + }, { "name": "object_lock_configuration", "type": "TypeList", @@ -105912,20 +108791,6 @@ "description": "COS bucket CRN", "immutable": true, "required": true - }, - { - "name": "bucket_location", - "type": "TypeString", - "description": "COS bucket location", - "immutable": true, - "required": true - }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "COS endpoint type: public, private, direct", - "default_value": "public", - "optional": true } ], "ibm_cos_bucket_replication_rule": [ @@ -105999,6 +108864,13 @@ } ], "ibm_cos_bucket_website_configuration": [ + { + "name": "bucket_crn", + "type": "TypeString", + "description": "COS bucket CRN", + "immutable": true, + "required": true + }, { "name": "bucket_location", "type": "TypeString", @@ -106149,29 +109021,9 @@ "name": "website_endpoint", "type": "TypeString", "computed": true - }, - { - "name": "bucket_crn", - "type": "TypeString", - "description": "COS bucket CRN", - "immutable": true, - "required": true } ], "ibm_cr_namespace": [ - { - "name": "resource_created_date", - "type": "TypeString", - "description": "When the namespace was assigned to a resource group.", - "computed": true - }, - { - "name": "updated_on", - "type": "TypeString", - "description": "When the namespace was last updated.", - "computed": true, - "deprecated": "This field is deprecated" - }, { "name": "name", "type": "TypeString", @@ -106191,6 +109043,25 @@ "optional": true, "computed": true }, + { + "name": "account", + "type": "TypeString", + "description": "The IBM Cloud account that owns the namespace.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "If the namespace has been assigned to a resource group, this is the IBM Cloud CRN representing the namespace.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "resource_created_date", + "type": "TypeString", + "description": "When the namespace was assigned to a resource group.", + "computed": true + }, { "name": "tags", "type": "TypeSet", @@ -106207,19 +109078,6 @@ "description": "When the namespace was created.", "computed": true }, - { - "name": "account", - "type": "TypeString", - "description": "The IBM Cloud account that owns the namespace.", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "If the namespace has been assigned to a resource group, this is the IBM Cloud CRN representing the namespace.", - "cloud_data_type": "crn", - "computed": true - }, { "name": "updated_date", "type": "TypeString", @@ -106232,6 +109090,13 @@ "description": "When the namespace was created.", "computed": true, "deprecated": "This field is deprecated" + }, + { + "name": "updated_on", + "type": "TypeString", + "description": "When the namespace was last updated.", + "computed": true, + "deprecated": "This field is deprecated" } ], "ibm_cr_retention_policy": [ @@ -106256,71 +109121,6 @@ } ], "ibm_database": [ - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", - "computed": true - }, - { - "name": "plan_validation", - "type": "TypeBool", - "description": "For elasticsearch and postgres perform database parameter validation during the plan phase. Otherwise, database parameter validation happens in apply phase.", - "default_value": true, - "optional": true - }, - { - "name": "remote_leader_id", - "type": "TypeString", - "description": "The CRN of leader database", - "optional": true - }, - { - "name": "backup_encryption_key_crn", - "type": "TypeString", - "description": "The Backup Encryption Key CRN", - "immutable": true, - "optional": true - }, - { - "name": "users", - "type": "TypeSet", - "optional": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "User name", - "required": true - }, - "password": { - "name": "password", - "type": "TypeString", - "description": "User password", - "secure": true, - "required": true - }, - "role": { - "name": "role", - "type": "TypeString", - "description": "User role. Only available for ops_manager user type.", - "optional": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "User type", - "default_value": "database", - "optional": true - } - } - }, { "name": "connectionstrings", "type": "TypeList", @@ -106414,6 +109214,278 @@ }, "deprecated": "This field is deprecated, please use ibm_database_connection instead" }, + { + "name": "group", + "type": "TypeSet", + "optional": true, + "elem": { + "cpu": { + "name": "cpu", + "type": "TypeSet", + "optional": true, + "elem": { + "allocation_count": { + "name": "allocation_count", + "type": "TypeInt", + "required": true + } + }, + "max_items": 1 + }, + "disk": { + "name": "disk", + "type": "TypeSet", + "optional": true, + "elem": { + "allocation_mb": { + "name": "allocation_mb", + "type": "TypeInt", + "required": true + } + }, + "max_items": 1 + }, + "group_id": { + "name": "group_id", + "type": "TypeString", + "required": true + }, + "members": { + "name": "members", + "type": "TypeSet", + "optional": true, + "elem": { + "allocation_count": { + "name": "allocation_count", + "type": "TypeInt", + "required": true + } + }, + "max_items": 1 + }, + "memory": { + "name": "memory", + "type": "TypeSet", + "optional": true, + "elem": { + "allocation_mb": { + "name": "allocation_mb", + "type": "TypeInt", + "required": true + } + }, + "max_items": 1 + } + } + }, + { + "name": "location", + "type": "TypeString", + "description": "The location or the region in which Database instance exists", + "cloud_data_type": "region", + "required": true + }, + { + "name": "backup_id", + "type": "TypeString", + "description": "The CRN of backup source database", + "optional": true + }, + { + "name": "remote_leader_id", + "type": "TypeString", + "description": "The CRN of leader database", + "optional": true + }, + { + "name": "point_in_time_recovery_time", + "type": "TypeString", + "description": "The point in time recovery time stamp of the deployed instance", + "optional": true + }, + { + "name": "node_cpu_allocation_count", + "type": "TypeInt", + "description": "CPU allocation per node", + "optional": true, + "computed": true, + "deprecated": "use group instead" + }, + { + "name": "tags", + "type": "TypeSet", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "service", + "type": "TypeString", + "description": "The name of the Cloud Internet database service", + "immutable": true, + "required": true, + "options": "databases-for-etcd, databases-for-postgresql, databases-for-redis, databases-for-elasticsearch, databases-for-mongodb, messages-for-rabbitmq, databases-for-mysql, databases-for-cassandra, databases-for-enterprisedb" + }, + { + "name": "plan", + "type": "TypeString", + "description": "The plan type of the Database instance", + "immutable": true, + "required": true, + "options": "standard, enterprise, enterprise-sharding" + }, + { + "name": "members_cpu_allocation_count", + "type": "TypeInt", + "description": "CPU allocation required for cluster", + "optional": true, + "computed": true, + "deprecated": "use group instead" + }, + { + "name": "node_count", + "type": "TypeInt", + "description": "Total number of nodes in the cluster", + "optional": true, + "computed": true, + "deprecated": "use group instead" + }, + { + "name": "users", + "type": "TypeSet", + "optional": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "User name", + "required": true + }, + "password": { + "name": "password", + "type": "TypeString", + "description": "User password", + "secure": true, + "required": true + }, + "role": { + "name": "role", + "type": "TypeString", + "description": "User role. Only available for ops_manager user type.", + "optional": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "User type", + "default_value": "database", + "optional": true + } + } + }, + { + "name": "allowlist", + "type": "TypeSet", + "optional": true, + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "Allowlist IP address in CIDR notation", + "optional": true + }, + "description": { + "name": "description", + "type": "TypeString", + "description": "Unique allow list description", + "optional": true + } + } + }, + { + "name": "logical_replication_slot", + "type": "TypeSet", + "optional": true, + "elem": { + "database_name": { + "name": "database_name", + "type": "TypeString", + "description": "Database Name", + "required": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Logical Replication Slot name", + "required": true + }, + "plugin_type": { + "name": "plugin_type", + "type": "TypeString", + "description": "Plugin Type", + "required": true + } + } + }, + { + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The resource instance status", + "computed": true + }, + { + "name": "configuration_schema", + "type": "TypeString", + "description": "The configuration schema in JSON format", + "computed": true + }, + { + "name": "node_disk_allocation_mb", + "type": "TypeInt", + "description": "Disk allocation per node", + "optional": true, + "computed": true, + "deprecated": "use group instead" + }, + { + "name": "service_endpoints", + "type": "TypeString", + "description": "Types of the service endpoints. Possible values are 'public', 'private', 'public-and-private'.", + "default_value": "public", + "options": "public, private, public-and-private", + "optional": true + }, + { + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true + }, + { + "name": "guid", + "type": "TypeString", + "description": "Unique identifier of resource instance", + "computed": true + }, + { + "name": "members_disk_allocation_mb", + "type": "TypeInt", + "description": "Disk allocation required for cluster", + "optional": true, + "computed": true, + "deprecated": "use group instead" + }, { "name": "auto_scaling", "type": "TypeList", @@ -106596,141 +109668,68 @@ "max_items": 1 }, { - "name": "members_memory_allocation_mb", - "type": "TypeInt", - "description": "Memory allocation required for cluster", + "name": "version", + "type": "TypeString", + "description": "The database version to provision if specified", + "immutable": true, "optional": true, - "computed": true, - "deprecated": "use group instead" + "computed": true }, { - "name": "members_cpu_allocation_count", - "type": "TypeInt", - "description": "CPU allocation required for cluster", - "optional": true, - "computed": true, - "deprecated": "use group instead" + "name": "adminuser", + "type": "TypeString", + "description": "The admin user id for the instance", + "computed": true }, { - "name": "tags", - "type": "TypeSet", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", + "name": "members_memory_allocation_mb", + "type": "TypeInt", + "description": "Memory allocation required for cluster", "optional": true, "computed": true, - "elem": { - "type": "TypeString" - } + "deprecated": "use group instead" }, { - "name": "point_in_time_recovery_deployment_id", + "name": "backup_encryption_key_crn", "type": "TypeString", - "description": "The CRN of source instance", + "description": "The Backup Encryption Key CRN", + "immutable": true, "optional": true }, { - "name": "status", - "type": "TypeString", - "description": "The resource instance status", - "computed": true - }, - { - "name": "guid", + "name": "resource_controller_url", "type": "TypeString", - "description": "Unique identifier of resource instance", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", "computed": true }, { - "name": "resource_crn", - "type": "TypeString", - "description": "The crn of the resource", - "computed": true + "name": "node_memory_allocation_mb", + "type": "TypeInt", + "description": "Memory allocation per node", + "optional": true, + "computed": true, + "deprecated": "use group instead" }, { - "name": "location", - "type": "TypeString", - "description": "The location or the region in which Database instance exists", - "cloud_data_type": "region", - "required": true + "name": "plan_validation", + "type": "TypeBool", + "description": "For elasticsearch and postgres perform database parameter validation during the plan phase. Otherwise, database parameter validation happens in apply phase.", + "default_value": true, + "optional": true }, { - "name": "service", + "name": "key_protect_instance", "type": "TypeString", - "description": "The name of the Cloud Internet database service", + "description": "The CRN of Key protect instance", "immutable": true, - "required": true, - "options": "databases-for-etcd, databases-for-postgresql, databases-for-redis, databases-for-elasticsearch, databases-for-mongodb, messages-for-rabbitmq, databases-for-mysql, databases-for-cassandra, databases-for-enterprisedb" + "optional": true }, { - "name": "adminuser", + "name": "key_protect_key", "type": "TypeString", - "description": "The admin user id for the instance", - "computed": true - }, - { - "name": "group", - "type": "TypeSet", - "optional": true, - "elem": { - "cpu": { - "name": "cpu", - "type": "TypeSet", - "optional": true, - "elem": { - "allocation_count": { - "name": "allocation_count", - "type": "TypeInt", - "required": true - } - }, - "max_items": 1 - }, - "disk": { - "name": "disk", - "type": "TypeSet", - "optional": true, - "elem": { - "allocation_mb": { - "name": "allocation_mb", - "type": "TypeInt", - "required": true - } - }, - "max_items": 1 - }, - "group_id": { - "name": "group_id", - "type": "TypeString", - "required": true - }, - "members": { - "name": "members", - "type": "TypeSet", - "optional": true, - "elem": { - "allocation_count": { - "name": "allocation_count", - "type": "TypeInt", - "required": true - } - }, - "max_items": 1 - }, - "memory": { - "name": "memory", - "type": "TypeSet", - "optional": true, - "elem": { - "allocation_mb": { - "name": "allocation_mb", - "type": "TypeInt", - "required": true - } - }, - "max_items": 1 - } - } + "description": "The CRN of Key protect key", + "immutable": true, + "optional": true }, { "name": "name", @@ -106738,63 +109737,6 @@ "description": "Resource instance name for example, my Database instance", "required": true }, - { - "name": "logical_replication_slot", - "type": "TypeSet", - "optional": true, - "elem": { - "database_name": { - "name": "database_name", - "type": "TypeString", - "description": "Database Name", - "required": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Logical Replication Slot name", - "required": true - }, - "plugin_type": { - "name": "plugin_type", - "type": "TypeString", - "description": "Plugin Type", - "required": true - } - } - }, - { - "name": "version", - "type": "TypeString", - "description": "The database version to provision if specified", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "members_disk_allocation_mb", - "type": "TypeInt", - "description": "Disk allocation required for cluster", - "optional": true, - "computed": true, - "deprecated": "use group instead" - }, - { - "name": "node_count", - "type": "TypeInt", - "description": "Total number of nodes in the cluster", - "optional": true, - "computed": true, - "deprecated": "use group instead" - }, - { - "name": "node_memory_allocation_mb", - "type": "TypeInt", - "description": "Memory allocation per node", - "optional": true, - "computed": true, - "deprecated": "use group instead" - }, { "name": "resource_group_id", "type": "TypeString", @@ -106807,14 +109749,6 @@ "resolved_to:id" ] }, - { - "name": "plan", - "type": "TypeString", - "description": "The plan type of the Database instance", - "immutable": true, - "required": true, - "options": "standard, enterprise, enterprise-sharding" - }, { "name": "adminpassword", "type": "TypeString", @@ -106823,36 +109757,11 @@ "optional": true }, { - "name": "configuration_schema", - "type": "TypeString", - "description": "The configuration schema in JSON format", - "computed": true - }, - { - "name": "point_in_time_recovery_time", + "name": "configuration", "type": "TypeString", - "description": "The point in time recovery time stamp of the deployed instance", + "description": "The configuration in JSON format", "optional": true }, - { - "name": "allowlist", - "type": "TypeSet", - "optional": true, - "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "Allowlist IP address in CIDR notation", - "optional": true - }, - "description": { - "name": "description", - "type": "TypeString", - "description": "Unique allow list description", - "optional": true - } - } - }, { "name": "groups", "type": "TypeList", @@ -107002,99 +109911,109 @@ } }, { - "name": "resource_name", + "name": "point_in_time_recovery_deployment_id", "type": "TypeString", - "description": "The name of the resource", - "computed": true + "description": "The CRN of source instance", + "optional": true }, { - "name": "node_disk_allocation_mb", - "type": "TypeInt", - "description": "Disk allocation per node", - "optional": true, - "computed": true, - "deprecated": "use group instead" + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", + "computed": true }, { - "name": "node_cpu_allocation_count", - "type": "TypeInt", - "description": "CPU allocation per node", + "name": "resource_status", + "type": "TypeString", + "description": "The status of the resource", + "computed": true + } + ], + "ibm_dl_gateway": [ + { + "name": "resource_group", + "type": "TypeString", + "description": "Gateway resource group", + "cloud_data_type": "resource_group", + "immutable": true, "optional": true, - "computed": true, - "deprecated": "use group instead" + "computed": true }, { - "name": "backup_id", + "name": "resource_controller_url", "type": "TypeString", - "description": "The CRN of backup source database", - "optional": true + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true }, { - "name": "key_protect_key", - "type": "TypeString", - "description": "The CRN of Key protect key", - "immutable": true, + "name": "bfd_multiplier", + "type": "TypeInt", + "description": "BFD Multiplier", + "min_value": "1", + "max_value": "255", "optional": true }, { - "name": "configuration", + "name": "speed_mbps", + "type": "TypeInt", + "description": "Gateway speed in megabits per second", + "required": true + }, + { + "name": "crn", "type": "TypeString", - "description": "The configuration in JSON format", - "optional": true + "description": "The CRN (Cloud Resource Name) of this gateway", + "cloud_data_type": "crn", + "computed": true }, { - "name": "service_endpoints", + "name": "connection_mode", "type": "TypeString", - "description": "Types of the service endpoints. Possible values are 'public', 'private', 'public-and-private'.", - "default_value": "public", - "options": "public, private, public-and-private", - "optional": true + "description": "Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection", + "options": "direct, transit", + "optional": true, + "computed": true }, { - "name": "key_protect_instance", + "name": "customer_name", "type": "TypeString", - "description": "The CRN of Key protect instance", + "description": "Customer name", "immutable": true, "optional": true }, { - "name": "resource_status", - "type": "TypeString", - "description": "The status of the resource", + "name": "provider_api_managed", + "type": "TypeBool", + "description": "Indicates whether gateway was created through a provider portal", "computed": true - } - ], - "ibm_dl_gateway": [ + }, { - "name": "bfd_status", + "name": "resource_crn", "type": "TypeString", - "description": "Gateway BFD status", - "optional": true, + "description": "The crn of the resource", "computed": true }, { - "name": "name", + "name": "loa_reject_reason", "type": "TypeString", - "description": "The unique user-defined name for this gateway", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$" + "description": "Loa reject reason", + "optional": true, + "computed": true }, { - "name": "bgp_status_updated_at", + "name": "completion_notice_reject_reason", "type": "TypeString", - "description": "Date and time BGP status was updated", + "description": "Reason for completion notice rejection", "computed": true }, { - "name": "link_status_updated_at", + "name": "created_at", "type": "TypeString", - "description": "Date and time Link status was updated", + "description": "The date and time resource was created", "computed": true }, { - "name": "default_import_route_filter", + "name": "default_export_route_filter", "type": "TypeString", "description": "The default directional route filter action that applies to routes that do not match any directional route filters", "options": "permit, deny", @@ -107102,107 +110021,56 @@ "computed": true }, { - "name": "bfd_multiplier", + "name": "bfd_interval", "type": "TypeInt", - "description": "BFD Multiplier", - "min_value": "1", - "max_value": "255", + "description": "BFD Interval", + "min_value": "300", + "max_value": "255000", "optional": true }, { - "name": "operational_status", + "name": "bfd_status", "type": "TypeString", - "description": "Gateway operational status", + "description": "Gateway BFD status", + "optional": true, "computed": true }, { - "name": "link_status", + "name": "bgp_base_cidr", "type": "TypeString", - "description": "Gateway link status", - "computed": true + "description": "BGP base CIDR", + "optional": true }, { - "name": "import_route_filters", - "type": "TypeList", - "description": "List Import Route Filters for a Direct Link gateway", + "name": "location_name", + "type": "TypeString", + "description": "Gateway location", + "immutable": true, "optional": true, - "elem": { - "action": { - "name": "action", - "type": "TypeString", - "description": "Determines whether the routes that match the prefix-set will be permit or deny", - "required": true - }, - "before": { - "name": "before", - "type": "TypeString", - "description": "Identifier of the next route filter to be considered", - "optional": true, - "computed": true - }, - "created_at": { - "name": "created_at", - "type": "TypeString", - "description": "The date and time of the export route filter was created", - "computed": true - }, - "ge": { - "name": "ge", - "type": "TypeInt", - "description": "The minimum matching length of the prefix-set", - "optional": true - }, - "im_filter_id": { - "name": "im_filter_id", - "type": "TypeString", - "description": "Import route Filter identifier", - "computed": true - }, - "le": { - "name": "le", - "type": "TypeInt", - "description": "The maximum matching length of the prefix-set", - "optional": true - }, - "prefix": { - "name": "prefix", - "type": "TypeString", - "description": "IP prefix representing an address and mask length of the prefix-set", - "required": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "The date and time of the export route filter was last updated", - "computed": true - } - } + "computed": true }, { - "name": "bgp_asn", - "type": "TypeInt", - "description": "BGP ASN", - "required": true + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true }, { - "name": "connection_mode", - "type": "TypeString", - "description": "Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection", - "options": "direct, transit", - "optional": true, + "name": "vlan", + "type": "TypeInt", + "description": "VLAN allocated for this gateway", "computed": true }, { - "name": "bgp_ibm_cidr", - "type": "TypeString", - "description": "BGP IBM CIDR", - "optional": true, + "name": "bgp_ibm_asn", + "type": "TypeInt", + "description": "IBM BGP ASN", "computed": true }, { - "name": "bgp_status", + "name": "change_request", "type": "TypeString", - "description": "Gateway BGP status", + "description": "Changes pending approval for provider managed Direct Link Connect gateways", "computed": true }, { @@ -107263,90 +110131,81 @@ } }, { - "name": "bgp_base_cidr", - "type": "TypeString", - "description": "BGP base CIDR", - "optional": true - }, - { - "name": "type", - "type": "TypeString", - "description": "Gateway type", - "immutable": true, - "required": true, - "options": "dedicated, connect" - }, - { - "name": "bgp_cer_cidr", + "name": "default_import_route_filter", "type": "TypeString", - "description": "BGP customer edge router CIDR", + "description": "The default directional route filter action that applies to routes that do not match any directional route filters", + "options": "permit, deny", "optional": true, "computed": true }, { - "name": "change_request", + "name": "port", "type": "TypeString", - "description": "Changes pending approval for provider managed Direct Link Connect gateways", + "description": "Gateway port", + "immutable": true, + "optional": true, "computed": true }, { - "name": "authentication_key", + "name": "name", "type": "TypeString", - "description": "BGP MD5 authentication key", - "optional": true - }, - { - "name": "metered", - "type": "TypeBool", - "description": "Metered billing option", - "required": true + "description": "The unique user-defined name for this gateway", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$" }, { - "name": "resource_group", + "name": "type", "type": "TypeString", - "description": "Gateway resource group", - "cloud_data_type": "resource_group", + "description": "Gateway type", "immutable": true, - "optional": true, - "computed": true + "required": true, + "options": "dedicated, connect" }, { - "name": "vlan", - "type": "TypeInt", - "description": "VLAN allocated for this gateway", + "name": "location_display_name", + "type": "TypeString", + "description": "Gateway location long name", "computed": true }, { - "name": "bgp_ibm_asn", - "type": "TypeInt", - "description": "IBM BGP ASN", - "computed": true + "name": "carrier_name", + "type": "TypeString", + "description": "Carrier name", + "immutable": true, + "optional": true }, { - "name": "completion_notice_reject_reason", + "name": "bgp_ibm_cidr", "type": "TypeString", - "description": "Reason for completion notice rejection", + "description": "BGP IBM CIDR", + "optional": true, "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The date and time resource was created", - "computed": true + "name": "tags", + "type": "TypeSet", + "description": "Tags for the direct link gateway", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "crn", + "name": "resource_status", "type": "TypeString", - "description": "The CRN (Cloud Resource Name) of this gateway", - "cloud_data_type": "crn", + "description": "The status of the resource", "computed": true }, { - "name": "default_export_route_filter", + "name": "bgp_status", "type": "TypeString", - "description": "The default directional route filter action that applies to routes that do not match any directional route filters", - "options": "permit, deny", - "optional": true, + "description": "Gateway BGP status", "computed": true }, { @@ -107407,43 +110266,17 @@ } }, { - "name": "customer_name", - "type": "TypeString", - "description": "Customer name", - "immutable": true, - "optional": true - }, - { - "name": "provider_api_managed", - "type": "TypeBool", - "description": "Indicates whether gateway was created through a provider portal", - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "Tags for the direct link gateway", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true + "name": "bgp_asn", + "type": "TypeInt", + "description": "BGP ASN", + "required": true }, { - "name": "bfd_status_updated_at", + "name": "cross_connect_router", "type": "TypeString", - "description": "Date and time BFD status was updated", - "optional": true, - "computed": true + "description": "Cross connect router", + "immutable": true, + "optional": true }, { "name": "global", @@ -107452,51 +110285,98 @@ "required": true }, { - "name": "location_display_name", - "type": "TypeString", - "description": "Gateway location long name", - "computed": true + "name": "metered", + "type": "TypeBool", + "description": "Metered billing option", + "required": true }, { - "name": "resource_status", + "name": "operational_status", "type": "TypeString", - "description": "The status of the resource", + "description": "Gateway operational status", "computed": true }, { - "name": "location_name", + "name": "bgp_status_updated_at", "type": "TypeString", - "description": "Gateway location", - "immutable": true, - "optional": true, + "description": "Date and time BGP status was updated", "computed": true }, { - "name": "loa_reject_reason", + "name": "link_status", "type": "TypeString", - "description": "Loa reject reason", - "optional": true, + "description": "Gateway link status", "computed": true }, { - "name": "cross_connect_router", + "name": "authentication_key", "type": "TypeString", - "description": "Cross connect router", - "immutable": true, + "description": "BGP MD5 authentication key", "optional": true }, { - "name": "carrier_name", - "type": "TypeString", - "description": "Carrier name", - "immutable": true, - "optional": true + "name": "import_route_filters", + "type": "TypeList", + "description": "List Import Route Filters for a Direct Link gateway", + "optional": true, + "elem": { + "action": { + "name": "action", + "type": "TypeString", + "description": "Determines whether the routes that match the prefix-set will be permit or deny", + "required": true + }, + "before": { + "name": "before", + "type": "TypeString", + "description": "Identifier of the next route filter to be considered", + "optional": true, + "computed": true + }, + "created_at": { + "name": "created_at", + "type": "TypeString", + "description": "The date and time of the export route filter was created", + "computed": true + }, + "ge": { + "name": "ge", + "type": "TypeInt", + "description": "The minimum matching length of the prefix-set", + "optional": true + }, + "im_filter_id": { + "name": "im_filter_id", + "type": "TypeString", + "description": "Import route Filter identifier", + "computed": true + }, + "le": { + "name": "le", + "type": "TypeInt", + "description": "The maximum matching length of the prefix-set", + "optional": true + }, + "prefix": { + "name": "prefix", + "type": "TypeString", + "description": "IP prefix representing an address and mask length of the prefix-set", + "required": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "The date and time of the export route filter was last updated", + "computed": true + } + } }, { - "name": "speed_mbps", - "type": "TypeInt", - "description": "Gateway speed in megabits per second", - "required": true + "name": "bfd_status_updated_at", + "type": "TypeString", + "description": "Date and time BFD status was updated", + "optional": true, + "computed": true }, { "name": "macsec_config", @@ -107581,51 +110461,44 @@ "max_items": 1 }, { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - }, - { - "name": "resource_crn", + "name": "bgp_cer_cidr", "type": "TypeString", - "description": "The crn of the resource", + "description": "BGP customer edge router CIDR", + "optional": true, "computed": true }, { - "name": "bfd_interval", - "type": "TypeInt", - "description": "BFD Interval", - "min_value": "300", - "max_value": "255000", - "optional": true - }, - { - "name": "port", + "name": "link_status_updated_at", "type": "TypeString", - "description": "Gateway port", - "immutable": true, - "optional": true, + "description": "Date and time Link status was updated", "computed": true }, { - "name": "resource_group_name", + "name": "resource_name", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "The name of the resource", "computed": true } ], "ibm_dl_gateway_action": [ { - "name": "resource_status", + "name": "type", "type": "TypeString", - "description": "The status of the resource", + "description": "Gateway type", + "options": "dedicated, connect", + "optional": true, "computed": true }, { - "name": "import_route_filters", + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true + }, + { + "name": "export_route_filters", "type": "TypeList", - "description": "List Import Route Filters for a Direct Link gateway", + "description": "List Export Route Filters for a Direct Link gateway", "optional": true, "elem": { "action": { @@ -107646,18 +110519,18 @@ "description": "The date and time of the export route filter was created", "computed": true }, + "ex_filter_id": { + "name": "ex_filter_id", + "type": "TypeString", + "description": "Export route Filter identifier", + "computed": true + }, "ge": { "name": "ge", "type": "TypeInt", "description": "The minimum matching length of the prefix-set", "optional": true }, - "im_filter_id": { - "name": "im_filter_id", - "type": "TypeString", - "description": "Import route Filter identifier", - "computed": true - }, "le": { "name": "le", "type": "TypeInt", @@ -107679,164 +110552,29 @@ } }, { - "name": "bfd_status_updated_at", - "type": "TypeString", - "description": "Date and time BFD status was updated", - "computed": true - }, - { - "name": "port", - "type": "TypeString", - "description": "Gateway port", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "speed_mbps", - "type": "TypeInt", - "description": "Gateway speed in megabits per second", - "optional": true - }, - { - "name": "bgp_status", - "type": "TypeString", - "description": "Gateway BGP status", - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "Tags for the direct link gateway", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, - { - "name": "gateway", - "type": "TypeString", - "description": "The Direct Link gateway identifier", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this gateway", - "min_length": 1, - "max_length": 63, - "matches": "^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$", - "optional": true, - "computed": true - }, - { - "name": "completion_notice_reject_reason", - "type": "TypeString", - "description": "Reason for completion notice rejection", - "computed": true - }, - { - "name": "bfd_status", - "type": "TypeString", - "description": "Gateway BFD status", - "computed": true - }, - { - "name": "type", - "type": "TypeString", - "description": "Gateway type", - "options": "dedicated, connect", - "optional": true, - "computed": true - }, - { - "name": "bgp_cer_cidr", - "type": "TypeString", - "description": "BGP customer edge router CIDR", - "optional": true, - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time resource was created", - "computed": true - }, - { - "name": "bgp_base_cidr", + "name": "default_export_route_filter", "type": "TypeString", - "description": "BGP base CIDR", + "description": "The default directional route filter action that applies to routes that do not match any directional route filters", + "options": "permit, deny", "optional": true }, { - "name": "connection_mode", - "type": "TypeString", - "description": "Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection", - "options": "direct, transit", - "optional": true, - "computed": true - }, - { - "name": "cross_connect_router", + "name": "default_import_route_filter", "type": "TypeString", - "description": "Cross connect router", - "immutable": true, + "description": "The default directional route filter action that applies to routes that do not match any directional route filters", + "options": "permit, deny", "optional": true }, { - "name": "location_display_name", - "type": "TypeString", - "description": "Gateway location long name", - "computed": true - }, - { - "name": "resource_name", + "name": "operational_status", "type": "TypeString", - "description": "The name of the resource", + "description": "Gateway operational status", "computed": true }, { - "name": "authentication_key", - "type": "TypeString", - "description": "BGP MD5 authentication key", - "secure": true, - "optional": true - }, - { - "name": "bgp_asn", + "name": "vlan", "type": "TypeInt", - "description": "BGP ASN", - "optional": true - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "Gateway resource group", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "provider_api_managed", - "type": "TypeBool", - "description": "Indicates whether gateway was created through a provider portal", + "description": "VLAN allocated for this gateway", "computed": true }, { @@ -107846,54 +110584,26 @@ "computed": true }, { - "name": "vlan", + "name": "bfd_interval", "type": "TypeInt", - "description": "VLAN allocated for this gateway", - "computed": true - }, - { - "name": "action", - "type": "TypeString", - "description": "customer action on provider call", - "required": true, - "options": "permit, deny" - }, - { - "name": "default_export_route_filter", - "type": "TypeString", - "description": "The default directional route filter action that applies to routes that do not match any directional route filters", - "options": "permit, deny", + "description": "BFD Interval", + "min_value": "300", + "max_value": "255000", "optional": true }, { - "name": "location_name", + "name": "bfd_status_updated_at", "type": "TypeString", - "description": "Gateway location", - "immutable": true, - "optional": true, + "description": "Date and time BFD status was updated", "computed": true }, { - "name": "carrier_name", - "type": "TypeString", - "description": "Carrier name", - "immutable": true, - "optional": true - }, - { - "name": "customer_name", + "name": "cross_connect_router", "type": "TypeString", - "description": "Customer name", + "description": "Cross connect router", "immutable": true, "optional": true }, - { - "name": "loa_reject_reason", - "type": "TypeString", - "description": "Loa reject reason", - "optional": true, - "computed": true - }, { "name": "bgp_ibm_cidr", "type": "TypeString", @@ -107902,54 +110612,21 @@ "computed": true }, { - "name": "bgp_ibm_asn", - "type": "TypeInt", - "description": "IBM BGP ASN", - "computed": true - }, - { - "name": "link_status", - "type": "TypeString", - "description": "Gateway link status", - "computed": true - }, - { - "name": "link_status_updated_at", - "type": "TypeString", - "description": "Date and time Link status was updated", - "computed": true - }, - { - "name": "bfd_interval", - "type": "TypeInt", - "description": "BFD Interval", - "min_value": "300", - "max_value": "255000", - "optional": true - }, - { - "name": "bgp_status_updated_at", - "type": "TypeString", - "description": "Date and time BGP status was updated", - "computed": true - }, - { - "name": "crn", + "name": "bgp_status", "type": "TypeString", - "description": "The CRN (Cloud Resource Name) of this gateway", - "cloud_data_type": "crn", + "description": "Gateway BGP status", "computed": true }, { - "name": "resource_crn", + "name": "completion_notice_reject_reason", "type": "TypeString", - "description": "The crn of the resource", + "description": "Reason for completion notice rejection", "computed": true }, { - "name": "export_route_filters", + "name": "import_route_filters", "type": "TypeList", - "description": "List Export Route Filters for a Direct Link gateway", + "description": "List Import Route Filters for a Direct Link gateway", "optional": true, "elem": { "action": { @@ -107970,18 +110647,18 @@ "description": "The date and time of the export route filter was created", "computed": true }, - "ex_filter_id": { - "name": "ex_filter_id", - "type": "TypeString", - "description": "Export route Filter identifier", - "computed": true - }, "ge": { "name": "ge", "type": "TypeInt", "description": "The minimum matching length of the prefix-set", "optional": true }, + "im_filter_id": { + "name": "im_filter_id", + "type": "TypeString", + "description": "Import route Filter identifier", + "computed": true + }, "le": { "name": "le", "type": "TypeInt", @@ -108002,13 +110679,6 @@ } } }, - { - "name": "default_import_route_filter", - "type": "TypeString", - "description": "The default directional route filter action that applies to routes that do not match any directional route filters", - "options": "permit, deny", - "optional": true - }, { "name": "as_prepends", "type": "TypeList", @@ -108066,6 +110736,69 @@ } } }, + { + "name": "port", + "type": "TypeString", + "description": "Gateway port", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "location_display_name", + "type": "TypeString", + "description": "Gateway location long name", + "computed": true + }, + { + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true + }, + { + "name": "global", + "type": "TypeBool", + "description": "Gateways with global routing (true) can connect to networks outside their associated region", + "optional": true + }, + { + "name": "bgp_cer_cidr", + "type": "TypeString", + "description": "BGP customer edge router CIDR", + "optional": true, + "computed": true + }, + { + "name": "provider_api_managed", + "type": "TypeBool", + "description": "Indicates whether gateway was created through a provider portal", + "computed": true + }, + { + "name": "speed_mbps", + "type": "TypeInt", + "description": "Gateway speed in megabits per second", + "optional": true + }, + { + "name": "bgp_status_updated_at", + "type": "TypeString", + "description": "Date and time BGP status was updated", + "computed": true + }, + { + "name": "link_status_updated_at", + "type": "TypeString", + "description": "Date and time Link status was updated", + "computed": true + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true + }, { "name": "bfd_multiplier", "type": "TypeInt", @@ -108075,9 +110808,9 @@ "optional": true }, { - "name": "global", - "type": "TypeBool", - "description": "Gateways with global routing (true) can connect to networks outside their associated region", + "name": "bgp_asn", + "type": "TypeInt", + "description": "BGP ASN", "optional": true }, { @@ -108087,65 +110820,155 @@ "optional": true }, { - "name": "operational_status", + "name": "crn", "type": "TypeString", - "description": "Gateway operational status", + "description": "The CRN (Cloud Resource Name) of this gateway", + "cloud_data_type": "crn", "computed": true - } - ], - "ibm_dl_provider_gateway": [ + }, { - "name": "bgp_asn", - "type": "TypeInt", - "description": "BGP ASN", - "required": true + "name": "link_status", + "type": "TypeString", + "description": "Gateway link status", + "computed": true }, { - "name": "bgp_cer_cidr", + "name": "tags", + "type": "TypeSet", + "description": "Tags for the direct link gateway", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "action", "type": "TypeString", - "description": "BGP customer edge router CIDR", + "description": "customer action on provider call", + "required": true, + "options": "permit, deny" + }, + { + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this gateway", + "min_length": 1, + "max_length": 63, + "matches": "^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$", "optional": true, "computed": true }, { - "name": "bgp_ibm_cidr", + "name": "created_at", "type": "TypeString", - "description": "BGP IBM CIDR", + "description": "The date and time resource was created", + "computed": true + }, + { + "name": "carrier_name", + "type": "TypeString", + "description": "Carrier name", + "immutable": true, + "optional": true + }, + { + "name": "loa_reject_reason", + "type": "TypeString", + "description": "Loa reject reason", "optional": true, "computed": true }, { - "name": "bgp_status", + "name": "gateway", "type": "TypeString", - "description": "Gateway BGP status", + "description": "The Direct Link gateway identifier", + "required": true + }, + { + "name": "authentication_key", + "type": "TypeString", + "description": "BGP MD5 authentication key", + "secure": true, + "optional": true + }, + { + "name": "location_name", + "type": "TypeString", + "description": "Gateway location", + "immutable": true, + "optional": true, "computed": true }, { - "name": "name", + "name": "customer_name", "type": "TypeString", - "description": "The unique user-defined name for this gateway", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$" + "description": "Customer name", + "immutable": true, + "optional": true }, { - "name": "type", + "name": "resource_group", "type": "TypeString", - "description": "Gateway type", + "description": "Gateway resource group", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, "computed": true }, { - "name": "crn", + "name": "bgp_ibm_asn", + "type": "TypeInt", + "description": "IBM BGP ASN", + "computed": true + }, + { + "name": "resource_crn", "type": "TypeString", - "description": "The CRN (Cloud Resource Name) of this gateway", - "cloud_data_type": "crn", + "description": "The crn of the resource", "computed": true }, { - "name": "resource_name", + "name": "resource_status", "type": "TypeString", - "description": "The name of the resource", + "description": "The status of the resource", + "computed": true + }, + { + "name": "bfd_status", + "type": "TypeString", + "description": "Gateway BFD status", + "computed": true + }, + { + "name": "bgp_base_cidr", + "type": "TypeString", + "description": "BGP base CIDR", + "optional": true + }, + { + "name": "connection_mode", + "type": "TypeString", + "description": "Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection", + "options": "direct, transit", + "optional": true, + "computed": true + } + ], + "ibm_dl_provider_gateway": [ + { + "name": "bgp_asn", + "type": "TypeInt", + "description": "BGP ASN", + "required": true + }, + { + "name": "provider_api_managed", + "type": "TypeBool", + "description": "Indicates whether gateway was created through a provider portal", "computed": true }, { @@ -108155,14 +110978,26 @@ "computed": true }, { - "name": "customer_account_id", + "name": "bgp_ibm_asn", + "type": "TypeInt", + "description": "IBM BGP ASN", + "computed": true + }, + { + "name": "port", "type": "TypeString", - "description": "Customer IBM Cloud account ID for the new gateway. A gateway object containing the pending create request will become available in the specified account.", + "description": "Gateway port", "immutable": true, + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this gateway", "required": true, "min_length": 1, - "max_length": 32, - "matches": "^[0-9a-f]+$" + "max_length": 63, + "matches": "^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$" }, { "name": "vlan", @@ -108184,22 +111019,22 @@ "computed": true }, { - "name": "bgp_ibm_asn", - "type": "TypeInt", - "description": "IBM BGP ASN", + "name": "bgp_cer_cidr", + "type": "TypeString", + "description": "BGP customer edge router CIDR", + "optional": true, "computed": true }, { - "name": "port", + "name": "operational_status", "type": "TypeString", - "description": "Gateway port", - "immutable": true, - "required": true + "description": "Gateway operational status", + "computed": true }, { - "name": "operational_status", + "name": "type", "type": "TypeString", - "description": "Gateway operational status", + "description": "Gateway type", "computed": true }, { @@ -108215,6 +111050,25 @@ "type": "TypeString" } }, + { + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true + }, + { + "name": "bgp_ibm_cidr", + "type": "TypeString", + "description": "BGP IBM CIDR", + "optional": true, + "computed": true + }, + { + "name": "bgp_status", + "type": "TypeString", + "description": "Gateway BGP status", + "computed": true + }, { "name": "created_at", "type": "TypeString", @@ -108228,9 +111082,20 @@ "required": true }, { - "name": "provider_api_managed", - "type": "TypeBool", - "description": "Indicates whether gateway was created through a provider portal", + "name": "customer_account_id", + "type": "TypeString", + "description": "Customer IBM Cloud account ID for the new gateway. A gateway object containing the pending create request will become available in the specified account.", + "immutable": true, + "required": true, + "min_length": 1, + "max_length": 32, + "matches": "^[0-9a-f]+$" + }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN (Cloud Resource Name) of this gateway", + "cloud_data_type": "crn", "computed": true }, { @@ -108242,9 +111107,16 @@ ], "ibm_dl_route_report": [ { - "name": "on_prem_routes", + "name": "gateway", + "type": "TypeString", + "description": "The Direct Link gateway identifier", + "immutable": true, + "required": true + }, + { + "name": "advertised_routes", "type": "TypeList", - "description": "List of onprem routes", + "description": "List of connection prefixes advertised to the on-prem network", "computed": true, "elem": { "as_path": { @@ -108253,78 +111125,54 @@ "description": "The BGP AS path of the route", "computed": true }, - "next_hop": { - "name": "next_hop", + "prefix": { + "name": "prefix", "type": "TypeString", - "description": "Next Hop address", + "description": "Prefix for gateway routes", "computed": true - }, + } + } + }, + { + "name": "gateway_routes", + "type": "TypeList", + "description": "List of gateway routes", + "computed": true, + "elem": { "prefix": { "name": "prefix", "type": "TypeString", - "description": "Prefix for onprem routes", + "description": "Prefix for gateway routes", "computed": true } } }, { - "name": "virtual_connection_routes", + "name": "on_prem_routes", "type": "TypeList", - "description": "Virtual Connection Routes", + "description": "List of onprem routes", "computed": true, "elem": { - "routes": { - "name": "routes", - "type": "TypeList", - "description": "Virtual connection routes", - "computed": true, - "elem": { - "active": { - "name": "active", - "type": "TypeBool", - "description": "Indicates whether the route is the preferred path of the prefix", - "computed": true - }, - "local_preference": { - "name": "local_preference", - "type": "TypeString", - "description": "The local preference of the route. This attribute can manipulate the chosen path on routes", - "computed": true - }, - "prefix": { - "name": "prefix", - "type": "TypeString", - "description": "Prefix for virtual connection routes", - "computed": true - } - } - }, - "virtual_connection_id": { - "name": "virtual_connection_id", + "as_path": { + "name": "as_path", "type": "TypeString", - "description": "Virtual connection ID", + "description": "The BGP AS path of the route", "computed": true }, - "virtual_connection_name": { - "name": "virtual_connection_name", + "next_hop": { + "name": "next_hop", "type": "TypeString", - "description": "Virtual connection name", + "description": "Next Hop address", "computed": true }, - "virtual_connection_type": { - "name": "virtual_connection_type", + "prefix": { + "name": "prefix", "type": "TypeString", - "description": "Virtual connection type", + "description": "Prefix for onprem routes", "computed": true } } }, - { - "name": "status", - "type": "TypeString", - "description": "Route report status", - "computed": true - }, { "name": "created_at", "type": "TypeString", @@ -108337,13 +111185,6 @@ "description": "The date and time resource was created", "computed": true }, - { - "name": "gateway", - "type": "TypeString", - "description": "The Direct Link gateway identifier", - "immutable": true, - "required": true - }, { "name": "route_report_id", "type": "TypeString", @@ -108385,41 +111226,74 @@ } }, { - "name": "advertised_routes", + "name": "virtual_connection_routes", "type": "TypeList", - "description": "List of connection prefixes advertised to the on-prem network", + "description": "Virtual Connection Routes", "computed": true, "elem": { - "as_path": { - "name": "as_path", + "routes": { + "name": "routes", + "type": "TypeList", + "description": "Virtual connection routes", + "computed": true, + "elem": { + "active": { + "name": "active", + "type": "TypeBool", + "description": "Indicates whether the route is the preferred path of the prefix", + "computed": true + }, + "local_preference": { + "name": "local_preference", + "type": "TypeString", + "description": "The local preference of the route. This attribute can manipulate the chosen path on routes", + "computed": true + }, + "prefix": { + "name": "prefix", + "type": "TypeString", + "description": "Prefix for virtual connection routes", + "computed": true + } + } + }, + "virtual_connection_id": { + "name": "virtual_connection_id", "type": "TypeString", - "description": "The BGP AS path of the route", + "description": "Virtual connection ID", "computed": true }, - "prefix": { - "name": "prefix", + "virtual_connection_name": { + "name": "virtual_connection_name", "type": "TypeString", - "description": "Prefix for gateway routes", + "description": "Virtual connection name", "computed": true - } - } - }, - { - "name": "gateway_routes", - "type": "TypeList", - "description": "List of gateway routes", - "computed": true, - "elem": { - "prefix": { - "name": "prefix", + }, + "virtual_connection_type": { + "name": "virtual_connection_type", "type": "TypeString", - "description": "Prefix for gateway routes", + "description": "Virtual connection type", "computed": true } } + }, + { + "name": "status", + "type": "TypeString", + "description": "Route report status", + "computed": true } ], "ibm_dl_virtual_connection": [ + { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this virtual connection. Virtualconnection names are unique within a gateway. This is the name of thevirtual connection itself, the network being connected may have its ownname attribute", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$" + }, { "name": "network_id", "type": "TypeString", @@ -108429,9 +111303,9 @@ "computed": true }, { - "name": "created_at", + "name": "network_account", "type": "TypeString", - "description": "The date and time resource was created", + "description": "For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network.", "computed": true }, { @@ -108440,12 +111314,6 @@ "description": "The crn of the Direct link gateway", "computed": true }, - { - "name": "virtual_connection_id", - "type": "TypeString", - "description": "The Direct Gateway virtual connection identifier", - "computed": true - }, { "name": "gateway", "type": "TypeString", @@ -108462,66 +111330,25 @@ "options": "classic, vpc" }, { - "name": "name", + "name": "virtual_connection_id", "type": "TypeString", - "description": "The user-defined name for this virtual connection. Virtualconnection names are unique within a gateway. This is the name of thevirtual connection itself, the network being connected may have its ownname attribute", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$" + "description": "The Direct Gateway virtual connection identifier", + "computed": true }, { - "name": "status", + "name": "created_at", "type": "TypeString", - "description": "Status of the virtual connection.Possible values: [pending,attached,approval_pending,rejected,expired,deleting,detached_by_network_pending,detached_by_network]", + "description": "The date and time resource was created", "computed": true }, { - "name": "network_account", + "name": "status", "type": "TypeString", - "description": "For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network.", + "description": "Status of the virtual connection.Possible values: [pending,attached,approval_pending,rejected,expired,deleting,detached_by_network_pending,detached_by_network]", "computed": true } ], "ibm_dns_custom_resolver": [ - { - "name": "created_on", - "type": "TypeString", - "description": "Time when a custom resolver is created", - "computed": true - }, - { - "name": "custom_resolver_id", - "type": "TypeString", - "description": "Identifier of the custom resolver", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the custom resolver", - "required": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Descriptive text of the custom resolver.", - "optional": true - }, - { - "name": "enabled", - "type": "TypeBool", - "description": "Whether the custom resolver is enabled", - "default_value": true, - "optional": true - }, - { - "name": "high_availability", - "type": "TypeBool", - "description": "Whether High Availability is enabled in custom resolver", - "default_value": true, - "optional": true - }, { "name": "locations", "type": "TypeList", @@ -108563,44 +111390,10 @@ "max_items": 3 }, { - "name": "rules", - "type": "TypeList", - "computed": true, - "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "Descriptive text of the forwarding rule.", - "computed": true - }, - "forward_to": { - "name": "forward_to", - "type": "TypeList", - "description": "The upstream DNS servers will be forwarded to.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "match": { - "name": "match", - "type": "TypeString", - "description": "The matching zone or hostname.", - "computed": true - }, - "rule_id": { - "name": "rule_id", - "type": "TypeString", - "description": "Identifier of the forwarding rule.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of the forwarding rule.", - "computed": true - } - } + "name": "created_on", + "type": "TypeString", + "description": "Time when a custom resolver is created", + "computed": true }, { "name": "modified_on", @@ -108609,37 +111402,95 @@ "computed": true }, { - "name": "instance_id", + "name": "custom_resolver_id", "type": "TypeString", - "description": "Instance ID", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:dns-svcs" - ] + "description": "Identifier of the custom resolver", + "computed": true }, { - "name": "health", + "name": "name", "type": "TypeString", - "description": "Healthy state of the custom resolver", - "computed": true - } - ], - "ibm_dns_custom_resolver_forwarding_rule": [ + "description": "Name of the custom resolver", + "required": true + }, { - "name": "type", - "type": "TypeString", - "description": "Type of the forwarding rule.", - "options": "hostname, zone, Default", + "name": "enabled", + "type": "TypeBool", + "description": "Whether the custom resolver is enabled", + "default_value": true, "optional": true }, { - "name": "match", + "name": "high_availability", + "type": "TypeBool", + "description": "Whether High Availability is enabled in custom resolver", + "default_value": true, + "optional": true + }, + { + "name": "health", "type": "TypeString", - "description": "The matching zone or hostname.", - "optional": true, + "description": "Healthy state of the custom resolver", "computed": true }, + { + "name": "instance_id", + "type": "TypeString", + "description": "Instance ID", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:dns-svcs" + ] + }, + { + "name": "description", + "type": "TypeString", + "description": "Descriptive text of the custom resolver.", + "optional": true + }, + { + "name": "rules", + "type": "TypeList", + "computed": true, + "elem": { + "description": { + "name": "description", + "type": "TypeString", + "description": "Descriptive text of the forwarding rule.", + "computed": true + }, + "forward_to": { + "name": "forward_to", + "type": "TypeList", + "description": "The upstream DNS servers will be forwarded to.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "match": { + "name": "match", + "type": "TypeString", + "description": "The matching zone or hostname.", + "computed": true + }, + "rule_id": { + "name": "rule_id", + "type": "TypeString", + "description": "Identifier of the forwarding rule.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of the forwarding rule.", + "computed": true + } + } + } + ], + "ibm_dns_custom_resolver_forwarding_rule": [ { "name": "forward_to", "type": "TypeList", @@ -108676,9 +111527,35 @@ "type": "TypeString", "description": "Descriptive text of the forwarding rule.", "optional": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Type of the forwarding rule.", + "options": "hostname, zone, Default", + "optional": true + }, + { + "name": "match", + "type": "TypeString", + "description": "The matching zone or hostname.", + "optional": true, + "computed": true } ], "ibm_dns_custom_resolver_location": [ + { + "name": "dns_server_ip", + "type": "TypeString", + "description": "CRLocation Server IP", + "computed": true + }, + { + "name": "cr_enabled", + "type": "TypeBool", + "default_value": true, + "optional": true + }, { "name": "instance_id", "type": "TypeString", @@ -108720,30 +111597,9 @@ "type": "TypeBool", "description": "CRLocation Healthy", "computed": true - }, - { - "name": "dns_server_ip", - "type": "TypeString", - "description": "CRLocation Server IP", - "computed": true - }, - { - "name": "cr_enabled", - "type": "TypeBool", - "default_value": true, - "optional": true } ], "ibm_dns_custom_resolver_secondary_zone": [ - { - "name": "transfer_from", - "type": "TypeList", - "description": "The addresses of DNS servers where the secondary zone data should be transferred from", - "required": true, - "elem": { - "type": "TypeString" - } - }, { "name": "description", "type": "TypeString", @@ -108751,10 +111607,14 @@ "optional": true }, { - "name": "modified_on", + "name": "instance_id", "type": "TypeString", - "description": "Secondary Zone Modification date", - "computed": true + "description": "The unique identifier of a service instance.", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:dns-svcs" + ] }, { "name": "resolver_id", @@ -108762,6 +111622,12 @@ "description": "The unique identifier of a custom resolver.", "required": true }, + { + "name": "secondary_zone_id", + "type": "TypeString", + "description": "Secondary Zone ID", + "computed": true + }, { "name": "zone", "type": "TypeString", @@ -108774,6 +111640,15 @@ "description": "Enable/Disable the secondary zone", "required": true }, + { + "name": "transfer_from", + "type": "TypeList", + "description": "The addresses of DNS servers where the secondary zone data should be transferred from", + "required": true, + "elem": { + "type": "TypeString" + } + }, { "name": "created_on", "type": "TypeString", @@ -108781,19 +111656,9 @@ "computed": true }, { - "name": "instance_id", - "type": "TypeString", - "description": "The unique identifier of a service instance.", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:dns-svcs" - ] - }, - { - "name": "secondary_zone_id", + "name": "modified_on", "type": "TypeString", - "description": "Secondary Zone ID", + "description": "Secondary Zone Modification date", "computed": true } ], @@ -108861,20 +111726,6 @@ } ], "ibm_dns_glb": [ - { - "name": "enabled", - "type": "TypeBool", - "description": "Whether the load balancer is enabled", - "optional": true, - "computed": true - }, - { - "name": "ttl", - "type": "TypeInt", - "description": "Time to live in second", - "default_value": 60, - "optional": true - }, { "name": "health", "type": "TypeString", @@ -108887,12 +111738,6 @@ "description": "The pool ID to use when all other pools are detected as unhealthy", "required": true }, - { - "name": "modified_on", - "type": "TypeString", - "description": "GLB Load Balancer Modification date", - "computed": true - }, { "name": "default_pools", "type": "TypeList", @@ -108902,41 +111747,12 @@ "type": "TypeString" } }, - { - "name": "az_pools", - "type": "TypeSet", - "description": "Map availability zones to pool ID's.", - "optional": true, - "elem": { - "availability_zone": { - "name": "availability_zone", - "type": "TypeString", - "description": "Availability zone.", - "required": true - }, - "pools": { - "name": "pools", - "type": "TypeList", - "description": "List of load balancer pools", - "required": true, - "elem": { - "type": "TypeString" - } - } - } - }, { "name": "created_on", "type": "TypeString", "description": "GLB Load Balancer creation date", "computed": true }, - { - "name": "glb_id", - "type": "TypeString", - "description": "Load balancer Id", - "computed": true - }, { "name": "instance_id", "type": "TypeString", @@ -108955,85 +111771,69 @@ "immutable": true, "required": true }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the load balancer", - "required": true - }, { "name": "description", "type": "TypeString", "description": "Descriptive text of the load balancer", "optional": true - } - ], - "ibm_dns_glb_monitor": [ - { - "name": "name", - "type": "TypeString", - "description": "The unique identifier of a service instance.", - "required": true - }, - { - "name": "timeout", - "type": "TypeInt", - "description": "The timeout (in seconds) before marking the health check as failed", - "default_value": 5, - "optional": true }, { - "name": "created_on", - "type": "TypeString", - "description": "GLB Monitor creation date", + "name": "enabled", + "type": "TypeBool", + "description": "Whether the load balancer is enabled", + "optional": true, "computed": true }, { "name": "modified_on", "type": "TypeString", - "description": "GLB Monitor Modification date", + "description": "GLB Load Balancer Modification date", "computed": true }, { - "name": "monitor_id", + "name": "glb_id", "type": "TypeString", - "description": "Monitor Id", + "description": "Load balancer Id", "computed": true }, { - "name": "description", + "name": "name", "type": "TypeString", - "description": "Descriptive text of the load balancer monitor", - "optional": true - }, - { - "name": "port", - "type": "TypeInt", - "description": "Port number to connect to for the health check", - "optional": true, - "computed": true + "description": "Name of the load balancer", + "required": true }, { - "name": "interval", + "name": "ttl", "type": "TypeInt", - "description": "The interval between each health check", + "description": "Time to live in second", "default_value": 60, "optional": true }, { - "name": "expected_body", - "type": "TypeString", - "description": "A case-insensitive sub-string to look for in the response body", - "optional": true - }, - { - "name": "expected_codes", - "type": "TypeString", - "description": "The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS", - "options": "200,201,202,203,204,205,206,207,208,226,2xx", + "name": "az_pools", + "type": "TypeSet", + "description": "Map availability zones to pool ID's.", "optional": true, - "computed": true - }, + "elem": { + "availability_zone": { + "name": "availability_zone", + "type": "TypeString", + "description": "Availability zone.", + "required": true + }, + "pools": { + "name": "pools", + "type": "TypeList", + "description": "List of load balancer pools", + "required": true, + "elem": { + "type": "TypeString" + } + } + } + } + ], + "ibm_dns_glb_monitor": [ { "name": "instance_id", "type": "TypeString", @@ -109046,18 +111846,23 @@ ] }, { - "name": "type", + "name": "name", "type": "TypeString", - "description": "The protocol to use for the health check", - "default_value": "HTTP", - "options": "HTTP, HTTPS, TCP", - "optional": true + "description": "The unique identifier of a service instance.", + "required": true }, { - "name": "retries", + "name": "port", "type": "TypeInt", - "description": "The number of retries to attempt in case of a timeout before marking the origin as unhealthy", - "default_value": 1, + "description": "Port number to connect to for the health check", + "optional": true, + "computed": true + }, + { + "name": "interval", + "type": "TypeInt", + "description": "The interval between each health check", + "default_value": 60, "optional": true }, { @@ -109068,13 +111873,6 @@ "optional": true, "computed": true }, - { - "name": "path", - "type": "TypeString", - "description": "The endpoint path to health check against", - "optional": true, - "computed": true - }, { "name": "headers", "type": "TypeSet", @@ -109099,56 +111897,111 @@ } }, { - "name": "allow_insecure", - "type": "TypeBool", - "description": "Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTPS monitors.", - "optional": true, + "name": "monitor_id", + "type": "TypeString", + "description": "Monitor Id", "computed": true - } - ], - "ibm_dns_glb_pool": [ + }, { - "name": "pool_id", + "name": "timeout", + "type": "TypeInt", + "description": "The timeout (in seconds) before marking the health check as failed", + "default_value": 5, + "optional": true + }, + { + "name": "modified_on", "type": "TypeString", - "description": "Pool Id", + "description": "GLB Monitor Modification date", "computed": true }, { - "name": "description", + "name": "type", "type": "TypeString", - "description": "Descriptive text of the load balancer pool", + "description": "The protocol to use for the health check", + "default_value": "HTTP", + "options": "HTTP, HTTPS, TCP", "optional": true }, { - "name": "enabled", + "name": "allow_insecure", "type": "TypeBool", - "description": "Whether the load balancer pool is enabled", + "description": "Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTPS monitors.", + "optional": true, + "computed": true + }, + { + "name": "expected_body", + "type": "TypeString", + "description": "A case-insensitive sub-string to look for in the response body", "optional": true }, { - "name": "healthy_origins_threshold", + "name": "created_on", + "type": "TypeString", + "description": "GLB Monitor creation date", + "computed": true + }, + { + "name": "retries", "type": "TypeInt", - "description": "The minimum number of origins that must be healthy for this pool to serve traffic", + "description": "The number of retries to attempt in case of a timeout before marking the origin as unhealthy", + "default_value": 1, "optional": true }, { - "name": "notification_channel", + "name": "path", "type": "TypeString", - "description": "The notification channel,It is a webhook url", - "optional": true + "description": "The endpoint path to health check against", + "optional": true, + "computed": true }, { - "name": "created_on", + "name": "expected_codes", "type": "TypeString", - "description": "The time when a load balancer pool is created.", + "description": "The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS", + "options": "200,201,202,203,204,205,206,207,208,226,2xx", + "optional": true, "computed": true }, + { + "name": "description", + "type": "TypeString", + "description": "Descriptive text of the load balancer monitor", + "optional": true + } + ], + "ibm_dns_glb_pool": [ + { + "name": "description", + "type": "TypeString", + "description": "Descriptive text of the load balancer pool", + "optional": true + }, { "name": "health", "type": "TypeString", "description": "Whether the load balancer pool is enabled", "computed": true }, + { + "name": "modified_on", + "type": "TypeString", + "description": "The recent time when a load balancer pool is modified.", + "computed": true + }, + { + "name": "monitor", + "type": "TypeString", + "description": "The ID of the load balancer monitor to be associated to this pool", + "optional": true + }, + { + "name": "notification_channel", + "type": "TypeString", + "description": "The notification channel,It is a webhook url", + "optional": true + }, { "name": "healthcheck_subnets", "type": "TypeList", @@ -109158,6 +112011,47 @@ "type": "TypeString" } }, + { + "name": "created_on", + "type": "TypeString", + "description": "The time when a load balancer pool is created.", + "computed": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "Instance Id", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true, + "cloud_data_range": [ + "service:dns-svcs" + ] + }, + { + "name": "pool_id", + "type": "TypeString", + "description": "Pool Id", + "computed": true + }, + { + "name": "enabled", + "type": "TypeBool", + "description": "Whether the load balancer pool is enabled", + "optional": true + }, + { + "name": "healthy_origins_threshold", + "type": "TypeInt", + "description": "The minimum number of origins that must be healthy for this pool to serve traffic", + "optional": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The unique identifier of a service instance.", + "required": true + }, { "name": "origins", "type": "TypeSet", @@ -109202,35 +112096,6 @@ } } }, - { - "name": "monitor", - "type": "TypeString", - "description": "The ID of the load balancer monitor to be associated to this pool", - "optional": true - }, - { - "name": "modified_on", - "type": "TypeString", - "description": "The recent time when a load balancer pool is modified.", - "computed": true - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "Instance Id", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true, - "cloud_data_range": [ - "service:dns-svcs" - ] - }, - { - "name": "name", - "type": "TypeString", - "description": "The unique identifier of a service instance.", - "required": true - }, { "name": "healthcheck_region", "type": "TypeString", @@ -109239,30 +112104,6 @@ } ], "ibm_dns_linked_zone": [ - { - "name": "created_on", - "type": "TypeString", - "description": "DNS Linked Zone Creation date", - "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Descriptive text of the DNS Linked zone", - "optional": true - }, - { - "name": "owner_instance_id", - "type": "TypeString", - "description": "The unique identifier of the owner DNS instance", - "required": true - }, - { - "name": "linked_to", - "type": "TypeString", - "description": "The zone that is linked to the DNS Linked zone", - "optional": true - }, { "name": "state", "type": "TypeString", @@ -109286,16 +112127,16 @@ ] }, { - "name": "name", + "name": "owner_instance_id", "type": "TypeString", - "description": "The name of the DNS Linked zone.", + "description": "The unique identifier of the owner DNS instance", "required": true }, { - "name": "owner_zone_id", + "name": "linked_to", "type": "TypeString", - "description": "The unique identifier of the owner DNS zone", - "required": true + "description": "The zone that is linked to the DNS Linked zone", + "optional": true }, { "name": "label", @@ -109303,33 +112144,38 @@ "description": "The label of the DNS Linked zone", "optional": true }, + { + "name": "created_on", + "type": "TypeString", + "description": "DNS Linked Zone Creation date", + "computed": true + }, { "name": "modified_on", "type": "TypeString", "description": "DNS Linked Zone Modification date", "computed": true - } - ], - "ibm_dns_permitted_network": [ + }, { - "name": "vpc_crn", + "name": "name", "type": "TypeString", - "description": "VPC CRN id", - "immutable": true, + "description": "The name of the DNS Linked zone.", "required": true }, { - "name": "created_on", + "name": "description", "type": "TypeString", - "description": "Network creation date", - "computed": true + "description": "Descriptive text of the DNS Linked zone", + "optional": true }, { - "name": "modified_on", + "name": "owner_zone_id", "type": "TypeString", - "description": "Network Modification date", - "computed": true - }, + "description": "The unique identifier of the owner DNS zone", + "required": true + } + ], + "ibm_dns_permitted_network": [ { "name": "state", "type": "TypeString", @@ -109367,18 +112213,40 @@ "default_value": "vpc", "immutable": true, "optional": true + }, + { + "name": "vpc_crn", + "type": "TypeString", + "description": "VPC CRN id", + "immutable": true, + "required": true + }, + { + "name": "created_on", + "type": "TypeString", + "description": "Network creation date", + "computed": true + }, + { + "name": "modified_on", + "type": "TypeString", + "description": "Network Modification date", + "computed": true } ], "ibm_dns_record": [ { - "name": "tags", - "type": "TypeSet", - "description": "tags set for the resource", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "data", + "type": "TypeString", + "description": "DNS record data", + "required": true + }, + { + "name": "domain_id", + "type": "TypeInt", + "description": "Domain ID of dns record instance", + "immutable": true, + "required": true }, { "name": "mx_priority", @@ -109388,18 +112256,12 @@ "optional": true }, { - "name": "refresh", + "name": "minimum_ttl", "type": "TypeInt", - "description": "refresh rate", + "description": "Minimun TTL configuration", "optional": true, "computed": true }, - { - "name": "port", - "type": "TypeInt", - "description": "port number", - "optional": true - }, { "name": "priority", "type": "TypeInt", @@ -109408,15 +112270,9 @@ "optional": true }, { - "name": "data", + "name": "responsible_person", "type": "TypeString", - "description": "DNS record data", - "required": true - }, - { - "name": "expire", - "type": "TypeInt", - "description": "DNS record expiry info", + "description": "Responsible person for DNS record", "optional": true, "computed": true }, @@ -109426,6 +112282,13 @@ "description": "TTL configuration", "required": true }, + { + "name": "type", + "type": "TypeString", + "description": "DNS record type", + "immutable": true, + "required": true + }, { "name": "protocol", "type": "TypeString", @@ -109433,45 +112296,43 @@ "optional": true }, { - "name": "host", - "type": "TypeString", - "description": "Hostname", - "required": true + "name": "weight", + "type": "TypeInt", + "description": "weight info", + "default_value": 0, + "optional": true }, { - "name": "minimum_ttl", + "name": "refresh", "type": "TypeInt", - "description": "Minimun TTL configuration", + "description": "refresh rate", "optional": true, "computed": true }, { - "name": "type", + "name": "service", "type": "TypeString", - "description": "DNS record type", - "immutable": true, - "required": true + "description": "service info", + "optional": true }, { - "name": "weight", + "name": "port", "type": "TypeInt", - "description": "weight info", - "default_value": 0, + "description": "port number", "optional": true }, { - "name": "domain_id", + "name": "expire", "type": "TypeInt", - "description": "Domain ID of dns record instance", - "immutable": true, - "required": true + "description": "DNS record expiry info", + "optional": true, + "computed": true }, { - "name": "responsible_person", + "name": "host", "type": "TypeString", - "description": "Responsible person for DNS record", - "optional": true, - "computed": true + "description": "Hostname", + "required": true }, { "name": "retry", @@ -109481,30 +112342,27 @@ "computed": true }, { - "name": "service", - "type": "TypeString", - "description": "service info", - "optional": true + "name": "tags", + "type": "TypeSet", + "description": "tags set for the resource", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } } ], "ibm_dns_resource_record": [ { - "name": "rdata", - "type": "TypeString", - "description": "DNS record Data", - "required": true - }, - { - "name": "ttl", + "name": "port", "type": "TypeInt", - "description": "DNS record TTL", - "default_value": 900, + "description": "DNS server Port", "optional": true }, { - "name": "preference", + "name": "priority", "type": "TypeInt", - "description": "DNS maximum preference", + "description": "DNS server Priority", "default_value": 0, "optional": true }, @@ -109515,30 +112373,25 @@ "optional": true }, { - "name": "protocol", - "type": "TypeString", - "description": "Protocol", - "optional": true - }, - { - "name": "modified_on", - "type": "TypeString", - "description": "Modification date", - "computed": true - }, - { - "name": "zone_id", + "name": "type", "type": "TypeString", - "description": "Zone ID", + "description": "DNS record Type", "immutable": true, "required": true }, { - "name": "name", + "name": "rdata", "type": "TypeString", - "description": "DNS record name", + "description": "DNS record Data", "required": true }, + { + "name": "ttl", + "type": "TypeInt", + "description": "DNS record TTL", + "default_value": 900, + "optional": true + }, { "name": "created_on", "type": "TypeString", @@ -109551,6 +112404,20 @@ "description": "Resource record ID", "computed": true }, + { + "name": "zone_id", + "type": "TypeString", + "description": "Zone ID", + "immutable": true, + "required": true + }, + { + "name": "weight", + "type": "TypeInt", + "description": "DNS server weight", + "default_value": 0, + "optional": true + }, { "name": "instance_id", "type": "TypeString", @@ -109563,30 +112430,28 @@ ] }, { - "name": "type", - "type": "TypeString", - "description": "DNS record Type", - "immutable": true, - "required": true - }, - { - "name": "priority", + "name": "preference", "type": "TypeInt", - "description": "DNS server Priority", + "description": "DNS maximum preference", "default_value": 0, "optional": true }, { - "name": "port", - "type": "TypeInt", - "description": "DNS server Port", - "optional": true + "name": "modified_on", + "type": "TypeString", + "description": "Modification date", + "computed": true }, { - "name": "weight", - "type": "TypeInt", - "description": "DNS server weight", - "default_value": 0, + "name": "name", + "type": "TypeString", + "description": "DNS record name", + "required": true + }, + { + "name": "protocol", + "type": "TypeString", + "description": "Protocol", "optional": true } ], @@ -109612,6 +112477,13 @@ } ], "ibm_dns_secondary": [ + { + "name": "zone_name", + "type": "TypeString", + "description": "Zone name", + "immutable": true, + "required": true + }, { "name": "status_id", "type": "TypeInt", @@ -109645,35 +112517,9 @@ "type": "TypeInt", "description": "Transfer frequency value", "required": true - }, - { - "name": "zone_name", - "type": "TypeString", - "description": "Zone name", - "immutable": true, - "required": true } ], "ibm_dns_zone": [ - { - "name": "zone_id", - "type": "TypeString", - "description": "Zone ID", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Zone name", - "immutable": true, - "required": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Zone description", - "optional": true - }, { "name": "state", "type": "TypeString", @@ -109708,9 +112554,46 @@ "cloud_data_range": [ "service:dns-svcs" ] + }, + { + "name": "zone_id", + "type": "TypeString", + "description": "Zone ID", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Zone name", + "immutable": true, + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Zone description", + "optional": true } ], "ibm_en_destination_android": [ + { + "name": "description", + "type": "TypeString", + "description": "The Destination description.", + "optional": true + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Destination ID", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + }, { "name": "instance_guid", "type": "TypeString", @@ -109719,9 +112602,9 @@ "required": true }, { - "name": "name", + "name": "type", "type": "TypeString", - "description": "The Destintion name.", + "description": "The type of Destination push_android.", "required": true }, { @@ -109766,15 +112649,32 @@ "max_items": 1 }, { - "name": "destination_id", - "type": "TypeString", - "description": "Destination ID", + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", "computed": true }, { - "name": "type", + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "name", "type": "TypeString", - "description": "The type of Destination push_android.", + "description": "The Destintion name.", + "required": true + } + ], + "ibm_en_destination_ce": [ + { + "name": "name", + "type": "TypeString", + "description": "The Destintion name.", "required": true }, { @@ -109789,12 +112689,6 @@ "description": "Last updated time.", "computed": true }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, { "name": "subscription_names", "type": "TypeList", @@ -109803,9 +112697,14 @@ "elem": { "type": "TypeString" } - } - ], - "ibm_en_destination_ce": [ + }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true + }, { "name": "type", "type": "TypeString", @@ -109860,9 +112759,9 @@ "max_items": 1 }, { - "name": "updated_at", + "name": "destination_id", "type": "TypeString", - "description": "Last updated time.", + "description": "Destination ID", "computed": true }, { @@ -109870,7 +112769,9 @@ "type": "TypeInt", "description": "Number of subscriptions.", "computed": true - }, + } + ], + "ibm_en_destination_cf": [ { "name": "subscription_names", "type": "TypeList", @@ -109887,51 +112788,6 @@ "immutable": true, "required": true }, - { - "name": "description", - "type": "TypeString", - "description": "The Destination description.", - "optional": true - }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Destination ID", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The Destintion name.", - "required": true - } - ], - "ibm_en_destination_cf": [ - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The Destintion name.", - "required": true - }, - { - "name": "type", - "type": "TypeString", - "description": "The type of Destination ibmcf.", - "required": true - }, - { - "name": "description", - "type": "TypeString", - "description": "The Destination description.", - "optional": true - }, { "name": "config", "type": "TypeList", @@ -109962,9 +112818,9 @@ "max_items": 1 }, { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", "computed": true }, { @@ -109974,28 +112830,68 @@ "computed": true }, { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", "computed": true }, { - "name": "subscription_names", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "name", + "type": "TypeString", + "description": "The Destintion name.", + "required": true + }, + { + "name": "type", + "type": "TypeString", + "description": "The type of Destination ibmcf.", + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The Destination description.", + "optional": true } ], "ibm_en_destination_chrome": [ + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true + }, { "name": "type", "type": "TypeString", "description": "The type of Destination type push_chrome.", "required": true }, + { + "name": "description", + "type": "TypeString", + "description": "The Destination description.", + "optional": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The Destintion name.", + "required": true + }, { "name": "config", "type": "TypeList", @@ -110032,6 +112928,12 @@ }, "max_items": 1 }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Destination ID", + "computed": true + }, { "name": "subscription_names", "type": "TypeList", @@ -110040,14 +112942,9 @@ "elem": { "type": "TypeString" } - }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true - }, + } + ], + "ibm_en_destination_cos": [ { "name": "name", "type": "TypeString", @@ -110055,16 +112952,16 @@ "required": true }, { - "name": "description", + "name": "type", "type": "TypeString", - "description": "The Destination description.", - "optional": true + "description": "The type of Destination Webhook.", + "required": true }, { - "name": "destination_id", + "name": "description", "type": "TypeString", - "description": "Destination ID", - "computed": true + "description": "The Destination description.", + "optional": true }, { "name": "updated_at", @@ -110072,14 +112969,6 @@ "description": "Last updated time.", "computed": true }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - } - ], - "ibm_en_destination_cos": [ { "name": "instance_guid", "type": "TypeString", @@ -110087,12 +112976,6 @@ "immutable": true, "required": true }, - { - "name": "name", - "type": "TypeString", - "description": "The Destintion name.", - "required": true - }, { "name": "config", "type": "TypeList", @@ -110129,9 +113012,32 @@ "max_items": 1 }, { - "name": "type", + "name": "destination_id", "type": "TypeString", - "description": "The type of Destination Webhook.", + "description": "Destination ID", + "computed": true + }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + }, + { + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } + } + ], + "ibm_en_destination_custom_email": [ + { + "name": "name", + "type": "TypeString", + "description": "The Destintion name.", "required": true }, { @@ -110140,6 +113046,48 @@ "description": "The Destination description.", "optional": true }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true + }, + { + "name": "type", + "type": "TypeString", + "description": "The type of Destination type smtp_custom.", + "required": true + }, + { + "name": "config", + "type": "TypeList", + "description": "Payload describing a destination configuration.", + "optional": true, + "elem": { + "params": { + "name": "params", + "type": "TypeList", + "optional": true, + "elem": { + "domain": { + "name": "domain", + "type": "TypeString", + "description": "Domain for the Custom Domain Email Destination", + "required": true + } + }, + "max_items": 1 + } + }, + "max_items": 1 + }, { "name": "destination_id", "type": "TypeString", @@ -110152,12 +113100,6 @@ "description": "Last updated time.", "computed": true }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, { "name": "subscription_names", "type": "TypeList", @@ -110169,18 +113111,6 @@ } ], "ibm_en_destination_firefox": [ - { - "name": "destination_id", - "type": "TypeString", - "description": "Destination ID", - "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "The Destination description.", - "optional": true - }, { "name": "config", "type": "TypeList", @@ -110210,12 +113140,6 @@ }, "max_items": 1 }, - { - "name": "type", - "type": "TypeString", - "description": "The type of Destination type push_firefox.", - "required": true - }, { "name": "updated_at", "type": "TypeString", @@ -110228,15 +113152,6 @@ "description": "Number of subscriptions.", "computed": true }, - { - "name": "subscription_names", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "instance_guid", "type": "TypeString", @@ -110249,27 +113164,18 @@ "type": "TypeString", "description": "The Destintion name.", "required": true - } - ], - "ibm_en_destination_huawei": [ - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true }, { - "name": "name", + "name": "type", "type": "TypeString", - "description": "The Destintion name.", + "description": "The type of Destination type push_firefox.", "required": true }, { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true + "name": "description", + "type": "TypeString", + "description": "The Destination description.", + "optional": true }, { "name": "destination_id", @@ -110277,12 +113183,6 @@ "description": "Destination ID", "computed": true }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true - }, { "name": "subscription_names", "type": "TypeList", @@ -110291,18 +113191,21 @@ "elem": { "type": "TypeString" } - }, + } + ], + "ibm_en_destination_huawei": [ { - "name": "type", + "name": "instance_guid", "type": "TypeString", - "description": "The type of Destination push_huawei.", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, "required": true }, { - "name": "description", + "name": "type", "type": "TypeString", - "description": "The Destination description.", - "optional": true + "description": "The type of Destination push_huawei.", + "required": true }, { "name": "config", @@ -110338,13 +113241,67 @@ } }, "max_items": 1 + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Destination ID", + "computed": true + }, + { + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "name", + "type": "TypeString", + "description": "The Destintion name.", + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The Destination description.", + "optional": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true } ], "ibm_en_destination_ios": [ { - "name": "certificate_content_type", + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "type", "type": "TypeString", - "description": "The Certificate Content Type to be set p8/p12.", + "description": "The type of Destination type push_ios.", + "required": true + }, + { + "name": "certificate", + "type": "TypeString", + "description": "The Certificate File.", "required": true }, { @@ -110408,42 +113365,9 @@ "max_items": 1 }, { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, - { - "name": "subscription_names", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "description", - "type": "TypeString", - "description": "The Destination description.", - "optional": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The Destintion name.", - "required": true - }, - { - "name": "type", - "type": "TypeString", - "description": "The type of Destination type push_ios.", - "required": true - }, - { - "name": "certificate", + "name": "certificate_content_type", "type": "TypeString", - "description": "The Certificate File.", + "description": "The Certificate Content Type to be set p8/p12.", "required": true }, { @@ -110458,15 +113382,39 @@ "description": "Last updated time.", "computed": true }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + }, { "name": "instance_guid", "type": "TypeString", "description": "Unique identifier for IBM Cloud Event Notifications instance.", "immutable": true, "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The Destintion name.", + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The Destination description.", + "optional": true } ], "ibm_en_destination_msteams": [ + { + "name": "name", + "type": "TypeString", + "description": "The Destintion name.", + "required": true + }, { "name": "type", "type": "TypeString", @@ -110514,54 +113462,6 @@ "description": "Last updated time.", "computed": true }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The Destintion name.", - "required": true - }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, - { - "name": "subscription_names", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "type": "TypeString" - } - } - ], - "ibm_en_destination_pagerduty": [ - { - "name": "name", - "type": "TypeString", - "description": "The Destintion name.", - "required": true - }, - { - "name": "description", - "type": "TypeString", - "description": "The Destination description.", - "optional": true - }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Destination ID", - "computed": true - }, { "name": "subscription_count", "type": "TypeInt", @@ -110583,7 +113483,9 @@ "description": "Unique identifier for IBM Cloud Event Notifications instance.", "immutable": true, "required": true - }, + } + ], + "ibm_en_destination_pagerduty": [ { "name": "type", "type": "TypeString", @@ -110621,36 +113523,16 @@ "max_items": 1 }, { - "name": "updated_at", + "name": "destination_id", "type": "TypeString", - "description": "Last updated time.", + "description": "Destination ID", "computed": true - } - ], - "ibm_en_destination_safari": [ - { - "name": "type", - "type": "TypeString", - "description": "The type of Destination type push_ios.", - "required": true - }, - { - "name": "certificate", - "type": "TypeString", - "description": "The Certificate File.", - "required": true - }, - { - "name": "icon_16x16_2x", - "type": "TypeString", - "description": "The Certificate File.", - "optional": true }, { - "name": "icon_128x128_2x", - "type": "TypeString", - "description": "The Certificate File.", - "optional": true + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true }, { "name": "subscription_names", @@ -110674,60 +113556,20 @@ "description": "The Destintion name.", "required": true }, - { - "name": "icon_32x32_2x", - "type": "TypeString", - "description": "The Certificate File.", - "optional": true - }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Destination ID", - "computed": true - }, - { - "name": "icon_128x128_content_type", - "type": "TypeString", - "description": "The Certificate File.", - "optional": true - }, { "name": "description", "type": "TypeString", "description": "The Destination description.", "optional": true }, - { - "name": "icon_16x16", - "type": "TypeString", - "description": "The Certificate File.", - "optional": true - }, - { - "name": "icon_32x32", - "type": "TypeString", - "description": "The Certificate File.", - "optional": true - }, - { - "name": "icon_128x128", - "type": "TypeString", - "description": "The Certificate File.", - "optional": true - }, - { - "name": "icon_32x32_content_type", - "type": "TypeString", - "description": "The Certificate File.", - "optional": true - }, { "name": "updated_at", "type": "TypeString", "description": "Last updated time.", "computed": true - }, + } + ], + "ibm_en_destination_safari": [ { "name": "subscription_count", "type": "TypeInt", @@ -110735,25 +113577,31 @@ "computed": true }, { - "name": "icon_16x16_content_type", + "name": "description", + "type": "TypeString", + "description": "The Destination description.", + "optional": true + }, + { + "name": "icon_16x16_2x", "type": "TypeString", "description": "The Certificate File.", "optional": true }, { - "name": "icon_16x16_2x_content_type", + "name": "icon_32x32_2x", "type": "TypeString", "description": "The Certificate File.", "optional": true }, { - "name": "icon_32x32_2x_content_type", + "name": "icon_128x128", "type": "TypeString", "description": "The Certificate File.", "optional": true }, { - "name": "icon_128x128_2x_content_type", + "name": "icon_128x128_2x", "type": "TypeString", "description": "The Certificate File.", "optional": true @@ -110817,37 +113665,6 @@ } }, "max_items": 1 - } - ], - "ibm_en_destination_slack": [ - { - "name": "config", - "type": "TypeList", - "description": "Payload describing a destination configuration.", - "optional": true, - "elem": { - "params": { - "name": "params", - "type": "TypeList", - "optional": true, - "elem": { - "url": { - "name": "url", - "type": "TypeString", - "description": "Slack webhook url.", - "required": true - } - }, - "max_items": 1 - } - }, - "max_items": 1 - }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Destination ID", - "computed": true }, { "name": "updated_at", @@ -110855,12 +113672,6 @@ "description": "Last updated time.", "computed": true }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, { "name": "instance_guid", "type": "TypeString", @@ -110874,18 +113685,95 @@ "description": "The Destintion name.", "required": true }, + { + "name": "icon_32x32_content_type", + "type": "TypeString", + "description": "The Certificate File.", + "optional": true + }, + { + "name": "icon_128x128_content_type", + "type": "TypeString", + "description": "The Certificate File.", + "optional": true + }, + { + "name": "icon_128x128_2x_content_type", + "type": "TypeString", + "description": "The Certificate File.", + "optional": true + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Destination ID", + "computed": true + }, + { + "name": "certificate", + "type": "TypeString", + "description": "The Certificate File.", + "required": true + }, + { + "name": "icon_16x16", + "type": "TypeString", + "description": "The Certificate File.", + "optional": true + }, + { + "name": "icon_32x32", + "type": "TypeString", + "description": "The Certificate File.", + "optional": true + }, + { + "name": "icon_16x16_content_type", + "type": "TypeString", + "description": "The Certificate File.", + "optional": true + }, + { + "name": "icon_32x32_2x_content_type", + "type": "TypeString", + "description": "The Certificate File.", + "optional": true + }, + { + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "type", "type": "TypeString", - "description": "The type of Destination Webhook.", + "description": "The type of Destination type push_ios.", "required": true }, + { + "name": "icon_16x16_2x_content_type", + "type": "TypeString", + "description": "The Certificate File.", + "optional": true + } + ], + "ibm_en_destination_slack": [ { "name": "description", "type": "TypeString", "description": "The Destination description.", "optional": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + }, { "name": "subscription_names", "type": "TypeList", @@ -110894,21 +113782,87 @@ "elem": { "type": "TypeString" } - } - ], - "ibm_en_destination_sn": [ + }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true + }, + { + "name": "type", + "type": "TypeString", + "description": "The type of Destination Webhook.", + "required": true + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Destination ID", + "computed": true + }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + }, { "name": "name", "type": "TypeString", "description": "The Destintion name.", "required": true }, + { + "name": "config", + "type": "TypeList", + "description": "Payload describing a destination configuration.", + "optional": true, + "elem": { + "params": { + "name": "params", + "type": "TypeList", + "optional": true, + "elem": { + "url": { + "name": "url", + "type": "TypeString", + "description": "Slack webhook url.", + "required": true + } + }, + "max_items": 1 + } + }, + "max_items": 1 + } + ], + "ibm_en_destination_sn": [ { "name": "type", "type": "TypeString", "description": "The type of Destination type push_chrome.", "required": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The Destintion name.", + "required": true + }, { "name": "description", "type": "TypeString", @@ -110972,25 +113926,6 @@ "description": "Destination ID", "computed": true }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true - }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true - }, { "name": "subscription_names", "type": "TypeList", @@ -110999,13 +113934,20 @@ "elem": { "type": "TypeString" } + }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true } ], "ibm_en_destination_webhook": [ { - "name": "updated_at", + "name": "destination_id", "type": "TypeString", - "description": "Last updated time.", + "description": "Destination ID", "computed": true }, { @@ -111024,10 +113966,9 @@ } }, { - "name": "instance_guid", + "name": "name", "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, + "description": "The Destintion name.", "required": true }, { @@ -111042,6 +113983,13 @@ "description": "The Destination description.", "optional": true }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true + }, { "name": "config", "type": "TypeList", @@ -111090,19 +114038,25 @@ "max_items": 1 }, { - "name": "destination_id", + "name": "updated_at", "type": "TypeString", - "description": "Destination ID", + "description": "Last updated time.", "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The Destintion name.", - "required": true } ], "ibm_en_ibmsource": [ + { + "name": "source_id", + "type": "TypeString", + "description": "Destination ID", + "required": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + }, { "name": "instance_guid", "type": "TypeString", @@ -111115,21 +114069,21 @@ "type": "TypeBool", "description": "The enabled flag for source", "required": true - }, + } + ], + "ibm_en_integration": [ { - "name": "source_id", + "name": "integration_id", "type": "TypeString", - "description": "Destination ID", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", "required": true }, { - "name": "updated_at", + "name": "type", "type": "TypeString", - "description": "Last updated time.", - "computed": true - } - ], - "ibm_en_integration": [ + "description": "The type of key integration kms/hs-crypto.", + "required": true + }, { "name": "metadata", "type": "TypeList", @@ -111168,18 +114122,6 @@ "description": "Unique identifier for IBM Cloud Event Notifications instance.", "immutable": true, "required": true - }, - { - "name": "integration_id", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "required": true - }, - { - "name": "type", - "type": "TypeString", - "description": "The type of key integration kms/hs-crypto.", - "required": true } ], "ibm_en_source": [ @@ -111229,9 +114171,9 @@ "computed": true }, { - "name": "destination_type", + "name": "topic_name", "type": "TypeString", - "description": "The type of Destination.", + "description": "Name of the topic.", "computed": true }, { @@ -111241,17 +114183,17 @@ "computed": true }, { - "name": "instance_guid", + "name": "name", "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, + "description": "Subscription name.", "required": true }, { - "name": "description", + "name": "destination_id", "type": "TypeString", - "description": "Subscription description.", - "optional": true + "description": "Destination ID.", + "immutable": true, + "required": true }, { "name": "topic_id", @@ -111261,36 +114203,36 @@ "required": true }, { - "name": "destination_name", + "name": "destination_type", "type": "TypeString", - "description": "The Destintion name.", + "description": "The type of Destination.", "computed": true }, { - "name": "topic_name", + "name": "destination_name", "type": "TypeString", - "description": "Name of the topic.", + "description": "The Destintion name.", "computed": true }, { - "name": "name", + "name": "instance_guid", "type": "TypeString", - "description": "Subscription name.", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, "required": true }, { - "name": "destination_id", + "name": "description", "type": "TypeString", - "description": "Destination ID.", - "immutable": true, - "required": true + "description": "Subscription description.", + "optional": true } ], "ibm_en_subscription_ce": [ { - "name": "destination_name", + "name": "updated_at", "type": "TypeString", - "description": "The Destintion name.", + "description": "Last updated time.", "computed": true }, { @@ -111305,6 +114247,20 @@ "description": "Subscription description.", "optional": true }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Destination ID.", + "immutable": true, + "required": true + }, + { + "name": "topic_id", + "type": "TypeString", + "description": "Topic ID.", + "immutable": true, + "required": true + }, { "name": "subscription_id", "type": "TypeString", @@ -111318,9 +114274,9 @@ "computed": true }, { - "name": "updated_at", + "name": "destination_name", "type": "TypeString", - "description": "Last updated time.", + "description": "The Destintion name.", "computed": true }, { @@ -111330,20 +114286,6 @@ "immutable": true, "required": true }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Destination ID.", - "immutable": true, - "required": true - }, - { - "name": "topic_id", - "type": "TypeString", - "description": "Topic ID.", - "immutable": true, - "required": true - }, { "name": "topic_name", "type": "TypeString", @@ -111352,12 +114294,6 @@ } ], "ibm_en_subscription_cf": [ - { - "name": "name", - "type": "TypeString", - "description": "Subscription name.", - "required": true - }, { "name": "description", "type": "TypeString", @@ -111365,10 +114301,18 @@ "optional": true }, { - "name": "topic_name", + "name": "destination_id", "type": "TypeString", - "description": "Name of the topic.", - "computed": true + "description": "Destination ID.", + "immutable": true, + "required": true + }, + { + "name": "topic_id", + "type": "TypeString", + "description": "Topic ID.", + "immutable": true, + "required": true }, { "name": "updated_at", @@ -111384,17 +114328,9 @@ "required": true }, { - "name": "destination_id", - "type": "TypeString", - "description": "Destination ID.", - "immutable": true, - "required": true - }, - { - "name": "topic_id", + "name": "name", "type": "TypeString", - "description": "Topic ID.", - "immutable": true, + "description": "Subscription name.", "required": true }, { @@ -111414,9 +114350,22 @@ "type": "TypeString", "description": "The Destintion name.", "computed": true + }, + { + "name": "topic_name", + "type": "TypeString", + "description": "Name of the topic.", + "computed": true } ], "ibm_en_subscription_chrome": [ + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true + }, { "name": "description", "type": "TypeString", @@ -111424,41 +114373,40 @@ "optional": true }, { - "name": "destination_name", + "name": "destination_id", "type": "TypeString", - "description": "The Destintion name.", - "computed": true + "description": "Destination ID.", + "immutable": true, + "required": true }, { - "name": "topic_name", + "name": "subscription_id", "type": "TypeString", - "description": "Name of the topic.", + "description": "Subscription ID.", "computed": true }, { - "name": "updated_at", + "name": "destination_type", "type": "TypeString", - "description": "Last updated time.", + "description": "The type of Destination.", "computed": true }, { - "name": "instance_guid", + "name": "destination_name", "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true + "description": "The Destintion name.", + "computed": true }, { - "name": "name", + "name": "updated_at", "type": "TypeString", - "description": "Subscription name.", - "required": true + "description": "Last updated time.", + "computed": true }, { - "name": "destination_id", + "name": "name", "type": "TypeString", - "description": "Destination ID.", - "immutable": true, + "description": "Subscription name.", "required": true }, { @@ -111469,23 +114417,17 @@ "required": true }, { - "name": "subscription_id", - "type": "TypeString", - "description": "Subscription ID.", - "computed": true - }, - { - "name": "destination_type", + "name": "topic_name", "type": "TypeString", - "description": "The type of Destination.", + "description": "Name of the topic.", "computed": true } ], "ibm_en_subscription_cos": [ { - "name": "topic_id", + "name": "instance_guid", "type": "TypeString", - "description": "Topic ID.", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", "immutable": true, "required": true }, @@ -111495,6 +114437,12 @@ "description": "Subscription ID.", "computed": true }, + { + "name": "destination_type", + "type": "TypeString", + "description": "The type of Destination.", + "computed": true + }, { "name": "destination_name", "type": "TypeString", @@ -111513,13 +114461,6 @@ "description": "Last updated time.", "computed": true }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true - }, { "name": "name", "type": "TypeString", @@ -111540,38 +114481,14 @@ "required": true }, { - "name": "destination_type", - "type": "TypeString", - "description": "The type of Destination.", - "computed": true - } - ], - "ibm_en_subscription_email": [ - { - "name": "destination_name", - "type": "TypeString", - "description": "The Destintion name.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Subscription name.", - "required": true - }, - { - "name": "destination_id", + "name": "topic_id", "type": "TypeString", - "description": "Destination ID.", + "description": "Topic ID.", "immutable": true, "required": true - }, + } + ], + "ibm_en_subscription_custom_email": [ { "name": "attributes", "type": "TypeList", @@ -111592,10 +114509,16 @@ "description": "Whether to add the notification payload to the email.", "optional": true }, + "from_email": { + "name": "from_email", + "type": "TypeString", + "description": "The email from where it is sourced", + "optional": true + }, "from_name": { "name": "from_name", "type": "TypeString", - "description": "The email address from which email is sourced.", + "description": "The name of email address from which email is sourced.", "optional": true }, "invited": { @@ -111627,32 +114550,44 @@ "type": "TypeString", "description": "The name of the email address user to reply to.", "optional": true + }, + "template_id_invitation": { + "name": "template_id_invitation", + "type": "TypeString", + "description": "The templete id for invitation", + "optional": true + }, + "template_id_notification": { + "name": "template_id_notification", + "type": "TypeString", + "description": "The templete id for notification", + "optional": true } }, "max_items": 1 }, { - "name": "subscription_id", + "name": "destination_type", "type": "TypeString", - "description": "Subscription ID.", + "description": "The type of Destination.", "computed": true }, { - "name": "destination_type", + "name": "subscription_id", "type": "TypeString", - "description": "The type of Destination.", + "description": "Subscription ID.", "computed": true }, { - "name": "topic_name", + "name": "destination_name", "type": "TypeString", - "description": "Name of the topic.", + "description": "The Destintion name.", "computed": true }, { - "name": "from", + "name": "topic_name", "type": "TypeString", - "description": "From Email ID (it will be displayed only in case of smtp_ibm destination type).", + "description": "Name of the topic.", "computed": true }, { @@ -111663,20 +114598,11 @@ "required": true }, { - "name": "description", - "type": "TypeString", - "description": "Subscription description.", - "optional": true - }, - { - "name": "topic_id", + "name": "name", "type": "TypeString", - "description": "Topic ID.", - "immutable": true, + "description": "Subscription name.", "required": true - } - ], - "ibm_en_subscription_firefox": [ + }, { "name": "description", "type": "TypeString", @@ -111698,40 +114624,42 @@ "required": true }, { - "name": "destination_type", + "name": "from", "type": "TypeString", - "description": "The type of Destination.", + "description": "From Email ID (it will be displayed only in case of smtp_ibm destination type).", "computed": true }, { - "name": "topic_name", + "name": "updated_at", "type": "TypeString", - "description": "Name of the topic.", + "description": "Last updated time.", "computed": true - }, + } + ], + "ibm_en_subscription_email": [ { - "name": "instance_guid", + "name": "topic_id", "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "description": "Topic ID.", "immutable": true, "required": true }, { - "name": "name", + "name": "destination_type", "type": "TypeString", - "description": "Subscription name.", - "required": true + "description": "The type of Destination.", + "computed": true }, { - "name": "subscription_id", + "name": "topic_name", "type": "TypeString", - "description": "Subscription ID.", + "description": "Name of the topic.", "computed": true }, { - "name": "destination_name", + "name": "from", "type": "TypeString", - "description": "The Destintion name.", + "description": "From Email ID (it will be displayed only in case of smtp_ibm destination type).", "computed": true }, { @@ -111739,34 +114667,27 @@ "type": "TypeString", "description": "Last updated time.", "computed": true - } - ], - "ibm_en_subscription_huawei": [ + }, { - "name": "destination_type", + "name": "instance_guid", "type": "TypeString", - "description": "The type of Destination.", - "computed": true + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true }, { - "name": "topic_name", + "name": "description", "type": "TypeString", - "description": "Name of the topic.", - "computed": true + "description": "Subscription description.", + "optional": true }, { - "name": "topic_id", + "name": "destination_id", "type": "TypeString", - "description": "Topic ID.", + "description": "Destination ID.", "immutable": true, "required": true }, - { - "name": "subscription_id", - "type": "TypeString", - "description": "Subscription ID.", - "computed": true - }, { "name": "destination_name", "type": "TypeString", @@ -111774,11 +114695,78 @@ "computed": true }, { - "name": "updated_at", + "name": "name", "type": "TypeString", - "description": "Last updated time.", - "computed": true - }, + "description": "Subscription name.", + "required": true + }, + { + "name": "attributes", + "type": "TypeList", + "optional": true, + "elem": { + "add": { + "name": "add", + "type": "TypeList", + "description": "The Email address which should be added to smtp_ibm.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + "add_notification_payload": { + "name": "add_notification_payload", + "type": "TypeBool", + "description": "Whether to add the notification payload to the email.", + "optional": true + }, + "from_name": { + "name": "from_name", + "type": "TypeString", + "description": "The email address from which email is sourced.", + "optional": true + }, + "invited": { + "name": "invited", + "type": "TypeList", + "description": "The Email address send the invite to in case of smtp_ibm.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + "remove": { + "name": "remove", + "type": "TypeList", + "description": "The email id to be removed in case of smtp_ibm destination type.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + "reply_to_mail": { + "name": "reply_to_mail", + "type": "TypeString", + "description": "The email address to reply to.", + "optional": true + }, + "reply_to_name": { + "name": "reply_to_name", + "type": "TypeString", + "description": "The name of the email address user to reply to.", + "optional": true + } + }, + "max_items": 1 + }, + { + "name": "subscription_id", + "type": "TypeString", + "description": "Subscription ID.", + "computed": true + } + ], + "ibm_en_subscription_firefox": [ { "name": "instance_guid", "type": "TypeString", @@ -111798,15 +114786,6 @@ "description": "Subscription description.", "optional": true }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Destination ID.", - "immutable": true, - "required": true - } - ], - "ibm_en_subscription_ios": [ { "name": "topic_name", "type": "TypeString", @@ -111820,17 +114799,18 @@ "computed": true }, { - "name": "instance_guid", + "name": "destination_id", "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "description": "Destination ID.", "immutable": true, "required": true }, { - "name": "description", + "name": "topic_id", "type": "TypeString", - "description": "Subscription description.", - "optional": true + "description": "Topic ID.", + "immutable": true, + "required": true }, { "name": "subscription_id", @@ -111849,40 +114829,19 @@ "type": "TypeString", "description": "The Destintion name.", "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Subscription name.", - "required": true - }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Destination ID.", - "immutable": true, - "required": true - }, - { - "name": "topic_id", - "type": "TypeString", - "description": "Topic ID.", - "immutable": true, - "required": true } ], - "ibm_en_subscription_msteams": [ + "ibm_en_subscription_huawei": [ { - "name": "topic_id", + "name": "destination_name", "type": "TypeString", - "description": "Topic ID.", - "immutable": true, - "required": true + "description": "The Destintion name.", + "computed": true }, { - "name": "subscription_id", + "name": "topic_name", "type": "TypeString", - "description": "Subscription ID.", + "description": "Name of the topic.", "computed": true }, { @@ -111899,22 +114858,22 @@ "required": true }, { - "name": "destination_id", + "name": "topic_id", "type": "TypeString", - "description": "Destination ID.", + "description": "Topic ID.", "immutable": true, "required": true }, { - "name": "topic_name", + "name": "subscription_id", "type": "TypeString", - "description": "Name of the topic.", + "description": "Subscription ID.", "computed": true }, { - "name": "updated_at", + "name": "destination_type", "type": "TypeString", - "description": "Last updated time.", + "description": "The type of Destination.", "computed": true }, { @@ -111924,19 +114883,20 @@ "optional": true }, { - "name": "destination_type", + "name": "destination_id", "type": "TypeString", - "description": "The type of Destination.", - "computed": true + "description": "Destination ID.", + "immutable": true, + "required": true }, { - "name": "destination_name", + "name": "updated_at", "type": "TypeString", - "description": "The Destintion name.", + "description": "Last updated time.", "computed": true } ], - "ibm_en_subscription_pagerduty": [ + "ibm_en_subscription_ios": [ { "name": "instance_guid", "type": "TypeString", @@ -111950,6 +114910,12 @@ "description": "Subscription name.", "required": true }, + { + "name": "description", + "type": "TypeString", + "description": "Subscription description.", + "optional": true + }, { "name": "destination_id", "type": "TypeString", @@ -111957,6 +114923,12 @@ "immutable": true, "required": true }, + { + "name": "topic_name", + "type": "TypeString", + "description": "Name of the topic.", + "computed": true + }, { "name": "topic_id", "type": "TypeString", @@ -111964,6 +114936,12 @@ "immutable": true, "required": true }, + { + "name": "subscription_id", + "type": "TypeString", + "description": "Subscription ID.", + "computed": true + }, { "name": "destination_type", "type": "TypeString", @@ -111977,35 +114955,49 @@ "computed": true }, { - "name": "topic_name", + "name": "updated_at", "type": "TypeString", - "description": "Name of the topic.", + "description": "Last updated time.", "computed": true + } + ], + "ibm_en_subscription_msteams": [ + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true }, { - "name": "description", + "name": "name", "type": "TypeString", - "description": "Subscription description.", - "optional": true + "description": "Subscription name.", + "required": true }, { - "name": "subscription_id", + "name": "topic_id", "type": "TypeString", - "description": "Subscription ID.", - "computed": true + "description": "Topic ID.", + "immutable": true, + "required": true }, { "name": "updated_at", "type": "TypeString", "description": "Last updated time.", "computed": true - } - ], - "ibm_en_subscription_safari": [ + }, { - "name": "instance_guid", + "name": "description", "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "description": "Subscription description.", + "optional": true + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Destination ID.", "immutable": true, "required": true }, @@ -112015,6 +115007,12 @@ "description": "Subscription ID.", "computed": true }, + { + "name": "destination_type", + "type": "TypeString", + "description": "The type of Destination.", + "computed": true + }, { "name": "destination_name", "type": "TypeString", @@ -112022,11 +115020,18 @@ "computed": true }, { - "name": "topic_id", + "name": "topic_name", "type": "TypeString", - "description": "Topic ID.", - "immutable": true, - "required": true + "description": "Name of the topic.", + "computed": true + } + ], + "ibm_en_subscription_pagerduty": [ + { + "name": "subscription_id", + "type": "TypeString", + "description": "Subscription ID.", + "computed": true }, { "name": "destination_type", @@ -112035,16 +115040,17 @@ "computed": true }, { - "name": "topic_name", + "name": "destination_name", "type": "TypeString", - "description": "Name of the topic.", + "description": "The Destintion name.", "computed": true }, { - "name": "updated_at", + "name": "instance_guid", "type": "TypeString", - "description": "Last updated time.", - "computed": true + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true }, { "name": "name", @@ -112064,14 +115070,6 @@ "description": "Destination ID.", "immutable": true, "required": true - } - ], - "ibm_en_subscription_slack": [ - { - "name": "description", - "type": "TypeString", - "description": "Subscription description.", - "optional": true }, { "name": "topic_id", @@ -112081,19 +115079,19 @@ "required": true }, { - "name": "attributes", - "type": "TypeList", - "optional": true, - "elem": { - "attachment_color": { - "name": "attachment_color", - "type": "TypeString", - "description": "attachment color code", - "optional": true - } - }, - "max_items": 1 + "name": "topic_name", + "type": "TypeString", + "description": "Name of the topic.", + "computed": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + } + ], + "ibm_en_subscription_safari": [ { "name": "topic_name", "type": "TypeString", @@ -112101,17 +115099,23 @@ "computed": true }, { - "name": "instance_guid", + "name": "updated_at", "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "description": "Last updated time.", + "computed": true + }, + { + "name": "topic_id", + "type": "TypeString", + "description": "Topic ID.", "immutable": true, "required": true }, { - "name": "name", + "name": "subscription_id", "type": "TypeString", - "description": "Subscription name.", - "required": true + "description": "Subscription ID.", + "computed": true }, { "name": "destination_type", @@ -112126,10 +115130,23 @@ "computed": true }, { - "name": "updated_at", + "name": "instance_guid", "type": "TypeString", - "description": "Last updated time.", - "computed": true + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Subscription name.", + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Subscription description.", + "optional": true }, { "name": "destination_id", @@ -112137,41 +115154,59 @@ "description": "Destination ID.", "immutable": true, "required": true - }, + } + ], + "ibm_en_subscription_slack": [ { "name": "subscription_id", "type": "TypeString", "description": "Subscription ID.", "computed": true - } - ], - "ibm_en_subscription_sms": [ + }, { - "name": "instance_guid", + "name": "destination_type", "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true + "description": "The type of Destination.", + "computed": true }, { - "name": "destination_id", + "name": "destination_name", "type": "TypeString", - "description": "Destination ID.", - "immutable": true, + "description": "The Destintion name.", + "computed": true + }, + { + "name": "topic_name", + "type": "TypeString", + "description": "Name of the topic.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Subscription name.", "required": true }, { - "name": "topic_id", + "name": "destination_id", "type": "TypeString", - "description": "Topic ID.", + "description": "Destination ID.", "immutable": true, "required": true }, { - "name": "subscription_id", - "type": "TypeString", - "description": "Subscription ID.", - "computed": true + "name": "attributes", + "type": "TypeList", + "optional": true, + "elem": { + "attachment_color": { + "name": "attachment_color", + "type": "TypeString", + "description": "attachment color code", + "optional": true + } + }, + "max_items": 1 }, { "name": "updated_at", @@ -112180,9 +115215,10 @@ "computed": true }, { - "name": "name", + "name": "instance_guid", "type": "TypeString", - "description": "Subscription name.", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, "required": true }, { @@ -112191,6 +115227,15 @@ "description": "Subscription description.", "optional": true }, + { + "name": "topic_id", + "type": "TypeString", + "description": "Topic ID.", + "immutable": true, + "required": true + } + ], + "ibm_en_subscription_sms": [ { "name": "attributes", "type": "TypeList", @@ -112233,43 +115278,34 @@ "computed": true }, { - "name": "destination_name", + "name": "updated_at", "type": "TypeString", - "description": "The Destination name.", + "description": "Last updated time.", "computed": true }, { - "name": "topic_name", - "type": "TypeString", - "description": "Name of the topic.", - "computed": true - } - ], - "ibm_en_subscription_sn": [ - { - "name": "subscription_id", + "name": "destination_name", "type": "TypeString", - "description": "Subscription ID.", + "description": "The Destination name.", "computed": true }, { - "name": "destination_type", + "name": "topic_name", "type": "TypeString", - "description": "The type of Destination.", + "description": "Name of the topic.", "computed": true }, { - "name": "destination_id", + "name": "instance_guid", "type": "TypeString", - "description": "Destination ID.", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", "immutable": true, "required": true }, { - "name": "topic_id", + "name": "name", "type": "TypeString", - "description": "Topic ID.", - "immutable": true, + "description": "Subscription name.", "required": true }, { @@ -112279,38 +115315,47 @@ "optional": true }, { - "name": "destination_name", + "name": "destination_id", "type": "TypeString", - "description": "The Destintion name.", - "computed": true + "description": "Destination ID.", + "immutable": true, + "required": true }, { - "name": "topic_name", + "name": "topic_id", "type": "TypeString", - "description": "Name of the topic.", - "computed": true + "description": "Topic ID.", + "immutable": true, + "required": true }, { - "name": "updated_at", + "name": "subscription_id", "type": "TypeString", - "description": "Last updated time.", + "description": "Subscription ID.", "computed": true - }, + } + ], + "ibm_en_subscription_sn": [ { - "name": "instance_guid", + "name": "destination_id", "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "description": "Destination ID.", "immutable": true, "required": true }, { - "name": "name", + "name": "topic_id", "type": "TypeString", - "description": "Subscription name.", + "description": "Topic ID.", + "immutable": true, "required": true - } - ], - "ibm_en_subscription_webhook": [ + }, + { + "name": "subscription_id", + "type": "TypeString", + "description": "Subscription ID.", + "computed": true + }, { "name": "instance_guid", "type": "TypeString", @@ -112325,18 +115370,16 @@ "required": true }, { - "name": "destination_id", + "name": "description", "type": "TypeString", - "description": "Destination ID.", - "immutable": true, - "required": true + "description": "Subscription description.", + "optional": true }, { - "name": "topic_id", + "name": "destination_type", "type": "TypeString", - "description": "Topic ID.", - "immutable": true, - "required": true + "description": "The type of Destination.", + "computed": true }, { "name": "destination_name", @@ -112344,12 +115387,20 @@ "description": "The Destintion name.", "computed": true }, + { + "name": "topic_name", + "type": "TypeString", + "description": "Name of the topic.", + "computed": true + }, { "name": "updated_at", "type": "TypeString", "description": "Last updated time.", "computed": true - }, + } + ], + "ibm_en_subscription_webhook": [ { "name": "description", "type": "TypeString", @@ -112378,37 +115429,70 @@ "computed": true }, { - "name": "destination_type", + "name": "topic_name", "type": "TypeString", - "description": "The type of Destination.", + "description": "Name of the topic.", "computed": true }, { - "name": "topic_name", + "name": "instance_guid", "type": "TypeString", - "description": "Name of the topic.", - "computed": true - } - ], - "ibm_en_topic": [ + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true + }, { - "name": "description", + "name": "name", "type": "TypeString", - "description": "Description of the topic.", - "optional": true + "description": "Subscription name.", + "required": true + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Destination ID.", + "immutable": true, + "required": true }, { "name": "topic_id", "type": "TypeString", "description": "Topic ID.", + "immutable": true, + "required": true + }, + { + "name": "destination_type", + "type": "TypeString", + "description": "The type of Destination.", + "computed": true + }, + { + "name": "destination_name", + "type": "TypeString", + "description": "The Destintion name.", "computed": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + } + ], + "ibm_en_topic": [ { "name": "source_count", "type": "TypeInt", "description": "Number of sources.", "computed": true }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + }, { "name": "instance_guid", "type": "TypeString", @@ -112417,10 +115501,10 @@ "required": true }, { - "name": "name", + "name": "description", "type": "TypeString", - "description": "Name of the topic.", - "required": true + "description": "Description of the topic.", + "optional": true }, { "name": "sources", @@ -112465,15 +115549,21 @@ } }, { - "name": "updated_at", + "name": "topic_id", "type": "TypeString", - "description": "Last time the topic was updated.", + "description": "Topic ID.", "computed": true }, { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", + "name": "name", + "type": "TypeString", + "description": "Name of the topic.", + "required": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last time the topic was updated.", "computed": true }, { @@ -112536,27 +115626,27 @@ "required": true }, { - "name": "name", + "name": "enterprise_account_id", "type": "TypeString", - "description": "The name of the enterprise. This field must have 3 - 60 characters.", - "required": true + "description": "The enterprise account ID.", + "computed": true }, { - "name": "primary_contact_iam_id", + "name": "state", "type": "TypeString", - "description": "The IAM ID of the enterprise primary contact, such as `IBMid-0123ABC`. The IAM ID must already exist.", - "required": true + "description": "The state of the enterprise.", + "computed": true }, { - "name": "url", + "name": "created_at", "type": "TypeString", - "description": "The URL of the enterprise.", + "description": "The time stamp at which the enterprise was created.", "computed": true }, { - "name": "state", + "name": "updated_at", "type": "TypeString", - "description": "The state of the enterprise.", + "description": "The time stamp at which the enterprise was last updated.", "computed": true }, { @@ -112566,50 +115656,56 @@ "computed": true }, { - "name": "updated_by", + "name": "created_by", "type": "TypeString", - "description": "The IAM ID of the user or service that updated the enterprise.", + "description": "The IAM ID of the user or service that created the enterprise.", "computed": true }, { - "name": "domain", + "name": "updated_by", "type": "TypeString", - "description": "A domain or subdomain for the enterprise, such as `example.com` or `my.example.com`.", - "optional": true + "description": "The IAM ID of the user or service that updated the enterprise.", + "computed": true }, { - "name": "enterprise_account_id", + "name": "name", "type": "TypeString", - "description": "The enterprise account ID.", - "computed": true + "description": "The name of the enterprise. This field must have 3 - 60 characters.", + "required": true }, { - "name": "crn", + "name": "primary_contact_iam_id", "type": "TypeString", - "description": "The Cloud Resource Name (CRN) of the enterprise.", - "cloud_data_type": "crn", - "computed": true + "description": "The IAM ID of the enterprise primary contact, such as `IBMid-0123ABC`. The IAM ID must already exist.", + "required": true }, { - "name": "created_at", + "name": "domain", "type": "TypeString", - "description": "The time stamp at which the enterprise was created.", - "computed": true + "description": "A domain or subdomain for the enterprise, such as `example.com` or `my.example.com`.", + "optional": true }, { - "name": "created_by", + "name": "url", "type": "TypeString", - "description": "The IAM ID of the user or service that created the enterprise.", + "description": "The URL of the enterprise.", "computed": true }, { - "name": "updated_at", + "name": "crn", "type": "TypeString", - "description": "The time stamp at which the enterprise was last updated.", + "description": "The Cloud Resource Name (CRN) of the enterprise.", + "cloud_data_type": "crn", "computed": true } ], "ibm_enterprise_account": [ + { + "name": "parent", + "type": "TypeString", + "description": "The CRN of the parent under which the account will be created. The parent can be an existing account group or the enterprise itself.", + "required": true + }, { "name": "owner_iam_id", "type": "TypeString", @@ -112639,22 +115735,22 @@ } }, { - "name": "url", + "name": "enterprise_id", "type": "TypeString", - "description": "The URL of the account.", + "description": "The enterprise ID that the account is a part of.", + "optional": true, "computed": true }, { - "name": "account_id", + "name": "created_by", "type": "TypeString", - "description": "The source account id of account to be imported", - "optional": true, + "description": "The IAM ID of the user or service that created the account.", "computed": true }, { - "name": "enterprise_path", + "name": "updated_at", "type": "TypeString", - "description": "The path from the enterprise to this particular account.", + "description": "The time stamp at which the account was last updated.", "computed": true }, { @@ -112664,17 +115760,16 @@ "computed": true }, { - "name": "parent", + "name": "url", "type": "TypeString", - "description": "The CRN of the parent under which the account will be created. The parent can be an existing account group or the enterprise itself.", - "required": true + "description": "The URL of the account.", + "computed": true }, { - "name": "name", + "name": "crn", "type": "TypeString", - "description": "The name of the account. This field must have 3 - 60 characters.", - "immutable": true, - "optional": true, + "description": "The Cloud Resource Name (CRN) of the account.", + "cloud_data_type": "crn", "computed": true }, { @@ -112684,24 +115779,6 @@ "optional": true, "computed": true }, - { - "name": "is_enterprise_account", - "type": "TypeBool", - "description": "The flag to indicate whether the account is an enterprise account or not.", - "computed": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "The IAM ID of the user or service that created the account.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "The time stamp at which the account was last updated.", - "computed": true - }, { "name": "state", "type": "TypeString", @@ -112715,45 +115792,46 @@ "computed": true }, { - "name": "owner_email", - "type": "TypeString", - "description": "The email address of the owner of the account.", + "name": "is_enterprise_account", + "type": "TypeBool", + "description": "The flag to indicate whether the account is an enterprise account or not.", "computed": true }, { - "name": "crn", + "name": "created_at", "type": "TypeString", - "description": "The Cloud Resource Name (CRN) of the account.", - "cloud_data_type": "crn", + "description": "The time stamp at which the account was created.", "computed": true }, { - "name": "enterprise_id", + "name": "name", "type": "TypeString", - "description": "The enterprise ID that the account is a part of.", + "description": "The name of the account. This field must have 3 - 60 characters.", + "immutable": true, "optional": true, "computed": true }, { - "name": "created_at", + "name": "enterprise_path", "type": "TypeString", - "description": "The time stamp at which the account was created.", + "description": "The path from the enterprise to this particular account.", "computed": true - } - ], - "ibm_enterprise_account_group": [ + }, { - "name": "url", + "name": "account_id", "type": "TypeString", - "description": "The URL of the account group.", + "description": "The source account id of account to be imported", + "optional": true, "computed": true }, { - "name": "enterprise_account_id", + "name": "owner_email", "type": "TypeString", - "description": "The enterprise account ID.", + "description": "The email address of the owner of the account.", "computed": true - }, + } + ], + "ibm_enterprise_account_group": [ { "name": "parent", "type": "TypeString", @@ -112761,6 +115839,12 @@ "immutable": true, "required": true }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the account group. This field must have 3 - 60 characters.", + "required": true + }, { "name": "primary_contact_iam_id", "type": "TypeString", @@ -112768,16 +115852,28 @@ "required": true }, { - "name": "crn", + "name": "enterprise_id", "type": "TypeString", - "description": "The Cloud Resource Name (CRN) of the account group.", - "cloud_data_type": "crn", + "description": "The enterprise ID that the account group is a part of.", "computed": true }, { - "name": "enterprise_id", + "name": "state", "type": "TypeString", - "description": "The enterprise ID that the account group is a part of.", + "description": "The state of the account group.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The time stamp at which the account group was last updated.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The Cloud Resource Name (CRN) of the account group.", + "cloud_data_type": "crn", "computed": true }, { @@ -112793,15 +115889,9 @@ "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The name of the account group. This field must have 3 - 60 characters.", - "required": true - }, - { - "name": "state", + "name": "updated_by", "type": "TypeString", - "description": "The state of the account group.", + "description": "The IAM ID of the user or service that updated the account group.", "computed": true }, { @@ -112811,39 +115901,25 @@ "computed": true }, { - "name": "updated_at", + "name": "url", "type": "TypeString", - "description": "The time stamp at which the account group was last updated.", + "description": "The URL of the account group.", "computed": true }, { - "name": "enterprise_path", + "name": "enterprise_account_id", "type": "TypeString", - "description": "The path from the enterprise to this particular account group.", + "description": "The enterprise account ID.", "computed": true }, { - "name": "updated_by", + "name": "enterprise_path", "type": "TypeString", - "description": "The IAM ID of the user or service that updated the account group.", + "description": "The path from the enterprise to this particular account group.", "computed": true } ], "ibm_event_streams_schema": [ - { - "name": "schema", - "type": "TypeString", - "description": "The schema in JSON format", - "required": true - }, - { - "name": "schema_id", - "type": "TypeString", - "description": "The ID to be assigned to schema, which must be unique. If this value is not specified, a generated UUID is assigned.", - "immutable": true, - "optional": true, - "computed": true - }, { "name": "resource_instance_id", "type": "TypeString", @@ -112860,22 +115936,23 @@ "type": "TypeString", "description": "The API endpoint for interacting with an Event Streams REST API", "computed": true - } - ], - "ibm_event_streams_topic": [ - { - "name": "partitions", - "type": "TypeInt", - "description": "The number of partitions", - "default_value": 1, - "optional": true }, { - "name": "config", - "type": "TypeMap", - "description": "The configuration parameters of a topic", - "optional": true + "name": "schema", + "type": "TypeString", + "description": "The schema in JSON format", + "required": true }, + { + "name": "schema_id", + "type": "TypeString", + "description": "The ID to be assigned to schema, which must be unique. If this value is not specified, a generated UUID is assigned.", + "immutable": true, + "optional": true, + "computed": true + } + ], + "ibm_event_streams_topic": [ { "name": "resource_instance_id", "type": "TypeString", @@ -112906,9 +115983,39 @@ "type": "TypeString", "description": "The name of the topic", "required": true + }, + { + "name": "partitions", + "type": "TypeInt", + "description": "The number of partitions", + "default_value": 1, + "optional": true + }, + { + "name": "config", + "type": "TypeMap", + "description": "The configuration parameters of a topic", + "optional": true } ], "ibm_firewall": [ + { + "name": "public_vlan_id", + "type": "TypeInt", + "description": "Public VLAN ID", + "immutable": true, + "required": true + }, + { + "name": "tags", + "type": "TypeSet", + "description": "List of tags for the firewall", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, { "name": "location", "type": "TypeString", @@ -112949,36 +116056,9 @@ "default_value": false, "immutable": true, "optional": true - }, - { - "name": "public_vlan_id", - "type": "TypeInt", - "description": "Public VLAN ID", - "immutable": true, - "required": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "List of tags for the firewall", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } } ], "ibm_firewall_policy": [ - { - "name": "tags", - "type": "TypeSet", - "description": "List of tags", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - }, { "name": "firewall_id", "type": "TypeInt", @@ -113038,73 +116118,19 @@ "required": true } } - } - ], - "ibm_function_action": [ - { - "name": "namespace", - "type": "TypeString", - "description": "IBM Cloud function namespace.", - "immutable": true, - "required": true }, { - "name": "limits", - "type": "TypeList", + "name": "tags", + "type": "TypeSet", + "description": "List of tags", + "cloud_data_type": "tags", "optional": true, - "computed": true, "elem": { - "log_size": { - "name": "log_size", - "type": "TypeInt", - "description": "The maximum log size LIMIT in MB for the action.", - "default_value": 10, - "optional": true - }, - "memory": { - "name": "memory", - "type": "TypeInt", - "description": "The maximum memory LIMIT in MB for the action (default 256.", - "default_value": 256, - "optional": true - }, - "timeout": { - "name": "timeout", - "type": "TypeInt", - "description": "The timeout LIMIT in milliseconds after which the action is terminated.", - "default_value": 60000, - "optional": true - } - }, - "max_items": 1 - }, - { - "name": "user_defined_parameters", - "type": "TypeString", - "description": "Parameters values in KEY VALUE format. Parameter bindings included in the context passed to the action.", - "default_value": "[]", - "optional": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of action.", - "immutable": true, - "required": true, - "matches": "^[^/*][a-zA-Z0-9/_@.-]" - }, - { - "name": "publish", - "type": "TypeBool", - "description": "Action visibilty.", - "optional": true - }, - { - "name": "version", - "type": "TypeString", - "description": "Semantic version of the item.", - "computed": true - }, + "type": "TypeString" + } + } + ], + "ibm_function_action": [ { "name": "user_defined_annotations", "type": "TypeString", @@ -113119,21 +116145,19 @@ "computed": true }, { - "name": "parameters", - "type": "TypeString", - "description": "All paramters set on action by user and those set by the IBM Cloud Function backend/API.", - "computed": true - }, - { - "name": "action_id", + "name": "name", "type": "TypeString", - "computed": true + "description": "Name of action.", + "immutable": true, + "required": true, + "matches": "^[^/*][a-zA-Z0-9/_@.-]" }, { - "name": "target_endpoint_url", + "name": "namespace", "type": "TypeString", - "description": "Action target endpoint URL.", - "computed": true + "description": "IBM Cloud function namespace.", + "immutable": true, + "required": true }, { "name": "exec", @@ -113189,21 +116213,75 @@ } }, "max_items": 1 - } - ], - "ibm_function_namespace": [ + }, { - "name": "name", + "name": "version", "type": "TypeString", - "description": "Name of namespace.", - "required": true + "description": "Semantic version of the item.", + "computed": true }, { - "name": "description", + "name": "action_id", "type": "TypeString", - "description": "Namespace Description.", + "computed": true + }, + { + "name": "target_endpoint_url", + "type": "TypeString", + "description": "Action target endpoint URL.", + "computed": true + }, + { + "name": "limits", + "type": "TypeList", + "optional": true, + "computed": true, + "elem": { + "log_size": { + "name": "log_size", + "type": "TypeInt", + "description": "The maximum log size LIMIT in MB for the action.", + "default_value": 10, + "optional": true + }, + "memory": { + "name": "memory", + "type": "TypeInt", + "description": "The maximum memory LIMIT in MB for the action (default 256.", + "default_value": 256, + "optional": true + }, + "timeout": { + "name": "timeout", + "type": "TypeInt", + "description": "The timeout LIMIT in milliseconds after which the action is terminated.", + "default_value": 60000, + "optional": true + } + }, + "max_items": 1 + }, + { + "name": "publish", + "type": "TypeBool", + "description": "Action visibilty.", + "optional": true + }, + { + "name": "user_defined_parameters", + "type": "TypeString", + "description": "Parameters values in KEY VALUE format. Parameter bindings included in the context passed to the action.", + "default_value": "[]", "optional": true }, + { + "name": "parameters", + "type": "TypeString", + "description": "All paramters set on action by user and those set by the IBM Cloud Function backend/API.", + "computed": true + } + ], + "ibm_function_namespace": [ { "name": "resource_group_id", "type": "TypeString", @@ -113217,27 +116295,21 @@ "description": "Namespace Location.", "cloud_data_type": "region", "computed": true - } - ], - "ibm_function_package": [ - { - "name": "user_defined_parameters", - "type": "TypeString", - "description": "Parameters values in KEY VALUE format. Parameter bindings included in the context passed to the package.", - "default_value": "[]", - "optional": true }, { - "name": "annotations", + "name": "name", "type": "TypeString", - "description": "All annotations set on package by user and those set by the IBM Cloud Function backend/API.", - "computed": true + "description": "Name of namespace.", + "required": true }, { - "name": "package_id", + "name": "description", "type": "TypeString", - "computed": true - }, + "description": "Namespace Description.", + "optional": true + } + ], + "ibm_function_package": [ { "name": "namespace", "type": "TypeString", @@ -113246,32 +116318,16 @@ "required": true }, { - "name": "name", - "type": "TypeString", - "description": "Name of package.", - "immutable": true, - "required": true, - "matches": "\\A([\\w]|[\\w][\\w@ .-]*[\\w@.-]+)\\z" - }, - { - "name": "publish", - "type": "TypeBool", - "description": "Package visibilty.", - "default_value": false, - "optional": true - }, - { - "name": "version", + "name": "version", "type": "TypeString", "description": "Semantic version of the item.", "computed": true }, { - "name": "user_defined_annotations", + "name": "annotations", "type": "TypeString", - "description": "Annotation values in KEY VALUE format.", - "default_value": "[]", - "optional": true + "description": "All annotations set on package by user and those set by the IBM Cloud Function backend/API.", + "computed": true }, { "name": "parameters", @@ -113285,21 +116341,43 @@ "description": "Name of package to be binded.", "immutable": true, "optional": true - } - ], - "ibm_function_rule": [ + }, + { + "name": "package_id", + "type": "TypeString", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of package.", + "immutable": true, + "required": true, + "matches": "\\A([\\w]|[\\w][\\w@ .-]*[\\w@.-]+)\\z" + }, { "name": "publish", "type": "TypeBool", - "description": "Rule visbility.", - "computed": true + "description": "Package visibilty.", + "default_value": false, + "optional": true }, { - "name": "version", + "name": "user_defined_annotations", "type": "TypeString", - "description": "Semantic version of the item.", - "computed": true + "description": "Annotation values in KEY VALUE format.", + "default_value": "[]", + "optional": true }, + { + "name": "user_defined_parameters", + "type": "TypeString", + "description": "Parameters values in KEY VALUE format. Parameter bindings included in the context passed to the package.", + "default_value": "[]", + "optional": true + } + ], + "ibm_function_rule": [ { "name": "rule_id", "type": "TypeString", @@ -113337,21 +116415,21 @@ "type": "TypeString", "description": "Status of the rule.", "computed": true - } - ], - "ibm_function_trigger": [ + }, { - "name": "version", - "type": "TypeString", - "description": "Semantic version of the item.", + "name": "publish", + "type": "TypeBool", + "description": "Rule visbility.", "computed": true }, { - "name": "annotations", + "name": "version", "type": "TypeString", - "description": "All annotations set on trigger by user and those set by the IBM Cloud Function backend/API.", + "description": "Semantic version of the item.", "computed": true - }, + } + ], + "ibm_function_trigger": [ { "name": "trigger_id", "type": "TypeString", @@ -113389,16 +116467,15 @@ "max_items": 1 }, { - "name": "user_defined_annotations", - "type": "TypeString", - "description": "Annotation values in KEY VALUE format.", - "default_value": "[]", - "optional": true + "name": "publish", + "type": "TypeBool", + "description": "Trigger visbility.", + "computed": true }, { - "name": "user_defined_parameters", + "name": "user_defined_annotations", "type": "TypeString", - "description": "Parameters values in KEY VALUE format. Parameter bindings included in the context passed to the trigger.", + "description": "Annotation values in KEY VALUE format.", "default_value": "[]", "optional": true }, @@ -113417,9 +116494,22 @@ "matches": "\\A([\\w]|[\\w][\\w@ .-]*[\\w@.-]+)\\z" }, { - "name": "publish", - "type": "TypeBool", - "description": "Trigger visbility.", + "name": "version", + "type": "TypeString", + "description": "Semantic version of the item.", + "computed": true + }, + { + "name": "user_defined_parameters", + "type": "TypeString", + "description": "Parameters values in KEY VALUE format. Parameter bindings included in the context passed to the trigger.", + "default_value": "[]", + "optional": true + }, + { + "name": "annotations", + "type": "TypeString", + "description": "All annotations set on trigger by user and those set by the IBM Cloud Function backend/API.", "computed": true } ], @@ -113454,112 +116544,11 @@ ], "ibm_hpcs": [ { - "name": "failover_units", - "type": "TypeInt", - "description": "The number of failover crypto units for your service instance", - "optional": true - }, - { - "name": "scheduled_reclaim_by", - "type": "TypeString", - "description": "The subject who initiated the instance reclamation.", - "computed": true - }, - { - "name": "plan", - "type": "TypeString", - "description": "The plan type of the HPCS Instance", - "required": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "The subject who created the instance.", - "computed": true - }, - { - "name": "deleted_at", - "type": "TypeString", - "description": "The date when the instance was deleted.", - "computed": true - }, - { - "name": "extensions", - "type": "TypeMap", - "description": "The extended metadata as a map associated with the HPCS instance.", - "computed": true - }, - { - "name": "revocation_threshold", - "type": "TypeInt", - "description": "Revocation Threshold Value", - "required": true - }, - { - "name": "location", - "type": "TypeString", - "description": "The location where the HPCS instance available", - "cloud_data_type": "region", - "required": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "The resource group id", - "cloud_data_type": "resource_group", - "optional": true, - "computed": true - }, - { - "name": "state", - "type": "TypeString", - "description": "The current state of the instance.", - "computed": true - }, - { - "name": "update_at", - "type": "TypeString", - "description": "The date when the instance was last updated.", - "computed": true - }, - { - "name": "restored_at", + "name": "service", "type": "TypeString", - "description": "The date when the instance under reclamation was restored.", - "computed": true - }, - { - "name": "signature_threshold", - "type": "TypeInt", - "description": "Signature Threshold Value", - "required": true - }, - { - "name": "admins", - "type": "TypeSet", - "description": "Crypto Unit Administrators", - "required": true, - "elem": { - "key": { - "name": "key", - "type": "TypeString", - "description": "The administrator signature key", - "required": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Admin Name", - "required": true - }, - "token": { - "name": "token", - "type": "TypeString", - "description": "Credential giving access to the administrator signature key", - "secure": true, - "required": true - } - } + "description": "The name of the service offering `hs-crypto`", + "default_value": "hs-crypto", + "optional": true }, { "name": "tags", @@ -113574,59 +116563,47 @@ } }, { - "name": "status", - "type": "TypeString", - "description": "Status of HPCS instance", - "computed": true - }, - { - "name": "created_at", + "name": "update_at", "type": "TypeString", - "description": "The date when the instance was created.", + "description": "The date when the instance was last updated.", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "A name for the HPCS instance", - "required": true - }, - { - "name": "units", + "name": "signature_threshold", "type": "TypeInt", - "description": "The number of operational crypto units for your service instance", + "description": "Signature Threshold Value", "required": true }, { - "name": "restored_by", + "name": "location", "type": "TypeString", - "description": "The subject who restored the instance back from reclamation.", - "computed": true + "description": "The location where the HPCS instance available", + "cloud_data_type": "region", + "required": true }, { - "name": "service", - "type": "TypeString", - "description": "The name of the service offering `hs-crypto`", - "default_value": "hs-crypto", + "name": "failover_units", + "type": "TypeInt", + "description": "The number of failover crypto units for your service instance", "optional": true }, { - "name": "dashboard_url", + "name": "resource_aliases_url", "type": "TypeString", - "description": "Dashboard URL to access resource.", + "description": "The relative path to the resource aliases for the instance.", "computed": true }, { - "name": "resource_bindings_url", - "type": "TypeString", - "description": "The relative path to the resource bindings for the instance.", + "name": "extensions", + "type": "TypeMap", + "description": "The extended metadata as a map associated with the HPCS instance.", "computed": true }, { - "name": "resource_keys_url", - "type": "TypeString", - "description": "The relative path to the resource keys for the instance.", - "computed": true + "name": "revocation_threshold", + "type": "TypeInt", + "description": "Revocation Threshold Value", + "required": true }, { "name": "hsm_info", @@ -113703,47 +116680,75 @@ } }, { - "name": "service_endpoints", + "name": "plan", "type": "TypeString", - "description": "Types of the service endpoints. Possible values are `public-and-private`, `private-only`.", - "optional": true, + "description": "The plan type of the HPCS Instance", + "required": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Status of HPCS instance", "computed": true }, { - "name": "crn", + "name": "created_at", "type": "TypeString", - "description": "CRN of HPCS instance", - "cloud_data_type": "crn", + "description": "The date when the instance was created.", "computed": true }, { - "name": "guid", + "name": "deleted_at", "type": "TypeString", - "description": "Guid of HPCS instance", + "description": "The date when the instance was deleted.", "computed": true }, { - "name": "scheduled_reclaim_at", + "name": "scheduled_reclaim_by", "type": "TypeString", - "description": "The date when the instance was scheduled for reclamation.", + "description": "The subject who initiated the instance reclamation.", "computed": true }, { - "name": "signature_server_url", + "name": "restored_at", "type": "TypeString", - "description": "URL of signing service", - "optional": true + "description": "The date when the instance under reclamation was restored.", + "computed": true }, { - "name": "resource_aliases_url", + "name": "restored_by", "type": "TypeString", - "description": "The relative path to the resource aliases for the instance.", + "description": "The subject who restored the instance back from reclamation.", "computed": true }, { - "name": "update_by", + "name": "units", + "type": "TypeInt", + "description": "The number of operational crypto units for your service instance", + "required": true + }, + { + "name": "resource_keys_url", "type": "TypeString", - "description": "The subject who updated the instance.", + "description": "The relative path to the resource keys for the instance.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "A name for the HPCS instance", + "required": true + }, + { + "name": "guid", + "type": "TypeString", + "description": "Guid of HPCS instance", + "computed": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "The subject who created the instance.", "computed": true }, { @@ -113751,122 +116756,94 @@ "type": "TypeString", "description": "The subject who deleted the instance.", "computed": true - } - ], - "ibm_hpcs_key_template": [ + }, { - "name": "instance_id", + "name": "scheduled_reclaim_at", "type": "TypeString", - "description": "The ID of the UKO instance this resource exists in.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true, - "cloud_data_range": [ - "service:hs-crypto" - ] + "description": "The date when the instance was scheduled for reclamation.", + "computed": true }, { - "name": "description", + "name": "resource_group_id", "type": "TypeString", - "description": "Description of the key template.", - "max_length": 200, - "matches": "(.|\\\\n)*", - "optional": true + "description": "The resource group id", + "cloud_data_type": "resource_group", + "optional": true, + "computed": true }, { - "name": "uko_vault", + "name": "service_endpoints", "type": "TypeString", - "description": "The UUID of the Vault in which the update is to take place.", - "immutable": true, - "required": true + "description": "Types of the service endpoints. Possible values are `public-and-private`, `private-only`.", + "optional": true, + "computed": true }, { - "name": "vault", - "type": "TypeList", - "description": "ID of the Vault where the entity is to be created in.", - "required": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.", - "required": true - } - }, - "max_items": 1, - "min_items": 1 + "name": "update_by", + "type": "TypeString", + "description": "The subject who updated the instance.", + "computed": true }, { - "name": "keystores", - "type": "TypeList", - "description": "An array describing the type and group of target keystores the managed key is to be installed in.", + "name": "admins", + "type": "TypeSet", + "description": "Crypto Unit Administrators", "required": true, "elem": { - "google_key_protection_level": { - "name": "google_key_protection_level", - "type": "TypeString", - "optional": true - }, - "google_key_purpose": { - "name": "google_key_purpose", - "type": "TypeString", - "optional": true - }, - "google_kms_algorithm": { - "name": "google_kms_algorithm", + "key": { + "name": "key", "type": "TypeString", - "optional": true + "description": "The administrator signature key", + "required": true }, - "group": { - "name": "group", + "name": { + "name": "name", "type": "TypeString", - "description": "Which keystore group to distribute the key to.", + "description": "Admin Name", "required": true }, - "type": { - "name": "type", + "token": { + "name": "token", "type": "TypeString", - "description": "Type of keystore.", + "description": "Credential giving access to the administrator signature key", + "secure": true, "required": true } } }, { - "name": "created_at", + "name": "dashboard_url", "type": "TypeString", - "description": "Date and time when the key template was created.", + "description": "Dashboard URL to access resource.", "computed": true }, { - "name": "updated_at", + "name": "resource_bindings_url", "type": "TypeString", - "description": "Date and time when the key template was updated.", + "description": "The relative path to the resource bindings for the instance.", "computed": true }, { - "name": "updated_by", + "name": "signature_server_url", "type": "TypeString", - "description": "ID of the user that updated the key.", - "computed": true + "description": "URL of signing service", + "optional": true }, { - "name": "region", + "name": "crn", "type": "TypeString", - "description": "The region of the UKO instance this resource exists in.", - "immutable": true, - "required": true, - "options": "au-syd, in-che, jp-osa, jp-tok, kr-seo, eu-de, eu-gb, ca-tor, us-south, us-south-test, us-east, br-sao" + "description": "CRN of HPCS instance", + "cloud_data_type": "crn", + "computed": true }, { - "name": "name", + "name": "state", "type": "TypeString", - "description": "Name of the template, it will be referenced when creating managed keys.", - "immutable": true, - "required": true, - "min_length": 1, - "max_length": 30, - "matches": "^[A-Za-z][A-Za-z0-9-]*$" - }, + "description": "The current state of the instance.", + "computed": true + } + ], + "ibm_hpcs_key_template": [ { "name": "key", "type": "TypeList", @@ -113914,19 +116891,17 @@ "computed": true }, { - "name": "created_by", + "name": "created_at", "type": "TypeString", - "description": "ID of the user that created the key template.", + "description": "Date and time when the key template was created.", "computed": true }, { - "name": "href", + "name": "updated_at", "type": "TypeString", - "description": "A URL that uniquely identifies your cloud resource.", + "description": "Date and time when the key template was updated.", "computed": true - } - ], - "ibm_hpcs_keystore": [ + }, { "name": "uko_vault", "type": "TypeString", @@ -113935,40 +116910,49 @@ "required": true }, { - "name": "google_location", - "type": "TypeString", - "description": "Location represents the geographical region where a Cloud KMS resource is stored and can be accessed. A key's location impacts the performance of applications using the key.", - "optional": true + "name": "vault", + "type": "TypeList", + "description": "ID of the Vault where the entity is to be created in.", + "required": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.", + "required": true + } + }, + "max_items": 1, + "min_items": 1 }, { - "name": "google_project_id", + "name": "name", "type": "TypeString", - "description": "The project id associated with this keystore.", - "optional": true + "description": "Name of the template, it will be referenced when creating managed keys.", + "immutable": true, + "required": true, + "min_length": 1, + "max_length": 30, + "matches": "^[A-Za-z][A-Za-z0-9-]*$" }, { - "name": "aws_secret_access_key", + "name": "description", "type": "TypeString", - "description": "The secret access key used for connecting to this instance of AWS KMS.", - "secure": true, + "description": "Description of the key template.", + "max_length": 200, + "matches": "(.|\\\\n)*", "optional": true }, { "name": "created_by", "type": "TypeString", - "description": "ID of the user that created the key.", - "computed": true - }, - { - "name": "etag", - "type": "TypeString", + "description": "ID of the user that created the key template.", "computed": true }, { - "name": "location", + "name": "updated_by", "type": "TypeString", - "description": "Geographic location of the keystore, if available.", - "cloud_data_type": "region", + "description": "ID of the user that updated the key.", "computed": true }, { @@ -113982,6 +116966,12 @@ "service:hs-crypto" ] }, + { + "name": "href", + "type": "TypeString", + "description": "A URL that uniquely identifies your cloud resource.", + "computed": true + }, { "name": "region", "type": "TypeString", @@ -113991,89 +116981,113 @@ "options": "au-syd, in-che, jp-osa, jp-tok, kr-seo, eu-de, eu-gb, ca-tor, us-south, us-south-test, us-east, br-sao" }, { - "name": "google_key_ring", + "name": "keystores", + "type": "TypeList", + "description": "An array describing the type and group of target keystores the managed key is to be installed in.", + "required": true, + "elem": { + "google_key_protection_level": { + "name": "google_key_protection_level", + "type": "TypeString", + "optional": true + }, + "google_key_purpose": { + "name": "google_key_purpose", + "type": "TypeString", + "optional": true + }, + "google_kms_algorithm": { + "name": "google_kms_algorithm", + "type": "TypeString", + "optional": true + }, + "group": { + "name": "group", + "type": "TypeString", + "description": "Which keystore group to distribute the key to.", + "required": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of keystore.", + "required": true + } + } + } + ], + "ibm_hpcs_keystore": [ + { + "name": "uko_vault", "type": "TypeString", - "description": "A key ring organizes keys in a specific Google Cloud location and allows you to manage access control on groups of keys.", - "optional": true + "description": "The UUID of the Vault in which the update is to take place.", + "immutable": true, + "required": true }, { - "name": "ibm_api_key", + "name": "ibm_api_endpoint", "type": "TypeString", - "description": "The IBM Cloud API key to be used for connecting to this IBM Cloud keystore.", - "secure": true, + "description": "API endpoint of the IBM Cloud keystore.", "optional": true }, { - "name": "ibm_instance_id", + "name": "ibm_iam_endpoint", "type": "TypeString", - "description": "The instance ID of the IBM Cloud keystore.", + "description": "Endpoint of the IAM service for this IBM Cloud keystore.", "optional": true }, { - "name": "updated_at", + "name": "created_at", "type": "TypeString", - "description": "Date and time when the target keystore was last updated.", + "description": "Date and time when the target keystore was created.", "computed": true }, { - "name": "azure_resource_group", + "name": "etag", "type": "TypeString", - "description": "Resource group in Azure.", - "optional": true + "computed": true }, { - "name": "azure_location", + "name": "google_key_ring", "type": "TypeString", - "description": "Location of the Azure Key Vault.", + "description": "A key ring organizes keys in a specific Google Cloud location and allows you to manage access control on groups of keys.", "optional": true }, { - "name": "azure_tenant", + "name": "azure_subscription_id", "type": "TypeString", - "description": "Azure tenant that the Key Vault is associated with,.", + "description": "Subscription ID in Azure.", "optional": true }, { - "name": "description", + "name": "google_project_id", "type": "TypeString", - "description": "Description of the keystore.", + "description": "The project id associated with this keystore.", "optional": true }, { - "name": "type", + "name": "google_private_key_id", "type": "TypeString", - "description": "Type of keystore.", - "required": true - }, - { - "name": "dry_run", - "type": "TypeBool", - "description": "Do not create a keystore, only verify if keystore created with given parameters can be communciated with successfully.", - "default_value": false, + "description": "The private key id associated with this keystore.", "optional": true }, { - "name": "azure_subscription_id", + "name": "aws_region", "type": "TypeString", - "description": "Subscription ID in Azure.", + "description": "AWS Region.", "optional": true }, { - "name": "ibm_api_endpoint", + "name": "azure_service_principal_password", "type": "TypeString", - "description": "API endpoint of the IBM Cloud keystore.", + "description": "Azure service principal password.", + "secure": true, "optional": true }, { - "name": "updated_by", - "type": "TypeString", - "description": "ID of the user that last updated the key.", - "computed": true - }, - { - "name": "ibm_iam_endpoint", + "name": "azure_tenant", "type": "TypeString", - "description": "Endpoint of the IAM service for this IBM Cloud keystore.", + "description": "Azure tenant that the Key Vault is associated with,.", "optional": true }, { @@ -114103,22 +117117,33 @@ } }, { - "name": "google_credentials", + "name": "location", "type": "TypeString", - "description": "The value of the JSON key represented in the Base64 format.", - "secure": true, - "optional": true + "description": "Geographic location of the keystore, if available.", + "cloud_data_type": "region", + "computed": true }, { - "name": "google_private_key_id", + "name": "groups", + "type": "TypeList", + "description": "List of groups that this keystore belongs to.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "region", "type": "TypeString", - "description": "The private key id associated with this keystore.", - "optional": true + "description": "The region of the UKO instance this resource exists in.", + "immutable": true, + "required": true, + "options": "au-syd, in-che, jp-osa, jp-tok, kr-seo, eu-de, eu-gb, ca-tor, us-south, us-south-test, us-east, br-sao" }, { - "name": "aws_region", + "name": "google_location", "type": "TypeString", - "description": "AWS Region.", + "description": "Location represents the geographical region where a Cloud KMS resource is stored and can be accessed. A key's location impacts the performance of applications using the key.", "optional": true }, { @@ -114128,18 +117153,24 @@ "optional": true }, { - "name": "azure_service_principal_password", + "name": "azure_location", "type": "TypeString", - "description": "Azure service principal password.", - "secure": true, + "description": "Location of the Azure Key Vault.", "optional": true }, { - "name": "azure_environment", + "name": "ibm_api_key", "type": "TypeString", - "description": "Azure environment, usually 'Azure'.", + "description": "The IBM Cloud API key to be used for connecting to this IBM Cloud keystore.", + "secure": true, "optional": true }, + { + "name": "created_by", + "type": "TypeString", + "description": "ID of the user that created the key.", + "computed": true + }, { "name": "href", "type": "TypeString", @@ -114147,9 +117178,17 @@ "computed": true }, { - "name": "ibm_variant", + "name": "dry_run", + "type": "TypeBool", + "description": "Do not create a keystore, only verify if keystore created with given parameters can be communciated with successfully.", + "default_value": false, + "optional": true + }, + { + "name": "aws_secret_access_key", "type": "TypeString", - "description": "Possible IBM Cloud KMS variants.", + "description": "The secret access key used for connecting to this instance of AWS KMS.", + "secure": true, "optional": true }, { @@ -114159,19 +117198,45 @@ "optional": true }, { - "name": "name", + "name": "type", "type": "TypeString", - "description": "Name of the target keystore. It can be changed in the future.", + "description": "Type of keystore.", + "required": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Date and time when the target keystore was last updated.", + "computed": true + }, + { + "name": "ibm_variant", + "type": "TypeString", + "description": "Possible IBM Cloud KMS variants.", "optional": true }, { - "name": "groups", - "type": "TypeList", - "description": "List of groups that this keystore belongs to.", - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "ibm_instance_id", + "type": "TypeString", + "description": "The instance ID of the IBM Cloud keystore.", + "optional": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Description of the keystore.", + "optional": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the UKO instance this resource exists in.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true, + "cloud_data_range": [ + "service:hs-crypto" + ] }, { "name": "aws_access_key_id", @@ -114180,6 +117245,12 @@ "secure": true, "optional": true }, + { + "name": "azure_resource_group", + "type": "TypeString", + "description": "Resource group in Azure.", + "optional": true + }, { "name": "azure_service_principal_client_id", "type": "TypeString", @@ -114187,42 +117258,100 @@ "optional": true }, { - "name": "created_at", + "name": "azure_environment", "type": "TypeString", - "description": "Date and time when the target keystore was created.", + "description": "Azure environment, usually 'Azure'.", + "optional": true + }, + { + "name": "updated_by", + "type": "TypeString", + "description": "ID of the user that last updated the key.", "computed": true + }, + { + "name": "google_credentials", + "type": "TypeString", + "description": "The value of the JSON key represented in the Base64 format.", + "secure": true, + "optional": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the target keystore. It can be changed in the future.", + "optional": true } ], "ibm_hpcs_managed_key": [ { - "name": "label", + "name": "region", "type": "TypeString", - "description": "The label of the key.", + "description": "The region of the UKO instance this resource exists in.", + "immutable": true, "required": true, - "min_length": 1, - "max_length": 255, - "matches": "^[A-Za-z0-9._ \\/-]+$" + "options": "au-syd, in-che, jp-osa, jp-tok, kr-seo, eu-de, eu-gb, ca-tor, us-south, us-south-test, us-east, br-sao" }, { - "name": "tags", - "type": "TypeList", - "description": "Key-value pairs associated with the key.", - "cloud_data_type": "tags", + "name": "description", + "type": "TypeString", + "description": "Description of the managed key.", + "max_length": 200, + "matches": "(.|\\n)*", + "optional": true + }, + { + "name": "algorithm", + "type": "TypeString", + "description": "The algorithm of the key.", + "computed": true + }, + { + "name": "expiration_date", + "type": "TypeString", + "description": "Last day when the key is active.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Date and time when the key was last updated.", + "computed": true + }, + { + "name": "updated_by", + "type": "TypeString", + "description": "ID of the user that last updated the key.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "A URL that uniquely identifies your cloud resource.", + "computed": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the UKO instance this resource exists in.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true, + "cloud_data_range": [ + "service:hs-crypto" + ] + }, + { + "name": "etag", + "type": "TypeString", + "computed": true + }, + { + "name": "state", + "type": "TypeString", + "description": "The state of the key.", "optional": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of a tag.", - "required": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Value of a tag.", - "required": true - } - } + "computed": true }, { "name": "verification_patterns", @@ -114244,6 +117373,30 @@ } } }, + { + "name": "label", + "type": "TypeString", + "description": "The label of the key.", + "required": true, + "min_length": 1, + "max_length": 255, + "matches": "^[A-Za-z0-9._ \\/-]+$" + }, + { + "name": "template_name", + "type": "TypeString", + "description": "Name of the key template to use when creating a key.", + "required": true, + "min_length": 1, + "max_length": 30, + "matches": "^[A-Za-z][A-Za-z0-9-]+$" + }, + { + "name": "activation_date", + "type": "TypeString", + "description": "First day when the key is active.", + "computed": true + }, { "name": "created_by", "type": "TypeString", @@ -114285,52 +117438,6 @@ } } }, - { - "name": "etag", - "type": "TypeString", - "computed": true - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the UKO instance this resource exists in.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true, - "cloud_data_range": [ - "service:hs-crypto" - ] - }, - { - "name": "region", - "type": "TypeString", - "description": "The region of the UKO instance this resource exists in.", - "immutable": true, - "required": true, - "options": "au-syd, in-che, jp-osa, jp-tok, kr-seo, eu-de, eu-gb, ca-tor, us-south, us-south-test, us-east, br-sao" - }, - { - "name": "uko_vault", - "type": "TypeString", - "description": "The UUID of the Vault in which the update is to take place.", - "immutable": true, - "required": true - }, - { - "name": "template_name", - "type": "TypeString", - "description": "Name of the key template to use when creating a key.", - "required": true, - "min_length": 1, - "max_length": 30, - "matches": "^[A-Za-z][A-Za-z0-9-]+$" - }, - { - "name": "created_at", - "type": "TypeString", - "description": "Date and time when the key was created.", - "computed": true - }, { "name": "instances", "type": "TypeList", @@ -114395,10 +117502,11 @@ } }, { - "name": "key_id", + "name": "uko_vault", "type": "TypeString", - "description": "The UUID of the key.", - "computed": true + "description": "The UUID of the Vault in which the update is to take place.", + "immutable": true, + "required": true }, { "name": "vault", @@ -114417,30 +117525,25 @@ "min_items": 1 }, { - "name": "description", - "type": "TypeString", - "description": "Description of the managed key.", - "max_length": 200, - "matches": "(.|\\n)*", - "optional": true - }, - { - "name": "algorithm", - "type": "TypeString", - "description": "The algorithm of the key.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Date and time when the key was last updated.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "A URL that uniquely identifies your cloud resource.", - "computed": true + "name": "tags", + "type": "TypeList", + "description": "Key-value pairs associated with the key.", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of a tag.", + "required": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Value of a tag.", + "required": true + } + } }, { "name": "template", @@ -114472,38 +117575,48 @@ } }, { - "name": "state", + "name": "size", "type": "TypeString", - "description": "The state of the key.", - "optional": true, + "description": "The size of the underlying cryptographic key or key pair. E.g. \"256\" for AES keys, or \"2048\" for RSA.", "computed": true }, { - "name": "size", + "name": "created_at", "type": "TypeString", - "description": "The size of the underlying cryptographic key or key pair. E.g. \"256\" for AES keys, or \"2048\" for RSA.", + "description": "Date and time when the key was created.", "computed": true }, { - "name": "activation_date", + "name": "key_id", "type": "TypeString", - "description": "First day when the key is active.", + "description": "The UUID of the key.", "computed": true + } + ], + "ibm_hpcs_vault": [ + { + "name": "region", + "type": "TypeString", + "description": "The region of the UKO instance this resource exists in.", + "immutable": true, + "required": true, + "options": "au-syd, in-che, jp-osa, jp-tok, kr-seo, eu-de, eu-gb, ca-tor, us-south, us-south-test, us-east, br-sao" }, { - "name": "expiration_date", + "name": "name", "type": "TypeString", - "description": "Last day when the key is active.", - "computed": true + "description": "A human-readable name to assign to your vault. To protect your privacy, do not use personal data, such as your name or location.", + "required": true, + "min_length": 1, + "max_length": 100, + "matches": "^[A-Za-z0-9#@!$%'_-][A-Za-z0-9#@!$% '_-]*$" }, { - "name": "updated_by", + "name": "created_by", "type": "TypeString", - "description": "ID of the user that last updated the key.", + "description": "ID of the user that created the vault.", "computed": true - } - ], - "ibm_hpcs_vault": [ + }, { "name": "href", "type": "TypeString", @@ -114511,18 +117624,11 @@ "computed": true }, { - "name": "etag", + "name": "updated_at", "type": "TypeString", + "description": "Date and time when the vault was last updated.", "computed": true }, - { - "name": "description", - "type": "TypeString", - "description": "Description of the vault.", - "max_length": 200, - "matches": "(.|\\n)*", - "optional": true - }, { "name": "updated_by", "type": "TypeString", @@ -114530,56 +117636,40 @@ "computed": true }, { - "name": "vault_id", + "name": "etag", "type": "TypeString", - "description": "The ID of the vault.", "computed": true }, { - "name": "name", + "name": "instance_id", "type": "TypeString", - "description": "A human-readable name to assign to your vault. To protect your privacy, do not use personal data, such as your name or location.", + "description": "The ID of the UKO instance this resource exists in.", + "cloud_data_type": "resource_instance", + "immutable": true, "required": true, - "min_length": 1, - "max_length": 100, - "matches": "^[A-Za-z0-9#@!$%'_-][A-Za-z0-9#@!$% '_-]*$" + "cloud_data_range": [ + "service:hs-crypto" + ] }, { - "name": "created_at", + "name": "vault_id", "type": "TypeString", - "description": "Date and time when the vault was created.", + "description": "The ID of the vault.", "computed": true }, { - "name": "updated_at", + "name": "description", "type": "TypeString", - "description": "Date and time when the vault was last updated.", - "computed": true + "description": "Description of the vault.", + "max_length": 200, + "matches": "(.|\\n)*", + "optional": true }, { - "name": "created_by", + "name": "created_at", "type": "TypeString", - "description": "ID of the user that created the vault.", + "description": "Date and time when the vault was created.", "computed": true - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the UKO instance this resource exists in.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true, - "cloud_data_range": [ - "service:hs-crypto" - ] - }, - { - "name": "region", - "type": "TypeString", - "description": "The region of the UKO instance this resource exists in.", - "immutable": true, - "required": true, - "options": "au-syd, in-che, jp-osa, jp-tok, kr-seo, eu-de, eu-gb, ca-tor, us-south, us-south-test, us-east, br-sao" } ], "ibm_iam_access_group": [ @@ -114625,29 +117715,6 @@ } ], "ibm_iam_access_group_dynamic_rule": [ - { - "name": "conditions", - "type": "TypeList", - "description": "conditions info", - "required": true, - "elem": { - "claim": { - "name": "claim", - "type": "TypeString", - "required": true - }, - "operator": { - "name": "operator", - "type": "TypeString", - "required": true - }, - "value": { - "name": "value", - "type": "TypeString", - "required": true - } - } - }, { "name": "rule_id", "type": "TypeString", @@ -114682,9 +117749,48 @@ "type": "TypeString", "description": "The realm name or identity proivider url", "required": true + }, + { + "name": "conditions", + "type": "TypeList", + "description": "conditions info", + "required": true, + "elem": { + "claim": { + "name": "claim", + "type": "TypeString", + "required": true + }, + "operator": { + "name": "operator", + "type": "TypeString", + "required": true + }, + "value": { + "name": "value", + "type": "TypeString", + "required": true + } + } } ], "ibm_iam_access_group_members": [ + { + "name": "ibm_ids", + "type": "TypeSet", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "iam_service_ids", + "type": "TypeSet", + "optional": true, + "elem": { + "type": "TypeString" + } + }, { "name": "iam_profile_ids", "type": "TypeSet", @@ -114721,63 +117827,19 @@ "service:access_group", "resolved_to:id" ] - }, - { - "name": "ibm_ids", - "type": "TypeSet", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "iam_service_ids", - "type": "TypeSet", - "optional": true, - "elem": { - "type": "TypeString" - } } ], "ibm_iam_access_group_policy": [ { - "name": "resource_tags", - "type": "TypeSet", - "description": "Set access management tags.", - "optional": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of attribute.", - "required": true - }, - "operator": { - "name": "operator", - "type": "TypeString", - "description": "Operator of attribute.", - "default_value": "stringEquals", - "optional": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Value of attribute.", - "required": true - } - } - }, - { - "name": "transaction_id", + "name": "rule_operator", "type": "TypeString", - "description": "Set transactionID for debug", - "optional": true, - "computed": true + "description": "Operator that multiple rule conditions are evaluated over", + "optional": true }, { - "name": "rule_operator", + "name": "pattern", "type": "TypeString", - "description": "Operator that multiple rule conditions are evaluated over", + "description": "Pattern rule follows for time-based condition", "optional": true }, { @@ -114792,6 +117854,15 @@ "resolved_to:id" ] }, + { + "name": "roles", + "type": "TypeList", + "description": "Role names of the policy definition", + "required": true, + "elem": { + "type": "TypeString" + } + }, { "name": "resources", "type": "TypeList", @@ -114856,20 +117927,22 @@ "max_items": 1 }, { - "name": "account_management", - "type": "TypeBool", - "description": "Give access to all account management services", - "default_value": false, + "name": "transaction_id", + "type": "TypeString", + "description": "Set transactionID for debug", + "optional": true, + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Description of the Policy", "optional": true }, { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "version", + "type": "TypeString", + "computed": true }, { "name": "rule_conditions", @@ -114901,24 +117974,52 @@ } }, { - "name": "pattern", - "type": "TypeString", - "description": "Pattern rule follows for time-based condition", + "name": "resource_attributes", + "type": "TypeSet", + "description": "Set resource attributes.", + "optional": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of attribute.", + "required": true + }, + "operator": { + "name": "operator", + "type": "TypeString", + "description": "Operator of attribute.", + "default_value": "stringEquals", + "optional": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Value of attribute.", + "required": true + } + } + }, + { + "name": "account_management", + "type": "TypeBool", + "description": "Give access to all account management services", + "default_value": false, "optional": true }, { - "name": "roles", - "type": "TypeList", - "description": "Role names of the policy definition", - "required": true, + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "optional": true, "elem": { "type": "TypeString" } }, { - "name": "resource_attributes", + "name": "resource_tags", "type": "TypeSet", - "description": "Set resource attributes.", + "description": "Set access management tags.", "optional": true, "elem": { "name": { @@ -114941,25 +118042,13 @@ "required": true } } - }, - { - "name": "description", - "type": "TypeString", - "description": "Description of the Policy", - "optional": true - }, - { - "name": "version", - "type": "TypeString", - "computed": true } ], "ibm_iam_access_group_template": [ { - "name": "committed", - "type": "TypeBool", - "description": "A boolean indicating whether the access group template is committed. You must commit a template before you can assign it to child accounts.", - "optional": true, + "name": "template_id", + "type": "TypeString", + "description": "Template ID.", "computed": true }, { @@ -114968,48 +118057,12 @@ "description": "The date and time when the access group template was created.", "computed": true }, - { - "name": "created_by_id", - "type": "TypeString", - "description": "The ID of the user who created the access group template.", - "computed": true - }, - { - "name": "last_modified_at", - "type": "TypeString", - "description": "The date and time when the access group template was last modified.", - "computed": true - }, { "name": "last_modified_by_id", "type": "TypeString", "description": "The ID of the user who last modified the access group template.", "computed": true }, - { - "name": "transaction_id", - "type": "TypeString", - "description": "An optional transaction id for the request.", - "min_length": 1, - "max_length": 50, - "matches": "^[a-zA-Z0-9_-]+$", - "optional": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the access group template.", - "required": true, - "min_length": 1, - "max_length": 100, - "matches": "^[a-zA-Z0-9!@#$%^\u0026*()_+{}:;\"'\u003c\u003e,.?\\/|\\-\\s]+$" - }, - { - "name": "account_id", - "type": "TypeString", - "description": "The ID of the account to which the access group template is assigned.", - "computed": true - }, { "name": "group", "type": "TypeList", @@ -115204,9 +118257,66 @@ "max_items": 1 }, { - "name": "template_id", + "name": "name", "type": "TypeString", - "description": "Template ID.", + "description": "The name of the access group template.", + "required": true, + "min_length": 1, + "max_length": 100, + "matches": "^[a-zA-Z0-9!@#$%^\u0026*()_+{}:;\"'\u003c\u003e,.?\\/|\\-\\s]+$" + }, + { + "name": "description", + "type": "TypeString", + "description": "The description of the access group template.", + "max_length": 250, + "matches": "^[a-zA-Z0-9!@#$%^\u0026*()_+{}:;\"'\u003c\u003e,.?\\/|\\-\\s]+$", + "optional": true + }, + { + "name": "transaction_id", + "type": "TypeString", + "description": "An optional transaction id for the request.", + "min_length": 1, + "max_length": 50, + "matches": "^[a-zA-Z0-9_-]+$", + "optional": true + }, + { + "name": "committed", + "type": "TypeBool", + "description": "A boolean indicating whether the access group template is committed. You must commit a template before you can assign it to child accounts.", + "optional": true, + "computed": true + }, + { + "name": "version", + "type": "TypeString", + "description": "The version of the access group template.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL of the access group template resource.", + "computed": true + }, + { + "name": "created_by_id", + "type": "TypeString", + "description": "The ID of the user who created the access group template.", + "computed": true + }, + { + "name": "last_modified_at", + "type": "TypeString", + "description": "The date and time when the access group template was last modified.", + "computed": true + }, + { + "name": "account_id", + "type": "TypeString", + "description": "The ID of the account to which the access group template is assigned.", "computed": true }, { @@ -115229,38 +118339,23 @@ "optional": true } } - }, - { - "name": "description", - "type": "TypeString", - "description": "The description of the access group template.", - "max_length": 250, - "matches": "^[a-zA-Z0-9!@#$%^\u0026*()_+{}:;\"'\u003c\u003e,.?\\/|\\-\\s]+$", - "optional": true - }, + } + ], + "ibm_iam_access_group_template_assignment": [ { - "name": "version", + "name": "last_modified_at", "type": "TypeString", - "description": "The version of the access group template.", + "description": "The date and time when the assignment was last updated.", "computed": true }, { - "name": "href", - "type": "TypeString", - "description": "The URL of the access group template resource.", - "computed": true - } - ], - "ibm_iam_access_group_template_assignment": [ - { - "name": "target_type", + "name": "target", "type": "TypeString", - "description": "The type of the entity that the assignment applies to.", + "description": "The ID of the entity that the assignment applies to.", "required": true, - "options": "Account, AccountGroup", - "min_length": 7, - "max_length": 12, - "matches": "^[a-zA-Z-]+$" + "min_length": 1, + "max_length": 50, + "matches": "^[a-zA-Z0-9_-]+$" }, { "name": "account_id", @@ -115269,24 +118364,22 @@ "computed": true }, { - "name": "operation", + "name": "status", "type": "TypeString", - "description": "The operation that the assignment applies to (e.g. 'assign', 'update', 'remove').", + "description": "The status of the assignment (e.g. 'accepted', 'in_progress', 'succeeded', 'failed', 'superseded').", "computed": true }, { - "name": "etag", + "name": "href", "type": "TypeString", + "description": "The URL of the assignment resource.", "computed": true }, { - "name": "transaction_id", + "name": "created_by_id", "type": "TypeString", - "description": "An optional transaction id for the request.", - "min_length": 1, - "max_length": 50, - "matches": "^[a-zA-Z0-9_-]+$", - "optional": true + "description": "The user or system that created the assignment.", + "computed": true }, { "name": "template_id", @@ -115307,30 +118400,39 @@ "matches": "^[0-9]+$" }, { - "name": "last_modified_at", + "name": "target_type", + "type": "TypeString", + "description": "The type of the entity that the assignment applies to.", + "required": true, + "options": "Account, AccountGroup", + "min_length": 7, + "max_length": 12, + "matches": "^[a-zA-Z-]+$" + }, + { + "name": "etag", "type": "TypeString", - "description": "The date and time when the assignment was last updated.", "computed": true }, { - "name": "target", + "name": "transaction_id", "type": "TypeString", - "description": "The ID of the entity that the assignment applies to.", - "required": true, + "description": "An optional transaction id for the request.", "min_length": 1, "max_length": 50, - "matches": "^[a-zA-Z0-9_-]+$" + "matches": "^[a-zA-Z0-9_-]+$", + "optional": true }, { - "name": "status", + "name": "created_at", "type": "TypeString", - "description": "The status of the assignment (e.g. 'accepted', 'in_progress', 'succeeded', 'failed', 'superseded').", + "description": "The date and time when the assignment was created.", "computed": true }, { - "name": "created_by_id", + "name": "operation", "type": "TypeString", - "description": "The user or system that created the assignment.", + "description": "The operation that the assignment applies to (e.g. 'assign', 'update', 'remove').", "computed": true }, { @@ -115338,28 +118440,31 @@ "type": "TypeString", "description": "The user or system that last updated the assignment.", "computed": true - }, + } + ], + "ibm_iam_access_group_template_version": [ { - "name": "href", + "name": "template_id", "type": "TypeString", - "description": "The URL of the assignment resource.", - "computed": true + "description": "ID of the template that you want to create a new version of.", + "immutable": true, + "required": true, + "min_length": 1, + "max_length": 100, + "matches": "^[a-zA-Z0-9_-]+$" }, { - "name": "created_at", + "name": "account_id", "type": "TypeString", - "description": "The date and time when the assignment was created.", + "description": "The ID of the account to which the access group template is assigned.", "computed": true - } - ], - "ibm_iam_access_group_template_version": [ + }, { - "name": "transaction_id", + "name": "description", "type": "TypeString", - "description": "An optional transaction id for the request.", - "min_length": 1, - "max_length": 50, - "matches": "^[a-zA-Z0-9_-]+$", + "description": "The description of the access group template.", + "max_length": 250, + "matches": "^[a-zA-Z0-9!@#$%^\u0026*()_+{}:;\"'\u003c\u003e,.?\\/|\\-\\s]+$", "optional": true }, { @@ -115383,10 +118488,39 @@ } }, { - "name": "description", + "name": "committed", + "type": "TypeBool", + "description": "A boolean indicating whether the access group template is committed. You must commit a template before you can assign it to child accounts.", + "optional": true, + "computed": true + }, + { + "name": "created_at", "type": "TypeString", - "description": "The description of the access group template.", - "max_length": 250, + "description": "The date and time when the access group template was created.", + "computed": true + }, + { + "name": "transaction_id", + "type": "TypeString", + "description": "An optional transaction id for the request.", + "min_length": 1, + "max_length": 50, + "matches": "^[a-zA-Z0-9_-]+$", + "optional": true + }, + { + "name": "last_modified_by_id", + "type": "TypeString", + "description": "The ID of the user who last modified the access group template.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the access group template.", + "min_length": 1, + "max_length": 100, "matches": "^[a-zA-Z0-9!@#$%^\u0026*()_+{}:;\"'\u003c\u003e,.?\\/|\\-\\s]+$", "optional": true }, @@ -115585,62 +118719,12 @@ }, "max_items": 1 }, - { - "name": "last_modified_at", - "type": "TypeString", - "description": "The date and time when the access group template was last modified.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the access group template.", - "min_length": 1, - "max_length": 100, - "matches": "^[a-zA-Z0-9!@#$%^\u0026*()_+{}:;\"'\u003c\u003e,.?\\/|\\-\\s]+$", - "optional": true - }, - { - "name": "account_id", - "type": "TypeString", - "description": "The ID of the account to which the access group template is assigned.", - "computed": true - }, { "name": "version", "type": "TypeString", "description": "The version of the access group template.", "computed": true }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time when the access group template was created.", - "computed": true - }, - { - "name": "last_modified_by_id", - "type": "TypeString", - "description": "The ID of the user who last modified the access group template.", - "computed": true - }, - { - "name": "template_id", - "type": "TypeString", - "description": "ID of the template that you want to create a new version of.", - "immutable": true, - "required": true, - "min_length": 1, - "max_length": 100, - "matches": "^[a-zA-Z0-9_-]+$" - }, - { - "name": "committed", - "type": "TypeBool", - "description": "A boolean indicating whether the access group template is committed. You must commit a template before you can assign it to child accounts.", - "optional": true, - "computed": true - }, { "name": "href", "type": "TypeString", @@ -115652,101 +118736,15 @@ "type": "TypeString", "description": "The ID of the user who created the access group template.", "computed": true - } - ], - "ibm_iam_account_settings": [ - { - "name": "restrict_create_platform_apikey", - "type": "TypeString", - "description": "Defines whether or not creating platform API keys is access controlled. Valid values: * RESTRICTED - to apply access control * NOT_RESTRICTED - to remove access control * NOT_SET - to 'unset' a previous set value.", - "options": "RESTRICTED, NOT_RESTRICTED, NOT_SET", - "optional": true, - "computed": true - }, - { - "name": "allowed_ip_addresses", - "type": "TypeString", - "description": "Defines the IP addresses and subnets from which IAM tokens can be created for the account.", - "optional": true - }, - { - "name": "entity_tag", - "type": "TypeString", - "description": "Version of the account settings.", - "optional": true, - "computed": true - }, - { - "name": "restrict_create_service_id", - "type": "TypeString", - "description": "Defines whether or not creating a Service Id is access controlled. Valid values: * RESTRICTED - to apply access control * NOT_RESTRICTED - to remove access control * NOT_SET - to 'unset' a previous set value.", - "options": "RESTRICTED, NOT_RESTRICTED, NOT_SET", - "optional": true, - "computed": true }, { - "name": "mfa", - "type": "TypeString", - "description": "Defines the MFA trait for the account. Valid values: * NONE - No MFA trait set * TOTP - For all non-federated IBMId users * TOTP4ALL - For all users * LEVEL1 - Email-based MFA for all users * LEVEL2 - TOTP-based MFA for all users * LEVEL3 - U2F MFA for all users.", - "options": "NONE, TOTP, TOTP4ALL, LEVEL1, LEVEL2, LEVEL3", - "optional": true, - "computed": true - }, - { - "name": "session_invalidation_in_seconds", - "type": "TypeString", - "description": "Defines the period of time in seconds in which a session will be invalidated due to inactivity. Valid values: * Any whole number between '900' and '7200' * NOT_SET - To unset account setting and use service default.", - "optional": true, - "computed": true - }, - { - "name": "system_access_token_expiration_in_seconds", - "type": "TypeString", - "description": "Defines the access token expiration in seconds. Valid values: * Any whole number between '900' and '3600' * NOT_SET - To unset account setting and use service default.", - "optional": true, - "computed": true - }, - { - "name": "system_refresh_token_expiration_in_seconds", + "name": "last_modified_at", "type": "TypeString", - "description": "Defines the refresh token expiration in seconds. Valid values: * Any whole number between '900' and '2592000' * NOT_SET - To unset account setting and use service default.", - "optional": true, + "description": "The date and time when the access group template was last modified.", "computed": true - }, - { - "name": "include_history", - "type": "TypeBool", - "description": "Defines if the entity history is included in the response.", - "default_value": false, - "optional": true - }, - { - "name": "if_match", - "type": "TypeString", - "description": "Version of the account settings to be updated. Specify the version that you retrieved as entity_tag (ETag header) when reading the account. This value helps identifying parallel usage of this API. Pass * to indicate to update any version available. This might result in stale updates.", - "default_value": "*", - "optional": true - }, - { - "name": "user_mfa", - "type": "TypeList", - "description": "List of users that are exempted from the MFA requirement of the account.", - "optional": true, - "elem": { - "iam_id": { - "name": "iam_id", - "type": "TypeString", - "description": "The iam_id of the user.", - "required": true - }, - "mfa": { - "name": "mfa", - "type": "TypeString", - "description": "Defines the MFA requirement for the user. Valid values: * NONE - No MFA trait set * TOTP - For all non-federated IBMId users * TOTP4ALL - For all users * LEVEL1 - Email-based MFA for all users * LEVEL2 - TOTP-based MFA for all users * LEVEL3 - U2F MFA for all users.", - "required": true - } - } - }, + } + ], + "ibm_iam_account_settings": [ { "name": "history", "type": "TypeList", @@ -115801,19 +118799,117 @@ "optional": true, "computed": true }, + { + "name": "session_invalidation_in_seconds", + "type": "TypeString", + "description": "Defines the period of time in seconds in which a session will be invalidated due to inactivity. Valid values: * Any whole number between '900' and '7200' * NOT_SET - To unset account setting and use service default.", + "optional": true, + "computed": true + }, + { + "name": "system_access_token_expiration_in_seconds", + "type": "TypeString", + "description": "Defines the access token expiration in seconds. Valid values: * Any whole number between '900' and '3600' * NOT_SET - To unset account setting and use service default.", + "optional": true, + "computed": true + }, + { + "name": "include_history", + "type": "TypeBool", + "description": "Defines if the entity history is included in the response.", + "default_value": false, + "optional": true + }, + { + "name": "user_mfa", + "type": "TypeList", + "description": "List of users that are exempted from the MFA requirement of the account.", + "optional": true, + "elem": { + "iam_id": { + "name": "iam_id", + "type": "TypeString", + "description": "The iam_id of the user.", + "required": true + }, + "mfa": { + "name": "mfa", + "type": "TypeString", + "description": "Defines the MFA requirement for the user. Valid values: * NONE - No MFA trait set * TOTP - For all non-federated IBMId users * TOTP4ALL - For all users * LEVEL1 - Email-based MFA for all users * LEVEL2 - TOTP-based MFA for all users * LEVEL3 - U2F MFA for all users.", + "required": true + } + } + }, { "name": "max_sessions_per_identity", "type": "TypeString", "description": "Defines the max allowed sessions per identity required by the account. Value values: * Any whole number greater than 0 * NOT_SET - To unset account setting and use service default.", "optional": true, "computed": true + }, + { + "name": "entity_tag", + "type": "TypeString", + "description": "Version of the account settings.", + "optional": true, + "computed": true + }, + { + "name": "if_match", + "type": "TypeString", + "description": "Version of the account settings to be updated. Specify the version that you retrieved as entity_tag (ETag header) when reading the account. This value helps identifying parallel usage of this API. Pass * to indicate to update any version available. This might result in stale updates.", + "default_value": "*", + "optional": true + }, + { + "name": "restrict_create_platform_apikey", + "type": "TypeString", + "description": "Defines whether or not creating platform API keys is access controlled. Valid values: * RESTRICTED - to apply access control * NOT_RESTRICTED - to remove access control * NOT_SET - to 'unset' a previous set value.", + "options": "RESTRICTED, NOT_RESTRICTED, NOT_SET", + "optional": true, + "computed": true + }, + { + "name": "allowed_ip_addresses", + "type": "TypeString", + "description": "Defines the IP addresses and subnets from which IAM tokens can be created for the account.", + "optional": true + }, + { + "name": "mfa", + "type": "TypeString", + "description": "Defines the MFA trait for the account. Valid values: * NONE - No MFA trait set * TOTP - For all non-federated IBMId users * TOTP4ALL - For all users * LEVEL1 - Email-based MFA for all users * LEVEL2 - TOTP-based MFA for all users * LEVEL3 - U2F MFA for all users.", + "options": "NONE, TOTP, TOTP4ALL, LEVEL1, LEVEL2, LEVEL3", + "optional": true, + "computed": true + }, + { + "name": "system_refresh_token_expiration_in_seconds", + "type": "TypeString", + "description": "Defines the refresh token expiration in seconds. Valid values: * Any whole number between '900' and '2592000' * NOT_SET - To unset account setting and use service default.", + "optional": true, + "computed": true + }, + { + "name": "restrict_create_service_id", + "type": "TypeString", + "description": "Defines whether or not creating a Service Id is access controlled. Valid values: * RESTRICTED - to apply access control * NOT_RESTRICTED - to remove access control * NOT_SET - to 'unset' a previous set value.", + "options": "RESTRICTED, NOT_RESTRICTED, NOT_SET", + "optional": true, + "computed": true } ], "ibm_iam_account_settings_template": [ { - "name": "account_id", + "name": "created_by_id", "type": "TypeString", - "description": "ID of the account where the template resides.", + "description": "IAMid of the creator.", + "computed": true + }, + { + "name": "version", + "type": "TypeInt", + "description": "Version of the the template.", "computed": true }, { @@ -115829,15 +118925,15 @@ "optional": true }, { - "name": "entity_tag", + "name": "template_id", "type": "TypeString", - "description": "Entity tag for this templateId-version combination.", - "computed": true + "description": "ID of the the template.", + "optional": true }, { - "name": "created_by_id", + "name": "last_modified_at", "type": "TypeString", - "description": "IAMid of the creator.", + "description": "Template last modified at.", "computed": true }, { @@ -115847,22 +118943,9 @@ "computed": true }, { - "name": "id", + "name": "account_id", "type": "TypeString", - "description": "ID of the the template resource.", - "computed": true - }, - { - "name": "committed", - "type": "TypeBool", - "description": "Committed flag determines if the template is ready for assignment.", - "optional": true, - "computed": true - }, - { - "name": "version", - "type": "TypeInt", - "description": "Version of the the template.", + "description": "ID of the account where the template resides.", "computed": true }, { @@ -115919,6 +119002,12 @@ "cloud_data_type": "crn", "computed": true }, + { + "name": "created_at", + "type": "TypeString", + "description": "Template Created At.", + "computed": true + }, { "name": "account_settings", "type": "TypeList", @@ -116002,21 +119091,22 @@ "max_items": 1 }, { - "name": "template_id", - "type": "TypeString", - "description": "ID of the the template.", - "optional": true + "name": "committed", + "type": "TypeBool", + "description": "Committed flag determines if the template is ready for assignment.", + "optional": true, + "computed": true }, { - "name": "created_at", + "name": "entity_tag", "type": "TypeString", - "description": "Template Created At.", + "description": "Entity tag for this templateId-version combination.", "computed": true }, { - "name": "last_modified_at", + "name": "id", "type": "TypeString", - "description": "Template last modified at.", + "description": "ID of the the template resource.", "computed": true } ], @@ -116027,6 +119117,114 @@ "description": "Assignment target.", "required": true }, + { + "name": "account_id", + "type": "TypeString", + "description": "Enterprise account Id.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "Assignment created at.", + "computed": true + }, + { + "name": "created_by_id", + "type": "TypeString", + "description": "IAMid of the identity that created the assignment.", + "computed": true + }, + { + "name": "entity_tag", + "type": "TypeString", + "description": "Entity tag for this assignment record.", + "computed": true + }, + { + "name": "template_id", + "type": "TypeString", + "description": "Template Id.", + "required": true + }, + { + "name": "template_version", + "type": "TypeInt", + "description": "Template version.", + "required": true + }, + { + "name": "target_type", + "type": "TypeString", + "description": "Assignment target type.", + "required": true, + "options": "Account, AccountGroup" + }, + { + "name": "status", + "type": "TypeString", + "description": "Assignment status.", + "computed": true + }, + { + "name": "history", + "type": "TypeList", + "description": "Assignment history.", + "computed": true, + "elem": { + "action": { + "name": "action", + "type": "TypeString", + "description": "Action of the history entry.", + "computed": true + }, + "iam_id": { + "name": "iam_id", + "type": "TypeString", + "description": "IAM ID of the identity which triggered the action.", + "computed": true + }, + "iam_id_account": { + "name": "iam_id_account", + "type": "TypeString", + "description": "Account of the identity which triggered the action.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "Message which summarizes the executed action.", + "computed": true + }, + "params": { + "name": "params", + "type": "TypeList", + "description": "Params of the history entry.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "timestamp": { + "name": "timestamp", + "type": "TypeString", + "description": "Timestamp when the action was triggered.", + "computed": true + } + } + }, + { + "name": "href", + "type": "TypeString", + "description": "Href.", + "computed": true + }, + { + "name": "last_modified_at", + "type": "TypeString", + "description": "Assignment modified at.", + "computed": true + }, { "name": "context", "type": "TypeList", @@ -116175,133 +119373,61 @@ } }, { - "name": "created_at", + "name": "last_modified_by_id", "type": "TypeString", - "description": "Assignment created at.", + "description": "IAMid of the identity that last modified the assignment.", "computed": true - }, + } + ], + "ibm_iam_api_key": [ { - "name": "created_by_id", + "name": "account_id", "type": "TypeString", - "description": "IAMid of the identity that created the assignment.", + "description": "The account ID of the API key.", "computed": true }, { - "name": "last_modified_at", + "name": "entity_lock", "type": "TypeString", - "description": "Assignment modified at.", - "computed": true + "description": "Indicates if the API key is locked for further write operations. False by default.", + "default_value": "false", + "optional": true }, { - "name": "last_modified_by_id", + "name": "apikey_id", "type": "TypeString", - "description": "IAMid of the identity that last modified the assignment.", + "description": "Unique identifier of this API Key.", "computed": true }, { - "name": "target_type", - "type": "TypeString", - "description": "Assignment target type.", - "required": true, - "options": "Account, AccountGroup" - }, - { - "name": "href", + "name": "modified_at", "type": "TypeString", - "description": "Href.", + "description": "If set contains a date time string of the last modification date in ISO format.", "computed": true }, { - "name": "template_version", - "type": "TypeInt", - "description": "Template version.", - "required": true - }, - { - "name": "template_id", + "name": "name", "type": "TypeString", - "description": "Template Id.", + "description": "Name of the API key. The name is not checked for uniqueness. Therefore multiple names with the same value can exist. Access is done via the UUID of the API key.", "required": true }, { - "name": "status", - "type": "TypeString", - "description": "Assignment status.", - "computed": true - }, - { - "name": "history", - "type": "TypeList", - "description": "Assignment history.", - "computed": true, - "elem": { - "action": { - "name": "action", - "type": "TypeString", - "description": "Action of the history entry.", - "computed": true - }, - "iam_id": { - "name": "iam_id", - "type": "TypeString", - "description": "IAM ID of the identity which triggered the action.", - "computed": true - }, - "iam_id_account": { - "name": "iam_id_account", - "type": "TypeString", - "description": "Account of the identity which triggered the action.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "Message which summarizes the executed action.", - "computed": true - }, - "params": { - "name": "params", - "type": "TypeList", - "description": "Params of the history entry.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "timestamp": { - "name": "timestamp", - "type": "TypeString", - "description": "Timestamp when the action was triggered.", - "computed": true - } - } - }, - { - "name": "entity_tag", + "name": "iam_id", "type": "TypeString", - "description": "Entity tag for this assignment record.", + "description": "The iam_id that this API key authenticates.", "computed": true }, { - "name": "account_id", - "type": "TypeString", - "description": "Enterprise account Id.", - "computed": true - } - ], - "ibm_iam_api_key": [ - { - "name": "entity_lock", + "name": "description", "type": "TypeString", - "description": "Indicates if the API key is locked for further write operations. False by default.", - "default_value": "false", + "description": "The optional description of the API key. The 'description' property is only available if a description was provided during a create of an API key.", "optional": true }, { - "name": "entity_tag", + "name": "file", "type": "TypeString", - "description": "Version of the API Key details object. You need to specify this value when updating the API key to avoid stale updates.", - "computed": true + "description": "File where api key is to be stored", + "optional": true }, { "name": "crn", @@ -116311,16 +119437,10 @@ "computed": true }, { - "name": "locked", - "type": "TypeBool", - "description": "The API key cannot be changed if set to true.", - "computed": true - }, - { - "name": "description", + "name": "created_by", "type": "TypeString", - "description": "The optional description of the API key. The 'description' property is only available if a description was provided during a create of an API key.", - "optional": true + "description": "IAM ID of the user or service which created the API key.", + "computed": true }, { "name": "apikey", @@ -116343,49 +119463,85 @@ "computed": true }, { - "name": "account_id", + "name": "entity_tag", "type": "TypeString", - "description": "The account ID of the API key.", + "description": "Version of the API Key details object. You need to specify this value when updating the API key to avoid stale updates.", "computed": true }, { - "name": "file", - "type": "TypeString", - "description": "File where api key is to be stored", - "optional": true - }, + "name": "locked", + "type": "TypeBool", + "description": "The API key cannot be changed if set to true.", + "computed": true + } + ], + "ibm_iam_authorization_policy": [ { - "name": "apikey_id", + "name": "source_service_name", "type": "TypeString", - "description": "Unique identifier of this API Key.", + "description": "The source service name", + "immutable": true, + "optional": true, "computed": true }, { - "name": "modified_at", + "name": "source_resource_instance_id", "type": "TypeString", - "description": "If set contains a date time string of the last modification date in ISO format.", + "description": "The source resource instance Id", + "immutable": true, + "optional": true, "computed": true }, { - "name": "name", + "name": "target_resource_group_id", "type": "TypeString", - "description": "Name of the API key. The name is not checked for uniqueness. Therefore multiple names with the same value can exist. Access is done via the UUID of the API key.", - "required": true + "description": "The target resource group Id", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true, + "cloud_data_range": [ + "resolved_to:id" + ] }, { - "name": "iam_id", + "name": "target_resource_type", "type": "TypeString", - "description": "The iam_id that this API key authenticates.", + "description": "Resource type of target service", + "immutable": true, + "optional": true, "computed": true }, { - "name": "created_by", + "name": "source_service_account", "type": "TypeString", - "description": "IAM ID of the user or service which created the API key.", + "description": "Account GUID of source service", + "immutable": true, + "optional": true, "computed": true - } - ], - "ibm_iam_authorization_policy": [ + }, + { + "name": "subject_attributes", + "type": "TypeSet", + "description": "Set subject attributes.", + "immutable": true, + "optional": true, + "computed": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of attribute.", + "required": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Value of attribute.", + "required": true + } + } + }, { "name": "resource_attributes", "type": "TypeSet", @@ -116431,20 +119587,13 @@ "computed": true }, { - "name": "target_resource_instance_id", - "type": "TypeString", - "description": "The target resource instance Id", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "target_resource_type", - "type": "TypeString", - "description": "Resource type of target service", - "immutable": true, - "optional": true, - "computed": true + "name": "roles", + "type": "TypeList", + "description": "Role names of the policy definition", + "required": true, + "elem": { + "type": "TypeString" + } }, { "name": "source_resource_group_id", @@ -116459,29 +119608,22 @@ ] }, { - "name": "target_resource_group_id", + "name": "version", "type": "TypeString", - "description": "The target resource group Id", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "computed": true }, { - "name": "source_resource_type", + "name": "target_resource_instance_id", "type": "TypeString", - "description": "Resource type of source service", + "description": "The target resource instance Id", "immutable": true, "optional": true, "computed": true }, { - "name": "source_service_account", + "name": "source_resource_type", "type": "TypeString", - "description": "Account GUID of source service", + "description": "Resource type of source service", "immutable": true, "optional": true, "computed": true @@ -116491,58 +119633,6 @@ "type": "TypeString", "description": "Description of the Policy", "optional": true - }, - { - "name": "roles", - "type": "TypeList", - "description": "Role names of the policy definition", - "required": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "source_resource_instance_id", - "type": "TypeString", - "description": "The source resource instance Id", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "version", - "type": "TypeString", - "computed": true - }, - { - "name": "source_service_name", - "type": "TypeString", - "description": "The source service name", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "subject_attributes", - "type": "TypeSet", - "description": "Set subject attributes.", - "immutable": true, - "optional": true, - "computed": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of attribute.", - "required": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Value of attribute.", - "required": true - } - } } ], "ibm_iam_authorization_policy_detach": [ @@ -116556,30 +119646,22 @@ ], "ibm_iam_custom_role": [ { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "resource_crn", - "type": "TypeString", - "description": "The crn of the resource", - "computed": true - }, - { - "name": "resource_controller_url", + "name": "name", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", - "computed": true + "description": "The name of the custom Role", + "immutable": true, + "required": true, + "min_length": 1, + "max_length": 30, + "matches": "^[A-Z]{1}[A-Za-z0-9]{0,29}$" }, { - "name": "display_name", + "name": "description", "type": "TypeString", - "description": "Display Name of the Custom Role", - "required": true, + "description": "The description of the role", "min_length": 1, - "max_length": 50 + "max_length": 250, + "optional": true }, { "name": "service", @@ -116598,22 +119680,18 @@ } }, { - "name": "name", + "name": "resource_crn", "type": "TypeString", - "description": "The name of the custom Role", - "immutable": true, - "required": true, - "min_length": 1, - "max_length": 30, - "matches": "^[A-Z]{1}[A-Za-z0-9]{0,29}$" + "description": "The crn of the resource", + "computed": true }, { - "name": "description", + "name": "display_name", "type": "TypeString", - "description": "The description of the role", + "description": "Display Name of the Custom Role", + "required": true, "min_length": 1, - "max_length": 250, - "optional": true + "max_length": 50 }, { "name": "crn", @@ -116621,34 +119699,21 @@ "description": "crn of the Custom Role", "cloud_data_type": "crn", "computed": true - } - ], - "ibm_iam_policy_template": [ - { - "name": "template_id", - "type": "TypeString", - "description": "Template ID.", - "computed": true }, { - "name": "version", + "name": "resource_name", "type": "TypeString", - "description": "Template Version.", + "description": "The name of the resource", "computed": true }, { - "name": "account_id", + "name": "resource_controller_url", "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "name of template.", - "required": true, - "min_length": 1, - "max_length": 300 - }, + } + ], + "ibm_iam_policy_template": [ { "name": "policy", "type": "TypeList", @@ -116796,19 +119861,75 @@ "type": "TypeBool", "description": "committed status for the template.", "optional": true + }, + { + "name": "template_id", + "type": "TypeString", + "description": "Template ID.", + "computed": true + }, + { + "name": "version", + "type": "TypeString", + "description": "Template Version.", + "computed": true + }, + { + "name": "account_id", + "type": "TypeString", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "name of template.", + "required": true, + "min_length": 1, + "max_length": 300 } ], "ibm_iam_policy_template_version": [ { - "name": "policy", - "type": "TypeList", - "description": "The core set of properties associated with the template's policy objet.", - "required": true, - "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "Allows the customer to use their own words to record the purpose/context related to a policy.", + "name": "committed", + "type": "TypeBool", + "description": "Template version committed status.", + "optional": true + }, + { + "name": "name", + "type": "TypeString", + "optional": true, + "computed": true + }, + { + "name": "account_id", + "type": "TypeString", + "computed": true + }, + { + "name": "version", + "type": "TypeString", + "description": "Template Version.", + "computed": true + }, + { + "name": "template_id", + "type": "TypeString", + "description": "The policy template ID and Version.", + "required": true, + "min_length": 1, + "max_length": 51 + }, + { + "name": "policy", + "type": "TypeList", + "description": "The core set of properties associated with the template's policy objet.", + "required": true, + "elem": { + "description": { + "name": "description", + "type": "TypeString", + "description": "Allows the customer to use their own words to record the purpose/context related to a policy.", "optional": true }, "pattern": { @@ -116938,40 +120059,21 @@ "type": "TypeString", "description": "description of template purpose.", "optional": true - }, - { - "name": "committed", - "type": "TypeBool", - "description": "Template version committed status.", - "optional": true - }, - { - "name": "name", - "type": "TypeString", - "optional": true, - "computed": true - }, + } + ], + "ibm_iam_service_api_key": [ { - "name": "account_id", + "name": "created_at", "type": "TypeString", + "description": "The date and time Service API Key was created", "computed": true }, { - "name": "version", + "name": "name", "type": "TypeString", - "description": "Template Version.", - "computed": true + "description": "Name of the Service API key", + "required": true }, - { - "name": "template_id", - "type": "TypeString", - "description": "The policy template ID and Version.", - "required": true, - "min_length": 1, - "max_length": 51 - } - ], - "ibm_iam_service_api_key": [ { "name": "iam_service_id", "type": "TypeString", @@ -116985,11 +120087,20 @@ ] }, { - "name": "account_id", + "name": "apikey", "type": "TypeString", - "description": "The account ID of the API key", + "description": "API key value for this API key", + "secure": true, + "immutable": true, + "optional": true, "computed": true }, + { + "name": "locked", + "type": "TypeBool", + "description": "The API key cannot be changed if set to true", + "optional": true + }, { "name": "file", "type": "TypeString", @@ -116997,72 +120108,58 @@ "optional": true }, { - "name": "entity_tag", + "name": "crn", "type": "TypeString", - "description": "Version of the API Key details object", + "description": "crn of the Service API Key", + "cloud_data_type": "crn", "computed": true }, { - "name": "created_at", + "name": "description", "type": "TypeString", - "description": "The date and time Service API Key was created", + "description": "description of the API key", + "optional": true, "computed": true }, { - "name": "modified_at", + "name": "account_id", "type": "TypeString", - "description": "The date and time Service API Key was modified", + "description": "The account ID of the API key", "computed": true }, { - "name": "created_by", - "type": "TypeString", - "description": "IAM ID of the service which created the API key", - "computed": true + "name": "store_value", + "type": "TypeBool", + "description": "Boolean value deciding whether API key value is retrievable in the future", + "optional": true }, { - "name": "name", + "name": "entity_tag", "type": "TypeString", - "description": "Name of the Service API key", - "required": true + "description": "Version of the API Key details object", + "computed": true }, { - "name": "description", + "name": "created_by", "type": "TypeString", - "description": "description of the API key", - "optional": true, + "description": "IAM ID of the service which created the API key", "computed": true }, { - "name": "apikey", + "name": "modified_at", "type": "TypeString", - "description": "API key value for this API key", - "secure": true, - "immutable": true, - "optional": true, + "description": "The date and time Service API Key was modified", "computed": true - }, - { - "name": "locked", - "type": "TypeBool", - "description": "The API key cannot be changed if set to true", - "optional": true - }, - { - "name": "store_value", - "type": "TypeBool", - "description": "Boolean value deciding whether API key value is retrievable in the future", - "optional": true - }, + } + ], + "ibm_iam_service_id": [ { "name": "crn", "type": "TypeString", - "description": "crn of the Service API Key", + "description": "crn of the serviceID", "cloud_data_type": "crn", "computed": true - } - ], - "ibm_iam_service_id": [ + }, { "name": "iam_id", "type": "TypeString", @@ -117100,101 +120197,9 @@ "type": "TypeString", "description": "version of the serviceID", "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "crn of the serviceID", - "cloud_data_type": "crn", - "computed": true } ], "ibm_iam_service_policy": [ - { - "name": "roles", - "type": "TypeList", - "description": "Role names of the policy definition", - "required": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_attributes", - "type": "TypeSet", - "description": "Set resource attributes.", - "optional": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of attribute.", - "required": true - }, - "operator": { - "name": "operator", - "type": "TypeString", - "description": "Operator of attribute.", - "default_value": "stringEquals", - "optional": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Value of attribute.", - "required": true - } - } - }, - { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_tags", - "type": "TypeSet", - "description": "Set access management tags.", - "optional": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of attribute.", - "required": true - }, - "operator": { - "name": "operator", - "type": "TypeString", - "description": "Operator of attribute.", - "default_value": "stringEquals", - "optional": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Value of attribute.", - "required": true - } - } - }, - { - "name": "description", - "type": "TypeString", - "description": "Description of the Policy", - "optional": true - }, - { - "name": "transaction_id", - "type": "TypeString", - "description": "Set transactionID for debug", - "optional": true, - "computed": true - }, { "name": "rule_conditions", "type": "TypeSet", @@ -117225,16 +120230,10 @@ } }, { - "name": "iam_service_id", + "name": "rule_operator", "type": "TypeString", - "description": "UUID of ServiceID", - "cloud_data_type": "iam", - "immutable": true, - "optional": true, - "cloud_data_range": [ - "service:service_id", - "resolved_to:id" - ] + "description": "Operator that multiple rule conditions are evaluated over", + "optional": true }, { "name": "pattern", @@ -117243,10 +120242,13 @@ "optional": true }, { - "name": "rule_operator", - "type": "TypeString", - "description": "Operator that multiple rule conditions are evaluated over", - "optional": true + "name": "roles", + "type": "TypeList", + "description": "Role names of the policy definition", + "required": true, + "elem": { + "type": "TypeString" + } }, { "name": "resources", @@ -117312,27 +120314,182 @@ "max_items": 1 }, { - "name": "account_management", - "type": "TypeBool", - "description": "Give access to all account management services", - "default_value": false, + "name": "resource_tags", + "type": "TypeSet", + "description": "Set access management tags.", + "optional": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of attribute.", + "required": true + }, + "operator": { + "name": "operator", + "type": "TypeString", + "description": "Operator of attribute.", + "default_value": "stringEquals", + "optional": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Value of attribute.", + "required": true + } + } + }, + { + "name": "transaction_id", + "type": "TypeString", + "description": "Set transactionID for debug", + "optional": true, + "computed": true + }, + { + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "description", + "type": "TypeString", + "description": "Description of the Policy", "optional": true }, + { + "name": "iam_service_id", + "type": "TypeString", + "description": "UUID of ServiceID", + "cloud_data_type": "iam", + "immutable": true, + "optional": true, + "cloud_data_range": [ + "service:service_id", + "resolved_to:id" + ] + }, { "name": "iam_id", "type": "TypeString", "description": "IAM ID of ServiceID", "immutable": true, "optional": true + }, + { + "name": "resource_attributes", + "type": "TypeSet", + "description": "Set resource attributes.", + "optional": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of attribute.", + "required": true + }, + "operator": { + "name": "operator", + "type": "TypeString", + "description": "Operator of attribute.", + "default_value": "stringEquals", + "optional": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Value of attribute.", + "required": true + } + } + }, + { + "name": "account_management", + "type": "TypeBool", + "description": "Give access to all account management services", + "default_value": false, + "optional": true } ], "ibm_iam_trusted_profile": [ + { + "name": "entity_tag", + "type": "TypeString", + "description": "Version of the trusted profile details object. You need to specify this value when updating the trusted profile to avoid stale updates.", + "computed": true + }, + { + "name": "modified_at", + "type": "TypeString", + "description": "If set contains a date time string of the last modification date in ISO format.", + "computed": true + }, + { + "name": "ims_account_id", + "type": "TypeInt", + "description": "IMS acount ID of the trusted profile.", + "computed": true + }, + { + "name": "assignment_id", + "type": "TypeString", + "description": "Id of assignment that assigned the template.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The optional description of the trusted profile. The 'description' property is only available if a description was provided during creation of trusted profile.", + "optional": true + }, + { + "name": "template_id", + "type": "TypeString", + "description": "Template id the profile was created from.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::profile:Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "profile_id", + "type": "TypeString", + "description": "Unique identifier of this trusted profile.", + "computed": true + }, { "name": "iam_id", "type": "TypeString", "description": "The iam_id of this trusted profile.", "computed": true }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the trusted profile. The name is checked for uniqueness. Therefore trusted profiles with the same names can not exist in the same account.", + "required": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "If set contains a date time string of the creation date in ISO format.", + "computed": true + }, + { + "name": "ims_user_id", + "type": "TypeInt", + "description": "IMS user ID of the trusted profile.", + "computed": true + }, { "name": "history", "type": "TypeList", @@ -117380,97 +120537,42 @@ } } }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the trusted profile. The name is checked for uniqueness. Therefore trusted profiles with the same names can not exist in the same account.", - "required": true - }, - { - "name": "description", - "type": "TypeString", - "description": "The optional description of the trusted profile. The 'description' property is only available if a description was provided during creation of trusted profile.", - "optional": true - }, - { - "name": "profile_id", - "type": "TypeString", - "description": "Unique identifier of this trusted profile.", - "computed": true - }, - { - "name": "modified_at", - "type": "TypeString", - "description": "If set contains a date time string of the last modification date in ISO format.", - "computed": true - }, { "name": "account_id", "type": "TypeString", "description": "The account ID of the trusted profile.", "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::profile:Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "If set contains a date time string of the creation date in ISO format.", - "computed": true - }, + } + ], + "ibm_iam_trusted_profile_claim_rule": [ { - "name": "template_id", + "name": "name", "type": "TypeString", - "description": "Template id the profile was created from.", - "computed": true + "description": "Name of the claim rule to be created or updated.", + "optional": true }, { - "name": "assignment_id", + "name": "realm_name", "type": "TypeString", - "description": "Id of assignment that assigned the template.", - "computed": true + "description": "The realm name of the Idp this claim rule applies to. This field is required only if the type is specified as 'Profile-SAML'.", + "optional": true }, { - "name": "entity_tag", + "name": "cr_type", "type": "TypeString", - "description": "Version of the trusted profile details object. You need to specify this value when updating the trusted profile to avoid stale updates.", - "computed": true - }, - { - "name": "ims_account_id", - "type": "TypeInt", - "description": "IMS acount ID of the trusted profile.", - "computed": true - }, - { - "name": "ims_user_id", - "type": "TypeInt", - "description": "IMS user ID of the trusted profile.", - "computed": true - } - ], - "ibm_iam_trusted_profile_claim_rule": [ - { - "name": "expiration", - "type": "TypeInt", - "description": "Session expiration in seconds, only required if type is 'Profile-SAML'.", + "description": "The compute resource type the rule applies to, required only if type is specified as 'Profile-CR'. Valid values are VSI, IKS_SA, ROKS_SA.", "optional": true }, { - "name": "entity_tag", + "name": "modified_at", "type": "TypeString", - "description": "version of the claim rule.", + "description": "If set contains a date time string of the last modification date in ISO format.", "computed": true }, { - "name": "modified_at", + "name": "created_at", "type": "TypeString", - "description": "If set contains a date time string of the last modification date in ISO format.", + "description": "If set contains a date time string of the creation date in ISO format.", "computed": true }, { @@ -117485,30 +120587,18 @@ "resolved_to:id" ] }, - { - "name": "type", - "type": "TypeString", - "description": "Type of the calim rule, either 'Profile-SAML' or 'Profile-CR'.", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the claim rule to be created or updated.", - "optional": true - }, - { - "name": "cr_type", - "type": "TypeString", - "description": "The compute resource type the rule applies to, required only if type is specified as 'Profile-CR'. Valid values are VSI, IKS_SA, ROKS_SA.", - "optional": true - }, { "name": "rule_id", "type": "TypeString", "description": "Unique identifier of this claim rule.", "computed": true }, + { + "name": "type", + "type": "TypeString", + "description": "Type of the calim rule, either 'Profile-SAML' or 'Profile-CR'.", + "required": true + }, { "name": "conditions", "type": "TypeList", @@ -117536,41 +120626,19 @@ } }, { - "name": "realm_name", - "type": "TypeString", - "description": "The realm name of the Idp this claim rule applies to. This field is required only if the type is specified as 'Profile-SAML'.", + "name": "expiration", + "type": "TypeInt", + "description": "Session expiration in seconds, only required if type is 'Profile-SAML'.", "optional": true }, { - "name": "created_at", + "name": "entity_tag", "type": "TypeString", - "description": "If set contains a date time string of the creation date in ISO format.", + "description": "version of the claim rule.", "computed": true } ], "ibm_iam_trusted_profile_identity": [ - { - "name": "description", - "type": "TypeString", - "description": "Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.", - "immutable": true, - "optional": true - }, - { - "name": "profile_id", - "type": "TypeString", - "description": "ID of the trusted profile.", - "immutable": true, - "required": true - }, - { - "name": "identity_type", - "type": "TypeString", - "description": "Type of the identity.", - "immutable": true, - "required": true, - "options": "crn, serviceid, user" - }, { "name": "identifier", "type": "TypeString", @@ -117595,33 +120663,31 @@ "elem": { "type": "TypeString" } - } - ], - "ibm_iam_trusted_profile_link": [ - { - "name": "created_at", - "type": "TypeString", - "description": "If set contains a date time string of the creation date in ISO format.", - "computed": true }, { - "name": "modified_at", + "name": "description", "type": "TypeString", - "description": "If set contains a date time string of the last modification date in ISO format.", - "computed": true + "description": "Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.", + "immutable": true, + "optional": true }, { "name": "profile_id", "type": "TypeString", "description": "ID of the trusted profile.", - "cloud_data_type": "iam", "immutable": true, - "required": true, - "cloud_data_range": [ - "service:trusted_profile", - "resolved_to:id" - ] + "required": true }, + { + "name": "identity_type", + "type": "TypeString", + "description": "Type of the identity.", + "immutable": true, + "required": true, + "options": "crn, serviceid, user" + } + ], + "ibm_iam_trusted_profile_link": [ { "name": "cr_type", "type": "TypeString", @@ -117676,20 +120742,39 @@ "type": "TypeString", "description": "version of the claim rule.", "computed": true - } - ], - "ibm_iam_trusted_profile_policy": [ + }, + { + "name": "created_at", + "type": "TypeString", + "description": "If set contains a date time string of the creation date in ISO format.", + "computed": true + }, + { + "name": "modified_at", + "type": "TypeString", + "description": "If set contains a date time string of the last modification date in ISO format.", + "computed": true + }, { "name": "profile_id", "type": "TypeString", - "description": "UUID of Trusted Profile", + "description": "ID of the trusted profile.", "cloud_data_type": "iam", "immutable": true, - "optional": true, + "required": true, "cloud_data_range": [ "service:trusted_profile", "resolved_to:id" ] + } + ], + "ibm_iam_trusted_profile_policy": [ + { + "name": "iam_id", + "type": "TypeString", + "description": "IAM ID of Trusted Profile", + "immutable": true, + "optional": true }, { "name": "roles", @@ -117764,18 +120849,9 @@ "max_items": 1 }, { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_tags", + "name": "resource_attributes", "type": "TypeSet", - "description": "Set access management tags.", + "description": "Set resource attributes.", "optional": true, "elem": { "name": { @@ -117800,33 +120876,10 @@ } }, { - "name": "rule_conditions", - "type": "TypeSet", - "description": "Rule conditions enforced by the policy", - "optional": true, - "elem": { - "key": { - "name": "key", - "type": "TypeString", - "description": "Key of the condition", - "required": true - }, - "operator": { - "name": "operator", - "type": "TypeString", - "description": "Operator of the condition", - "required": true - }, - "value": { - "name": "value", - "type": "TypeList", - "description": "Value of the condition", - "required": true, - "elem": { - "type": "TypeString" - } - } - } + "name": "rule_operator", + "type": "TypeString", + "description": "Operator that multiple rule conditions are evaluated over", + "optional": true }, { "name": "pattern", @@ -117835,16 +120888,30 @@ "optional": true }, { - "name": "iam_id", + "name": "profile_id", "type": "TypeString", - "description": "IAM ID of Trusted Profile", + "description": "UUID of Trusted Profile", + "cloud_data_type": "iam", "immutable": true, - "optional": true + "optional": true, + "cloud_data_range": [ + "service:trusted_profile", + "resolved_to:id" + ] }, { - "name": "resource_attributes", + "name": "tags", "type": "TypeSet", - "description": "Set resource attributes.", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "resource_tags", + "type": "TypeSet", + "description": "Set access management tags.", "optional": true, "elem": { "name": { @@ -117868,13 +120935,6 @@ } } }, - { - "name": "account_management", - "type": "TypeBool", - "description": "Give access to all account management services", - "default_value": false, - "optional": true - }, { "name": "description", "type": "TypeString", @@ -117889,44 +120949,49 @@ "computed": true }, { - "name": "rule_operator", - "type": "TypeString", - "description": "Operator that multiple rule conditions are evaluated over", + "name": "rule_conditions", + "type": "TypeSet", + "description": "Rule conditions enforced by the policy", + "optional": true, + "elem": { + "key": { + "name": "key", + "type": "TypeString", + "description": "Key of the condition", + "required": true + }, + "operator": { + "name": "operator", + "type": "TypeString", + "description": "Operator of the condition", + "required": true + }, + "value": { + "name": "value", + "type": "TypeList", + "description": "Value of the condition", + "required": true, + "elem": { + "type": "TypeString" + } + } + } + }, + { + "name": "account_management", + "type": "TypeBool", + "description": "Give access to all account management services", + "default_value": false, "optional": true } ], "ibm_iam_trusted_profile_template": [ { - "name": "committed", - "type": "TypeBool", - "description": "Committed flag determines if the template is ready for assignment.", - "optional": true, - "computed": true - }, - { - "name": "created_by_id", - "type": "TypeString", - "description": "IAMid of the creator.", - "computed": true - }, - { - "name": "last_modified_by_id", - "type": "TypeString", - "description": "IAMid of the identity that made the latest modification.", - "computed": true - }, - { - "name": "template_id", + "name": "name", "type": "TypeString", - "description": "ID of the the template.", + "description": "The name of the trusted profile template. This is visible only in the enterprise account.", "optional": true }, - { - "name": "id", - "type": "TypeString", - "description": "ID of the the template.", - "computed": true - }, { "name": "history", "type": "TypeList", @@ -117974,6 +121039,57 @@ } } }, + { + "name": "created_at", + "type": "TypeString", + "description": "Timestamp of when the template was created.", + "computed": true + }, + { + "name": "account_id", + "type": "TypeString", + "description": "ID of the account where the template resides.", + "computed": true + }, + { + "name": "last_modified_by_id", + "type": "TypeString", + "description": "IAMid of the identity that made the latest modification.", + "computed": true + }, + { + "name": "id", + "type": "TypeString", + "description": "ID of the the template.", + "computed": true + }, + { + "name": "policy_template_references", + "type": "TypeList", + "description": "Existing policy templates that you can reference to assign access in the trusted profile component.", + "optional": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "ID of Access Policy Template.", + "required": true + }, + "version": { + "name": "version", + "type": "TypeString", + "description": "Version of Access Policy Template.", + "required": true + } + } + }, + { + "name": "crn", + "type": "TypeString", + "description": "Cloud resource name.", + "cloud_data_type": "crn", + "computed": true + }, { "name": "profile", "type": "TypeList", @@ -118095,41 +121211,22 @@ "max_items": 1 }, { - "name": "created_at", + "name": "template_id", "type": "TypeString", - "description": "Timestamp of when the template was created.", - "computed": true + "description": "ID of the the template.", + "optional": true }, { - "name": "last_modified_at", - "type": "TypeString", - "description": "Timestamp of when the template was last modified.", + "name": "version", + "type": "TypeInt", + "description": "Version of the the template.", "computed": true }, { - "name": "policy_template_references", - "type": "TypeList", - "description": "Existing policy templates that you can reference to assign access in the trusted profile component.", + "name": "committed", + "type": "TypeBool", + "description": "Committed flag determines if the template is ready for assignment.", "optional": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "ID of Access Policy Template.", - "required": true - }, - "version": { - "name": "version", - "type": "TypeString", - "description": "Version of Access Policy Template.", - "required": true - } - } - }, - { - "name": "version", - "type": "TypeInt", - "description": "Version of the the template.", "computed": true }, { @@ -118139,24 +121236,17 @@ "computed": true }, { - "name": "crn", + "name": "created_by_id", "type": "TypeString", - "description": "Cloud resource name.", - "cloud_data_type": "crn", + "description": "IAMid of the creator.", "computed": true }, { - "name": "account_id", + "name": "last_modified_at", "type": "TypeString", - "description": "ID of the account where the template resides.", + "description": "Timestamp of when the template was last modified.", "computed": true }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the trusted profile template. This is visible only in the enterprise account.", - "optional": true - }, { "name": "description", "type": "TypeString", @@ -118165,6 +121255,53 @@ } ], "ibm_iam_trusted_profile_template_assignment": [ + { + "name": "history", + "type": "TypeList", + "description": "Assignment history.", + "computed": true, + "elem": { + "action": { + "name": "action", + "type": "TypeString", + "description": "Action of the history entry.", + "computed": true + }, + "iam_id": { + "name": "iam_id", + "type": "TypeString", + "description": "IAM ID of the identity which triggered the action.", + "computed": true + }, + "iam_id_account": { + "name": "iam_id_account", + "type": "TypeString", + "description": "Account of the identity which triggered the action.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "Message which summarizes the executed action.", + "computed": true + }, + "params": { + "name": "params", + "type": "TypeList", + "description": "Params of the history entry.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "timestamp": { + "name": "timestamp", + "type": "TypeString", + "description": "Timestamp when the action was triggered.", + "computed": true + } + } + }, { "name": "template_version", "type": "TypeInt", @@ -118258,62 +121395,9 @@ "computed": true }, { - "name": "last_modified_by_id", - "type": "TypeString", - "description": "IAMid of the identity that last modified the assignment.", - "computed": true - }, - { - "name": "history", - "type": "TypeList", - "description": "Assignment history.", - "computed": true, - "elem": { - "action": { - "name": "action", - "type": "TypeString", - "description": "Action of the history entry.", - "computed": true - }, - "iam_id": { - "name": "iam_id", - "type": "TypeString", - "description": "IAM ID of the identity which triggered the action.", - "computed": true - }, - "iam_id_account": { - "name": "iam_id_account", - "type": "TypeString", - "description": "Account of the identity which triggered the action.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "Message which summarizes the executed action.", - "computed": true - }, - "params": { - "name": "params", - "type": "TypeList", - "description": "Params of the history entry.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "timestamp": { - "name": "timestamp", - "type": "TypeString", - "description": "Timestamp when the action was triggered.", - "computed": true - } - } - }, - { - "name": "href", + "name": "created_by_id", "type": "TypeString", - "description": "Href.", + "description": "IAMid of the identity that created the assignment.", "computed": true }, { @@ -118322,6 +121406,13 @@ "description": "Template Id.", "required": true }, + { + "name": "target_type", + "type": "TypeString", + "description": "Assignment target type.", + "required": true, + "options": "Account, AccountGroup" + }, { "name": "resources", "type": "TypeList", @@ -118480,17 +121571,16 @@ } }, { - "name": "entity_tag", + "name": "last_modified_by_id", "type": "TypeString", - "description": "Entity tag for this assignment record.", + "description": "IAMid of the identity that last modified the assignment.", "computed": true }, { - "name": "target_type", + "name": "entity_tag", "type": "TypeString", - "description": "Assignment target type.", - "required": true, - "options": "Account, AccountGroup" + "description": "Entity tag for this assignment record.", + "computed": true }, { "name": "status", @@ -118499,15 +121589,15 @@ "computed": true }, { - "name": "created_at", + "name": "href", "type": "TypeString", - "description": "Assignment created at.", + "description": "Href.", "computed": true }, { - "name": "created_by_id", + "name": "created_at", "type": "TypeString", - "description": "IAMid of the identity that created the assignment.", + "description": "Assignment created at.", "computed": true }, { @@ -118865,13 +121955,6 @@ } ], "ibm_iam_user_policy": [ - { - "name": "ibm_id", - "type": "TypeString", - "description": "The ibm id or email of user", - "immutable": true, - "required": true - }, { "name": "resource_attributes", "type": "TypeSet", @@ -118900,32 +121983,60 @@ } }, { - "name": "transaction_id", - "type": "TypeString", - "description": "Set transactionID for debug", + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", "optional": true, - "computed": true + "elem": { + "type": "TypeString" + } }, { - "name": "rule_operator", + "name": "resource_tags", + "type": "TypeSet", + "description": "Set access management tags.", + "optional": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of attribute.", + "required": true + }, + "operator": { + "name": "operator", + "type": "TypeString", + "description": "Operator of attribute.", + "default_value": "stringEquals", + "optional": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Value of attribute.", + "required": true + } + } + }, + { + "name": "description", "type": "TypeString", - "description": "Operator that multiple rule conditions are evaluated over", + "description": "Description of the Policy", "optional": true }, { - "name": "pattern", + "name": "transaction_id", "type": "TypeString", - "description": "Pattern rule follows for time-based condition", - "optional": true + "description": "Set transactionID for debug", + "optional": true, + "computed": true }, { - "name": "roles", - "type": "TypeList", - "description": "Role names of the policy definition", - "required": true, - "elem": { - "type": "TypeString" - } + "name": "ibm_id", + "type": "TypeString", + "description": "The ibm id or email of user", + "immutable": true, + "required": true }, { "name": "resources", @@ -118990,55 +122101,6 @@ }, "max_items": 1 }, - { - "name": "account_management", - "type": "TypeBool", - "description": "Give access to all account management services", - "default_value": false, - "optional": true - }, - { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_tags", - "type": "TypeSet", - "description": "Set access management tags.", - "optional": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of attribute.", - "required": true - }, - "operator": { - "name": "operator", - "type": "TypeString", - "description": "Operator of attribute.", - "default_value": "stringEquals", - "optional": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Value of attribute.", - "required": true - } - } - }, - { - "name": "description", - "type": "TypeString", - "description": "Description of the Policy", - "optional": true - }, { "name": "rule_conditions", "type": "TypeSet", @@ -119067,6 +122129,34 @@ } } } + }, + { + "name": "rule_operator", + "type": "TypeString", + "description": "Operator that multiple rule conditions are evaluated over", + "optional": true + }, + { + "name": "pattern", + "type": "TypeString", + "description": "Pattern rule follows for time-based condition", + "optional": true + }, + { + "name": "roles", + "type": "TypeList", + "description": "Role names of the policy definition", + "required": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "account_management", + "type": "TypeBool", + "description": "Give access to all account management services", + "default_value": false, + "optional": true } ], "ibm_iam_user_settings": [ @@ -119089,14 +122179,7 @@ ], "ibm_ipsec_vpn": [ { - "name": "datacenter", - "type": "TypeString", - "description": "Datacenter name", - "immutable": true, - "required": true - }, - { - "name": "name", + "name": "internal_peer_ip_address", "type": "TypeString", "computed": true }, @@ -119134,9 +122217,15 @@ "min_items": 1 }, { - "name": "customer_peer_ip", - "type": "TypeString", - "description": "Customer Peer IP Address", + "name": "internal_subnet_id", + "type": "TypeInt", + "description": "Internal subnet ID value", + "optional": true + }, + { + "name": "remote_subnet_id", + "type": "TypeInt", + "description": "Remote subnet ID value", "optional": true }, { @@ -119164,15 +122253,11 @@ "min_items": 1 }, { - "name": "service_subnet_id", - "type": "TypeInt", - "description": "Service subnet ID value", - "optional": true - }, - { - "name": "internal_peer_ip_address", + "name": "datacenter", "type": "TypeString", - "computed": true + "description": "Datacenter name", + "immutable": true, + "required": true }, { "name": "phase_one", @@ -119238,46 +122323,96 @@ "optional": true }, { - "name": "internal_subnet_id", - "type": "TypeInt", - "description": "Internal subnet ID value", + "name": "customer_peer_ip", + "type": "TypeString", + "description": "Customer Peer IP Address", "optional": true }, { - "name": "remote_subnet_id", + "name": "service_subnet_id", "type": "TypeInt", - "description": "Remote subnet ID value", + "description": "Service subnet ID value", "optional": true + }, + { + "name": "name", + "type": "TypeString", + "computed": true } ], "ibm_is_backup_policy": [ { - "name": "href", + "name": "created_at", "type": "TypeString", - "description": "The URL for this backup policy.", + "description": "The date and time that the backup policy was created.", "computed": true }, { - "name": "last_job_completed_at", + "name": "crn", "type": "TypeString", - "description": "The date and time that the most recent job for this backup policy completed.", + "description": "The CRN for this backup policy.", + "cloud_data_type": "crn", "computed": true }, { - "name": "name", + "name": "lifecycle_state", "type": "TypeString", - "description": "The user-defined name for this backup policy. Names must be unique within the region this backup policy resides in. If unspecified, the name will be a hyphenated list of randomly-selected words.", + "description": "The lifecycle state of the backup policy.", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + }, + { + "name": "match_user_tags", + "type": "TypeSet", + "description": "The user tags this backup policy applies to. Resources that have both a matching user tag and a matching type will be subject to the backup policy.", "required": true, "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$" + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "elem": { + "type": "TypeString" + } }, { - "name": "crn", + "name": "health_reasons", + "type": "TypeList", + "description": "The reasons for the current health_state (if any).", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this health state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this health state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this health state.", + "computed": true + } + } + }, + { + "name": "match_resource_type", "type": "TypeString", - "description": "The CRN for this backup policy.", - "cloud_data_type": "crn", - "computed": true + "description": "A resource type this backup policy applies to. Resources that have both a matching type and a matching user tag will be subject to the backup policy.", + "default_value": "volume", + "min_length": 1, + "max_length": 128, + "matches": "^[a-z][a-z0-9]*(_[a-z0-9]+)*$", + "optional": true }, { "name": "resource_group", @@ -119289,114 +122424,78 @@ "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the backup policy was created.", - "computed": true - }, - { - "name": "lifecycle_state", + "name": "last_job_completed_at", "type": "TypeString", - "description": "The lifecycle state of the backup policy.", + "description": "The date and time that the most recent job for this backup policy completed.", "computed": true }, { - "name": "resource_type", + "name": "version", "type": "TypeString", - "description": "The resource type.", "computed": true }, { - "name": "version", + "name": "health_state", "type": "TypeString", + "description": "The health of this resource", "computed": true }, { "name": "match_resource_types", "type": "TypeSet", "description": "A resource type this backup policy applies to. Resources that have both a matching type and a matching user tag will be subject to the backup policy.", - "min_length": 1, - "max_length": 128, - "matches": "^[a-z][a-z0-9]*(_[a-z0-9]+)*$", "optional": true, "computed": true, "elem": { "type": "TypeString" - } + }, + "deprecated": "match_resource_types is being deprecated. Use match_resource_type instead" }, { - "name": "match_user_tags", - "type": "TypeSet", - "description": "The user tags this backup policy applies to. Resources that have both a matching user tag and a matching type will be subject to the backup policy.", + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this backup policy. Names must be unique within the region this backup policy resides in. If unspecified, the name will be a hyphenated list of randomly-selected words.", "required": true, "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "elem": { - "type": "TypeString" - } - } - ], - "ibm_is_backup_policy_plan": [ - { - "name": "backup_policy_id", - "type": "TypeString", - "description": "The backup policy identifier.", - "immutable": true, - "required": true - }, - { - "name": "attach_user_tags", - "type": "TypeSet", - "description": "User tags to attach to each backup (snapshot) created by this plan. If unspecified, no user tags will be attached.", - "optional": true, - "elem": { - "type": "TypeString" - } + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$" }, { - "name": "name", + "name": "href", "type": "TypeString", - "description": "The user-defined name for this backup policy plan. Names must be unique within the backup policy this plan resides in. If unspecified, the name will be a hyphenated list of randomly-selected words.", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$", - "optional": true + "description": "The URL for this backup policy.", + "computed": true }, { - "name": "remote_region_policy", + "name": "scope", "type": "TypeList", - "description": "Backup policy plan cross region rule.", + "description": "The scope for this backup policy.", "optional": true, + "computed": true, "elem": { - "delete_over_count": { - "name": "delete_over_count", - "type": "TypeInt", - "description": "The maximum number of recent remote copies to keep in this region.", - "optional": true, - "computed": true + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this enterprise.", + "optional": true }, - "encryption_key": { - "name": "encryption_key", + "id": { + "name": "id", "type": "TypeString", - "description": "The CRN of the [Key Protect Root Key](https://cloud.ibm.com/docs/key-protect?topic=key-protect-getting-started-tutorial) or [Hyper Protect Crypto Services Root Key](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started) for this resource.", - "optional": true, + "description": "The unique identifier for this enterprise or account.", "computed": true }, - "region": { - "name": "region", + "resource_type": { + "name": "resource_type", "type": "TypeString", - "description": "The globally unique name for this region.", - "required": true + "description": "The resource type.", + "computed": true } - } - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", - "computed": true - }, + }, + "max_items": 1 + } + ], + "ibm_is_backup_policy_plan": [ { "name": "cron_spec", "type": "TypeString", @@ -119414,11 +122513,13 @@ "computed": true }, { - "name": "copy_user_tags", - "type": "TypeBool", - "description": "Indicates whether to copy the source's user tags to the created backups (snapshots).", - "default_value": true, - "optional": true + "name": "attach_user_tags", + "type": "TypeSet", + "description": "User tags to attach to each backup (snapshot) created by this plan. If unspecified, no user tags will be attached.", + "optional": true, + "elem": { + "type": "TypeString" + } }, { "name": "clone_policy", @@ -119447,15 +122548,22 @@ "max_items": 1 }, { - "name": "version", + "name": "lifecycle_state", "type": "TypeString", - "description": "Version of the BackupPolicyPlan.", + "description": "The lifecycle state of this backup policy plan.", "computed": true }, { - "name": "href", + "name": "backup_policy_id", "type": "TypeString", - "description": "The URL for this backup policy plan.", + "description": "The backup policy identifier.", + "immutable": true, + "required": true + }, + { + "name": "version", + "type": "TypeString", + "description": "Version of the BackupPolicyPlan.", "computed": true }, { @@ -119464,6 +122572,13 @@ "description": "The backup policy identifier.", "computed": true }, + { + "name": "copy_user_tags", + "type": "TypeBool", + "description": "Indicates whether to copy the source's user tags to the created backups (snapshots).", + "default_value": true, + "optional": true + }, { "name": "deletion_trigger", "type": "TypeList", @@ -119487,6 +122602,49 @@ }, "max_items": 1 }, + { + "name": "remote_region_policy", + "type": "TypeList", + "description": "Backup policy plan cross region rule.", + "optional": true, + "elem": { + "delete_over_count": { + "name": "delete_over_count", + "type": "TypeInt", + "description": "The maximum number of recent remote copies to keep in this region.", + "optional": true, + "computed": true + }, + "encryption_key": { + "name": "encryption_key", + "type": "TypeString", + "description": "The CRN of the [Key Protect Root Key](https://cloud.ibm.com/docs/key-protect?topic=key-protect-getting-started-tutorial) or [Hyper Protect Crypto Services Root Key](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started) for this resource.", + "optional": true, + "computed": true + }, + "region": { + "name": "region", + "type": "TypeString", + "description": "The globally unique name for this region.", + "required": true + } + } + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this backup policy plan. Names must be unique within the backup policy this plan resides in. If unspecified, the name will be a hyphenated list of randomly-selected words.", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$", + "optional": true + }, { "name": "created_at", "type": "TypeString", @@ -119494,13 +122652,47 @@ "computed": true }, { - "name": "lifecycle_state", + "name": "href", "type": "TypeString", - "description": "The lifecycle state of this backup policy plan.", + "description": "The URL for this backup policy plan.", "computed": true } ], "ibm_is_bare_metal_server": [ + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource group name", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Bare metal server status", + "computed": true + }, + { + "name": "action", + "type": "TypeString", + "description": "This restart/start/stops a bare metal server.", + "options": "start, restart, stop", + "optional": true + }, + { + "name": "bandwidth", + "type": "TypeInt", + "description": "The total bandwidth (in megabits per second)", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this bare metal server", + "computed": true + }, { "name": "primary_network_interface", "type": "TypeList", @@ -119628,6 +122820,150 @@ "max_items": 1, "min_items": 1 }, + { + "name": "keys", + "type": "TypeSet", + "description": "SSH key Ids for the bare metal server", + "required": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "name", + "type": "TypeString", + "description": "Bare metal server name", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "optional": true + }, + { + "name": "boot_target", + "type": "TypeString", + "description": "The unique identifier for this bare metal server disk", + "computed": true + }, + { + "name": "disks", + "type": "TypeList", + "description": "The disks for this bare metal server, including any disks that are associated with the boot_target.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this bare metal server disk", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this bare metal server disk", + "computed": true + }, + "interface_type": { + "name": "interface_type", + "type": "TypeString", + "description": "The disk interface used for attaching the disk. Supported values are [ nvme, sata ]", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this disk", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type", + "computed": true + }, + "size": { + "name": "size", + "type": "TypeInt", + "description": "The size of the disk in GB (gigabytes)", + "computed": true + } + } + }, + { + "name": "user_data", + "type": "TypeString", + "description": "User data given for the bare metal server", + "immutable": true, + "optional": true + }, + { + "name": "zone", + "type": "TypeString", + "description": "Zone name", + "immutable": true, + "required": true + }, + { + "name": "tags", + "type": "TypeSet", + "description": "Tags for the Bare metal server", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "enable_secure_boot", + "type": "TypeBool", + "description": "Indicates whether secure boot is enabled. If enabled, the image must support secure boot or the server will fail to boot.", + "optional": true, + "computed": true + }, + { + "name": "cpu", + "type": "TypeList", + "description": "The bare metal server CPU configuration", + "computed": true, + "elem": { + "architecture": { + "name": "architecture", + "type": "TypeString", + "description": "The CPU architecture", + "computed": true + }, + "core_count": { + "name": "core_count", + "type": "TypeInt", + "description": "The total number of cores", + "computed": true + }, + "socket_count": { + "name": "socket_count", + "type": "TypeInt", + "description": "The total number of CPU sockets", + "computed": true + }, + "threads_per_core": { + "name": "threads_per_core", + "type": "TypeInt", + "description": "The total number of hardware threads per core", + "computed": true + } + } + }, { "name": "network_interfaces", "type": "TypeSet", @@ -119769,54 +123105,49 @@ } }, { - "name": "zone", + "name": "profile", "type": "TypeString", - "description": "Zone name", + "description": "profile name", "immutable": true, "required": true }, { - "name": "resource_type", + "name": "vpc", "type": "TypeString", - "description": "Resource type name", - "computed": true - }, - { - "name": "enable_secure_boot", - "type": "TypeBool", - "description": "Indicates whether secure boot is enabled. If enabled, the image must support secure boot or the server will fail to boot.", + "description": "The VPC the bare metal server is to be a part of", + "immutable": true, "optional": true, "computed": true }, { - "name": "action", - "type": "TypeString", - "description": "This restart/start/stops a bare metal server.", - "options": "start, restart, stop", - "optional": true - }, - { - "name": "crn", + "name": "resource_type", "type": "TypeString", - "description": "The CRN for this bare metal server", - "cloud_data_type": "crn", + "description": "Resource type name", "computed": true }, { - "name": "delete_type", - "type": "TypeString", - "description": "Enables stopping type of the bare metal server before deleting", - "default_value": "hard", - "optional": true - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "optional": true, + "name": "status_reasons", + "type": "TypeList", "computed": true, "elem": { - "type": "TypeString" + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the status reason", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the status reason", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about this status reason", + "computed": true + } } }, { @@ -119851,48 +123182,11 @@ "max_items": 1 }, { - "name": "disks", - "type": "TypeList", - "description": "The disks for this bare metal server, including any disks that are associated with the boot_target.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this bare metal server disk", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this bare metal server disk", - "computed": true - }, - "interface_type": { - "name": "interface_type", - "type": "TypeString", - "description": "The disk interface used for attaching the disk. Supported values are [ nvme, sata ]", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this disk", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type", - "computed": true - }, - "size": { - "name": "size", - "type": "TypeInt", - "description": "The size of the disk in GB (gigabytes)", - "computed": true - } - } + "name": "crn", + "type": "TypeString", + "description": "The CRN for this bare metal server", + "cloud_data_type": "crn", + "computed": true }, { "name": "memory", @@ -119901,88 +123195,26 @@ "computed": true }, { - "name": "resource_group", - "type": "TypeString", - "description": "Resource group name", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "vpc", - "type": "TypeString", - "description": "The VPC the bare metal server is to be a part of", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "Bare metal server status", - "computed": true - }, - { - "name": "name", + "name": "delete_type", "type": "TypeString", - "description": "Bare metal server name", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "description": "Enables stopping type of the bare metal server before deleting", + "default_value": "hard", "optional": true }, - { - "name": "bandwidth", - "type": "TypeInt", - "description": "The total bandwidth (in megabits per second)", - "computed": true - }, - { - "name": "cpu", - "type": "TypeList", - "description": "The bare metal server CPU configuration", - "computed": true, - "elem": { - "architecture": { - "name": "architecture", - "type": "TypeString", - "description": "The CPU architecture", - "computed": true - }, - "core_count": { - "name": "core_count", - "type": "TypeInt", - "description": "The total number of cores", - "computed": true - }, - "socket_count": { - "name": "socket_count", - "type": "TypeInt", - "description": "The total number of CPU sockets", - "computed": true - }, - "threads_per_core": { - "name": "threads_per_core", - "type": "TypeInt", - "description": "The total number of hardware threads per core", - "computed": true - } - } - }, { "name": "image", "type": "TypeString", "description": "image id", "immutable": true, "required": true - }, + } + ], + "ibm_is_bare_metal_server_action": [ { - "name": "user_data", + "name": "status", "type": "TypeString", - "description": "User data given for the bare metal server", - "immutable": true, - "optional": true + "description": "Bare metal server status", + "computed": true }, { "name": "status_reasons", @@ -120009,49 +123241,6 @@ } } }, - { - "name": "tags", - "type": "TypeSet", - "description": "Tags for the Bare metal server", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "boot_target", - "type": "TypeString", - "description": "The unique identifier for this bare metal server disk", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this bare metal server", - "computed": true - }, - { - "name": "keys", - "type": "TypeSet", - "description": "SSH key Ids for the bare metal server", - "required": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "profile", - "type": "TypeString", - "description": "profile name", - "immutable": true, - "required": true - } - ], - "ibm_is_bare_metal_server_action": [ { "name": "bare_metal_server", "type": "TypeString", @@ -120072,40 +123261,33 @@ "type": "TypeString", "description": "This restart/start/stops a bare metal server.", "required": true + } + ], + "ibm_is_bare_metal_server_disk": [ + { + "name": "disk", + "type": "TypeString", + "description": "Bare metal server disk identifier", + "required": true }, { - "name": "status", + "name": "name", "type": "TypeString", - "description": "Bare metal server status", + "description": "Bare metal server disk name", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "optional": true, "computed": true }, { - "name": "status_reasons", - "type": "TypeList", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the status reason", - "computed": true - }, - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about this status reason", - "computed": true - } - } + "name": "bare_metal_server", + "type": "TypeString", + "description": "Bare metal server identifier", + "required": true } ], - "ibm_is_bare_metal_server_disk": [ + "ibm_is_bare_metal_server_network_interface": [ { "name": "bare_metal_server", "type": "TypeString", @@ -120113,23 +123295,34 @@ "required": true }, { - "name": "disk", + "name": "status", "type": "TypeString", - "description": "Bare metal server disk identifier", - "required": true + "description": "The status of the network interface : [ available, deleting, failed, pending ]", + "computed": true + }, + { + "name": "enable_infrastructure_nat", + "type": "TypeBool", + "description": "If true, the VPC infrastructure performs any needed NAT operations. If false, the packet is passed unmodified to/from the network interface, allowing the workload to perform any needed NAT operations.", + "optional": true, + "computed": true }, { "name": "name", "type": "TypeString", - "description": "Bare metal server disk name", + "description": "The user-defined name for this network interface", "min_length": 1, "max_length": 63, "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", "optional": true, "computed": true - } - ], - "ibm_is_bare_metal_server_network_interface": [ + }, + { + "name": "subnet", + "type": "TypeString", + "description": "The id of the associated subnet", + "required": true + }, { "name": "allowed_vlans", "type": "TypeSet", @@ -120140,6 +123333,66 @@ "type": "TypeInt" } }, + { + "name": "allow_interface_to_float", + "type": "TypeBool", + "description": "Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.", + "optional": true, + "computed": true + }, + { + "name": "hard_stop", + "type": "TypeBool", + "description": "Only used for PCI network interfaces, whether to hard/immediately stop server", + "default_value": true, + "optional": true + }, + { + "name": "floating_ips", + "type": "TypeList", + "description": "The floating IPs associated with this network interface.", + "computed": true, + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "The globally unique IP address", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The globally unique IP identifier", + "computed": true + } + } + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this network interface", + "computed": true + }, + { + "name": "interface_type", + "type": "TypeString", + "description": "The network interface type: [ pci, vlan, hipersocket ]", + "options": "pci, hipersocket, vlan", + "optional": true, + "computed": true + }, + { + "name": "mac_address", + "type": "TypeString", + "description": "The MAC address of the interface. If absent, the value is not known.", + "computed": true + }, + { + "name": "port_speed", + "type": "TypeInt", + "description": "The network interface port speed in Mbps", + "computed": true + }, { "name": "vlan", "type": "TypeInt", @@ -120148,9 +123401,16 @@ "computed": true }, { - "name": "mac_address", + "name": "network_interface", "type": "TypeString", - "description": "The MAC address of the interface. If absent, the value is not known.", + "description": "The bare metal server network interface identifier", + "computed": true + }, + { + "name": "allow_ip_spoofing", + "type": "TypeBool", + "description": "Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface.", + "optional": true, "computed": true }, { @@ -120204,90 +123464,48 @@ "max_items": 1 }, { - "name": "href", + "name": "resource_type", "type": "TypeString", - "description": "The URL for this network interface", + "description": "The resource type : [ subnet_reserved_ip ]", "computed": true }, { - "name": "allow_ip_spoofing", - "type": "TypeBool", - "description": "Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface.", + "name": "security_groups", + "type": "TypeSet", + "description": "Collection of security groups ids", "optional": true, - "computed": true - }, - { - "name": "floating_ips", - "type": "TypeList", - "description": "The floating IPs associated with this network interface.", "computed": true, "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "The globally unique IP address", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The globally unique IP identifier", - "computed": true - } + "type": "TypeString" } }, { - "name": "enable_infrastructure_nat", - "type": "TypeBool", - "description": "If true, the VPC infrastructure performs any needed NAT operations. If false, the packet is passed unmodified to/from the network interface, allowing the workload to perform any needed NAT operations.", - "optional": true, + "name": "type", + "type": "TypeString", + "description": "The type of this bare metal server network interface : [ primary, secondary ]", "computed": true - }, - { - "name": "security_groups", - "type": "TypeSet", - "description": "Collection of security groups ids", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, + } + ], + "ibm_is_bare_metal_server_network_interface_allow_float": [ { - "name": "subnet", - "type": "TypeString", - "description": "The id of the associated subnet", + "name": "vlan", + "type": "TypeInt", + "description": "Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface", "required": true }, { - "name": "bare_metal_server", + "name": "href", "type": "TypeString", - "description": "Bare metal server identifier", - "required": true - }, - { - "name": "hard_stop", - "type": "TypeBool", - "description": "Only used for PCI network interfaces, whether to hard/immediately stop server", - "default_value": true, - "optional": true + "description": "The URL for this network interface", + "computed": true }, { "name": "name", "type": "TypeString", "description": "The user-defined name for this network interface", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", "optional": true, "computed": true }, - { - "name": "port_speed", - "type": "TypeInt", - "description": "The network interface port speed in Mbps", - "computed": true - }, { "name": "resource_type", "type": "TypeString", @@ -120301,76 +123519,39 @@ "computed": true }, { - "name": "type", + "name": "network_interface", "type": "TypeString", - "description": "The type of this bare metal server network interface : [ primary, secondary ]", + "description": "The bare metal server network interface identifier", "computed": true }, { - "name": "allow_interface_to_float", + "name": "allow_ip_spoofing", "type": "TypeBool", - "description": "Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.", + "description": "Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface.", "optional": true, "computed": true }, { - "name": "network_interface", - "type": "TypeString", - "description": "The bare metal server network interface identifier", + "name": "enable_infrastructure_nat", + "type": "TypeBool", + "description": "If true, the VPC infrastructure performs any needed NAT operations. If false, the packet is passed unmodified to/from the network interface, allowing the workload to perform any needed NAT operations.", + "optional": true, "computed": true }, { - "name": "interface_type", - "type": "TypeString", - "description": "The network interface type: [ pci, vlan, hipersocket ]", - "options": "pci, hipersocket, vlan", + "name": "security_groups", + "type": "TypeSet", + "description": "Collection of security groups ids", "optional": true, - "computed": true - } - ], - "ibm_is_bare_metal_server_network_interface_allow_float": [ - { - "name": "floating_ips", - "type": "TypeList", - "description": "The floating IPs associated with this network interface.", "computed": true, "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "The globally unique IP address", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The globally unique IP identifier", - "computed": true - } + "type": "TypeString" } }, { - "name": "href", - "type": "TypeString", - "description": "The URL for this network interface", - "computed": true - }, - { - "name": "port_speed", - "type": "TypeInt", - "description": "The network interface port speed in Mbps", - "computed": true - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type : [ subnet_reserved_ip ]", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The status of the network interface : [ available, deleting, failed, pending ]", + "name": "allow_interface_to_float", + "type": "TypeBool", + "description": "Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.", "computed": true }, { @@ -120380,20 +123561,16 @@ "computed": true }, { - "name": "network_interface", + "name": "interface_type", "type": "TypeString", - "description": "The bare metal server network interface identifier", + "description": "The network interface type: [ pci, vlan ]", "computed": true }, { - "name": "security_groups", - "type": "TypeSet", - "description": "Collection of security groups ids", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "mac_address", + "type": "TypeString", + "description": "The MAC address of the interface. If absent, the value is not known.", + "computed": true }, { "name": "primary_ip", @@ -120446,92 +123623,74 @@ "max_items": 1 }, { - "name": "type", - "type": "TypeString", - "description": "The type of this bare metal server network interface : [ primary, secondary ]", - "computed": true - }, - { - "name": "vlan", - "type": "TypeInt", - "description": "Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface", - "required": true - }, - { - "name": "bare_metal_server", + "name": "subnet", "type": "TypeString", - "description": "Bare metal server identifier", + "description": "The id of the associated subnet", "required": true }, { - "name": "mac_address", - "type": "TypeString", - "description": "The MAC address of the interface. If absent, the value is not known.", - "computed": true - }, - { - "name": "interface_type", - "type": "TypeString", - "description": "The network interface type: [ pci, vlan ]", - "computed": true - }, - { - "name": "name", + "name": "type", "type": "TypeString", - "description": "The user-defined name for this network interface", - "optional": true, + "description": "The type of this bare metal server network interface : [ primary, secondary ]", "computed": true }, { - "name": "subnet", + "name": "bare_metal_server", "type": "TypeString", - "description": "The id of the associated subnet", + "description": "Bare metal server identifier", "required": true }, { - "name": "allow_interface_to_float", - "type": "TypeBool", - "description": "Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.", - "computed": true - }, - { - "name": "allow_ip_spoofing", - "type": "TypeBool", - "description": "Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface.", - "optional": true, - "computed": true + "name": "floating_ips", + "type": "TypeList", + "description": "The floating IPs associated with this network interface.", + "computed": true, + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "The globally unique IP address", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The globally unique IP identifier", + "computed": true + } + } }, { - "name": "enable_infrastructure_nat", - "type": "TypeBool", - "description": "If true, the VPC infrastructure performs any needed NAT operations. If false, the packet is passed unmodified to/from the network interface, allowing the workload to perform any needed NAT operations.", - "optional": true, + "name": "port_speed", + "type": "TypeInt", + "description": "The network interface port speed in Mbps", "computed": true } ], "ibm_is_bare_metal_server_network_interface_floating_ip": [ { - "name": "network_interface", + "name": "bare_metal_server", "type": "TypeString", - "description": "Bare metal server network interface identifier", + "description": "Bare metal server identifier", "required": true }, { - "name": "name", + "name": "floating_ip", "type": "TypeString", - "description": "Name of the floating IP", - "computed": true + "description": "The floating ip identifier of the network interface associated with the bare metal server", + "required": true }, { - "name": "address", + "name": "status", "type": "TypeString", - "description": "Floating IP address", + "description": "Floating IP status", "computed": true }, { - "name": "zone", + "name": "crn", "type": "TypeString", - "description": "Zone name", + "description": "Floating IP crn", + "cloud_data_type": "crn", "computed": true }, { @@ -120541,66 +123700,87 @@ "computed": true }, { - "name": "bare_metal_server", + "name": "network_interface", "type": "TypeString", - "description": "Bare metal server identifier", + "description": "Bare metal server network interface identifier", "required": true }, { - "name": "floating_ip", + "name": "name", "type": "TypeString", - "description": "The floating ip identifier of the network interface associated with the bare metal server", - "required": true + "description": "Name of the floating IP", + "computed": true }, { - "name": "status", + "name": "address", "type": "TypeString", - "description": "Floating IP status", + "description": "Floating IP address", "computed": true }, { - "name": "crn", + "name": "zone", "type": "TypeString", - "description": "Floating IP crn", - "cloud_data_type": "crn", + "description": "Zone name", "computed": true } ], "ibm_is_dedicated_host": [ { - "name": "instance_placement_enabled", - "type": "TypeBool", - "description": "If set to true, instances can be placed on this dedicated host.", - "default_value": true, - "optional": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this dedicated host. If unspecified, the name will be a hyphenated list of randomly-selected words.", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", - "optional": true, - "computed": true - }, - { - "name": "crn", + "name": "href", "type": "TypeString", - "description": "The CRN for this dedicated host.", - "cloud_data_type": "crn", + "description": "The URL for this dedicated host.", "computed": true }, { - "name": "memory", - "type": "TypeInt", - "description": "The total amount of memory in gibibytes for this host.", - "computed": true + "name": "instances", + "type": "TypeList", + "description": "Array of instances that are allocated to this dedicated host.", + "computed": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this virtual server instance.", + "computed": true + }, + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this virtual server instance.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this virtual server instance.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this virtual server instance (and default system hostname).", + "computed": true + } + } }, { - "name": "provisionable", - "type": "TypeBool", - "description": "Indicates whether this dedicated host is available for instance creation.", + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the dedicated host resource.", "computed": true }, { @@ -120610,20 +123790,11 @@ "computed": true }, { - "name": "resource_group", - "type": "TypeString", - "description": "The unique identifier for the resource group to use. If unspecified, the account's [default resourcegroup](https://cloud.ibm.com/apidocs/resource-manager#introduction) is used.", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "host_group", - "type": "TypeString", - "description": "The unique identifier of the dedicated host group for this dedicated host.", - "immutable": true, - "required": true + "name": "instance_placement_enabled", + "type": "TypeBool", + "description": "If set to true, instances can be placed on this dedicated host.", + "default_value": true, + "optional": true }, { "name": "available_memory", @@ -120652,23 +123823,26 @@ } }, { - "name": "state", - "type": "TypeString", - "description": "The administrative state of the dedicated host.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the dedicated host on which the unexpected property value was encountered.", + "name": "memory", + "type": "TypeInt", + "description": "The total amount of memory in gibibytes for this host.", "computed": true }, { - "name": "zone", + "name": "state", "type": "TypeString", - "description": "The globally unique name of the zone this dedicated host resides in.", + "description": "The administrative state of the dedicated host.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the dedicated host on which the unexpected property value was encountered.", "computed": true }, { - "name": "profile", + "name": "name", "type": "TypeString", - "description": "The Globally unique name of the dedicated host profile to use for this dedicated host.", - "immutable": true, - "required": true + "description": "The unique user-defined name for this dedicated host. If unspecified, the name will be a hyphenated list of randomly-selected words.", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "optional": true, + "computed": true }, { "name": "created_at", @@ -120676,62 +123850,6 @@ "description": "The date and time that the dedicated host was created.", "computed": true }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced.", - "computed": true - }, - { - "name": "supported_instance_profiles", - "type": "TypeList", - "description": "Array of instance profiles that can be used by instances placed on this dedicated host.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this virtual server instance profile.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The globally unique name for this virtual server instance profile.", - "computed": true - } - } - }, - { - "name": "vcpu", - "type": "TypeList", - "description": "The total VCPU of the dedicated host.", - "computed": true, - "elem": { - "architecture": { - "name": "architecture", - "type": "TypeString", - "description": "The VCPU architecture.", - "computed": true - }, - "count": { - "name": "count", - "type": "TypeInt", - "description": "The number of VCPUs assigned.", - "computed": true - } - } - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "disks", "type": "TypeList", @@ -120856,62 +123974,136 @@ } }, { - "name": "href", - "type": "TypeString", - "description": "The URL for this dedicated host.", - "computed": true + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "instances", + "name": "numa", "type": "TypeList", - "description": "Array of instances that are allocated to this dedicated host.", + "description": "The dedicated host NUMA configuration", "computed": true, "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this virtual server instance.", + "count": { + "name": "count", + "type": "TypeInt", + "description": "The total number of NUMA nodes for this dedicated host", "computed": true }, - "deleted": { - "name": "deleted", + "nodes": { + "name": "nodes", "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "description": "The NUMA nodes for this dedicated host.", "computed": true, "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", + "available_vcpu": { + "name": "available_vcpu", + "type": "TypeInt", + "description": "The available VCPU for this NUMA node.", + "computed": true + }, + "vcpu": { + "name": "vcpu", + "type": "TypeInt", + "description": "The total VCPU capacity for this NUMA node.", "computed": true } } - }, - "href": { - "name": "href", + } + } + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The type of resource referenced.", + "computed": true + }, + { + "name": "vcpu", + "type": "TypeList", + "description": "The total VCPU of the dedicated host.", + "computed": true, + "elem": { + "architecture": { + "name": "architecture", "type": "TypeString", - "description": "The URL for this virtual server instance.", + "description": "The VCPU architecture.", "computed": true }, - "id": { - "name": "id", + "count": { + "name": "count", + "type": "TypeInt", + "description": "The number of VCPUs assigned.", + "computed": true + } + } + }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this dedicated host.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "provisionable", + "type": "TypeBool", + "description": "Indicates whether this dedicated host is available for instance creation.", + "computed": true + }, + { + "name": "supported_instance_profiles", + "type": "TypeList", + "description": "Array of instance profiles that can be used by instances placed on this dedicated host.", + "computed": true, + "elem": { + "href": { + "name": "href", "type": "TypeString", - "description": "The unique identifier for this virtual server instance.", + "description": "The URL for this virtual server instance profile.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The user-defined name for this virtual server instance (and default system hostname).", + "description": "The globally unique name for this virtual server instance profile.", "computed": true } } }, { - "name": "lifecycle_state", + "name": "zone", "type": "TypeString", - "description": "The lifecycle state of the dedicated host resource.", + "description": "The globally unique name of the zone this dedicated host resides in.", + "computed": true + }, + { + "name": "profile", + "type": "TypeString", + "description": "The Globally unique name of the dedicated host profile to use for this dedicated host.", + "immutable": true, + "required": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "The unique identifier for the resource group to use. If unspecified, the account's [default resourcegroup](https://cloud.ibm.com/apidocs/resource-manager#introduction) is used.", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, "computed": true + }, + { + "name": "host_group", + "type": "TypeString", + "description": "The unique identifier of the dedicated host group for this dedicated host.", + "immutable": true, + "required": true } ], "ibm_is_dedicated_host_disk_management": [ @@ -120944,6 +124136,26 @@ } ], "ibm_is_dedicated_host_group": [ + { + "name": "supported_instance_profiles", + "type": "TypeList", + "description": "Array of instance profiles that can be used by instances placed on this dedicated host group.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this virtual server instance profile.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The globally unique name for this virtual server instance profile.", + "computed": true + } + } + }, { "name": "name", "type": "TypeString", @@ -120963,26 +124175,12 @@ "optional": true, "computed": true }, - { - "name": "zone", - "type": "TypeString", - "description": "The globally unique name of the zone this dedicated host group will reside in.", - "immutable": true, - "required": true - }, { "name": "created_at", "type": "TypeString", "description": "The date and time that the dedicated host group was created.", "computed": true }, - { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this dedicated host group.", - "cloud_data_type": "crn", - "computed": true - }, { "name": "dedicated_hosts", "type": "TypeList", @@ -121041,32 +124239,6 @@ "description": "The URL for this dedicated host group.", "computed": true }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced.", - "computed": true - }, - { - "name": "supported_instance_profiles", - "type": "TypeList", - "description": "Array of instance profiles that can be used by instances placed on this dedicated host group.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this virtual server instance profile.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The globally unique name for this virtual server instance profile.", - "computed": true - } - } - }, { "name": "class", "type": "TypeString", @@ -121081,22 +124253,42 @@ "immutable": true, "required": true, "options": "balanced, compute, memory" + }, + { + "name": "zone", + "type": "TypeString", + "description": "The globally unique name of the zone this dedicated host group will reside in.", + "immutable": true, + "required": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this dedicated host group.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The type of resource referenced.", + "computed": true } ], "ibm_is_floating_ip": [ { - "name": "resource_group", + "name": "name", "type": "TypeString", - "description": "Resource group info", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true + "description": "Name of the floating IP", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, { - "name": "resource_crn", + "name": "resource_name", "type": "TypeString", - "description": "The crn of the resource", + "description": "The name of the resource", "computed": true }, { @@ -121106,13 +124298,27 @@ "computed": true }, { - "name": "zone", + "name": "target", "type": "TypeString", - "description": "Zone name", + "description": "Target info", + "optional": true, + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource group info", + "cloud_data_type": "resource_group", "immutable": true, "optional": true, "computed": true }, + { + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true + }, { "name": "target_list", "type": "TypeList", @@ -121203,31 +124409,6 @@ } } }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "address", - "type": "TypeString", - "description": "Floating IP address", - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "Floating IP tags", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "resource_controller_url", "type": "TypeString", @@ -121235,10 +124416,9 @@ "computed": true }, { - "name": "crn", + "name": "resource_crn", "type": "TypeString", "description": "The crn of the resource", - "cloud_data_type": "crn", "computed": true }, { @@ -121248,26 +124428,31 @@ "computed": true }, { - "name": "resource_group_name", + "name": "address", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "Floating IP address", "computed": true }, { - "name": "name", + "name": "zone", "type": "TypeString", - "description": "Name of the floating IP", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + "description": "Zone name", + "immutable": true, + "optional": true, + "computed": true }, { - "name": "target", - "type": "TypeString", - "description": "Target info", + "name": "tags", + "type": "TypeSet", + "description": "Floating IP tags", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "access_tags", @@ -121278,33 +124463,20 @@ "elem": { "type": "TypeString" } - } - ], - "ibm_is_flow_log": [ + }, { - "name": "resource_name", + "name": "crn", "type": "TypeString", - "description": "The name of the resource", + "description": "The crn of the resource", + "cloud_data_type": "crn", "computed": true - }, + } + ], + "ibm_is_flow_log": [ { - "name": "storage_bucket", + "name": "href", "type": "TypeString", - "description": "The Cloud Object Storage bucket name where the collected flows will be logged", - "immutable": true, - "required": true - }, - { - "name": "active", - "type": "TypeBool", - "description": "Indicates whether this collector is active", - "default_value": true, - "optional": true - }, - { - "name": "auto_delete", - "type": "TypeBool", - "description": "If set to true, this flow log collector will be automatically deleted when the target is deleted", + "description": "The URL for this flow log collector", "computed": true }, { @@ -121327,42 +124499,61 @@ "computed": true }, { - "name": "resource_group", + "name": "target", "type": "TypeString", - "description": "The resource group of flow log", - "cloud_data_type": "resource_group", + "description": "The target id that the flow log collector is to collect flow logs", "immutable": true, - "optional": true, - "computed": true + "required": true }, { - "name": "created_at", + "name": "vpc", "type": "TypeString", - "description": "The date and time flow log was created", + "description": "The VPC this flow log collector is associated with", "computed": true }, { - "name": "lifecycle_state", + "name": "storage_bucket", "type": "TypeString", - "description": "The lifecycle state of the flow log collector", - "computed": true + "description": "The Cloud Object Storage bucket name where the collected flows will be logged", + "immutable": true, + "required": true }, { - "name": "resource_controller_url", + "name": "resource_group", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "The resource group of flow log", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, "computed": true }, { - "name": "href", + "name": "crn", "type": "TypeString", - "description": "The URL for this flow log collector", + "description": "The CRN for this flow log collector", + "cloud_data_type": "crn", "computed": true }, { - "name": "vpc", + "name": "auto_delete", + "type": "TypeBool", + "description": "If set to true, this flow log collector will be automatically deleted when the target is deleted", + "computed": true + }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "resource_name", "type": "TypeString", - "description": "The VPC this flow log collector is associated with", + "description": "The name of the resource", "computed": true }, { @@ -121387,42 +124578,22 @@ "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, { - "name": "target", - "type": "TypeString", - "description": "The target id that the flow log collector is to collect flow logs", - "immutable": true, - "required": true + "name": "active", + "type": "TypeBool", + "description": "Indicates whether this collector is active", + "default_value": true, + "optional": true }, { - "name": "crn", + "name": "created_at", "type": "TypeString", - "description": "The CRN for this flow log collector", - "cloud_data_type": "crn", + "description": "The date and time flow log was created", "computed": true }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - } - ], - "ibm_is_ike_policy": [ - { - "name": "ike_version", - "type": "TypeInt", - "description": "IKE version", - "options": "1, 2", - "optional": true - }, - { - "name": "href", + "name": "lifecycle_state", "type": "TypeString", - "description": "IKE href value", + "description": "The lifecycle state of the flow log collector", "computed": true }, { @@ -121430,13 +124601,9 @@ "type": "TypeString", "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true - }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, + } + ], + "ibm_is_ike_policy": [ { "name": "resource_group_name", "type": "TypeString", @@ -121444,39 +124611,18 @@ "computed": true }, { - "name": "authentication_algorithm", - "type": "TypeString", - "description": "Authentication algorithm type", - "required": true, - "options": "md5, sha1, sha256, sha512, sha384" - }, - { - "name": "resource_group", + "name": "name", "type": "TypeString", - "description": "IKE resource group ID", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "dh_group", - "type": "TypeInt", - "description": "IKE DH group", + "description": "IKE name", "required": true, - "options": "2, 5, 14, 19, 15, 16, 17, 18, 20, 21, 22, 23, 24, 31" - }, - { - "name": "key_lifetime", - "type": "TypeInt", - "description": "IKE Key lifetime", - "default_value": 28800, - "optional": true + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, { - "name": "negotiation_mode", + "name": "href", "type": "TypeString", - "description": "IKE negotiation mode", + "description": "IKE href value", "computed": true }, { @@ -121502,13 +124648,46 @@ } }, { - "name": "name", + "name": "resource_group", "type": "TypeString", - "description": "IKE name", + "description": "IKE resource group ID", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "key_lifetime", + "type": "TypeInt", + "description": "IKE Key lifetime", + "default_value": 28800, + "optional": true + }, + { + "name": "ike_version", + "type": "TypeInt", + "description": "IKE version", + "options": "1, 2", + "optional": true + }, + { + "name": "negotiation_mode", + "type": "TypeString", + "description": "IKE negotiation mode", + "computed": true + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true + }, + { + "name": "authentication_algorithm", + "type": "TypeString", + "description": "Authentication algorithm type", "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + "options": "md5, sha1, sha256, sha512, sha384" }, { "name": "encryption_algorithm", @@ -121516,22 +124695,90 @@ "description": "Encryption alogorithm type", "required": true, "options": "triple_des, aes128, aes192, aes256" + }, + { + "name": "dh_group", + "type": "TypeInt", + "description": "IKE DH group", + "required": true, + "options": "2, 5, 14, 19, 15, 16, 17, 18, 20, 21, 22, 23, 24, 31" + }, + { + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true } ], "ibm_is_image": [ { - "name": "created_at", + "name": "crn", "type": "TypeString", - "description": "The date and time that the image was created", + "description": "The crn of the resource", + "cloud_data_type": "crn", "computed": true }, { - "name": "deprecation_at", + "name": "checksum", "type": "TypeString", - "description": "The deprecation date and time (UTC) for this image. If absent, no deprecation date and time has been set.", + "description": "The SHA256 checksum of this image", + "computed": true + }, + { + "name": "deprecate", + "type": "TypeBool", + "description": "Set to deprecate. You can set an image to `deprecated` as a warning to transition away from soon-to-be obsolete images. Deprecated images can be used to provision resources.", + "optional": true + }, + { + "name": "operating_system", + "type": "TypeString", + "description": "Image Operating system", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The status of this image", + "computed": true + }, + { + "name": "source_volume", + "type": "TypeString", + "description": "Image volume id", + "immutable": true, + "optional": true + }, + { + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", + "computed": true + }, + { + "name": "resource_status", + "type": "TypeString", + "description": "The status of the resource", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "Image Href value", "optional": true, "computed": true }, + { + "name": "name", + "type": "TypeString", + "description": "Image name", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + }, { "name": "obsolescence_at", "type": "TypeString", @@ -121553,11 +124800,27 @@ } }, { - "name": "status", + "name": "resource_controller_url", "type": "TypeString", - "description": "The status of this image", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true + }, + { + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", "computed": true }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "encrypted_data_key", "type": "TypeString", @@ -121565,6 +124828,12 @@ "immutable": true, "optional": true }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the image was created", + "computed": true + }, { "name": "encryption_key", "type": "TypeString", @@ -121573,11 +124842,9 @@ "optional": true }, { - "name": "operating_system", - "type": "TypeString", - "description": "Image Operating system", - "immutable": true, - "optional": true, + "name": "size", + "type": "TypeInt", + "description": "The minimum size (in gigabytes) of a volume onto which this image may be provisioned", "computed": true }, { @@ -121596,35 +124863,9 @@ "computed": true }, { - "name": "resource_controller_url", + "name": "resource_name", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - }, - { - "name": "resource_crn", - "type": "TypeString", - "description": "The crn of the resource", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "Image Href value", - "optional": true, - "computed": true - }, - { - "name": "checksum", - "type": "TypeString", - "description": "The SHA256 checksum of this image", + "description": "The name of the resource", "computed": true }, { @@ -121634,27 +124875,16 @@ "optional": true }, { - "name": "encryption", + "name": "deprecation_at", "type": "TypeString", - "description": "The type of encryption used on the image", + "description": "The deprecation date and time (UTC) for this image. If absent, no deprecation date and time has been set.", + "optional": true, "computed": true }, { - "name": "resource_status", + "name": "encryption", "type": "TypeString", - "description": "The status of the resource", - "computed": true - }, - { - "name": "deprecate", - "type": "TypeBool", - "description": "Set to deprecate. You can set an image to `deprecated` as a warning to transition away from soon-to-be obsolete images. Deprecated images can be used to provision resources.", - "optional": true - }, - { - "name": "size", - "type": "TypeInt", - "description": "The minimum size (in gigabytes) of a volume onto which this image may be provisioned", + "description": "The type of encryption used on the image", "computed": true }, { @@ -121662,88 +124892,85 @@ "type": "TypeString", "description": "Whether the image is publicly visible or private to the account", "computed": true + } + ], + "ibm_is_image_deprecate": [ + { + "name": "name", + "type": "TypeString", + "description": "Image name", + "computed": true }, { - "name": "source_volume", + "name": "image", "type": "TypeString", - "description": "Image volume id", + "description": "Image identifier", "immutable": true, - "optional": true + "required": true }, { - "name": "resource_name", + "name": "created_at", "type": "TypeString", - "description": "The name of the resource", + "description": "The date and time that the image was created", "computed": true }, { - "name": "resource_group_name", + "name": "deprecation_at", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "The deprecation date and time (UTC) for this image. If absent, no deprecation date and time has been set.", "computed": true }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "size", + "type": "TypeInt", + "description": "The minimum size (in gigabytes) of a volume onto which this image may be provisioned", + "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "Image name", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" - } - ], - "ibm_is_image_deprecate": [ - { - "name": "encryption_key", + "name": "source_volume", "type": "TypeString", - "description": "The CRN of the Key Protect Root Key or Hyper Protect Crypto Service Root Key for this resource", + "description": "Image volume id", "computed": true }, { - "name": "encryption", + "name": "resource_group", "type": "TypeString", - "description": "The type of encryption used on the image", + "description": "The resource group for this image", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "visibility", + "name": "encrypted_data_key", "type": "TypeString", - "description": "Whether the image is publicly visible or private to the account", + "description": "A base64-encoded, encrypted representation of the key that was used to encrypt the data for this image", "computed": true }, { - "name": "crn", + "name": "obsolescence_at", "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", + "description": "The obsolescence date and time (UTC) for this image. If absent, no obsolescence date and time has been set.", "computed": true }, { - "name": "href", - "type": "TypeString", - "description": "Image Href value", - "computed": true + "name": "tags", + "type": "TypeSet", + "description": "Tags for the image", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "encrypted_data_key", + "name": "operating_system", "type": "TypeString", - "description": "A base64-encoded, encrypted representation of the key that was used to encrypt the data for this image", + "description": "Image Operating system", "computed": true }, { - "name": "created_at", + "name": "status", "type": "TypeString", - "description": "The date and time that the image was created", + "description": "The status of this image", "computed": true }, { @@ -121752,13 +124979,6 @@ "description": "Details for the stored image file", "computed": true }, - { - "name": "resource_group", - "type": "TypeString", - "description": "The resource group for this image", - "cloud_data_type": "resource_group", - "computed": true - }, { "name": "access_tags", "type": "TypeSet", @@ -121769,40 +124989,34 @@ } }, { - "name": "image", - "type": "TypeString", - "description": "Image identifier", - "immutable": true, - "required": true - }, - { - "name": "deprecation_at", + "name": "href", "type": "TypeString", - "description": "The deprecation date and time (UTC) for this image. If absent, no deprecation date and time has been set.", + "description": "Image Href value", "computed": true }, { - "name": "operating_system", + "name": "encryption_key", "type": "TypeString", - "description": "Image Operating system", + "description": "The CRN of the Key Protect Root Key or Hyper Protect Crypto Service Root Key for this resource", "computed": true }, { - "name": "status", + "name": "encryption", "type": "TypeString", - "description": "The status of this image", + "description": "The type of encryption used on the image", "computed": true }, { - "name": "size", - "type": "TypeInt", - "description": "The minimum size (in gigabytes) of a volume onto which this image may be provisioned", + "name": "visibility", + "type": "TypeString", + "description": "Whether the image is publicly visible or private to the account", "computed": true }, { - "name": "source_volume", + "name": "crn", "type": "TypeString", - "description": "Image volume id", + "description": "The crn of the resource", + "cloud_data_type": "crn", "computed": true }, { @@ -121810,65 +125024,9 @@ "type": "TypeString", "description": "The SHA256 checksum of this image", "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Image name", - "computed": true - }, - { - "name": "obsolescence_at", - "type": "TypeString", - "description": "The obsolescence date and time (UTC) for this image. If absent, no obsolescence date and time has been set.", - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "Tags for the image", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } } ], "ibm_is_image_export_job": [ - { - "name": "image", - "type": "TypeString", - "description": "The image identifier.", - "immutable": true, - "required": true - }, - { - "name": "storage_bucket", - "type": "TypeList", - "description": "The name of the Cloud Object Storage bucket to export the image to.", - "immutable": true, - "required": true, - "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "CRN of this Cloud Object Storage bucket", - "immutable": true, - "optional": true, - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of this Cloud Object Storage bucket", - "immutable": true, - "optional": true, - "computed": true - } - }, - "max_items": 1, - "min_items": 1 - }, { "name": "format", "type": "TypeString", @@ -121879,39 +125037,13 @@ "optional": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the image export job was created.", - "computed": true - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced.", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The status of this image export job:- `deleting`: Export job is being deleted- `failed`: Export job could not be completed successfully- `queued`: Export job is queued- `running`: Export job is in progress- `succeeded`: Export job was completed successfullyThe exported image object is automatically deleted for `failed` jobs.", - "computed": true - }, - { - "name": "encrypted_data_key", - "type": "TypeString", - "description": "A base64-encoded, encrypted representation of the key that was used to encrypt the data for the exported image. This key can be unwrapped with the image's `encryption_key` root key using either Key Protect or Hyper Protect Crypto Service.If absent, the export job is for an unencrypted image.", - "computed": true - }, - { - "name": "image_export_job", - "type": "TypeString", - "description": "The unique identifier for this image export job.", - "computed": true - }, - { - "name": "started_at", + "name": "name", "type": "TypeString", - "description": "The date and time that the image export job started running.If absent, the export job has not yet started.", + "description": "The user-defined name for this image export job. Names must be unique within the image this export job resides in. If unspecified, the name will be a hyphenated list of randomly-selected words prefixed with the first 16 characters of the parent image name.The exported image object name in Cloud Object Storage (`storage_object.name` in the response) will be based on this name. The object name will be unique within the bucket.", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$", + "optional": true, "computed": true }, { @@ -121955,20 +125087,11 @@ } }, { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this image export job. Names must be unique within the image this export job resides in. If unspecified, the name will be a hyphenated list of randomly-selected words prefixed with the first 16 characters of the parent image name.The exported image object name in Cloud Object Storage (`storage_object.name` in the response) will be based on this name. The object name will be unique within the bucket.", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$", - "optional": true, - "computed": true - }, - { - "name": "completed_at", + "name": "image", "type": "TypeString", - "description": "The date and time that the image export job was completed.If absent, the export job has not yet completed.", - "computed": true + "description": "The image identifier.", + "immutable": true, + "required": true }, { "name": "href", @@ -121977,101 +125100,82 @@ "computed": true }, { - "name": "storage_href", - "type": "TypeString", - "description": "The Cloud Object Storage location of the exported image object. The object at this location may not exist until the job is started, and will be incomplete while the job is running.After the job completes, the exported image object is not managed by the IBM VPC service, and may be removed or replaced with a different object by any user or service with IAM authorization to the bucket.", - "computed": true - } - ], - "ibm_is_image_obsolete": [ - { - "name": "visibility", - "type": "TypeString", - "description": "Whether the image is publicly visible or private to the account", - "computed": true - }, - { - "name": "name", + "name": "completed_at", "type": "TypeString", - "description": "Image name", + "description": "The date and time that the image export job was completed.If absent, the export job has not yet completed.", "computed": true }, - { - "name": "image", - "type": "TypeString", - "description": "Image identifier", - "immutable": true, - "required": true - }, { "name": "created_at", "type": "TypeString", - "description": "The date and time that the image was created", - "computed": true - }, - { - "name": "deprecation_at", - "type": "TypeString", - "description": "The deprecation date and time (UTC) for this image. If absent, no deprecation date and time has been set.", + "description": "The date and time that the image export job was created.", "computed": true }, { - "name": "encryption", + "name": "encrypted_data_key", "type": "TypeString", - "description": "The type of encryption used on the image", + "description": "A base64-encoded, encrypted representation of the key that was used to encrypt the data for the exported image. This key can be unwrapped with the image's `encryption_key` root key using either Key Protect or Hyper Protect Crypto Service.If absent, the export job is for an unencrypted image.", "computed": true }, { - "name": "encryption_key", + "name": "status", "type": "TypeString", - "description": "The CRN of the Key Protect Root Key or Hyper Protect Crypto Service Root Key for this resource", + "description": "The status of this image export job:- `deleting`: Export job is being deleted- `failed`: Export job could not be completed successfully- `queued`: Export job is queued- `running`: Export job is in progress- `succeeded`: Export job was completed successfullyThe exported image object is automatically deleted for `failed` jobs.", "computed": true }, { - "name": "tags", - "type": "TypeSet", - "description": "Tags for the image", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "computed": true, + "name": "storage_bucket", + "type": "TypeList", + "description": "The name of the Cloud Object Storage bucket to export the image to.", + "immutable": true, + "required": true, "elem": { - "type": "TypeString" - } + "crn": { + "name": "crn", + "type": "TypeString", + "description": "CRN of this Cloud Object Storage bucket", + "immutable": true, + "optional": true, + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of this Cloud Object Storage bucket", + "immutable": true, + "optional": true, + "computed": true + } + }, + "max_items": 1, + "min_items": 1 }, { - "name": "obsolescence_at", + "name": "resource_type", "type": "TypeString", - "description": "The obsolescence date and time (UTC) for this image. If absent, no obsolescence date and time has been set.", + "description": "The type of resource referenced.", "computed": true }, { - "name": "size", - "type": "TypeInt", - "description": "The minimum size (in gigabytes) of a volume onto which this image may be provisioned", + "name": "started_at", + "type": "TypeString", + "description": "The date and time that the image export job started running.If absent, the export job has not yet started.", "computed": true }, { - "name": "resource_group", + "name": "storage_href", "type": "TypeString", - "description": "The resource group for this image", - "cloud_data_type": "resource_group", + "description": "The Cloud Object Storage location of the exported image object. The object at this location may not exist until the job is started, and will be incomplete while the job is running.After the job completes, the exported image object is not managed by the IBM VPC service, and may be removed or replaced with a different object by any user or service with IAM authorization to the bucket.", "computed": true }, { - "name": "crn", + "name": "image_export_job", "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", + "description": "The unique identifier for this image export job.", "computed": true - }, + } + ], + "ibm_is_image_obsolete": [ { "name": "checksum", "type": "TypeString", @@ -122079,21 +125183,21 @@ "computed": true }, { - "name": "source_volume", - "type": "TypeString", - "description": "Image volume id", + "name": "size", + "type": "TypeInt", + "description": "The minimum size (in gigabytes) of a volume onto which this image may be provisioned", "computed": true }, { - "name": "href", + "name": "visibility", "type": "TypeString", - "description": "Image Href value", + "description": "Whether the image is publicly visible or private to the account", "computed": true }, { - "name": "encrypted_data_key", + "name": "encryption_key", "type": "TypeString", - "description": "A base64-encoded, encrypted representation of the key that was used to encrypt the data for this image", + "description": "The CRN of the Key Protect Root Key or Hyper Protect Crypto Service Root Key for this resource", "computed": true }, { @@ -122103,283 +125207,119 @@ "computed": true }, { - "name": "status", + "name": "crn", "type": "TypeString", - "description": "The status of this image", + "description": "The crn of the resource", + "cloud_data_type": "crn", "computed": true }, { - "name": "file", - "type": "TypeInt", - "description": "Details for the stored image file", - "computed": true - } - ], - "ibm_is_instance": [ - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "zone", + "name": "name", "type": "TypeString", - "description": "Zone name", - "immutable": true, - "optional": true, + "description": "Image name", "computed": true }, { - "name": "action", - "type": "TypeString", - "description": "Enables stopping of instance before deleting and waits till deletion is complete", - "options": "stop, start, reboot", - "optional": true - }, - { - "name": "force_action", - "type": "TypeBool", - "description": "If set to true, the action will be forced immediately, and all queued actions deleted. Ignored for the start action.", - "default_value": false, - "optional": true - }, - { - "name": "user_data", + "name": "created_at", "type": "TypeString", - "description": "User data given for the instance", - "immutable": true, - "optional": true + "description": "The date and time that the image was created", + "computed": true }, { - "name": "memory", + "name": "file", "type": "TypeInt", - "description": "Instance memory", + "description": "Details for the stored image file", "computed": true }, { - "name": "resource_status", + "name": "href", "type": "TypeString", - "description": "The status of the resource", + "description": "Image Href value", "computed": true }, { - "name": "catalog_offering", - "type": "TypeList", - "description": "The catalog offering or offering version to use when provisioning this virtual server instance. If an offering is specified, the latest version of that offering will be used. The specified offering or offering version may be in a different account in the same enterprise, subject to IAM policies.", - "immutable": true, - "optional": true, - "elem": { - "offering_crn": { - "name": "offering_crn", - "type": "TypeString", - "description": "Identifies a catalog offering by a unique CRN property", - "immutable": true, - "optional": true - }, - "version_crn": { - "name": "version_crn", - "type": "TypeString", - "description": "Identifies a version of a catalog offering by a unique CRN property", - "immutable": true, - "optional": true - } - }, - "max_items": 1 - }, - { - "name": "gpu", - "type": "TypeList", - "description": "The virtual server instance GPU configuration", - "computed": true, - "elem": { - "count": { - "name": "count", - "type": "TypeInt", - "description": "The number of GPUs assigned to the instance", - "computed": true - }, - "manufacturer": { - "name": "manufacturer", - "type": "TypeString", - "description": "The GPU manufacturer", - "computed": true - }, - "memory": { - "name": "memory", - "type": "TypeInt", - "description": "The overall amount of GPU memory in GiB (gibibytes)", - "computed": true - }, - "model": { - "name": "model", - "type": "TypeString", - "description": "The GPU model", - "computed": true - } - } - }, - { - "name": "availability_policy_host_failure", + "name": "encryption", "type": "TypeString", - "description": "The availability policy to use for this virtual server instance", - "options": "restart, stop", - "optional": true, + "description": "The type of encryption used on the image", "computed": true }, { - "name": "vpc", + "name": "deprecation_at", "type": "TypeString", - "description": "VPC id", - "immutable": true, - "optional": true, + "description": "The deprecation date and time (UTC) for this image. If absent, no deprecation date and time has been set.", "computed": true }, { - "name": "instance_template", - "type": "TypeString", - "description": "Id of the instance template", - "immutable": true, - "optional": true - }, - { - "name": "dedicated_host_group", + "name": "obsolescence_at", "type": "TypeString", - "description": "Unique Identifier of the Dedicated Host Group where the instance will be placed", - "optional": true + "description": "The obsolescence date and time (UTC) for this image. If absent, no obsolescence date and time has been set.", + "computed": true }, { - "name": "keys", + "name": "tags", "type": "TypeSet", - "description": "SSH key Ids for the instance", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "volume_attachments", - "type": "TypeList", + "description": "Tags for the image", + "cloud_data_type": "tags", "computed": true, "elem": { - "id": { - "name": "id", - "type": "TypeString", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "computed": true - }, - "volume_crn": { - "name": "volume_crn", - "type": "TypeString", - "computed": true - }, - "volume_id": { - "name": "volume_id", - "type": "TypeString", - "computed": true - }, - "volume_name": { - "name": "volume_name", - "type": "TypeString", - "computed": true - } + "type": "TypeString" } }, { "name": "status", "type": "TypeString", - "description": "instance status", + "description": "The status of this image", "computed": true }, { - "name": "resource_controller_url", + "name": "source_volume", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "Image volume id", "computed": true }, { - "name": "profile", + "name": "resource_group", "type": "TypeString", - "description": "Profile info", - "optional": true, - "computed": true - }, - { - "name": "default_trusted_profile_auto_link", - "type": "TypeBool", - "description": "If set to `true`, the system will create a link to the specified `target` trusted profile during instance creation. Regardless of whether a link is created by the system or manually using the IAM Identity service, it will be automatically deleted when the instance is deleted.", - "immutable": true, - "optional": true, + "description": "The resource group for this image", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "default_trusted_profile_target", + "name": "image", "type": "TypeString", - "description": "The unique identifier or CRN of the default IAM trusted profile to use for this virtual server instance.", + "description": "Image identifier", "immutable": true, - "optional": true + "required": true }, { - "name": "placement_group", + "name": "encrypted_data_key", "type": "TypeString", - "description": "Unique Identifier of the Placement Group for restricting the placement of the instance", - "immutable": true, - "optional": true - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "list of access tags for the instance", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, + "description": "A base64-encoded, encrypted representation of the key that was used to encrypt the data for this image", + "computed": true + } + ], + "ibm_is_instance": [ { - "name": "force_recovery_time", - "type": "TypeInt", - "description": "Define timeout to force the instances to start/stop in minutes.", + "name": "dedicated_host_group", + "type": "TypeString", + "description": "Unique Identifier of the Dedicated Host Group where the instance will be placed", "optional": true }, { - "name": "name", + "name": "status", "type": "TypeString", - "description": "Instance name", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" - }, - { - "name": "bandwidth", - "type": "TypeInt", - "description": "The total bandwidth (in megabits per second) shared across the instance's network interfaces and storage volumes", - "computed": true - }, - { - "name": "total_network_bandwidth", - "type": "TypeInt", - "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance network interfaces.", + "description": "instance status", "computed": true }, - { - "name": "tags", - "type": "TypeSet", - "description": "list of tags for the instance", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "metadata_service", "type": "TypeList", @@ -122413,41 +125353,36 @@ "min_items": 1 }, { - "name": "resource_name", + "name": "resource_controller_url", "type": "TypeString", - "description": "The name of the resource", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { - "name": "crn", + "name": "resource_name", "type": "TypeString", - "description": "Crn for this Instance", - "cloud_data_type": "crn", + "description": "The name of the resource", "computed": true }, { - "name": "total_volume_bandwidth", + "name": "force_recovery_time", "type": "TypeInt", - "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes", - "min_value": "500", - "optional": true, - "computed": true + "description": "Define timeout to force the instances to start/stop in minutes.", + "optional": true }, { - "name": "metadata_service_enabled", + "name": "force_action", "type": "TypeBool", - "description": "Indicates whether the metadata service endpoint is available to the virtual server instance", - "optional": true, - "computed": true, - "deprecated": "Use metadata_service instead" + "description": "If set to true, the action will be forced immediately, and all queued actions deleted. Ignored for the start action.", + "default_value": false, + "optional": true }, { - "name": "image", + "name": "user_data", "type": "TypeString", - "description": "image id", + "description": "User data given for the instance", "immutable": true, - "optional": true, - "computed": true + "optional": true }, { "name": "volumes", @@ -122459,80 +125394,15 @@ } }, { - "name": "resource_group", - "type": "TypeString", - "description": "Instance resource group", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "status_reasons", - "type": "TypeList", - "description": "The reasons for the current status (if any).", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the status reason", - "computed": true - }, - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about this status reason", - "computed": true - } - } - }, - { - "name": "dedicated_host", - "type": "TypeString", - "description": "Unique Identifier of the Dedicated Host where the instance will be placed", - "optional": true - }, - { - "name": "wait_before_delete", + "name": "auto_delete_volume", "type": "TypeBool", - "description": "Enables stopping of instance before deleting and waits till deletion is complete", - "default_value": true, + "description": "Auto delete volume along with instance", "optional": true }, { - "name": "vcpu", - "type": "TypeList", - "computed": true, - "elem": { - "architecture": { - "name": "architecture", - "type": "TypeString", - "computed": true - }, - "count": { - "name": "count", - "type": "TypeInt", - "computed": true - }, - "manufacturer": { - "name": "manufacturer", - "type": "TypeString", - "description": "The VCPU manufacturer", - "computed": true - } - } - }, - { - "name": "resource_crn", + "name": "resource_status", "type": "TypeString", - "description": "The crn of the resource", + "description": "The status of the resource", "computed": true }, { @@ -122588,53 +125458,19 @@ } }, { - "name": "disks", - "type": "TypeList", - "description": "Collection of the instance's disks.", - "computed": true, + "name": "placement_group", + "type": "TypeString", + "description": "Unique Identifier of the Placement Group for restricting the placement of the instance", + "immutable": true, + "optional": true + }, + { + "name": "keys", + "type": "TypeSet", + "description": "SSH key Ids for the instance", + "optional": true, "elem": { - "created_at": { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the disk was created.", - "computed": true - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this instance disk.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this instance disk.", - "computed": true - }, - "interface_type": { - "name": "interface_type", - "type": "TypeString", - "description": "The disk interface used for attaching the disk.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this disk.", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", - "computed": true - }, - "size": { - "name": "size", - "type": "TypeInt", - "description": "The size of the disk in GB (gigabytes).", - "computed": true - } + "type": "TypeString" } }, { @@ -122749,180 +125585,85 @@ "min_items": 1 }, { - "name": "network_interfaces", + "name": "lifecycle_reasons", "type": "TypeList", - "optional": true, + "description": "The reasons for the current lifecycle_state (if any).", "computed": true, "elem": { - "allow_ip_spoofing": { - "name": "allow_ip_spoofing", - "type": "TypeBool", - "description": "Indicates whether IP spoofing is allowed on this interface.", - "default_value": false, - "optional": true - }, - "id": { - "name": "id", + "code": { + "name": "code", "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this lifecycle state.", "computed": true }, - "name": { - "name": "name", + "message": { + "name": "message", "type": "TypeString", - "optional": true, + "description": "An explanation of the reason for this lifecycle state.", "computed": true }, - "primary_ip": { - "name": "primary_ip", - "type": "TypeList", - "description": "The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.", - "optional": true, - "computed": true, - "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "The IP address to reserve, which must not already be reserved on the subnet.", - "immutable": true, - "optional": true, - "computed": true - }, - "auto_delete": { - "name": "auto_delete", - "type": "TypeBool", - "description": "Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.", - "optional": true, - "computed": true - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this reserved IP", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this reserved IP. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the subnet the reserved IP resides in.", - "optional": true, - "computed": true - }, - "reserved_ip": { - "name": "reserved_ip", - "type": "TypeString", - "description": "Identifies a reserved IP by a unique property.", - "optional": true, - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type", - "computed": true - } - }, - "max_items": 1 - }, - "primary_ipv4_address": { - "name": "primary_ipv4_address", - "type": "TypeString", - "immutable": true, - "optional": true, - "computed": true, - "deprecated": "primary_ipv4_address is deprecated and support will be removed. Use primary_ip instead" - }, - "security_groups": { - "name": "security_groups", - "type": "TypeSet", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "subnet": { - "name": "subnet", + "more_info": { + "name": "more_info", "type": "TypeString", - "immutable": true, - "required": true + "description": "Link to documentation about the reason for this lifecycle state.", + "computed": true } } }, { - "name": "boot_volume", - "type": "TypeList", + "name": "crn", + "type": "TypeString", + "description": "Crn for this Instance", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "profile", + "type": "TypeString", + "description": "Profile info", + "optional": true, + "computed": true + }, + { + "name": "dedicated_host", + "type": "TypeString", + "description": "Unique Identifier of the Dedicated Host where the instance will be placed", + "optional": true + }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "list of access tags for the instance", "optional": true, "computed": true, "elem": { - "auto_delete_volume": { - "name": "auto_delete_volume", - "type": "TypeBool", - "description": "Auto delete boot volume along with instance", - "default_value": true, - "optional": true - }, - "encryption": { - "name": "encryption", - "type": "TypeString", - "optional": true, - "computed": true - }, - "iops": { - "name": "iops", - "type": "TypeInt", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "optional": true, - "computed": true - }, - "profile": { - "name": "profile", - "type": "TypeString", - "computed": true - }, - "size": { - "name": "size", - "type": "TypeInt", - "optional": true, - "computed": true - }, - "snapshot": { - "name": "snapshot", + "type": "TypeString" + } + }, + { + "name": "catalog_offering", + "type": "TypeList", + "description": "The catalog offering or offering version to use when provisioning this virtual server instance. If an offering is specified, the latest version of that offering will be used. The specified offering or offering version may be in a different account in the same enterprise, subject to IAM policies.", + "immutable": true, + "optional": true, + "elem": { + "offering_crn": { + "name": "offering_crn", "type": "TypeString", + "description": "Identifies a catalog offering by a unique CRN property", "immutable": true, - "optional": true, - "computed": true - }, - "tags": { - "name": "tags", - "type": "TypeSet", - "description": "UserTags for the volume instance", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "optional": true }, - "volume_id": { - "name": "volume_id", + "version_crn": { + "name": "version_crn", "type": "TypeString", - "description": "The unique identifier for this volume", + "description": "Identifies a version of a catalog offering by a unique CRN property", "immutable": true, - "optional": true, - "computed": true + "optional": true } }, "max_items": 1 }, - { - "name": "auto_delete_volume", - "type": "TypeBool", - "description": "Auto delete volume along with instance", - "optional": true - }, { "name": "lifecycle_state", "type": "TypeString", @@ -122930,27 +125671,484 @@ "computed": true }, { - "name": "lifecycle_reasons", + "name": "volume_attachments", "type": "TypeList", - "description": "The reasons for the current lifecycle_state (if any).", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "computed": true + }, + "volume_crn": { + "name": "volume_crn", + "type": "TypeString", + "computed": true + }, + "volume_id": { + "name": "volume_id", + "type": "TypeString", + "computed": true + }, + "volume_name": { + "name": "volume_name", + "type": "TypeString", + "computed": true + } + } + }, + { + "name": "gpu", + "type": "TypeList", + "description": "The virtual server instance GPU configuration", + "computed": true, + "elem": { + "count": { + "name": "count", + "type": "TypeInt", + "description": "The number of GPUs assigned to the instance", + "computed": true + }, + "manufacturer": { + "name": "manufacturer", + "type": "TypeString", + "description": "The GPU manufacturer", + "computed": true + }, + "memory": { + "name": "memory", + "type": "TypeInt", + "description": "The overall amount of GPU memory in GiB (gibibytes)", + "computed": true + }, + "model": { + "name": "model", + "type": "TypeString", + "description": "The GPU model", + "computed": true + } + } + }, + { + "name": "availability_policy_host_failure", + "type": "TypeString", + "description": "The availability policy to use for this virtual server instance", + "options": "restart, stop", + "optional": true, + "computed": true + }, + { + "name": "zone", + "type": "TypeString", + "description": "Zone name", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "default_trusted_profile_auto_link", + "type": "TypeBool", + "description": "If set to `true`, the system will create a link to the specified `target` trusted profile during instance creation. Regardless of whether a link is created by the system or manually using the IAM Identity service, it will be automatically deleted when the instance is deleted.", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "total_volume_bandwidth", + "type": "TypeInt", + "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes", + "min_value": "500", + "optional": true, + "computed": true + }, + { + "name": "bandwidth", + "type": "TypeInt", + "description": "The total bandwidth (in megabits per second) shared across the instance's network interfaces and storage volumes", + "computed": true + }, + { + "name": "action", + "type": "TypeString", + "description": "Enables stopping of instance before deleting and waits till deletion is complete", + "options": "stop, start, reboot", + "optional": true + }, + { + "name": "image", + "type": "TypeString", + "description": "image id", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "vcpu", + "type": "TypeList", + "computed": true, + "elem": { + "architecture": { + "name": "architecture", + "type": "TypeString", + "computed": true + }, + "count": { + "name": "count", + "type": "TypeInt", + "computed": true + }, + "manufacturer": { + "name": "manufacturer", + "type": "TypeString", + "description": "The VCPU manufacturer", + "computed": true + } + } + }, + { + "name": "memory", + "type": "TypeInt", + "description": "Instance memory", + "computed": true + }, + { + "name": "status_reasons", + "type": "TypeList", + "description": "The reasons for the current status (if any).", "computed": true, "elem": { "code": { "name": "code", "type": "TypeString", - "description": "A snake case string succinctly identifying the reason for this lifecycle state.", + "description": "A snake case string succinctly identifying the status reason", "computed": true }, "message": { "name": "message", "type": "TypeString", - "description": "An explanation of the reason for this lifecycle state.", + "description": "An explanation of the status reason", "computed": true }, "more_info": { "name": "more_info", "type": "TypeString", - "description": "Link to documentation about the reason for this lifecycle state.", + "description": "Link to documentation about this status reason", + "computed": true + } + } + }, + { + "name": "metadata_service_enabled", + "type": "TypeBool", + "description": "Indicates whether the metadata service endpoint is available to the virtual server instance", + "optional": true, + "computed": true, + "deprecated": "Use metadata_service instead" + }, + { + "name": "vpc", + "type": "TypeString", + "description": "VPC id", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "instance_template", + "type": "TypeString", + "description": "Id of the instance template", + "immutable": true, + "optional": true + }, + { + "name": "default_trusted_profile_target", + "type": "TypeString", + "description": "The unique identifier or CRN of the default IAM trusted profile to use for this virtual server instance.", + "immutable": true, + "optional": true + }, + { + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Instance resource group", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "numa_count", + "type": "TypeInt", + "description": "The number of NUMA nodes this virtual server instance is provisioned on. This property may be absent if the instance's `status` is not `running`.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Instance name", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + }, + { + "name": "total_network_bandwidth", + "type": "TypeInt", + "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance network interfaces.", + "computed": true + }, + { + "name": "tags", + "type": "TypeSet", + "description": "list of tags for the instance", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "wait_before_delete", + "type": "TypeBool", + "description": "Enables stopping of instance before deleting and waits till deletion is complete", + "default_value": true, + "optional": true + }, + { + "name": "network_interfaces", + "type": "TypeList", + "optional": true, + "computed": true, + "elem": { + "allow_ip_spoofing": { + "name": "allow_ip_spoofing", + "type": "TypeBool", + "description": "Indicates whether IP spoofing is allowed on this interface.", + "default_value": false, + "optional": true + }, + "id": { + "name": "id", + "type": "TypeString", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "optional": true, + "computed": true + }, + "primary_ip": { + "name": "primary_ip", + "type": "TypeList", + "description": "The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.", + "optional": true, + "computed": true, + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "The IP address to reserve, which must not already be reserved on the subnet.", + "immutable": true, + "optional": true, + "computed": true + }, + "auto_delete": { + "name": "auto_delete", + "type": "TypeBool", + "description": "Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.", + "optional": true, + "computed": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this reserved IP", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this reserved IP. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the subnet the reserved IP resides in.", + "optional": true, + "computed": true + }, + "reserved_ip": { + "name": "reserved_ip", + "type": "TypeString", + "description": "Identifies a reserved IP by a unique property.", + "optional": true, + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type", + "computed": true + } + }, + "max_items": 1 + }, + "primary_ipv4_address": { + "name": "primary_ipv4_address", + "type": "TypeString", + "immutable": true, + "optional": true, + "computed": true, + "deprecated": "primary_ipv4_address is deprecated and support will be removed. Use primary_ip instead" + }, + "security_groups": { + "name": "security_groups", + "type": "TypeSet", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "subnet": { + "name": "subnet", + "type": "TypeString", + "immutable": true, + "required": true + } + } + }, + { + "name": "boot_volume", + "type": "TypeList", + "optional": true, + "computed": true, + "elem": { + "auto_delete_volume": { + "name": "auto_delete_volume", + "type": "TypeBool", + "description": "Auto delete boot volume along with instance", + "default_value": true, + "optional": true + }, + "encryption": { + "name": "encryption", + "type": "TypeString", + "optional": true, + "computed": true + }, + "iops": { + "name": "iops", + "type": "TypeInt", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "optional": true, + "computed": true + }, + "profile": { + "name": "profile", + "type": "TypeString", + "computed": true + }, + "size": { + "name": "size", + "type": "TypeInt", + "optional": true, + "computed": true + }, + "snapshot": { + "name": "snapshot", + "type": "TypeString", + "immutable": true, + "optional": true, + "computed": true + }, + "tags": { + "name": "tags", + "type": "TypeSet", + "description": "UserTags for the volume instance", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "volume_id": { + "name": "volume_id", + "type": "TypeString", + "description": "The unique identifier for this volume", + "immutable": true, + "optional": true, + "computed": true + } + }, + "max_items": 1 + }, + { + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true + }, + { + "name": "disks", + "type": "TypeList", + "description": "Collection of the instance's disks.", + "computed": true, + "elem": { + "created_at": { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the disk was created.", + "computed": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this instance disk.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this instance disk.", + "computed": true + }, + "interface_type": { + "name": "interface_type", + "type": "TypeString", + "description": "The disk interface used for attaching the disk.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this disk.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + }, + "size": { + "name": "size", + "type": "TypeInt", + "description": "The size of the disk in GB (gigabytes).", "computed": true } } @@ -123040,14 +126238,6 @@ } ], "ibm_is_instance_group": [ - { - "name": "application_port", - "type": "TypeInt", - "description": "Used by the instance group when scaling up instances to supply the port for the load balancer pool member.", - "min_value": "1", - "max_value": "65535", - "optional": true - }, { "name": "instance_template", "type": "TypeString", @@ -123055,12 +126245,21 @@ "required": true }, { - "name": "crn", + "name": "resource_group", "type": "TypeString", - "description": "The CRN of this instance group", - "cloud_data_type": "crn", + "description": "Resource group ID", + "cloud_data_type": "resource_group", + "optional": true, "computed": true }, + { + "name": "application_port", + "type": "TypeInt", + "description": "Used by the instance group when scaling up instances to supply the port for the load balancer pool member.", + "min_value": "1", + "max_value": "65535", + "optional": true + }, { "name": "subnets", "type": "TypeList", @@ -123071,19 +126270,10 @@ } }, { - "name": "vpc", - "type": "TypeString", - "description": "vpc instance", - "computed": true - }, - { - "name": "name", + "name": "load_balancer", "type": "TypeString", - "description": "The user-defined name for this instance group", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + "description": "load balancer ID", + "optional": true }, { "name": "managers", @@ -123101,18 +126291,26 @@ "computed": true }, { - "name": "resource_group", + "name": "instance_count", + "type": "TypeInt", + "description": "The number of instances in the instance group", + "default_value": 0, + "min_value": "0", + "max_value": "1000", + "optional": true + }, + { + "name": "crn", "type": "TypeString", - "description": "Resource group ID", - "cloud_data_type": "resource_group", - "optional": true, + "description": "The CRN of this instance group", + "cloud_data_type": "crn", "computed": true }, { - "name": "load_balancer_pool", + "name": "status", "type": "TypeString", - "description": "load balancer pool ID", - "optional": true + "description": "Instance group status - deleting, healthy, scaling, unhealthy", + "computed": true }, { "name": "tags", @@ -123128,54 +126326,45 @@ } }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "instance_count", - "type": "TypeInt", - "description": "The number of instances in the instance group", - "default_value": 0, - "min_value": "0", - "max_value": "1000", - "optional": true + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this instance group", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, { - "name": "load_balancer", + "name": "load_balancer_pool", "type": "TypeString", - "description": "load balancer ID", + "description": "load balancer pool ID", "optional": true }, { - "name": "status", + "name": "vpc", "type": "TypeString", - "description": "Instance group status - deleting, healthy, scaling, unhealthy", + "description": "vpc instance", "computed": true + }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } } ], "ibm_is_instance_group_manager": [ { - "name": "name", + "name": "manager_type", "type": "TypeString", - "description": "instance group manager name", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$", - "optional": true - }, - { - "name": "aggregation_window", - "type": "TypeInt", - "description": "The time window in seconds to aggregate metrics prior to evaluation", - "default_value": 90, - "min_value": "90", - "max_value": "600", + "description": "The type of instance group manager.", + "default_value": "autoscale", + "immutable": true, + "options": "autoscale, scheduled", "optional": true }, { @@ -123187,14 +126376,6 @@ "max_value": "3600", "optional": true }, - { - "name": "max_membership_count", - "type": "TypeInt", - "description": "The maximum number of members in a managed instance group", - "min_value": "1", - "max_value": "1000", - "optional": true - }, { "name": "min_membership_count", "type": "TypeInt", @@ -123210,6 +126391,24 @@ "description": "instance group manager ID", "computed": true }, + { + "name": "policies", + "type": "TypeList", + "description": "list of Policies associated with instancegroup manager", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "name", + "type": "TypeString", + "description": "instance group manager name", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$", + "optional": true + }, { "name": "enable_manager", "type": "TypeBool", @@ -123224,22 +126423,21 @@ "required": true }, { - "name": "manager_type", - "type": "TypeString", - "description": "The type of instance group manager.", - "default_value": "autoscale", - "immutable": true, - "options": "autoscale, scheduled", + "name": "aggregation_window", + "type": "TypeInt", + "description": "The time window in seconds to aggregate metrics prior to evaluation", + "default_value": 90, + "min_value": "90", + "max_value": "600", "optional": true }, { - "name": "policies", - "type": "TypeList", - "description": "list of Policies associated with instancegroup manager", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "max_membership_count", + "type": "TypeInt", + "description": "The maximum number of members in a managed instance group", + "min_value": "1", + "max_value": "1000", + "optional": true }, { "name": "actions", @@ -123266,10 +126464,13 @@ ], "ibm_is_instance_group_manager_action": [ { - "name": "updated_at", + "name": "name", "type": "TypeString", - "description": "The date and time that the instance group manager action was modified.", - "computed": true + "description": "instance group manager action name", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$", + "optional": true }, { "name": "action_type", @@ -123277,12 +126478,6 @@ "description": "The type of action for the instance group.", "computed": true }, - { - "name": "last_applied_at", - "type": "TypeString", - "description": "The date and time the scheduled action was last applied. If empty the action has never been applied.", - "computed": true - }, { "name": "next_run_at", "type": "TypeString", @@ -123295,12 +126490,34 @@ "description": "Instance group manager action ID", "computed": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The date and time that the instance group manager action was modified.", + "computed": true + }, + { + "name": "auto_delete", + "type": "TypeBool", + "computed": true + }, + { + "name": "auto_delete_timeout", + "type": "TypeInt", + "computed": true + }, { "name": "instance_group", "type": "TypeString", "description": "instance group ID", "required": true }, + { + "name": "instance_group_manager", + "type": "TypeString", + "description": "Instance group manager ID of type scheduled", + "required": true + }, { "name": "cron_spec", "type": "TypeString", @@ -123318,29 +126535,12 @@ "max_value": "1000", "optional": true }, - { - "name": "auto_delete_timeout", - "type": "TypeInt", - "computed": true - }, - { - "name": "run_at", - "type": "TypeString", - "description": "The date and time the scheduled action will run.", - "optional": true - }, { "name": "target_manager", "type": "TypeString", "description": "The unique identifier for this instance group manager of type autoscale.", "optional": true }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", - "computed": true - }, { "name": "status", "type": "TypeString", @@ -123348,19 +126548,16 @@ "computed": true }, { - "name": "name", + "name": "last_applied_at", "type": "TypeString", - "description": "instance group manager action name", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$", - "optional": true + "description": "The date and time the scheduled action was last applied. If empty the action has never been applied.", + "computed": true }, { - "name": "instance_group_manager", + "name": "run_at", "type": "TypeString", - "description": "Instance group manager ID of type scheduled", - "required": true + "description": "The date and time the scheduled action will run.", + "optional": true }, { "name": "membership_count", @@ -123370,12 +126567,6 @@ "max_value": "100", "optional": true }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the instance group manager action was modified.", - "computed": true - }, { "name": "min_membership_count", "type": "TypeInt", @@ -123392,8 +126583,15 @@ "computed": true }, { - "name": "auto_delete", - "type": "TypeBool", + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the instance group manager action was modified.", "computed": true } ], @@ -123457,6 +126655,15 @@ "max_length": 64, "matches": "^[-0-9a-z_]+$" }, + { + "name": "instance_group_membership", + "type": "TypeString", + "description": "The unique identifier for this instance group membership.", + "required": true, + "min_length": 1, + "max_length": 64, + "matches": "^[-0-9a-z_]+$" + }, { "name": "name", "type": "TypeString", @@ -123466,12 +126673,6 @@ "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", "optional": true }, - { - "name": "delete_instance_on_membership_delete", - "type": "TypeBool", - "description": "If set to true, when deleting the membership the instance will also be deleted.", - "computed": true - }, { "name": "instance_template", "type": "TypeList", @@ -123498,13 +126699,10 @@ } }, { - "name": "instance_group_membership", + "name": "status", "type": "TypeString", - "description": "The unique identifier for this instance group membership.", - "required": true, - "min_length": 1, - "max_length": 64, - "matches": "^[-0-9a-z_]+$" + "description": "The status of the instance group membership- `deleting`: Membership is deleting dependent resources- `failed`: Membership was unable to maintain dependent resources- `healthy`: Membership is active and serving in the group- `pending`: Membership is waiting for dependent resources- `unhealthy`: Membership has unhealthy dependent resources.", + "computed": true }, { "name": "action_delete", @@ -123513,6 +126711,12 @@ "default_value": false, "optional": true }, + { + "name": "delete_instance_on_membership_delete", + "type": "TypeBool", + "description": "If set to true, when deleting the membership the instance will also be deleted.", + "computed": true + }, { "name": "instance", "type": "TypeList", @@ -123543,32 +126747,9 @@ "type": "TypeString", "description": "The unique identifier for this load balancer pool member.", "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The status of the instance group membership- `deleting`: Membership is deleting dependent resources- `failed`: Membership was unable to maintain dependent resources- `healthy`: Membership is active and serving in the group- `pending`: Membership is waiting for dependent resources- `unhealthy`: Membership has unhealthy dependent resources.", - "computed": true } ], "ibm_is_instance_network_interface": [ - { - "name": "subnet", - "type": "TypeString", - "description": "The unique identifier of the subnet.", - "immutable": true, - "required": true - }, - { - "name": "primary_ipv4_address", - "type": "TypeString", - "description": "The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.", - "immutable": true, - "matches": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$", - "optional": true, - "computed": true, - "deprecated": "primary_ipv4_address is deprecated and support will be removed. Use primary_ip instead" - }, { "name": "created_at", "type": "TypeString", @@ -123576,29 +126757,26 @@ "computed": true }, { - "name": "floating_ip", - "type": "TypeString", - "description": "The ID of the floating IP to attach to this network interface", - "optional": true - }, - { - "name": "status", + "name": "href", "type": "TypeString", - "description": "The status of the network interface.", + "description": "The URL for this network interface.", "computed": true }, { - "name": "port_speed", - "type": "TypeInt", - "description": "The network interface port speed in Mbps.", - "computed": true + "name": "subnet", + "type": "TypeString", + "description": "The unique identifier of the subnet.", + "immutable": true, + "required": true }, { - "name": "allow_ip_spoofing", - "type": "TypeBool", - "description": "Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface.", - "default_value": false, - "optional": true + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this network interface. If unspecified, the name will be a hyphenated list of randomly-selected words.", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, { "name": "primary_ip", @@ -123652,24 +126830,15 @@ "max_items": 1 }, { - "name": "security_groups", - "type": "TypeSet", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "type", + "name": "network_interface", "type": "TypeString", - "description": "The type of this network interface as it relates to an instance.", + "description": "The globally unique ID of this network interface", "computed": true }, { - "name": "resource_type", + "name": "status", "type": "TypeString", - "description": "The resource type.", + "description": "The status of the network interface.", "computed": true }, { @@ -123680,19 +126849,13 @@ "required": true }, { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this network interface. If unspecified, the name will be a hyphenated list of randomly-selected words.", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" - }, - { - "name": "network_interface", - "type": "TypeString", - "description": "The globally unique ID of this network interface", - "computed": true + "name": "security_groups", + "type": "TypeSet", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "floating_ips", @@ -123747,50 +126910,59 @@ } }, { - "name": "href", + "name": "type", "type": "TypeString", - "description": "The URL for this network interface.", + "description": "The type of this network interface as it relates to an instance.", "computed": true - } - ], - "ibm_is_instance_network_interface_floating_ip": [ + }, { - "name": "instance", + "name": "allow_ip_spoofing", + "type": "TypeBool", + "description": "Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface.", + "default_value": false, + "optional": true + }, + { + "name": "primary_ipv4_address", "type": "TypeString", - "description": "Instance identifier", + "description": "The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.", "immutable": true, - "required": true + "matches": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$", + "optional": true, + "computed": true, + "deprecated": "primary_ipv4_address is deprecated and support will be removed. Use primary_ip instead" }, { "name": "floating_ip", "type": "TypeString", - "description": "The floating ip identifier of the network interface associated with the Instance", - "required": true + "description": "The ID of the floating IP to attach to this network interface", + "optional": true }, { - "name": "zone", - "type": "TypeString", - "description": "Zone name", + "name": "port_speed", + "type": "TypeInt", + "description": "The network interface port speed in Mbps.", "computed": true }, { - "name": "target", + "name": "resource_type", "type": "TypeString", - "description": "Target info", + "description": "The resource type.", "computed": true - }, + } + ], + "ibm_is_instance_network_interface_floating_ip": [ { - "name": "crn", + "name": "instance", "type": "TypeString", - "description": "Floating IP crn", - "cloud_data_type": "crn", - "computed": true + "description": "Instance identifier", + "immutable": true, + "required": true }, { - "name": "network_interface", + "name": "floating_ip", "type": "TypeString", - "description": "Instance network interface identifier", - "immutable": true, + "description": "The floating ip identifier of the network interface associated with the Instance", "required": true }, { @@ -123810,113 +126982,74 @@ "type": "TypeString", "description": "Floating IP status", "computed": true - } - ], - "ibm_is_instance_template": [ - { - "name": "crn", - "type": "TypeString", - "description": "The CRN for the instance", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Instance Template name", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", - "optional": true }, { - "name": "zone", + "name": "target", "type": "TypeString", - "description": "Zone name", - "immutable": true, - "required": true - }, - { - "name": "default_trusted_profile_auto_link", - "type": "TypeBool", - "description": "If set to `true`, the system will create a link to the specified `target` trusted profile during instance creation. Regardless of whether a link is created by the system or manually using the IAM Identity service, it will be automatically deleted when the instance is deleted.", - "immutable": true, - "optional": true, + "description": "Target info", "computed": true }, { - "name": "default_trusted_profile_target", + "name": "crn", "type": "TypeString", - "description": "The unique identifier or CRN of the default IAM trusted profile to use for this virtual server instance.", - "immutable": true, - "optional": true + "description": "Floating IP crn", + "cloud_data_type": "crn", + "computed": true }, { - "name": "dedicated_host", + "name": "network_interface", "type": "TypeString", - "description": "Unique Identifier of the Dedicated Host where the instance will be placed", + "description": "Instance network interface identifier", "immutable": true, - "optional": true + "required": true }, { - "name": "dedicated_host_group", + "name": "zone", "type": "TypeString", - "description": "Unique Identifier of the Dedicated Host Group where the instance will be placed", - "immutable": true, - "optional": true - }, - { - "name": "total_volume_bandwidth", - "type": "TypeInt", - "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes", - "immutable": true, - "min_value": "500", - "optional": true - }, + "description": "Zone name", + "computed": true + } + ], + "ibm_is_instance_template": [ { - "name": "catalog_offering", + "name": "metadata_service", "type": "TypeList", - "description": "The catalog offering or offering version to use when provisioning this virtual server instance template. If an offering is specified, the latest version of that offering will be used. The specified offering or offering version may be in a different account in the same enterprise, subject to IAM policies.", - "immutable": true, + "description": "The metadata service configuration", "optional": true, + "computed": true, "elem": { - "offering_crn": { - "name": "offering_crn", - "type": "TypeString", - "description": "Identifies a catalog offering by a unique CRN property", + "enabled": { + "name": "enabled", + "type": "TypeBool", + "description": "Indicates whether the metadata service endpoint will be available to the virtual server instance", "immutable": true, - "optional": true + "optional": true, + "computed": true }, - "version_crn": { - "name": "version_crn", + "protocol": { + "name": "protocol", "type": "TypeString", - "description": "Identifies a version of a catalog offering by a unique CRN property", + "description": "The communication protocol to use for the metadata service endpoint. Applies only when the metadata service is enabled.", "immutable": true, - "optional": true + "optional": true, + "computed": true + }, + "response_hop_limit": { + "name": "response_hop_limit", + "type": "TypeInt", + "description": "The hop limit (IP time to live) for IP response packets from the metadata service", + "immutable": true, + "optional": true, + "computed": true } }, - "max_items": 1 - }, - { - "name": "image", - "type": "TypeString", - "description": "image name", - "immutable": true, - "optional": true - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "Instance template resource group", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true + "max_items": 1, + "min_items": 1 }, { - "name": "vpc", + "name": "zone", "type": "TypeString", - "description": "VPC id", + "description": "Zone name", "immutable": true, "required": true }, @@ -123930,12 +127063,251 @@ } }, { - "name": "primary_network_interface", + "name": "boot_volume", "type": "TypeList", - "description": "Primary Network interface info", - "required": true, + "optional": true, + "computed": true, "elem": { - "allow_ip_spoofing": { + "delete_volume_on_instance_delete": { + "name": "delete_volume_on_instance_delete", + "type": "TypeBool", + "optional": true, + "computed": true + }, + "encryption": { + "name": "encryption", + "type": "TypeString", + "optional": true, + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "optional": true, + "computed": true + }, + "profile": { + "name": "profile", + "type": "TypeString", + "computed": true + }, + "size": { + "name": "size", + "type": "TypeInt", + "computed": true + }, + "tags": { + "name": "tags", + "type": "TypeSet", + "description": "UserTags for the volume instance", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + } + }, + "max_items": 1 + }, + { + "name": "dedicated_host", + "type": "TypeString", + "description": "Unique Identifier of the Dedicated Host where the instance will be placed", + "immutable": true, + "optional": true + }, + { + "name": "dedicated_host_group", + "type": "TypeString", + "description": "Unique Identifier of the Dedicated Host Group where the instance will be placed", + "immutable": true, + "optional": true + }, + { + "name": "volume_attachments", + "type": "TypeList", + "immutable": true, + "optional": true, + "elem": { + "delete_volume_on_instance_delete": { + "name": "delete_volume_on_instance_delete", + "type": "TypeBool", + "description": "If set to true, when deleting the instance the volume will also be deleted.", + "required": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this volume attachment.", + "required": true + }, + "volume": { + "name": "volume", + "type": "TypeString", + "description": "The unique identifier for this volume.", + "immutable": true, + "optional": true + }, + "volume_prototype": { + "name": "volume_prototype", + "type": "TypeList", + "immutable": true, + "optional": true, + "elem": { + "capacity": { + "name": "capacity", + "type": "TypeInt", + "description": "The capacity of the volume in gigabytes. The specified minimum and maximum capacity values for creating or updating volumes may expand in the future.", + "immutable": true, + "required": true + }, + "encryption_key": { + "name": "encryption_key", + "type": "TypeString", + "description": "The CRN of the [Key Protect Root Key](https://cloud.ibm.com/docs/key-protect?topic=key-protect-getting-started-tutorial) or [Hyper Protect Crypto Service Root Key](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started) for this resource.", + "immutable": true, + "optional": true + }, + "iops": { + "name": "iops", + "type": "TypeInt", + "description": "The maximum I/O operations per second (IOPS) for the volume.", + "immutable": true, + "optional": true + }, + "profile": { + "name": "profile", + "type": "TypeString", + "description": "The globally unique name for the volume profile to use for this volume.", + "immutable": true, + "required": true + }, + "tags": { + "name": "tags", + "type": "TypeSet", + "description": "UserTags for the volume instance", + "immutable": true, + "optional": true, + "elem": { + "type": "TypeString" + } + } + }, + "max_items": 1, + "min_items": 1 + } + } + }, + { + "name": "availability_policy_host_failure", + "type": "TypeString", + "description": "The availability policy to use for this virtual server instance", + "immutable": true, + "options": "restart, stop", + "optional": true, + "computed": true + }, + { + "name": "vpc", + "type": "TypeString", + "description": "VPC id", + "immutable": true, + "required": true + }, + { + "name": "profile", + "type": "TypeString", + "description": "Profile info", + "immutable": true, + "required": true + }, + { + "name": "default_trusted_profile_target", + "type": "TypeString", + "description": "The unique identifier or CRN of the default IAM trusted profile to use for this virtual server instance.", + "immutable": true, + "optional": true + }, + { + "name": "total_volume_bandwidth", + "type": "TypeInt", + "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes", + "immutable": true, + "min_value": "500", + "optional": true + }, + { + "name": "catalog_offering", + "type": "TypeList", + "description": "The catalog offering or offering version to use when provisioning this virtual server instance template. If an offering is specified, the latest version of that offering will be used. The specified offering or offering version may be in a different account in the same enterprise, subject to IAM policies.", + "immutable": true, + "optional": true, + "elem": { + "offering_crn": { + "name": "offering_crn", + "type": "TypeString", + "description": "Identifies a catalog offering by a unique CRN property", + "immutable": true, + "optional": true + }, + "version_crn": { + "name": "version_crn", + "type": "TypeString", + "description": "Identifies a version of a catalog offering by a unique CRN property", + "immutable": true, + "optional": true + } + }, + "max_items": 1 + }, + { + "name": "user_data", + "type": "TypeString", + "description": "User data given for the instance", + "immutable": true, + "optional": true + }, + { + "name": "placement_target", + "type": "TypeList", + "description": "The placement restrictions for the virtual server instance.", + "computed": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this placement target.", + "computed": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this placement target.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this placement target.", + "computed": true + } + } + }, + { + "name": "default_trusted_profile_auto_link", + "type": "TypeBool", + "description": "If set to `true`, the system will create a link to the specified `target` trusted profile during instance creation. Regardless of whether a link is created by the system or manually using the IAM Identity service, it will be automatically deleted when the instance is deleted.", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "primary_network_interface", + "type": "TypeList", + "description": "Primary Network interface info", + "required": true, + "elem": { + "allow_ip_spoofing": { "name": "allow_ip_spoofing", "type": "TypeBool", "default_value": false, @@ -124099,93 +127471,20 @@ } }, { - "name": "user_data", + "name": "image", "type": "TypeString", - "description": "User data given for the instance", + "description": "image name", "immutable": true, "optional": true }, { - "name": "boot_volume", - "type": "TypeList", - "optional": true, - "computed": true, - "elem": { - "delete_volume_on_instance_delete": { - "name": "delete_volume_on_instance_delete", - "type": "TypeBool", - "optional": true, - "computed": true - }, - "encryption": { - "name": "encryption", - "type": "TypeString", - "optional": true, - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "optional": true, - "computed": true - }, - "profile": { - "name": "profile", - "type": "TypeString", - "computed": true - }, - "size": { - "name": "size", - "type": "TypeInt", - "computed": true - }, - "tags": { - "name": "tags", - "type": "TypeSet", - "description": "UserTags for the volume instance", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - } - }, - "max_items": 1 - }, - { - "name": "placement_target", - "type": "TypeList", - "description": "The placement restrictions for the virtual server instance.", - "computed": true, - "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this placement target.", - "computed": true - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this placement target.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this placement target.", - "computed": true - } - } - }, - { - "name": "availability_policy_host_failure", + "name": "name", "type": "TypeString", - "description": "The availability policy to use for this virtual server instance", - "immutable": true, - "options": "restart, stop", - "optional": true, - "computed": true + "description": "Instance Template name", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "optional": true }, { "name": "metadata_service_enabled", @@ -124196,48 +127495,6 @@ "computed": true, "deprecated": "Use metadata_service instead" }, - { - "name": "metadata_service", - "type": "TypeList", - "description": "The metadata service configuration", - "optional": true, - "computed": true, - "elem": { - "enabled": { - "name": "enabled", - "type": "TypeBool", - "description": "Indicates whether the metadata service endpoint will be available to the virtual server instance", - "immutable": true, - "optional": true, - "computed": true - }, - "protocol": { - "name": "protocol", - "type": "TypeString", - "description": "The communication protocol to use for the metadata service endpoint. Applies only when the metadata service is enabled.", - "immutable": true, - "optional": true, - "computed": true - }, - "response_hop_limit": { - "name": "response_hop_limit", - "type": "TypeInt", - "description": "The hop limit (IP time to live) for IP response packets from the metadata service", - "immutable": true, - "optional": true, - "computed": true - } - }, - "max_items": 1, - "min_items": 1 - }, - { - "name": "profile", - "type": "TypeString", - "description": "Profile info", - "immutable": true, - "required": true - }, { "name": "placement_group", "type": "TypeString", @@ -124246,92 +127503,27 @@ "optional": true }, { - "name": "volume_attachments", - "type": "TypeList", + "name": "crn", + "type": "TypeString", + "description": "The CRN for the instance", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Instance template resource group", + "cloud_data_type": "resource_group", "immutable": true, "optional": true, - "elem": { - "delete_volume_on_instance_delete": { - "name": "delete_volume_on_instance_delete", - "type": "TypeBool", - "description": "If set to true, when deleting the instance the volume will also be deleted.", - "required": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this volume attachment.", - "required": true - }, - "volume": { - "name": "volume", - "type": "TypeString", - "description": "The unique identifier for this volume.", - "immutable": true, - "optional": true - }, - "volume_prototype": { - "name": "volume_prototype", - "type": "TypeList", - "immutable": true, - "optional": true, - "elem": { - "capacity": { - "name": "capacity", - "type": "TypeInt", - "description": "The capacity of the volume in gigabytes. The specified minimum and maximum capacity values for creating or updating volumes may expand in the future.", - "immutable": true, - "required": true - }, - "encryption_key": { - "name": "encryption_key", - "type": "TypeString", - "description": "The CRN of the [Key Protect Root Key](https://cloud.ibm.com/docs/key-protect?topic=key-protect-getting-started-tutorial) or [Hyper Protect Crypto Service Root Key](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started) for this resource.", - "immutable": true, - "optional": true - }, - "iops": { - "name": "iops", - "type": "TypeInt", - "description": "The maximum I/O operations per second (IOPS) for the volume.", - "immutable": true, - "optional": true - }, - "profile": { - "name": "profile", - "type": "TypeString", - "description": "The globally unique name for the volume profile to use for this volume.", - "immutable": true, - "required": true - }, - "tags": { - "name": "tags", - "type": "TypeSet", - "description": "UserTags for the volume instance", - "immutable": true, - "optional": true, - "elem": { - "type": "TypeString" - } - } - }, - "max_items": 1, - "min_items": 1 - } - } + "computed": true } ], "ibm_is_instance_volume_attachment": [ { - "name": "device", - "type": "TypeString", - "description": "A unique identifier for the device which is exposed to the instance operating system", - "computed": true - }, - { - "name": "href", + "name": "volume_attachment_id", "type": "TypeString", - "description": "The URL for this volume attachment", + "description": "The unique identifier for this volume attachment", "computed": true }, { @@ -124348,6 +127540,25 @@ "default_value": true, "optional": true }, + { + "name": "volume_href", + "type": "TypeString", + "description": "The URL for this volume", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this volume attachment", + "computed": true + }, + { + "name": "iops", + "type": "TypeInt", + "description": "The maximum I/O operations per second (IOPS) for the volume.", + "optional": true, + "computed": true + }, { "name": "volume_name", "type": "TypeString", @@ -124359,28 +127570,23 @@ "computed": true }, { - "name": "profile", + "name": "snapshot", "type": "TypeString", - "description": "The globally unique name for the volume profile to use for this volume.", - "options": "general-purpose, 5iops-tier, 10iops-tier, custom", + "description": "The snapshot of the volume to be attached", + "immutable": true, "optional": true, "computed": true }, { - "name": "volume_crn", - "type": "TypeString", - "description": "The CRN for this volume", - "computed": true - }, - { - "name": "volume_href", + "name": "volume_deleted", "type": "TypeString", - "description": "The URL for this volume", + "description": "Link to documentation about deleted resources", "computed": true }, { - "name": "version", + "name": "type", "type": "TypeString", + "description": "The type of volume attachment one of [ boot, data ]", "computed": true }, { @@ -124391,31 +127597,37 @@ "required": true }, { - "name": "volume", + "name": "name", "type": "TypeString", - "description": "Instance id", - "immutable": true, + "description": "The user-defined name for this volume attachment.", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", "optional": true, "computed": true }, { - "name": "snapshot", + "name": "volume", "type": "TypeString", - "description": "The snapshot of the volume to be attached", + "description": "Instance id", "immutable": true, "optional": true, "computed": true }, { - "name": "status", + "name": "profile", "type": "TypeString", - "description": "The status of this volume attachment, one of [ attached, attaching, deleting, detaching ]", + "description": "The globally unique name for the volume profile to use for this volume.", + "options": "general-purpose, 5iops-tier, 10iops-tier, custom", + "optional": true, "computed": true }, { - "name": "type", + "name": "encryption_key", "type": "TypeString", - "description": "The type of volume attachment one of [ boot, data ]", + "description": "The CRN of the [Key Protect Root Key](https://cloud.ibm.com/docs/key-protect?topic=key-protect-getting-started-tutorial) or [Hyper Protect Crypto Service Root Key](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started) for this resource.", + "immutable": true, + "optional": true, "computed": true }, { @@ -124432,59 +127644,39 @@ } }, { - "name": "encryption_key", - "type": "TypeString", - "description": "The CRN of the [Key Protect Root Key](https://cloud.ibm.com/docs/key-protect?topic=key-protect-getting-started-tutorial) or [Hyper Protect Crypto Service Root Key](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started) for this resource.", - "immutable": true, + "name": "capacity", + "type": "TypeInt", + "description": "The capacity of the volume in gigabytes. The specified minimum and maximum capacity values for creating or updating volumes may expand in the future.", + "min_value": "10", + "max_value": "16000", "optional": true, "computed": true }, { - "name": "volume_attachment_id", + "name": "volume_crn", "type": "TypeString", - "description": "The unique identifier for this volume attachment", + "description": "The CRN for this volume", "computed": true }, { - "name": "name", + "name": "device", "type": "TypeString", - "description": "The user-defined name for this volume attachment.", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", - "optional": true, - "computed": true - }, - { - "name": "iops", - "type": "TypeInt", - "description": "The maximum I/O operations per second (IOPS) for the volume.", - "optional": true, + "description": "A unique identifier for the device which is exposed to the instance operating system", "computed": true }, { - "name": "capacity", - "type": "TypeInt", - "description": "The capacity of the volume in gigabytes. The specified minimum and maximum capacity values for creating or updating volumes may expand in the future.", - "min_value": "10", - "max_value": "16000", - "optional": true, + "name": "status", + "type": "TypeString", + "description": "The status of this volume attachment, one of [ attached, attaching, deleting, detaching ]", "computed": true }, { - "name": "volume_deleted", + "name": "version", "type": "TypeString", - "description": "Link to documentation about deleted resources", "computed": true } ], "ibm_is_ipsec_policy": [ - { - "name": "resource_crn", - "type": "TypeString", - "description": "The crn of the resource", - "computed": true - }, { "name": "name", "type": "TypeString", @@ -124494,20 +127686,6 @@ "max_length": 63, "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, - { - "name": "encryption_algorithm", - "type": "TypeString", - "description": "Encryption algorithm", - "required": true, - "options": "triple_des, aes128, aes256, aes128gcm16, aes192gcm16, aes256gcm16" - }, - { - "name": "pfs", - "type": "TypeString", - "description": "PFS info", - "required": true, - "options": "disabled, group_2, group_5, group_14, group_19, group_15, group_16, group_17, group_18, group_20, group_21, group_22, group_23, group_24, group_31" - }, { "name": "resource_group", "type": "TypeString", @@ -124517,31 +127695,6 @@ "optional": true, "computed": true }, - { - "name": "transform_protocol", - "type": "TypeString", - "description": "IPSEC transform protocol", - "computed": true - }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, - { - "name": "authentication_algorithm", - "type": "TypeString", - "description": "Authentication alorothm", - "required": true, - "options": "md5, sha1, sha256, sha512, sha384, disabled" - }, { "name": "key_lifetime", "type": "TypeInt", @@ -124549,12 +127702,6 @@ "default_value": 3600, "optional": true }, - { - "name": "encapsulation_mode", - "type": "TypeString", - "description": "IPSEC encapsulation mode", - "computed": true - }, { "name": "vpn_connections", "type": "TypeList", @@ -124578,36 +127725,48 @@ } }, { - "name": "resource_controller_url", + "name": "resource_name", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "The name of the resource", "computed": true - } - ], - "ibm_is_lb": [ + }, { - "name": "private_ips", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", + "computed": true }, { - "name": "subnets", - "type": "TypeSet", - "description": "Load Balancer subnets list", + "name": "authentication_algorithm", + "type": "TypeString", + "description": "Authentication alorothm", "required": true, - "elem": { - "type": "TypeString" - }, - "max_items": 15, - "min_items": 1 + "options": "md5, sha1, sha256, sha512, sha384, disabled" }, { - "name": "udp_supported", - "type": "TypeBool", - "description": "Indicates whether this load balancer supports UDP.", + "name": "encryption_algorithm", + "type": "TypeString", + "description": "Encryption algorithm", + "required": true, + "options": "triple_des, aes128, aes256, aes128gcm16, aes192gcm16, aes256gcm16" + }, + { + "name": "pfs", + "type": "TypeString", + "description": "PFS info", + "required": true, + "options": "disabled, group_2, group_5, group_14, group_19, group_15, group_16, group_17, group_18, group_20, group_21, group_22, group_23, group_24, group_31" + }, + { + "name": "encapsulation_mode", + "type": "TypeString", + "description": "IPSEC encapsulation mode", + "computed": true + }, + { + "name": "transform_protocol", + "type": "TypeString", + "description": "IPSEC transform protocol", "computed": true }, { @@ -124617,33 +127776,31 @@ "computed": true }, { - "name": "dns", - "type": "TypeList", - "description": "The DNS configuration for this load balancer.", + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true + } + ], + "ibm_is_lb": [ + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", "optional": true, + "computed": true, "elem": { - "instance_crn": { - "name": "instance_crn", - "type": "TypeString", - "description": "The CRN for this DNS instance", - "required": true - }, - "zone_id": { - "name": "zone_id", - "type": "TypeString", - "description": "The unique identifier of the DNS zone.", - "required": true - } - }, - "max_items": 1, - "min_items": 1 + "type": "TypeString" + } }, { - "name": "crn", + "name": "name", "type": "TypeString", - "description": "The CRN for this Load Balancer", - "cloud_data_type": "crn", - "computed": true + "description": "Load Balancer name", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, { "name": "public_ips", @@ -124653,6 +127810,14 @@ "type": "TypeString" } }, + { + "name": "private_ips", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "private_ip", "type": "TypeList", @@ -124692,52 +127857,87 @@ } }, { - "name": "route_mode", + "name": "security_groups", + "type": "TypeSet", + "description": "Load Balancer securitygroups list", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "udp_supported", "type": "TypeBool", - "description": "Indicates whether route mode is enabled for this load balancer", - "default_value": false, - "immutable": true, - "optional": true + "description": "Indicates whether this load balancer supports UDP.", + "computed": true }, { - "name": "hostname", + "name": "status", "type": "TypeString", "computed": true }, { - "name": "logging", + "name": "operating_status", + "type": "TypeString", + "computed": true + }, + { + "name": "security_group_supported", "type": "TypeBool", - "description": "Logging of Load Balancer", - "default_value": false, - "optional": true + "description": "Security Group Supported for this Load Balancer", + "computed": true }, { - "name": "name", + "name": "profile", "type": "TypeString", - "description": "Load Balancer name", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + "description": "The profile to use for this load balancer.", + "immutable": true, + "options": "network-fixed", + "optional": true, + "computed": true }, { - "name": "type", - "type": "TypeString", - "description": "Load Balancer type", - "default_value": "public", + "name": "route_mode", + "type": "TypeBool", + "description": "Indicates whether route mode is enabled for this load balancer", + "default_value": false, "immutable": true, - "options": "public, private", "optional": true }, { - "name": "operating_status", + "name": "version", "type": "TypeString", "computed": true }, { - "name": "security_groups", + "name": "dns", + "type": "TypeList", + "description": "The DNS configuration for this load balancer.", + "optional": true, + "elem": { + "instance_crn": { + "name": "instance_crn", + "type": "TypeString", + "description": "The CRN for this DNS instance", + "required": true + }, + "zone_id": { + "name": "zone_id", + "type": "TypeString", + "description": "The unique identifier of the DNS zone.", + "required": true + } + }, + "max_items": 1, + "min_items": 1 + }, + { + "name": "tags", "type": "TypeSet", - "description": "Load Balancer securitygroups list", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", "optional": true, "computed": true, "elem": { @@ -124745,22 +127945,9 @@ } }, { - "name": "resource_group", - "type": "TypeString", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, - { - "name": "version", + "name": "resource_controller_url", "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { @@ -124770,65 +127957,68 @@ "computed": true }, { - "name": "status", + "name": "resource_group_name", "type": "TypeString", + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "security_group_supported", + "name": "logging", "type": "TypeBool", - "description": "Security Group Supported for this Load Balancer", - "computed": true + "description": "Logging of Load Balancer", + "default_value": false, + "optional": true }, { - "name": "profile", + "name": "type", "type": "TypeString", - "description": "The profile to use for this load balancer.", + "description": "Load Balancer type", + "default_value": "public", "immutable": true, - "options": "network-fixed", - "optional": true, - "computed": true + "options": "public, private", + "optional": true }, { - "name": "tags", - "type": "TypeSet", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "crn", + "type": "TypeString", + "description": "The CRN for this Load Balancer", + "cloud_data_type": "crn", + "computed": true }, { - "name": "access_tags", + "name": "subnets", "type": "TypeSet", - "description": "List of access management tags", - "optional": true, - "computed": true, + "description": "Load Balancer subnets list", + "required": true, "elem": { "type": "TypeString" - } - } - ], - "ibm_is_lb_listener": [ - { - "name": "certificate_instance", - "type": "TypeString", - "description": "certificate instance for the Loadbalancer", - "optional": true + }, + "max_items": 15, + "min_items": 1 }, { - "name": "https_redirect_uri", + "name": "resource_group", "type": "TypeString", - "description": "Target URI where traffic will be redirected", - "optional": true + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true }, { - "name": "listener_id", + "name": "hostname", "type": "TypeString", "computed": true + } + ], + "ibm_is_lb_listener": [ + { + "name": "idle_connection_timeout", + "type": "TypeInt", + "description": "idle connection timeout of listener", + "min_value": "50", + "max_value": "7200", + "optional": true, + "computed": true }, { "name": "port_min", @@ -124852,15 +128042,21 @@ "options": "https, http, tcp, udp" }, { - "name": "https_redirect_status_code", - "type": "TypeInt", - "description": "The HTTP status code to be returned in the redirect response", - "optional": true + "name": "listener_id", + "type": "TypeString", + "computed": true }, { - "name": "https_redirect_listener", + "name": "lb", "type": "TypeString", - "description": "ID of the listener that will be set as http redirect target", + "description": "Loadbalancer listener ID", + "immutable": true, + "required": true + }, + { + "name": "connection_limit", + "type": "TypeInt", + "description": "Connection limit for Loadbalancer", "optional": true }, { @@ -124870,20 +128066,10 @@ "computed": true }, { - "name": "idle_connection_timeout", - "type": "TypeInt", - "description": "idle connection timeout of listener", - "min_value": "50", - "max_value": "7200", - "optional": true, - "computed": true - }, - { - "name": "port", - "type": "TypeInt", - "description": "Loadbalancer listener port", - "optional": true, - "computed": true + "name": "certificate_instance", + "type": "TypeString", + "description": "certificate instance for the Loadbalancer", + "optional": true }, { "name": "accept_proxy_protocol", @@ -124893,10 +128079,10 @@ "computed": true }, { - "name": "status", + "name": "https_redirect_listener", "type": "TypeString", - "description": "Loadbalancer listener status", - "computed": true + "description": "ID of the listener that will be set as http redirect target", + "optional": true }, { "name": "default_pool", @@ -124906,38 +128092,43 @@ "computed": true }, { - "name": "lb", + "name": "status", "type": "TypeString", - "description": "Loadbalancer listener ID", - "immutable": true, - "required": true + "description": "Loadbalancer listener status", + "computed": true }, { - "name": "connection_limit", + "name": "port", "type": "TypeInt", - "description": "Connection limit for Loadbalancer", + "description": "Loadbalancer listener port", + "optional": true, + "computed": true + }, + { + "name": "https_redirect_status_code", + "type": "TypeInt", + "description": "The HTTP status code to be returned in the redirect response", + "optional": true + }, + { + "name": "https_redirect_uri", + "type": "TypeString", + "description": "Target URI where traffic will be redirected", "optional": true } ], "ibm_is_lb_listener_policy": [ { - "name": "listener", - "type": "TypeString", - "description": "Listener ID", - "immutable": true, - "required": true - }, - { - "name": "target_https_redirect_listener", + "name": "target_https_redirect_uri", "type": "TypeString", - "description": "ID of the listener that will be set as http redirect target", + "description": "Target URI where traffic will be redirected", "optional": true }, { - "name": "related_crn", - "type": "TypeString", - "description": "The crn of the LB resource", - "computed": true + "name": "priority", + "type": "TypeInt", + "description": "Listener Policy Priority", + "required": true }, { "name": "name", @@ -124949,6 +128140,20 @@ "optional": true, "computed": true }, + { + "name": "target_https_redirect_status_code", + "type": "TypeInt", + "description": "The HTTP status code to be returned in the redirect response", + "optional": true + }, + { + "name": "action", + "type": "TypeString", + "description": "Policy Action", + "immutable": true, + "required": true, + "options": "forward, redirect, reject, https_redirect" + }, { "name": "rules", "type": "TypeList", @@ -124989,15 +128194,28 @@ } }, { - "name": "provisioning_status", + "name": "target_id", "type": "TypeString", - "description": "Listner Policy status", + "description": "Listener Policy Target ID", + "optional": true + }, + { + "name": "related_crn", + "type": "TypeString", + "description": "The crn of the LB resource", "computed": true }, { - "name": "target_https_redirect_uri", + "name": "lb", "type": "TypeString", - "description": "Target URI where traffic will be redirected", + "description": "Load Balancer Listener Policy", + "immutable": true, + "required": true + }, + { + "name": "target_https_redirect_listener", + "type": "TypeString", + "description": "ID of the listener that will be set as http redirect target", "optional": true }, { @@ -125013,50 +128231,35 @@ "optional": true }, { - "name": "target_id", + "name": "provisioning_status", "type": "TypeString", - "description": "Listener Policy Target ID", - "optional": true + "description": "Listner Policy status", + "computed": true }, { - "name": "target_url", - "type": "TypeString", - "description": "Policy Target URL", - "optional": true - }, - { - "name": "lb", + "name": "listener", "type": "TypeString", - "description": "Load Balancer Listener Policy", + "description": "Listener ID", "immutable": true, "required": true }, { - "name": "target_https_redirect_status_code", - "type": "TypeInt", - "description": "The HTTP status code to be returned in the redirect response", - "optional": true - }, - { - "name": "action", + "name": "target_url", "type": "TypeString", - "description": "Policy Action", - "immutable": true, - "required": true, - "options": "forward, redirect, reject, https_redirect" - }, - { - "name": "priority", - "type": "TypeInt", - "description": "Listener Policy Priority", - "required": true + "description": "Policy Target URL", + "optional": true } ], "ibm_is_lb_listener_policy_rule": [ { - "name": "lb", + "name": "provisioning_status", "type": "TypeString", - "description": "Loadbalancer ID", + "computed": true + }, + { + "name": "listener", + "type": "TypeString", + "description": "Listener ID.", "immutable": true, "required": true }, @@ -125068,27 +128271,31 @@ "required": true }, { - "name": "type", + "name": "field", "type": "TypeString", - "description": "Policy rule type.", - "required": true, - "options": "header, hostname, path, body, query" + "optional": true }, { - "name": "related_crn", + "name": "value", + "type": "TypeString", + "description": "policy rule value info", + "required": true + }, + { + "name": "rule", "type": "TypeString", - "description": "The crn of the LB resource", "computed": true }, { - "name": "provisioning_status", + "name": "related_crn", "type": "TypeString", + "description": "The crn of the LB resource", "computed": true }, { - "name": "listener", + "name": "lb", "type": "TypeString", - "description": "Listener ID.", + "description": "Loadbalancer ID", "immutable": true, "required": true }, @@ -125100,29 +128307,14 @@ "options": "contains, equals, matches_regex" }, { - "name": "value", - "type": "TypeString", - "description": "policy rule value info", - "required": true - }, - { - "name": "field", - "type": "TypeString", - "optional": true - }, - { - "name": "rule", + "name": "type", "type": "TypeString", - "computed": true + "description": "Policy rule type.", + "required": true, + "options": "header, hostname, path, body, query" } ], "ibm_is_lb_pool": [ - { - "name": "pool_id", - "type": "TypeString", - "description": "The LB Pool id", - "computed": true - }, { "name": "protocol", "type": "TypeString", @@ -125131,17 +128323,11 @@ "options": "http, tcp, https, udp" }, { - "name": "health_delay", - "type": "TypeInt", - "description": "Load Blancer health delay time period", - "required": true - }, - { - "name": "health_monitor_url", + "name": "session_persistence_type", "type": "TypeString", - "description": "Health monitor URL of LB Pool", - "optional": true, - "computed": true + "description": "Load Balancer Pool session persisence type.", + "options": "source_ip, app_cookie, http_cookie", + "optional": true }, { "name": "session_persistence_app_cookie_name", @@ -125153,18 +128339,15 @@ "optional": true }, { - "name": "name", + "name": "session_persistence_http_cookie_name", "type": "TypeString", - "description": "Load Balancer Pool name", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + "description": "Load Balancer Pool session persisence http cookie name.", + "computed": true }, { - "name": "health_timeout", + "name": "health_retries", "type": "TypeInt", - "description": "Load Balancer health timeout interval", + "description": "Load Balancer health retry count", "required": true }, { @@ -125174,6 +128357,18 @@ "required": true, "options": "http, tcp, https, udp" }, + { + "name": "provisioning_status", + "type": "TypeString", + "description": "Status of the LB Pool", + "computed": true + }, + { + "name": "related_crn", + "type": "TypeString", + "description": "The crn of the LB resource", + "computed": true + }, { "name": "health_monitor_port", "type": "TypeInt", @@ -125182,37 +128377,47 @@ "computed": true }, { - "name": "provisioning_status", + "name": "name", "type": "TypeString", - "description": "Status of the LB Pool", - "computed": true + "description": "Load Balancer Pool name", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, { - "name": "algorithm", + "name": "lb", "type": "TypeString", - "description": "Load Balancer Pool algorithm", - "required": true, - "options": "round_robin, weighted_round_robin, least_connections" + "description": "Load Balancer ID", + "immutable": true, + "required": true }, { - "name": "health_retries", + "name": "health_delay", "type": "TypeInt", - "description": "Load Balancer health retry count", + "description": "Load Blancer health delay time period", "required": true }, { - "name": "session_persistence_type", - "type": "TypeString", - "description": "Load Balancer Pool session persisence type.", - "options": "source_ip, app_cookie, http_cookie", - "optional": true + "name": "health_timeout", + "type": "TypeInt", + "description": "Load Balancer health timeout interval", + "required": true }, { - "name": "session_persistence_http_cookie_name", + "name": "health_monitor_url", "type": "TypeString", - "description": "Load Balancer Pool session persisence http cookie name.", + "description": "Health monitor URL of LB Pool", + "optional": true, "computed": true }, + { + "name": "algorithm", + "type": "TypeString", + "description": "Load Balancer Pool algorithm", + "required": true, + "options": "round_robin, weighted_round_robin, least_connections" + }, { "name": "proxy_protocol", "type": "TypeString", @@ -125222,27 +128427,13 @@ "computed": true }, { - "name": "related_crn", + "name": "pool_id", "type": "TypeString", - "description": "The crn of the LB resource", + "description": "The LB Pool id", "computed": true - }, - { - "name": "lb", - "type": "TypeString", - "description": "Load Balancer ID", - "immutable": true, - "required": true } ], "ibm_is_lb_pool_member": [ - { - "name": "lb", - "type": "TypeString", - "description": "Load balancer ID", - "immutable": true, - "required": true - }, { "name": "port", "type": "TypeInt", @@ -125257,26 +128448,9 @@ "computed": true }, { - "name": "pool", - "type": "TypeString", - "description": "Loadblancer Poold ID", - "immutable": true, - "required": true - }, - { - "name": "target_id", + "name": "href", "type": "TypeString", - "description": "Load balancer pool member target id", - "optional": true, - "computed": true - }, - { - "name": "weight", - "type": "TypeInt", - "description": "Load balcner pool member weight", - "min_value": "0", - "max_value": "100", - "optional": true, + "description": "LB pool member Href value", "computed": true }, { @@ -125292,53 +128466,47 @@ "computed": true }, { - "name": "href", + "name": "related_crn", "type": "TypeString", - "description": "LB pool member Href value", + "description": "The crn of the LB resource", "computed": true }, { - "name": "related_crn", + "name": "pool", "type": "TypeString", - "description": "The crn of the LB resource", - "computed": true - } - ], - "ibm_is_network_acl": [ + "description": "Loadblancer Poold ID", + "immutable": true, + "required": true + }, { - "name": "crn", + "name": "lb", "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", - "computed": true + "description": "Load balancer ID", + "immutable": true, + "required": true }, { - "name": "name", + "name": "target_id", "type": "TypeString", - "description": "Network ACL name", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "description": "Load balancer pool member target id", "optional": true, "computed": true }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", + "name": "weight", + "type": "TypeInt", + "description": "Load balcner pool member weight", + "min_value": "0", + "max_value": "100", "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, + "computed": true + } + ], + "ibm_is_network_acl": [ { - "name": "tags", + "name": "access_tags", "type": "TypeSet", - "description": "List of tags", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", + "description": "List of access management tags", "optional": true, "computed": true, "elem": { @@ -125346,15 +128514,16 @@ } }, { - "name": "resource_controller_url", + "name": "crn", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "The crn of the resource", + "cloud_data_type": "crn", "computed": true }, { - "name": "resource_name", + "name": "resource_controller_url", "type": "TypeString", - "description": "The name of the resource", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { @@ -125500,6 +128669,16 @@ } } }, + { + "name": "name", + "type": "TypeString", + "description": "Network ACL name", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "optional": true, + "computed": true + }, { "name": "vpc", "type": "TypeString", @@ -125515,20 +128694,32 @@ "immutable": true, "optional": true, "computed": true + }, + { + "name": "tags", + "type": "TypeSet", + "description": "List of tags", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true } ], "ibm_is_network_acl_rule": [ { - "name": "action", - "type": "TypeString", - "description": "Whether to allow or deny matching traffic", - "required": true, - "options": "allow, deny" - }, - { - "name": "destination", + "name": "source", "type": "TypeString", - "description": "The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.", + "description": "The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.", "required": true }, { @@ -125613,19 +128804,26 @@ "max_items": 1 }, { - "name": "protocol", + "name": "network_acl", "type": "TypeString", - "description": "The protocol of the rule.", + "description": "Network ACL id", + "immutable": true, + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + }, + { + "name": "ip_version", + "type": "TypeString", + "description": "The IP version for this rule.", "computed": true }, { - "name": "name", + "name": "destination", "type": "TypeString", - "description": "The user-defined name for this rule. Names must be unique within the network ACL the rule resides in. If unspecified, the name will be a hyphenated list of randomly-selected words.", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", - "optional": true + "description": "The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.", + "required": true }, { "name": "icmp", @@ -125649,48 +128847,57 @@ "max_items": 1 }, { - "name": "network_acl", + "name": "rule_id", "type": "TypeString", - "description": "Network ACL id", - "immutable": true, - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + "description": "The network acl rule id.", + "computed": true }, { - "name": "source", + "name": "before", "type": "TypeString", - "description": "The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.", - "required": true + "description": "The rule that this rule is immediately before. If absent, this is the last rule.", + "optional": true, + "computed": true }, { - "name": "href", + "name": "name", "type": "TypeString", - "description": "The url of the rule.", - "computed": true + "description": "The user-defined name for this rule. Names must be unique within the network ACL the rule resides in. If unspecified, the name will be a hyphenated list of randomly-selected words.", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "optional": true }, { - "name": "ip_version", + "name": "action", "type": "TypeString", - "description": "The IP version for this rule.", - "computed": true + "description": "Whether to allow or deny matching traffic", + "required": true, + "options": "allow, deny" }, { - "name": "rule_id", + "name": "protocol", "type": "TypeString", - "description": "The network acl rule id.", + "description": "The protocol of the rule.", "computed": true }, { - "name": "before", + "name": "href", "type": "TypeString", - "description": "The rule that this rule is immediately before. If absent, this is the last rule.", - "optional": true, + "description": "The url of the rule.", "computed": true } ], "ibm_is_placement_group": [ + { + "name": "resource_group", + "type": "TypeString", + "description": "The unique identifier of the resource group to use. If unspecified, the account's [default resourcegroup](https://cloud.ibm.com/apidocs/resource-manager#introduction) is used.", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true + }, { "name": "created_at", "type": "TypeString", @@ -125705,17 +128912,25 @@ "computed": true }, { - "name": "href", + "name": "lifecycle_state", "type": "TypeString", - "description": "The URL for this placement group.", + "description": "The lifecycle state of the placement group.", "computed": true }, { - "name": "lifecycle_state", + "name": "resource_type", "type": "TypeString", - "description": "The lifecycle state of the placement group.", + "description": "The resource type.", "computed": true }, + { + "name": "strategy", + "type": "TypeString", + "description": "The strategy for this placement group- `host_spread`: place on different compute hosts- `power_spread`: place on compute hosts that use different power sourcesThe enumerated values for this property may expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the placement group on which the unexpected strategy was encountered.", + "immutable": true, + "required": true, + "options": "host_spread, power_spread" + }, { "name": "name", "type": "TypeString", @@ -125752,51 +128967,16 @@ } }, { - "name": "strategy", - "type": "TypeString", - "description": "The strategy for this placement group- `host_spread`: place on different compute hosts- `power_spread`: place on compute hosts that use different power sourcesThe enumerated values for this property may expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the placement group on which the unexpected strategy was encountered.", - "immutable": true, - "required": true, - "options": "host_spread, power_spread" - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "The unique identifier of the resource group to use. If unspecified, the account's [default resourcegroup](https://cloud.ibm.com/apidocs/resource-manager#introduction) is used.", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "resource_type", + "name": "href", "type": "TypeString", - "description": "The resource type.", + "description": "The URL for this placement group.", "computed": true } ], "ibm_is_public_gateway": [ { - "name": "name", - "type": "TypeString", - "description": "Name of the Public gateway instance", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" - }, - { - "name": "status", - "type": "TypeString", - "description": "Public gateway instance status", - "computed": true - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "Public gateway resource group info", - "cloud_data_type": "resource_group", - "immutable": true, + "name": "floating_ip", + "type": "TypeMap", "optional": true, "computed": true }, @@ -125808,16 +128988,16 @@ "required": true }, { - "name": "zone", + "name": "crn", "type": "TypeString", - "description": "Public gateway zone info", - "immutable": true, - "required": true + "description": "The crn of the resource", + "cloud_data_type": "crn", + "computed": true }, { - "name": "resource_controller_url", + "name": "resource_status", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "The status of the resource", "computed": true }, { @@ -125827,30 +129007,58 @@ "computed": true }, { - "name": "resource_crn", + "name": "resource_group_name", "type": "TypeString", - "description": "The crn of the resource", + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "crn", + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "resource_crn", "type": "TypeString", "description": "The crn of the resource", - "cloud_data_type": "crn", "computed": true }, { - "name": "resource_status", + "name": "name", "type": "TypeString", - "description": "The status of the resource", + "description": "Name of the Public gateway instance", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + }, + { + "name": "status", + "type": "TypeString", + "description": "Public gateway instance status", "computed": true }, { - "name": "floating_ip", - "type": "TypeMap", + "name": "resource_group", + "type": "TypeString", + "description": "Public gateway resource group info", + "cloud_data_type": "resource_group", + "immutable": true, "optional": true, "computed": true }, + { + "name": "zone", + "type": "TypeString", + "description": "Public gateway zone info", + "immutable": true, + "required": true + }, { "name": "tags", "type": "TypeSet", @@ -125865,23 +129073,43 @@ } }, { - "name": "access_tags", + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true + } + ], + "ibm_is_security_group": [ + { + "name": "name", + "type": "TypeString", + "description": "Security group name", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "optional": true, + "computed": true + }, + { + "name": "vpc", + "type": "TypeString", + "description": "Security group's resource group id", + "immutable": true, + "required": true + }, + { + "name": "tags", "type": "TypeSet", - "description": "List of access management tags", + "description": "List of tags", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", "optional": true, "computed": true, "elem": { "type": "TypeString" } }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - } - ], - "ibm_is_security_group": [ { "name": "rules", "type": "TypeList", @@ -125939,32 +129167,6 @@ "description": "The name of the resource", "computed": true }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "List of tags", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "vpc", - "type": "TypeString", - "description": "Security group's resource group id", - "immutable": true, - "required": true - }, { "name": "access_tags", "type": "TypeSet", @@ -126004,81 +129206,17 @@ "computed": true }, { - "name": "name", + "name": "resource_group_name", "type": "TypeString", - "description": "Security group name", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", - "optional": true, + "description": "The resource group name in which resource is provisioned", "computed": true } ], "ibm_is_security_group_rule": [ { - "name": "related_crn", - "type": "TypeString", - "description": "The crn of the Security Group", - "computed": true - }, - { - "name": "protocol", - "type": "TypeString", - "description": "The Security Group Rule Protocol", - "computed": true - }, - { - "name": "group", - "type": "TypeString", - "description": "Security group id", - "immutable": true, - "required": true - }, - { - "name": "rule_id", - "type": "TypeString", - "description": "Rule id", - "computed": true - }, - { - "name": "direction", - "type": "TypeString", - "description": "Direction of traffic to enforce, either inbound or outbound", - "required": true, - "options": "inbound, outbound" - }, - { - "name": "remote", - "type": "TypeString", - "description": "Security group id: an IP address, a CIDR block, or a single security group identifier", - "optional": true, - "computed": true - }, - { - "name": "icmp", - "type": "TypeList", - "description": "protocol=icmp", - "immutable": true, - "optional": true, - "elem": { - "code": { - "name": "code", - "type": "TypeInt", - "optional": true - }, - "type": { - "name": "type", - "type": "TypeInt", - "optional": true - } - }, - "max_items": 1, - "min_items": 1 - }, - { - "name": "udp", + "name": "tcp", "type": "TypeList", - "description": "protocol=udp", + "description": "protocol=tcp", "immutable": true, "optional": true, "elem": { @@ -126099,17 +129237,9 @@ "min_items": 1 }, { - "name": "ip_version", - "type": "TypeString", - "description": "IP version: ipv4", - "default_value": "ipv4", - "options": "ipv4", - "optional": true - }, - { - "name": "tcp", + "name": "udp", "type": "TypeList", - "description": "protocol=tcp", + "description": "protocol=udp", "immutable": true, "optional": true, "elem": { @@ -126128,243 +129258,134 @@ }, "max_items": 1, "min_items": 1 - } - ], - "ibm_is_security_group_target": [ - { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this Security group target", - "cloud_data_type": "crn", - "computed": true }, { - "name": "resource_type", + "name": "related_crn", "type": "TypeString", - "description": "Resource Type", + "description": "The crn of the Security Group", "computed": true }, { - "name": "security_group", + "name": "rule_id", "type": "TypeString", - "description": "Security group id", - "immutable": true, - "required": true, - "min_length": 1, - "max_length": 64, - "matches": "^[-0-9a-z_]+$" + "description": "Rule id", + "computed": true }, { - "name": "target", + "name": "direction", "type": "TypeString", - "description": "security group target identifier", - "immutable": true, + "description": "Direction of traffic to enforce, either inbound or outbound", "required": true, - "min_length": 1, - "max_length": 64, - "matches": "^[-0-9a-z_]+$" + "options": "inbound, outbound" }, { - "name": "name", - "type": "TypeString", - "description": "Security group target name", - "computed": true - } - ], - "ibm_is_share": [ - { - "name": "encryption_key", + "name": "remote", "type": "TypeString", - "description": "The CRN of the key to use for encrypting this file share.If no encryption key is provided, the share will not be encrypted.", - "immutable": true, + "description": "Security group id: an IP address, a CIDR block, or a single security group identifier", "optional": true, "computed": true }, { - "name": "replication_status_reasons", - "type": "TypeList", - "description": "The reasons for the current replication status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason.", - "required": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the status reason.", - "required": true - }, - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about this status reason.", - "optional": true - } - } - }, - { - "name": "lifecycle_state", - "type": "TypeString", - "description": "The lifecycle state of the file share.", - "computed": true - }, - { - "name": "resource_group", + "name": "protocol", "type": "TypeString", - "description": "The unique identifier of the resource group to use. If unspecified, the account's [default resourcegroup](https://cloud.ibm.com/apidocs/resource-manager#introduction) is used.", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, + "description": "The Security Group Rule Protocol", "computed": true }, { - "name": "latest_job", - "type": "TypeList", - "description": "The latest job associated with this file share.This property will be absent if no jobs have been created for this file share.", - "computed": true, - "elem": { - "status": { - "name": "status", - "type": "TypeString", - "description": "The status of the file share job.The enumerated values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the file share job on which the unexpected property value was encountered.* `cancelled`: This job has been cancelled.* `failed`: This job has failed.* `queued`: This job is queued.* `running`: This job is running.* `succeeded`: This job completed successfully.", - "computed": true - }, - "status_reasons": { - "name": "status_reasons", - "type": "TypeList", - "description": "The reasons for the file share job status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the status reason.", - "computed": true - }, - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about this status reason.", - "computed": true - } - } - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The type of the file share job.The enumerated values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the file share job on which the unexpected property value was encountered.* `replication_failover`: This is a share replication failover job.* `replication_init`: This is a share replication is initialization job.* `replication_split`: This is a share replication split job.* `replication_sync`: This is a share replication synchronization job.", - "computed": true - } - } - }, - { - "name": "zone", + "name": "group", "type": "TypeString", - "description": "The globally unique name of the zone this file share will reside in.", + "description": "Security group id", "immutable": true, "required": true }, { - "name": "encryption", - "type": "TypeString", - "description": "The type of encryption used for this file share.", - "computed": true - }, - { - "name": "href", + "name": "ip_version", "type": "TypeString", - "description": "The URL for this share.", - "computed": true + "description": "IP version: ipv4", + "default_value": "ipv4", + "options": "ipv4", + "optional": true }, { - "name": "initial_owner", + "name": "icmp", "type": "TypeList", - "description": "The owner assigned to the file share at creation.", + "description": "protocol=icmp", "immutable": true, "optional": true, "elem": { - "gid": { - "name": "gid", + "code": { + "name": "code", "type": "TypeInt", - "description": "The initial group identifier for the file share.", - "immutable": true, "optional": true }, - "uid": { - "name": "uid", + "type": { + "name": "type", "type": "TypeInt", - "description": "The initial user identifier for the file share.", - "immutable": true, "optional": true } }, "max_items": 1, "min_items": 1 - }, - { - "name": "size", - "type": "TypeInt", - "description": "The size of the file share rounded up to the next gigabyte.", - "min_value": "10", - "max_value": "32000", - "optional": true, - "computed": true - }, + } + ], + "ibm_is_security_group_target": [ { - "name": "name", + "name": "security_group", "type": "TypeString", - "description": "The unique user-defined name for this file share. If unspecified, the name will be a hyphenated list of randomly-selected words.", + "description": "Security group id", + "immutable": true, "required": true, "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$" + "max_length": 64, + "matches": "^[-0-9a-z_]+$" }, { - "name": "profile", + "name": "target", "type": "TypeString", - "description": "The globally unique name for this share profile.", - "required": true + "description": "security group target identifier", + "immutable": true, + "required": true, + "min_length": 1, + "max_length": 64, + "matches": "^[-0-9a-z_]+$" }, { - "name": "replication_role", + "name": "name", "type": "TypeString", - "description": "The replication role of the file share.* `none`: This share is not participating in replication.* `replica`: This share is a replication target.* `source`: This share is a replication source.", + "description": "Security group target name", "computed": true }, { - "name": "created_at", + "name": "crn", "type": "TypeString", - "description": "The date and time that the file share is created.", + "description": "The CRN for this Security group target", + "cloud_data_type": "crn", "computed": true }, { - "name": "replication_status", + "name": "resource_type", "type": "TypeString", - "description": "The replication status of the file share.* `initializing`: This share is initializing replication.* `active`: This share is actively participating in replication.* `failover_pending`: This share is performing a replication failover.* `split_pending`: This share is performing a replication split.* `none`: This share is not participating in replication.* `degraded`: This share's replication sync is degraded.* `sync_pending`: This share is performing a replication sync.", + "description": "Resource Type", "computed": true - }, + } + ], + "ibm_is_share": [ { - "name": "last_sync_at", + "name": "zone", "type": "TypeString", - "description": "The date and time that the file share was last synchronized to its replica.This property will be present when the `replication_role` is `source`.", - "computed": true + "description": "The globally unique name of the zone this file share will reside in.", + "immutable": true, + "required": true }, { - "name": "access_control_mode", - "type": "TypeString", - "description": "The access control mode for the share:", + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "mount_targets", @@ -126534,138 +129555,365 @@ "computed": true }, { - "name": "replica_share", - "type": "TypeList", - "description": "Configuration for a replica file share to create and associate with this file share. Ifunspecified, a replica may be subsequently added by creating a new file share with a`source_share` referencing this file share.", + "name": "replication_cron_spec", + "type": "TypeString", + "description": "The cron specification for the file share replication schedule.Replication of a share can be scheduled to occur at most once per hour.", "optional": true, + "computed": true + }, + { + "name": "replication_role", + "type": "TypeString", + "description": "The replication role of the file share.* `none`: This share is not participating in replication.* `replica`: This share is a replication target.* `source`: This share is a replication source.", + "computed": true + }, + { + "name": "latest_job", + "type": "TypeList", + "description": "The latest job associated with this file share.This property will be absent if no jobs have been created for this file share.", + "computed": true, "elem": { - "access_tags": { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags for this replica share", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this replica share.", - "computed": true - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The href for this replica share.", - "computed": true - }, - "id": { - "name": "id", + "status": { + "name": "status", "type": "TypeString", - "description": "The ID of this replica file share.", - "computed": true - }, - "iops": { - "name": "iops", - "type": "TypeInt", - "description": "The maximum input/output operation per second (IOPS) for the file share.", - "optional": true, + "description": "The status of the file share job.The enumerated values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the file share job on which the unexpected property value was encountered.* `cancelled`: This job has been cancelled.* `failed`: This job has failed.* `queued`: This job is queued.* `running`: This job is running.* `succeeded`: This job completed successfully.", "computed": true }, - "mount_targets": { - "name": "mount_targets", + "status_reasons": { + "name": "status_reasons", "type": "TypeList", - "description": "The share targets for this replica file share.Share targets mounted from a replica must be mounted read-only.", - "optional": true, + "description": "The reasons for the file share job status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", "computed": true, "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "href of mount target", - "computed": true - }, - "id": { - "name": "id", + "code": { + "name": "code", "type": "TypeString", - "description": "ID of this share target.", + "description": "A snake case string succinctly identifying the status reason.", "computed": true }, - "name": { - "name": "name", + "message": { + "name": "message", "type": "TypeString", - "description": "The user-defined name for this share target. Names must be unique within the share the share target resides in. If unspecified, the name will be a hyphenated list of randomly-selected words.", - "optional": true, + "description": "An explanation of the status reason.", "computed": true }, - "resource_type": { - "name": "resource_type", + "more_info": { + "name": "more_info", "type": "TypeString", - "description": "Resource type of virtual network interface", + "description": "Link to documentation about this status reason.", "computed": true - }, - "virtual_network_interface": { - "name": "virtual_network_interface", - "type": "TypeList", - "description": "VNI for mount target.", - "optional": true, - "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "CRN of virtual network interface", - "computed": true - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "href of virtual network interface", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "ID of this VNI", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of this VNI", - "optional": true, - "computed": true - }, - "primary_ip": { - "name": "primary_ip", - "type": "TypeList", - "description": "VNI for mount target.", - "optional": true, - "computed": true, - "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "The IP address to reserve, which must not already be reserved on the subnet.", - "optional": true, - "computed": true - }, - "auto_delete": { - "name": "auto_delete", - "type": "TypeBool", - "description": "Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.", - "optional": true, - "computed": true - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "href of primary ip", - "computed": true - }, - "name": { - "name": "name", + } + } + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The type of the file share job.The enumerated values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the file share job on which the unexpected property value was encountered.* `replication_failover`: This is a share replication failover job.* `replication_init`: This is a share replication is initialization job.* `replication_split`: This is a share replication split job.* `replication_sync`: This is a share replication synchronization job.", + "computed": true + } + } + }, + { + "name": "profile", + "type": "TypeString", + "description": "The globally unique name for this share profile.", + "required": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the file share is created.", + "computed": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the file share.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this share.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "encryption", + "type": "TypeString", + "description": "The type of encryption used for this file share.", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "The unique identifier of the resource group to use. If unspecified, the account's [default resourcegroup](https://cloud.ibm.com/apidocs/resource-manager#introduction) is used.", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "access_control_mode", + "type": "TypeString", + "description": "The access control mode for the share:", + "optional": true, + "computed": true + }, + { + "name": "source_share", + "type": "TypeString", + "description": "The ID of the source file share for this replica file share. The specified file share must not already have a replica, and must not be a replica.", + "immutable": true, + "optional": true + }, + { + "name": "replication_status", + "type": "TypeString", + "description": "The replication status of the file share.* `initializing`: This share is initializing replication.* `active`: This share is actively participating in replication.* `failover_pending`: This share is performing a replication failover.* `split_pending`: This share is performing a replication split.* `none`: This share is not participating in replication.* `degraded`: This share's replication sync is degraded.* `sync_pending`: This share is performing a replication sync.", + "computed": true + }, + { + "name": "last_sync_at", + "type": "TypeString", + "description": "The date and time that the file share was last synchronized to its replica.This property will be present when the `replication_role` is `source`.", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The type of resource referenced.", + "computed": true + }, + { + "name": "replication_status_reasons", + "type": "TypeList", + "description": "The reasons for the current replication status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the status reason.", + "required": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the status reason.", + "required": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about this status reason.", + "optional": true + } + } + }, + { + "name": "tags", + "type": "TypeSet", + "description": "User Tags for the file share", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this share.", + "computed": true + }, + { + "name": "encryption_key", + "type": "TypeString", + "description": "The CRN of the key to use for encrypting this file share.If no encryption key is provided, the share will not be encrypted.", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "initial_owner", + "type": "TypeList", + "description": "The owner assigned to the file share at creation.", + "immutable": true, + "optional": true, + "elem": { + "gid": { + "name": "gid", + "type": "TypeInt", + "description": "The initial group identifier for the file share.", + "immutable": true, + "optional": true + }, + "uid": { + "name": "uid", + "type": "TypeInt", + "description": "The initial user identifier for the file share.", + "immutable": true, + "optional": true + } + }, + "max_items": 1, + "min_items": 1 + }, + { + "name": "size", + "type": "TypeInt", + "description": "The size of the file share rounded up to the next gigabyte.", + "min_value": "10", + "max_value": "32000", + "optional": true, + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this file share. If unspecified, the name will be a hyphenated list of randomly-selected words.", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$" + }, + { + "name": "replica_share", + "type": "TypeList", + "description": "Configuration for a replica file share to create and associate with this file share. Ifunspecified, a replica may be subsequently added by creating a new file share with a`source_share` referencing this file share.", + "optional": true, + "elem": { + "access_tags": { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags for this replica share", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this replica share.", + "computed": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The href for this replica share.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The ID of this replica file share.", + "computed": true + }, + "iops": { + "name": "iops", + "type": "TypeInt", + "description": "The maximum input/output operation per second (IOPS) for the file share.", + "optional": true, + "computed": true + }, + "mount_targets": { + "name": "mount_targets", + "type": "TypeList", + "description": "The share targets for this replica file share.Share targets mounted from a replica must be mounted read-only.", + "optional": true, + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "href of mount target", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "ID of this share target.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this share target. Names must be unique within the share the share target resides in. If unspecified, the name will be a hyphenated list of randomly-selected words.", + "optional": true, + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "Resource type of virtual network interface", + "computed": true + }, + "virtual_network_interface": { + "name": "virtual_network_interface", + "type": "TypeList", + "description": "VNI for mount target.", + "optional": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "CRN of virtual network interface", + "computed": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "href of virtual network interface", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "ID of this VNI", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of this VNI", + "optional": true, + "computed": true + }, + "primary_ip": { + "name": "primary_ip", + "type": "TypeList", + "description": "VNI for mount target.", + "optional": true, + "computed": true, + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "The IP address to reserve, which must not already be reserved on the subnet.", + "optional": true, + "computed": true + }, + "auto_delete": { + "name": "auto_delete", + "type": "TypeBool", + "description": "Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.", + "optional": true, + "computed": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "href of primary ip", + "computed": true + }, + "name": { + "name": "name", "type": "TypeString", "description": "Name for reserved IP", "optional": true, @@ -126800,49 +130048,61 @@ } }, "max_items": 1 + } + ], + "ibm_is_share_mount_target": [ + { + "name": "mount_path", + "type": "TypeString", + "description": "The mount path for the share.The IP addresses used in the mount path are currently within the IBM services IP range, but are expected to change to be within one of the VPC's subnets in the future.", + "computed": true }, { - "name": "source_share", + "name": "name", "type": "TypeString", - "description": "The ID of the source file share for this replica file share. The specified file share must not already have a replica, and must not be a replica.", - "immutable": true, - "optional": true + "description": "The user-defined name for this share target. Names must be unique within the share the share target resides in. If unspecified, the name will be a hyphenated list of randomly-selected words.", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$" }, { - "name": "replication_cron_spec", + "name": "transit_encryption", "type": "TypeString", - "description": "The cron specification for the file share replication schedule.Replication of a share can be scheduled to occur at most once per hour.", + "description": "The transit encryption mode.", + "immutable": true, "optional": true, "computed": true }, { - "name": "tags", - "type": "TypeSet", - "description": "User Tags for the file share", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the mount target.", + "computed": true }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", + "name": "vpc", + "type": "TypeString", + "description": "The unique identifier of the VPC in which instances can mount the file share using this share target.This property will be removed in a future release.The `subnet` property should be used instead.", "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "computed": true }, { - "name": "crn", + "name": "mount_target", "type": "TypeString", - "description": "The CRN for this share.", - "cloud_data_type": "crn", + "description": "The unique identifier of this target", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the share target was created.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this share target.", "computed": true }, { @@ -126850,15 +130110,18 @@ "type": "TypeString", "description": "The type of resource referenced.", "computed": true - } - ], - "ibm_is_share_mount_target": [ + }, { - "name": "transit_encryption", + "name": "share", "type": "TypeString", - "description": "The transit encryption mode.", + "description": "The file share identifier.", "immutable": true, - "optional": true, + "required": true + }, + { + "name": "access_control_mode", + "type": "TypeString", + "description": "The access control mode for the share", "computed": true }, { @@ -126976,82 +130239,9 @@ }, "max_items": 1, "min_items": 1 - }, - { - "name": "vpc", - "type": "TypeString", - "description": "The unique identifier of the VPC in which instances can mount the file share using this share target.This property will be removed in a future release.The `subnet` property should be used instead.", - "optional": true, - "computed": true - }, - { - "name": "mount_target", - "type": "TypeString", - "description": "The unique identifier of this target", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the share target was created.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this share target.", - "computed": true - }, - { - "name": "lifecycle_state", - "type": "TypeString", - "description": "The lifecycle state of the mount target.", - "computed": true - }, - { - "name": "mount_path", - "type": "TypeString", - "description": "The mount path for the share.The IP addresses used in the mount path are currently within the IBM services IP range, but are expected to change to be within one of the VPC's subnets in the future.", - "computed": true - }, - { - "name": "share", - "type": "TypeString", - "description": "The file share identifier.", - "immutable": true, - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this share target. Names must be unique within the share the share target resides in. If unspecified, the name will be a hyphenated list of randomly-selected words.", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$" - }, - { - "name": "access_control_mode", - "type": "TypeString", - "description": "The access control mode for the share", - "computed": true - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced.", - "computed": true } ], "ibm_is_share_replica_operations": [ - { - "name": "split_share", - "type": "TypeBool", - "description": "If set to true the replication relationship between source share and replica will be removed.", - "default_value": false, - "immutable": true, - "optional": true - }, { "name": "share_replica", "type": "TypeString", @@ -127075,65 +130265,27 @@ "min_value": "300", "max_value": "3600", "optional": true + }, + { + "name": "split_share", + "type": "TypeBool", + "description": "If set to true the replication relationship between source share and replica will be removed.", + "default_value": false, + "immutable": true, + "optional": true } ], "ibm_is_snapshot": [ { - "name": "backup_policy_plan", - "type": "TypeList", - "description": "If present, the backup policy plan which created this snapshot.", - "computed": true, - "elem": { - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and provides some supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this backup policy plan.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this backup policy plan.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this backup policy plan.", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced", - "computed": true - } - } - }, - { - "name": "source_snapshot", + "name": "copies", "type": "TypeList", - "description": "If present, the source snapshot this snapshot was created from.", + "description": "The copies of this snapshot in other regions.", "computed": true, "elem": { "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN of the source snapshot.", + "description": "The CRN for the copied snapshot.", "computed": true }, "deleted": { @@ -127153,19 +130305,19 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for the source snapshot.", + "description": "The URL for the copied snapshot.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for the source snapshot.", + "description": "The unique identifier for the copied snapshot.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The name for the source snapshot. The name is unique across all snapshots in the source snapshot's native region.", + "description": "The name for the copied snapshot. The name is unique across all snapshots in the copied snapshot's native region.", "computed": true }, "remote": { @@ -127197,9 +130349,17 @@ } }, { - "name": "bootable", - "type": "TypeBool", - "description": "Indicates if a boot volume attachment can be created with a volume created from this snapshot", + "name": "source_volume", + "type": "TypeString", + "description": "Snapshot source volume", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "Snapshot lifecycle state", "computed": true }, { @@ -127215,13 +130375,6 @@ "description": "Minimum capacity of the snapshot", "computed": true }, - { - "name": "encryption_key", - "type": "TypeString", - "description": "A reference to the root key used to wrap the data encryption key for the source volume.", - "optional": true, - "computed": true - }, { "name": "size", "type": "TypeInt", @@ -127229,44 +130382,25 @@ "computed": true }, { - "name": "resource_group", - "type": "TypeString", - "description": "Resource group info", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "source_volume", + "name": "name", "type": "TypeString", - "description": "Snapshot source volume", - "immutable": true, + "description": "Snapshot name", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", "optional": true, "computed": true }, { - "name": "operating_system", - "type": "TypeString", - "description": "The globally unique name for the operating system included in this image", - "computed": true - }, - { - "name": "lifecycle_state", - "type": "TypeString", - "description": "Snapshot lifecycle state", - "computed": true - }, - { - "name": "copies", + "name": "source_snapshot", "type": "TypeList", - "description": "The copies of this snapshot in other regions.", + "description": "If present, the source snapshot this snapshot was created from.", "computed": true, "elem": { "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN for the copied snapshot.", + "description": "The CRN of the source snapshot.", "computed": true }, "deleted": { @@ -127286,19 +130420,19 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for the copied snapshot.", + "description": "The URL for the source snapshot.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for the copied snapshot.", + "description": "The unique identifier for the source snapshot.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The name for the copied snapshot. The name is unique across all snapshots in the copied snapshot's native region.", + "description": "The name for the source snapshot. The name is unique across all snapshots in the source snapshot's native region.", "computed": true }, "remote": { @@ -127330,9 +130464,22 @@ } }, { - "name": "href", + "name": "bootable", + "type": "TypeBool", + "description": "Indicates if a boot volume attachment can be created with a volume created from this snapshot", + "computed": true + }, + { + "name": "encryption_key", "type": "TypeString", - "description": "URL for the snapshot", + "description": "A reference to the root key used to wrap the data encryption key for the source volume.", + "optional": true, + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type of the snapshot", "computed": true }, { @@ -127344,6 +130491,13 @@ "type": "TypeString" } }, + { + "name": "source_snapshot_crn", + "type": "TypeString", + "description": "Source Snapshot CRN", + "immutable": true, + "optional": true + }, { "name": "tags", "type": "TypeSet", @@ -127358,42 +130512,70 @@ } }, { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type of the snapshot", - "computed": true - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "optional": true, + "name": "backup_policy_plan", + "type": "TypeList", + "description": "If present, the backup policy plan which created this snapshot.", "computed": true, "elem": { - "type": "TypeString" + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and provides some supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this backup policy plan.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this backup policy plan.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this backup policy plan.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The type of resource referenced", + "computed": true + } } }, { - "name": "name", + "name": "resource_group", "type": "TypeString", - "description": "Snapshot name", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "description": "Resource group info", + "cloud_data_type": "resource_group", + "immutable": true, "optional": true, "computed": true }, { - "name": "source_snapshot_crn", + "name": "source_image", "type": "TypeString", - "description": "Source Snapshot CRN", - "immutable": true, - "optional": true + "description": "If present, the image id from which the data on this volume was most directly provisioned.", + "computed": true }, { - "name": "source_image", + "name": "operating_system", "type": "TypeString", - "description": "If present, the image id from which the data on this volume was most directly provisioned.", + "description": "The globally unique name for the operating system included in this image", "computed": true }, { @@ -127401,9 +130583,40 @@ "type": "TypeString", "description": "Encryption type of the snapshot", "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URL for the snapshot", + "computed": true + }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } } ], "ibm_is_ssh_key": [ + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource group ID", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true + }, { "name": "resource_name", "type": "TypeString", @@ -127423,13 +130636,27 @@ "computed": true }, { - "name": "resource_group", - "type": "TypeString", - "description": "Resource group ID", - "cloud_data_type": "resource_group", - "immutable": true, + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags for SSH key", "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "tags", + "type": "TypeSet", + "description": "List of tags for SSH key", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "public_key", @@ -127457,25 +130684,6 @@ "description": "SSH key Length", "computed": true }, - { - "name": "tags", - "type": "TypeSet", - "description": "List of tags for SSH key", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - }, { "name": "crn", "type": "TypeString", @@ -127491,30 +130699,22 @@ "min_length": 1, "max_length": 63, "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags for SSH key", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } } ], "ibm_is_subnet": [ { - "name": "zone", + "name": "routing_table", "type": "TypeString", - "description": "Subnet zone info", - "immutable": true, - "required": true + "description": "routing table id that is associated with the subnet", + "optional": true, + "computed": true }, { - "name": "available_ipv4_address_count", - "type": "TypeInt", - "description": "The number of IPv4 addresses in this subnet that are not in-use, and have not been reserved by the user or the provider.", + "name": "ipv4_cidr_block", + "type": "TypeString", + "description": "IPV4 subnet - CIDR block", + "immutable": true, + "optional": true, "computed": true }, { @@ -127525,14 +130725,6 @@ "optional": true, "computed": true }, - { - "name": "ip_version", - "type": "TypeString", - "description": "The IP version(s) to support for this subnet.", - "default_value": "ipv4", - "immutable": true, - "optional": true - }, { "name": "name", "type": "TypeString", @@ -127570,26 +130762,11 @@ "computed": true }, { - "name": "resource_group", + "name": "vpc", "type": "TypeString", - "description": "The resource group for this subnet", - "cloud_data_type": "resource_group", + "description": "VPC instance ID", "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "routing_table", - "type": "TypeString", - "description": "routing table id that is associated with the subnet", - "optional": true, - "computed": true - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true + "required": true }, { "name": "resource_group_name", @@ -127597,20 +130774,6 @@ "description": "The resource group name in which resource is provisioned", "computed": true }, - { - "name": "ipv4_cidr_block", - "type": "TypeString", - "description": "IPV4 subnet - CIDR block", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The status of the subnet", - "computed": true - }, { "name": "tags", "type": "TypeSet", @@ -127625,71 +130788,74 @@ } }, { - "name": "public_gateway", - "type": "TypeString", - "description": "Public Gateway of the subnet", - "optional": true, - "computed": true - }, - { - "name": "vpc", + "name": "zone", "type": "TypeString", - "description": "VPC instance ID", + "description": "Subnet zone info", "immutable": true, "required": true }, { - "name": "resource_name", + "name": "resource_controller_url", "type": "TypeString", - "description": "The name of the resource", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { - "name": "resource_crn", + "name": "status", "type": "TypeString", - "description": "The crn of the resource", + "description": "The status of the subnet", "computed": true }, { - "name": "resource_status", + "name": "resource_name", "type": "TypeString", - "description": "The status of the resource", + "description": "The name of the resource", "computed": true - } - ], - "ibm_is_subnet_network_acl_attachment": [ + }, { - "name": "subnet", + "name": "available_ipv4_address_count", + "type": "TypeInt", + "description": "The number of IPv4 addresses in this subnet that are not in-use, and have not been reserved by the user or the provider.", + "computed": true + }, + { + "name": "ip_version", "type": "TypeString", - "description": "The subnet identifier", + "description": "The IP version(s) to support for this subnet.", + "default_value": "ipv4", "immutable": true, - "required": true + "optional": true }, { - "name": "network_acl", + "name": "public_gateway", "type": "TypeString", - "description": "The unique identifier of network ACL", - "required": true + "description": "Public Gateway of the subnet", + "optional": true, + "computed": true }, { - "name": "name", + "name": "resource_group", "type": "TypeString", - "description": "Network ACL name", + "description": "The resource group for this subnet", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, "computed": true }, { - "name": "crn", + "name": "resource_crn", "type": "TypeString", - "description": "The crn for this Network ACL", - "cloud_data_type": "crn", + "description": "The crn of the resource", "computed": true }, { - "name": "vpc", + "name": "resource_status", "type": "TypeString", - "description": "Network ACL VPC", + "description": "The status of the resource", "computed": true - }, + } + ], + "ibm_is_subnet_network_acl_attachment": [ { "name": "resource_group", "type": "TypeString", @@ -127826,9 +130992,48 @@ } } } + }, + { + "name": "subnet", + "type": "TypeString", + "description": "The subnet identifier", + "immutable": true, + "required": true + }, + { + "name": "network_acl", + "type": "TypeString", + "description": "The unique identifier of network ACL", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Network ACL name", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The crn for this Network ACL", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "vpc", + "type": "TypeString", + "description": "Network ACL VPC", + "computed": true } ], "ibm_is_subnet_public_gateway_attachment": [ + { + "name": "subnet", + "type": "TypeString", + "description": "The subnet identifier", + "immutable": true, + "required": true + }, { "name": "public_gateway", "type": "TypeString", @@ -127836,15 +131041,16 @@ "required": true }, { - "name": "name", + "name": "status", "type": "TypeString", - "description": "Name of the Public gateway instance", + "description": "Public gateway instance status", "computed": true }, { - "name": "status", + "name": "resource_group", "type": "TypeString", - "description": "Public gateway instance status", + "description": "Public gateway resource group info", + "cloud_data_type": "resource_group", "computed": true }, { @@ -127854,9 +131060,9 @@ "computed": true }, { - "name": "resource_group_name", + "name": "resource_type", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "The name of the resource", "computed": true }, { @@ -127867,24 +131073,16 @@ "computed": true }, { - "name": "subnet", + "name": "name", "type": "TypeString", - "description": "The subnet identifier", - "immutable": true, - "required": true + "description": "Name of the Public gateway instance", + "computed": true }, { "name": "floating_ip", "type": "TypeMap", "computed": true }, - { - "name": "resource_group", - "type": "TypeString", - "description": "Public gateway resource group info", - "cloud_data_type": "resource_group", - "computed": true - }, { "name": "vpc", "type": "TypeString", @@ -127892,47 +131090,37 @@ "computed": true }, { - "name": "resource_type", + "name": "resource_group_name", "type": "TypeString", - "description": "The name of the resource", + "description": "The resource group name in which resource is provisioned", "computed": true } ], "ibm_is_subnet_reserved_ip": [ { - "name": "auto_delete", - "type": "TypeBool", - "description": "If set to true, this reserved IP will be automatically deleted", - "optional": true, - "computed": true - }, - { - "name": "name", + "name": "address", "type": "TypeString", - "description": "The user-defined or system-provided name for this reserved IP.", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "description": "The address for this reserved IP.", + "immutable": true, "optional": true, "computed": true }, { - "name": "target", + "name": "reserved_ip", "type": "TypeString", - "description": "The unique identifier for target.", - "optional": true, + "description": "The unique identifier of the reserved IP.", "computed": true }, { - "name": "lifecycle_state", + "name": "created_at", "type": "TypeString", - "description": "The lifecycle state of the reserved IP", + "description": "The date and time that the reserved IP was created.", "computed": true }, { - "name": "reserved_ip", + "name": "resource_type", "type": "TypeString", - "description": "The unique identifier of the reserved IP.", + "description": "The resource type.", "computed": true }, { @@ -127943,52 +131131,87 @@ "required": true }, { - "name": "address", + "name": "name", "type": "TypeString", - "description": "The address for this reserved IP.", - "immutable": true, + "description": "The user-defined or system-provided name for this reserved IP.", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", "optional": true, "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the reserved IP was created.", - "computed": true - }, - { - "name": "href", + "name": "target", "type": "TypeString", - "description": "The URL for this reserved IP.", + "description": "The unique identifier for target.", + "optional": true, "computed": true }, { - "name": "owner", + "name": "target_crn", "type": "TypeString", - "description": "The owner of a reserved IP, defining whether it is managed by the user or the provider.", + "description": "The crn for target.", + "optional": true, "computed": true }, { - "name": "resource_type", + "name": "auto_delete", + "type": "TypeBool", + "description": "If set to true, this reserved IP will be automatically deleted", + "optional": true, + "computed": true + }, + { + "name": "lifecycle_state", "type": "TypeString", - "description": "The resource type.", + "description": "The lifecycle state of the reserved IP", "computed": true }, { - "name": "target_crn", + "name": "href", "type": "TypeString", - "description": "The crn for target.", - "optional": true, + "description": "The URL for this reserved IP.", + "computed": true + }, + { + "name": "owner", + "type": "TypeString", + "description": "The owner of a reserved IP, defining whether it is managed by the user or the provider.", "computed": true } ], "ibm_is_subnet_routing_table_attachment": [ { - "name": "route_vpc_zone_ingress", + "name": "route_direct_link_ingress", "type": "TypeBool", - "description": "If true, this routing table will be used to route traffic that originates from subnets in other zones in this VPC.", + "description": "If true, this routing table will be used to route traffic that originates from Direct Link to this VPC.", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type", "computed": true }, + { + "name": "subnets", + "type": "TypeList", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "Subnet ID", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Subnet name", + "computed": true + } + } + }, { "name": "routes", "type": "TypeList", @@ -128015,12 +131238,6 @@ "immutable": true, "required": true }, - { - "name": "route_direct_link_ingress", - "type": "TypeBool", - "description": "If true, this routing table will be used to route traffic that originates from Direct Link to this VPC.", - "computed": true - }, { "name": "is_default", "type": "TypeBool", @@ -128033,51 +131250,51 @@ "description": "he lifecycle state of the routing table [ deleting, failed, pending, stable, suspended, updating, waiting ]", "computed": true }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the routing table", + "computed": true + }, { "name": "route_transit_gateway_ingress", "type": "TypeBool", "description": "If true, this routing table will be used to route traffic that originates from Transit Gateway to this VPC.", "computed": true }, + { + "name": "route_vpc_zone_ingress", + "type": "TypeBool", + "description": "If true, this routing table will be used to route traffic that originates from subnets in other zones in this VPC.", + "computed": true + }, { "name": "routing_table", "type": "TypeString", "description": "The unique identifier of routing table", "required": true - }, + } + ], + "ibm_is_virtual_endpoint_gateway": [ { "name": "name", "type": "TypeString", - "description": "The name of the routing table", - "computed": true - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type", - "computed": true + "description": "Endpoint gateway name", + "immutable": true, + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, { - "name": "subnets", + "name": "service_endpoints", "type": "TypeList", + "description": "The fully qualified domain names for the target service. A fully qualified domain name for the target service", "computed": true, "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "Subnet ID", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Subnet name", - "computed": true - } + "type": "TypeString" } - } - ], - "ibm_is_virtual_endpoint_gateway": [ + }, { "name": "vpc", "type": "TypeString", @@ -128086,29 +131303,43 @@ "required": true }, { - "name": "name", + "name": "resource_type", "type": "TypeString", - "description": "Endpoint gateway name", - "immutable": true, - "required": true, + "description": "Endpoint gateway resource type", + "options": "provider_cloud_service, provider_infrastructure_service", + "computed": true + }, + { + "name": "allow_dns_resolution_binding", + "type": "TypeBool", + "description": "Indicates whether to allow this endpoint gateway to participate in DNS resolution bindings with a VPC that has dns.enable_hub set to true.", + "optional": true, + "computed": true + }, + { + "name": "tags", + "type": "TypeSet", + "description": "List of tags for VPE", "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "resource_type", + "name": "crn", "type": "TypeString", - "description": "Endpoint gateway resource type", - "options": "provider_cloud_service, provider_infrastructure_service", + "description": "The CRN for this Endpoint gateway", + "cloud_data_type": "crn", "computed": true }, { - "name": "resource_group", + "name": "health_state", "type": "TypeString", - "description": "The resource group id", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, + "description": "Endpoint gateway health state", "computed": true }, { @@ -128121,6 +131352,27 @@ "type": "TypeString" } }, + { + "name": "resource_group", + "type": "TypeString", + "description": "The resource group id", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "Endpoint gateway created date and time", + "computed": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "Endpoint gateway lifecycle state", + "computed": true + }, { "name": "ips", "type": "TypeList", @@ -128192,60 +131444,6 @@ "max_items": 1, "min_items": 1 }, - { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this Endpoint gateway", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "health_state", - "type": "TypeString", - "description": "Endpoint gateway health state", - "computed": true - }, - { - "name": "allow_dns_resolution_binding", - "type": "TypeBool", - "description": "Indicates whether to allow this endpoint gateway to participate in DNS resolution bindings with a VPC that has dns.enable_hub set to true.", - "optional": true, - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "List of tags for VPE", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "created_at", - "type": "TypeString", - "description": "Endpoint gateway created date and time", - "computed": true - }, - { - "name": "service_endpoints", - "type": "TypeList", - "description": "The fully qualified domain names for the target service. A fully qualified domain name for the target service", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "lifecycle_state", - "type": "TypeString", - "description": "Endpoint gateway lifecycle state", - "computed": true - }, { "name": "access_tags", "type": "TypeSet", @@ -128258,6 +131456,12 @@ } ], "ibm_is_virtual_endpoint_gateway_ip": [ + { + "name": "name", + "type": "TypeString", + "description": "Endpoint gateway IP name", + "computed": true + }, { "name": "resource_type", "type": "TypeString", @@ -128321,33 +131525,9 @@ "description": "Endpoint gateway IP id", "immutable": true, "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Endpoint gateway IP name", - "computed": true } ], "ibm_is_volume": [ - { - "name": "resource_crn", - "type": "TypeString", - "description": "The crn of the resource", - "computed": true - }, - { - "name": "resource_status", - "type": "TypeString", - "description": "The status of the resource", - "computed": true - }, - { - "name": "bandwidth", - "type": "TypeInt", - "description": "The maximum bandwidth (in megabits per second) for the volume", - "computed": true - }, { "name": "profile", "type": "TypeString", @@ -128355,149 +131535,18 @@ "required": true, "options": "general-purpose, 5iops-tier, 10iops-tier, custom" }, - { - "name": "capacity", - "type": "TypeInt", - "description": "Volume capacity value", - "min_value": "10", - "max_value": "16000", - "optional": true, - "computed": true - }, { "name": "health_state", "type": "TypeString", "description": "The health of this resource.", "computed": true }, - { - "name": "crn", - "type": "TypeString", - "description": "CRN value for the volume instance", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "Access management tags for the volume instance", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "resource_group_name", "type": "TypeString", "description": "The resource group name in which resource is provisioned", "computed": true }, - { - "name": "zone", - "type": "TypeString", - "description": "Zone name", - "immutable": true, - "required": true - }, - { - "name": "encryption_type", - "type": "TypeString", - "description": "Volume encryption type info", - "computed": true - }, - { - "name": "iops", - "type": "TypeInt", - "description": "IOPS value for the Volume", - "min_value": "100", - "max_value": "48000", - "optional": true, - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "Volume status", - "computed": true - }, - { - "name": "status_reasons", - "type": "TypeList", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the status reason", - "computed": true - }, - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about this status reason", - "computed": true - } - } - }, - { - "name": "tags", - "type": "TypeSet", - "description": "UserTags for the volume instance", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Volume name", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" - }, - { - "name": "encryption_key", - "type": "TypeString", - "description": "Volume encryption key info", - "immutable": true, - "optional": true - }, - { - "name": "source_snapshot", - "type": "TypeString", - "description": "The unique identifier for this snapshot", - "immutable": true, - "min_length": 1, - "max_length": 64, - "matches": "^[-0-9a-z_]+$", - "optional": true, - "computed": true - }, { "name": "operating_system", "type": "TypeList", @@ -128555,109 +131604,107 @@ } }, { - "name": "resource_group", + "name": "zone", "type": "TypeString", - "description": "Resource group name", - "cloud_data_type": "resource_group", + "description": "Zone name", + "immutable": true, + "required": true + }, + { + "name": "source_snapshot", + "type": "TypeString", + "description": "The unique identifier for this snapshot", "immutable": true, + "min_length": 1, + "max_length": 64, + "matches": "^[-0-9a-z_]+$", "optional": true, "computed": true }, { - "name": "health_reasons", + "name": "status_reasons", "type": "TypeList", "computed": true, "elem": { "code": { "name": "code", "type": "TypeString", - "description": "A snake case string succinctly identifying the reason for this health state.", + "description": "A snake case string succinctly identifying the status reason", "computed": true }, "message": { "name": "message", "type": "TypeString", - "description": "An explanation of the reason for this health state.", + "description": "An explanation of the status reason", "computed": true }, "more_info": { "name": "more_info", "type": "TypeString", - "description": "Link to documentation about the reason for this health state.", + "description": "Link to documentation about this status reason", "computed": true } } }, { - "name": "delete_all_snapshots", - "type": "TypeBool", - "description": "Deletes all snapshots created from this volume", - "optional": true - } - ], - "ibm_is_vpc": [ - { - "name": "id", + "name": "resource_name", "type": "TypeString", - "description": "Id of the ibm_is_vpc", - "cloud_data_type": "is", - "computed": true, - "cloud_data_range": [ - "service:vpc", - "resolved_to:id" - ] + "description": "The name of the resource", + "computed": true }, { - "name": "resource_group", + "name": "resource_crn", "type": "TypeString", - "description": "Resource group info", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, + "description": "The crn of the resource", "computed": true }, { - "name": "default_security_group", - "type": "TypeString", - "description": "Security group associated with VPC", + "name": "bandwidth", + "type": "TypeInt", + "description": "The maximum bandwidth (in megabits per second) for the volume", "computed": true }, { - "name": "default_network_acl_name", + "name": "name", "type": "TypeString", - "description": "Default Network ACL name", + "description": "Volume name", + "required": true, "min_length": 1, "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", - "optional": true, - "computed": true + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, { - "name": "default_security_group_crn", + "name": "encryption_key", "type": "TypeString", - "description": "Default security group CRN", - "computed": true + "description": "Volume encryption key info", + "immutable": true, + "optional": true }, { - "name": "default_network_acl_crn", - "type": "TypeString", - "description": "Default Network ACL CRN", + "name": "capacity", + "type": "TypeInt", + "description": "Volume capacity value", + "min_value": "10", + "max_value": "16000", + "optional": true, "computed": true }, { - "name": "default_routing_table_name", - "type": "TypeString", - "description": "Default routing table name", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "name": "iops", + "type": "TypeInt", + "description": "IOPS value for the Volume", + "min_value": "100", + "max_value": "48000", "optional": true, "computed": true }, { - "name": "access_tags", + "name": "tags", "type": "TypeSet", - "description": "List of access management tags", + "description": "UserTags for the volume instance", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", "optional": true, "computed": true, "elem": { @@ -128665,112 +131712,15 @@ } }, { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "VPC name", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" - }, - { - "name": "security_group", - "type": "TypeList", + "name": "access_tags", + "type": "TypeSet", + "description": "Access management tags for the volume instance", + "optional": true, "computed": true, "elem": { - "group_id": { - "name": "group_id", - "type": "TypeString", - "description": "Security group id", - "computed": true - }, - "group_name": { - "name": "group_name", - "type": "TypeString", - "description": "Security group name", - "computed": true - }, - "rules": { - "name": "rules", - "type": "TypeList", - "description": "Security Rules", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeInt", - "computed": true - }, - "direction": { - "name": "direction", - "type": "TypeString", - "description": "Direction of traffic to enforce, either inbound or outbound", - "computed": true - }, - "ip_version": { - "name": "ip_version", - "type": "TypeString", - "description": "IP version: ipv4", - "computed": true - }, - "port_max": { - "name": "port_max", - "type": "TypeInt", - "computed": true - }, - "port_min": { - "name": "port_min", - "type": "TypeInt", - "computed": true - }, - "protocol": { - "name": "protocol", - "type": "TypeString", - "computed": true - }, - "remote": { - "name": "remote", - "type": "TypeString", - "description": "Security group id: an IP address, a CIDR block, or a single security group identifier", - "computed": true - }, - "rule_id": { - "name": "rule_id", - "type": "TypeString", - "description": "Rule ID", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeInt", - "computed": true - } - } - } + "type": "TypeString" } }, - { - "name": "status", - "type": "TypeString", - "description": "VPC status", - "computed": true - }, - { - "name": "default_security_group_name", - "type": "TypeString", - "description": "Default security group name", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", - "optional": true, - "computed": true - }, { "name": "resource_status", "type": "TypeString", @@ -128778,131 +131728,82 @@ "computed": true }, { - "name": "default_routing_table", + "name": "encryption_type", "type": "TypeString", - "description": "Default routing table associated with VPC", + "description": "Volume encryption type info", "computed": true }, { - "name": "classic_access", - "type": "TypeBool", - "description": "Set to true if classic access needs to enabled to VPC", - "default_value": false, + "name": "resource_group", + "type": "TypeString", + "description": "Resource group name", + "cloud_data_type": "resource_group", "immutable": true, - "optional": true + "optional": true, + "computed": true }, { "name": "crn", "type": "TypeString", - "description": "The crn of the resource", + "description": "CRN value for the volume instance", "cloud_data_type": "crn", "computed": true }, { - "name": "resource_crn", + "name": "status", "type": "TypeString", - "description": "The crn of the resource", + "description": "Volume status", "computed": true }, { - "name": "cse_source_addresses", + "name": "health_reasons", "type": "TypeList", "computed": true, "elem": { - "address": { - "name": "address", + "code": { + "name": "code", "type": "TypeString", - "description": "Cloud service endpoint IP Address", + "description": "A snake case string succinctly identifying the reason for this health state.", "computed": true }, - "zone_name": { - "name": "zone_name", + "message": { + "name": "message", "type": "TypeString", - "description": "Location info of CSE Address", + "description": "An explanation of the reason for this health state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this health state.", "computed": true } } }, { - "name": "health_state", - "type": "TypeString", - "description": "The health of this resource.- `ok`: No abnormal behavior detected- `degraded`: Experiencing compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", - "computed": true - }, - { - "name": "no_sg_acl_rules", + "name": "delete_all_snapshots", "type": "TypeBool", - "description": "Delete all rules attached with default security group and default acl", - "default_value": false, + "description": "Deletes all snapshots created from this volume", "optional": true }, { - "name": "resource_group_name", + "name": "resource_controller_url", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true - }, - { - "name": "subnets", - "type": "TypeList", - "computed": true, - "elem": { - "available_ipv4_address_count": { - "name": "available_ipv4_address_count", - "type": "TypeInt", - "description": "Available IPv4 address count in the subnet", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "subnet ID", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "subent name", - "computed": true - }, - "status": { - "name": "status", - "type": "TypeString", - "description": "subnet status", - "computed": true - }, - "total_ipv4_address_count": { - "name": "total_ipv4_address_count", - "type": "TypeInt", - "description": "Total IPv4 address count in the subnet", - "computed": true - }, - "zone": { - "name": "zone", - "type": "TypeString", - "description": "subnet location", - "computed": true - } - } - }, + } + ], + "ibm_is_vpc": [ { - "name": "default_network_acl", + "name": "id", "type": "TypeString", - "description": "Default network ACL ID", - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "List of tags", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, + "description": "Id of the ibm_is_vpc", + "cloud_data_type": "is", "computed": true, - "elem": { - "type": "TypeString" - } + "cloud_data_range": [ + "service:vpc", + "resolved_to:id" + ] }, { "name": "dns", @@ -129024,364 +131925,628 @@ "max_items": 1 }, { - "name": "health_reasons", - "type": "TypeList", - "description": "The reasons for the current `health_state` (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the reason for this health state.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the reason for this health state.", - "computed": true - }, - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about the reason for this health state.", - "computed": true - } - } - }, - { - "name": "resource_controller_url", + "name": "name", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true + "description": "VPC name", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, { - "name": "address_prefix_management", + "name": "default_network_acl_crn", "type": "TypeString", - "description": "Address Prefix management value", - "default_value": "auto", - "immutable": true, - "options": "auto, manual", - "optional": true - } - ], - "ibm_is_vpc_address_prefix": [ - { - "name": "has_subnets", - "type": "TypeBool", - "description": "Boolean value, set to true if VPC instance have subnets", + "description": "Default Network ACL CRN", "computed": true }, { - "name": "related_crn", + "name": "resource_group", "type": "TypeString", - "description": "The crn of the VPC resource", + "description": "Resource group info", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, "computed": true }, { - "name": "address_prefix", + "name": "resource_controller_url", "type": "TypeString", - "description": "The unique identifier of the address prefix", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "Name", - "required": true - }, - { - "name": "zone", - "type": "TypeString", - "description": "Zone name", - "immutable": true, - "required": true - }, - { - "name": "cidr", - "type": "TypeString", - "description": "CIDIR address prefix", - "immutable": true, - "required": true - }, - { - "name": "is_default", + "name": "no_sg_acl_rules", "type": "TypeBool", - "description": "Is default prefix for this zone in this VPC", + "description": "Delete all rules attached with default security group and default acl", "default_value": false, "optional": true }, { - "name": "vpc", - "type": "TypeString", - "description": "VPC id", - "immutable": true, - "required": true - } - ], - "ibm_is_vpc_dns_resolution_binding": [ - { - "name": "lifecycle_state", + "name": "default_security_group_crn", "type": "TypeString", - "description": "The lifecycle state of the DNS resolution binding.", + "description": "Default security group CRN", "computed": true }, { - "name": "name", + "name": "default_security_group", "type": "TypeString", - "description": "The name for this DNS resolution binding. The name is unique across all DNS resolution bindings for the VPC.", - "optional": true, + "description": "Security group associated with VPC", "computed": true }, { - "name": "resource_type", + "name": "resource_group_name", "type": "TypeString", - "description": "The resource type.", + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "vpc", + "name": "subnets", "type": "TypeList", - "description": "The VPC bound to for DNS resolution.The VPC may be remote and therefore may not be directly retrievable.", - "immutable": true, - "required": true, + "computed": true, "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this VPC.", - "optional": true, - "computed": true - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this VPC.", - "optional": true, + "available_ipv4_address_count": { + "name": "available_ipv4_address_count", + "type": "TypeInt", + "description": "Available IPv4 address count in the subnet", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this VPC.", - "optional": true, + "description": "subnet ID", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The name for this VPC. The name is unique across all VPCs in the region.", + "description": "subent name", "computed": true }, - "remote": { - "name": "remote", - "type": "TypeList", - "description": "If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable.", - "computed": true, - "elem": { - "account": { - "name": "account", - "type": "TypeList", - "description": "If present, this property indicates that the referenced resource is remote to thisaccount, and identifies the owning account.", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this account.", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", - "computed": true - } - } - }, - "region": { - "name": "region", - "type": "TypeList", - "description": "If present, this property indicates that the referenced resource is remote to thisregion, and identifies the native region.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this region.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The globally unique name for this region.", - "computed": true - } - } - } - } + "status": { + "name": "status", + "type": "TypeString", + "description": "subnet status", + "computed": true }, - "resource_type": { - "name": "resource_type", + "total_ipv4_address_count": { + "name": "total_ipv4_address_count", + "type": "TypeInt", + "description": "Total IPv4 address count in the subnet", + "computed": true + }, + "zone": { + "name": "zone", "type": "TypeString", - "description": "The resource type.", + "description": "subnet location", "computed": true } - }, - "max_items": 1, - "min_items": 1 + } }, { - "name": "vpc_id", + "name": "default_routing_table", "type": "TypeString", - "description": "The VPC identifier.", - "required": true + "description": "Default routing table associated with VPC", + "computed": true }, { - "name": "created_at", + "name": "status", "type": "TypeString", - "description": "The date and time that the DNS resolution binding was created.", + "description": "VPC status", "computed": true }, { - "name": "endpoint_gateways", + "name": "crn", + "type": "TypeString", + "description": "The crn of the resource", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", + "computed": true + }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "security_group", "type": "TypeList", - "description": "The endpoint gateways in the bound to VPC that are allowed to participate in this DNS resolution binding.The endpoint gateways may be remote and therefore may not be directly retrievable.", "computed": true, "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this endpoint gateway.", - "computed": true - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this endpoint gateway.", - "computed": true - }, - "id": { - "name": "id", + "group_id": { + "name": "group_id", "type": "TypeString", - "description": "The unique identifier for this endpoint gateway.", + "description": "Security group id", "computed": true }, - "name": { - "name": "name", + "group_name": { + "name": "group_name", "type": "TypeString", - "description": "The name for this endpoint gateway. The name is unique across all endpoint gateways in the VPC.", + "description": "Security group name", "computed": true }, - "remote": { - "name": "remote", + "rules": { + "name": "rules", "type": "TypeList", - "description": "If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable.", + "description": "Security Rules", "computed": true, "elem": { - "account": { - "name": "account", - "type": "TypeList", - "description": "If present, this property indicates that the referenced resource is remote to thisaccount, and identifies the owning account.", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this account.", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", - "computed": true - } - } + "code": { + "name": "code", + "type": "TypeInt", + "computed": true }, - "region": { - "name": "region", - "type": "TypeList", - "description": "If present, this property indicates that the referenced resource is remote to thisregion, and identifies the native region.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this region.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The globally unique name for this region.", - "computed": true - } - } + "direction": { + "name": "direction", + "type": "TypeString", + "description": "Direction of traffic to enforce, either inbound or outbound", + "computed": true + }, + "ip_version": { + "name": "ip_version", + "type": "TypeString", + "description": "IP version: ipv4", + "computed": true + }, + "port_max": { + "name": "port_max", + "type": "TypeInt", + "computed": true + }, + "port_min": { + "name": "port_min", + "type": "TypeInt", + "computed": true + }, + "protocol": { + "name": "protocol", + "type": "TypeString", + "computed": true + }, + "remote": { + "name": "remote", + "type": "TypeString", + "description": "Security group id: an IP address, a CIDR block, or a single security group identifier", + "computed": true + }, + "rule_id": { + "name": "rule_id", + "type": "TypeString", + "description": "Rule ID", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeInt", + "computed": true } } + } + } + }, + { + "name": "default_routing_table_name", + "type": "TypeString", + "description": "Default routing table name", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "optional": true, + "computed": true + }, + { + "name": "cse_source_addresses", + "type": "TypeList", + "computed": true, + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "Cloud service endpoint IP Address", + "computed": true }, - "resource_type": { - "name": "resource_type", + "zone_name": { + "name": "zone_name", "type": "TypeString", - "description": "The resource type.", + "description": "Location info of CSE Address", "computed": true } } }, { - "name": "href", + "name": "default_network_acl", "type": "TypeString", - "description": "The URL for this DNS resolution binding.", + "description": "Default network ACL ID", "computed": true - } - ], - "ibm_is_vpc_routing_table": [ + }, { - "name": "vpc", + "name": "address_prefix_management", "type": "TypeString", - "description": "The VPC identifier.", + "description": "Address Prefix management value", + "default_value": "auto", "immutable": true, - "required": true + "options": "auto, manual", + "optional": true }, { - "name": "route_internet_ingress", + "name": "health_reasons", + "type": "TypeList", + "description": "The reasons for the current `health_state` (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this health state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this health state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this health state.", + "computed": true + } + } + }, + { + "name": "tags", + "type": "TypeSet", + "description": "List of tags", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "resource_status", + "type": "TypeString", + "description": "The status of the resource", + "computed": true + }, + { + "name": "health_state", + "type": "TypeString", + "description": "The health of this resource.- `ok`: No abnormal behavior detected- `degraded`: Experiencing compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", + "computed": true + }, + { + "name": "classic_access", "type": "TypeBool", - "description": "If set to true, this routing table will be used to route traffic that originates from the internet. For this to succeed, the VPC must not already have a routing table with this property set to true.", + "description": "Set to true if classic access needs to enabled to VPC", "default_value": false, + "immutable": true, "optional": true }, { - "name": "resource_type", + "name": "default_network_acl_name", "type": "TypeString", - "description": "Routing table Resource Type", + "description": "Default Network ACL name", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "optional": true, "computed": true }, { - "name": "is_default", - "type": "TypeBool", - "description": "Indicates whether this is the default routing table for this VPC", + "name": "default_security_group_name", + "type": "TypeString", + "description": "Default security group name", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "optional": true, "computed": true }, { - "name": "created_at", + "name": "resource_name", "type": "TypeString", - "description": "Routing table Created At", + "description": "The name of the resource", "computed": true + } + ], + "ibm_is_vpc_address_prefix": [ + { + "name": "name", + "type": "TypeString", + "description": "Name", + "required": true }, { - "name": "route_transit_gateway_ingress", + "name": "zone", + "type": "TypeString", + "description": "Zone name", + "immutable": true, + "required": true + }, + { + "name": "cidr", + "type": "TypeString", + "description": "CIDIR address prefix", + "immutable": true, + "required": true + }, + { + "name": "is_default", "type": "TypeBool", - "description": "If set to true, this routing table will be used to route traffic that originates from Transit Gateway to this VPC.", + "description": "Is default prefix for this zone in this VPC", "default_value": false, "optional": true }, { - "name": "route_vpc_zone_ingress", + "name": "vpc", + "type": "TypeString", + "description": "VPC id", + "immutable": true, + "required": true + }, + { + "name": "has_subnets", "type": "TypeBool", - "description": "If set to true, this routing table will be used to route traffic that originates from subnets in other zones in this VPC.", - "default_value": false, - "optional": true + "description": "Boolean value, set to true if VPC instance have subnets", + "computed": true + }, + { + "name": "related_crn", + "type": "TypeString", + "description": "The crn of the VPC resource", + "computed": true + }, + { + "name": "address_prefix", + "type": "TypeString", + "description": "The unique identifier of the address prefix", + "computed": true + } + ], + "ibm_is_vpc_dns_resolution_binding": [ + { + "name": "name", + "type": "TypeString", + "description": "The name for this DNS resolution binding. The name is unique across all DNS resolution bindings for the VPC.", + "optional": true, + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + }, + { + "name": "vpc", + "type": "TypeList", + "description": "The VPC bound to for DNS resolution.The VPC may be remote and therefore may not be directly retrievable.", + "immutable": true, + "required": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this VPC.", + "optional": true, + "computed": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this VPC.", + "optional": true, + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this VPC.", + "optional": true, + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The name for this VPC. The name is unique across all VPCs in the region.", + "computed": true + }, + "remote": { + "name": "remote", + "type": "TypeList", + "description": "If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable.", + "computed": true, + "elem": { + "account": { + "name": "account", + "type": "TypeList", + "description": "If present, this property indicates that the referenced resource is remote to thisaccount, and identifies the owning account.", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this account.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + } + } + }, + "region": { + "name": "region", + "type": "TypeList", + "description": "If present, this property indicates that the referenced resource is remote to thisregion, and identifies the native region.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this region.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The globally unique name for this region.", + "computed": true + } + } + } + } + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + } + }, + "max_items": 1, + "min_items": 1 + }, + { + "name": "vpc_id", + "type": "TypeString", + "description": "The VPC identifier.", + "required": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the DNS resolution binding was created.", + "computed": true + }, + { + "name": "endpoint_gateways", + "type": "TypeList", + "description": "The endpoint gateways in the bound to VPC that are allowed to participate in this DNS resolution binding.The endpoint gateways may be remote and therefore may not be directly retrievable.", + "computed": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this endpoint gateway.", + "computed": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this endpoint gateway.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this endpoint gateway.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The name for this endpoint gateway. The name is unique across all endpoint gateways in the VPC.", + "computed": true + }, + "remote": { + "name": "remote", + "type": "TypeList", + "description": "If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable.", + "computed": true, + "elem": { + "account": { + "name": "account", + "type": "TypeList", + "description": "If present, this property indicates that the referenced resource is remote to thisaccount, and identifies the owning account.", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this account.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + } + } + }, + "region": { + "name": "region", + "type": "TypeList", + "description": "If present, this property indicates that the referenced resource is remote to thisregion, and identifies the native region.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this region.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The globally unique name for this region.", + "computed": true + } + } + } + } + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + } + } + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this DNS resolution binding.", + "computed": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the DNS resolution binding.", + "computed": true + } + ], + "ibm_is_vpc_routing_table": [ + { + "name": "created_at", + "type": "TypeString", + "description": "Routing table Created At", + "computed": true + }, + { + "name": "vpc", + "type": "TypeString", + "description": "The VPC identifier.", + "immutable": true, + "required": true }, { "name": "name", @@ -129394,9 +132559,15 @@ "computed": true }, { - "name": "routing_table", + "name": "resource_type", "type": "TypeString", - "description": "The routing table identifier.", + "description": "Routing table Resource Type", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "Routing table Href", "computed": true }, { @@ -129410,9 +132581,16 @@ } }, { - "name": "href", + "name": "route_internet_ingress", + "type": "TypeBool", + "description": "If set to true, this routing table will be used to route traffic that originates from the internet. For this to succeed, the VPC must not already have a routing table with this property set to true.", + "default_value": false, + "optional": true + }, + { + "name": "routing_table", "type": "TypeString", - "description": "Routing table Href", + "description": "The routing table identifier.", "computed": true }, { @@ -129441,11 +132619,31 @@ "default_value": false, "optional": true }, + { + "name": "route_vpc_zone_ingress", + "type": "TypeBool", + "description": "If set to true, this routing table will be used to route traffic that originates from subnets in other zones in this VPC.", + "default_value": false, + "optional": true + }, { "name": "lifecycle_state", "type": "TypeString", "description": "Routing table Lifecycle State", "computed": true + }, + { + "name": "route_transit_gateway_ingress", + "type": "TypeBool", + "description": "If set to true, this routing table will be used to route traffic that originates from Transit Gateway to this VPC.", + "default_value": false, + "optional": true + }, + { + "name": "is_default", + "type": "TypeBool", + "description": "Indicates whether this is the default routing table for this VPC", + "computed": true } ], "ibm_is_vpc_routing_table_route": [ @@ -129476,16 +132674,15 @@ "computed": true }, { - "name": "vpc", + "name": "origin", "type": "TypeString", - "description": "The VPC identifier.", - "immutable": true, - "required": true + "description": "The origin of this route.", + "computed": true }, { - "name": "destination", + "name": "vpc", "type": "TypeString", - "description": "The destination of the route.", + "description": "The VPC identifier.", "immutable": true, "required": true }, @@ -129496,24 +132693,17 @@ "required": true }, { - "name": "href", + "name": "route_id", "type": "TypeString", - "description": "Routing table route Href", + "description": "The routing table route identifier.", "computed": true }, { - "name": "created_at", + "name": "href", "type": "TypeString", - "description": "Routing table route Created At", + "description": "Routing table route Href", "computed": true }, - { - "name": "zone", - "type": "TypeString", - "description": "The zone to apply the route to. Traffic from subnets in this zone will be subject to this route.", - "immutable": true, - "required": true - }, { "name": "creator", "type": "TypeList", @@ -129567,16 +132757,17 @@ } }, { - "name": "route_id", + "name": "lifecycle_state", "type": "TypeString", - "description": "The routing table route identifier.", + "description": "Routing table route Lifecycle State", "computed": true }, { - "name": "lifecycle_state", + "name": "destination", "type": "TypeString", - "description": "Routing table route Lifecycle State", - "computed": true + "description": "The destination of the route.", + "immutable": true, + "required": true }, { "name": "priority", @@ -129588,46 +132779,38 @@ "computed": true }, { - "name": "origin", - "type": "TypeString", - "description": "The origin of this route.", - "computed": true - } - ], - "ibm_is_vpn_gateway": [ - { - "name": "subnet", + "name": "zone", "type": "TypeString", - "description": "VPNGateway subnet info", + "description": "The zone to apply the route to. Traffic from subnets in this zone will be subject to this route.", "immutable": true, "required": true }, { - "name": "resource_name", + "name": "created_at", "type": "TypeString", - "description": "The name of the resource", + "description": "Routing table route Created At", "computed": true - }, + } + ], + "ibm_is_vpn_gateway": [ { - "name": "resource_status", + "name": "crn", "type": "TypeString", - "description": "The status of the resource", + "description": "The crn of the resource", + "cloud_data_type": "crn", "computed": true }, { - "name": "resource_group_name", + "name": "created_at", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "Created Time of the VPN Gateway", "computed": true }, { - "name": "name", + "name": "lifecycle_state", "type": "TypeString", - "description": "VPN Gateway instance name", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + "description": "The lifecycle state of the VPN route.", + "computed": true }, { "name": "resource_group", @@ -129644,70 +132827,12 @@ "description": "The status of the VPN gateway", "computed": true }, - { - "name": "public_ip_address", - "type": "TypeString", - "description": "The public IP address assigned to the VPN gateway member.", - "computed": true - }, { "name": "public_ip_address2", "type": "TypeString", "description": "The second public IP address assigned to the VPN gateway member.", "computed": true }, - { - "name": "private_ip_address2", - "type": "TypeString", - "description": "The Second Private IP address assigned to the VPN gateway member.", - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "VPN Gateway tags list", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - }, - { - "name": "resource_crn", - "type": "TypeString", - "description": "The crn of the resource", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "Created Time of the VPN Gateway", - "computed": true - }, - { - "name": "mode", - "type": "TypeString", - "description": "mode in VPN gateway(route/policy)", - "default_value": "route", - "immutable": true, - "options": "route,policy", - "optional": true - }, - { - "name": "private_ip_address", - "type": "TypeString", - "description": "The Private IP address assigned to the VPN gateway member.", - "computed": true - }, { "name": "access_tags", "type": "TypeSet", @@ -129719,10 +132844,9 @@ } }, { - "name": "crn", + "name": "resource_name", "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", + "description": "The name of the resource", "computed": true }, { @@ -129757,6 +132881,66 @@ } } }, + { + "name": "mode", + "type": "TypeString", + "description": "mode in VPN gateway(route/policy)", + "default_value": "route", + "immutable": true, + "options": "route,policy", + "optional": true + }, + { + "name": "name", + "type": "TypeString", + "description": "VPN Gateway instance name", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + }, + { + "name": "public_ip_address", + "type": "TypeString", + "description": "The public IP address assigned to the VPN gateway member.", + "computed": true + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true + }, + { + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", + "computed": true + }, + { + "name": "resource_status", + "type": "TypeString", + "description": "The status of the resource", + "computed": true + }, + { + "name": "health_state", + "type": "TypeString", + "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", + "computed": true + }, + { + "name": "private_ip_address", + "type": "TypeString", + "description": "The Private IP address assigned to the VPN gateway member.", + "computed": true + }, + { + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true + }, { "name": "vpc", "type": "TypeList", @@ -129802,31 +132986,103 @@ "computed": true } } - } - ], - "ibm_is_vpn_gateway_connection": [ + }, { - "name": "ipsec_policy", + "name": "subnet", "type": "TypeString", - "description": "IP security policy for vpn gateway connection", - "optional": true + "description": "VPNGateway subnet info", + "immutable": true, + "required": true }, { - "name": "ike_policy", + "name": "health_reasons", + "type": "TypeList", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this health state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this health state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this health state.", + "computed": true + } + } + }, + { + "name": "private_ip_address2", "type": "TypeString", - "description": "VPN gateway connection IKE Policy", - "optional": true + "description": "The Second Private IP address assigned to the VPN gateway member.", + "computed": true }, { - "name": "preshared_key", + "name": "tags", + "type": "TypeSet", + "description": "VPN Gateway tags list", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "lifecycle_reasons", + "type": "TypeList", + "description": "The reasons for the current lifecycle_state (if any).", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this lifecycle state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this lifecycle state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this lifecycle state.", + "computed": true + } + } + } + ], + "ibm_is_vpn_gateway_connection": [ + { + "name": "peer_address", "type": "TypeString", - "description": "vpn gateway", + "description": "VPN gateway connection peer address", "required": true }, { - "name": "local_cidrs", + "name": "admin_state_up", + "type": "TypeBool", + "description": "VPN gateway connection admin state", + "default_value": false, + "optional": true + }, + { + "name": "peer_cidrs", "type": "TypeSet", - "description": "VPN gateway connection local CIDRs", + "description": "VPN gateway connection peer CIDRs", "immutable": true, "optional": true, "elem": { @@ -129841,6 +133097,12 @@ "options": "restart, clear, hold, none", "optional": true }, + { + "name": "status", + "type": "TypeString", + "description": "VPN gateway connection status", + "computed": true + }, { "name": "vpn_gateway", "type": "TypeString", @@ -129848,6 +133110,22 @@ "immutable": true, "required": true }, + { + "name": "local_cidrs", + "type": "TypeSet", + "description": "VPN gateway connection local CIDRs", + "immutable": true, + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "ipsec_policy", + "type": "TypeString", + "description": "IP security policy for vpn gateway connection", + "optional": true + }, { "name": "gateway_connection", "type": "TypeString", @@ -129855,9 +133133,9 @@ "computed": true }, { - "name": "status", + "name": "resource_type", "type": "TypeString", - "description": "VPN gateway connection status", + "description": "The resource type", "computed": true }, { @@ -129867,13 +133145,10 @@ "computed": true }, { - "name": "name", + "name": "preshared_key", "type": "TypeString", - "description": "VPN Gateway connection name", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + "description": "vpn gateway", + "required": true }, { "name": "interval", @@ -129884,12 +133159,6 @@ "max_value": "86399", "optional": true }, - { - "name": "authentication_mode", - "type": "TypeString", - "description": "The authentication mode", - "computed": true - }, { "name": "timeout", "type": "TypeInt", @@ -129899,6 +133168,47 @@ "max_value": "86399", "optional": true }, + { + "name": "ike_policy", + "type": "TypeString", + "description": "VPN gateway connection IKE Policy", + "optional": true + }, + { + "name": "name", + "type": "TypeString", + "description": "VPN Gateway connection name", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + }, + { + "name": "status_reasons", + "type": "TypeList", + "description": "The reasons for the current status (if any).", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the status reason.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the status reason.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about this status reason.", + "computed": true + } + } + }, { "name": "related_crn", "type": "TypeString", @@ -129906,9 +133216,9 @@ "computed": true }, { - "name": "resource_type", + "name": "authentication_mode", "type": "TypeString", - "description": "The resource type", + "description": "The authentication mode", "computed": true }, { @@ -129936,32 +133246,80 @@ "computed": true } } + } + ], + "ibm_is_vpn_server": [ + { + "name": "client_dns_server_ips", + "type": "TypeSet", + "description": "The DNS server addresses that will be provided to VPN clients connected to this VPN server. The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", + "optional": true, + "elem": { + "type": "TypeString" + } }, { - "name": "peer_address", + "name": "crn", "type": "TypeString", - "description": "VPN gateway connection peer address", - "required": true + "description": "The CRN for this VPN server.", + "cloud_data_type": "crn", + "computed": true }, { - "name": "admin_state_up", + "name": "enable_split_tunneling", "type": "TypeBool", - "description": "VPN gateway connection admin state", + "description": "Indicates whether the split tunneling is enabled on this VPN server.", "default_value": false, "optional": true }, { - "name": "peer_cidrs", - "type": "TypeSet", - "description": "VPN gateway connection peer CIDRs", + "name": "vpn_server", + "type": "TypeString", + "description": "The unique identifier for this VPN server.", + "computed": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the VPN server.", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "The unique identifier for this resource group. The resource group to use. If unspecified, the account's [default resourcegroup](https://cloud.ibm.com/apidocs/resource-manager#introduction) is used.", + "cloud_data_type": "resource_group", "immutable": true, "optional": true, + "computed": true + }, + { + "name": "client_authentication", + "type": "TypeList", + "description": "The methods used to authenticate VPN clients to this VPN server. VPN clients must authenticate against all provided methods.", + "required": true, "elem": { - "type": "TypeString" - } - } - ], - "ibm_is_vpn_server": [ + "client_ca_crn": { + "name": "client_ca_crn", + "type": "TypeString", + "description": "The crn of certificate instance to use for the VPN client certificate authority (CA).", + "optional": true + }, + "identity_provider": { + "name": "identity_provider", + "type": "TypeString", + "description": "The type of identity provider to be used by the VPN client.- `iam`: IBM identity and access managementThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the route on which the unexpected property value was encountered.", + "optional": true + }, + "method": { + "name": "method", + "type": "TypeString", + "description": "The type of authentication.", + "required": true + } + }, + "max_items": 2 + }, { "name": "client_auto_delete_timeout", "type": "TypeInt", @@ -129969,25 +133327,75 @@ "computed": true }, { - "name": "client_dns_server_ips", + "name": "port", + "type": "TypeInt", + "description": "The port number to use for this VPN server.", + "default_value": 443, + "min_value": "1", + "max_value": "65535", + "optional": true + }, + { + "name": "client_idle_timeout", + "type": "TypeInt", + "description": "The seconds a VPN client can be idle before this VPN server will disconnect it. Specify `0` to prevent the server from disconnecting idle clients.", + "default_value": 600, + "min_value": "0", + "max_value": "28800", + "optional": true + }, + { + "name": "health_state", + "type": "TypeString", + "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", + "computed": true + }, + { + "name": "client_auto_delete", + "type": "TypeBool", + "description": "If set to `true`, disconnected VPN clients will be automatically deleted after the `client_auto_delete_timeout` time has passed.", + "computed": true + }, + { + "name": "health_reasons", + "type": "TypeList", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this health state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this health state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this health state.", + "computed": true + } + } + }, + { + "name": "security_groups", "type": "TypeSet", - "description": "The DNS server addresses that will be provided to VPN clients connected to this VPN server. The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", + "description": "The unique identifier for this security group. The security groups to use for this VPN server. If unspecified, the VPC's default security group is used.", + "immutable": true, "optional": true, + "computed": true, "elem": { "type": "TypeString" } }, { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this VPN server.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "health_state", + "name": "href", "type": "TypeString", - "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", + "description": "The URL for this VPN server.", "computed": true }, { @@ -130043,74 +133451,7 @@ } }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "client_authentication", - "type": "TypeList", - "description": "The methods used to authenticate VPN clients to this VPN server. VPN clients must authenticate against all provided methods.", - "required": true, - "elem": { - "client_ca_crn": { - "name": "client_ca_crn", - "type": "TypeString", - "description": "The crn of certificate instance to use for the VPN client certificate authority (CA).", - "optional": true - }, - "identity_provider": { - "name": "identity_provider", - "type": "TypeString", - "description": "The type of identity provider to be used by the VPN client.- `iam`: IBM identity and access managementThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the route on which the unexpected property value was encountered.", - "optional": true - }, - "method": { - "name": "method", - "type": "TypeString", - "description": "The type of authentication.", - "required": true - } - }, - "max_items": 2 - }, - { - "name": "enable_split_tunneling", - "type": "TypeBool", - "description": "Indicates whether the split tunneling is enabled on this VPN server.", - "default_value": false, - "optional": true - }, - { - "name": "vpn_server", - "type": "TypeString", - "description": "The unique identifier for this VPN server.", - "computed": true - }, - { - "name": "protocol", - "type": "TypeString", - "description": "The transport protocol to use for this VPN server.", - "default_value": "udp", - "options": "tcp, udp", - "optional": true - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "The unique identifier for this resource group. The resource group to use. If unspecified, the account's [default resourcegroup](https://cloud.ibm.com/apidocs/resource-manager#introduction) is used.", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "subnets", + "name": "subnets", "type": "TypeSet", "description": "The unique identifier for this subnet. The subnets to provision this VPN server in. Use subnets in different zones for high availability.", "required": true, @@ -130120,94 +133461,6 @@ "max_items": 2, "min_items": 1 }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced.", - "default_value": "vpn_server", - "optional": true - }, - { - "name": "certificate_crn", - "type": "TypeString", - "description": "The crn of certificate instance for this VPN server.", - "required": true - }, - { - "name": "client_auto_delete", - "type": "TypeBool", - "description": "If set to `true`, disconnected VPN clients will be automatically deleted after the `client_auto_delete_timeout` time has passed.", - "computed": true - }, - { - "name": "client_idle_timeout", - "type": "TypeInt", - "description": "The seconds a VPN client can be idle before this VPN server will disconnect it. Specify `0` to prevent the server from disconnecting idle clients.", - "default_value": 600, - "min_value": "0", - "max_value": "28800", - "optional": true - }, - { - "name": "client_ip_pool", - "type": "TypeString", - "description": "The VPN client IPv4 address pool, expressed in CIDR format. The request must not overlap with any existing address prefixes in the VPC or any of the following reserved address ranges: - `127.0.0.0/8` (IPv4 loopback addresses) - `161.26.0.0/16` (IBM services) - `166.8.0.0/14` (Cloud Service Endpoints) - `169.254.0.0/16` (IPv4 link-local addresses) - `224.0.0.0/4` (IPv4 multicast addresses)The prefix length of the client IP address pool's CIDR must be between`/9` (8,388,608 addresses) and `/22` (1024 addresses). A CIDR block that contains twice the number of IP addresses that are required to enable the maximum number of concurrent connections is recommended.", - "required": true, - "matches": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(3[0-2]|[1-2][0-9]|[0-9]))$" - }, - { - "name": "hostname", - "type": "TypeString", - "description": "Fully qualified domain name assigned to this VPN server.", - "computed": true - }, - { - "name": "security_groups", - "type": "TypeSet", - "description": "The unique identifier for this security group. The security groups to use for this VPN server. If unspecified, the VPC's default security group is used.", - "immutable": true, - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the VPN server was created.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this VPN server.", - "computed": true - }, - { - "name": "lifecycle_state", - "type": "TypeString", - "description": "The lifecycle state of the VPN server.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this VPN server. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the VPC this VPN server is serving.", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", - "optional": true - }, - { - "name": "port", - "type": "TypeInt", - "description": "The port number to use for this VPN server.", - "default_value": 443, - "min_value": "1", - "max_value": "65535", - "optional": true - }, { "name": "vpc", "type": "TypeList", @@ -130253,6 +133506,91 @@ "computed": true } } + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The type of resource referenced.", + "default_value": "vpn_server", + "optional": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the VPN server was created.", + "computed": true + }, + { + "name": "hostname", + "type": "TypeString", + "description": "Fully qualified domain name assigned to this VPN server.", + "computed": true + }, + { + "name": "lifecycle_reasons", + "type": "TypeList", + "description": "The reasons for the current lifecycle_state (if any).", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this lifecycle state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this lifecycle state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this lifecycle state.", + "computed": true + } + } + }, + { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this VPN server. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the VPC this VPN server is serving.", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "optional": true + }, + { + "name": "protocol", + "type": "TypeString", + "description": "The transport protocol to use for this VPN server.", + "default_value": "udp", + "options": "tcp, udp", + "optional": true + }, + { + "name": "certificate_crn", + "type": "TypeString", + "description": "The crn of certificate instance for this VPN server.", + "required": true + }, + { + "name": "client_ip_pool", + "type": "TypeString", + "description": "The VPN client IPv4 address pool, expressed in CIDR format. The request must not overlap with any existing address prefixes in the VPC or any of the following reserved address ranges: - `127.0.0.0/8` (IPv4 loopback addresses) - `161.26.0.0/16` (IBM services) - `166.8.0.0/14` (Cloud Service Endpoints) - `169.254.0.0/16` (IPv4 link-local addresses) - `224.0.0.0/4` (IPv4 multicast addresses)The prefix length of the client IP address pool's CIDR must be between`/9` (8,388,608 addresses) and `/22` (1024 addresses). A CIDR block that contains twice the number of IP addresses that are required to enable the maximum number of concurrent connections is recommended.", + "required": true, + "matches": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(3[0-2]|[1-2][0-9]|[0-9]))$" + }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } } ], "ibm_is_vpn_server_client": [ @@ -130292,23 +133630,44 @@ ], "ibm_is_vpn_server_route": [ { - "name": "resource_type", + "name": "health_state", "type": "TypeString", - "description": "The resource type.", + "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", "computed": true }, { - "name": "vpn_server", - "type": "TypeString", - "description": "The VPN server identifier.", - "immutable": true, - "required": true + "name": "lifecycle_reasons", + "type": "TypeList", + "description": "The reasons for the current lifecycle_state (if any).", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this lifecycle state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this lifecycle state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this lifecycle state.", + "computed": true + } + } }, { - "name": "href", + "name": "destination", "type": "TypeString", - "description": "The URL for this VPN route.", - "computed": true + "description": "The destination to use for this VPN route in the VPN server. Must be unique within the VPN server. If an incoming packet does not match any destination, it will be dropped.", + "immutable": true, + "required": true, + "matches": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(3[0-2]|[1-2][0-9]|[0-9]))$" }, { "name": "action", @@ -130342,60 +133701,57 @@ "computed": true }, { - "name": "vpn_route", + "name": "resource_type", "type": "TypeString", - "description": "The VPN route identifier.", + "description": "The resource type.", "computed": true }, { - "name": "destination", + "name": "vpn_server", "type": "TypeString", - "description": "The destination to use for this VPN route in the VPN server. Must be unique within the VPN server. If an incoming packet does not match any destination, it will be dropped.", + "description": "The VPN server identifier.", "immutable": true, - "required": true, - "matches": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(3[0-2]|[1-2][0-9]|[0-9]))$" - } - ], - "ibm_kms_instance_policies": [ + "required": true + }, { - "name": "metrics", + "name": "vpn_route", + "type": "TypeString", + "description": "The VPN route identifier.", + "computed": true + }, + { + "name": "health_reasons", "type": "TypeList", - "description": "Data associated with the metric policy for instance", - "optional": true, + "computed": true, "elem": { - "created_by": { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier for the resource that created the policy.", - "computed": true - }, - "creation_date": { - "name": "creation_date", + "code": { + "name": "code", "type": "TypeString", - "description": "The date the policy was created. The date format follows RFC 3339.", + "description": "A snake case string succinctly identifying the reason for this health state.", "computed": true }, - "enabled": { - "name": "enabled", - "type": "TypeBool", - "description": "If set to true, Key Protect enables a metrics policy on the instance.", - "required": true - }, - "last_updated": { - "name": "last_updated", + "message": { + "name": "message", "type": "TypeString", - "description": "Updates when the policy is replaced or modified. The date format follows RFC 3339.", + "description": "An explanation of the reason for this health state.", "computed": true }, - "updated_by": { - "name": "updated_by", + "more_info": { + "name": "more_info", "type": "TypeString", - "description": "The unique identifier for the resource that updated the policy.", + "description": "Link to documentation about the reason for this health state.", "computed": true } - }, - "max_items": 1 + } }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this VPN route.", + "computed": true + } + ], + "ibm_kms_instance_policies": [ { "name": "instance_id", "type": "TypeString", @@ -130564,39 +133920,77 @@ } }, "max_items": 1 + }, + { + "name": "metrics", + "type": "TypeList", + "description": "Data associated with the metric policy for instance", + "optional": true, + "elem": { + "created_by": { + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier for the resource that created the policy.", + "computed": true + }, + "creation_date": { + "name": "creation_date", + "type": "TypeString", + "description": "The date the policy was created. The date format follows RFC 3339.", + "computed": true + }, + "enabled": { + "name": "enabled", + "type": "TypeBool", + "description": "If set to true, Key Protect enables a metrics policy on the instance.", + "required": true + }, + "last_updated": { + "name": "last_updated", + "type": "TypeString", + "description": "Updates when the policy is replaced or modified. The date format follows RFC 3339.", + "computed": true + }, + "updated_by": { + "name": "updated_by", + "type": "TypeString", + "description": "The unique identifier for the resource that updated the policy.", + "computed": true + } + }, + "max_items": 1 } ], "ibm_kms_key": [ { - "name": "key_id", + "name": "resource_crn", "type": "TypeString", - "description": "Key ID", + "description": "The crn of the resource", "computed": true }, { - "name": "key_name", + "name": "resource_group_name", "type": "TypeString", - "description": "Key name", - "immutable": true, - "required": true + "description": "The resource group name in which resource is provisioned", + "computed": true }, { - "name": "resource_crn", + "name": "description", "type": "TypeString", - "description": "The crn of the resource", - "computed": true + "description": "description of the key", + "immutable": true, + "optional": true }, { - "name": "resource_status", + "name": "type", "type": "TypeString", - "description": "The status of the resource", + "description": "type of service hs-crypto or kms", "computed": true }, { - "name": "key_ring_id", + "name": "encrypted_nonce", "type": "TypeString", - "description": "Key Ring for the Key", - "default_value": "default", + "description": "Only for imported root key", "immutable": true, "optional": true }, @@ -130614,18 +134008,27 @@ "computed": true }, { - "name": "expiration_date", + "name": "key_ring_id", "type": "TypeString", - "description": "The date the key material expires. The date format follows RFC 3339. You can set an expiration date on any key on its creation. A key moves into the Deactivated state within one hour past its expiration date, if one is assigned. If you create a key without specifying an expiration date, the key does not expire", + "description": "Key Ring for the Key", + "default_value": "default", "immutable": true, "optional": true }, { - "name": "resource_name", + "name": "endpoint_type", "type": "TypeString", - "description": "The name of the resource", + "description": "public or private", + "optional": true, "computed": true }, + { + "name": "expiration_date", + "type": "TypeString", + "description": "The date the key material expires. The date format follows RFC 3339. You can set an expiration date on any key on its creation. A key moves into the Deactivated state within one hour past its expiration date, if one is assigned. If you create a key without specifying an expiration date, the key does not expire", + "immutable": true, + "optional": true + }, { "name": "resource_controller_url", "type": "TypeString", @@ -130633,29 +134036,18 @@ "computed": true }, { - "name": "instance_id", + "name": "key_name", "type": "TypeString", - "description": "Key protect or hpcs instance GUID or CRN", - "cloud_data_type": "resource_instance", + "description": "Key name", "immutable": true, - "required": true, - "cloud_data_range": [ - "service:kms|hs-crypto" - ] + "required": true }, { - "name": "type", + "name": "key_id", "type": "TypeString", - "description": "type of service hs-crypto or kms", + "description": "Key ID", "computed": true }, - { - "name": "description", - "type": "TypeString", - "description": "description of the key", - "immutable": true, - "optional": true - }, { "name": "standard_key", "type": "TypeBool", @@ -130664,20 +134056,6 @@ "immutable": true, "optional": true }, - { - "name": "encrypted_nonce", - "type": "TypeString", - "description": "Only for imported root key", - "immutable": true, - "optional": true - }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private", - "optional": true, - "computed": true - }, { "name": "payload", "type": "TypeString", @@ -130701,35 +134079,30 @@ "computed": true }, { - "name": "resource_group_name", + "name": "resource_name", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "The name of the resource", "computed": true - } - ], - "ibm_kms_key_alias": [ - { - "name": "key_id", - "type": "TypeString", - "description": "Key ID", - "immutable": true, - "optional": true }, { - "name": "existing_alias", + "name": "resource_status", "type": "TypeString", - "description": "Existing Alias of the Key", - "immutable": true, - "optional": true + "description": "The status of the resource", + "computed": true }, { - "name": "endpoint_type", + "name": "instance_id", "type": "TypeString", - "description": "public or private", + "description": "Key protect or hpcs instance GUID or CRN", + "cloud_data_type": "resource_instance", "immutable": true, - "optional": true, - "computed": true - }, + "required": true, + "cloud_data_range": [ + "service:kms|hs-crypto" + ] + } + ], + "ibm_kms_key_alias": [ { "name": "instance_id", "type": "TypeString", @@ -130747,13 +134120,34 @@ "description": "Key protect or hpcs key alias name", "immutable": true, "required": true + }, + { + "name": "key_id", + "type": "TypeString", + "description": "Key ID", + "immutable": true, + "optional": true + }, + { + "name": "existing_alias", + "type": "TypeString", + "description": "Existing Alias of the Key", + "immutable": true, + "optional": true + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private", + "immutable": true, + "optional": true, + "computed": true } ], "ibm_kms_key_policies": [ { - "name": "key_id", + "name": "alias", "type": "TypeString", - "description": "Key ID", "optional": true }, { @@ -130765,9 +134159,9 @@ "optional": true }, { - "name": "resource_name", + "name": "resource_status", "type": "TypeString", - "description": "The name of the resource", + "description": "The status of the resource", "computed": true }, { @@ -130794,8 +134188,9 @@ ] }, { - "name": "alias", + "name": "key_id", "type": "TypeString", + "description": "Key ID", "optional": true }, { @@ -130907,9 +134302,9 @@ } }, { - "name": "resource_status", + "name": "resource_name", "type": "TypeString", - "description": "The status of the resource", + "description": "The name of the resource", "computed": true } ], @@ -130953,29 +134348,32 @@ ], "ibm_kms_key_with_policy_overrides": [ { - "name": "resource_status", + "name": "expiration_date", "type": "TypeString", - "description": "The status of the resource", + "description": "The date the key material expires. The date format follows RFC 3339. You can set an expiration date on any key on its creation. A key moves into the Deactivated state within one hour past its expiration date, if one is assigned. If you create a key without specifying an expiration date, the key does not expire", + "immutable": true, + "optional": true + }, + { + "name": "key_id", + "type": "TypeString", + "description": "Key ID", "computed": true }, { - "name": "instance_id", + "name": "key_name", "type": "TypeString", - "description": "Key protect or HPCS instance GUID or CRN", - "cloud_data_type": "resource_instance", + "description": "Key name", "immutable": true, - "required": true, - "cloud_data_range": [ - "service:kms|hs-crypto" - ] + "required": true }, { - "name": "standard_key", - "type": "TypeBool", - "description": "Standard key type", - "default_value": false, + "name": "endpoint_type", + "type": "TypeString", + "description": "Public or Private", "immutable": true, - "optional": true + "optional": true, + "computed": true }, { "name": "payload", @@ -130993,11 +134391,11 @@ "optional": true }, { - "name": "force_delete", - "type": "TypeBool", - "description": "set to true to force delete the key", - "default_value": false, - "optional": true + "name": "crn", + "type": "TypeString", + "description": "Crn of the key", + "cloud_data_type": "crn", + "computed": true }, { "name": "resource_name", @@ -131006,17 +134404,21 @@ "computed": true }, { - "name": "resource_controller_url", + "name": "resource_crn", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", + "description": "The crn of the resource", "computed": true }, { - "name": "description", + "name": "instance_id", "type": "TypeString", - "description": "description of the key", + "description": "Key protect or HPCS instance GUID or CRN", + "cloud_data_type": "resource_instance", "immutable": true, - "optional": true + "required": true, + "cloud_data_range": [ + "service:kms|hs-crypto" + ] }, { "name": "key_ring_id", @@ -131027,45 +134429,25 @@ "optional": true }, { - "name": "endpoint_type", - "type": "TypeString", - "description": "Public or Private", + "name": "standard_key", + "type": "TypeBool", + "description": "Standard key type", + "default_value": false, "immutable": true, - "optional": true, - "computed": true + "optional": true }, { - "name": "crn", + "name": "resource_status", "type": "TypeString", - "description": "Crn of the key", - "cloud_data_type": "crn", + "description": "The status of the resource", "computed": true }, - { - "name": "expiration_date", - "type": "TypeString", - "description": "The date the key material expires. The date format follows RFC 3339. You can set an expiration date on any key on its creation. A key moves into the Deactivated state within one hour past its expiration date, if one is assigned. If you create a key without specifying an expiration date, the key does not expire", - "immutable": true, - "optional": true - }, { "name": "resource_group_name", "type": "TypeString", "description": "The resource group name in which resource is provisioned", "computed": true }, - { - "name": "type", - "type": "TypeString", - "description": "Type of service hs-crypto or kms", - "computed": true - }, - { - "name": "instance_crn", - "type": "TypeString", - "description": "Key protect or HPCS instance CRN", - "computed": true - }, { "name": "rotation", "type": "TypeList", @@ -131088,38 +134470,30 @@ } }, { - "name": "dual_auth_delete", - "type": "TypeList", - "description": "Data associated with the dual authorization delete policy.", - "optional": true, - "computed": true, - "elem": { - "enabled": { - "name": "enabled", - "type": "TypeBool", - "description": "If set to true, Key Protect enables a dual authorization policy on a single key.", - "required": true - } - } + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", + "computed": true }, { - "name": "resource_crn", + "name": "description", "type": "TypeString", - "description": "The crn of the resource", - "computed": true + "description": "description of the key", + "immutable": true, + "optional": true }, { - "name": "key_id", + "name": "type", "type": "TypeString", - "description": "Key ID", + "description": "Type of service hs-crypto or kms", "computed": true }, { - "name": "key_name", - "type": "TypeString", - "description": "Key name", - "immutable": true, - "required": true + "name": "force_delete", + "type": "TypeBool", + "description": "set to true to force delete the key", + "default_value": false, + "optional": true }, { "name": "encrypted_nonce", @@ -131127,28 +134501,44 @@ "description": "Only for imported root key", "immutable": true, "optional": true + }, + { + "name": "instance_crn", + "type": "TypeString", + "description": "Key protect or HPCS instance CRN", + "computed": true + }, + { + "name": "dual_auth_delete", + "type": "TypeList", + "description": "Data associated with the dual authorization delete policy.", + "optional": true, + "computed": true, + "elem": { + "enabled": { + "name": "enabled", + "type": "TypeBool", + "description": "If set to true, Key Protect enables a dual authorization policy on a single key.", + "required": true + } + } } ], "ibm_kp_key": [ { - "name": "payload", - "type": "TypeString", - "optional": true, - "computed": true + "name": "force_delete", + "type": "TypeBool", + "description": "set to true to force delete the key", + "default_value": false, + "optional": true }, { - "name": "iv_value", + "name": "encrypted_nonce", "type": "TypeString", "description": "Only for imported root key", "immutable": true, "optional": true }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, { "name": "standard_key", "type": "TypeBool", @@ -131158,25 +134548,11 @@ "optional": true }, { - "name": "resource_controller_url", + "name": "key_id", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", + "description": "Key ID", "computed": true }, - { - "name": "key_protect_id", - "type": "TypeString", - "description": "Key protect instance ID", - "immutable": true, - "required": true - }, - { - "name": "key_name", - "type": "TypeString", - "description": "Key name", - "immutable": true, - "required": true - }, { "name": "crn", "type": "TypeString", @@ -131197,20 +134573,20 @@ "computed": true }, { - "name": "key_id", + "name": "key_protect_id", "type": "TypeString", - "description": "Key ID", - "computed": true + "description": "Key protect instance ID", + "immutable": true, + "required": true }, { - "name": "force_delete", - "type": "TypeBool", - "description": "set to true to force delete the key", - "default_value": false, - "optional": true + "name": "payload", + "type": "TypeString", + "optional": true, + "computed": true }, { - "name": "encrypted_nonce", + "name": "iv_value", "type": "TypeString", "description": "Only for imported root key", "immutable": true, @@ -131221,49 +134597,33 @@ "type": "TypeString", "description": "The crn of the resource", "computed": true - } - ], - "ibm_lb": [ - { - "name": "dedicated", - "type": "TypeBool", - "description": "Boolena value true if Load balncer is dedicated type", - "default_value": false, - "immutable": true, - "optional": true }, { - "name": "hostname", + "name": "key_name", "type": "TypeString", - "computed": true - }, - { - "name": "connections", - "type": "TypeInt", - "description": "Connections value", + "description": "Key name", + "immutable": true, "required": true }, { - "name": "ip_address", + "name": "resource_controller_url", "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", "computed": true }, { - "name": "security_certificate_id", - "type": "TypeInt", - "description": "Security certificate ID", - "optional": true - }, + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true + } + ], + "ibm_lb": [ { "name": "subnet_id", "type": "TypeInt", "computed": true }, - { - "name": "ssl_enabled", - "type": "TypeBool", - "computed": true - }, { "name": "ssl_offload", "type": "TypeBool", @@ -131281,6 +134641,12 @@ "type": "TypeString" } }, + { + "name": "connections", + "type": "TypeInt", + "description": "Connections value", + "required": true + }, { "name": "datacenter", "type": "TypeString", @@ -131288,6 +134654,22 @@ "immutable": true, "required": true }, + { + "name": "security_certificate_id", + "type": "TypeInt", + "description": "Security certificate ID", + "optional": true + }, + { + "name": "ssl_enabled", + "type": "TypeBool", + "computed": true + }, + { + "name": "hostname", + "type": "TypeString", + "computed": true + }, { "name": "ha_enabled", "type": "TypeBool", @@ -131295,9 +134677,32 @@ "default_value": false, "immutable": true, "optional": true + }, + { + "name": "ip_address", + "type": "TypeString", + "computed": true + }, + { + "name": "dedicated", + "type": "TypeBool", + "description": "Boolena value true if Load balncer is dedicated type", + "default_value": false, + "immutable": true, + "optional": true } ], "ibm_lb_service": [ + { + "name": "tags", + "type": "TypeSet", + "description": "Tags for the resource", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, { "name": "service_group_id", "type": "TypeInt", @@ -131335,28 +134740,20 @@ "type": "TypeInt", "description": "Weight value", "required": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "Tags for the resource", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } } ], "ibm_lb_service_group": [ { - "name": "tags", - "type": "TypeSet", - "description": "List of tags", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "virtual_server_id", + "type": "TypeInt", + "description": "Virtual server ID", + "computed": true + }, + { + "name": "service_group_id", + "type": "TypeInt", + "description": "Service group ID", + "computed": true }, { "name": "load_balancer_id", @@ -131383,18 +134780,6 @@ "description": "Timeout value", "optional": true }, - { - "name": "virtual_server_id", - "type": "TypeInt", - "description": "Virtual server ID", - "computed": true - }, - { - "name": "service_group_id", - "type": "TypeInt", - "description": "Service group ID", - "computed": true - }, { "name": "allocation", "type": "TypeInt", @@ -131406,20 +134791,30 @@ "type": "TypeInt", "description": "Port number", "required": true + }, + { + "name": "tags", + "type": "TypeSet", + "description": "List of tags", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } } ], "ibm_lb_vpx": [ { - "name": "datacenter", - "type": "TypeString", - "description": "Datacenter name", + "name": "speed", + "type": "TypeInt", + "description": "Speed value", "immutable": true, "required": true }, { - "name": "private_vlan_id", - "type": "TypeInt", - "description": "Private VLAN id", + "name": "public_subnet", + "type": "TypeString", + "description": "Public subnet", "immutable": true, "optional": true, "computed": true @@ -131430,12 +134825,6 @@ "description": "Name", "computed": true }, - { - "name": "type", - "type": "TypeString", - "description": "Type of the VPX", - "computed": true - }, { "name": "private_subnet", "type": "TypeString", @@ -131444,12 +134833,6 @@ "optional": true, "computed": true }, - { - "name": "management_ip_address", - "type": "TypeString", - "description": "management IP address", - "computed": true - }, { "name": "tags", "type": "TypeSet", @@ -131461,18 +134844,25 @@ } }, { - "name": "version", + "name": "type", "type": "TypeString", - "description": "version info", + "description": "Type of the VPX", + "computed": true + }, + { + "name": "datacenter", + "type": "TypeString", + "description": "Datacenter name", "immutable": true, "required": true }, { - "name": "ip_count", + "name": "public_vlan_id", "type": "TypeInt", - "description": "IP address count", + "description": "Piblic VLAN id", "immutable": true, - "required": true + "optional": true, + "computed": true }, { "name": "vip_pool", @@ -131484,9 +134874,9 @@ } }, { - "name": "speed", - "type": "TypeInt", - "description": "Speed value", + "name": "version", + "type": "TypeString", + "description": "version info", "immutable": true, "required": true }, @@ -131498,19 +134888,24 @@ "required": true }, { - "name": "public_vlan_id", + "name": "ip_count", "type": "TypeInt", - "description": "Piblic VLAN id", + "description": "IP address count", + "immutable": true, + "required": true + }, + { + "name": "private_vlan_id", + "type": "TypeInt", + "description": "Private VLAN id", "immutable": true, "optional": true, "computed": true }, { - "name": "public_subnet", + "name": "management_ip_address", "type": "TypeString", - "description": "Public subnet", - "immutable": true, - "optional": true, + "description": "management IP address", "computed": true } ], @@ -131549,22 +134944,23 @@ ], "ibm_lb_vpx_service": [ { - "name": "weight", - "type": "TypeInt", - "description": "Weight value", + "name": "name", + "type": "TypeString", + "description": "name", + "immutable": true, "required": true }, { - "name": "vip_id", + "name": "destination_ip_address", "type": "TypeString", - "description": "VIP id", + "description": "Destination IP Address", "immutable": true, "required": true }, { - "name": "name", - "type": "TypeString", - "description": "name", + "name": "destination_port", + "type": "TypeInt", + "description": "Destination Port number", "immutable": true, "required": true }, @@ -131574,6 +134970,19 @@ "description": "Number of connections limit", "required": true }, + { + "name": "vip_id", + "type": "TypeString", + "description": "VIP id", + "immutable": true, + "required": true + }, + { + "name": "weight", + "type": "TypeInt", + "description": "Weight value", + "required": true + }, { "name": "health_check", "type": "TypeString", @@ -131596,49 +135005,49 @@ "elem": { "type": "TypeString" } - }, + } + ], + "ibm_lb_vpx_vip": [ { - "name": "destination_ip_address", + "name": "name", "type": "TypeString", - "description": "Destination IP Address", + "description": "Name", "immutable": true, "required": true }, { - "name": "destination_port", + "name": "source_port", "type": "TypeInt", - "description": "Destination Port number", + "description": "Source Port number", "immutable": true, "required": true - } - ], - "ibm_lb_vpx_vip": [ + }, { - "name": "persistence", + "name": "virtual_ip_address", "type": "TypeString", - "description": "Persistance value", - "optional": true, - "computed": true + "description": "Virtual IP address", + "required": true }, { - "name": "source_port", + "name": "nad_controller_id", "type": "TypeInt", - "description": "Source Port number", + "description": "NAD controller ID", "immutable": true, "required": true }, { - "name": "type", + "name": "persistence", "type": "TypeString", - "description": "Type", - "immutable": true, - "required": true + "description": "Persistance value", + "optional": true, + "computed": true }, { - "name": "virtual_ip_address", - "type": "TypeString", - "description": "Virtual IP address", - "required": true + "name": "security_certificate_id", + "type": "TypeInt", + "description": "security certificate ID", + "immutable": true, + "optional": true }, { "name": "tags", @@ -131650,13 +135059,6 @@ "type": "TypeString" } }, - { - "name": "nad_controller_id", - "type": "TypeInt", - "description": "NAD controller ID", - "immutable": true, - "required": true - }, { "name": "load_balancing_method", "type": "TypeString", @@ -131664,27 +135066,21 @@ "required": true }, { - "name": "name", + "name": "type", "type": "TypeString", - "description": "Name", + "description": "Type", "immutable": true, "required": true - }, + } + ], + "ibm_lbaas": [ { - "name": "security_certificate_id", - "type": "TypeInt", - "description": "security certificate ID", + "name": "type", + "type": "TypeString", + "description": "Specifies if a load balancer is public or private", + "default_value": "PUBLIC", "immutable": true, "optional": true - } - ], - "ibm_lbaas": [ - { - "name": "use_system_public_ip_pool", - "type": "TypeBool", - "description": "\"in public loadbalancer - Public IP address allocation done by system public IP pool or public subnet.\"", - "optional": true, - "computed": true }, { "name": "protocols", @@ -131749,6 +135145,76 @@ } } }, + { + "name": "ssl_ciphers", + "type": "TypeSet", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "status", + "type": "TypeString", + "description": "The operation status 'ONLINE' or 'OFFLINE' of a load balancer.", + "computed": true + }, + { + "name": "vip", + "type": "TypeString", + "description": "The virtual ip address of this load balancer", + "computed": true + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true + }, + { + "name": "resource_status", + "type": "TypeString", + "description": "The status of the resource", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The load balancer's name.", + "immutable": true, + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Description of a load balancer.", + "optional": true + }, + { + "name": "subnets", + "type": "TypeList", + "description": "The subnet where this Load Balancer will be provisioned.", + "immutable": true, + "required": true, + "elem": { + "type": "TypeInt" + }, + "max_items": 1, + "min_items": 1 + }, + { + "name": "datacenter", + "type": "TypeString", + "computed": true + }, + { + "name": "use_system_public_ip_pool", + "type": "TypeBool", + "description": "\"in public loadbalancer - Public IP address allocation done by system public IP pool or public subnet.\"", + "optional": true, + "computed": true + }, { "name": "wait_time_minutes", "type": "TypeInt", @@ -131797,82 +135263,11 @@ } } }, - { - "name": "subnets", - "type": "TypeList", - "description": "The subnet where this Load Balancer will be provisioned.", - "immutable": true, - "required": true, - "elem": { - "type": "TypeInt" - }, - "max_items": 1, - "min_items": 1 - }, - { - "name": "vip", - "type": "TypeString", - "description": "The virtual ip address of this load balancer", - "computed": true - }, - { - "name": "datacenter", - "type": "TypeString", - "computed": true - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The operation status 'ONLINE' or 'OFFLINE' of a load balancer.", - "computed": true - }, { "name": "resource_name", "type": "TypeString", "description": "The name of the resource", "computed": true - }, - { - "name": "resource_status", - "type": "TypeString", - "description": "The status of the resource", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The load balancer's name.", - "immutable": true, - "required": true - }, - { - "name": "type", - "type": "TypeString", - "description": "Specifies if a load balancer is public or private", - "default_value": "PUBLIC", - "immutable": true, - "optional": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Description of a load balancer.", - "optional": true - }, - { - "name": "ssl_ciphers", - "type": "TypeSet", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } } ], "ibm_lbaas_health_monitor": [ @@ -131932,12 +135327,6 @@ } ], "ibm_lbaas_server_instance_attachment": [ - { - "name": "uuid", - "type": "TypeString", - "description": "The UUID of a load balancer member", - "computed": true - }, { "name": "private_ip_address", "type": "TypeString", @@ -131958,6 +135347,12 @@ "description": "The UUID of a load balancer", "immutable": true, "required": true + }, + { + "name": "uuid", + "type": "TypeString", + "description": "The UUID of a load balancer member", + "computed": true } ], "ibm_metrics_router_route": [ @@ -131967,6 +135362,18 @@ "description": "Id of the ibm_metrics_router_route", "computed": true }, + { + "name": "created_at", + "type": "TypeString", + "description": "The timestamp of the route creation time.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The timestamp of the route last updated time.", + "computed": true + }, { "name": "name", "type": "TypeString", @@ -132040,18 +135447,6 @@ "description": "The crn of the route resource.", "cloud_data_type": "crn", "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The timestamp of the route creation time.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "The timestamp of the route last updated time.", - "computed": true } ], "ibm_metrics_router_settings": [ @@ -132111,31 +135506,10 @@ } ], "ibm_metrics_router_target": [ - { - "name": "created_at", - "type": "TypeString", - "description": "The timestamp of the target creation time.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "The timestamp of the target last updated time.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the target. The name must be 1000 characters or less, and cannot include any special characters other than `(space) - . _ :`. Do not include any personal identifying information (PII) in any resource names.", - "required": true, - "min_length": 1, - "max_length": 1000, - "matches": "^[a-zA-Z0-9 \\-._:]+$" - }, { "name": "destination_crn", "type": "TypeString", - "description": "The CRN of a destination service instance or resource.", + "description": "The CRN of a destination service instance or resource. Ensure you have a service authorization between IBM Cloud Metrics Routing and your Cloud resource. Read [S2S authorization](https://cloud.ibm.com/docs/metrics-router?topic=metrics-router-target-monitoring\u0026interface=ui#target-monitoring-ui) for details.", "required": true, "min_length": 3, "max_length": 1000, @@ -132163,25 +135537,30 @@ "type": "TypeString", "description": "The type of the target.", "computed": true - } - ], - "ibm_multi_vlan_firewall": [ + }, { - "name": "addon_configuration", - "type": "TypeList", - "description": "High Availability - [Web Filtering Add-on, NGFW Add-on, AV Add-on] or [Web Filtering Add-on, NGFW Add-on, AV Add-on]", - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "created_at", + "type": "TypeString", + "description": "The timestamp of the target creation time.", + "computed": true }, { - "name": "datacenter", + "name": "updated_at", "type": "TypeString", - "description": "Datacenter name", - "immutable": true, - "required": true + "description": "The timestamp of the target last updated time.", + "computed": true }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the target. The name must be 1000 characters or less, and cannot include any special characters other than `(space) - . _ :`. Do not include any personal identifying information (PII) in any resource names.", + "required": true, + "min_length": 1, + "max_length": 1000, + "matches": "^[a-zA-Z0-9 \\-._:]+$" + } + ], + "ibm_multi_vlan_firewall": [ { "name": "pod", "type": "TypeString", @@ -132197,41 +135576,41 @@ "required": true }, { - "name": "private_vlan_id", + "name": "public_vlan_id", "type": "TypeInt", - "description": "Private VLAN id", + "description": "Public VLAN id", "computed": true }, { - "name": "private_ip", + "name": "firewall_type", "type": "TypeString", - "description": "Private IP Address", - "computed": true + "description": "Firewall type", + "immutable": true, + "required": true }, { - "name": "password", + "name": "public_ip", "type": "TypeString", - "description": "Password", - "secure": true, + "description": "Public IP Address", "computed": true }, { - "name": "public_vlan_id", - "type": "TypeInt", - "description": "Public VLAN id", + "name": "private_ip", + "type": "TypeString", + "description": "Private IP Address", "computed": true }, { - "name": "firewall_type", + "name": "datacenter", "type": "TypeString", - "description": "Firewall type", + "description": "Datacenter name", "immutable": true, "required": true }, { - "name": "public_ip", - "type": "TypeString", - "description": "Public IP Address", + "name": "private_vlan_id", + "type": "TypeInt", + "description": "Private VLAN id", "computed": true }, { @@ -132245,17 +135624,38 @@ "type": "TypeString", "description": "User name", "computed": true + }, + { + "name": "password", + "type": "TypeString", + "description": "Password", + "secure": true, + "computed": true + }, + { + "name": "addon_configuration", + "type": "TypeList", + "description": "High Availability - [Web Filtering Add-on, NGFW Add-on, AV Add-on] or [Web Filtering Add-on, NGFW Add-on, AV Add-on]", + "optional": true, + "elem": { + "type": "TypeString" + } } ], "ibm_network_gateway": [ + { + "name": "private_ip_address_id", + "type": "TypeInt", + "computed": true + }, { "name": "private_ipv4_address", "type": "TypeString", "computed": true }, { - "name": "private_vlan_id", - "type": "TypeInt", + "name": "public_ipv4_address", + "type": "TypeString", "computed": true }, { @@ -132264,8 +135664,8 @@ "computed": true }, { - "name": "status", - "type": "TypeString", + "name": "public_ipv6_address_id", + "type": "TypeInt", "computed": true }, { @@ -132489,31 +135889,6 @@ "max_items": 2, "min_items": 1 }, - { - "name": "associated_vlans", - "type": "TypeList", - "description": "The VLAN instances associated with this Network Gateway", - "computed": true, - "elem": { - "bypass": { - "name": "bypass", - "type": "TypeBool", - "description": "Indicates if the VLAN is in bypass or routed modes", - "computed": true - }, - "network_vlan_id": { - "name": "network_vlan_id", - "type": "TypeInt", - "description": "The Identifier of the VLAN which is associated", - "computed": true - }, - "vlan_id": { - "name": "vlan_id", - "type": "TypeInt", - "computed": true - } - } - }, { "name": "name", "type": "TypeString", @@ -132521,17 +135896,22 @@ "required": true }, { - "name": "private_ip_address_id", - "type": "TypeInt", - "computed": true + "name": "ssh_key_ids", + "type": "TypeList", + "immutable": true, + "optional": true, + "elem": { + "type": "TypeInt" + } }, { - "name": "public_ipv4_address", + "name": "post_install_script_uri", "type": "TypeString", - "computed": true + "immutable": true, + "optional": true }, { - "name": "public_ipv6_address_id", + "name": "private_vlan_id", "type": "TypeInt", "computed": true }, @@ -132541,19 +135921,34 @@ "computed": true }, { - "name": "ssh_key_ids", + "name": "status", + "type": "TypeString", + "computed": true + }, + { + "name": "associated_vlans", "type": "TypeList", - "immutable": true, - "optional": true, + "description": "The VLAN instances associated with this Network Gateway", + "computed": true, "elem": { - "type": "TypeInt" + "bypass": { + "name": "bypass", + "type": "TypeBool", + "description": "Indicates if the VLAN is in bypass or routed modes", + "computed": true + }, + "network_vlan_id": { + "name": "network_vlan_id", + "type": "TypeInt", + "description": "The Identifier of the VLAN which is associated", + "computed": true + }, + "vlan_id": { + "name": "vlan_id", + "type": "TypeInt", + "computed": true + } } - }, - { - "name": "post_install_script_uri", - "type": "TypeString", - "immutable": true, - "optional": true } ], "ibm_network_gateway_vlan_association": [ @@ -132604,12 +135999,6 @@ } ], "ibm_network_public_ip": [ - { - "name": "ip_address", - "type": "TypeString", - "description": "IP Address", - "computed": true - }, { "name": "routes_to", "type": "TypeString", @@ -132631,40 +136020,21 @@ "type": "TypeString", "description": "Additional notes", "optional": true + }, + { + "name": "ip_address", + "type": "TypeString", + "description": "IP Address", + "computed": true } ], "ibm_network_vlan": [ { - "name": "subnets", - "type": "TypeSet", - "computed": true, - "elem": { - "cidr": { - "name": "cidr", - "type": "TypeInt", - "computed": true - }, - "gateway": { - "name": "gateway", - "type": "TypeString", - "computed": true - }, - "subnet": { - "name": "subnet", - "type": "TypeString", - "computed": true - }, - "subnet_size": { - "name": "subnet_size", - "type": "TypeInt", - "computed": true - }, - "subnet_type": { - "name": "subnet_type", - "type": "TypeString", - "computed": true - } - } + "name": "type", + "type": "TypeString", + "description": "VLAN type", + "immutable": true, + "required": true }, { "name": "name", @@ -132692,12 +136062,6 @@ "description": "Zzset to true if VLAN is managed by softlayer", "computed": true }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - }, { "name": "resource_name", "type": "TypeString", @@ -132711,19 +136075,44 @@ "immutable": true, "required": true }, - { - "name": "type", - "type": "TypeString", - "description": "VLAN type", - "immutable": true, - "required": true - }, { "name": "child_resource_count", "type": "TypeInt", "description": "Child resource count", "computed": true }, + { + "name": "subnets", + "type": "TypeSet", + "computed": true, + "elem": { + "cidr": { + "name": "cidr", + "type": "TypeInt", + "computed": true + }, + "gateway": { + "name": "gateway", + "type": "TypeString", + "computed": true + }, + "subnet": { + "name": "subnet", + "type": "TypeString", + "computed": true + }, + "subnet_size": { + "name": "subnet_size", + "type": "TypeInt", + "computed": true + }, + "subnet_type": { + "name": "subnet_type", + "type": "TypeString", + "computed": true + } + } + }, { "name": "tags", "type": "TypeSet", @@ -132733,6 +136122,12 @@ "elem": { "type": "TypeString" } + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true } ], "ibm_network_vlan_spanning": [ @@ -132744,18 +136139,6 @@ } ], "ibm_ob_logging": [ - { - "name": "agent_namespace", - "type": "TypeString", - "description": "Agent Namespace", - "computed": true - }, - { - "name": "discovered_agent", - "type": "TypeBool", - "description": "Discovered agent", - "computed": true - }, { "name": "cluster", "type": "TypeString", @@ -132764,9 +136147,17 @@ "required": true }, { - "name": "daemonset_name", + "name": "instance_id", "type": "TypeString", - "description": "Daemon Set Name", + "description": "ID of the LogDNA service instance to latch", + "cloud_data_type": "resource_instance", + "required": true + }, + { + "name": "logdna_ingestion_key", + "type": "TypeString", + "description": "LogDNA ingestion key", + "optional": true, "computed": true }, { @@ -132782,23 +136173,15 @@ "computed": true }, { - "name": "namespace", - "type": "TypeString", - "description": "Namespace", + "name": "discovered_agent", + "type": "TypeBool", + "description": "Discovered agent", "computed": true }, { - "name": "instance_id", - "type": "TypeString", - "description": "ID of the LogDNA service instance to latch", - "cloud_data_type": "resource_instance", - "required": true - }, - { - "name": "logdna_ingestion_key", + "name": "namespace", "type": "TypeString", - "description": "LogDNA ingestion key", - "optional": true, + "description": "Namespace", "computed": true }, { @@ -132808,22 +136191,6 @@ "optional": true, "computed": true }, - { - "name": "crn", - "type": "TypeString", - "description": "CRN", - "cloud_data_type": "crn", - "computed": true - } - ], - "ibm_ob_monitoring": [ - { - "name": "cluster", - "type": "TypeString", - "description": "Name or ID of the cluster to be used.", - "immutable": true, - "required": true - }, { "name": "daemonset_name", "type": "TypeString", @@ -132842,6 +136209,15 @@ "description": "CRN", "cloud_data_type": "crn", "computed": true + } + ], + "ibm_ob_monitoring": [ + { + "name": "cluster", + "type": "TypeString", + "description": "Name or ID of the cluster to be used.", + "immutable": true, + "required": true }, { "name": "instance_id", @@ -132850,13 +136226,6 @@ "cloud_data_type": "resource_instance", "required": true }, - { - "name": "sysdig_access_key", - "type": "TypeString", - "description": "Sysdig ingestion key", - "optional": true, - "computed": true - }, { "name": "private_endpoint", "type": "TypeBool", @@ -132871,9 +136240,16 @@ "computed": true }, { - "name": "agent_key", + "name": "agent_namespace", "type": "TypeString", - "description": "Agent key name", + "description": "Agent Namespace", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "CRN", + "cloud_data_type": "crn", "computed": true }, { @@ -132887,83 +136263,102 @@ "type": "TypeString", "description": "Namespace", "computed": true - } - ], - "ibm_object_storage_account": [ + }, { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", + "name": "sysdig_access_key", + "type": "TypeString", + "description": "Sysdig ingestion key", "optional": true, - "elem": { - "type": "TypeString" - } + "computed": true }, { - "name": "name", + "name": "daemonset_name", "type": "TypeString", + "description": "Daemon Set Name", "computed": true }, { - "name": "local_note", + "name": "agent_key", "type": "TypeString", - "optional": true + "description": "Agent key name", + "computed": true } ], - "ibm_org": [ + "ibm_object_storage_account": [ { "name": "name", "type": "TypeString", - "description": "Org name, for example myorg@domain", - "required": true + "computed": true }, { - "name": "org_quota_definition_guid", + "name": "local_note", "type": "TypeString", - "description": "Org quota guid", - "optional": true, - "computed": true + "optional": true }, { - "name": "billing_managers", + "name": "tags", "type": "TypeSet", - "description": "The IBMID of the users who will have billing manager role in this org, ex - user@example.com", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + } + ], + "ibm_org": [ + { + "name": "auditors", + "type": "TypeSet", + "description": "The IBMID of the users who will have auditor role in this org, ex - user@example.com", "optional": true, "elem": { "type": "TypeString" } }, { - "name": "managers", + "name": "users", "type": "TypeSet", - "description": "The IBMID of the users who will have manager role in this org, ex - user@example.com", + "description": "The IBMID of the users who will have user role in this org, ex - user@example.com", "optional": true, "elem": { "type": "TypeString" } }, { - "name": "auditors", + "name": "tags", "type": "TypeSet", - "description": "The IBMID of the users who will have auditor role in this org, ex - user@example.com", + "cloud_data_type": "tags", "optional": true, "elem": { "type": "TypeString" } }, { - "name": "users", + "name": "name", + "type": "TypeString", + "description": "Org name, for example myorg@domain", + "required": true + }, + { + "name": "org_quota_definition_guid", + "type": "TypeString", + "description": "Org quota guid", + "optional": true, + "computed": true + }, + { + "name": "billing_managers", "type": "TypeSet", - "description": "The IBMID of the users who will have user role in this org, ex - user@example.com", + "description": "The IBMID of the users who will have billing manager role in this org, ex - user@example.com", "optional": true, "elem": { "type": "TypeString" } }, { - "name": "tags", + "name": "managers", "type": "TypeSet", - "cloud_data_type": "tags", + "description": "The IBMID of the users who will have manager role in this org, ex - user@example.com", "optional": true, "elem": { "type": "TypeString" @@ -132979,26 +136374,25 @@ "required": true }, { - "name": "pi_capture_volume_ids", - "type": "TypeSet", - "description": "List of Data volume IDs", + "name": "pi_capture_cloud_storage_secret_key", + "type": "TypeString", + "description": "Name of the Cloud Storage Secret Key", + "secure": true, "immutable": true, - "optional": true, - "elem": { - "type": "TypeString" - } + "optional": true }, { - "name": "pi_capture_cloud_storage_region", + "name": "pi_capture_storage_image_path", "type": "TypeString", - "description": "List of Regions to use", + "description": "Cloud Storage Image Path (bucket-name [/folder/../..])", "immutable": true, "optional": true }, { - "name": "pi_capture_storage_image_path", + "name": "pi_capture_cloud_storage_access_key", "type": "TypeString", - "description": "Cloud Storage Image Path (bucket-name [/folder/../..])", + "description": "Name of Cloud Storage Access Key", + "secure": true, "immutable": true, "optional": true }, @@ -133016,49 +136410,38 @@ "required": true }, { - "name": "pi_capture_destination", + "name": "pi_capture_name", "type": "TypeString", - "description": "Destination for the deployable image", + "description": "Name of the capture to create. Note : this must be unique", "immutable": true, "required": true }, { - "name": "pi_capture_cloud_storage_access_key", + "name": "pi_capture_destination", "type": "TypeString", - "description": "Name of Cloud Storage Access Key", - "secure": true, + "description": "Destination for the deployable image", "immutable": true, - "optional": true + "required": true }, { - "name": "pi_capture_cloud_storage_secret_key", - "type": "TypeString", - "description": "Name of the Cloud Storage Secret Key", - "secure": true, + "name": "pi_capture_volume_ids", + "type": "TypeSet", + "description": "List of Data volume IDs", "immutable": true, - "optional": true + "optional": true, + "elem": { + "type": "TypeString" + } }, { - "name": "pi_capture_name", + "name": "pi_capture_cloud_storage_region", "type": "TypeString", - "description": "Name of the capture to create. Note : this must be unique", + "description": "List of Regions to use", "immutable": true, - "required": true + "optional": true } ], "ibm_pi_cloud_connection": [ - { - "name": "connection_mode", - "type": "TypeString", - "description": "Type of service the gateway is attached to", - "computed": true - }, - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "description": "PI cloud instance ID", - "required": true - }, { "name": "pi_cloud_connection_global_routing", "type": "TypeBool", @@ -133067,34 +136450,21 @@ "optional": true }, { - "name": "pi_cloud_connection_metered", - "type": "TypeBool", - "description": "Enable metered for this cloud connection", - "default_value": false, - "optional": true - }, - { - "name": "pi_cloud_connection_gre_cidr", - "type": "TypeString", - "description": "GRE network in CIDR notation", - "optional": true - }, - { - "name": "status", + "name": "ibm_ip_address", "type": "TypeString", - "description": "Link status", + "description": "IBM IP address", "computed": true }, { - "name": "gre_source_address", + "name": "user_ip_address", "type": "TypeString", - "description": "GRE auto-assigned source IP address", + "description": "User IP address", "computed": true }, { - "name": "pi_cloud_connection_name", + "name": "pi_cloud_instance_id", "type": "TypeString", - "description": "Name of the cloud connection", + "description": "PI cloud instance ID", "required": true }, { @@ -133104,14 +136474,11 @@ "required": true }, { - "name": "pi_cloud_connection_networks", - "type": "TypeSet", - "description": "Set of Networks to attach to this cloud connection", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "pi_cloud_connection_metered", + "type": "TypeBool", + "description": "Enable metered for this cloud connection", + "default_value": false, + "optional": true }, { "name": "pi_cloud_connection_classic_enabled", @@ -133121,21 +136488,10 @@ "optional": true }, { - "name": "user_ip_address", - "type": "TypeString", - "description": "User IP address", - "computed": true - }, - { - "name": "port", - "type": "TypeString", - "description": "Port", - "computed": true - }, - { - "name": "pi_cloud_connection_gre_destination_address", - "type": "TypeString", - "description": "GRE destination IP address", + "name": "pi_cloud_connection_vpc_enabled", + "type": "TypeBool", + "description": "Enable VPC for this cloud connection", + "default_value": false, "optional": true }, { @@ -133147,13 +136503,6 @@ "type": "TypeString" } }, - { - "name": "pi_cloud_connection_vpc_enabled", - "type": "TypeBool", - "description": "Enable VPC for this cloud connection", - "default_value": false, - "optional": true - }, { "name": "pi_cloud_connection_transit_enabled", "type": "TypeBool", @@ -133161,6 +136510,24 @@ "default_value": false, "optional": true }, + { + "name": "pi_cloud_connection_name", + "type": "TypeString", + "description": "Name of the cloud connection", + "required": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Link status", + "computed": true + }, + { + "name": "connection_mode", + "type": "TypeString", + "description": "Type of service the gateway is attached to", + "computed": true + }, { "name": "cloud_connection_id", "type": "TypeString", @@ -133168,10 +136535,38 @@ "computed": true }, { - "name": "ibm_ip_address", + "name": "pi_cloud_connection_gre_cidr", "type": "TypeString", - "description": "IBM IP address", + "description": "GRE network in CIDR notation", + "optional": true + }, + { + "name": "pi_cloud_connection_gre_destination_address", + "type": "TypeString", + "description": "GRE destination IP address", + "optional": true + }, + { + "name": "port", + "type": "TypeString", + "description": "Port", + "computed": true + }, + { + "name": "gre_source_address", + "type": "TypeString", + "description": "GRE auto-assigned source IP address", "computed": true + }, + { + "name": "pi_cloud_connection_networks", + "type": "TypeSet", + "description": "Set of Networks to attach to this cloud connection", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } } ], "ibm_pi_cloud_connection_network_attach": [ @@ -133219,9 +136614,10 @@ ], "ibm_pi_dhcp": [ { - "name": "pi_dhcp_name", - "type": "TypeString", - "description": "Optional name of DHCP Service (will be prefixed by DHCP identifier)", + "name": "pi_dhcp_snat_enabled", + "type": "TypeBool", + "description": "Indicates if SNAT will be enabled for the DHCP service", + "default_value": true, "immutable": true, "optional": true }, @@ -133232,31 +136628,10 @@ "computed": true }, { - "name": "leases", - "type": "TypeList", - "description": "The list of DHCP Server PVM Instance leases", - "computed": true, - "elem": { - "instance_ip": { - "name": "instance_ip", - "type": "TypeString", - "description": "The IP of the PVM Instance", - "computed": true - }, - "instance_mac": { - "name": "instance_mac", - "type": "TypeString", - "description": "The MAC Address of the PVM Instance", - "computed": true - } - } - }, - { - "name": "pi_cloud_instance_id", + "name": "network_name", "type": "TypeString", - "description": "PI cloud instance ID", - "immutable": true, - "required": true + "description": "The name of the DHCP Server private network", + "computed": true }, { "name": "pi_cidr", @@ -133280,13 +136655,32 @@ "optional": true }, { - "name": "pi_dhcp_snat_enabled", - "type": "TypeBool", - "description": "Indicates if SNAT will be enabled for the DHCP service", - "default_value": true, + "name": "pi_dhcp_name", + "type": "TypeString", + "description": "Optional name of DHCP Service (will be prefixed by DHCP identifier)", "immutable": true, "optional": true }, + { + "name": "leases", + "type": "TypeList", + "description": "The list of DHCP Server PVM Instance leases", + "computed": true, + "elem": { + "instance_ip": { + "name": "instance_ip", + "type": "TypeString", + "description": "The IP of the PVM Instance", + "computed": true + }, + "instance_mac": { + "name": "instance_mac", + "type": "TypeString", + "description": "The MAC Address of the PVM Instance", + "computed": true + } + } + }, { "name": "network", "type": "TypeString", @@ -133299,32 +136693,21 @@ "description": "The ID of the DHCP Server private network", "computed": true }, - { - "name": "network_name", - "type": "TypeString", - "description": "The name of the DHCP Server private network", - "computed": true - }, { "name": "status", "type": "TypeString", "description": "The status of the DHCP Server", "computed": true - } - ], - "ibm_pi_ike_policy": [ - { - "name": "policy_id", - "type": "TypeString", - "description": "IKE Policy ID", - "computed": true }, { "name": "pi_cloud_instance_id", "type": "TypeString", "description": "PI cloud instance ID", + "immutable": true, "required": true - }, + } + ], + "ibm_pi_ike_policy": [ { "name": "pi_policy_encryption", "type": "TypeString", @@ -133332,17 +136715,22 @@ "required": true }, { - "name": "pi_policy_key_lifetime", - "type": "TypeInt", - "description": "Policy key lifetime", + "name": "pi_policy_preshared_key", + "type": "TypeString", + "description": "Preshared key used in this IKE Policy (length of preshared key must be even)", "required": true }, { - "name": "pi_policy_authentication", + "name": "policy_id", "type": "TypeString", - "description": "Authentication for the IKE Policy", - "default_value": "none", - "optional": true + "description": "IKE Policy ID", + "computed": true + }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "description": "PI cloud instance ID", + "required": true }, { "name": "pi_policy_name", @@ -133356,6 +136744,12 @@ "description": "DH group of the IKE Policy", "required": true }, + { + "name": "pi_policy_key_lifetime", + "type": "TypeInt", + "description": "Policy key lifetime", + "required": true + }, { "name": "pi_policy_version", "type": "TypeInt", @@ -133363,34 +136757,14 @@ "required": true }, { - "name": "pi_policy_preshared_key", + "name": "pi_policy_authentication", "type": "TypeString", - "description": "Preshared key used in this IKE Policy (length of preshared key must be even)", - "required": true + "description": "Authentication for the IKE Policy", + "default_value": "none", + "optional": true } ], "ibm_pi_image": [ - { - "name": "pi_image_bucket_region", - "type": "TypeString", - "description": "Cloud Object Storage region", - "immutable": true, - "optional": true - }, - { - "name": "pi_image_bucket_file_name", - "type": "TypeString", - "description": "Cloud Object Storage image filename", - "immutable": true, - "optional": true - }, - { - "name": "pi_affinity_instance", - "type": "TypeString", - "description": "PVM Instance (ID or Name) to base storage affinity policy against; required if requesting storage affinity and pi_affinity_volume is not provided", - "immutable": true, - "optional": true - }, { "name": "pi_image_name", "type": "TypeString", @@ -133399,18 +136773,16 @@ "required": true }, { - "name": "pi_image_access_key", + "name": "pi_affinity_volume", "type": "TypeString", - "description": "Cloud Object Storage access key; required for buckets with private access", - "secure": true, + "description": "Volume (ID or Name) to base storage affinity policy against; required if requesting affinity and pi_affinity_instance is not provided", "immutable": true, "optional": true }, { - "name": "pi_image_secret_key", + "name": "pi_affinity_instance", "type": "TypeString", - "description": "Cloud Object Storage secret key; required for buckets with private access", - "secure": true, + "description": "PVM Instance (ID or Name) to base storage affinity policy against; required if requesting storage affinity and pi_affinity_volume is not provided", "immutable": true, "optional": true }, @@ -133425,16 +136797,16 @@ } }, { - "name": "pi_cloud_instance_id", + "name": "pi_image_bucket_name", "type": "TypeString", - "description": "PI cloud instance ID", + "description": "Cloud Object Storage bucket name; bucket-name[/optional/folder]", "immutable": true, - "required": true + "optional": true }, { - "name": "pi_affinity_policy", + "name": "pi_image_storage_pool", "type": "TypeString", - "description": "Affinity policy for image; ignored if pi_image_storage_pool provided; for policy affinity requires one of pi_affinity_instance or pi_affinity_volume to be specified; for policy anti-affinity requires one of pi_anti_affinity_instances or pi_anti_affinity_volumes to be specified", + "description": "Storage pool where the image will be loaded, if provided then pi_image_storage_type and pi_affinity_policy will be ignored", "immutable": true, "optional": true }, @@ -133448,13 +136820,6 @@ "type": "TypeString" } }, - { - "name": "pi_affinity_volume", - "type": "TypeString", - "description": "Volume (ID or Name) to base storage affinity policy against; required if requesting affinity and pi_affinity_instance is not provided", - "immutable": true, - "optional": true - }, { "name": "image_id", "type": "TypeString", @@ -133462,30 +136827,31 @@ "computed": true }, { - "name": "pi_image_id", + "name": "pi_cloud_instance_id", "type": "TypeString", - "description": "Instance image id", + "description": "PI cloud instance ID", "immutable": true, - "optional": true + "required": true }, { - "name": "pi_image_storage_type", + "name": "pi_image_id", "type": "TypeString", - "description": "Type of storage", + "description": "Instance image id", "immutable": true, "optional": true }, { - "name": "pi_image_storage_pool", + "name": "pi_image_secret_key", "type": "TypeString", - "description": "Storage pool where the image will be loaded, if provided then pi_image_storage_type and pi_affinity_policy will be ignored", + "description": "Cloud Object Storage secret key; required for buckets with private access", + "secure": true, "immutable": true, "optional": true }, { - "name": "pi_image_bucket_name", + "name": "pi_affinity_policy", "type": "TypeString", - "description": "Cloud Object Storage bucket name; bucket-name[/optional/folder]", + "description": "Affinity policy for image; ignored if pi_image_storage_pool provided; for policy affinity requires one of pi_affinity_instance or pi_affinity_volume to be specified; for policy anti-affinity requires one of pi_anti_affinity_instances or pi_anti_affinity_volumes to be specified", "immutable": true, "optional": true }, @@ -133496,23 +136862,38 @@ "default_value": "public", "immutable": true, "optional": true - } - ], - "ibm_pi_image_export": [ + }, + { + "name": "pi_image_access_key", + "type": "TypeString", + "description": "Cloud Object Storage access key; required for buckets with private access", + "secure": true, + "immutable": true, + "optional": true + }, { "name": "pi_image_bucket_region", "type": "TypeString", "description": "Cloud Object Storage region", "immutable": true, - "required": true + "optional": true }, { - "name": "pi_cloud_instance_id", + "name": "pi_image_bucket_file_name", "type": "TypeString", - "description": "PI cloud instance ID", + "description": "Cloud Object Storage image filename", "immutable": true, - "required": true + "optional": true }, + { + "name": "pi_image_storage_type", + "type": "TypeString", + "description": "Type of storage", + "immutable": true, + "optional": true + } + ], + "ibm_pi_image_export": [ { "name": "pi_image_id", "type": "TypeString", @@ -133542,34 +136923,52 @@ "secure": true, "immutable": true, "required": true + }, + { + "name": "pi_image_bucket_region", + "type": "TypeString", + "description": "Cloud Object Storage region", + "immutable": true, + "required": true + }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "description": "PI cloud instance ID", + "immutable": true, + "required": true } ], "ibm_pi_instance": [ { - "name": "pi_key_pair_name", + "name": "pi_storage_connection", "type": "TypeString", - "description": "SSH key name", + "description": "Storage Connectivity Group for server deployment", "optional": true }, { - "name": "max_processors", + "name": "pi_placement_group_id", + "type": "TypeString", + "description": "Placement group ID", + "optional": true + }, + { + "name": "pi_processors", "type": "TypeFloat", - "description": "Maximum number of processors", + "description": "Processors count", + "optional": true, "computed": true }, { - "name": "pi_anti_affinity_volumes", - "type": "TypeList", - "description": "List of volumes to base storage anti-affinity policy against; required if requesting anti-affinity and pi_anti_affinity_instances is not provided", - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "operating_system", + "type": "TypeString", + "description": "Operating System", + "computed": true }, { - "name": "pi_storage_connection", + "name": "pi_affinity_policy", "type": "TypeString", - "description": "Storage Connectivity Group for server deployment", + "description": "Affinity policy for pvm instance being created; ignored if pi_storage_pool provided; for policy affinity requires one of pi_affinity_instance or pi_affinity_volume to be specified; for policy anti-affinity requires one of pi_anti_affinity_instances or pi_anti_affinity_volumes to be specified", "optional": true }, { @@ -133612,50 +137011,57 @@ } }, { - "name": "pi_sap_profile_id", + "name": "pi_replication_policy", "type": "TypeString", - "description": "SAP Profile ID for the amount of cores and memory", + "description": "Replication policy for the PI Instance", + "default_value": "none", "optional": true }, { - "name": "pi_sys_type", + "name": "pi_volume_ids", + "type": "TypeSet", + "description": "List of PI volumes", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "pi_proc_type", "type": "TypeString", - "description": "PI Instance system type", + "description": "Instance processor type", "optional": true, "computed": true }, { - "name": "pi_replicants", - "type": "TypeInt", - "description": "PI Instance replicas count", - "default_value": 1, + "name": "pi_sap_profile_id", + "type": "TypeString", + "description": "SAP Profile ID for the amount of cores and memory", "optional": true }, { - "name": "pi_progress", - "type": "TypeFloat", - "description": "Progress of the operation", - "computed": true + "name": "pi_anti_affinity_volumes", + "type": "TypeList", + "description": "List of volumes to base storage anti-affinity policy against; required if requesting anti-affinity and pi_anti_affinity_instances is not provided", + "optional": true, + "elem": { + "type": "TypeString" + } }, { - "name": "pi_storage_type", - "type": "TypeString", - "description": "Storage type for server deployment", + "name": "pi_anti_affinity_instances", + "type": "TypeList", + "description": "List of pvmInstances to base storage anti-affinity policy against; required if requesting anti-affinity and pi_anti_affinity_volumes is not provided", "optional": true, - "computed": true + "elem": { + "type": "TypeString" + } }, { - "name": "pin_policy", + "name": "pi_key_pair_name", "type": "TypeString", - "description": "PIN Policy of the Instance", - "computed": true - }, - { - "name": "pi_memory", - "type": "TypeFloat", - "description": "Memory size", - "optional": true, - "computed": true + "description": "SSH key name", + "optional": true }, { "name": "pi_deployment_type", @@ -133664,62 +137070,41 @@ "optional": true }, { - "name": "pi_migratable", - "type": "TypeBool", - "description": "set to true to enable migration of the PI instance", - "optional": true, - "computed": true - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "Instance ID", - "cloud_data_type": "resource_instance", - "computed": true - }, - { - "name": "pi_image_id", + "name": "pi_sap_deployment_type", "type": "TypeString", - "description": "PI instance image id", - "required": true + "description": "Custom SAP Deployment Type Information", + "optional": true }, { - "name": "pi_processors", - "type": "TypeFloat", - "description": "Processors count", + "name": "pi_license_repository_capacity", + "type": "TypeInt", + "description": "The VTL license repository capacity TB value", "optional": true, "computed": true }, { - "name": "operating_system", - "type": "TypeString", - "description": "Operating System", + "name": "max_memory", + "type": "TypeFloat", + "description": "Maximum memory size", "computed": true }, { - "name": "status", + "name": "pi_user_data", "type": "TypeString", - "description": "PI instance status", - "computed": true - }, - { - "name": "pi_storage_pool_affinity", - "type": "TypeBool", - "description": "Indicates if all volumes attached to the server must reside in the same storage pool", - "default_value": true, + "description": "Base64 encoded data to be passed in for invoking a cloud init script", "optional": true }, { - "name": "shared_processor_pool_id", + "name": "os_type", "type": "TypeString", - "description": "Shared Processor Pool ID the instance is deployed on", + "description": "OS Type", "computed": true }, { - "name": "health_status", + "name": "pi_image_id", "type": "TypeString", - "description": "PI Instance health status", - "computed": true + "description": "PI instance image id", + "required": true }, { "name": "pi_pin_policy", @@ -133728,41 +137113,6 @@ "default_value": "none", "optional": true }, - { - "name": "pi_user_data", - "type": "TypeString", - "description": "Base64 encoded data to be passed in for invoking a cloud init script", - "optional": true - }, - { - "name": "pi_affinity_instance", - "type": "TypeString", - "description": "PVM Instance (ID or Name) to base storage affinity policy against; required if requesting storage affinity and pi_affinity_volume is not provided", - "optional": true - }, - { - "name": "pi_anti_affinity_instances", - "type": "TypeList", - "description": "List of pvmInstances to base storage anti-affinity policy against; required if requesting anti-affinity and pi_anti_affinity_volumes is not provided", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "pi_replication_policy", - "type": "TypeString", - "description": "Replication policy for the PI Instance", - "default_value": "none", - "optional": true - }, - { - "name": "pi_virtual_cores_assigned", - "type": "TypeInt", - "description": "Virtual Cores Assigned to the PVMInstance", - "optional": true, - "computed": true - }, { "name": "max_virtual_cores", "type": "TypeInt", @@ -133776,61 +137126,55 @@ "computed": true }, { - "name": "pi_license_repository_capacity", - "type": "TypeInt", - "description": "The VTL license repository capacity TB value", - "optional": true, - "computed": true - }, - { - "name": "min_processors", + "name": "min_memory", "type": "TypeFloat", - "description": "Minimum number of the CPUs", + "description": "Minimum memory", "computed": true }, { - "name": "pi_shared_processor_pool", + "name": "pi_affinity_instance", "type": "TypeString", - "description": "Shared Processor Pool the instance is deployed on", - "immutable": true, + "description": "PVM Instance (ID or Name) to base storage affinity policy against; required if requesting storage affinity and pi_affinity_volume is not provided", "optional": true }, { - "name": "pi_proc_type", + "name": "instance_id", "type": "TypeString", - "description": "Instance processor type", - "optional": true, + "description": "Instance ID", + "cloud_data_type": "resource_instance", "computed": true }, { - "name": "pi_health_status", - "type": "TypeString", - "description": "Allow the user to set the status of the lpar so that they can connect to it faster", - "default_value": "OK", + "name": "pi_replicants", + "type": "TypeInt", + "description": "PI Instance replicas count", + "default_value": 1, "optional": true }, { - "name": "pi_affinity_policy", + "name": "pi_replication_scheme", "type": "TypeString", - "description": "Affinity policy for pvm instance being created; ignored if pi_storage_pool provided; for policy affinity requires one of pi_affinity_instance or pi_affinity_volume to be specified; for policy anti-affinity requires one of pi_anti_affinity_instances or pi_anti_affinity_volumes to be specified", + "description": "Replication scheme", + "default_value": "suffix", "optional": true }, { - "name": "pi_instance_name", - "type": "TypeString", - "description": "PI Instance name", - "required": true + "name": "pi_progress", + "type": "TypeFloat", + "description": "Progress of the operation", + "computed": true }, { - "name": "pi_sap_deployment_type", - "type": "TypeString", - "description": "Custom SAP Deployment Type Information", - "optional": true + "name": "pi_migratable", + "type": "TypeBool", + "description": "set to true to enable migration of the PI instance", + "optional": true, + "computed": true }, { - "name": "os_type", - "type": "TypeString", - "description": "OS Type", + "name": "max_processors", + "type": "TypeFloat", + "description": "Maximum number of processors", "computed": true }, { @@ -133847,17 +137191,29 @@ "optional": true }, { - "name": "pi_placement_group_id", - "type": "TypeString", - "description": "Placement group ID", + "name": "pi_storage_pool_affinity", + "type": "TypeBool", + "description": "Indicates if all volumes attached to the server must reside in the same storage pool", + "default_value": true, "optional": true }, { - "name": "pi_replication_scheme", + "name": "shared_processor_pool_id", "type": "TypeString", - "description": "Replication scheme", - "default_value": "suffix", - "optional": true + "description": "Shared Processor Pool ID the instance is deployed on", + "computed": true + }, + { + "name": "pin_policy", + "type": "TypeString", + "description": "PIN Policy of the Instance", + "computed": true + }, + { + "name": "pi_instance_name", + "type": "TypeString", + "description": "PI Instance name", + "required": true }, { "name": "pi_cloud_instance_id", @@ -133867,30 +137223,81 @@ "required": true }, { - "name": "min_memory", - "type": "TypeFloat", - "description": "Minimum memory", + "name": "status", + "type": "TypeString", + "description": "PI instance status", "computed": true }, { - "name": "max_memory", - "type": "TypeFloat", - "description": "Maximum memory size", + "name": "pi_storage_type", + "type": "TypeString", + "description": "Storage type for server deployment", + "optional": true, "computed": true }, { - "name": "pi_volume_ids", - "type": "TypeSet", - "description": "List of PI volumes", + "name": "pi_memory", + "type": "TypeFloat", + "description": "Memory size", "optional": true, - "elem": { - "type": "TypeString" - } - } - ], - "ibm_pi_instance_action": [ + "computed": true + }, { - "name": "pi_cloud_instance_id", + "name": "pi_health_status", + "type": "TypeString", + "description": "Allow the user to set the status of the lpar so that they can connect to it faster", + "default_value": "OK", + "optional": true + }, + { + "name": "pi_virtual_cores_assigned", + "type": "TypeInt", + "description": "Virtual Cores Assigned to the PVMInstance", + "optional": true, + "computed": true + }, + { + "name": "pi_sys_type", + "type": "TypeString", + "description": "PI Instance system type", + "optional": true, + "computed": true + }, + { + "name": "min_processors", + "type": "TypeFloat", + "description": "Minimum number of the CPUs", + "computed": true + }, + { + "name": "pi_shared_processor_pool", + "type": "TypeString", + "description": "Shared Processor Pool the instance is deployed on", + "immutable": true, + "optional": true + }, + { + "name": "health_status", + "type": "TypeString", + "description": "PI Instance health status", + "computed": true + } + ], + "ibm_pi_instance_action": [ + { + "name": "progress", + "type": "TypeFloat", + "description": "The progress of an operation", + "computed": true + }, + { + "name": "health_status", + "type": "TypeString", + "description": "The PVM's health status value", + "computed": true + }, + { + "name": "pi_cloud_instance_id", "type": "TypeString", "description": "PI Cloud instance id", "required": true @@ -133919,18 +137326,6 @@ "type": "TypeString", "description": "The status of the PVM instance", "computed": true - }, - { - "name": "progress", - "type": "TypeFloat", - "description": "The progress of an operation", - "computed": true - }, - { - "name": "health_status", - "type": "TypeString", - "description": "The PVM's health status value", - "computed": true } ], "ibm_pi_ipsec_policy": [ @@ -133985,24 +137380,6 @@ } ], "ibm_pi_key": [ - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "description": "PI cloud instance ID", - "required": true - }, - { - "name": "pi_key_name", - "type": "TypeString", - "description": "User defined name for the SSH key", - "required": true - }, - { - "name": "pi_ssh_key", - "type": "TypeString", - "description": "SSH RSA key", - "required": true - }, { "name": "creation_date", "type": "TypeString", @@ -134026,26 +137403,59 @@ "type": "TypeString", "description": "SSH RSA key", "computed": true + }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "description": "PI cloud instance ID", + "required": true + }, + { + "name": "pi_key_name", + "type": "TypeString", + "description": "User defined name for the SSH key", + "required": true + }, + { + "name": "pi_ssh_key", + "type": "TypeString", + "description": "SSH RSA key", + "required": true } ], "ibm_pi_network": [ { - "name": "pi_dns", - "type": "TypeSet", - "description": "List of PI network DNS name", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "pi_network_type", + "type": "TypeString", + "description": "PI network type", + "required": true }, { - "name": "pi_cidr", + "name": "network_id", "type": "TypeString", - "description": "PI network CIDR", + "description": "PI network ID", + "computed": true + }, + { + "name": "pi_gateway", + "type": "TypeString", + "description": "PI network gateway", + "optional": true, + "computed": true + }, + { + "name": "pi_network_jumbo", + "type": "TypeBool", + "description": "PI network enable MTU Jumbo option", "optional": true, "computed": true }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "description": "PI cloud instance ID", + "required": true + }, { "name": "pi_ipaddress_range", "type": "TypeList", @@ -134067,6 +137477,12 @@ } } }, + { + "name": "vlan_id", + "type": "TypeFloat", + "description": "VLAN Id value", + "computed": true + }, { "name": "pi_network_name", "type": "TypeString", @@ -134074,45 +137490,34 @@ "required": true }, { - "name": "pi_gateway", - "type": "TypeString", - "description": "PI network gateway", + "name": "pi_dns", + "type": "TypeSet", + "description": "List of PI network DNS name", "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "pi_network_jumbo", - "type": "TypeBool", - "description": "PI network enable MTU Jumbo option", + "name": "pi_cidr", + "type": "TypeString", + "description": "PI network CIDR", "optional": true, "computed": true - }, + } + ], + "ibm_pi_network_port": [ { - "name": "pi_cloud_instance_id", + "name": "pi_network_name", "type": "TypeString", - "description": "PI cloud instance ID", "required": true }, { - "name": "network_id", - "type": "TypeString", - "description": "PI network ID", - "computed": true - }, - { - "name": "vlan_id", - "type": "TypeFloat", - "description": "VLAN Id value", - "computed": true - }, - { - "name": "pi_network_type", + "name": "pi_cloud_instance_id", "type": "TypeString", - "description": "PI network type", "required": true - } - ], - "ibm_pi_network_port": [ + }, { "name": "pi_network_port_description", "type": "TypeString", @@ -134144,31 +137549,9 @@ "name": "public_ip", "type": "TypeString", "computed": true - }, - { - "name": "pi_network_name", - "type": "TypeString", - "required": true - }, - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "required": true } ], "ibm_pi_network_port_attach": [ - { - "name": "public_ip", - "type": "TypeString", - "computed": true - }, - { - "name": "pi_instance_id", - "type": "TypeString", - "description": "Instance id to attach the network port to", - "immutable": true, - "required": true - }, { "name": "pi_network_name", "type": "TypeString", @@ -134177,10 +137560,8 @@ "required": true }, { - "name": "pi_network_port_ipaddress", + "name": "macaddress", "type": "TypeString", - "immutable": true, - "optional": true, "computed": true }, { @@ -134190,7 +137571,7 @@ "deprecated": "port_id attribute is deprecated, use network_port_id instead." }, { - "name": "status", + "name": "public_ip", "type": "TypeString", "computed": true }, @@ -134200,6 +137581,13 @@ "immutable": true, "required": true }, + { + "name": "pi_instance_id", + "type": "TypeString", + "description": "Instance id to attach the network port to", + "immutable": true, + "required": true + }, { "name": "pi_network_port_description", "type": "TypeString", @@ -134209,17 +137597,30 @@ "optional": true }, { - "name": "macaddress", + "name": "pi_network_port_ipaddress", "type": "TypeString", + "immutable": true, + "optional": true, "computed": true }, { "name": "network_port_id", "type": "TypeString", "computed": true + }, + { + "name": "status", + "type": "TypeString", + "computed": true } ], "ibm_pi_placement_group": [ + { + "name": "placement_group_id", + "type": "TypeString", + "description": "PI placement group ID", + "computed": true + }, { "name": "pi_placement_group_name", "type": "TypeString", @@ -134246,15 +137647,48 @@ "elem": { "type": "TypeString" } + } + ], + "ibm_pi_shared_processor_pool": [ + { + "name": "pi_shared_processor_pool_host_group", + "type": "TypeString", + "description": "Host group of the shared processor pool", + "required": true }, { - "name": "placement_group_id", + "name": "pi_shared_processor_pool_placement_group_id", "type": "TypeString", - "description": "PI placement group ID", + "description": "Placement group the shared processor pool is created in", + "optional": true + }, + { + "name": "available_cores", + "type": "TypeInt", + "description": "Shared processor pool available cores", "computed": true - } - ], - "ibm_pi_shared_processor_pool": [ + }, + { + "name": "status", + "type": "TypeString", + "description": "The status of the shared processor pool", + "computed": true + }, + { + "name": "status_detail", + "type": "TypeString", + "description": "The status details of the shared processor pool", + "computed": true + }, + { + "name": "spp_placement_groups", + "type": "TypeList", + "description": "SPP placement groups the shared processor pool are in", + "optional": true, + "elem": { + "type": "TypeString" + } + }, { "name": "instances", "type": "TypeList", @@ -134317,51 +137751,6 @@ "description": "Name of the shared processor pool", "required": true }, - { - "name": "pi_shared_processor_pool_host_group", - "type": "TypeString", - "description": "Host group of the shared processor pool", - "required": true - }, - { - "name": "available_cores", - "type": "TypeInt", - "description": "Shared processor pool available cores", - "computed": true - }, - { - "name": "spp_placement_groups", - "type": "TypeList", - "description": "SPP placement groups the shared processor pool are in", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "allocated_cores", - "type": "TypeFloat", - "description": "Shared processor pool allocated cores", - "computed": true - }, - { - "name": "host_id", - "type": "TypeInt", - "description": "The host ID where the shared processor pool resides", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The status of the shared processor pool", - "computed": true - }, - { - "name": "status_detail", - "type": "TypeString", - "description": "The status details of the shared processor pool", - "computed": true - }, { "name": "pi_shared_processor_pool_reserved_cores", "type": "TypeInt", @@ -134374,44 +137763,26 @@ "description": "PI cloud instance ID", "required": true }, - { - "name": "pi_shared_processor_pool_placement_group_id", - "type": "TypeString", - "description": "Placement group the shared processor pool is created in", - "optional": true - }, { "name": "shared_processor_pool_id", "type": "TypeString", "description": "Shared processor pool ID", "computed": true - } - ], - "ibm_pi_snapshot": [ - { - "name": "pi_description", - "type": "TypeString", - "description": "Description of the PVM instance snapshot", - "optional": true - }, - { - "name": "pi_snap_shot_id", - "type": "TypeString", - "description": "Id of the snapshot", - "computed": true, - "deprecated": "This field is deprecated, use snapshot_id instead" }, { - "name": "status", - "type": "TypeString", + "name": "allocated_cores", + "type": "TypeFloat", + "description": "Shared processor pool allocated cores", "computed": true }, { - "name": "pi_snap_shot_name", - "type": "TypeString", - "description": "Unique name of the snapshot", - "required": true - }, + "name": "host_id", + "type": "TypeInt", + "description": "The host ID where the shared processor pool resides", + "computed": true + } + ], + "ibm_pi_snapshot": [ { "name": "pi_volume_ids", "type": "TypeSet", @@ -134421,12 +137792,6 @@ "type": "TypeString" } }, - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "description": "Cloud Instance ID - This is the service_instance_id.", - "required": true - }, { "name": "description", "type": "TypeString", @@ -134435,9 +137800,8 @@ "deprecated": "This field is deprecated, use pi_description instead" }, { - "name": "snapshot_id", + "name": "status", "type": "TypeString", - "description": "ID of the PVM instance snapshot", "computed": true }, { @@ -134446,20 +137810,51 @@ "computed": true }, { - "name": "last_update_date", + "name": "volume_snapshots", + "type": "TypeMap", + "computed": true + }, + { + "name": "snapshot_id", "type": "TypeString", + "description": "ID of the PVM instance snapshot", "computed": true }, { - "name": "volume_snapshots", - "type": "TypeMap", + "name": "last_update_date", + "type": "TypeString", "computed": true }, + { + "name": "pi_snap_shot_name", + "type": "TypeString", + "description": "Unique name of the snapshot", + "required": true + }, { "name": "pi_instance_name", "type": "TypeString", "description": "Instance name / id of the pvm", "required": true + }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "description": "Cloud Instance ID - This is the service_instance_id.", + "required": true + }, + { + "name": "pi_description", + "type": "TypeString", + "description": "Description of the PVM instance snapshot", + "optional": true + }, + { + "name": "pi_snap_shot_id", + "type": "TypeString", + "description": "Id of the snapshot", + "computed": true, + "deprecated": "This field is deprecated, use snapshot_id instead" } ], "ibm_pi_spp_placement_group": [ @@ -134502,28 +137897,58 @@ ], "ibm_pi_volume": [ { - "name": "pi_volume_shareable", - "type": "TypeBool", - "description": "Flag to indicate if the volume can be shared across multiple instances?", + "name": "pi_volume_size", + "type": "TypeFloat", + "description": "Size of the volume in GB", + "required": true + }, + { + "name": "pi_affinity_policy", + "type": "TypeString", + "description": "Affinity policy for data volume being created; ignored if pi_volume_pool provided; for policy affinity requires one of pi_affinity_instance or pi_affinity_volume to be specified; for policy anti-affinity requires one of pi_anti_affinity_instances or pi_anti_affinity_volumes to be specified", "optional": true }, { - "name": "pi_affinity_volume", + "name": "pi_affinity_instance", "type": "TypeString", - "description": "Volume (ID or Name) to base volume affinity policy against; required if requesting affinity and pi_affinity_instance is not provided", + "description": "PVM Instance (ID or Name) to base volume affinity policy against; required if requesting affinity and pi_affinity_volume is not provided", "optional": true }, { - "name": "pi_replication_enabled", - "type": "TypeBool", - "description": "Indicates if the volume should be replication enabled or not", + "name": "volume_id", + "type": "TypeString", + "description": "Volume ID", + "computed": true + }, + { + "name": "group_id", + "type": "TypeString", + "description": "Volume Group ID", + "computed": true + }, + { + "name": "auxiliary_volume_name", + "type": "TypeString", + "description": "Indicates auxiliary volume name", + "computed": true + }, + { + "name": "pi_volume_type", + "type": "TypeString", + "description": "Type of Disk, required if pi_affinity_policy and pi_volume_pool not provided, otherwise ignored", "optional": true, "computed": true }, { - "name": "volume_id", + "name": "volume_status", "type": "TypeString", - "description": "Volume ID", + "description": "Volume status", + "computed": true + }, + { + "name": "wwn", + "type": "TypeString", + "description": "WWN Of the volume", "computed": true }, { @@ -134538,12 +137963,6 @@ "description": "Replication status of a volume", "computed": true }, - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "description": "Cloud Instance ID - This is the service_instance_id.", - "required": true - }, { "name": "pi_volume_name", "type": "TypeString", @@ -134551,16 +137970,11 @@ "required": true }, { - "name": "pi_affinity_policy", - "type": "TypeString", - "description": "Affinity policy for data volume being created; ignored if pi_volume_pool provided; for policy affinity requires one of pi_affinity_instance or pi_affinity_volume to be specified; for policy anti-affinity requires one of pi_anti_affinity_instances or pi_anti_affinity_volumes to be specified", - "optional": true - }, - { - "name": "pi_affinity_instance", + "name": "pi_volume_pool", "type": "TypeString", - "description": "PVM Instance (ID or Name) to base volume affinity policy against; required if requesting affinity and pi_affinity_volume is not provided", - "optional": true + "description": "Volume pool where the volume will be created; if provided then pi_volume_type and pi_affinity_policy values will be ignored", + "optional": true, + "computed": true }, { "name": "pi_anti_affinity_volumes", @@ -134572,31 +137986,15 @@ } }, { - "name": "pi_anti_affinity_instances", - "type": "TypeList", - "description": "List of pvmInstances to base volume anti-affinity policy against; required if requesting anti-affinity and pi_anti_affinity_volumes is not provided", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "volume_status", - "type": "TypeString", - "description": "Volume status", - "computed": true - }, - { - "name": "master_volume_name", + "name": "replication_type", "type": "TypeString", - "description": "Indicates master volume name", + "description": "Replication type(metro,global)", "computed": true }, { - "name": "pi_volume_type", + "name": "mirroring_state", "type": "TypeString", - "description": "Type of Disk, required if pi_affinity_policy and pi_volume_pool not provided, otherwise ignored", - "optional": true, + "description": "Mirroring state for replication enabled volume", "computed": true }, { @@ -134612,52 +138010,49 @@ "computed": true }, { - "name": "group_id", + "name": "primary_role", "type": "TypeString", - "description": "Volume Group ID", + "description": "Indicates whether master/aux volume is playing the primary role", "computed": true }, { - "name": "auxiliary_volume_name", + "name": "pi_cloud_instance_id", "type": "TypeString", - "description": "Indicates auxiliary volume name", - "computed": true - }, - { - "name": "pi_volume_size", - "type": "TypeFloat", - "description": "Size of the volume in GB", + "description": "Cloud Instance ID - This is the service_instance_id.", "required": true }, { - "name": "pi_volume_pool", - "type": "TypeString", - "description": "Volume pool where the volume will be created; if provided then pi_volume_type and pi_affinity_policy values will be ignored", - "optional": true, - "computed": true + "name": "pi_volume_shareable", + "type": "TypeBool", + "description": "Flag to indicate if the volume can be shared across multiple instances?", + "optional": true }, { - "name": "wwn", + "name": "pi_affinity_volume", "type": "TypeString", - "description": "WWN Of the volume", - "computed": true + "description": "Volume (ID or Name) to base volume affinity policy against; required if requesting affinity and pi_affinity_instance is not provided", + "optional": true }, { - "name": "replication_type", - "type": "TypeString", - "description": "Replication type(metro,global)", - "computed": true + "name": "pi_anti_affinity_instances", + "type": "TypeList", + "description": "List of pvmInstances to base volume anti-affinity policy against; required if requesting anti-affinity and pi_anti_affinity_volumes is not provided", + "optional": true, + "elem": { + "type": "TypeString" + } }, { - "name": "mirroring_state", - "type": "TypeString", - "description": "Mirroring state for replication enabled volume", + "name": "pi_replication_enabled", + "type": "TypeBool", + "description": "Indicates if the volume should be replication enabled or not", + "optional": true, "computed": true }, { - "name": "primary_role", + "name": "master_volume_name", "type": "TypeString", - "description": "Indicates whether master/aux volume is playing the primary role", + "description": "Indicates master volume name", "computed": true } ], @@ -134691,10 +138086,10 @@ ], "ibm_pi_volume_group": [ { - "name": "pi_cloud_instance_id", + "name": "pi_consistency_group_name", "type": "TypeString", - "description": "Cloud Instance ID - This is the service_instance_id.", - "required": true + "description": "The name of consistency group at storage controller level", + "optional": true }, { "name": "pi_volume_ids", @@ -134724,15 +138119,15 @@ "computed": true }, { - "name": "pi_volume_group_name", + "name": "consistency_group_name", "type": "TypeString", - "description": "Volume Group Name to create", - "optional": true + "description": "Consistency Group Name if volume is a part of volume group", + "computed": true }, { - "name": "pi_consistency_group_name", + "name": "pi_volume_group_name", "type": "TypeString", - "description": "The name of consistency group at storage controller level", + "description": "Volume Group Name to create", "optional": true }, { @@ -134761,13 +138156,31 @@ } }, { - "name": "consistency_group_name", + "name": "pi_cloud_instance_id", "type": "TypeString", - "description": "Consistency Group Name if volume is a part of volume group", - "computed": true + "description": "Cloud Instance ID - This is the service_instance_id.", + "required": true } ], "ibm_pi_volume_group_action": [ + { + "name": "volume_group_name", + "type": "TypeString", + "description": "Volume Group ID", + "computed": true + }, + { + "name": "volume_group_status", + "type": "TypeString", + "description": "Volume Group Status", + "computed": true + }, + { + "name": "replication_status", + "type": "TypeString", + "description": "Volume Group Replication Status", + "computed": true + }, { "name": "pi_cloud_instance_id", "type": "TypeString", @@ -134834,24 +138247,6 @@ }, "max_items": 1, "min_items": 1 - }, - { - "name": "volume_group_name", - "type": "TypeString", - "description": "Volume Group ID", - "computed": true - }, - { - "name": "volume_group_status", - "type": "TypeString", - "description": "Volume Group Status", - "computed": true - }, - { - "name": "replication_status", - "type": "TypeString", - "description": "Volume Group Replication Status", - "computed": true } ], "ibm_pi_volume_onboarding": [ @@ -134861,12 +138256,30 @@ "description": "Indicates the volume onboarding operation id", "computed": true }, + { + "name": "input_volumes", + "type": "TypeList", + "description": "List of volumes requested to be onboarded", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "progress", "type": "TypeFloat", "description": "Indicates the progress of volume onboarding operation", "computed": true }, + { + "name": "results_onboarded_volumes", + "type": "TypeList", + "description": "List of volumes which are onboarded successfully", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "results_volume_onboarding_failures", "type": "TypeList", @@ -134902,6 +138315,12 @@ "immutable": true, "required": true }, + { + "name": "create_time", + "type": "TypeString", + "description": "Indicates the create-time of volume onboarding operation", + "computed": true + }, { "name": "pi_onboarding_volumes", "type": "TypeList", @@ -134937,79 +138356,31 @@ }, "min_items": 1 }, - { - "name": "create_time", - "type": "TypeString", - "description": "Indicates the create-time of volume onboarding operation", - "computed": true - }, { "name": "pi_description", "type": "TypeString", "description": "Description of the volume onboarding operation", "optional": true, "computed": true - }, - { - "name": "input_volumes", - "type": "TypeList", - "description": "List of volumes requested to be onboarded", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "results_onboarded_volumes", - "type": "TypeList", - "description": "List of volumes which are onboarded successfully", - "computed": true, - "elem": { - "type": "TypeString" - } } ], "ibm_pi_vpn_connection": [ { - "name": "pi_ipsec_policy_id", - "type": "TypeString", - "description": "Unique identifier of IPSec Policy selected for this VPN Connection", - "required": true - }, - { - "name": "pi_vpn_connection_mode", + "name": "pi_ike_policy_id", "type": "TypeString", - "description": "Mode used by this VPN Connection, either 'policy' or 'route'", + "description": "Unique identifier of IKE Policy selected for this VPN Connection", "required": true }, { - "name": "local_gateway_address", - "type": "TypeString", - "description": "Local Gateway address, only in 'route' mode", - "computed": true - }, - { - "name": "connection_status", - "type": "TypeString", - "description": "Status of the VPN connection", - "computed": true - }, - { - "name": "gateway_address", - "type": "TypeString", - "description": "Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection", - "computed": true - }, - { - "name": "pi_cloud_instance_id", + "name": "pi_ipsec_policy_id", "type": "TypeString", - "description": "PI cloud instance ID", + "description": "Unique identifier of IPSec Policy selected for this VPN Connection", "required": true }, { - "name": "pi_ike_policy_id", + "name": "pi_vpn_connection_mode", "type": "TypeString", - "description": "Unique identifier of IKE Policy selected for this VPN Connection", + "description": "Mode used by this VPN Connection, either 'policy' or 'route'", "required": true }, { @@ -135027,12 +138398,6 @@ "type": "TypeString" } }, - { - "name": "connection_id", - "type": "TypeString", - "description": "VPN connection ID", - "computed": true - }, { "name": "dead_peer_detections", "type": "TypeMap", @@ -135053,6 +138418,36 @@ "elem": { "type": "TypeString" } + }, + { + "name": "connection_id", + "type": "TypeString", + "description": "VPN connection ID", + "computed": true + }, + { + "name": "local_gateway_address", + "type": "TypeString", + "description": "Local Gateway address, only in 'route' mode", + "computed": true + }, + { + "name": "connection_status", + "type": "TypeString", + "description": "Status of the VPN connection", + "computed": true + }, + { + "name": "gateway_address", + "type": "TypeString", + "description": "Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection", + "computed": true + }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "description": "PI cloud instance ID", + "required": true } ], "ibm_pn_application_chrome": [ @@ -135077,6 +138472,88 @@ } ], "ibm_project_instance": [ + { + "name": "metadata", + "type": "TypeList", + "description": "The metadata of the project.", + "computed": true, + "elem": { + "created_at": { + "name": "created_at", + "type": "TypeString", + "description": "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", + "computed": true + }, + "crn": { + "name": "crn", + "type": "TypeString", + "description": "An IBM Cloud resource name, which uniquely identifies a resource.", + "computed": true + }, + "cumulative_needs_attention_view": { + "name": "cumulative_needs_attention_view", + "type": "TypeList", + "description": "The cumulative list of needs attention items for a project.", + "computed": true, + "elem": { + "config_id": { + "name": "config_id", + "type": "TypeString", + "description": "The unique ID of a project.", + "computed": true + }, + "config_version": { + "name": "config_version", + "type": "TypeInt", + "description": "The version number of the configuration.", + "computed": true + }, + "event": { + "name": "event", + "type": "TypeString", + "description": "The event name.", + "computed": true + }, + "event_id": { + "name": "event_id", + "type": "TypeString", + "description": "The unique ID of a project.", + "computed": true + } + } + }, + "cumulative_needs_attention_view_err": { + "name": "cumulative_needs_attention_view_err", + "type": "TypeString", + "description": "True indicates that the fetch of the needs attention items failed.", + "computed": true + }, + "event_notifications_crn": { + "name": "event_notifications_crn", + "type": "TypeString", + "description": "The CRN of the event notifications instance if one is connected to this project.", + "computed": true + }, + "location": { + "name": "location", + "type": "TypeString", + "description": "The IBM Cloud location where a resource is deployed.", + "computed": true + }, + "resource_group": { + "name": "resource_group", + "type": "TypeString", + "description": "The resource group where the project's data and tools are created.", + "computed": true + }, + "state": { + "name": "state", + "type": "TypeString", + "description": "The project status value.", + "computed": true + } + } + }, { "name": "name", "type": "TypeString", @@ -135198,120 +138675,41 @@ "description": "An IBM Cloud resource name, which uniquely identifies a resource.", "cloud_data_type": "crn", "computed": true - }, - { - "name": "metadata", - "type": "TypeList", - "description": "The metadata of the project.", - "computed": true, - "elem": { - "created_at": { - "name": "created_at", - "type": "TypeString", - "description": "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", - "computed": true - }, - "crn": { - "name": "crn", - "type": "TypeString", - "description": "An IBM Cloud resource name, which uniquely identifies a resource.", - "computed": true - }, - "cumulative_needs_attention_view": { - "name": "cumulative_needs_attention_view", - "type": "TypeList", - "description": "The cumulative list of needs attention items for a project.", - "computed": true, - "elem": { - "config_id": { - "name": "config_id", - "type": "TypeString", - "description": "The unique ID of a project.", - "computed": true - }, - "config_version": { - "name": "config_version", - "type": "TypeInt", - "description": "The version number of the configuration.", - "computed": true - }, - "event": { - "name": "event", - "type": "TypeString", - "description": "The event name.", - "computed": true - }, - "event_id": { - "name": "event_id", - "type": "TypeString", - "description": "The unique ID of a project.", - "computed": true - } - } - }, - "cumulative_needs_attention_view_err": { - "name": "cumulative_needs_attention_view_err", - "type": "TypeString", - "description": "True indicates that the fetch of the needs attention items failed.", - "computed": true - }, - "event_notifications_crn": { - "name": "event_notifications_crn", - "type": "TypeString", - "description": "The CRN of the event notifications instance if one is connected to this project.", - "computed": true - }, - "location": { - "name": "location", - "type": "TypeString", - "description": "The IBM Cloud location where a resource is deployed.", - "computed": true - }, - "resource_group": { - "name": "resource_group", - "type": "TypeString", - "description": "The resource group where the project's data and tools are created.", - "computed": true - }, - "state": { - "name": "state", - "type": "TypeString", - "description": "The project status value.", - "computed": true - } - } } ], "ibm_resource_group": [ { - "name": "crn", + "name": "teams_url", "type": "TypeString", - "description": "The full CRN associated with the resource group", - "cloud_data_type": "crn", + "description": "The URL to access the team details that associated with the resource group.", "computed": true }, { - "name": "created_at", + "name": "quota_url", "type": "TypeString", - "description": "The date when the resource group was initially created.", + "description": "The URL to access the quota details that associated with the resource group.", "computed": true }, { - "name": "updated_at", - "type": "TypeString", - "description": "The date when the resource group was last updated.", - "computed": true + "name": "resource_linkages", + "type": "TypeSet", + "description": "An array of the resources that linked to the resource group", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "teams_url", + "name": "crn", "type": "TypeString", - "description": "The URL to access the team details that associated with the resource group.", + "description": "The full CRN associated with the resource group", + "cloud_data_type": "crn", "computed": true }, { - "name": "default", - "type": "TypeBool", - "description": "Specifies whether its default resource group or not", + "name": "updated_at", + "type": "TypeString", + "description": "The date when the resource group was last updated.", "computed": true }, { @@ -135330,110 +138728,89 @@ } }, { - "name": "quota_id", + "name": "created_at", "type": "TypeString", - "description": "An alpha-numeric value identifying the quota ID associated with the resource group.", + "description": "The date when the resource group was initially created.", "computed": true }, { - "name": "resource_linkages", - "type": "TypeSet", - "description": "An array of the resources that linked to the resource group", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "name", + "name": "payment_methods_url", "type": "TypeString", - "description": "The name of the resource group", - "required": true + "description": "The URL to access the payment methods details that associated with the resource group.", + "computed": true }, { - "name": "payment_methods_url", + "name": "quota_id", "type": "TypeString", - "description": "The URL to access the payment methods details that associated with the resource group.", + "description": "An alpha-numeric value identifying the quota ID associated with the resource group.", "computed": true }, { - "name": "quota_url", + "name": "name", "type": "TypeString", - "description": "The URL to access the quota details that associated with the resource group.", + "description": "The name of the resource group", + "required": true + }, + { + "name": "default", + "type": "TypeBool", + "description": "Specifies whether its default resource group or not", "computed": true } ], "ibm_resource_instance": [ { - "name": "resource_plan_id", - "type": "TypeString", - "description": "The unique ID of the plan associated with the offering", - "computed": true - }, - { - "name": "deleted_at", + "name": "resource_bindings_url", "type": "TypeString", - "description": "The date when the instance was deleted.", + "description": "The relative path to the resource bindings for the instance.", "computed": true }, { - "name": "scheduled_reclaim_at", + "name": "created_at", "type": "TypeString", - "description": "The date when the instance was scheduled for reclamation.", + "description": "The date when the instance was created.", "computed": true }, { - "name": "scheduled_reclaim_by", + "name": "resource_status", "type": "TypeString", - "description": "The subject who initiated the instance reclamation.", + "description": "The status of the resource", "computed": true }, { - "name": "restored_by", + "name": "name", "type": "TypeString", - "description": "The subject who restored the instance back from reclamation.", - "computed": true + "description": "A name for the resource instance", + "required": true }, { - "name": "resource_controller_url", + "name": "resource_group_id", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", - "computed": true + "description": "The resource group id", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true, + "cloud_data_range": [ + "resolved_to:id" + ] }, { - "name": "plan_history", - "type": "TypeList", - "description": "The plan history of the instance.", - "computed": true, - "elem": { - "resource_plan_id": { - "name": "resource_plan_id", - "type": "TypeString", - "computed": true - }, - "start_date": { - "name": "start_date", - "type": "TypeString", - "computed": true - } - } + "name": "parameters", + "type": "TypeMap", + "description": "Arbitrary parameters to pass. Must be a JSON object", + "optional": true }, { - "name": "resource_id", + "name": "dashboard_url", "type": "TypeString", - "description": "The unique ID of the offering", + "description": "Dashboard URL to access resource.", "computed": true }, { - "name": "resource_bindings_url", + "name": "state", "type": "TypeString", - "description": "The relative path to the resource bindings for the instance.", - "computed": true - }, - { - "name": "resource_keys_url", - "type": "TypeString", - "description": "The relative path to the resource keys for the instance.", + "description": "The current state of the instance.", "computed": true }, { @@ -135444,102 +138821,94 @@ "required": true }, { - "name": "update_by", - "type": "TypeString", - "description": "The subject who updated the instance.", - "computed": true + "name": "tags", + "type": "TypeSet", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "restored_at", + "name": "created_by", "type": "TypeString", - "description": "The date when the instance under reclamation was restored.", + "description": "The subject who created the instance.", "computed": true }, { - "name": "location", + "name": "scheduled_reclaim_at", "type": "TypeString", - "description": "The location where the instance available", - "cloud_data_type": "region", - "immutable": true, - "required": true + "description": "The date when the instance was scheduled for reclamation.", + "computed": true }, { - "name": "status", + "name": "resource_keys_url", "type": "TypeString", - "description": "Status of resource instance", + "description": "The relative path to the resource keys for the instance.", "computed": true }, { - "name": "target_crn", + "name": "restored_by", "type": "TypeString", - "description": "The full deployment CRN as defined in the global catalog", + "description": "The subject who restored the instance back from reclamation.", "computed": true }, { - "name": "locked", - "type": "TypeBool", - "description": "A boolean that dictates if the resource instance should be deleted (cleaned up) during the processing of a region instance delete call.", + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", "computed": true }, { - "name": "created_by", + "name": "plan", "type": "TypeString", - "description": "The subject who created the instance.", - "computed": true + "description": "The plan type of the service", + "required": true }, { - "name": "resource_status", + "name": "resource_id", "type": "TypeString", - "description": "The status of the resource", + "description": "The unique ID of the offering", "computed": true }, { - "name": "tags", - "type": "TypeSet", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "sub_type", + "type": "TypeString", + "description": "The sub-type of instance, e.g. cfaas .", + "computed": true }, { - "name": "resource_group_id", - "type": "TypeString", - "description": "The resource group id", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "name": "locked", + "type": "TypeBool", + "description": "A boolean that dictates if the resource instance should be deleted (cleaned up) during the processing of a region instance delete call.", + "computed": true }, { - "name": "state", - "type": "TypeString", - "description": "The current state of the instance.", + "name": "last_operation", + "type": "TypeMap", + "description": "The status of the last operation requested on the instance", "computed": true }, { - "name": "sub_type", + "name": "update_at", "type": "TypeString", - "description": "The sub-type of instance, e.g. cfaas .", + "description": "The date when the instance was last updated.", "computed": true }, { - "name": "resource_group_name", + "name": "update_by", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "The subject who updated the instance.", "computed": true }, { - "name": "plan", + "name": "deleted_at", "type": "TypeString", - "description": "The plan type of the service", - "required": true + "description": "The date when the instance was deleted.", + "computed": true }, { "name": "guid", @@ -135548,33 +138917,34 @@ "computed": true }, { - "name": "type", + "name": "service_endpoints", "type": "TypeString", - "description": "The type of the instance, e.g. service_instance.", + "description": "Types of the service endpoints. Possible values are 'public', 'private', 'public-and-private'.", + "optional": true, "computed": true }, { - "name": "resource_aliases_url", + "name": "account_id", "type": "TypeString", - "description": "The relative path to the resource aliases for the instance.", + "description": "An alpha-numeric value identifying the account ID.", "computed": true }, { - "name": "created_at", + "name": "target_crn", "type": "TypeString", - "description": "The date when the instance was created.", + "description": "The full deployment CRN as defined in the global catalog", "computed": true }, { - "name": "update_at", + "name": "resource_aliases_url", "type": "TypeString", - "description": "The date when the instance was last updated.", + "description": "The relative path to the resource aliases for the instance.", "computed": true }, { - "name": "deleted_by", + "name": "scheduled_reclaim_by", "type": "TypeString", - "description": "The subject who deleted the instance.", + "description": "The subject who initiated the instance reclamation.", "computed": true }, { @@ -135584,10 +138954,16 @@ "computed": true }, { - "name": "name", + "name": "resource_controller_url", "type": "TypeString", - "description": "A name for the resource instance", - "required": true + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", + "computed": true + }, + { + "name": "extensions", + "type": "TypeMap", + "description": "The extended metadata as a map associated with the resource instance.", + "computed": true }, { "name": "parameters_json", @@ -135596,58 +138972,41 @@ "optional": true }, { - "name": "account_id", + "name": "resource_plan_id", "type": "TypeString", - "description": "An alpha-numeric value identifying the account ID.", + "description": "The unique ID of the plan associated with the offering", "computed": true }, { - "name": "resource_group_crn", + "name": "deleted_by", "type": "TypeString", - "description": "The long ID (full CRN) of the resource group", - "computed": true - }, - { - "name": "last_operation", - "type": "TypeMap", - "description": "The status of the last operation requested on the instance", + "description": "The subject who deleted the instance.", "computed": true }, { - "name": "resource_name", + "name": "restored_at", "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "extensions", - "type": "TypeMap", - "description": "The extended metadata as a map associated with the resource instance.", + "description": "The date when the instance under reclamation was restored.", "computed": true }, { - "name": "parameters", - "type": "TypeMap", - "description": "Arbitrary parameters to pass. Must be a JSON object", - "optional": true - }, - { - "name": "service_endpoints", + "name": "location", "type": "TypeString", - "description": "Types of the service endpoints. Possible values are 'public', 'private', 'public-and-private'.", - "optional": true, - "computed": true + "description": "The location where the instance available", + "cloud_data_type": "region", + "immutable": true, + "required": true }, { - "name": "dashboard_url", + "name": "status", "type": "TypeString", - "description": "Dashboard URL to access resource.", + "description": "Status of resource instance", "computed": true }, { - "name": "allow_cleanup", - "type": "TypeBool", - "description": "A boolean that dictates if the resource instance should be deleted (cleaned up) during the processing of a region instance delete call.", + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", "computed": true }, { @@ -135656,50 +139015,62 @@ "description": "CRN of resource instance", "cloud_data_type": "crn", "computed": true - } - ], - "ibm_resource_key": [ + }, { - "name": "name", - "type": "TypeString", - "description": "The name of the resource key", - "immutable": true, - "required": true + "name": "plan_history", + "type": "TypeList", + "description": "The plan history of the instance.", + "computed": true, + "elem": { + "resource_plan_id": { + "name": "resource_plan_id", + "type": "TypeString", + "computed": true + }, + "start_date": { + "name": "start_date", + "type": "TypeString", + "computed": true + } + } }, { - "name": "url", + "name": "resource_group_crn", "type": "TypeString", - "description": "When you created a new key, a relative URL path is created identifying the location of the key.", + "description": "The long ID (full CRN) of the resource group", "computed": true }, { - "name": "source_crn", + "name": "type", "type": "TypeString", - "description": "The CRN of resource instance or alias associated to the key.", + "description": "The type of the instance, e.g. service_instance.", "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The date when the key was created.", + "name": "allow_cleanup", + "type": "TypeBool", + "description": "A boolean that dictates if the resource instance should be deleted (cleaned up) during the processing of a region instance delete call.", "computed": true - }, + } + ], + "ibm_resource_key": [ { - "name": "created_by", + "name": "resource_group_id", "type": "TypeString", - "description": "The subject who created the key.", + "description": "The short ID of the resource group.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "resource_instance_url", + "name": "created_by", "type": "TypeString", - "description": "The relative path to the resource.", + "description": "The subject who created the key.", "computed": true }, { - "name": "resource_alias_id", + "name": "role", "type": "TypeString", - "description": "The id of the resource alias for which to create resource key", + "description": "Name of the user role.Valid roles are Writer, Reader, Manager, Administrator, Operator, Viewer, Editor and Custom Roles.", "immutable": true, "optional": true }, @@ -135717,6 +139088,13 @@ "secure": true, "computed": true }, + { + "name": "crn", + "type": "TypeString", + "description": "crn of resource key", + "cloud_data_type": "crn", + "computed": true + }, { "name": "tags", "type": "TypeSet", @@ -135727,89 +139105,94 @@ } }, { - "name": "crn", + "name": "url", "type": "TypeString", - "description": "crn of resource key", - "cloud_data_type": "crn", + "description": "When you created a new key, a relative URL path is created identifying the location of the key.", "computed": true }, { - "name": "deleted_at", + "name": "account_id", "type": "TypeString", - "description": "The date when the key was deleted.", + "description": "An alpha-numeric value identifying the account ID.", "computed": true }, { - "name": "deleted_by", + "name": "state", "type": "TypeString", - "description": "The subject who deleted the key.", + "description": "The state of the key.", "computed": true }, { - "name": "parameters", - "type": "TypeMap", - "description": "Arbitrary parameters to pass. Must be a JSON object", - "optional": true + "name": "name", + "type": "TypeString", + "description": "The name of the resource key", + "immutable": true, + "required": true }, { - "name": "status", + "name": "resource_instance_id", "type": "TypeString", - "description": "Status of resource key", - "computed": true + "description": "The id of the resource instance for which to create resource key", + "cloud_data_type": "resource_instance", + "immutable": true, + "optional": true, + "cloud_data_range": [ + "service:%s" + ] }, { - "name": "guid", + "name": "resource_alias_id", "type": "TypeString", - "description": "When you create a new key, a globally unique identifier (GUID) is assigned.", - "computed": true + "description": "The id of the resource alias for which to create resource key", + "immutable": true, + "optional": true }, { - "name": "state", + "name": "status", "type": "TypeString", - "description": "The state of the key.", + "description": "Status of resource key", "computed": true }, { - "name": "updated_at", + "name": "created_at", "type": "TypeString", - "description": "The date when the key was last updated.", + "description": "The date when the key was created.", "computed": true }, { - "name": "updated_by", + "name": "deleted_at", "type": "TypeString", - "description": "The subject who updated the key.", + "description": "The date when the key was deleted.", "computed": true }, { - "name": "role", - "type": "TypeString", - "description": "Name of the user role.Valid roles are Writer, Reader, Manager, Administrator, Operator, Viewer, Editor and Custom Roles.", - "immutable": true, + "name": "parameters", + "type": "TypeMap", + "description": "Arbitrary parameters to pass. Must be a JSON object", "optional": true }, { - "name": "resource_instance_id", + "name": "guid", "type": "TypeString", - "description": "The id of the resource instance for which to create resource key", - "cloud_data_type": "resource_instance", - "immutable": true, - "optional": true, - "cloud_data_range": [ - "service:%s" - ] + "description": "When you create a new key, a globally unique identifier (GUID) is assigned.", + "computed": true }, { - "name": "account_id", + "name": "deleted_by", "type": "TypeString", - "description": "An alpha-numeric value identifying the account ID.", + "description": "The subject who deleted the key.", "computed": true }, { - "name": "resource_group_id", + "name": "updated_by", "type": "TypeString", - "description": "The short ID of the resource group.", - "cloud_data_type": "resource_group", + "description": "The subject who updated the key.", + "computed": true + }, + { + "name": "source_crn", + "type": "TypeString", + "description": "The CRN of resource instance or alias associated to the key.", "computed": true }, { @@ -135817,31 +139200,21 @@ "type": "TypeBool", "description": "Specifies whether the key's credentials support IAM.", "computed": true - } - ], - "ibm_resource_tag": [ + }, { - "name": "resource_id", + "name": "resource_instance_url", "type": "TypeString", - "description": "CRN of the resource on which the tags should be attached", - "required": true, - "min_length": 1, - "max_length": 1024, - "matches": "^crn:v1(:[a-zA-Z0-9 \\-\\._~\\*\\+,;=!$\u0026'\\(\\)\\/\\?#\\[\\]@]*){8}$|^[0-9]+$" + "description": "The relative path to the resource.", + "computed": true }, { - "name": "tags", - "type": "TypeSet", - "description": "List of tags associated with resource instance", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, + "name": "updated_at", + "type": "TypeString", + "description": "The date when the key was last updated.", + "computed": true + } + ], + "ibm_resource_tag": [ { "name": "resource_type", "type": "TypeString", @@ -135861,25 +139234,20 @@ "type": "TypeString", "description": "The ID of the account that owns the resources to be tagged (required if tag-type is set to service)", "computed": true - } - ], - "ibm_satellite_cluster": [ - { - "name": "pod_subnet", - "type": "TypeString", - "description": "User provided value for the pod subnet", - "optional": true, - "computed": true }, { - "name": "public_service_endpoint_url", + "name": "resource_id", "type": "TypeString", - "computed": true + "description": "CRN of the resource on which the tags should be attached", + "required": true, + "min_length": 1, + "max_length": 1024, + "matches": "^crn:v1(:[a-zA-Z0-9 \\-\\._~\\*\\+,;=!$\u0026'\\(\\)\\/\\?#\\[\\]@]*){8}$|^[0-9]+$" }, { "name": "tags", "type": "TypeSet", - "description": "List of tags for the resources", + "description": "List of tags associated with resource instance", "min_length": 1, "max_length": 128, "matches": "^[A-Za-z0-9:_ .-]+$", @@ -135888,49 +139256,26 @@ "elem": { "type": "TypeString" } - }, - { - "name": "disable_public_service_endpoint", - "type": "TypeBool", - "description": "Boolean value true if Public service endpoint to be disabled", - "default_value": false, - "optional": true - }, - { - "name": "crn_token", - "type": "TypeString", - "description": "The IBM Cloud Identity and Access Management (IAM) service CRN token for the service that creates the cluster.", - "secure": true, - "optional": true - }, + } + ], + "ibm_satellite_cluster": [ { - "name": "operating_system", + "name": "public_service_endpoint_url", "type": "TypeString", - "description": "Operating system of the default worker pool. Options are REDHAT_7_64, REDHAT_8_64, or RHCOS.", - "optional": true, "computed": true }, { - "name": "worker_count", - "type": "TypeInt", - "description": "The number of worker nodes per zone in the default worker pool. Required when '--host-label' is specified. (default: 0)", - "optional": true, + "name": "private_service_endpoint_url", + "type": "TypeString", "computed": true }, { - "name": "pull_secret", - "type": "TypeString", - "description": "The RedHat pull secret to create the OpenShift cluster", + "name": "wait_for_worker_update", + "type": "TypeBool", + "description": "Wait for worker node to update during kube version update.", + "default_value": true, "optional": true }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "optional": true, - "computed": true - }, { "name": "name", "type": "TypeString", @@ -135938,11 +139283,6 @@ "immutable": true, "required": true }, - { - "name": "master_url", - "type": "TypeString", - "computed": true - }, { "name": "location", "type": "TypeString", @@ -135951,19 +139291,15 @@ "required": true }, { - "name": "public_service_endpoint_enabled", - "type": "TypeBool", - "computed": true - }, - { - "name": "ingress_hostname", + "name": "state", "type": "TypeString", + "description": "The lifecycle state of the cluster.", "computed": true }, { - "name": "host_labels", - "type": "TypeSet", - "description": "Labels that describe a Satellite host for default workerpool", + "name": "default_worker_pool_labels", + "type": "TypeMap", + "description": "Labels on the default worker pool", "optional": true, "computed": true, "elem": { @@ -135986,38 +139322,39 @@ } }, { - "name": "resource_group_name", + "name": "ingress_secret", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "secure": true, "computed": true }, { - "name": "private_service_endpoint_url", + "name": "pod_subnet", "type": "TypeString", + "description": "User provided value for the pod subnet", + "optional": true, "computed": true }, { - "name": "state", + "name": "service_subnet", "type": "TypeString", - "description": "The lifecycle state of the cluster.", + "description": "User provided value for service subnet", + "optional": true, "computed": true }, { - "name": "patch_version", + "name": "crn", "type": "TypeString", - "description": "Kubernetes patch version", - "optional": true - }, - { - "name": "retry_patch_version", - "type": "TypeInt", - "description": "Argument which helps to retry the patch version updates on worker nodes. Increment the value to retry the patch updates if the previous apply fails", - "optional": true + "description": "CRN of resource instance", + "cloud_data_type": "crn", + "computed": true }, { - "name": "default_worker_pool_labels", - "type": "TypeMap", - "description": "Labels on the default worker pool", + "name": "tags", + "type": "TypeSet", + "description": "List of tags for the resources", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", "optional": true, "computed": true, "elem": { @@ -136025,24 +139362,26 @@ } }, { - "name": "crn", + "name": "patch_version", "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", - "computed": true + "description": "Kubernetes patch version", + "optional": true }, { - "name": "ingress_secret", + "name": "master_status", "type": "TypeString", - "secure": true, "computed": true }, { - "name": "infrastructure_topology", - "type": "TypeString", - "description": "String value for single node cluster option. Available options: single-replica, highly-available (default: highly-available)", - "immutable": true, - "optional": true, + "name": "disable_public_service_endpoint", + "type": "TypeBool", + "description": "Boolean value true if Public service endpoint to be disabled", + "default_value": false, + "optional": true + }, + { + "name": "public_service_endpoint_enabled", + "type": "TypeBool", "computed": true }, { @@ -136053,24 +139392,17 @@ "computed": true }, { - "name": "master_status", + "name": "operating_system", "type": "TypeString", + "description": "Operating system of the default worker pool. Options are REDHAT_7_64, REDHAT_8_64, or RHCOS.", + "optional": true, "computed": true }, { - "name": "service_subnet", + "name": "master_url", "type": "TypeString", - "description": "User provided value for service subnet", - "optional": true, "computed": true }, - { - "name": "wait_for_worker_update", - "type": "TypeBool", - "description": "Wait for worker node to update during kube version update.", - "default_value": true, - "optional": true - }, { "name": "enable_config_admin", "type": "TypeBool", @@ -136079,17 +139411,33 @@ "computed": true }, { - "name": "private_service_endpoint_enabled", - "type": "TypeBool", + "name": "worker_count", + "type": "TypeInt", + "description": "The number of worker nodes per zone in the default worker pool. Required when '--host-label' is specified. (default: 0)", + "optional": true, "computed": true - } - ], - "ibm_satellite_cluster_worker_pool": [ + }, + { + "name": "pull_secret", + "type": "TypeString", + "description": "The RedHat pull secret to create the OpenShift cluster", + "optional": true + }, + { + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true + }, + { + "name": "ingress_hostname", + "type": "TypeString", + "computed": true + }, { "name": "host_labels", "type": "TypeSet", - "description": "Labels that describe a Satellite host", - "immutable": true, + "description": "Labels that describe a Satellite host for default workerpool", "optional": true, "computed": true, "elem": { @@ -136097,29 +139445,44 @@ } }, { - "name": "resource_group_id", + "name": "infrastructure_topology", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", + "description": "String value for single node cluster option. Available options: single-replica, highly-available (default: highly-available)", + "immutable": true, "optional": true, "computed": true }, { - "name": "cluster", - "type": "TypeString", - "description": "The unique name for the new IBM Cloud Satellite cluster", - "immutable": true, - "required": true + "name": "retry_patch_version", + "type": "TypeInt", + "description": "Argument which helps to retry the patch version updates on worker nodes. Increment the value to retry the patch updates if the previous apply fails", + "optional": true }, { - "name": "entitlement", + "name": "private_service_endpoint_enabled", + "type": "TypeBool", + "computed": true + }, + { + "name": "crn_token", "type": "TypeString", + "description": "The IBM Cloud Identity and Access Management (IAM) service CRN token for the service that creates the cluster.", + "secure": true, "optional": true }, { - "name": "worker_count", - "type": "TypeInt", - "description": "Specify the desired number of workers per zone in this worker pool", + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "optional": true, + "computed": true + } + ], + "ibm_satellite_cluster_worker_pool": [ + { + "name": "isolation", + "type": "TypeString", "optional": true, "computed": true }, @@ -136149,53 +139512,71 @@ } }, { - "name": "name", - "type": "TypeString", - "description": "The name for the worker pool", - "required": true + "name": "host_labels", + "type": "TypeSet", + "description": "Labels that describe a Satellite host", + "immutable": true, + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "flavor", + "name": "resource_group_id", "type": "TypeString", - "description": "The flavor defines the amount of virtual CPU, memory, and disk space that is set up in each worker node", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", "optional": true, "computed": true }, { - "name": "disk_encryption", - "type": "TypeBool", - "description": "Disk encryption for worker node", - "optional": true + "name": "cluster", + "type": "TypeString", + "description": "The unique name for the new IBM Cloud Satellite cluster", + "immutable": true, + "required": true }, { - "name": "isolation", + "name": "flavor", "type": "TypeString", + "description": "The flavor defines the amount of virtual CPU, memory, and disk space that is set up in each worker node", "optional": true, "computed": true }, + { + "name": "entitlement", + "type": "TypeString", + "optional": true + }, { "name": "operating_system", "type": "TypeString", "description": "Operating system of the worker pool. Options are REDHAT_7_64, REDHAT_8_64, or RHCOS.", "optional": true, "computed": true - } - ], - "ibm_satellite_cluster_worker_pool_zone_attachment": [ + }, { - "name": "autobalance_enabled", - "type": "TypeBool", + "name": "worker_count", + "type": "TypeInt", + "description": "Specify the desired number of workers per zone in this worker pool", + "optional": true, "computed": true }, { - "name": "messages", - "type": "TypeList", - "description": "Filter features by a list of comma separated collections.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "name", + "type": "TypeString", + "description": "The name for the worker pool", + "required": true }, + { + "name": "disk_encryption", + "type": "TypeBool", + "description": "Disk encryption for worker node", + "optional": true + } + ], + "ibm_satellite_cluster_worker_pool_zone_attachment": [ { "name": "worker_count", "type": "TypeInt", @@ -136227,20 +139608,27 @@ "cloud_data_type": "resource_group", "immutable": true, "optional": true - } - ], - "ibm_satellite_endpoint": [ + }, { - "name": "client_mutual_auth", + "name": "autobalance_enabled", "type": "TypeBool", - "description": "Whether enable mutual auth in the client application side, when client_protocol is 'tls' or 'https', this field is required.", - "default_value": false, - "optional": true + "computed": true }, { - "name": "connector_port", - "type": "TypeInt", - "description": "The connector port.", + "name": "messages", + "type": "TypeList", + "description": "Filter features by a list of comma separated collections.", + "computed": true, + "elem": { + "type": "TypeString" + } + } + ], + "ibm_satellite_endpoint": [ + { + "name": "last_change", + "type": "TypeString", + "description": "The last time modify the Endpoint configurations.", "computed": true }, { @@ -136250,30 +139638,10 @@ "computed": true }, { - "name": "server_port", - "type": "TypeInt", - "description": "The port number of the server endpoint. For 'http-tunnel' protocol, server_port can be 0, which means any port. Such as 0 is good for 80 (http) and 443 (https).", - "required": true - }, - { - "name": "client_protocol", - "type": "TypeString", - "description": "The protocol in the client application side.", - "required": true, - "options": "http, http-tunnel, https, tcp, tls, udp" - }, - { - "name": "server_mutual_auth", - "type": "TypeBool", - "description": "Whether enable mutual auth in the server application side, when client_protocol is 'tls', this field is required.", - "default_value": false, - "optional": true - }, - { - "name": "created_by", + "name": "display_name", "type": "TypeString", - "description": "The service or person who created the endpoint. Must be 1000 characters or fewer.", - "optional": true + "description": "The display name of the endpoint. Endpoint names must start with a letter and end with an alphanumeric character, can contain letters, numbers, and hyphen (-), and must be 63 characters or fewer.", + "required": true }, { "name": "certs", @@ -136395,46 +139763,6 @@ }, "max_items": 1 }, - { - "name": "last_change", - "type": "TypeString", - "description": "The last time modify the Endpoint configurations.", - "computed": true - }, - { - "name": "display_name", - "type": "TypeString", - "description": "The display name of the endpoint. Endpoint names must start with a letter and end with an alphanumeric character, can contain letters, numbers, and hyphen (-), and must be 63 characters or fewer.", - "required": true - }, - { - "name": "sni", - "type": "TypeString", - "description": "The server name indicator (SNI) which used to connect to the server endpoint. Only useful if server side requires SNI.", - "optional": true - }, - { - "name": "server_protocol", - "type": "TypeString", - "description": "The protocol in the server application side. This parameter will change to default value if it is omitted even when using PATCH API. If client_protocol is 'udp', server_protocol must be 'udp'. If client_protocol is 'tcp'/'http', server_protocol could be 'tcp'/'tls' and default to 'tcp'. If client_protocol is 'tls'/'https', server_protocol could be 'tcp'/'tls' and default to 'tls'. If client_protocol is 'http-tunnel', server_protocol must be 'tcp'.", - "options": "tcp, tls, udp", - "optional": true - }, - { - "name": "reject_unauth", - "type": "TypeBool", - "description": "Whether reject any connection to the server application which is not authorized with the list of supplied CAs in the fields certs.server_cert.", - "default_value": false, - "optional": true - }, - { - "name": "timeout", - "type": "TypeInt", - "description": "The inactivity timeout in the Endpoint side.", - "min_value": "1", - "max_value": "180", - "optional": true - }, { "name": "crn", "type": "TypeString", @@ -136442,49 +139770,6 @@ "cloud_data_type": "crn", "computed": true }, - { - "name": "service_name", - "type": "TypeString", - "description": "The service name of the endpoint.", - "computed": true - }, - { - "name": "client_host", - "type": "TypeString", - "description": "The hostname which Satellite Link server listen on for the on-location endpoint, or the hostname which the connector server listen on for the on-cloud endpoint destiantion.", - "computed": true - }, - { - "name": "connection_type", - "type": "TypeString", - "description": "The type of the endpoint.", - "required": true, - "options": "cloud, location" - }, - { - "name": "server_host", - "type": "TypeString", - "description": "The host name or IP address of the server endpoint. For 'http-tunnel' protocol, server_host can start with '*.' , which means a wildcard to it's sub domains. Such as '*.example.com' can accept request to 'api.example.com' and 'www.example.com'.", - "required": true - }, - { - "name": "client_port", - "type": "TypeInt", - "description": "The port which Satellite Link server listen on for the on-location, or the port which the connector server listen on for the on-cloud endpoint destiantion.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The time when the Endpoint is created.", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "Whether the Endpoint is active or not.", - "computed": true - }, { "name": "performance", "type": "TypeList", @@ -136556,6 +139841,12 @@ "cloud_data_type": "region", "required": true }, + { + "name": "server_host", + "type": "TypeString", + "description": "The host name or IP address of the server endpoint. For 'http-tunnel' protocol, server_host can start with '*.' , which means a wildcard to it's sub domains. Such as '*.example.com' can accept request to 'api.example.com' and 'www.example.com'.", + "required": true + }, { "name": "sources", "type": "TypeList", @@ -136586,50 +139877,123 @@ "optional": true } } - } - ], - "ibm_satellite_host": [ + }, { - "name": "location", + "name": "status", "type": "TypeString", - "description": "The name or ID of the Satellite location", - "cloud_data_type": "region", - "required": true + "description": "Whether the Endpoint is active or not.", + "computed": true }, { - "name": "cluster", + "name": "created_at", "type": "TypeString", - "description": "The name or ID of a Satellite location or cluster to assign the host to", - "optional": true, + "description": "The time when the Endpoint is created.", "computed": true }, { - "name": "host_id", + "name": "timeout", + "type": "TypeInt", + "description": "The inactivity timeout in the Endpoint side.", + "min_value": "1", + "max_value": "180", + "optional": true + }, + { + "name": "service_name", "type": "TypeString", - "description": "The specific host ID to assign to a Satellite location or cluster", + "description": "The service name of the endpoint.", + "computed": true + }, + { + "name": "client_host", + "type": "TypeString", + "description": "The hostname which Satellite Link server listen on for the on-location endpoint, or the hostname which the connector server listen on for the on-cloud endpoint destiantion.", + "computed": true + }, + { + "name": "client_protocol", + "type": "TypeString", + "description": "The protocol in the client application side.", + "required": true, + "options": "http, http-tunnel, https, tcp, tls, udp" + }, + { + "name": "client_mutual_auth", + "type": "TypeBool", + "description": "Whether enable mutual auth in the client application side, when client_protocol is 'tls' or 'https', this field is required.", + "default_value": false, + "optional": true + }, + { + "name": "server_protocol", + "type": "TypeString", + "description": "The protocol in the server application side. This parameter will change to default value if it is omitted even when using PATCH API. If client_protocol is 'udp', server_protocol must be 'udp'. If client_protocol is 'tcp'/'http', server_protocol could be 'tcp'/'tls' and default to 'tcp'. If client_protocol is 'tls'/'https', server_protocol could be 'tcp'/'tls' and default to 'tls'. If client_protocol is 'http-tunnel', server_protocol must be 'tcp'.", + "options": "tcp, tls, udp", + "optional": true + }, + { + "name": "server_mutual_auth", + "type": "TypeBool", + "description": "Whether enable mutual auth in the server application side, when client_protocol is 'tls', this field is required.", + "default_value": false, + "optional": true + }, + { + "name": "reject_unauth", + "type": "TypeBool", + "description": "Whether reject any connection to the server application which is not authorized with the list of supplied CAs in the fields certs.server_cert.", + "default_value": false, + "optional": true + }, + { + "name": "connection_type", + "type": "TypeString", + "description": "The type of the endpoint.", + "required": true, + "options": "cloud, location" + }, + { + "name": "server_port", + "type": "TypeInt", + "description": "The port number of the server endpoint. For 'http-tunnel' protocol, server_port can be 0, which means any port. Such as 0 is good for 80 (http) and 443 (https).", "required": true }, { - "name": "labels", - "type": "TypeSet", - "description": "List of labels for the host", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "sni", + "type": "TypeString", + "description": "The server name indicator (SNI) which used to connect to the server endpoint. Only useful if server side requires SNI.", + "optional": true }, { - "name": "zone", + "name": "created_by", "type": "TypeString", - "description": "The zone within the cluster to assign the host to", - "optional": true, + "description": "The service or person who created the endpoint. Must be 1000 characters or fewer.", + "optional": true + }, + { + "name": "connector_port", + "type": "TypeInt", + "description": "The connector port.", "computed": true }, { - "name": "worker_pool", + "name": "client_port", + "type": "TypeInt", + "description": "The port which Satellite Link server listen on for the on-location, or the port which the connector server listen on for the on-cloud endpoint destiantion.", + "computed": true + } + ], + "ibm_satellite_host": [ + { + "name": "host_id", "type": "TypeString", - "description": "The name or ID of the worker pool within the cluster to assign the host to", + "description": "The specific host ID to assign to a Satellite location or cluster", + "required": true + }, + { + "name": "zone", + "type": "TypeString", + "description": "The zone within the cluster to assign the host to", "optional": true, "computed": true }, @@ -136639,54 +140003,52 @@ "description": "Host Provider", "optional": true }, - { - "name": "host_state", - "type": "TypeString", - "description": "Health status of the host", - "computed": true - }, { "name": "wait_till", "type": "TypeString", "description": "Wait until location is normal", "options": "location_normal", "optional": true - } - ], - "ibm_satellite_link": [ + }, { - "name": "crn", + "name": "location", "type": "TypeString", - "description": "CRN of the Location.", - "cloud_data_type": "crn", - "immutable": true, + "description": "The name or ID of the Satellite location", + "cloud_data_type": "region", "required": true }, { - "name": "ws_endpoint", + "name": "cluster", "type": "TypeString", - "description": "The ws endpoint of the location.", + "description": "The name or ID of a Satellite location or cluster to assign the host to", "optional": true, "computed": true }, { - "name": "satellite_link_host", - "type": "TypeString", - "description": "Satellite Link hostname of the location.", - "computed": true + "name": "labels", + "type": "TypeSet", + "description": "List of labels for the host", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "status", + "name": "worker_pool", "type": "TypeString", - "description": "Enabled/Disabled.", + "description": "The name or ID of the worker pool within the cluster to assign the host to", + "optional": true, "computed": true }, { - "name": "created_at", + "name": "host_state", "type": "TypeString", - "description": "Timestamp of creation of location.", + "description": "Health status of the host", "computed": true - }, + } + ], + "ibm_satellite_link": [ { "name": "location", "type": "TypeString", @@ -136696,15 +140058,16 @@ "required": true }, { - "name": "description", + "name": "ws_endpoint", "type": "TypeString", - "description": "Description of the location.", + "description": "The ws endpoint of the location.", + "optional": true, "computed": true }, { - "name": "last_change", + "name": "created_at", "type": "TypeString", - "description": "Timestamp of latest modification of location.", + "description": "Timestamp of creation of location.", "computed": true }, { @@ -136782,17 +140145,47 @@ "optional": true } } + }, + { + "name": "crn", + "type": "TypeString", + "description": "CRN of the Location.", + "cloud_data_type": "crn", + "immutable": true, + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Description of the location.", + "computed": true + }, + { + "name": "satellite_link_host", + "type": "TypeString", + "description": "Satellite Link hostname of the location.", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Enabled/Disabled.", + "computed": true + }, + { + "name": "last_change", + "type": "TypeString", + "description": "Timestamp of latest modification of location.", + "computed": true } ], "ibm_satellite_location": [ { - "name": "host_attached_count", - "type": "TypeInt", - "description": "The total number of hosts that are attached to the Satellite location.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "crn", + "type": "TypeString", + "description": "Location CRN", + "cloud_data_type": "crn", + "computed": true }, { "name": "created_on", @@ -136801,28 +140194,20 @@ "computed": true }, { - "name": "cos_config", - "type": "TypeList", - "description": "COSBucket - IBM Cloud Object Storage bucket configuration details", + "name": "zones", + "type": "TypeSet", + "description": "The names of at least three high availability zones to use for the location", "optional": true, + "computed": true, "elem": { - "bucket": { - "name": "bucket", - "type": "TypeString", - "optional": true - }, - "endpoint": { - "name": "endpoint", - "type": "TypeString", - "optional": true - }, - "region": { - "name": "region", - "type": "TypeString", - "optional": true - } - }, - "max_items": 1 + "type": "TypeString" + } + }, + { + "name": "description", + "type": "TypeString", + "description": "A description of the new Satellite location", + "optional": true }, { "name": "cos_credentials", @@ -136846,11 +140231,17 @@ "max_items": 1 }, { - "name": "crn", - "type": "TypeString", - "description": "Location CRN", - "cloud_data_type": "crn", - "computed": true + "name": "tags", + "type": "TypeSet", + "description": "List of tags associated with resource instance", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "host_available_count", @@ -136862,15 +140253,16 @@ } }, { - "name": "ingress_hostname", + "name": "ingress_secret", "type": "TypeString", + "secure": true, "computed": true }, { - "name": "description", + "name": "managed_from", "type": "TypeString", - "description": "A description of the new Satellite location", - "optional": true + "description": "The IBM Cloud metro from which the Satellite location is managed", + "required": true }, { "name": "logging_account_id", @@ -136878,6 +140270,47 @@ "description": "The account ID for IBM Log Analysis with LogDNA log forwarding", "optional": true }, + { + "name": "cos_config", + "type": "TypeList", + "description": "COSBucket - IBM Cloud Object Storage bucket configuration details", + "optional": true, + "elem": { + "bucket": { + "name": "bucket", + "type": "TypeString", + "optional": true + }, + "endpoint": { + "name": "endpoint", + "type": "TypeString", + "optional": true + }, + "region": { + "name": "region", + "type": "TypeString", + "optional": true + } + }, + "max_items": 1 + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "optional": true, + "computed": true + }, + { + "name": "host_attached_count", + "type": "TypeInt", + "description": "The total number of hosts that are attached to the Satellite location.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "coreos_enabled", "type": "TypeBool", @@ -136892,9 +140325,8 @@ "computed": true }, { - "name": "ingress_secret", + "name": "ingress_hostname", "type": "TypeString", - "secure": true, "computed": true }, { @@ -136903,43 +140335,6 @@ "description": "A unique name for the new Satellite location", "cloud_data_type": "region", "required": true - }, - { - "name": "managed_from", - "type": "TypeString", - "description": "The IBM Cloud metro from which the Satellite location is managed", - "required": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "List of tags associated with resource instance", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "zones", - "type": "TypeSet", - "description": "The names of at least three high availability zones to use for the location", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "optional": true, - "computed": true } ], "ibm_satellite_location_nlb_dns": [ @@ -136961,6 +140356,12 @@ } ], "ibm_satellite_storage_assignment": [ + { + "name": "assignment_name", + "type": "TypeString", + "description": "Name of the Assignment.", + "required": true + }, { "name": "uuid", "type": "TypeString", @@ -136969,21 +140370,33 @@ "computed": true }, { - "name": "owner", + "name": "cluster", "type": "TypeString", - "description": "The Owner of the Assignment.", + "description": "ID of the Satellite cluster or Service Cluster that you want to apply the configuration to.", + "optional": true + }, + { + "name": "assignment_type", + "type": "TypeString", + "description": "The Type of Assignment.", "computed": true }, { - "name": "config", + "name": "rollout_success_count", + "type": "TypeInt", + "description": "The Rollout Success Count of the Assignment.", + "computed": true + }, + { + "name": "svc_cluster", "type": "TypeString", - "description": "Storage Configuration Name or ID.", - "required": true + "description": "ID of the Service Cluster that you applied the configuration to.", + "computed": true }, { - "name": "config_version_uuid", + "name": "config_uuid", "type": "TypeString", - "description": "The Universally Unique IDentifier (UUID) of the Storage Configuration Version.", + "description": "The Universally Unique IDentifier (UUID) of the Storage Configuration.", "computed": true }, { @@ -136993,45 +140406,61 @@ "computed": true }, { - "name": "rollout_error_count", - "type": "TypeInt", - "description": "The Rollout Error Count of the Assignment.", - "computed": true + "name": "update_config_revision", + "type": "TypeBool", + "description": "Updating an assignment to the latest available storage configuration version.", + "default_value": false, + "optional": true }, { - "name": "sat_cluster", + "name": "controller", "type": "TypeString", - "description": "ID of the Satellite cluster that you applied the configuration to.", - "computed": true + "description": "The Name or ID of the Satellite Location.", + "optional": true }, { - "name": "config_uuid", + "name": "config_version", "type": "TypeString", - "description": "The Universally Unique IDentifier (UUID) of the Storage Configuration.", + "description": "The Storage Configuration Version.", "computed": true }, { - "name": "assignment_type", + "name": "rollout_error_count", + "type": "TypeInt", + "description": "The Rollout Error Count of the Assignment.", + "computed": true + }, + { + "name": "owner", "type": "TypeString", - "description": "The Type of Assignment.", + "description": "The Owner of the Assignment.", "computed": true }, { - "name": "rollout_success_count", - "type": "TypeInt", - "description": "The Rollout Success Count of the Assignment.", + "name": "groups", + "type": "TypeList", + "description": "One or more cluster groups on which you want to apply the configuration. Note that at least one cluster group is required.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "sat_cluster", + "type": "TypeString", + "description": "ID of the Satellite cluster that you applied the configuration to.", "computed": true }, { - "name": "cluster", + "name": "config", "type": "TypeString", - "description": "ID of the Satellite cluster or Service Cluster that you want to apply the configuration to.", - "optional": true + "description": "Storage Configuration Name or ID.", + "required": true }, { - "name": "svc_cluster", + "name": "config_version_uuid", "type": "TypeString", - "description": "ID of the Service Cluster that you applied the configuration to.", + "description": "The Universally Unique IDentifier (UUID) of the Storage Configuration Version.", "computed": true }, { @@ -137039,43 +140468,54 @@ "type": "TypeBool", "description": "Whether an Upgrade is Available for the Assignment.", "computed": true + } + ], + "ibm_satellite_storage_configuration": [ + { + "name": "user_secret_parameters", + "type": "TypeMap", + "description": "User Secret Parameters to pass as a Map of string key-value.", + "secure": true, + "required": true, + "elem": { + "type": "TypeString" + } }, { - "name": "update_config_revision", + "name": "delete_assignments", "type": "TypeBool", - "description": "Updating an assignment to the latest available storage configuration version.", + "description": "Set to delete all assignments during a configuration destroy.", "default_value": false, "optional": true }, { - "name": "controller", + "name": "location", "type": "TypeString", - "description": "The Name or ID of the Satellite Location.", - "optional": true + "description": "Location ID.", + "cloud_data_type": "region", + "required": true }, { - "name": "assignment_name", + "name": "storage_template_version", "type": "TypeString", - "description": "Name of the Assignment.", + "description": "The Storage Template Version.", "required": true }, { - "name": "groups", - "type": "TypeList", - "description": "One or more cluster groups on which you want to apply the configuration. Note that at least one cluster group is required.", - "optional": true, + "name": "storage_template_name", + "type": "TypeString", + "description": "The Storage Template Name.", + "required": true + }, + { + "name": "user_config_parameters", + "type": "TypeMap", + "description": "User Config Parameters to pass as a Map of string key-value.", + "required": true, "elem": { "type": "TypeString" } }, - { - "name": "config_version", - "type": "TypeString", - "description": "The Storage Configuration Version.", - "computed": true - } - ], - "ibm_satellite_storage_configuration": [ { "name": "storage_class_parameters", "type": "TypeList", @@ -137103,10 +140543,10 @@ "optional": true }, { - "name": "location", + "name": "config_name", "type": "TypeString", - "description": "Location ID.", - "cloud_data_type": "region", + "description": "Name of the Storage Configuration.", + "immutable": true, "required": true }, { @@ -137114,97 +140554,76 @@ "type": "TypeString", "description": "Version of the Storage Configuration.", "computed": true - }, + } + ], + "ibm_scc_account_settings": [], + "ibm_scc_control_library": [ { - "name": "storage_template_name", + "name": "control_library_description", "type": "TypeString", - "description": "The Storage Template Name.", - "required": true - }, - { - "name": "user_secret_parameters", - "type": "TypeMap", - "description": "User Secret Parameters to pass as a Map of string key-value.", - "secure": true, + "description": "The control library description.", "required": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "config_name", - "type": "TypeString", - "description": "Name of the Storage Configuration.", - "immutable": true, - "required": true + "min_length": 2, + "max_length": 256, + "matches": "[A-Za-z0-9]+" }, { - "name": "storage_template_version", + "name": "control_library_type", "type": "TypeString", - "description": "The Storage Template Version.", - "required": true - }, - { - "name": "user_config_parameters", - "type": "TypeMap", - "description": "User Config Parameters to pass as a Map of string key-value.", + "description": "The control library type.", "required": true, - "elem": { - "type": "TypeString" - } + "options": "custom, predefined" }, { - "name": "delete_assignments", + "name": "latest", "type": "TypeBool", - "description": "Set to delete all assignments during a configuration destroy.", - "default_value": false, + "description": "The latest version of the control library.", "optional": true - } - ], - "ibm_scc_account_settings": [], - "ibm_scc_control_library": [ - { - "name": "controls_count", - "type": "TypeInt", - "description": "The number of controls.", - "computed": true - }, - { - "name": "updated_on", - "type": "TypeString", - "description": "The date when the control library was updated.", - "computed": true }, { - "name": "control_library_id", - "type": "TypeString", - "description": "The control library ID.", + "name": "control_parents_count", + "type": "TypeInt", + "description": "The number of parent controls in the control library.", "computed": true }, { - "name": "control_library_description", + "name": "control_library_name", "type": "TypeString", - "description": "The control library description.", + "description": "The control library name.", "required": true, "min_length": 2, - "max_length": 256, - "matches": "[A-Za-z0-9]+" + "max_length": 64, + "matches": "^[a-zA-Z0-9_\\s\\-]*$" }, { - "name": "version_group_label", + "name": "control_library_version", "type": "TypeString", - "description": "The version group label.", - "min_length": 36, - "max_length": 36, - "matches": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", + "description": "The control library version.", + "min_length": 5, + "max_length": 64, + "matches": "^[a-zA-Z0-9_\\-.]*$", "optional": true }, + { + "name": "controls_count", + "type": "TypeInt", + "description": "The number of controls.", + "computed": true + }, { "name": "created_on", "type": "TypeString", "description": "The date when the control library was created.", "computed": true }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Security and Compliance Center instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, { "name": "created_by", "type": "TypeString", @@ -137212,30 +140631,24 @@ "computed": true }, { - "name": "hierarchy_enabled", - "type": "TypeBool", - "description": "The indication of whether hierarchy is enabled for the control library.", + "name": "updated_by", + "type": "TypeString", + "description": "The user who updated the control library.", "computed": true }, { - "name": "latest", - "type": "TypeBool", - "description": "The latest version of the control library.", - "optional": true - }, - { - "name": "account_id", + "name": "control_library_id", "type": "TypeString", - "description": "The account ID.", + "description": "The control library ID.", "computed": true }, { - "name": "control_library_version", + "name": "version_group_label", "type": "TypeString", - "description": "The control library version.", - "min_length": 5, - "max_length": 64, - "matches": "^[a-zA-Z0-9_\\-.]*$", + "description": "The version group label.", + "min_length": 36, + "max_length": 36, + "matches": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", "optional": true }, { @@ -137433,43 +140846,70 @@ } }, { - "name": "updated_by", + "name": "account_id", "type": "TypeString", - "description": "The user who updated the control library.", + "description": "The account ID.", + "computed": true + }, + { + "name": "updated_on", + "type": "TypeString", + "description": "The date when the control library was updated.", + "computed": true + }, + { + "name": "hierarchy_enabled", + "type": "TypeBool", + "description": "The indication of whether hierarchy is enabled for the control library.", + "computed": true + } + ], + "ibm_scc_profile": [ + { + "name": "created_by", + "type": "TypeString", + "description": "The user who created the profile.", "computed": true }, { "name": "control_parents_count", "type": "TypeInt", - "description": "The number of parent controls in the control library.", + "description": "The number of parent controls for the profile.", "computed": true }, { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Security and Compliance Center instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "name": "attachments_count", + "type": "TypeInt", + "description": "The number of attachments related to this profile.", + "computed": true }, { - "name": "control_library_name", + "name": "profile_name", "type": "TypeString", - "description": "The control library name.", + "description": "The profile name.", "required": true, "min_length": 2, "max_length": 64, "matches": "^[a-zA-Z0-9_\\s\\-]*$" }, { - "name": "control_library_type", + "name": "profile_type", "type": "TypeString", - "description": "The control library type.", - "required": true, - "options": "custom, predefined" - } - ], - "ibm_scc_profile": [ + "description": "The profile type, such as custom or predefined.", + "required": true + }, + { + "name": "updated_by", + "type": "TypeString", + "description": "The user who updated the profile.", + "computed": true + }, + { + "name": "updated_on", + "type": "TypeString", + "description": "The date when the profile was updated.", + "computed": true + }, { "name": "profile_id", "type": "TypeString", @@ -137477,13 +140917,21 @@ "computed": true }, { - "name": "profile_name", + "name": "profile_description", "type": "TypeString", - "description": "The profile name.", + "description": "The profile description.", "required": true, "min_length": 2, - "max_length": 64, - "matches": "^[a-zA-Z0-9_\\s\\-]*$" + "max_length": 256, + "matches": "^[a-zA-Z0-9_,'\"\\s\\-\\[\\]]+$" + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Security and Compliance Center instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { "name": "latest", @@ -137503,15 +140951,6 @@ "description": "The number of controls for the profile.", "computed": true }, - { - "name": "profile_description", - "type": "TypeString", - "description": "The profile description.", - "required": true, - "min_length": 2, - "max_length": 256, - "matches": "^[a-zA-Z0-9_,'\"\\s\\-\\[\\]]+$" - }, { "name": "controls", "type": "TypeList", @@ -137709,29 +141148,17 @@ } }, { - "name": "updated_by", + "name": "version_group_label", "type": "TypeString", - "description": "The user who updated the profile.", + "description": "The version group label of the profile.", "computed": true }, { - "name": "updated_on", + "name": "created_on", "type": "TypeString", - "description": "The date when the profile was updated.", - "computed": true - }, - { - "name": "control_parents_count", - "type": "TypeInt", - "description": "The number of parent controls for the profile.", + "description": "The date when the profile was created.", "computed": true }, - { - "name": "profile_type", - "type": "TypeString", - "description": "The profile type, such as custom or predefined.", - "required": true - }, { "name": "default_parameters", "type": "TypeList", @@ -137776,46 +141203,20 @@ } } }, - { - "name": "version_group_label", - "type": "TypeString", - "description": "The version group label of the profile.", - "computed": true - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Security and Compliance Center instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "created_on", - "type": "TypeString", - "description": "The date when the profile was created.", - "computed": true - }, { "name": "profile_version", "type": "TypeString", "description": "The version status of the profile.", "computed": true - }, + } + ], + "ibm_scc_profile_attachment": [ { - "name": "created_by", + "name": "profile_attachment_id", "type": "TypeString", - "description": "The user who created the profile.", + "description": "The profile attachment ID.", "computed": true }, - { - "name": "attachments_count", - "type": "TypeInt", - "description": "The number of attachments related to this profile.", - "computed": true - } - ], - "ibm_scc_profile_attachment": [ { "name": "profile_id", "type": "TypeString", @@ -137826,14 +141227,6 @@ "max_length": 36, "matches": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Security and Compliance Center instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, { "name": "updated_by", "type": "TypeString", @@ -137841,83 +141234,23 @@ "computed": true }, { - "name": "attachment_parameters", - "type": "TypeList", - "description": "The profile parameters for the attachment.", - "optional": true, - "elem": { - "assessment_id": { - "name": "assessment_id", - "type": "TypeString", - "description": "The implementation ID of the parameter.", - "optional": true - }, - "assessment_type": { - "name": "assessment_type", - "type": "TypeString", - "description": "The type of the implementation.", - "optional": true - }, - "parameter_display_name": { - "name": "parameter_display_name", - "type": "TypeString", - "description": "The parameter display name.", - "optional": true - }, - "parameter_name": { - "name": "parameter_name", - "type": "TypeString", - "description": "The parameter name.", - "optional": true - }, - "parameter_type": { - "name": "parameter_type", - "type": "TypeString", - "description": "The parameter type.", - "optional": true - }, - "parameter_value": { - "name": "parameter_value", - "type": "TypeString", - "description": "The value of the parameter.", - "optional": true - } - } - }, - { - "name": "attachment_id", - "type": "TypeString", - "description": "The ID of the attachment.", - "computed": true - }, - { - "name": "account_id", - "type": "TypeString", - "description": "The account ID that is associated to the attachment.", - "computed": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "The user who created the attachment.", - "computed": true - }, - { - "name": "created_on", + "name": "name", "type": "TypeString", - "description": "The date when the attachment was created.", - "computed": true + "description": "The name of the attachment.", + "required": true }, { - "name": "schedule", + "name": "instance_id", "type": "TypeString", - "description": "The schedule of an attachment evaluation.", + "description": "The ID of the Security and Compliance Center instance.", + "cloud_data_type": "resource_instance", + "immutable": true, "required": true }, { - "name": "profile_attachment_id", + "name": "account_id", "type": "TypeString", - "description": "The profile attachment ID.", + "description": "The account ID that is associated to the attachment.", "computed": true }, { @@ -137954,6 +141287,12 @@ } } }, + { + "name": "schedule", + "type": "TypeString", + "description": "The schedule of an attachment evaluation.", + "required": true + }, { "name": "notifications", "type": "TypeList", @@ -138020,22 +141359,22 @@ } }, { - "name": "next_scan_time", + "name": "description", "type": "TypeString", - "description": "The start time of the next scan.", - "computed": true + "description": "The description for the attachment.", + "optional": true }, { - "name": "name", + "name": "created_on", "type": "TypeString", - "description": "The name of the attachment.", - "required": true + "description": "The date when the attachment was created.", + "computed": true }, { - "name": "description", + "name": "created_by", "type": "TypeString", - "description": "The description for the attachment.", - "optional": true + "description": "The user who created the attachment.", + "computed": true }, { "name": "updated_on", @@ -138048,38 +141387,65 @@ "type": "TypeString", "description": "The status of an attachment evaluation.", "required": true - } - ], - "ibm_scc_provider_type_instance": [ - { - "name": "attributes", - "type": "TypeMap", - "optional": true - }, - { - "name": "type", - "type": "TypeString", - "description": "The type of the provider type.", - "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "Time at which resource was created.", - "computed": true + "name": "attachment_parameters", + "type": "TypeList", + "description": "The profile parameters for the attachment.", + "optional": true, + "elem": { + "assessment_id": { + "name": "assessment_id", + "type": "TypeString", + "description": "The implementation ID of the parameter.", + "optional": true + }, + "assessment_type": { + "name": "assessment_type", + "type": "TypeString", + "description": "The type of the implementation.", + "optional": true + }, + "parameter_display_name": { + "name": "parameter_display_name", + "type": "TypeString", + "description": "The parameter display name.", + "optional": true + }, + "parameter_name": { + "name": "parameter_name", + "type": "TypeString", + "description": "The parameter name.", + "optional": true + }, + "parameter_type": { + "name": "parameter_type", + "type": "TypeString", + "description": "The parameter type.", + "optional": true + }, + "parameter_value": { + "name": "parameter_value", + "type": "TypeString", + "description": "The value of the parameter.", + "optional": true + } + } }, { - "name": "updated_at", + "name": "next_scan_time", "type": "TypeString", - "description": "Time at which resource was updated.", + "description": "The start time of the next scan.", "computed": true }, { - "name": "provider_type_instance_id", + "name": "attachment_id", "type": "TypeString", - "description": "The unique identifier of the provider type instance.", + "description": "The ID of the attachment.", "computed": true - }, + } + ], + "ibm_scc_provider_type_instance": [ { "name": "instance_id", "type": "TypeString", @@ -138106,78 +141472,131 @@ "min_length": 1, "max_length": 64, "matches": "[A-Za-z0-9]+" - } - ], - "ibm_scc_rule": [ + }, { - "name": "created_by", + "name": "attributes", + "type": "TypeMap", + "optional": true + }, + { + "name": "type", "type": "TypeString", - "description": "The user who created the rule.", + "description": "The type of the provider type.", "computed": true }, { - "name": "description", + "name": "created_at", "type": "TypeString", - "description": "The details of a rule's response.", - "required": true, - "max_length": 512, - "matches": "[A-Za-z0-9]+" + "description": "Time at which resource was created.", + "computed": true }, { - "name": "etag", + "name": "updated_at", "type": "TypeString", - "description": "The etag of the rule.", + "description": "Time at which resource was updated.", "computed": true }, { - "name": "import", + "name": "provider_type_instance_id", + "type": "TypeString", + "description": "The unique identifier of the provider type instance.", + "computed": true + } + ], + "ibm_scc_rule": [ + { + "name": "target", "type": "TypeList", - "description": "The collection of import parameters.", - "optional": true, + "description": "The rule target.", + "required": true, "elem": { - "parameters": { - "name": "parameters", + "additional_target_attributes": { + "name": "additional_target_attributes", "type": "TypeList", - "description": "The list of import parameters.", + "description": "The list of targets supported properties.", "optional": true, "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "The propery description.", - "optional": true - }, - "display_name": { - "name": "display_name", + "name": { + "name": "name", "type": "TypeString", - "description": "The display name of the property.", + "description": "The additional target attribute name.", "optional": true }, - "name": { - "name": "name", + "operator": { + "name": "operator", "type": "TypeString", - "description": "The import parameter name.", + "description": "The operator.", "optional": true }, - "type": { - "name": "type", + "value": { + "name": "value", "type": "TypeString", - "description": "The property type.", + "description": "The value.", "optional": true } } + }, + "resource_kind": { + "name": "resource_kind", + "type": "TypeString", + "description": "The target resource kind.", + "required": true + }, + "service_display_name": { + "name": "service_display_name", + "type": "TypeString", + "description": "The display name of the target service.", + "optional": true + }, + "service_name": { + "name": "service_name", + "type": "TypeString", + "description": "The target service name.", + "required": true } }, - "max_items": 1 + "max_items": 1, + "min_items": 1 }, { - "name": "labels", + "name": "updated_by", + "type": "TypeString", + "description": "The user who modified the rule.", + "computed": true + }, + { + "name": "enforcement_actions", "type": "TypeList", - "description": "The list of labels.", + "description": "The actions that the service must run on your behalf when a request to create or modify the target resource does not comply with your conditions.", "optional": true, "elem": { - "type": "TypeString" - } + "action": { + "name": "action", + "type": "TypeString", + "description": "To block a request from completing, use `disallow`.", + "required": true + } + }, + "max_items": 1, + "deprecated": "enforcement_actions is now deprecated" + }, + { + "name": "account_id", + "type": "TypeString", + "description": "The account ID.", + "computed": true + }, + { + "name": "created_on", + "type": "TypeString", + "description": "The date when the rule was created.", + "computed": true + }, + { + "name": "etag", + "type": "TypeString", + "description": "The etag of the rule.", + "computed": true }, { "name": "required_config", @@ -138406,147 +141825,130 @@ "min_items": 1 }, { - "name": "updated_by", + "name": "updated_on", "type": "TypeString", - "description": "The user who modified the rule.", + "description": "The date when the rule was modified.", "computed": true }, { - "name": "creation_date", + "name": "rule_type", "type": "TypeString", - "description": "The date the resource was created.", + "description": "The type of rule. Rules that you create are `user_defined`.", "computed": true, - "deprecated": "use created_on instead" + "deprecated": "use type instead" }, { - "name": "version", + "name": "modification_date", "type": "TypeString", - "description": "The version number of a rule.", - "min_length": 5, - "max_length": 10, - "matches": "^[0-9][0-9.]*$", - "optional": true - }, - { - "name": "enforcement_actions", - "type": "TypeList", - "description": "The actions that the service must run on your behalf when a request to create or modify the target resource does not comply with your conditions.", - "optional": true, - "elem": { - "action": { - "name": "action", - "type": "TypeString", - "description": "To block a request from completing, use `disallow`.", - "required": true - } - }, - "max_items": 1, - "deprecated": "enforcement_actions is now deprecated" + "description": "The date the resource was last modified.", + "computed": true, + "deprecated": "use updated_on instead" }, { - "name": "created_on", + "name": "modified_by", "type": "TypeString", - "description": "The date when the rule was created.", - "computed": true + "description": "The unique identifier for the user or application that last modified the resource.", + "computed": true, + "deprecated": "use updated_by" }, { - "name": "type", + "name": "rule_id", "type": "TypeString", - "description": "The rule type (allowable values are `user_defined` or `system_defined`).", + "description": "The rule ID.", "computed": true }, { - "name": "updated_on", + "name": "description", "type": "TypeString", - "description": "The date when the rule was modified.", - "computed": true + "description": "The details of a rule's response.", + "required": true, + "max_length": 512, + "matches": "[A-Za-z0-9]+" }, { - "name": "modification_date", + "name": "name", "type": "TypeString", - "description": "The date the resource was last modified.", - "computed": true, - "deprecated": "use updated_on instead" + "description": "A human-readable alias to assign to your rule.", + "optional": true, + "deprecated": "name is now deprecated" }, { - "name": "rule_type", - "type": "TypeString", - "description": "The type of rule. Rules that you create are `user_defined`.", - "computed": true, - "deprecated": "use type instead" + "name": "labels", + "type": "TypeList", + "description": "The list of labels.", + "optional": true, + "elem": { + "type": "TypeString" + } }, { - "name": "modified_by", + "name": "type", "type": "TypeString", - "description": "The unique identifier for the user or application that last modified the resource.", - "computed": true, - "deprecated": "use updated_by" + "description": "The rule type (allowable values are `user_defined` or `system_defined`).", + "computed": true }, { - "name": "rule_id", + "name": "creation_date", "type": "TypeString", - "description": "The rule ID.", - "computed": true + "description": "The date the resource was created.", + "computed": true, + "deprecated": "use created_on instead" }, { - "name": "account_id", + "name": "created_by", "type": "TypeString", - "description": "The account ID.", + "description": "The user who created the rule.", "computed": true }, { - "name": "target", + "name": "import", "type": "TypeList", - "description": "The rule target.", - "required": true, + "description": "The collection of import parameters.", + "optional": true, "elem": { - "additional_target_attributes": { - "name": "additional_target_attributes", + "parameters": { + "name": "parameters", "type": "TypeList", - "description": "The list of targets supported properties.", + "description": "The list of import parameters.", "optional": true, "elem": { - "name": { - "name": "name", + "description": { + "name": "description", "type": "TypeString", - "description": "The additional target attribute name.", + "description": "The propery description.", "optional": true }, - "operator": { - "name": "operator", + "display_name": { + "name": "display_name", "type": "TypeString", - "description": "The operator.", + "description": "The display name of the property.", "optional": true }, - "value": { - "name": "value", + "name": { + "name": "name", "type": "TypeString", - "description": "The value.", + "description": "The import parameter name.", + "optional": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The property type.", "optional": true } } - }, - "resource_kind": { - "name": "resource_kind", - "type": "TypeString", - "description": "The target resource kind.", - "required": true - }, - "service_display_name": { - "name": "service_display_name", - "type": "TypeString", - "description": "The display name of the target service.", - "optional": true - }, - "service_name": { - "name": "service_name", - "type": "TypeString", - "description": "The target service name.", - "required": true } }, - "max_items": 1, - "min_items": 1 + "max_items": 1 + }, + { + "name": "version", + "type": "TypeString", + "description": "The version number of a rule.", + "min_length": 5, + "max_length": 10, + "matches": "^[0-9][0-9.]*$", + "optional": true }, { "name": "instance_id", @@ -138555,13 +141957,6 @@ "cloud_data_type": "resource_instance", "immutable": true, "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "A human-readable alias to assign to your rule.", - "optional": true, - "deprecated": "name is now deprecated" } ], "ibm_scc_rule_attachment": [], @@ -138569,17 +141964,56 @@ "ibm_scc_template_attachment": [], "ibm_schematics_action": [ { - "name": "name", + "name": "source_updated_by", "type": "TypeString", - "description": "The unique name of your action. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores. **Example** you can use the name to stop action.", - "required": true, - "min_length": 1, - "max_length": 65 + "description": "E-mail address of user who updated the action playbook source.", + "computed": true }, { - "name": "bastion_credential", + "name": "source_created_at", + "type": "TypeString", + "description": "Action Playbook Source creation time.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "Action creation time.", + "computed": true + }, + { + "name": "user_state", "type": "TypeList", - "description": "User editable variable data \u0026 system generated reference to value.", + "description": "User defined status of the Schematics object.", + "optional": true, + "computed": true, + "elem": { + "set_at": { + "name": "set_at", + "type": "TypeString", + "description": "When the User who set the state of the Object.", + "optional": true, + "computed": true + }, + "set_by": { + "name": "set_by", + "type": "TypeString", + "description": "Name of the User who set the state of the Object.", + "optional": true, + "computed": true + }, + "state": { + "name": "state", + "type": "TypeString", + "description": "User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution.", + "optional": true + } + } + }, + { + "name": "action_outputs", + "type": "TypeList", + "description": "Output variables for the Action.", "optional": true, "elem": { "link": { @@ -138711,8 +142145,60 @@ "description": "Value for the variable or reference to the value.", "optional": true } - }, - "max_items": 1 + } + }, + { + "name": "inventory", + "type": "TypeString", + "description": "Target inventory record ID, used by the action or ansible playbook.", + "optional": true + }, + { + "name": "source_updated_at", + "type": "TypeString", + "description": "The action playbook updation time.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Action updation time.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Action description.", + "optional": true + }, + { + "name": "location", + "type": "TypeString", + "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "options": "eu-de, eu-gb, us-east, us-south", + "optional": true, + "computed": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "E-mail address of the user who created an action.", + "computed": true + }, + { + "name": "updated_by", + "type": "TypeString", + "description": "E-mail address of the user who updated an action.", + "computed": true + }, + { + "name": "playbook_names", + "type": "TypeList", + "description": "Playbook names retrieved from the respository.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "action_inputs", @@ -138851,121 +142337,6 @@ } } }, - { - "name": "source_created_at", - "type": "TypeString", - "description": "Action Playbook Source creation time.", - "computed": true - }, - { - "name": "source_updated_by", - "type": "TypeString", - "description": "E-mail address of user who updated the action playbook source.", - "computed": true - }, - { - "name": "location", - "type": "TypeString", - "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", - "options": "eu-de, eu-gb, us-east, us-south", - "optional": true, - "computed": true - }, - { - "name": "source_readme_url", - "type": "TypeString", - "description": "URL of the `README` file, for the source URL.", - "optional": true - }, - { - "name": "source_type", - "type": "TypeString", - "description": "Type of source for the Template.", - "options": "cos_bucket, external_scm, git_hub, git_hub_enterprise, git_lab, ibm_cloud_catalog, ibm_git_lab, local", - "optional": true - }, - { - "name": "command_parameter", - "type": "TypeString", - "description": "Schematics job command parameter (playbook-name).", - "optional": true - }, - { - "name": "sys_lock", - "type": "TypeList", - "description": "System lock status.", - "optional": true, - "computed": true, - "elem": { - "sys_locked": { - "name": "sys_locked", - "type": "TypeBool", - "description": "Is the automation locked by a Schematic job ?.", - "optional": true - }, - "sys_locked_at": { - "name": "sys_locked_at", - "type": "TypeString", - "description": "When the User performed the job that lead to locking of the automation ?.", - "optional": true - }, - "sys_locked_by": { - "name": "sys_locked_by", - "type": "TypeString", - "description": "Name of the User who performed the job, that lead to the locking of the automation.", - "optional": true - } - } - }, - { - "name": "account", - "type": "TypeString", - "description": "Action account ID.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "Action creation time.", - "computed": true - }, - { - "name": "targets_ini", - "type": "TypeString", - "description": "Inventory of host and host group for the playbook in `INI` file format. For example, `\"targets_ini\": \"[webserverhost] 172.22.192.6 [dbhost] 172.22.192.5\"`. For more information, about an inventory host group syntax, see [Inventory host groups](https://cloud.ibm.com/docs/schematics?topic=schematics-schematics-cli-reference#schematics-inventory-host-grps).", - "optional": true - }, - { - "name": "x_github_token", - "type": "TypeString", - "description": "The personal access token to authenticate with your private GitHub or GitLab repository and access your Terraform template.", - "optional": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Action updation time.", - "computed": true - }, - { - "name": "updated_by", - "type": "TypeString", - "description": "E-mail address of the user who updated an action.", - "computed": true - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "Resource-group name for an action. By default, action is created in default resource group.", - "cloud_data_type": "resource_group", - "optional": true - }, - { - "name": "inventory", - "type": "TypeString", - "description": "Target inventory record ID, used by the action or ansible playbook.", - "optional": true - }, { "name": "source_created_by", "type": "TypeString", @@ -138973,9 +142344,9 @@ "computed": true }, { - "name": "action_outputs", + "name": "bastion_credential", "type": "TypeList", - "description": "Output variables for the Action.", + "description": "User editable variable data \u0026 system generated reference to value.", "optional": true, "elem": { "link": { @@ -139107,14 +142478,201 @@ "description": "Value for the variable or reference to the value.", "optional": true } + }, + "max_items": 1 + }, + { + "name": "account", + "type": "TypeString", + "description": "Action account ID.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The unique name of your action. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores. **Example** you can use the name to stop action.", + "required": true, + "min_length": 1, + "max_length": 65 + }, + { + "name": "source", + "type": "TypeList", + "description": "Source of templates, playbooks, or controls.", + "optional": true, + "elem": { + "catalog": { + "name": "catalog", + "type": "TypeList", + "description": "Connection details to IBM Cloud Catalog source.", + "optional": true, + "elem": { + "catalog_name": { + "name": "catalog_name", + "type": "TypeString", + "description": "name of the private catalog.", + "optional": true + }, + "offering_id": { + "name": "offering_id", + "type": "TypeString", + "description": "Id of the offering the IBM Catalog.", + "optional": true + }, + "offering_kind": { + "name": "offering_kind", + "type": "TypeString", + "description": "Type of the offering, in the IBM Catalog.", + "optional": true + }, + "offering_name": { + "name": "offering_name", + "type": "TypeString", + "description": "Name of the offering in the IBM Catalog.", + "optional": true + }, + "offering_repo_url": { + "name": "offering_repo_url", + "type": "TypeString", + "description": "Repo Url of the offering, in the IBM Catalog.", + "optional": true + }, + "offering_version": { + "name": "offering_version", + "type": "TypeString", + "description": "Version string of the offering in the IBM Catalog.", + "optional": true + }, + "offering_version_id": { + "name": "offering_version_id", + "type": "TypeString", + "description": "Id of the offering version the IBM Catalog.", + "optional": true + } + }, + "max_items": 1 + }, + "git": { + "name": "git", + "type": "TypeList", + "description": "Connection details to Git source.", + "optional": true, + "elem": { + "computed_git_repo_url": { + "name": "computed_git_repo_url", + "type": "TypeString", + "description": "The Complete URL which is computed by git_repo_url, git_repo_folder and branch.", + "optional": true + }, + "git_branch": { + "name": "git_branch", + "type": "TypeString", + "description": "Name of the branch, used to fetch the Git Repo.", + "optional": true + }, + "git_release": { + "name": "git_release", + "type": "TypeString", + "description": "Name of the release tag, used to fetch the Git Repo.", + "optional": true + }, + "git_repo_folder": { + "name": "git_repo_folder", + "type": "TypeString", + "description": "Name of the folder in the Git Repo, that contains the template.", + "optional": true + }, + "git_repo_url": { + "name": "git_repo_url", + "type": "TypeString", + "description": "URL to the GIT Repo that can be used to clone the template.", + "optional": true + }, + "git_token": { + "name": "git_token", + "type": "TypeString", + "description": "Personal Access Token to connect to Git URLs.", + "optional": true + } + } + }, + "source_type": { + "name": "source_type", + "type": "TypeString", + "description": "Type of source for the Template.", + "required": true + } } }, { - "name": "created_by", + "name": "command_parameter", "type": "TypeString", - "description": "E-mail address of the user who created an action.", + "description": "Schematics job command parameter (playbook-name).", + "optional": true + }, + { + "name": "bastion", + "type": "TypeList", + "description": "Describes a bastion resource.", + "optional": true, + "elem": { + "host": { + "name": "host", + "type": "TypeString", + "description": "Reference to the Inventory resource definition.", + "optional": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Bastion Name(Unique).", + "optional": true + } + }, + "max_items": 1 + }, + { + "name": "targets_ini", + "type": "TypeString", + "description": "Inventory of host and host group for the playbook in `INI` file format. For example, `\"targets_ini\": \"[webserverhost] 172.22.192.6 [dbhost] 172.22.192.5\"`. For more information, about an inventory host group syntax, see [Inventory host groups](https://cloud.ibm.com/docs/schematics?topic=schematics-schematics-cli-reference#schematics-inventory-host-grps).", + "optional": true + }, + { + "name": "x_github_token", + "type": "TypeString", + "description": "The personal access token to authenticate with your private GitHub or GitLab repository and access your Terraform template.", + "optional": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource-group name for an action. By default, action is created in default resource group.", + "cloud_data_type": "resource_group", + "optional": true + }, + { + "name": "source_readme_url", + "type": "TypeString", + "description": "URL of the `README` file, for the source URL.", + "optional": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Action Cloud Resource Name.", + "cloud_data_type": "crn", "computed": true }, + { + "name": "tags", + "type": "TypeList", + "description": "Action tags.", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, { "name": "credentials", "type": "TypeList", @@ -139253,6 +142811,65 @@ }, "max_items": 1 }, + { + "name": "state", + "type": "TypeList", + "description": "Computed state of the Action.", + "computed": true, + "elem": { + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of automation (workspace or action).", + "optional": true + }, + "status_job_id": { + "name": "status_job_id", + "type": "TypeString", + "description": "Job id reference for this status.", + "optional": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "Automation status message - to be displayed along with the status_code.", + "optional": true + } + } + }, + { + "name": "sys_lock", + "type": "TypeList", + "description": "System lock status.", + "computed": true, + "elem": { + "sys_locked": { + "name": "sys_locked", + "type": "TypeBool", + "description": "Is the automation locked by a Schematic job ?.", + "optional": true + }, + "sys_locked_at": { + "name": "sys_locked_at", + "type": "TypeString", + "description": "When the User performed the job that lead to locking of the automation ?.", + "optional": true + }, + "sys_locked_by": { + "name": "sys_locked_by", + "type": "TypeString", + "description": "Name of the User who performed the job, that lead to the locking of the automation.", + "optional": true + } + } + }, + { + "name": "source_type", + "type": "TypeString", + "description": "Type of source for the Template.", + "options": "cos_bucket, external_scm, git_hub, git_hub_enterprise, git_lab, ibm_cloud_catalog, ibm_git_lab, local", + "optional": true + }, { "name": "settings", "type": "TypeList", @@ -139389,75 +143006,163 @@ "optional": true } } + } + ], + "ibm_schematics_agent": [ + { + "name": "schematics_location", + "type": "TypeString", + "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "required": true }, { - "name": "state", + "name": "agent_crn", + "type": "TypeString", + "description": "The agent crn, obtained from the Schematics agent deployment configuration.", + "computed": true + }, + { + "name": "creation_by", + "type": "TypeString", + "description": "The email address of an user who created the agent.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the agent (must be unique, for an account).", + "required": true + }, + { + "name": "agent_infrastructure", "type": "TypeList", - "description": "Computed state of the Action.", - "computed": true, + "description": "The infrastructure parameters used by the agent.", + "required": true, "elem": { - "status_code": { - "name": "status_code", + "cluster_id": { + "name": "cluster_id", "type": "TypeString", - "description": "Status of automation (workspace or action).", + "description": "The cluster ID where agent services will be running.", "optional": true }, - "status_job_id": { - "name": "status_job_id", + "cluster_resource_group": { + "name": "cluster_resource_group", "type": "TypeString", - "description": "Job id reference for this status.", + "description": "The resource group of the cluster (is it required?).", "optional": true }, - "status_message": { - "name": "status_message", + "cos_bucket_name": { + "name": "cos_bucket_name", "type": "TypeString", - "description": "Automation status message - to be displayed along with the status_code.", + "description": "The COS bucket name used to store the logs.", + "optional": true + }, + "cos_bucket_region": { + "name": "cos_bucket_region", + "type": "TypeString", + "description": "The COS bucket region.", + "optional": true + }, + "cos_instance_name": { + "name": "cos_instance_name", + "type": "TypeString", + "description": "The COS instance name to store the agent logs.", + "optional": true + }, + "infra_type": { + "name": "infra_type", + "type": "TypeString", + "description": "Type of target agent infrastructure.", "optional": true } - } - }, - { - "name": "crn", - "type": "TypeString", - "description": "Action Cloud Resource Name.", - "cloud_data_type": "crn", - "computed": true + }, + "max_items": 1, + "min_items": 1 }, { - "name": "source_updated_at", + "name": "updated_at", "type": "TypeString", - "description": "The action playbook updation time.", + "description": "The agent registration updation time.", "computed": true }, { - "name": "playbook_names", + "name": "recent_deploy_job", "type": "TypeList", - "description": "Playbook names retrieved from the respository.", + "description": "Post-installations checks for Agent health.", "computed": true, "elem": { - "type": "TypeString" + "agent_id": { + "name": "agent_id", + "type": "TypeString", + "description": "Id of the agent.", + "optional": true, + "computed": true + }, + "agent_version": { + "name": "agent_version", + "type": "TypeString", + "description": "Agent version.", + "computed": true + }, + "is_redeployed": { + "name": "is_redeployed", + "type": "TypeBool", + "description": "True, when the same version of the agent was redeployed.", + "optional": true, + "computed": true + }, + "job_id": { + "name": "job_id", + "type": "TypeString", + "description": "Job Id.", + "optional": true, + "computed": true + }, + "log_url": { + "name": "log_url", + "type": "TypeString", + "description": "URL to the full agent deployment job logs.", + "optional": true, + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Final result of the agent deployment job.", + "optional": true, + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "The outcome of the agent deployment job, in a formatted log string.", + "optional": true, + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "The agent deploy job updation time.", + "computed": true + }, + "updated_by": { + "name": "updated_by", + "type": "TypeString", + "description": "Email address of user who ran the agent deploy job.", + "computed": true + } } }, { - "name": "description", + "name": "version", "type": "TypeString", - "description": "Action description.", - "optional": true - }, - { - "name": "tags", - "type": "TypeList", - "description": "Action tags.", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } + "description": "Agent version.", + "required": true }, { "name": "user_state", "type": "TypeList", - "description": "User defined status of the Schematics object.", + "description": "User defined status of the agent.", "optional": true, "computed": true, "elem": { @@ -139465,318 +143170,246 @@ "name": "set_at", "type": "TypeString", "description": "When the User who set the state of the Object.", - "optional": true, "computed": true }, "set_by": { "name": "set_by", "type": "TypeString", "description": "Name of the User who set the state of the Object.", - "optional": true, "computed": true }, "state": { "name": "state", "type": "TypeString", - "description": "User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution.", - "optional": true + "description": "User-defined states * `enable` Agent is enabled by the user. * `disable` Agent is disbaled by the user.", + "optional": true, + "computed": true } - } + }, + "max_items": 1 }, { - "name": "source", + "name": "recent_prs_job", "type": "TypeList", - "description": "Source of templates, playbooks, or controls.", - "optional": true, + "description": "Run a pre-requisite scanner for deploying agent.", + "computed": true, "elem": { - "catalog": { - "name": "catalog", - "type": "TypeList", - "description": "Connection details to IBM Cloud Catalog source.", + "agent_id": { + "name": "agent_id", + "type": "TypeString", + "description": "Id of the agent.", "optional": true, - "elem": { - "catalog_name": { - "name": "catalog_name", - "type": "TypeString", - "description": "name of the private catalog.", - "optional": true - }, - "offering_id": { - "name": "offering_id", - "type": "TypeString", - "description": "Id of the offering the IBM Catalog.", - "optional": true - }, - "offering_kind": { - "name": "offering_kind", - "type": "TypeString", - "description": "Type of the offering, in the IBM Catalog.", - "optional": true - }, - "offering_name": { - "name": "offering_name", - "type": "TypeString", - "description": "Name of the offering in the IBM Catalog.", - "optional": true - }, - "offering_repo_url": { - "name": "offering_repo_url", - "type": "TypeString", - "description": "Repo Url of the offering, in the IBM Catalog.", - "optional": true - }, - "offering_version": { - "name": "offering_version", - "type": "TypeString", - "description": "Version string of the offering in the IBM Catalog.", - "optional": true - }, - "offering_version_id": { - "name": "offering_version_id", - "type": "TypeString", - "description": "Id of the offering version the IBM Catalog.", - "optional": true - } - }, - "max_items": 1 + "computed": true }, - "git": { - "name": "git", - "type": "TypeList", - "description": "Connection details to Git source.", + "agent_version": { + "name": "agent_version", + "type": "TypeString", + "description": "Agent version.", + "computed": true + }, + "job_id": { + "name": "job_id", + "type": "TypeString", + "description": "Job Id.", "optional": true, - "elem": { - "computed_git_repo_url": { - "name": "computed_git_repo_url", - "type": "TypeString", - "description": "The Complete URL which is computed by git_repo_url, git_repo_folder and branch.", - "optional": true - }, - "git_branch": { - "name": "git_branch", - "type": "TypeString", - "description": "Name of the branch, used to fetch the Git Repo.", - "optional": true - }, - "git_release": { - "name": "git_release", - "type": "TypeString", - "description": "Name of the release tag, used to fetch the Git Repo.", - "optional": true - }, - "git_repo_folder": { - "name": "git_repo_folder", - "type": "TypeString", - "description": "Name of the folder in the Git Repo, that contains the template.", - "optional": true - }, - "git_repo_url": { - "name": "git_repo_url", - "type": "TypeString", - "description": "URL to the GIT Repo that can be used to clone the template.", - "optional": true - }, - "git_token": { - "name": "git_token", - "type": "TypeString", - "description": "Personal Access Token to connect to Git URLs.", - "optional": true - } - } + "computed": true }, - "source_type": { - "name": "source_type", + "log_url": { + "name": "log_url", "type": "TypeString", - "description": "Type of source for the Template.", - "required": true + "description": "URL to the full pre-requisite scanner job logs.", + "optional": true, + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Final result of the pre-requisite scanner job.", + "optional": true, + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "The outcome of the pre-requisite scanner job, in a formatted log string.", + "optional": true, + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "The agent prs job updation time.", + "computed": true + }, + "updated_by": { + "name": "updated_by", + "type": "TypeString", + "description": "Email address of user who ran the agent prs job.", + "computed": true } } }, { - "name": "bastion", + "name": "recent_health_job", "type": "TypeList", - "description": "Describes a bastion resource.", - "optional": true, + "description": "Agent health check.", + "computed": true, "elem": { - "host": { - "name": "host", + "agent_id": { + "name": "agent_id", "type": "TypeString", - "description": "Reference to the Inventory resource definition.", - "optional": true + "description": "Id of the agent.", + "optional": true, + "computed": true }, - "name": { - "name": "name", + "agent_version": { + "name": "agent_version", "type": "TypeString", - "description": "Bastion Name(Unique).", - "optional": true + "description": "Agent version.", + "computed": true + }, + "job_id": { + "name": "job_id", + "type": "TypeString", + "description": "Job Id.", + "optional": true, + "computed": true + }, + "log_url": { + "name": "log_url", + "type": "TypeString", + "description": "URL to the full health-check job logs.", + "optional": true, + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Final result of the health-check job.", + "optional": true, + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "The outcome of the health-check job, in a formatted log string.", + "optional": true, + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "The agent health check job updation time.", + "computed": true + }, + "updated_by": { + "name": "updated_by", + "type": "TypeString", + "description": "Email address of user who ran the agent health check job.", + "computed": true } - }, - "max_items": 1 - } - ], - "ibm_schematics_inventory": [ - { - "name": "description", - "type": "TypeString", - "description": "The description of your Inventory definition. The description can be up to 2048 characters long in size.", - "optional": true - }, - { - "name": "inventories_ini", - "type": "TypeString", - "description": "Input inventory of host and host group for the playbook, in the `.ini` file format.", - "optional": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "Inventory creation time.", - "computed": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "Email address of user who created the Inventory.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Inventory updation time.", - "computed": true - }, - { - "name": "updated_by", - "type": "TypeString", - "description": "Email address of user who updated the Inventory.", - "computed": true + } }, { - "name": "name", + "name": "description", "type": "TypeString", - "description": "The unique name of your Inventory definition. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores.", - "min_length": 3, - "max_length": 64, + "description": "Agent description.", "optional": true }, { - "name": "location", - "type": "TypeString", - "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", - "options": "eu-de, eu-gb, us-east, us-south", - "optional": true, - "computed": true - }, - { - "name": "resource_group", + "name": "agent_location", "type": "TypeString", - "description": "Resource-group name for the Inventory definition. By default, Inventory definition will be created in Default Resource Group.", - "cloud_data_type": "resource_group", - "optional": true + "description": "The location where agent is deployed in the user environment.", + "required": true }, { - "name": "resource_queries", + "name": "tags", "type": "TypeList", - "description": "Input resource query definitions that is used to dynamically generate the inventory of host and host group for the playbook.", + "description": "Tags for the agent.", + "cloud_data_type": "tags", "optional": true, "elem": { "type": "TypeString" } - } - ], - "ibm_schematics_job": [ + }, { - "name": "bastion", + "name": "agent_metadata", "type": "TypeList", - "description": "Describes a bastion resource.", + "description": "The metadata of an agent.", "optional": true, "elem": { - "host": { - "name": "host", - "type": "TypeString", - "description": "Reference to the Inventory resource definition.", - "optional": true - }, "name": { "name": "name", "type": "TypeString", - "description": "Bastion Name(Unique).", + "description": "Name of the metadata.", "optional": true + }, + "value": { + "name": "value", + "type": "TypeList", + "description": "Value of the metadata name.", + "optional": true, + "elem": { + "type": "TypeString" + } } - }, - "max_items": 1 - }, - { - "name": "start_at", - "type": "TypeString", - "description": "Job start time.", - "computed": true - }, - { - "name": "duration", - "type": "TypeString", - "description": "Duration of job execution; example 40 sec.", - "computed": true - }, - { - "name": "command_options", - "type": "TypeList", - "description": "Command line options for the command.", - "optional": true, - "elem": { - "type": "TypeString" } }, { - "name": "job_env_settings", + "name": "agent_inputs", "type": "TypeList", - "description": "Environment variables used by the Job while performing Action or Workspace.", + "description": "Additional input variables for the agent.", "optional": true, "elem": { "link": { "name": "link", "type": "TypeString", - "description": "Reference link to the variable value By default the expression will point to self.value.", - "optional": true, + "description": "The reference link to the variable value By default the expression points to `$self.value`.", "computed": true }, "metadata": { "name": "metadata", "type": "TypeList", - "description": "User editable metadata for the variables.", + "description": "An user editable metadata for the variables.", "optional": true, "elem": { "aliases": { "name": "aliases", "type": "TypeList", - "description": "List of aliases for the variable name.", + "description": "The list of aliases for the variable name.", "optional": true, "elem": { "type": "TypeString" } }, + "cloud_data_type": { + "name": "cloud_data_type", + "type": "TypeString", + "description": "Cloud data type of the variable. eg. resource_group_id, region, vpc_id.", + "optional": true + }, "default_value": { "name": "default_value", "type": "TypeString", - "description": "Default value for the variable, if the override value is not specified.", + "description": "Default value for the variable only if the override value is not specified.", "optional": true }, "description": { "name": "description", "type": "TypeString", - "description": "Description of the meta data.", + "description": "The description of the meta data.", "optional": true }, "group_by": { "name": "group_by", "type": "TypeString", - "description": "Display name of the group this variable belongs to.", + "description": "The display name of the group this variable belongs to.", "optional": true }, "hidden": { "name": "hidden", "type": "TypeBool", - "description": "If true, the variable will not be displayed on UI or CLI.", + "description": "If **true**, the variable is not displayed on UI or Command line.", "optional": true }, "immutable": { @@ -139785,40 +143418,46 @@ "description": "Is the variable readonly ?.", "optional": true }, + "link_status": { + "name": "link_status", + "type": "TypeString", + "description": "The status of the link.", + "optional": true + }, "matches": { "name": "matches", "type": "TypeString", - "description": "Regex for the variable value.", + "description": "The regex for the variable value.", "optional": true }, "max_length": { "name": "max_length", "type": "TypeInt", - "description": "Maximum length of the variable value. Applicable for string type.", + "description": "The maximum length of the variable value. Applicable for the string type.", "optional": true }, "max_value": { "name": "max_value", "type": "TypeInt", - "description": "Maximum value of the variable. Applicable for integer type.", + "description": "The maximum value of the variable. Applicable for the integer type.", "optional": true }, "min_length": { "name": "min_length", "type": "TypeInt", - "description": "Minimum length of the variable value. Applicable for string type.", + "description": "The minimum length of the variable value. Applicable for the string type.", "optional": true }, "min_value": { "name": "min_value", "type": "TypeInt", - "description": "Minimum value of the variable. Applicable for integer type.", + "description": "The minimum value of the variable. Applicable for the integer type.", "optional": true }, "options": { "name": "options", "type": "TypeList", - "description": "List of possible values for this variable. If type is integer or date, then the array of string will be converted to array of integers or date during runtime.", + "description": "The list of possible values for this variable. If type is **integer** or **date**, then the array of string is converted to array of integers or date during the runtime.", "optional": true, "elem": { "type": "TypeString" @@ -139827,7 +143466,13 @@ "position": { "name": "position", "type": "TypeInt", - "description": "Relative position of this variable in a list.", + "description": "The relative position of this variable in a list.", + "optional": true + }, + "required": { + "name": "required", + "type": "TypeBool", + "description": "If the variable required?.", "optional": true }, "secure": { @@ -139839,588 +143484,494 @@ "source": { "name": "source", "type": "TypeString", - "description": "Source of this meta-data.", + "description": "The source of this meta-data.", "optional": true }, "type": { "name": "type", "type": "TypeString", "description": "Type of the variable.", - "required": true + "optional": true } - } + }, + "max_items": 1 }, "name": { "name": "name", "type": "TypeString", - "description": "Name of the variable.", - "required": true + "description": "The name of the variable. For example, `name = \"inventory username\"`.", + "optional": true + }, + "use_default": { + "name": "use_default", + "type": "TypeBool", + "description": "True, will ignore the data in the value attribute, instead the data in metadata.default_value will be used.", + "optional": true }, "value": { "name": "value", "type": "TypeString", - "description": "Value for the variable or reference to the value.", - "required": true + "description": "The value for the variable or reference to the value. For example, `value = \"\u003cprovide your ssh_key_value with \n\u003e\"`. **Note** The SSH key should contain `\n` at the end of the key details in case of command line or API calls.", + "optional": true } } }, { - "name": "tags", + "name": "agent_kpi", "type": "TypeList", - "description": "User defined tags, while running the job.", - "cloud_data_type": "tags", + "description": "Schematics Agent key performance indicators.", "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "location", - "type": "TypeString", - "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", - "options": "eu-de, eu-gb, us-east, us-south", - "optional": true, - "computed": true - }, - { - "name": "status", - "type": "TypeList", - "description": "Job Status.", "computed": true, "elem": { - "action_job_status": { - "name": "action_job_status", + "application_indicators": { + "name": "application_indicators", "type": "TypeList", - "description": "Action Job Status.", + "description": "Agent application key performance indicators.", "optional": true, + "computed": true, "elem": { - "action_name": { - "name": "action_name", - "type": "TypeString", - "description": "Action name.", - "optional": true - }, - "bastion_status_code": { - "name": "bastion_status_code", - "type": "TypeString", - "description": "Status of Resources.", - "optional": true - }, - "bastion_status_message": { - "name": "bastion_status_message", - "type": "TypeString", - "description": "Bastion status message - to be displayed along with the bastion_status_code;.", - "optional": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "optional": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "Action Job status message - to be displayed along with the action_status_code.", - "optional": true - }, - "targets_status_code": { - "name": "targets_status_code", - "type": "TypeString", - "description": "Status of Resources.", - "optional": true - }, - "targets_status_message": { - "name": "targets_status_message", - "type": "TypeString", - "description": "Aggregated status message for all target resources, to be displayed along with the targets_status_code;.", - "optional": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "Job status updation timestamp.", - "optional": true - } + "type": "TypeMap" } }, - "flow_job_status": { - "name": "flow_job_status", - "type": "TypeList", - "description": "Environment Flow JOB Status.", + "availability_indicator": { + "name": "availability_indicator", + "type": "TypeString", + "description": "Overall availability indicator reported by the agent.", "optional": true, - "elem": { - "flow_id": { - "name": "flow_id", - "type": "TypeString", - "description": "flow id.", - "optional": true - }, - "flow_name": { - "name": "flow_name", - "type": "TypeString", - "description": "flow name.", - "optional": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "optional": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "Flow Job status message - to be displayed along with the status_code;.", - "optional": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "Job status updation timestamp.", - "optional": true - }, - "workitems": { - "name": "workitems", - "type": "TypeList", - "description": "Environment's individual workItem status details;.", - "optional": true, - "elem": { - "job_id": { - "name": "job_id", - "type": "TypeString", - "description": "workspace job id.", - "optional": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "optional": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "workitem job status message;.", - "optional": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "workitem job status updation timestamp.", - "optional": true - }, - "workspace_id": { - "name": "workspace_id", - "type": "TypeString", - "description": "Workspace id.", - "optional": true - }, - "workspace_name": { - "name": "workspace_name", - "type": "TypeString", - "description": "workspace name.", - "optional": true - } - } - } - }, - "max_items": 1 + "computed": true }, - "system_job_status": { - "name": "system_job_status", + "infra_indicators": { + "name": "infra_indicators", "type": "TypeList", - "description": "System Job Status.", + "description": "Agent infrastructure key performance indicators.", "optional": true, + "computed": true, "elem": { - "schematics_resource_status": { - "name": "schematics_resource_status", - "type": "TypeList", - "description": "job staus for each schematics resource.", - "optional": true, - "elem": { - "schematics_resource_id": { - "name": "schematics_resource_id", - "type": "TypeString", - "description": "id for each resource which is targeted as a part of system job.", - "optional": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "optional": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "system job status message.", - "optional": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "Job status updation timestamp.", - "optional": true - } - } - }, - "system_status_code": { - "name": "system_status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "optional": true - }, - "system_status_message": { - "name": "system_status_message", - "type": "TypeString", - "description": "System job message.", - "optional": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "Job status updation timestamp.", - "optional": true - } - }, - "max_items": 1 + "type": "TypeMap" + } }, - "workspace_job_status": { - "name": "workspace_job_status", - "type": "TypeList", - "description": "Workspace Job Status.", + "lifecycle_indicator": { + "name": "lifecycle_indicator", + "type": "TypeString", + "description": "Overall lifecycle indicator reported by the agents.", "optional": true, - "elem": { - "flow_status": { - "name": "flow_status", - "type": "TypeList", - "description": "Environment Flow JOB Status.", - "optional": true, - "elem": { - "flow_id": { - "name": "flow_id", - "type": "TypeString", - "description": "flow id.", - "optional": true - }, - "flow_name": { - "name": "flow_name", - "type": "TypeString", - "description": "flow name.", - "optional": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "optional": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "Flow Job status message - to be displayed along with the status_code;.", - "optional": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "Job status updation timestamp.", - "optional": true - }, - "workitems": { - "name": "workitems", - "type": "TypeList", - "description": "Environment's individual workItem status details;.", - "optional": true, - "elem": { - "job_id": { - "name": "job_id", - "type": "TypeString", - "description": "workspace job id.", - "optional": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "optional": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "workitem job status message;.", - "optional": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "workitem job status updation timestamp.", - "optional": true - }, - "workspace_id": { - "name": "workspace_id", - "type": "TypeString", - "description": "Workspace id.", - "optional": true - }, - "workspace_name": { - "name": "workspace_name", - "type": "TypeString", - "description": "workspace name.", - "optional": true - } - } - } - }, - "max_items": 1 - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "optional": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "Workspace job status message (eg. App1_Setup_Pending, for a 'Setup' flow in the 'App1' Workspace).", - "optional": true - }, - "template_status": { - "name": "template_status", - "type": "TypeList", - "description": "Workspace Flow Template job status.", - "optional": true, - "elem": { - "flow_index": { - "name": "flow_index", - "type": "TypeInt", - "description": "Index of the template in the Flow.", - "optional": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "optional": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "Template job status message (eg. VPCt1_Apply_Pending, for a 'VPCt1' Template).", - "optional": true - }, - "template_id": { - "name": "template_id", - "type": "TypeString", - "description": "Template Id.", - "optional": true - }, - "template_name": { - "name": "template_name", - "type": "TypeString", - "description": "Template name.", - "optional": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "Job status updation timestamp.", - "optional": true - } - } - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "Job status updation timestamp.", - "optional": true - }, - "workspace_name": { - "name": "workspace_name", - "type": "TypeString", - "description": "Workspace name.", - "optional": true - } - }, - "max_items": 1 + "computed": true + }, + "percent_usage_indicator": { + "name": "percent_usage_indicator", + "type": "TypeString", + "description": "Percentage usage of the agent resources.", + "optional": true, + "computed": true } - } + }, + "max_items": 1 }, { - "name": "command_name", + "name": "created_at", "type": "TypeString", - "description": "Schematics job command name.", - "required": true, - "options": "ansible_playbook_check, ansible_playbook_run, create_action, create_cart, create_environment, create_workspace, delete_action, delete_environment, delete_workspace, environment_init, environment_install, environment_uninstall, patch_action, patch_workspace, put_action, put_environment, put_workspace, repository_process, system_key_delete, system_key_disable, system_key_enable, system_key_restore, system_key_rotate, workspace_apply, workspace_destroy, workspace_plan, workspace_refresh" + "description": "The agent creation date-time.", + "computed": true + }, + { + "name": "updated_by", + "type": "TypeString", + "description": "Email address of user who updated the agent registration.", + "computed": true }, { "name": "resource_group", "type": "TypeString", - "description": "Resource-group name derived from the related Workspace or Action.", + "description": "The resource-group name for the agent. By default, agent will be registered in Default Resource Group.", "cloud_data_type": "resource_group", + "required": true + }, + { + "name": "system_state", + "type": "TypeList", + "description": "Computed state of the agent.", + "computed": true, + "elem": { + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Agent Status.", + "optional": true, + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "The agent status message.", + "optional": true, + "computed": true + } + } + } + ], + "ibm_schematics_agent_deploy": [ + { + "name": "job_id", + "type": "TypeString", + "description": "Job Id.", "computed": true }, { - "name": "submitted_at", + "name": "updated_at", "type": "TypeString", - "description": "Job submission time.", + "description": "The agent deploy job updation time.", "computed": true }, { - "name": "log_store_url", + "name": "agent_version", "type": "TypeString", - "description": "Job log store URL.", + "description": "Agent version.", "computed": true }, { - "name": "state_store_url", + "name": "status_code", "type": "TypeString", - "description": "Job state store URL.", + "description": "Final result of the agent deployment job.", "computed": true }, { - "name": "command_parameter", + "name": "status_message", "type": "TypeString", - "description": "Schematics job command parameter (playbook-name).", + "description": "The outcome of the agent deployment job, in a formatted log string.", + "computed": true + }, + { + "name": "log_url", + "type": "TypeString", + "description": "URL to the full agent deployment job logs.", + "computed": true + }, + { + "name": "agent_id", + "type": "TypeString", + "description": "Agent ID to get the details of agent.", + "immutable": true, + "required": true + }, + { + "name": "force", + "type": "TypeBool", + "description": "Equivalent to -force options in the command line, default is false.", "optional": true }, { - "name": "job_inputs", + "name": "updated_by", + "type": "TypeString", + "description": "Email address of user who ran the agent deploy job.", + "computed": true + }, + { + "name": "is_redeployed", + "type": "TypeBool", + "description": "True, when the same version of the agent was redeployed.", + "computed": true + } + ], + "ibm_schematics_agent_health": [ + { + "name": "updated_by", + "type": "TypeString", + "description": "Email address of user who ran the agent health check job.", + "computed": true + }, + { + "name": "status_code", + "type": "TypeString", + "description": "Final result of the health-check job.", + "computed": true + }, + { + "name": "agent_id", + "type": "TypeString", + "description": "Agent ID to get the details of agent.", + "immutable": true, + "required": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The agent health check job updation time.", + "computed": true + }, + { + "name": "agent_version", + "type": "TypeString", + "description": "Agent version.", + "computed": true + }, + { + "name": "status_message", + "type": "TypeString", + "description": "The outcome of the health-check job, in a formatted log string.", + "computed": true + }, + { + "name": "log_url", + "type": "TypeString", + "description": "URL to the full health-check job logs.", + "computed": true + }, + { + "name": "force", + "type": "TypeBool", + "description": "Equivalent to -force options in the command line, default is false.", + "optional": true + }, + { + "name": "job_id", + "type": "TypeString", + "description": "Job Id.", + "computed": true + } + ], + "ibm_schematics_agent_prs": [ + { + "name": "updated_at", + "type": "TypeString", + "description": "The agent prs job updation time.", + "computed": true + }, + { + "name": "updated_by", + "type": "TypeString", + "description": "Email address of user who ran the agent prs job.", + "computed": true + }, + { + "name": "status_code", + "type": "TypeString", + "description": "Final result of the pre-requisite scanner job.", + "computed": true + }, + { + "name": "agent_id", + "type": "TypeString", + "description": "Agent ID to get the details of agent.", + "immutable": true, + "required": true + }, + { + "name": "job_id", + "type": "TypeString", + "description": "Job Id.", + "computed": true + }, + { + "name": "status_message", + "type": "TypeString", + "description": "The outcome of the pre-requisite scanner job, in a formatted log string.", + "computed": true + }, + { + "name": "log_url", + "type": "TypeString", + "description": "URL to the full pre-requisite scanner job logs.", + "computed": true + }, + { + "name": "force", + "type": "TypeBool", + "description": "Equivalent to -force options in the command line, default is false.", + "optional": true + }, + { + "name": "agent_version", + "type": "TypeString", + "description": "Agent version.", + "computed": true + } + ], + "ibm_schematics_inventory": [ + { + "name": "updated_by", + "type": "TypeString", + "description": "Email address of user who updated the Inventory.", + "computed": true + }, + { + "name": "location", + "type": "TypeString", + "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "options": "eu-de, eu-gb, us-east, us-south", + "optional": true, + "computed": true + }, + { + "name": "inventories_ini", + "type": "TypeString", + "description": "Input inventory of host and host group for the playbook, in the `.ini` file format.", + "optional": true + }, + { + "name": "resource_queries", "type": "TypeList", - "description": "Job inputs used by Action or Workspace.", + "description": "Input resource query definitions that is used to dynamically generate the inventory of host and host group for the playbook.", "optional": true, "elem": { - "link": { - "name": "link", + "type": "TypeString" + } + }, + { + "name": "created_at", + "type": "TypeString", + "description": "Inventory creation time.", + "computed": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "Email address of user who created the Inventory.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Inventory updation time.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The unique name of your Inventory definition. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores.", + "min_length": 3, + "max_length": 64, + "optional": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The description of your Inventory definition. The description can be up to 2048 characters long in size.", + "optional": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource-group name for the Inventory definition. By default, Inventory definition will be created in Default Resource Group.", + "cloud_data_type": "resource_group", + "optional": true + } + ], + "ibm_schematics_job": [ + { + "name": "command_object", + "type": "TypeString", + "description": "Name of the Schematics automation resource.", + "required": true, + "options": "action, environment, system, workspace" + }, + { + "name": "command_object_id", + "type": "TypeString", + "description": "Job command object id (workspace-id, action-id).", + "required": true + }, + { + "name": "command_options", + "type": "TypeList", + "description": "Command line options for the command.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "location", + "type": "TypeString", + "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "options": "eu-de, eu-gb, us-east, us-south", + "optional": true, + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The description of your job is derived from the related action or workspace. The description can be up to 2048 characters long in size.", + "computed": true + }, + { + "name": "submitted_at", + "type": "TypeString", + "description": "Job submission time.", + "computed": true + }, + { + "name": "end_at", + "type": "TypeString", + "description": "Job end time.", + "computed": true + }, + { + "name": "command_name", + "type": "TypeString", + "description": "Schematics job command name.", + "required": true, + "options": "ansible_playbook_check, ansible_playbook_run, create_action, create_cart, create_environment, create_workspace, delete_action, delete_environment, delete_workspace, environment_init, environment_install, environment_uninstall, patch_action, patch_workspace, put_action, put_environment, put_workspace, repository_process, system_key_delete, system_key_disable, system_key_enable, system_key_restore, system_key_rotate, workspace_apply, workspace_destroy, workspace_plan, workspace_refresh" + }, + { + "name": "bastion", + "type": "TypeList", + "description": "Describes a bastion resource.", + "optional": true, + "elem": { + "host": { + "name": "host", "type": "TypeString", - "description": "Reference link to the variable value By default the expression will point to self.value.", - "optional": true, - "computed": true - }, - "metadata": { - "name": "metadata", - "type": "TypeList", - "description": "User editable metadata for the variables.", - "optional": true, - "elem": { - "aliases": { - "name": "aliases", - "type": "TypeList", - "description": "List of aliases for the variable name.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - "default_value": { - "name": "default_value", - "type": "TypeString", - "description": "Default value for the variable, if the override value is not specified.", - "optional": true - }, - "description": { - "name": "description", - "type": "TypeString", - "description": "Description of the meta data.", - "optional": true - }, - "group_by": { - "name": "group_by", - "type": "TypeString", - "description": "Display name of the group this variable belongs to.", - "optional": true - }, - "hidden": { - "name": "hidden", - "type": "TypeBool", - "description": "If true, the variable will not be displayed on UI or CLI.", - "optional": true - }, - "immutable": { - "name": "immutable", - "type": "TypeBool", - "description": "Is the variable readonly ?.", - "optional": true - }, - "matches": { - "name": "matches", - "type": "TypeString", - "description": "Regex for the variable value.", - "optional": true - }, - "max_length": { - "name": "max_length", - "type": "TypeInt", - "description": "Maximum length of the variable value. Applicable for string type.", - "optional": true - }, - "max_value": { - "name": "max_value", - "type": "TypeInt", - "description": "Maximum value of the variable. Applicable for integer type.", - "optional": true - }, - "min_length": { - "name": "min_length", - "type": "TypeInt", - "description": "Minimum length of the variable value. Applicable for string type.", - "optional": true - }, - "min_value": { - "name": "min_value", - "type": "TypeInt", - "description": "Minimum value of the variable. Applicable for integer type.", - "optional": true - }, - "options": { - "name": "options", - "type": "TypeList", - "description": "List of possible values for this variable. If type is integer or date, then the array of string will be converted to array of integers or date during runtime.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - "position": { - "name": "position", - "type": "TypeInt", - "description": "Relative position of this variable in a list.", - "optional": true - }, - "secure": { - "name": "secure", - "type": "TypeBool", - "description": "Is the variable secure or sensitive ?.", - "optional": true - }, - "source": { - "name": "source", - "type": "TypeString", - "description": "Source of this meta-data.", - "optional": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of the variable.", - "required": true - } - } + "description": "Reference to the Inventory resource definition.", + "optional": true }, "name": { "name": "name", "type": "TypeString", - "description": "Name of the variable.", - "required": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Value for the variable or reference to the value.", - "required": true + "description": "Bastion Name(Unique).", + "optional": true } + }, + "max_items": 1 + }, + { + "name": "name", + "type": "TypeString", + "description": "Job name, uniquely derived from the related Workspace or Action.", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource-group name derived from the related Workspace or Action.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "start_at", + "type": "TypeString", + "description": "Job start time.", + "computed": true + }, + { + "name": "log_store_url", + "type": "TypeString", + "description": "Job log store URL.", + "computed": true + }, + { + "name": "command_parameter", + "type": "TypeString", + "description": "Schematics job command parameter (playbook-name).", + "optional": true + }, + { + "name": "tags", + "type": "TypeList", + "description": "User defined tags, while running the job.", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" } }, { @@ -142521,15 +146072,15 @@ "computed": true }, { - "name": "end_at", + "name": "duration", "type": "TypeString", - "description": "Job end time.", + "description": "Duration of job execution; example 40 sec.", "computed": true }, { - "name": "results_url", + "name": "state_store_url", "type": "TypeString", - "description": "Job results store URL.", + "description": "Job state store URL.", "computed": true }, { @@ -142539,17 +146090,644 @@ "computed": true }, { - "name": "command_object", - "type": "TypeString", - "description": "Name of the Schematics automation resource.", - "required": true, - "options": "action, environment, system, workspace" + "name": "job_inputs", + "type": "TypeList", + "description": "Job inputs used by Action or Workspace.", + "optional": true, + "elem": { + "link": { + "name": "link", + "type": "TypeString", + "description": "Reference link to the variable value By default the expression will point to self.value.", + "optional": true, + "computed": true + }, + "metadata": { + "name": "metadata", + "type": "TypeList", + "description": "User editable metadata for the variables.", + "optional": true, + "elem": { + "aliases": { + "name": "aliases", + "type": "TypeList", + "description": "List of aliases for the variable name.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + "default_value": { + "name": "default_value", + "type": "TypeString", + "description": "Default value for the variable, if the override value is not specified.", + "optional": true + }, + "description": { + "name": "description", + "type": "TypeString", + "description": "Description of the meta data.", + "optional": true + }, + "group_by": { + "name": "group_by", + "type": "TypeString", + "description": "Display name of the group this variable belongs to.", + "optional": true + }, + "hidden": { + "name": "hidden", + "type": "TypeBool", + "description": "If true, the variable will not be displayed on UI or CLI.", + "optional": true + }, + "immutable": { + "name": "immutable", + "type": "TypeBool", + "description": "Is the variable readonly ?.", + "optional": true + }, + "matches": { + "name": "matches", + "type": "TypeString", + "description": "Regex for the variable value.", + "optional": true + }, + "max_length": { + "name": "max_length", + "type": "TypeInt", + "description": "Maximum length of the variable value. Applicable for string type.", + "optional": true + }, + "max_value": { + "name": "max_value", + "type": "TypeInt", + "description": "Maximum value of the variable. Applicable for integer type.", + "optional": true + }, + "min_length": { + "name": "min_length", + "type": "TypeInt", + "description": "Minimum length of the variable value. Applicable for string type.", + "optional": true + }, + "min_value": { + "name": "min_value", + "type": "TypeInt", + "description": "Minimum value of the variable. Applicable for integer type.", + "optional": true + }, + "options": { + "name": "options", + "type": "TypeList", + "description": "List of possible values for this variable. If type is integer or date, then the array of string will be converted to array of integers or date during runtime.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + "position": { + "name": "position", + "type": "TypeInt", + "description": "Relative position of this variable in a list.", + "optional": true + }, + "secure": { + "name": "secure", + "type": "TypeBool", + "description": "Is the variable secure or sensitive ?.", + "optional": true + }, + "source": { + "name": "source", + "type": "TypeString", + "description": "Source of this meta-data.", + "optional": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of the variable.", + "required": true + } + } + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the variable.", + "required": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Value for the variable or reference to the value.", + "required": true + } + } }, { - "name": "command_object_id", - "type": "TypeString", - "description": "Job command object id (workspace-id, action-id).", - "required": true + "name": "job_env_settings", + "type": "TypeList", + "description": "Environment variables used by the Job while performing Action or Workspace.", + "optional": true, + "elem": { + "link": { + "name": "link", + "type": "TypeString", + "description": "Reference link to the variable value By default the expression will point to self.value.", + "optional": true, + "computed": true + }, + "metadata": { + "name": "metadata", + "type": "TypeList", + "description": "User editable metadata for the variables.", + "optional": true, + "elem": { + "aliases": { + "name": "aliases", + "type": "TypeList", + "description": "List of aliases for the variable name.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + "default_value": { + "name": "default_value", + "type": "TypeString", + "description": "Default value for the variable, if the override value is not specified.", + "optional": true + }, + "description": { + "name": "description", + "type": "TypeString", + "description": "Description of the meta data.", + "optional": true + }, + "group_by": { + "name": "group_by", + "type": "TypeString", + "description": "Display name of the group this variable belongs to.", + "optional": true + }, + "hidden": { + "name": "hidden", + "type": "TypeBool", + "description": "If true, the variable will not be displayed on UI or CLI.", + "optional": true + }, + "immutable": { + "name": "immutable", + "type": "TypeBool", + "description": "Is the variable readonly ?.", + "optional": true + }, + "matches": { + "name": "matches", + "type": "TypeString", + "description": "Regex for the variable value.", + "optional": true + }, + "max_length": { + "name": "max_length", + "type": "TypeInt", + "description": "Maximum length of the variable value. Applicable for string type.", + "optional": true + }, + "max_value": { + "name": "max_value", + "type": "TypeInt", + "description": "Maximum value of the variable. Applicable for integer type.", + "optional": true + }, + "min_length": { + "name": "min_length", + "type": "TypeInt", + "description": "Minimum length of the variable value. Applicable for string type.", + "optional": true + }, + "min_value": { + "name": "min_value", + "type": "TypeInt", + "description": "Minimum value of the variable. Applicable for integer type.", + "optional": true + }, + "options": { + "name": "options", + "type": "TypeList", + "description": "List of possible values for this variable. If type is integer or date, then the array of string will be converted to array of integers or date during runtime.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + "position": { + "name": "position", + "type": "TypeInt", + "description": "Relative position of this variable in a list.", + "optional": true + }, + "secure": { + "name": "secure", + "type": "TypeBool", + "description": "Is the variable secure or sensitive ?.", + "optional": true + }, + "source": { + "name": "source", + "type": "TypeString", + "description": "Source of this meta-data.", + "optional": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of the variable.", + "required": true + } + } + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the variable.", + "required": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Value for the variable or reference to the value.", + "required": true + } + } + }, + { + "name": "status", + "type": "TypeList", + "description": "Job Status.", + "computed": true, + "elem": { + "action_job_status": { + "name": "action_job_status", + "type": "TypeList", + "description": "Action Job Status.", + "optional": true, + "elem": { + "action_name": { + "name": "action_name", + "type": "TypeString", + "description": "Action name.", + "optional": true + }, + "bastion_status_code": { + "name": "bastion_status_code", + "type": "TypeString", + "description": "Status of Resources.", + "optional": true + }, + "bastion_status_message": { + "name": "bastion_status_message", + "type": "TypeString", + "description": "Bastion status message - to be displayed along with the bastion_status_code;.", + "optional": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "optional": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "Action Job status message - to be displayed along with the action_status_code.", + "optional": true + }, + "targets_status_code": { + "name": "targets_status_code", + "type": "TypeString", + "description": "Status of Resources.", + "optional": true + }, + "targets_status_message": { + "name": "targets_status_message", + "type": "TypeString", + "description": "Aggregated status message for all target resources, to be displayed along with the targets_status_code;.", + "optional": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", + "optional": true + } + } + }, + "flow_job_status": { + "name": "flow_job_status", + "type": "TypeList", + "description": "Environment Flow JOB Status.", + "optional": true, + "elem": { + "flow_id": { + "name": "flow_id", + "type": "TypeString", + "description": "flow id.", + "optional": true + }, + "flow_name": { + "name": "flow_name", + "type": "TypeString", + "description": "flow name.", + "optional": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "optional": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "Flow Job status message - to be displayed along with the status_code;.", + "optional": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", + "optional": true + }, + "workitems": { + "name": "workitems", + "type": "TypeList", + "description": "Environment's individual workItem status details;.", + "optional": true, + "elem": { + "job_id": { + "name": "job_id", + "type": "TypeString", + "description": "workspace job id.", + "optional": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "optional": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "workitem job status message;.", + "optional": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "workitem job status updation timestamp.", + "optional": true + }, + "workspace_id": { + "name": "workspace_id", + "type": "TypeString", + "description": "Workspace id.", + "optional": true + }, + "workspace_name": { + "name": "workspace_name", + "type": "TypeString", + "description": "workspace name.", + "optional": true + } + } + } + }, + "max_items": 1 + }, + "system_job_status": { + "name": "system_job_status", + "type": "TypeList", + "description": "System Job Status.", + "optional": true, + "elem": { + "schematics_resource_status": { + "name": "schematics_resource_status", + "type": "TypeList", + "description": "job staus for each schematics resource.", + "optional": true, + "elem": { + "schematics_resource_id": { + "name": "schematics_resource_id", + "type": "TypeString", + "description": "id for each resource which is targeted as a part of system job.", + "optional": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "optional": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "system job status message.", + "optional": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", + "optional": true + } + } + }, + "system_status_code": { + "name": "system_status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "optional": true + }, + "system_status_message": { + "name": "system_status_message", + "type": "TypeString", + "description": "System job message.", + "optional": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", + "optional": true + } + }, + "max_items": 1 + }, + "workspace_job_status": { + "name": "workspace_job_status", + "type": "TypeList", + "description": "Workspace Job Status.", + "optional": true, + "elem": { + "flow_status": { + "name": "flow_status", + "type": "TypeList", + "description": "Environment Flow JOB Status.", + "optional": true, + "elem": { + "flow_id": { + "name": "flow_id", + "type": "TypeString", + "description": "flow id.", + "optional": true + }, + "flow_name": { + "name": "flow_name", + "type": "TypeString", + "description": "flow name.", + "optional": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "optional": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "Flow Job status message - to be displayed along with the status_code;.", + "optional": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", + "optional": true + }, + "workitems": { + "name": "workitems", + "type": "TypeList", + "description": "Environment's individual workItem status details;.", + "optional": true, + "elem": { + "job_id": { + "name": "job_id", + "type": "TypeString", + "description": "workspace job id.", + "optional": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "optional": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "workitem job status message;.", + "optional": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "workitem job status updation timestamp.", + "optional": true + }, + "workspace_id": { + "name": "workspace_id", + "type": "TypeString", + "description": "Workspace id.", + "optional": true + }, + "workspace_name": { + "name": "workspace_name", + "type": "TypeString", + "description": "workspace name.", + "optional": true + } + } + } + }, + "max_items": 1 + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "optional": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "Workspace job status message (eg. App1_Setup_Pending, for a 'Setup' flow in the 'App1' Workspace).", + "optional": true + }, + "template_status": { + "name": "template_status", + "type": "TypeList", + "description": "Workspace Flow Template job status.", + "optional": true, + "elem": { + "flow_index": { + "name": "flow_index", + "type": "TypeInt", + "description": "Index of the template in the Flow.", + "optional": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "optional": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "Template job status message (eg. VPCt1_Apply_Pending, for a 'VPCt1' Template).", + "optional": true + }, + "template_id": { + "name": "template_id", + "type": "TypeString", + "description": "Template Id.", + "optional": true + }, + "template_name": { + "name": "template_name", + "type": "TypeString", + "description": "Template name.", + "optional": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", + "optional": true + } + } + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", + "optional": true + }, + "workspace_name": { + "name": "workspace_name", + "type": "TypeString", + "description": "Workspace name.", + "optional": true + } + }, + "max_items": 1 + } + } }, { "name": "log_summary", @@ -142845,57 +147023,326 @@ "workspace_job": { "name": "workspace_job", "type": "TypeList", - "description": "Workspace Job log summary.", + "description": "Workspace Job log summary.", + "optional": true, + "elem": { + "resources_add": { + "name": "resources_add", + "type": "TypeFloat", + "description": "Number of resources add.", + "optional": true, + "computed": true + }, + "resources_destroy": { + "name": "resources_destroy", + "type": "TypeFloat", + "description": "Number of resources destroy.", + "optional": true, + "computed": true + }, + "resources_modify": { + "name": "resources_modify", + "type": "TypeFloat", + "description": "Number of resources modify.", + "optional": true, + "computed": true + } + }, + "max_items": 1 + } + } + }, + { + "name": "results_url", + "type": "TypeString", + "description": "Job results store URL.", + "computed": true + } + ], + "ibm_schematics_policy": [ + { + "name": "updated_at", + "type": "TypeString", + "description": "The policy updation time.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of Schematics customization policy.", + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The description of Schematics customization policy.", + "optional": true + }, + { + "name": "kind", + "type": "TypeString", + "description": "Policy kind or categories for managing and deriving policy decision * `agent_assignment_policy` Agent assignment policy for job execution.", + "options": "agent_assignment_policy", + "optional": true + }, + { + "name": "target", + "type": "TypeList", + "description": "The objects for the Schematics policy.", + "optional": true, + "computed": true, + "elem": { + "selector_ids": { + "name": "selector_ids", + "type": "TypeList", + "description": "Static selectors of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "selector_kind": { + "name": "selector_kind", + "type": "TypeString", + "description": "Types of schematics object selector.", + "optional": true, + "computed": true + }, + "selector_scope": { + "name": "selector_scope", + "type": "TypeList", + "description": "Selectors to dynamically list of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy.", + "optional": true, + "computed": true, + "elem": { + "kind": { + "name": "kind", + "type": "TypeString", + "description": "Name of the Schematics automation resource.", + "optional": true, + "computed": true + }, + "locations": { + "name": "locations", + "type": "TypeList", + "description": "The location based selector.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "resource_groups": { + "name": "resource_groups", + "type": "TypeList", + "description": "The resource group based selector.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "tags": { + "name": "tags", + "type": "TypeList", + "description": "The tag based selector.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + } + } + } + }, + "max_items": 1 + }, + { + "name": "account", + "type": "TypeString", + "description": "The Account id.", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "The resource group name for the policy. By default, Policy will be created in `default` Resource Group.", + "cloud_data_type": "resource_group", + "optional": true, + "computed": true + }, + { + "name": "location", + "type": "TypeString", + "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "cloud_data_type": "region", + "optional": true, + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The policy CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "The user who created the policy.", + "computed": true + }, + { + "name": "tags", + "type": "TypeList", + "description": "Tags for the Schematics customization policy.", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "parameter", + "type": "TypeList", + "description": "The parameter to tune the Schematics policy.", + "optional": true, + "computed": true, + "elem": { + "agent_assignment_policy_parameter": { + "name": "agent_assignment_policy_parameter", + "type": "TypeList", + "description": "Parameters for the `agent_assignment_policy`.", "optional": true, + "computed": true, "elem": { - "resources_add": { - "name": "resources_add", - "type": "TypeFloat", - "description": "Number of resources add.", + "selector_ids": { + "name": "selector_ids", + "type": "TypeList", + "description": "The static selectors of schematics object ids (workspace, action or blueprint) for the Schematics policy.", "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } }, - "resources_destroy": { - "name": "resources_destroy", - "type": "TypeFloat", - "description": "Number of resources destroy.", + "selector_kind": { + "name": "selector_kind", + "type": "TypeString", + "description": "Types of schematics object selector.", "optional": true, "computed": true }, - "resources_modify": { - "name": "resources_modify", - "type": "TypeFloat", - "description": "Number of resources modify.", + "selector_scope": { + "name": "selector_scope", + "type": "TypeList", + "description": "The selectors to dynamically list of schematics object ids (workspace, action or blueprint) for the Schematics policy.", "optional": true, - "computed": true + "computed": true, + "elem": { + "kind": { + "name": "kind", + "type": "TypeString", + "description": "Name of the Schematics automation resource.", + "optional": true, + "computed": true + }, + "locations": { + "name": "locations", + "type": "TypeList", + "description": "The location based selector.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "resource_groups": { + "name": "resource_groups", + "type": "TypeList", + "description": "The resource group based selector.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "tags": { + "name": "tags", + "type": "TypeList", + "description": "The tag based selector.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + } + } } }, "max_items": 1 } - } + }, + "max_items": 1 }, { - "name": "name", + "name": "created_at", "type": "TypeString", - "description": "Job name, uniquely derived from the related Workspace or Action.", + "description": "The policy creation time.", "computed": true }, { - "name": "description", - "type": "TypeString", - "description": "The description of your job is derived from the related action or workspace. The description can be up to 2048 characters long in size.", - "computed": true + "name": "state", + "type": "TypeList", + "description": "User defined status of the Schematics object.", + "optional": true, + "computed": true, + "elem": { + "set_at": { + "name": "set_at", + "type": "TypeString", + "description": "When the User who set the state of the Object.", + "computed": true + }, + "set_by": { + "name": "set_by", + "type": "TypeString", + "description": "Name of the User who set the state of the Object.", + "computed": true + }, + "state": { + "name": "state", + "type": "TypeString", + "description": "User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution.", + "optional": true, + "computed": true + } + }, + "max_items": 1 + }, + { + "name": "scoped_resources", + "type": "TypeList", + "description": "List of scoped Schematics resources targeted by the policy.", + "optional": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "Schematics resource Id.", + "optional": true + }, + "kind": { + "name": "kind", + "type": "TypeString", + "description": "Name of the Schematics automation resource.", + "optional": true + } + } } ], "ibm_schematics_resource_query": [ - { - "name": "location", - "type": "TypeString", - "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", - "options": "eu-de, eu-gb, us-east, us-south", - "optional": true, - "computed": true - }, { "name": "queries", "type": "TypeList", @@ -142979,120 +147426,17 @@ "type": "TypeString", "description": "Resource query name.", "optional": true - } - ], - "ibm_schematics_workspace": [ - { - "name": "frozen_by", - "type": "TypeString", - "description": "The user ID that froze the workspace.", - "optional": true - }, - { - "name": "locked", - "type": "TypeBool", - "description": "If set to true, the workspace is locked and disabled for changes.", - "optional": true, - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The workspace CRN.", - "cloud_data_type": "crn", - "computed": true }, { - "name": "description", + "name": "location", "type": "TypeString", - "description": "The description of the workspace.", - "max_length": 2048, - "optional": true - }, - { - "name": "shared_data", - "type": "TypeList", - "description": "Information about the Target used by the templates originating from the IBM Cloud catalog offerings. This information is not relevant for workspace created using your own Terraform template.", + "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "options": "eu-de, eu-gb, us-east, us-south", "optional": true, - "elem": { - "cluster_created_on": { - "name": "cluster_created_on", - "type": "TypeString", - "description": "Cluster created on.", - "optional": true - }, - "cluster_id": { - "name": "cluster_id", - "type": "TypeString", - "description": "The ID of the cluster where you want to provision the resources of all IBM Cloud catalog templates that are included in the catalog offering.", - "optional": true - }, - "cluster_name": { - "name": "cluster_name", - "type": "TypeString", - "description": "The cluster name.", - "optional": true - }, - "cluster_type": { - "name": "cluster_type", - "type": "TypeString", - "description": "The cluster type.", - "optional": true - }, - "entitlement_keys": { - "name": "entitlement_keys", - "type": "TypeList", - "description": "The entitlement key that you want to use to install IBM Cloud entitled software.", - "optional": true, - "elem": { - "type": "TypeMap" - } - }, - "namespace": { - "name": "namespace", - "type": "TypeString", - "description": "The Kubernetes namespace or OpenShift project where the resources of all IBM Cloud catalog templates that are included in the catalog offering are deployed into.", - "optional": true - }, - "region": { - "name": "region", - "type": "TypeString", - "description": "The IBM Cloud region that you want to use for the resources of all IBM Cloud catalog templates that are included in the catalog offering.", - "optional": true - }, - "resource_group_id": { - "name": "resource_group_id", - "type": "TypeString", - "description": "The ID of the resource group that you want to use for the resources of all IBM Cloud catalog templates that are included in the catalog offering.", - "optional": true - }, - "worker_count": { - "name": "worker_count", - "type": "TypeInt", - "description": "The cluster worker count.", - "optional": true - }, - "worker_machine_type": { - "name": "worker_machine_type", - "type": "TypeString", - "description": "The cluster worker type.", - "optional": true - } - }, - "max_items": 1 - }, - { - "name": "template_uninstall_script_name", - "type": "TypeString", - "description": "Uninstall script name.", - "optional": true - }, - { - "name": "template_git_branch", - "type": "TypeString", - "description": "The repository branch.", - "optional": true - }, + "computed": true + } + ], + "ibm_schematics_workspace": [ { "name": "template_git_url", "type": "TypeString", @@ -143100,44 +147444,16 @@ "optional": true }, { - "name": "status_code", - "type": "TypeString", - "description": "The success or error code that was returned for the last plan, apply, or destroy job that ran against your workspace.", - "computed": true - }, - { - "name": "status_msg", - "type": "TypeString", - "description": "The success or error message that was returned for the last plan, apply, or destroy job that ran against your workspace.", - "computed": true - }, - { - "name": "template_env_settings", - "type": "TypeList", - "description": "A list of environment variables that you want to apply during the execution of a bash script or Terraform job. This field must be provided as a list of key-value pairs, for example, **TF_LOG=debug**. Each entry will be a map with one entry where `key is the environment variable name and value is value`. You can define environment variables for IBM Cloud catalog offerings that are provisioned by using a bash script. See [example to use special environment variable](https://cloud.ibm.com/docs/schematics?topic=schematics-set-parallelism#parallelism-example) that are supported by Schematics.", - "optional": true, - "elem": { - "type": "TypeMap" - } - }, - { - "name": "locked_by", - "type": "TypeString", - "description": "The user ID that initiated a resource-related action, such as applying or destroying resources, that locked the workspace.", - "optional": true, - "computed": true - }, - { - "name": "created_at", + "name": "frozen_at", "type": "TypeString", - "description": "The timestamp when the workspace was created.", - "computed": true + "description": "The timestamp when the workspace was frozen.", + "optional": true }, { - "name": "status", + "name": "template_git_repo_url", "type": "TypeString", - "description": "The status of the workspace. **Active**: After you successfully ran your infrastructure code by applying your Terraform execution plan, the state of your workspace changes to `Active`. **Connecting**: Schematics tries to connect to the template in your source repo. If successfully connected, the template is downloaded and metadata, such as input parameters, is extracted. After the template is downloaded, the state of the workspace changes to `Scanning`. **Draft**: The workspace is created without a reference to a GitHub or GitLab repository. **Failed**: If errors occur during the execution of your infrastructure code in IBM Cloud Schematics, your workspace status is set to `Failed`. **Inactive**: The Terraform template was scanned successfully and the workspace creation is complete. You can now start running Schematics plan and apply jobs to provision the IBM Cloud resources that you specified in your template. If you have an `Active` workspace and decide to remove all your resources, your workspace is set to `Inactive` after all your resources are removed. **In progress**: When you instruct IBM Cloud Schematics to run your infrastructure code by applying your Terraform execution plan, the status of our workspace changes to `In progress`. **Scanning**: The download of the Terraform template is complete and vulnerability scanning started. If the scan is successful, the workspace state changes to `Inactive`. If errors in your template are found, the state changes to `Template Error`. **Stopped**: The Schematics plan, apply, or destroy job was cancelled manually. **Template Error**: The Schematics template contains errors and cannot be processed.", - "computed": true + "description": "The repository URL.", + "optional": true }, { "name": "updated_by", @@ -143146,12 +147462,10 @@ "computed": true }, { - "name": "location", + "name": "template_values", "type": "TypeString", - "description": "The location where you want to create your Schematics workspace and run the Schematics jobs. The location that you enter must match the API endpoint that you use. For example, if you use the Frankfurt API endpoint, you must specify `eu-de` as your location. If you use an API endpoint for a geography and you do not specify a location, Schematics determines the location based on availability.", - "cloud_data_type": "region", - "optional": true, - "computed": true + "description": "A list of variable values that you want to apply during the Helm chart installation. The list must be provided in JSON format, such as `\"autoscaling: enabled: true minReplicas: 2\"`. The values that you define here override the default Helm chart values. This field is supported only for IBM Cloud catalog offerings that are provisioned by using the Terraform Helm provider.", + "optional": true }, { "name": "template_values_metadata", @@ -143283,42 +147597,11 @@ } }, { - "name": "template_git_folder", - "type": "TypeString", - "description": "The subfolder in your GitHub or GitLab repository where your Terraform template is stored.", - "optional": true - }, - { - "name": "template_init_state_file", + "name": "template_git_release", "type": "TypeString", - "description": "The content of an existing Terraform statefile that you want to import in to your workspace. To get the content of a Terraform statefile for a specific Terraform template in an existing workspace, run `ibmcloud schematics state pull --id \u003cworkspace_id\u003e --template \u003ctemplate_id\u003e`.", + "description": "The repository release.", "optional": true }, - { - "name": "created_by", - "type": "TypeString", - "description": "The user ID that created the workspace.", - "computed": true - }, - { - "name": "applied_shareddata_ids", - "type": "TypeList", - "description": "List of applied shared dataset ID.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "tags", - "type": "TypeList", - "description": "A list of tags that are associated with the workspace.", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - }, { "name": "template_git_repo_sha_value", "type": "TypeString", @@ -143326,106 +147609,34 @@ "optional": true }, { - "name": "frozen_at", - "type": "TypeString", - "description": "The timestamp when the workspace was frozen.", - "optional": true - }, - { - "name": "x_github_token", + "name": "template_ref", "type": "TypeString", - "description": "The personal access token to authenticate with your private GitHub or GitLab repository and access your Terraform template.", + "description": "Workspace template ref.", "optional": true }, { - "name": "catalog_ref", - "type": "TypeList", - "description": "Information about the software template that you chose from the IBM Cloud catalog. This information is returned for IBM Cloud catalog offerings only.", + "name": "locked", + "type": "TypeBool", + "description": "If set to true, the workspace is locked and disabled for changes.", "optional": true, - "elem": { - "dry_run": { - "name": "dry_run", - "type": "TypeBool", - "description": "Dry run.", - "optional": true - }, - "item_icon_url": { - "name": "item_icon_url", - "type": "TypeString", - "description": "The URL to the icon of the software template in the IBM Cloud catalog.", - "optional": true - }, - "item_id": { - "name": "item_id", - "type": "TypeString", - "description": "The ID of the software template that you chose to install from the IBM Cloud catalog. This software is provisioned with Schematics.", - "optional": true - }, - "item_name": { - "name": "item_name", - "type": "TypeString", - "description": "The name of the software that you chose to install from the IBM Cloud catalog.", - "optional": true - }, - "item_readme_url": { - "name": "item_readme_url", - "type": "TypeString", - "description": "The URL to the readme file of the software template in the IBM Cloud catalog.", - "optional": true - }, - "item_url": { - "name": "item_url", - "type": "TypeString", - "description": "The URL to the software template in the IBM Cloud catalog.", - "optional": true - }, - "launch_url": { - "name": "launch_url", - "type": "TypeString", - "description": "The URL to the dashboard to access your software.", - "optional": true - }, - "offering_version": { - "name": "offering_version", - "type": "TypeString", - "description": "The version of the software template that you chose to install from the IBM Cloud catalog.", - "optional": true - }, - "owning_account": { - "name": "owning_account", - "type": "TypeString", - "description": "Owning account ID of the catalog.", - "optional": true - } - }, - "max_items": 1 + "computed": true }, { - "name": "name", + "name": "last_health_check_at", "type": "TypeString", - "description": "The name of your workspace. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores. When you create a workspace for your own Terraform template, consider including the microservice component that you set up with your Terraform template and the IBM Cloud environment where you want to deploy your resources in your name.", - "required": true, - "min_length": 1, - "max_length": 128, - "matches": "^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$" + "description": "The timestamp when the last health check was performed by Schematics.", + "computed": true }, { - "name": "template_ref", + "name": "status_code", "type": "TypeString", - "description": "Workspace template ref.", - "optional": true + "description": "The success or error code that was returned for the last plan, apply, or destroy job that ran against your workspace.", + "computed": true }, { - "name": "template_git_release", + "name": "created_at", "type": "TypeString", - "description": "The repository release.", - "optional": true - }, - { - "name": "template_git_has_uploadedgitrepotar", - "type": "TypeBool", - "description": "Has uploaded git repo tar", - "optional": true, + "description": "The timestamp when the workspace was created.", "computed": true }, { @@ -143496,6 +147707,127 @@ "description": "The timestamp when the workspace was last updated.", "computed": true }, + { + "name": "status_msg", + "type": "TypeString", + "description": "The success or error message that was returned for the last plan, apply, or destroy job that ran against your workspace.", + "computed": true + }, + { + "name": "template_git_branch", + "type": "TypeString", + "description": "The repository branch.", + "optional": true + }, + { + "name": "locked_by", + "type": "TypeString", + "description": "The user ID that initiated a resource-related action, such as applying or destroying resources, that locked the workspace.", + "optional": true, + "computed": true + }, + { + "name": "locked_time", + "type": "TypeString", + "description": "The timestamp when the workspace was locked.", + "optional": true, + "computed": true + }, + { + "name": "x_github_token", + "type": "TypeString", + "description": "The personal access token to authenticate with your private GitHub or GitLab repository and access your Terraform template.", + "optional": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The description of the workspace.", + "max_length": 2048, + "optional": true + }, + { + "name": "template_uninstall_script_name", + "type": "TypeString", + "description": "Uninstall script name.", + "optional": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The workspace CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The status of the workspace. **Active**: After you successfully ran your infrastructure code by applying your Terraform execution plan, the state of your workspace changes to `Active`. **Connecting**: Schematics tries to connect to the template in your source repo. If successfully connected, the template is downloaded and metadata, such as input parameters, is extracted. After the template is downloaded, the state of the workspace changes to `Scanning`. **Draft**: The workspace is created without a reference to a GitHub or GitLab repository. **Failed**: If errors occur during the execution of your infrastructure code in IBM Cloud Schematics, your workspace status is set to `Failed`. **Inactive**: The Terraform template was scanned successfully and the workspace creation is complete. You can now start running Schematics plan and apply jobs to provision the IBM Cloud resources that you specified in your template. If you have an `Active` workspace and decide to remove all your resources, your workspace is set to `Inactive` after all your resources are removed. **In progress**: When you instruct IBM Cloud Schematics to run your infrastructure code by applying your Terraform execution plan, the status of our workspace changes to `In progress`. **Scanning**: The download of the Terraform template is complete and vulnerability scanning started. If the scan is successful, the workspace state changes to `Inactive`. If errors in your template are found, the state changes to `Template Error`. **Stopped**: The Schematics plan, apply, or destroy job was cancelled manually. **Template Error**: The Schematics template contains errors and cannot be processed.", + "computed": true + }, + { + "name": "catalog_ref", + "type": "TypeList", + "description": "Information about the software template that you chose from the IBM Cloud catalog. This information is returned for IBM Cloud catalog offerings only.", + "optional": true, + "elem": { + "dry_run": { + "name": "dry_run", + "type": "TypeBool", + "description": "Dry run.", + "optional": true + }, + "item_icon_url": { + "name": "item_icon_url", + "type": "TypeString", + "description": "The URL to the icon of the software template in the IBM Cloud catalog.", + "optional": true + }, + "item_id": { + "name": "item_id", + "type": "TypeString", + "description": "The ID of the software template that you chose to install from the IBM Cloud catalog. This software is provisioned with Schematics.", + "optional": true + }, + "item_name": { + "name": "item_name", + "type": "TypeString", + "description": "The name of the software that you chose to install from the IBM Cloud catalog.", + "optional": true + }, + "item_readme_url": { + "name": "item_readme_url", + "type": "TypeString", + "description": "The URL to the readme file of the software template in the IBM Cloud catalog.", + "optional": true + }, + "item_url": { + "name": "item_url", + "type": "TypeString", + "description": "The URL to the software template in the IBM Cloud catalog.", + "optional": true + }, + "launch_url": { + "name": "launch_url", + "type": "TypeString", + "description": "The URL to the dashboard to access your software.", + "optional": true + }, + "offering_version": { + "name": "offering_version", + "type": "TypeString", + "description": "The version of the software template that you chose to install from the IBM Cloud catalog.", + "optional": true + }, + "owning_account": { + "name": "owning_account", + "type": "TypeString", + "description": "Owning account ID of the catalog.", + "optional": true + } + }, + "max_items": 1 + }, { "name": "template_inputs", "type": "TypeList", @@ -143540,12 +147872,6 @@ } } }, - { - "name": "template_git_repo_url", - "type": "TypeString", - "description": "The repository URL.", - "optional": true - }, { "name": "frozen", "type": "TypeBool", @@ -143553,18 +147879,34 @@ "optional": true }, { - "name": "locked_time", + "name": "created_by", "type": "TypeString", - "description": "The timestamp when the workspace was locked.", - "optional": true, + "description": "The user ID that created the workspace.", "computed": true }, { - "name": "last_health_check_at", + "name": "template_type", "type": "TypeString", - "description": "The timestamp when the last health check was performed by Schematics.", + "description": "The Terraform version that you want to use to run your Terraform code. Enter `terraform_v0.12` to use Terraform version 0.12, and `terraform_v0.11` to use Terraform version 0.11. The Terraform config files are run with Terraform version 0.11. This is a required variable. Make sure that your Terraform config files are compatible with the Terraform version that you select.", + "required": true, + "matches": "^terraform_v(?:0\\.11|0\\.12|0\\.13|0\\.14|0\\.15|1\\.0|1\\.1|1\\.2|1\\.3|1\\.4|1\\.5)(?:\\.\\d+)?$" + }, + { + "name": "template_git_has_uploadedgitrepotar", + "type": "TypeBool", + "description": "Has uploaded git repo tar", + "optional": true, "computed": true }, + { + "name": "name", + "type": "TypeString", + "description": "The name of your workspace. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores. When you create a workspace for your own Terraform template, consider including the microservice component that you set up with your Terraform template and the IBM Cloud environment where you want to deploy your resources in your name.", + "required": true, + "min_length": 1, + "max_length": 128, + "matches": "^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$" + }, { "name": "resource_group", "type": "TypeString", @@ -143573,17 +147915,130 @@ "optional": true }, { - "name": "template_type", + "name": "tags", + "type": "TypeList", + "description": "A list of tags that are associated with the workspace.", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "template_git_folder", "type": "TypeString", - "description": "The Terraform version that you want to use to run your Terraform code. Enter `terraform_v0.12` to use Terraform version 0.12, and `terraform_v0.11` to use Terraform version 0.11. The Terraform config files are run with Terraform version 0.11. This is a required variable. Make sure that your Terraform config files are compatible with the Terraform version that you select.", - "required": true, - "matches": "^terraform_v(?:0\\.11|0\\.12|0\\.13|0\\.14|0\\.15|1\\.0|1\\.1|1\\.2|1\\.3|1\\.4)(?:\\.\\d+)?$" + "description": "The subfolder in your GitHub or GitLab repository where your Terraform template is stored.", + "optional": true }, { - "name": "template_values", + "name": "template_init_state_file", "type": "TypeString", - "description": "A list of variable values that you want to apply during the Helm chart installation. The list must be provided in JSON format, such as `\"autoscaling: enabled: true minReplicas: 2\"`. The values that you define here override the default Helm chart values. This field is supported only for IBM Cloud catalog offerings that are provisioned by using the Terraform Helm provider.", + "description": "The content of an existing Terraform statefile that you want to import in to your workspace. To get the content of a Terraform statefile for a specific Terraform template in an existing workspace, run `ibmcloud schematics state pull --id \u003cworkspace_id\u003e --template \u003ctemplate_id\u003e`.", "optional": true + }, + { + "name": "frozen_by", + "type": "TypeString", + "description": "The user ID that froze the workspace.", + "optional": true + }, + { + "name": "applied_shareddata_ids", + "type": "TypeList", + "description": "List of applied shared dataset ID.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "location", + "type": "TypeString", + "description": "The location where you want to create your Schematics workspace and run the Schematics jobs. The location that you enter must match the API endpoint that you use. For example, if you use the Frankfurt API endpoint, you must specify `eu-de` as your location. If you use an API endpoint for a geography and you do not specify a location, Schematics determines the location based on availability.", + "cloud_data_type": "region", + "optional": true, + "computed": true + }, + { + "name": "shared_data", + "type": "TypeList", + "description": "Information about the Target used by the templates originating from the IBM Cloud catalog offerings. This information is not relevant for workspace created using your own Terraform template.", + "optional": true, + "elem": { + "cluster_created_on": { + "name": "cluster_created_on", + "type": "TypeString", + "description": "Cluster created on.", + "optional": true + }, + "cluster_id": { + "name": "cluster_id", + "type": "TypeString", + "description": "The ID of the cluster where you want to provision the resources of all IBM Cloud catalog templates that are included in the catalog offering.", + "optional": true + }, + "cluster_name": { + "name": "cluster_name", + "type": "TypeString", + "description": "The cluster name.", + "optional": true + }, + "cluster_type": { + "name": "cluster_type", + "type": "TypeString", + "description": "The cluster type.", + "optional": true + }, + "entitlement_keys": { + "name": "entitlement_keys", + "type": "TypeList", + "description": "The entitlement key that you want to use to install IBM Cloud entitled software.", + "optional": true, + "elem": { + "type": "TypeMap" + } + }, + "namespace": { + "name": "namespace", + "type": "TypeString", + "description": "The Kubernetes namespace or OpenShift project where the resources of all IBM Cloud catalog templates that are included in the catalog offering are deployed into.", + "optional": true + }, + "region": { + "name": "region", + "type": "TypeString", + "description": "The IBM Cloud region that you want to use for the resources of all IBM Cloud catalog templates that are included in the catalog offering.", + "optional": true + }, + "resource_group_id": { + "name": "resource_group_id", + "type": "TypeString", + "description": "The ID of the resource group that you want to use for the resources of all IBM Cloud catalog templates that are included in the catalog offering.", + "optional": true + }, + "worker_count": { + "name": "worker_count", + "type": "TypeInt", + "description": "The cluster worker count.", + "optional": true + }, + "worker_machine_type": { + "name": "worker_machine_type", + "type": "TypeString", + "description": "The cluster worker type.", + "optional": true + } + }, + "max_items": 1 + }, + { + "name": "template_env_settings", + "type": "TypeList", + "description": "A list of environment variables that you want to apply during the execution of a bash script or Terraform job. This field must be provided as a list of key-value pairs, for example, **TF_LOG=debug**. Each entry will be a map with one entry where `key is the environment variable name and value is value`. You can define environment variables for IBM Cloud catalog offerings that are provisioned by using a bash script. See [example to use special environment variable](https://cloud.ibm.com/docs/schematics?topic=schematics-set-parallelism#parallelism-example) that are supported by Schematics.", + "optional": true, + "elem": { + "type": "TypeMap" + } } ], "ibm_security_group": [ @@ -143601,19 +148056,6 @@ } ], "ibm_security_group_rule": [ - { - "name": "security_group_id", - "type": "TypeInt", - "description": "Security group ID", - "immutable": true, - "required": true - }, - { - "name": "direction", - "type": "TypeString", - "description": "Direction of rule: ingress or egress", - "required": true - }, { "name": "ether_type", "type": "TypeString", @@ -143650,9 +148092,69 @@ "type": "TypeString", "description": "icmp, tcp or udp", "optional": true + }, + { + "name": "security_group_id", + "type": "TypeInt", + "description": "Security group ID", + "immutable": true, + "required": true + }, + { + "name": "direction", + "type": "TypeString", + "description": "Direction of rule: ingress or egress", + "required": true } ], "ibm_service_instance": [ + { + "name": "service", + "type": "TypeString", + "description": "The name of the service offering like speech_to_text, text_to_speech etc", + "immutable": true, + "required": true + }, + { + "name": "service_plan_guid", + "type": "TypeString", + "description": "The uniquie identifier of the service offering plan type", + "computed": true + }, + { + "name": "parameters", + "type": "TypeMap", + "description": "Arbitrary parameters to pass along to the service broker. Must be a JSON object", + "optional": true + }, + { + "name": "plan", + "type": "TypeString", + "description": "The plan type of the service", + "required": true + }, + { + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "wait_time_minutes", + "type": "TypeInt", + "description": "Define timeout to wait for the service instances to succeeded/deleted etc.", + "default_value": 10, + "optional": true + }, + { + "name": "name", + "type": "TypeString", + "description": "A name for the service instance", + "required": true + }, { "name": "credentials", "type": "TypeMap", @@ -143682,67 +148184,34 @@ } }, { - "name": "service_plan_guid", + "name": "dashboard_url", "type": "TypeString", - "description": "The uniquie identifier of the service offering plan type", + "description": "Dashboard URL to access resource.", "computed": true }, - { - "name": "parameters", - "type": "TypeMap", - "description": "Arbitrary parameters to pass along to the service broker. Must be a JSON object", - "optional": true - }, - { - "name": "wait_time_minutes", - "type": "TypeInt", - "description": "Define timeout to wait for the service instances to succeeded/deleted etc.", - "default_value": 10, - "optional": true - }, - { - "name": "name", - "type": "TypeString", - "description": "A name for the service instance", - "required": true - }, { "name": "space_guid", "type": "TypeString", "description": "The guid of the space in which the instance will be created", "immutable": true, "required": true - }, + } + ], + "ibm_service_key": [ { - "name": "service", + "name": "name", "type": "TypeString", - "description": "The name of the service offering like speech_to_text, text_to_speech etc", + "description": "The name of the service key", "immutable": true, "required": true }, { - "name": "plan", + "name": "service_instance_guid", "type": "TypeString", - "description": "The plan type of the service", + "description": "The guid of the service instance for which to create service key", + "immutable": true, "required": true }, - { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "dashboard_url", - "type": "TypeString", - "description": "Dashboard URL to access resource.", - "computed": true - } - ], - "ibm_service_key": [ { "name": "parameters", "type": "TypeMap", @@ -143765,53 +148234,19 @@ "elem": { "type": "TypeString" } - }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the service key", - "immutable": true, - "required": true - }, - { - "name": "service_instance_guid", - "type": "TypeString", - "description": "The guid of the service instance for which to create service key", - "immutable": true, - "required": true } ], "ibm_sm_arbitrary_secret": [ { - "name": "payload", + "name": "name", "type": "TypeString", - "description": "The arbitrary secret data payload.", - "secure": true, + "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", "required": true }, { - "name": "crn", - "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", - "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", - "optional": true - }, - { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", "optional": true, "computed": true, "elem": { @@ -143819,29 +148254,21 @@ } }, { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved.", - "computed": true - }, - { - "name": "secret_group_id", + "name": "expiration_date", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", - "immutable": true, - "optional": true, - "computed": true + "description": "The date a secret is expired. The date format follows RFC 3339.", + "optional": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The date that a resource was created. The date format follows RFC 3339.", + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved.", "computed": true }, { - "name": "updated_at", + "name": "state_description", "type": "TypeString", - "description": "The date that a resource was recently modified. The date format follows RFC 3339.", + "description": "A text representation of the secret state.", "computed": true }, { @@ -143858,6 +148285,22 @@ "immutable": true, "required": true }, + { + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The date that a resource was recently modified. The date format follows RFC 3339.", + "computed": true + }, { "name": "secret_type", "type": "TypeString", @@ -143865,9 +148308,17 @@ "computed": true }, { - "name": "custom_metadata", + "name": "secret_group_id", + "type": "TypeString", + "description": "A v4 UUID identifier, or `default` secret group.", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "version_custom_metadata", "type": "TypeMap", - "description": "The secret metadata that a user can customize.", + "description": "The secret version metadata that a user can customize.", "optional": true, "computed": true, "elem": { @@ -143875,18 +148326,9 @@ } }, { - "name": "expiration_date", - "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", - "optional": true - }, - { - "name": "region", + "name": "created_at", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "description": "The date that a resource was created. The date format follows RFC 3339.", "computed": true }, { @@ -143896,54 +148338,42 @@ "computed": true }, { - "name": "state", + "name": "locks_total", "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "description": "The number of locks of the secret.", "computed": true }, { - "name": "state_description", + "name": "payload", "type": "TypeString", - "description": "A text representation of the secret state.", - "computed": true + "description": "The arbitrary secret data payload.", + "secure": true, + "required": true }, { - "name": "endpoint_type", + "name": "description", "type": "TypeString", - "description": "public or private.", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", "optional": true }, - { - "name": "name", - "type": "TypeString", - "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", - "required": true - }, - { - "name": "version_custom_metadata", - "type": "TypeMap", - "description": "The secret version metadata that a user can customize.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "created_by", "type": "TypeString", "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true - } - ], - "ibm_sm_en_registration": [ + }, { - "name": "instance_id", + "name": "crn", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "computed": true }, { "name": "region", @@ -143959,7 +148389,9 @@ "type": "TypeString", "description": "public or private.", "optional": true - }, + } + ], + "ibm_sm_en_registration": [ { "name": "event_notifications_instance_crn", "type": "TypeString", @@ -143988,26 +148420,6 @@ "max_length": 1024, "matches": "(.*?)", "optional": true - } - ], - "ibm_sm_iam_credentials_configuration": [ - { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true }, { "name": "instance_id", @@ -144031,18 +148443,16 @@ "type": "TypeString", "description": "public or private.", "optional": true - }, + } + ], + "ibm_sm_iam_credentials_configuration": [ { - "name": "name", + "name": "region", "type": "TypeString", - "description": "A human-readable unique name to assign to your configuration.To protect your privacy, do not use personal data, such as your name or location, as an name for your secret.", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", "immutable": true, - "required": true - }, - { - "name": "config_type", - "type": "TypeString", - "description": "The configuration type.", + "optional": true, "computed": true }, { @@ -144057,33 +148467,63 @@ "type": "TypeString", "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true - } - ], - "ibm_sm_iam_credentials_secret": [ + }, { - "name": "created_at", + "name": "created_by", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "next_rotation_date", + "name": "updated_at", "type": "TypeString", - "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "reuse_api_key", - "type": "TypeBool", - "description": "Determines whether to use the same service ID and API key for future read operations on an`iam_credentials` secret. Must be set to `true` for IAM credentials secrets managed with Terraform.", - "default_value": true, + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", "optional": true }, { - "name": "created_by", + "name": "name", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "A human-readable unique name to assign to your configuration.To protect your privacy, do not use personal data, such as your name or location, as an name for your secret.", + "immutable": true, + "required": true + }, + { + "name": "config_type", + "type": "TypeString", + "description": "The configuration type.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true + } + ], + "ibm_sm_iam_credentials_secret": [ + { + "name": "access_groups", + "type": "TypeList", + "description": "Access Groups that you can use for an `iam_credentials` secret.Up to 10 Access Groups can be used for each secret.", + "immutable": true, + "optional": true, + "elem": { + "type": "TypeString" + } }, { "name": "versions_total", @@ -144092,11 +148532,17 @@ "computed": true }, { - "name": "description", + "name": "endpoint_type", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "description": "public or private.", "optional": true }, + { + "name": "secret_type", + "type": "TypeString", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "computed": true + }, { "name": "rotation", "type": "TypeList", @@ -144135,6 +148581,12 @@ }, "max_items": 1 }, + { + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier that is associated with the entity that created the secret.", + "computed": true + }, { "name": "state", "type": "TypeInt", @@ -144142,52 +148594,36 @@ "computed": true }, { - "name": "region", + "name": "state_description", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "description": "A text representation of the secret state.", "computed": true }, { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "next_rotation_date", + "type": "TypeString", + "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", + "computed": true }, { - "name": "version_custom_metadata", - "type": "TypeMap", - "description": "The secret version metadata that a user can customize.", + "name": "secret_group_id", + "type": "TypeString", + "description": "A v4 UUID identifier, or `default` secret group.", "immutable": true, "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true }, { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "name": "reuse_api_key", + "type": "TypeBool", + "description": "Determines whether to use the same service ID and API key for future read operations on an`iam_credentials` secret. Must be set to `true` for IAM credentials secrets managed with Terraform.", + "default_value": true, + "optional": true }, { - "name": "secret_id", - "type": "TypeString", - "description": "A v4 UUID identifier.", + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", "computed": true }, { @@ -144197,36 +148633,15 @@ "computed": true }, { - "name": "api_key", - "type": "TypeString", - "description": "The API key that is generated for this secret.After the secret reaches the end of its lease (see the `ttl` field), the API key is deleted automatically.", - "secure": true, - "computed": true - }, - { - "name": "secret_type", - "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", - "computed": true - }, - { - "name": "access_groups", + "name": "labels", "type": "TypeList", - "description": "Access Groups that you can use for an `iam_credentials` secret.Up to 10 Access Groups can be used for each secret.", - "immutable": true, + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", "optional": true, + "computed": true, "elem": { "type": "TypeString" } }, - { - "name": "service_id", - "type": "TypeString", - "description": "The service ID under which the API key (see the `api_key` field) is created.If you omit this parameter, Secrets Manager generates a new service ID for your secret at its creation and adds it to the access groups that you assign.Optionally, you can use this field to provide your own service ID if you prefer to manage its access directly or retain the service ID after your secret expires, is rotated, or deleted. If you provide a service ID, do not include the `access_groups` parameter.", - "immutable": true, - "optional": true, - "computed": true - }, { "name": "crn", "type": "TypeString", @@ -144235,9 +148650,9 @@ "computed": true }, { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true }, { @@ -144247,22 +148662,24 @@ "computed": true }, { - "name": "service_id_is_static", - "type": "TypeBool", - "description": "Indicates whether an `iam_credentials` secret was created with a static service ID.If it is set to `true`, the service ID for the secret was provided by the user at secret creation. If it is set to `false`, the service ID was generated by Secrets Manager.", - "computed": true + "name": "description", + "type": "TypeString", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "optional": true }, { - "name": "endpoint_type", + "name": "service_id", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The service ID under which the API key (see the `api_key` field) is created.If you omit this parameter, Secrets Manager generates a new service ID for your secret at its creation and adds it to the access groups that you assign.Optionally, you can use this field to provide your own service ID if you prefer to manage its access directly or retain the service ID after your secret expires, is rotated, or deleted. If you provide a service ID, do not include the `access_groups` parameter.", + "immutable": true, + "optional": true, + "computed": true }, { - "name": "name", + "name": "created_at", "type": "TypeString", - "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", - "required": true + "description": "The date when a resource was created. The date format follows RFC 3339.", + "computed": true }, { "name": "ttl", @@ -144271,71 +148688,75 @@ "required": true }, { - "name": "state_description", - "type": "TypeString", - "description": "A text representation of the secret state.", - "computed": true - }, - { - "name": "secret_group_id", - "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", - "immutable": true, + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "name": "version_custom_metadata", + "type": "TypeMap", + "description": "The secret version metadata that a user can customize.", + "immutable": true, "optional": true, - "computed": true, "elem": { "type": "TypeString" } - } - ], - "ibm_sm_imported_certificate": [ + }, { - "name": "common_name", + "name": "region", "type": "TypeString", - "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, { - "name": "created_by", + "name": "name", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true + "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", + "required": true }, { - "name": "endpoint_type", + "name": "instance_id", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "secret_id", + "type": "TypeString", + "description": "A v4 UUID identifier.", + "computed": true }, { - "name": "description", - "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", - "optional": true + "name": "service_id_is_static", + "type": "TypeBool", + "description": "Indicates whether an `iam_credentials` secret was created with a static service ID.If it is set to `true`, the service ID for the secret was provided by the user at secret creation. If it is set to `false`, the service ID was generated by Secrets Manager.", + "computed": true }, { - "name": "intermediate", + "name": "api_key", "type": "TypeString", - "description": "(Optional) The PEM-encoded intermediate certificate to associate with the root certificate.", + "description": "The API key that is generated for this secret.After the secret reaches the end of its lease (see the `ttl` field), the API key is deleted automatically.", "secure": true, - "optional": true + "computed": true + } + ], + "ibm_sm_imported_certificate": [ + { + "name": "certificate", + "type": "TypeString", + "description": "The PEM-encoded contents of your certificate.", + "secure": true, + "required": true }, { "name": "private_key", @@ -144345,16 +148766,27 @@ "optional": true }, { - "name": "created_at", + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", + "computed": true + }, + { + "name": "issuer", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The distinguished name that identifies the entity that signed and issued the certificate.", "computed": true }, { - "name": "crn", + "name": "secret_type", "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { @@ -144364,16 +148796,22 @@ "computed": true }, { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "name": "serial_number", + "type": "TypeString", + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", "computed": true }, { - "name": "expiration_date", + "name": "description", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", - "computed": true + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "optional": true + }, + { + "name": "name", + "type": "TypeString", + "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", + "required": true }, { "name": "version_custom_metadata", @@ -144386,16 +148824,9 @@ } }, { - "name": "certificate", + "name": "common_name", "type": "TypeString", - "description": "The PEM-encoded contents of your certificate.", - "secure": true, - "required": true - }, - { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", + "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", "computed": true }, { @@ -144405,29 +148836,11 @@ "computed": true }, { - "name": "validity", - "type": "TypeList", - "description": "The date and time that the certificate validity period begins and ends.", - "computed": true, - "elem": { - "not_after": { - "name": "not_after", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - }, - "not_before": { - "name": "not_before", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - } - } - }, - { - "name": "key_algorithm", + "name": "secret_group_id", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm to be used to generate the public key that is associated with the certificate.The algorithm that you select determines the encryption algorithm (`RSA` or `ECDSA`) and key size to be used to generate keys and sign certificates. For longer living certificates, it is recommended to use longer keys to provide more encryption protection. Allowed values: RSA2048, RSA4096, EC256, EC384.", + "description": "A v4 UUID identifier, or `default` secret group.", + "immutable": true, + "optional": true, "computed": true }, { @@ -144437,38 +148850,25 @@ "computed": true }, { - "name": "issuer", + "name": "signing_algorithm", "type": "TypeString", - "description": "The distinguished name that identifies the entity that signed and issued the certificate.", - "computed": true - }, - { - "name": "private_key_included", - "type": "TypeBool", - "description": "Indicates whether the certificate was imported with an associated private key.", + "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", "computed": true }, { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "secret_type", + "name": "region", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, { - "name": "signing_algorithm", + "name": "endpoint_type", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", - "computed": true + "description": "public or private.", + "optional": true }, { "name": "secret_id", @@ -144477,32 +148877,51 @@ "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", - "required": true + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "computed": true }, { - "name": "secret_group_id", + "name": "instance_id", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", "immutable": true, + "required": true + }, + { + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "region", - "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", + "name": "intermediate", + "type": "TypeString", + "description": "(Optional) The PEM-encoded intermediate certificate to associate with the root certificate.", + "secure": true, + "optional": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", "computed": true }, { @@ -144511,6 +148930,26 @@ "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, + { + "name": "validity", + "type": "TypeList", + "description": "The date and time that the certificate validity period begins and ends.", + "computed": true, + "elem": { + "not_after": { + "name": "not_after", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + }, + "not_before": { + "name": "not_before", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + } + } + }, { "name": "alt_names", "type": "TypeList", @@ -144521,84 +148960,42 @@ } }, { - "name": "serial_number", - "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", - "computed": true - }, - { - "name": "instance_id", + "name": "created_by", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - } - ], - "ibm_sm_kv_secret": [ - { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", - "computed": true - }, - { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "versions_total", + "name": "locks_total", "type": "TypeInt", - "description": "The number of versions of the secret.", + "description": "The number of locks of the secret.", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", - "required": true - }, - { - "name": "created_at", + "name": "expiration_date", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true }, { - "name": "updated_at", + "name": "key_algorithm", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "The identifier for the cryptographic algorithm to be used to generate the public key that is associated with the certificate.The algorithm that you select determines the encryption algorithm (`RSA` or `ECDSA`) and key size to be used to generate keys and sign certificates. For longer living certificates, it is recommended to use longer keys to provide more encryption protection. Allowed values: RSA2048, RSA4096, EC256, EC384.", "computed": true }, { - "name": "secret_id", - "type": "TypeString", - "description": "A v4 UUID identifier.", + "name": "private_key_included", + "type": "TypeBool", + "description": "Indicates whether the certificate was imported with an associated private key.", "computed": true - }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, - { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, + } + ], + "ibm_sm_kv_secret": [ { - "name": "description", + "name": "name", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", - "optional": true + "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", + "required": true }, { "name": "secret_group_id", @@ -144628,12 +149025,6 @@ "type": "TypeString" } }, - { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true - }, { "name": "crn", "type": "TypeString", @@ -144642,15 +149033,15 @@ "computed": true }, { - "name": "state_description", - "type": "TypeString", - "description": "A text representation of the secret state.", + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", "computed": true }, { - "name": "secret_type", + "name": "secret_id", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "description": "A v4 UUID identifier.", "computed": true }, { @@ -144663,9 +149054,9 @@ "computed": true }, { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { @@ -144677,21 +149068,21 @@ "required": true }, { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - } - ], - "ibm_sm_private_certificate": [ + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true + }, { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "name": "secret_type", + "type": "TypeString", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "computed": true + }, + { + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", "optional": true, "computed": true, "elem": { @@ -144699,16 +149090,21 @@ } }, { - "name": "uri_sans", + "name": "created_at", "type": "TypeString", - "description": "The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", - "immutable": true, - "optional": true + "description": "The date when a resource was created. The date format follows RFC 3339.", + "computed": true }, { - "name": "locks_total", + "name": "state_description", + "type": "TypeString", + "description": "A text representation of the secret state.", + "computed": true + }, + { + "name": "state", "type": "TypeInt", - "description": "The number of locks of the secret.", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { @@ -144718,181 +149114,144 @@ "computed": true }, { - "name": "validity", - "type": "TypeList", - "description": "The date and time that the certificate validity period begins and ends.", - "computed": true, - "elem": { - "not_after": { - "name": "not_after", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - }, - "not_before": { - "name": "not_before", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - } - } + "name": "description", + "type": "TypeString", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "optional": true }, { - "name": "version_custom_metadata", - "type": "TypeMap", - "description": "The secret version metadata that a user can customize.", - "immutable": true, + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", "optional": true, + "computed": true, "elem": { "type": "TypeString" } }, { - "name": "signing_algorithm", + "name": "created_by", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "next_rotation_date", - "type": "TypeString", - "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true + } + ], + "ibm_sm_private_certificate": [ + { + "name": "uri_sans", + "type": "TypeString", + "description": "The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "immutable": true, + "optional": true }, { - "name": "ca_chain", - "type": "TypeList", - "description": "The chain of certificate authorities that are associated with the certificate.", - "secure": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "exclude_cn_from_sans", + "type": "TypeBool", + "description": "Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to `true`, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address.", + "immutable": true, + "optional": true }, { - "name": "crn", - "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", "computed": true }, { - "name": "secret_id", + "name": "serial_number", "type": "TypeString", - "description": "A v4 UUID identifier.", + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", "computed": true }, { - "name": "updated_at", + "name": "certificate", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "The PEM-encoded contents of your certificate.", + "secure": true, "computed": true }, { - "name": "expiration_date", + "name": "created_by", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "secret_group_id", - "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", - "immutable": true, - "optional": true, + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { - "name": "certificate_template", + "name": "next_rotation_date", "type": "TypeString", - "description": "The name of the certificate template.", - "immutable": true, - "required": true - }, - { - "name": "alt_names", - "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", - "immutable": true, - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", + "computed": true }, { - "name": "issuer", + "name": "name", "type": "TypeString", - "description": "The distinguished name that identifies the entity that signed and issued the certificate.", - "computed": true + "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", + "required": true }, { - "name": "key_algorithm", + "name": "description", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm to be used to generate the public key that is associated with the certificate.The algorithm that you select determines the encryption algorithm (`RSA` or `ECDSA`) and key size to be used to generate keys and sign certificates. For longer living certificates, it is recommended to use longer keys to provide more encryption protection. Allowed values: RSA2048, RSA4096, EC256, EC384.", - "default_value": "RSA2048", - "immutable": true, + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", "optional": true }, { - "name": "instance_id", + "name": "certificate_template", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", + "description": "The name of the certificate template.", "immutable": true, "required": true }, { - "name": "region", + "name": "crn", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", "computed": true }, { - "name": "csr", + "name": "issuer", "type": "TypeString", - "description": "The certificate signing request.", - "immutable": true, - "optional": true + "description": "The distinguished name that identifies the entity that signed and issued the certificate.", + "computed": true }, { - "name": "exclude_cn_from_sans", - "type": "TypeBool", - "description": "Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to `true`, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address.", - "immutable": true, - "optional": true + "name": "private_key", + "type": "TypeString", + "description": "(Optional) The PEM-encoded private key to associate with the certificate.", + "secure": true, + "computed": true }, { - "name": "ttl", + "name": "endpoint_type", "type": "TypeString", - "description": "The time-to-live (TTL) or lease duration to assign to generated credentials.For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value can be either an integer that specifies the number of seconds, or the string representation of a duration, such as `120m` or `24h`.Minimum duration is 1 minute. Maximum is 90 days.", - "immutable": true, + "description": "public or private.", "optional": true }, { - "name": "created_at", + "name": "secret_id", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "A v4 UUID identifier.", "computed": true }, { - "name": "name", + "name": "secret_group_id", "type": "TypeString", - "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", - "required": true + "description": "A v4 UUID identifier, or `default` secret group.", + "immutable": true, + "optional": true, + "computed": true }, { "name": "common_name", @@ -144909,39 +149268,10 @@ "optional": true }, { - "name": "other_sans", - "type": "TypeList", - "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The alternative names must match the values that are specified in the `allowed_other_sans` field in the associated certificate template. The format is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`.", - "immutable": true, - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "certificate_authority", - "type": "TypeString", - "description": "The intermediate certificate authority that signed this certificate.", - "computed": true - }, - { - "name": "serial_number", - "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", - "computed": true - }, - { - "name": "certificate", - "type": "TypeString", - "description": "The PEM-encoded contents of your certificate.", - "secure": true, - "computed": true - }, - { - "name": "format", + "name": "private_key_format", "type": "TypeString", - "description": "The format of the returned data.", - "immutable": true, + "description": "The format of the generated private key.", + "default_value": "der", "optional": true }, { @@ -144976,17 +149306,14 @@ "max_items": 1 }, { - "name": "issuing_ca", - "type": "TypeString", - "description": "The PEM-encoded certificate of the certificate authority that signed and issued this certificate.", - "secure": true, - "computed": true - }, - { - "name": "secret_type", - "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", - "computed": true + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "downloaded", @@ -144995,63 +149322,69 @@ "computed": true }, { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "name": "signing_algorithm", + "type": "TypeString", + "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", "computed": true }, { - "name": "state_description", - "type": "TypeString", - "description": "A text representation of the secret state.", + "name": "revocation_time_seconds", + "type": "TypeInt", + "description": "The timestamp of the certificate revocation.", "computed": true }, { - "name": "revocation_time_rfc3339", - "type": "TypeString", - "description": "The date and time that the certificate was revoked. The date format follows RFC 3339.", - "computed": true + "name": "ca_chain", + "type": "TypeList", + "description": "The chain of certificate authorities that are associated with the certificate.", + "secure": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "private_key", + "name": "other_sans", + "type": "TypeList", + "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The alternative names must match the values that are specified in the `allowed_other_sans` field in the associated certificate template. The format is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`.", + "immutable": true, + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "issuing_ca", "type": "TypeString", - "description": "(Optional) The PEM-encoded private key to associate with the certificate.", + "description": "The PEM-encoded certificate of the certificate authority that signed and issued this certificate.", "secure": true, "computed": true }, { - "name": "endpoint_type", + "name": "secret_type", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "computed": true }, { - "name": "description", + "name": "ttl", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "description": "The time-to-live (TTL) or lease duration to assign to generated credentials.For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value can be either an integer that specifies the number of seconds, or the string representation of a duration, such as `120m` or `24h`.Minimum duration is 1 minute. Maximum is 90 days.", + "immutable": true, "optional": true }, { - "name": "private_key_format", + "name": "updated_at", "type": "TypeString", - "description": "The format of the generated private key.", - "default_value": "der", - "optional": true + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "computed": true }, { - "name": "created_by", + "name": "expiration_date", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true }, - { - "name": "revocation_time_seconds", - "type": "TypeInt", - "description": "The timestamp of the certificate revocation.", - "computed": true - } - ], - "ibm_sm_private_certificate_configuration_action_set_signed": [ { "name": "instance_id", "type": "TypeString", @@ -145060,6 +149393,47 @@ "immutable": true, "required": true }, + { + "name": "csr", + "type": "TypeString", + "description": "The certificate signing request.", + "immutable": true, + "optional": true + }, + { + "name": "state_description", + "type": "TypeString", + "description": "A text representation of the secret state.", + "computed": true + }, + { + "name": "key_algorithm", + "type": "TypeString", + "description": "The identifier for the cryptographic algorithm to be used to generate the public key that is associated with the certificate.The algorithm that you select determines the encryption algorithm (`RSA` or `ECDSA`) and key size to be used to generate keys and sign certificates. For longer living certificates, it is recommended to use longer keys to provide more encryption protection. Allowed values: RSA2048, RSA4096, EC256, EC384.", + "default_value": "RSA2048", + "immutable": true, + "optional": true + }, + { + "name": "validity", + "type": "TypeList", + "description": "The date and time that the certificate validity period begins and ends.", + "computed": true, + "elem": { + "not_after": { + "name": "not_after", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + }, + "not_before": { + "name": "not_before", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + } + } + }, { "name": "region", "type": "TypeString", @@ -145069,6 +149443,70 @@ "optional": true, "computed": true }, + { + "name": "revocation_time_rfc3339", + "type": "TypeString", + "description": "The date and time that the certificate was revoked. The date format follows RFC 3339.", + "computed": true + }, + { + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "alt_names", + "type": "TypeList", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", + "immutable": true, + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "format", + "type": "TypeString", + "description": "The format of the returned data.", + "immutable": true, + "optional": true + }, + { + "name": "version_custom_metadata", + "type": "TypeMap", + "description": "The secret version metadata that a user can customize.", + "immutable": true, + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date when a resource was created. The date format follows RFC 3339.", + "computed": true + }, + { + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", + "computed": true + }, + { + "name": "certificate_authority", + "type": "TypeString", + "description": "The intermediate certificate authority that signed this certificate.", + "computed": true + } + ], + "ibm_sm_private_certificate_configuration_action_set_signed": [ { "name": "endpoint_type", "type": "TypeString", @@ -145089,70 +149527,26 @@ "secure": true, "immutable": true, "required": true - } - ], - "ibm_sm_private_certificate_configuration_action_sign_csr": [ - { - "name": "common_name", - "type": "TypeString", - "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", - "immutable": true, - "optional": true - }, - { - "name": "max_path_length", - "type": "TypeInt", - "description": "The maximum path length to encode in the generated certificate. `-1` means no limit.If the signing certificate has a maximum path length set, the path length is set to one less than that of the signing certificate. A limit of `0` means a literal path length of zero.", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "exclude_cn_from_sans", - "type": "TypeBool", - "description": "Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to `true`, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address.", - "default_value": false, - "immutable": true, - "optional": true - }, - { - "name": "street_address", - "type": "TypeList", - "description": "The street address values to define in the subject field of the resulting certificate.", - "immutable": true, - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "country", - "type": "TypeList", - "description": "The Country (C) values to define in the subject field of the resulting certificate.", - "immutable": true, - "optional": true, - "elem": { - "type": "TypeString" - } }, { - "name": "province", - "type": "TypeList", - "description": "The Province (ST) values to define in the subject field of the resulting certificate.", + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", "immutable": true, - "optional": true, - "elem": { - "type": "TypeString" - } + "required": true }, { - "name": "serial_number", + "name": "region", "type": "TypeString", - "description": "The serial number to assign to the generated certificate. To assign a random serial number, you can omit this field.", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", "immutable": true, "optional": true, "computed": true - }, + } + ], + "ibm_sm_private_certificate_configuration_action_sign_csr": [ { "name": "alt_names", "type": "TypeList", @@ -145164,26 +149558,9 @@ } }, { - "name": "permitted_dns_domains", - "type": "TypeList", - "description": "The allowed DNS domains or subdomains for the certificates that are to be signed and issued by this CA certificate.", - "immutable": true, - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "use_csr_values", - "type": "TypeBool", - "description": "Determines whether to use values from a certificate signing request (CSR) to complete a `private_cert_configuration_action_sign_csr` action.", - "immutable": true, - "optional": true - }, - { - "name": "ou", + "name": "country", "type": "TypeList", - "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", + "description": "The Country (C) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "elem": { @@ -145191,25 +149568,12 @@ } }, { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, - { - "name": "uri_sans", - "type": "TypeString", - "description": "The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", - "immutable": true, - "optional": true - }, - { - "name": "ttl", + "name": "instance_id", "type": "TypeString", - "description": "The requested time-to-live (TTL) for certificates that are created by this CA. This field's value cannot be longer than the `max_ttl` limit.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", "immutable": true, - "optional": true, - "computed": true + "required": true }, { "name": "data", @@ -145251,13 +149615,25 @@ } }, { - "name": "region", + "name": "name", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", + "description": "The name that uniquely identifies a configuration", "immutable": true, - "optional": true, - "computed": true + "required": true + }, + { + "name": "common_name", + "type": "TypeString", + "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", + "immutable": true, + "optional": true + }, + { + "name": "ip_sans", + "type": "TypeString", + "description": "The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "immutable": true, + "optional": true }, { "name": "format", @@ -145268,9 +149644,17 @@ "computed": true }, { - "name": "organization", + "name": "exclude_cn_from_sans", + "type": "TypeBool", + "description": "Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to `true`, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address.", + "default_value": false, + "immutable": true, + "optional": true + }, + { + "name": "locality", "type": "TypeList", - "description": "The Organization (O) values to define in the subject field of the resulting certificate.", + "description": "The Locality (L) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "elem": { @@ -145278,9 +149662,9 @@ } }, { - "name": "locality", + "name": "province", "type": "TypeList", - "description": "The Locality (L) values to define in the subject field of the resulting certificate.", + "description": "The Province (ST) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "elem": { @@ -145298,11 +149682,73 @@ } }, { - "name": "name", + "name": "other_sans", + "type": "TypeList", + "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The alternative names must match the values that are specified in the `allowed_other_sans` field in the associated certificate template. The format is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`.", + "immutable": true, + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "ttl", "type": "TypeString", - "description": "The name that uniquely identifies a configuration", + "description": "The requested time-to-live (TTL) for certificates that are created by this CA. This field's value cannot be longer than the `max_ttl` limit.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).", "immutable": true, - "required": true + "optional": true, + "computed": true + }, + { + "name": "max_path_length", + "type": "TypeInt", + "description": "The maximum path length to encode in the generated certificate. `-1` means no limit.If the signing certificate has a maximum path length set, the path length is set to one less than that of the signing certificate. A limit of `0` means a literal path length of zero.", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "permitted_dns_domains", + "type": "TypeList", + "description": "The allowed DNS domains or subdomains for the certificates that are to be signed and issued by this CA certificate.", + "immutable": true, + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "ou", + "type": "TypeList", + "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", + "immutable": true, + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true + }, + { + "name": "serial_number", + "type": "TypeString", + "description": "The serial number to assign to the generated certificate. To assign a random serial number, you can omit this field.", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, + "computed": true }, { "name": "csr", @@ -145313,16 +149759,23 @@ "required": true }, { - "name": "ip_sans", + "name": "uri_sans", "type": "TypeString", - "description": "The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "description": "The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", "immutable": true, "optional": true }, { - "name": "other_sans", + "name": "use_csr_values", + "type": "TypeBool", + "description": "Determines whether to use values from a certificate signing request (CSR) to complete a `private_cert_configuration_action_sign_csr` action.", + "immutable": true, + "optional": true + }, + { + "name": "organization", "type": "TypeList", - "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The alternative names must match the values that are specified in the `allowed_other_sans` field in the associated certificate template. The format is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`.", + "description": "The Organization (O) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "elem": { @@ -145330,72 +149783,75 @@ } }, { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", + "name": "street_address", + "type": "TypeList", + "description": "The street address values to define in the subject field of the resulting certificate.", "immutable": true, - "required": true + "optional": true, + "elem": { + "type": "TypeString" + } } ], "ibm_sm_private_certificate_configuration_intermediate_ca": [ { - "name": "issuer", + "name": "private_key_format", "type": "TypeString", - "description": "The distinguished name that identifies the entity that signed and issued the certificate.", + "description": "The format of the generated private key.", + "default_value": "der", "immutable": true, "optional": true }, { - "name": "ttl", + "name": "key_type", "type": "TypeString", - "description": "Specifies the requested Time To Live (after which the certificate will be expired). The value can be provided provided as a string duration with time suffix (e.g. '24h') or the number of seconds as string (e.g. '86400').", - "optional": true + "description": "The type of private key to generate.", + "immutable": true, + "optional": true, + "computed": true }, { - "name": "permitted_dns_domains", + "name": "postal_code", "type": "TypeList", - "description": "The allowed DNS domains or subdomains for the certificates that are to be signed and issued by this CA certificate.", + "description": "The postal code values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, + "computed": true, "elem": { "type": "TypeString" } }, { - "name": "instance_id", + "name": "signing_method", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", + "description": "The signing method to use with this certificate authority to generate private certificates.You can choose between internal or externally signed options. For more information, see the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-intermediate-certificate-authorities).", "immutable": true, "required": true }, { - "name": "region", - "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", + "name": "max_path_length", + "type": "TypeInt", + "description": "The maximum path length to encode in the generated certificate. `-1` means no limit.", "immutable": true, - "optional": true, - "computed": true + "optional": true }, { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true + "name": "max_ttl_seconds", + "type": "TypeInt", + "description": "The maximum time-to-live (TTL) for certificates that are created by this CA.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).Minimum value is one hour (`1h`). Maximum value is 100 years (`876000h`).", + "computed": true }, { - "name": "crl_expiry", + "name": "common_name", "type": "TypeString", - "description": "The time until the certificate revocation list (CRL) expires.The value can be supplied as a string representation of a duration in hours, such as `48h`. The default is 72 hours. In the API response, this value is returned in seconds (integer).**Note:** The CRL is rotated automatically before it expires.", - "optional": true, - "computed": true + "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", + "immutable": true, + "required": true }, { - "name": "issuing_certificates_urls_encoded", + "name": "crl_disable", "type": "TypeBool", - "description": "Determines whether to encode the URL of the issuing certificate in the certificates that are issued by this certificate authority.", + "description": "Disables or enables certificate revocation list (CRL) building.If CRL building is disabled, a signed but zero-length CRL is returned when downloading the CRL. If CRL building is enabled, it will rebuild the CRL.", "default_value": false, "optional": true }, @@ -145410,9 +149866,35 @@ } }, { - "name": "other_sans", + "name": "ip_sans", + "type": "TypeString", + "description": "The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "immutable": true, + "optional": true + }, + { + "name": "ttl", + "type": "TypeString", + "description": "Specifies the requested Time To Live (after which the certificate will be expired). The value can be provided provided as a string duration with time suffix (e.g. '24h') or the number of seconds as string (e.g. '86400').", + "optional": true + }, + { + "name": "name", + "type": "TypeString", + "description": "A human-readable unique name to assign to your configuration.To protect your privacy, do not use personal data, such as your name or location, as an name for your secret.", + "immutable": true, + "required": true + }, + { + "name": "max_ttl", + "type": "TypeString", + "description": "The maximum time-to-live (TTL) for certificates that are created by this CA.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).Minimum value is one hour (`1h`). Maximum value is 100 years (`876000h`).", + "required": true + }, + { + "name": "province", "type": "TypeList", - "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The alternative names must match the values that are specified in the `allowed_other_sans` field in the associated certificate template. The format is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`.", + "description": "The Province (ST) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "computed": true, @@ -145421,25 +149903,22 @@ } }, { - "name": "private_key_format", + "name": "expiration_date", "type": "TypeString", - "description": "The format of the generated private key.", - "default_value": "der", - "immutable": true, - "optional": true + "description": "The date a secret is expired. The date format follows RFC 3339.", + "computed": true }, { - "name": "exclude_cn_from_sans", + "name": "crl_distribution_points_encoded", "type": "TypeBool", - "description": "Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to `true`, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address.", + "description": "Determines whether to encode the certificate revocation list (CRL) distribution points in the certificates that are issued by this certificate authority.", "default_value": false, - "immutable": true, "optional": true }, { - "name": "ou", + "name": "country", "type": "TypeList", - "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", + "description": "The Country (C) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "computed": true, @@ -145448,33 +149927,41 @@ } }, { - "name": "locality", + "name": "status", + "type": "TypeString", + "description": "The status of the certificate authority. The status of a root certificate authority is either `configured` or `expired`. For intermediate certificate authorities, possible statuses include `signing_required`,`signed_certificate_required`, `certificate_template_required`, `configured`, `expired` or `revoked`.", + "computed": true + }, + { + "name": "permitted_dns_domains", "type": "TypeList", - "description": "The Locality (L) values to define in the subject field of the resulting certificate.", + "description": "The allowed DNS domains or subdomains for the certificates that are to be signed and issued by this CA certificate.", "immutable": true, "optional": true, - "computed": true, "elem": { "type": "TypeString" } }, { - "name": "crl_expiry_seconds", - "type": "TypeInt", - "description": "The time until the certificate revocation list (CRL) expires.The value can be supplied as a string representation of a duration in hours, such as `48h`. The default is 72 hours. In the API response, this value is returned in seconds (integer).**Note:** The CRL is rotated automatically before it expires.", + "name": "format", + "type": "TypeString", + "description": "The format of the returned data.", + "immutable": true, + "optional": true, "computed": true }, { - "name": "common_name", - "type": "TypeString", - "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", + "name": "key_bits", + "type": "TypeInt", + "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", "immutable": true, - "required": true + "optional": true, + "computed": true }, { - "name": "organization", + "name": "street_address", "type": "TypeList", - "description": "The Organization (O) values to define in the subject field of the resulting certificate.", + "description": "The street address values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "computed": true, @@ -145483,9 +149970,24 @@ } }, { - "name": "province", + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "config_type", + "type": "TypeString", + "description": "The configuration type.", + "computed": true + }, + { + "name": "other_sans", "type": "TypeList", - "description": "The Province (ST) values to define in the subject field of the resulting certificate.", + "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The alternative names must match the values that are specified in the `allowed_other_sans` field in the associated certificate template. The format is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`.", "immutable": true, "optional": true, "computed": true, @@ -145493,6 +149995,19 @@ "type": "TypeString" } }, + { + "name": "serial_number", + "type": "TypeString", + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", + "computed": true + }, + { + "name": "issuer", + "type": "TypeString", + "description": "The distinguished name that identifies the entity that signed and issued the certificate.", + "immutable": true, + "optional": true + }, { "name": "data", "type": "TypeList", @@ -145552,65 +150067,80 @@ } }, { - "name": "uri_sans", - "type": "TypeString", - "description": "The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "name": "use_csr_values", + "type": "TypeBool", + "description": "Determines whether to use values from a certificate signing request (CSR) to complete a `private_cert_configuration_action_sign_csr` action.", "immutable": true, "optional": true }, { - "name": "format", + "name": "endpoint_type", "type": "TypeString", - "description": "The format of the returned data.", - "immutable": true, - "optional": true, - "computed": true + "description": "public or private.", + "optional": true }, { - "name": "max_ttl_seconds", - "type": "TypeInt", - "description": "The maximum time-to-live (TTL) for certificates that are created by this CA.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).Minimum value is one hour (`1h`). Maximum value is 100 years (`876000h`).", + "name": "crl_expiry", + "type": "TypeString", + "description": "The time until the certificate revocation list (CRL) expires.The value can be supplied as a string representation of a duration in hours, such as `48h`. The default is 72 hours. In the API response, this value is returned in seconds (integer).**Note:** The CRL is rotated automatically before it expires.", + "optional": true, "computed": true }, { - "name": "ip_sans", + "name": "uri_sans", "type": "TypeString", - "description": "The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "description": "The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", "immutable": true, "optional": true }, { - "name": "key_type", + "name": "instance_id", "type": "TypeString", - "description": "The type of private key to generate.", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", "immutable": true, - "optional": true, + "required": true + }, + { + "name": "crl_expiry_seconds", + "type": "TypeInt", + "description": "The time until the certificate revocation list (CRL) expires.The value can be supplied as a string representation of a duration in hours, such as `48h`. The default is 72 hours. In the API response, this value is returned in seconds (integer).**Note:** The CRL is rotated automatically before it expires.", "computed": true }, { - "name": "use_csr_values", + "name": "exclude_cn_from_sans", "type": "TypeBool", - "description": "Determines whether to use values from a certificate signing request (CSR) to complete a `private_cert_configuration_action_sign_csr` action.", + "description": "Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to `true`, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address.", + "default_value": false, "immutable": true, "optional": true }, { - "name": "config_type", - "type": "TypeString", - "description": "The configuration type.", - "computed": true + "name": "ou", + "type": "TypeList", + "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", + "immutable": true, + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "name", - "type": "TypeString", - "description": "A human-readable unique name to assign to your configuration.To protect your privacy, do not use personal data, such as your name or location, as an name for your secret.", + "name": "organization", + "type": "TypeList", + "description": "The Organization (O) values to define in the subject field of the resulting certificate.", "immutable": true, - "required": true + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "street_address", + "name": "locality", "type": "TypeList", - "description": "The street address values to define in the subject field of the resulting certificate.", + "description": "The Locality (L) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "computed": true, @@ -145619,60 +150149,133 @@ } }, { - "name": "status", + "name": "secret_type", "type": "TypeString", - "description": "The status of the certificate authority. The status of a root certificate authority is either `configured` or `expired`. For intermediate certificate authorities, possible statuses include `signing_required`,`signed_certificate_required`, `certificate_template_required`, `configured`, `expired` or `revoked`.", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "crl_disable", + "name": "issuing_certificates_urls_encoded", "type": "TypeBool", - "description": "Disables or enables certificate revocation list (CRL) building.If CRL building is disabled, a signed but zero-length CRL is returned when downloading the CRL. If CRL building is enabled, it will rebuild the CRL.", + "description": "Determines whether to encode the URL of the issuing certificate in the certificates that are issued by this certificate authority.", "default_value": false, "optional": true + } + ], + "ibm_sm_private_certificate_configuration_root_ca": [ + { + "name": "ttl_seconds", + "type": "TypeInt", + "description": "The requested time-to-live (TTL) for certificates that are created by this CA. This field's value cannot be longer than the `max_ttl` limit.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).", + "computed": true }, { - "name": "key_bits", + "name": "max_ttl_seconds", "type": "TypeInt", - "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", + "description": "The maximum time-to-live (TTL) for certificates that are created by this CA in seconds.", + "computed": true + }, + { + "name": "data", + "type": "TypeList", + "description": "The configuration data of your Private Certificate.", + "secure": true, + "computed": true, + "elem": { + "ca_chain": { + "name": "ca_chain", + "type": "TypeList", + "description": "The chain of certificate authorities that are associated with the certificate.", + "secure": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "certificate": { + "name": "certificate", + "type": "TypeString", + "description": "The PEM-encoded contents of your certificate.", + "secure": true, + "computed": true + }, + "csr": { + "name": "csr", + "type": "TypeString", + "description": "The certificate signing request.", + "computed": true + }, + "expiration": { + "name": "expiration", + "type": "TypeInt", + "description": "The certificate expiration time.", + "computed": true + }, + "issuing_ca": { + "name": "issuing_ca", + "type": "TypeString", + "description": "The PEM-encoded certificate of the certificate authority that signed and issued this certificate.", + "secure": true, + "computed": true + }, + "private_key": { + "name": "private_key", + "type": "TypeString", + "description": "(Optional) The PEM-encoded private key to associate with the certificate.", + "secure": true, + "computed": true + }, + "private_key_type": { + "name": "private_key_type", + "type": "TypeString", + "description": "The type of private key to generate.", + "computed": true + } + } + }, + { + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", "immutable": true, "optional": true, "computed": true }, { - "name": "max_ttl", + "name": "endpoint_type", "type": "TypeString", - "description": "The maximum time-to-live (TTL) for certificates that are created by this CA.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).Minimum value is one hour (`1h`). Maximum value is 100 years (`876000h`).", - "required": true + "description": "public or private.", + "optional": true }, { - "name": "expiration_date", + "name": "crl_expiry", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", + "description": "The time until the certificate revocation list (CRL) expires.The value can be supplied as a string representation of a duration in hours, such as `48h`. The default is 72 hours. In the API response, this value is returned in seconds (integer).**Note:** The CRL is rotated automatically before it expires.", + "optional": true, "computed": true }, { - "name": "postal_code", + "name": "alt_names", "type": "TypeList", - "description": "The postal code values to define in the subject field of the resulting certificate.", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", "immutable": true, "optional": true, - "computed": true, "elem": { "type": "TypeString" } }, { - "name": "signing_method", + "name": "ip_sans", "type": "TypeString", - "description": "The signing method to use with this certificate authority to generate private certificates.You can choose between internal or externally signed options. For more information, see the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-intermediate-certificate-authorities).", + "description": "The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", "immutable": true, - "required": true + "optional": true }, { - "name": "country", + "name": "street_address", "type": "TypeList", - "description": "The Country (C) values to define in the subject field of the resulting certificate.", + "description": "The street address values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "computed": true, @@ -145681,72 +150284,44 @@ } }, { - "name": "serial_number", + "name": "created_by", "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "max_path_length", - "type": "TypeInt", - "description": "The maximum path length to encode in the generated certificate. `-1` means no limit.", - "immutable": true, - "optional": true - }, - { - "name": "secret_type", + "name": "instance_id", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", - "computed": true + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { - "name": "crl_distribution_points_encoded", + "name": "issuing_certificates_urls_encoded", "type": "TypeBool", - "description": "Determines whether to encode the certificate revocation list (CRL) distribution points in the certificates that are issued by this certificate authority.", + "description": "Determines whether to encode the URL of the issuing certificate in the certificates that are issued by this certificate authority.", "default_value": false, "optional": true - } - ], - "ibm_sm_private_certificate_configuration_root_ca": [ - { - "name": "country", - "type": "TypeList", - "description": "The Country (C) values to define in the subject field of the resulting certificate.", - "immutable": true, - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } }, { - "name": "serial_number", + "name": "expiration_date", "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true }, { - "name": "created_at", + "name": "format", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The format of the returned data.", + "immutable": true, + "optional": true, "computed": true }, { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, - { - "name": "max_ttl", - "type": "TypeString", - "description": "The maximum time-to-live (TTL) for certificates that are created by this CA.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).Minimum value is one hour (`1h`). Maximum value is 100 years (`876000h`).", - "required": true - }, - { - "name": "other_sans", + "name": "organization", "type": "TypeList", - "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The alternative names must match the values that are specified in the `allowed_other_sans` field in the associated certificate template. The format is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`.", + "description": "The Organization (O) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "computed": true, @@ -145755,10 +150330,17 @@ } }, { - "name": "status", + "name": "name", "type": "TypeString", - "description": "The status of the certificate authority. The status of a root certificate authority is either `configured` or `expired`. For intermediate certificate authorities, possible statuses include `signing_required`,`signed_certificate_required`, `certificate_template_required`, `configured`, `expired` or `revoked`.", - "computed": true + "description": "A human-readable unique name to assign to your configuration.To protect your privacy, do not use personal data, such as your name or location, as an name for your secret.", + "immutable": true, + "required": true + }, + { + "name": "max_ttl", + "type": "TypeString", + "description": "The maximum time-to-live (TTL) for certificates that are created by this CA.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).Minimum value is one hour (`1h`). Maximum value is 100 years (`876000h`).", + "required": true }, { "name": "crl_disable", @@ -145774,16 +150356,6 @@ "default_value": false, "optional": true }, - { - "name": "alt_names", - "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", - "immutable": true, - "optional": true, - "elem": { - "type": "TypeString" - } - }, { "name": "uri_sans", "type": "TypeString", @@ -145792,20 +150364,16 @@ "optional": true }, { - "name": "permitted_dns_domains", - "type": "TypeList", - "description": "The allowed DNS domains or subdomains for the certificates that are to be signed and issued by this CA certificate.", - "immutable": true, + "name": "ttl", + "type": "TypeString", + "description": "The requested time-to-live (TTL) for certificates that are created by this CA. This field's value cannot be longer than the `max_ttl` limit.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).", "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "computed": true }, { - "name": "organization", + "name": "locality", "type": "TypeList", - "description": "The Organization (O) values to define in the subject field of the resulting certificate.", + "description": "The Locality (L) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "computed": true, @@ -145814,9 +150382,9 @@ } }, { - "name": "street_address", + "name": "other_sans", "type": "TypeList", - "description": "The street address values to define in the subject field of the resulting certificate.", + "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The alternative names must match the values that are specified in the `allowed_other_sans` field in the associated certificate template. The format is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`.", "immutable": true, "optional": true, "computed": true, @@ -145825,34 +150393,23 @@ } }, { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "postal_code", - "type": "TypeList", - "description": "The postal code values to define in the subject field of the resulting certificate.", + "name": "key_bits", + "type": "TypeInt", + "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", "immutable": true, "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "computed": true }, { - "name": "created_by", + "name": "serial_number", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", "computed": true }, { - "name": "max_ttl_seconds", - "type": "TypeInt", - "description": "The maximum time-to-live (TTL) for certificates that are created by this CA in seconds.", + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { @@ -145862,35 +150419,32 @@ "computed": true }, { - "name": "name", + "name": "common_name", "type": "TypeString", - "description": "A human-readable unique name to assign to your configuration.To protect your privacy, do not use personal data, such as your name or location, as an name for your secret.", + "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", "immutable": true, "required": true }, { - "name": "format", - "type": "TypeString", - "description": "The format of the returned data.", + "name": "max_path_length", + "type": "TypeInt", + "description": "The maximum path length to encode in the generated certificate. `-1` means no limit.If the signing certificate has a maximum path length set, the path length is set to one less than that of the signing certificate. A limit of `0` means a literal path length of zero.", "immutable": true, "optional": true, "computed": true }, { - "name": "ou", - "type": "TypeList", - "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", + "name": "exclude_cn_from_sans", + "type": "TypeBool", + "description": "Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to `true`, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address.", + "default_value": false, "immutable": true, - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "optional": true }, { - "name": "locality", + "name": "ou", "type": "TypeList", - "description": "The Locality (L) values to define in the subject field of the resulting certificate.", + "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "computed": true, @@ -145910,32 +150464,45 @@ } }, { - "name": "updated_at", + "name": "key_type", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "The type of private key to generate.", + "immutable": true, + "optional": true, "computed": true }, { - "name": "crl_expiry", - "type": "TypeString", - "description": "The time until the certificate revocation list (CRL) expires.The value can be supplied as a string representation of a duration in hours, such as `48h`. The default is 72 hours. In the API response, this value is returned in seconds (integer).**Note:** The CRL is rotated automatically before it expires.", + "name": "permitted_dns_domains", + "type": "TypeList", + "description": "The allowed DNS domains or subdomains for the certificates that are to be signed and issued by this CA certificate.", + "immutable": true, "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "ttl", - "type": "TypeString", - "description": "The requested time-to-live (TTL) for certificates that are created by this CA. This field's value cannot be longer than the `max_ttl` limit.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).", + "name": "country", + "type": "TypeList", + "description": "The Country (C) values to define in the subject field of the resulting certificate.", + "immutable": true, "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "max_path_length", - "type": "TypeInt", - "description": "The maximum path length to encode in the generated certificate. `-1` means no limit.If the signing certificate has a maximum path length set, the path length is set to one less than that of the signing certificate. A limit of `0` means a literal path length of zero.", + "name": "postal_code", + "type": "TypeList", + "description": "The postal code values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "secret_type", @@ -145943,25 +150510,6 @@ "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, - { - "name": "expiration_date", - "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "ip_sans", - "type": "TypeString", - "description": "The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", - "immutable": true, - "optional": true - }, - { - "name": "ttl_seconds", - "type": "TypeInt", - "description": "The requested time-to-live (TTL) for certificates that are created by this CA. This field's value cannot be longer than the `max_ttl` limit.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).", - "computed": true - }, { "name": "private_key_format", "type": "TypeString", @@ -145971,128 +150519,60 @@ "optional": true }, { - "name": "region", + "name": "created_at", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "issuing_certificates_urls_encoded", - "type": "TypeBool", - "description": "Determines whether to encode the URL of the issuing certificate in the certificates that are issued by this certificate authority.", - "default_value": false, - "optional": true + "name": "crl_expiry_seconds", + "type": "TypeInt", + "description": "The time until the certificate revocation list (CRL) expires, in seconds.", + "computed": true }, { - "name": "common_name", + "name": "status", "type": "TypeString", - "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", - "immutable": true, - "required": true - }, + "description": "The status of the certificate authority. The status of a root certificate authority is either `configured` or `expired`. For intermediate certificate authorities, possible statuses include `signing_required`,`signed_certificate_required`, `certificate_template_required`, `configured`, `expired` or `revoked`.", + "computed": true + } + ], + "ibm_sm_private_certificate_configuration_template": [ { - "name": "key_type", + "name": "ttl", "type": "TypeString", - "description": "The type of private key to generate.", - "immutable": true, - "optional": true, - "computed": true + "description": "The requested time-to-live (TTL) for certificates that are created by this CA. This field's value cannot be longer than the `max_ttl` limit.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).", + "optional": true }, { - "name": "key_bits", - "type": "TypeInt", - "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", - "immutable": true, + "name": "enforce_hostnames", + "type": "TypeBool", + "description": "Determines whether to enforce only valid host names for common names, DNS Subject Alternative Names, and the host section of email addresses.", "optional": true, "computed": true }, { - "name": "exclude_cn_from_sans", - "type": "TypeBool", - "description": "Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to `true`, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address.", - "default_value": false, - "immutable": true, - "optional": true + "name": "ttl_seconds", + "type": "TypeInt", + "description": "The requested Time To Live, after which the certificate will be expired.", + "computed": true }, { - "name": "crl_expiry_seconds", + "name": "not_before_duration_seconds", "type": "TypeInt", - "description": "The time until the certificate revocation list (CRL) expires, in seconds.", + "description": "The duration in seconds by which to backdate the `not_before` property of an issued private certificate.", "computed": true }, { - "name": "data", - "type": "TypeList", - "description": "The configuration data of your Private Certificate.", - "secure": true, - "computed": true, - "elem": { - "ca_chain": { - "name": "ca_chain", - "type": "TypeList", - "description": "The chain of certificate authorities that are associated with the certificate.", - "secure": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "certificate": { - "name": "certificate", - "type": "TypeString", - "description": "The PEM-encoded contents of your certificate.", - "secure": true, - "computed": true - }, - "csr": { - "name": "csr", - "type": "TypeString", - "description": "The certificate signing request.", - "computed": true - }, - "expiration": { - "name": "expiration", - "type": "TypeInt", - "description": "The certificate expiration time.", - "computed": true - }, - "issuing_ca": { - "name": "issuing_ca", - "type": "TypeString", - "description": "The PEM-encoded certificate of the certificate authority that signed and issued this certificate.", - "secure": true, - "computed": true - }, - "private_key": { - "name": "private_key", - "type": "TypeString", - "description": "(Optional) The PEM-encoded private key to associate with the certificate.", - "secure": true, - "computed": true - }, - "private_key_type": { - "name": "private_key_type", - "type": "TypeString", - "description": "The type of private key to generate.", - "computed": true - } - } - } - ], - "ibm_sm_private_certificate_configuration_template": [ - { - "name": "config_type", + "name": "max_ttl", "type": "TypeString", - "description": "The configuration type.", - "computed": true + "description": "The maximum time-to-live (TTL) for certificates that are created by this CA.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).Minimum value is one hour (`1h`). Maximum value is 100 years (`876000h`).", + "optional": true }, { - "name": "allowed_other_sans", + "name": "province", "type": "TypeList", - "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names (SANs) to allow for private certificates.The format for each element in the list is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`. To allow any value for an OID, use `*` as its value. Alternatively, specify a single `*` to allow any `other_sans` input.", + "description": "The Province (ST) values to define in the subject field of the resulting certificate.", "optional": true, "computed": true, "elem": { @@ -146100,23 +150580,22 @@ } }, { - "name": "server_flag", - "type": "TypeBool", - "description": "Determines whether private certificates are flagged for server use.", - "optional": true, - "computed": true + "name": "certificate_authority", + "type": "TypeString", + "description": "The name of the intermediate certificate authority.", + "required": true }, { - "name": "code_signing_flag", + "name": "allow_glob_domains", "type": "TypeBool", - "description": "Determines whether private certificates are flagged for code signing use.", + "description": "Determines whether to allow glob patterns, for example, `ftp*.example.com`, in the names that are specified in the `allowed_domains` field.If set to `true`, clients are allowed to request private certificates with names that match the glob patterns.", "optional": true, "computed": true }, { - "name": "key_usage", + "name": "policy_identifiers", "type": "TypeList", - "description": "The allowed key usage constraint to define for private certificates.You can find valid values in the [Go x509 package documentation](https://pkg.go.dev/crypto/x509#KeyUsage). Omit the `KeyUsage` part of the value. Values are not case-sensitive. To specify no key usage constraints, set this field to an empty list.", + "description": "A list of policy Object Identifiers (OIDs).", "optional": true, "computed": true, "elem": { @@ -146124,24 +150603,22 @@ } }, { - "name": "updated_at", - "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true + "name": "ext_key_usage_oids", + "type": "TypeList", + "description": "A list of extended key usage Object Identifiers (OIDs).", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "basic_constraints_valid_for_non_ca", + "name": "use_csr_common_name", "type": "TypeBool", - "description": "Determines whether to mark the Basic Constraints extension of an issued private certificate as valid for non-CA certificates.", + "description": "When used with the `private_cert_configuration_action_sign_csr` action, this field determines whether to use the common name (CN) from a certificate signing request (CSR) instead of the CN that's included in the data of the certificate.Does not include any requested Subject Alternative Names (SANs) in the CSR. To use the alternative names, include the `use_csr_sans` property.", "optional": true, "computed": true }, - { - "name": "secret_type", - "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", - "computed": true - }, { "name": "created_at", "type": "TypeString", @@ -146149,19 +150626,14 @@ "computed": true }, { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, - { - "name": "region", - "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, + "name": "ou", + "type": "TypeList", + "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "organization", @@ -146174,9 +150646,9 @@ } }, { - "name": "country", + "name": "street_address", "type": "TypeList", - "description": "The Country (C) values to define in the subject field of the resulting certificate.", + "description": "The street address values to define in the subject field of the resulting certificate.", "optional": true, "computed": true, "elem": { @@ -146184,19 +150656,44 @@ } }, { - "name": "province", - "type": "TypeList", - "description": "The Province (ST) values to define in the subject field of the resulting certificate.", + "name": "serial_number", + "type": "TypeString", + "description": "Unused field.", + "optional": true, + "computed": true, + "deprecated": "This field is deprecated." + }, + { + "name": "allow_wildcard_certificates", + "type": "TypeBool", + "description": "Determines whether the issuance of certificates with RFC 6125 wildcards in the CN field.When set to false, this field prevents wildcards from being issued even if they can be allowed by an option `allow_glob_domains`.", + "optional": true, + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "computed": true + }, + { + "name": "allowed_domains_template", + "type": "TypeBool", + "description": "Determines whether to allow the domains that are supplied in the `allowed_domains` field to contain access control list (ACL) templates.", + "optional": true, + "computed": true + }, + { + "name": "allow_any_name", + "type": "TypeBool", + "description": "Determines whether to allow clients to request a private certificate that matches any common name.", "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "computed": true }, { - "name": "street_address", + "name": "allowed_uri_sans", "type": "TypeList", - "description": "The street address values to define in the subject field of the resulting certificate.", + "description": "The URI Subject Alternative Names to allow for private certificates.Values can contain glob patterns, for example `spiffe://hostname/_*`.", "optional": true, "computed": true, "elem": { @@ -146204,30 +150701,34 @@ } }, { - "name": "allowed_domains_template", - "type": "TypeBool", - "description": "Determines whether to allow the domains that are supplied in the `allowed_domains` field to contain access control list (ACL) templates.", + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, "optional": true, "computed": true }, { - "name": "client_flag", + "name": "require_cn", "type": "TypeBool", - "description": "Determines whether private certificates are flagged for client use.", + "description": "Determines whether to require a common name to create a private certificate.By default, a common name is required to generate a certificate. To make the `common_name` field optional, set the `require_cn` option to `false`.", "optional": true, "computed": true }, { - "name": "not_before_duration_seconds", - "type": "TypeInt", - "description": "The duration in seconds by which to backdate the `not_before` property of an issued private certificate.", - "computed": true + "name": "not_before_duration", + "type": "TypeString", + "description": "The duration in seconds by which to backdate the `not_before` property of an issued private certificate.The value can be supplied as a string representation of a duration, such as `30s`. In the API response, this value is returned in seconds (integer).", + "optional": true }, { - "name": "ttl", + "name": "instance_id", "type": "TypeString", - "description": "The requested time-to-live (TTL) for certificates that are created by this CA. This field's value cannot be longer than the `max_ttl` limit.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).", - "optional": true + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { "name": "allow_localhost", @@ -146237,26 +150738,23 @@ "computed": true }, { - "name": "allowed_domains", - "type": "TypeList", - "description": "The domains to define for the certificate template. This property is used along with the `allow_bare_domains` and `allow_subdomains` options.", + "name": "allow_bare_domains", + "type": "TypeBool", + "description": "Determines whether to allow clients to request private certificates that match the value of the actual domains on the final certificate.For example, if you specify `example.com` in the `allowed_domains` field, you grant clients the ability to request a certificate that contains the name `example.com` as one of the DNS values on the final certificate.**Important:** In some scenarios, allowing bare domains can be considered a security risk.", "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "computed": true }, { - "name": "allow_wildcard_certificates", + "name": "client_flag", "type": "TypeBool", - "description": "Determines whether the issuance of certificates with RFC 6125 wildcards in the CN field.When set to false, this field prevents wildcards from being issued even if they can be allowed by an option `allow_glob_domains`.", + "description": "Determines whether private certificates are flagged for client use.", "optional": true, "computed": true }, { - "name": "allowed_uri_sans", + "name": "ext_key_usage", "type": "TypeList", - "description": "The URI Subject Alternative Names to allow for private certificates.Values can contain glob patterns, for example `spiffe://hostname/_*`.", + "description": "The allowed extended key usage constraint on private certificates.You can find valid values in the [Go x509 package documentation](https://golang.org/pkg/crypto/x509/#ExtKeyUsage). Omit the `ExtKeyUsage` part of the value. Values are not case-sensitive. To specify no key usage constraints, set this field to an empty list.", "optional": true, "computed": true, "elem": { @@ -146264,22 +150762,23 @@ } }, { - "name": "max_ttl_seconds", - "type": "TypeInt", - "description": "The maximum time-to-live (TTL) for certificates that are created by this CA in seconds.", + "name": "use_csr_sans", + "type": "TypeBool", + "description": "When used with the `private_cert_configuration_action_sign_csr` action, this field determines whether to use the Subject Alternative Names(SANs) from a certificate signing request (CSR) instead of the SANs that are included in the data of the certificate.Does not include the common name in the CSR. To use the common name, include the `use_csr_common_name` property.", + "optional": true, "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "A human-readable unique name to assign to your configuration.To protect your privacy, do not use personal data, such as your name or location, as an name for your secret.", - "immutable": true, - "required": true + "name": "allow_subdomains", + "type": "TypeBool", + "description": "Determines whether to allow clients to request private certificates with common names (CN) that are subdomains of the CNs that are allowed by the other certificate template options. This includes wildcard subdomains.For example, if `allowed_domains` has a value of `example.com` and `allow_subdomains`is set to `true`, then the following subdomains are allowed: `foo.example.com`, `bar.example.com`, `*.example.com`.**Note:** This field is redundant if you use the `allow_any_name` option.", + "optional": true, + "computed": true }, { - "name": "ou", + "name": "key_usage", "type": "TypeList", - "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", + "description": "The allowed key usage constraint to define for private certificates.You can find valid values in the [Go x509 package documentation](https://pkg.go.dev/crypto/x509#KeyUsage). Omit the `KeyUsage` part of the value. Values are not case-sensitive. To specify no key usage constraints, set this field to an empty list.", "optional": true, "computed": true, "elem": { @@ -146287,41 +150786,37 @@ } }, { - "name": "allowed_secret_groups", - "type": "TypeString", - "description": "Scopes the creation of private certificates to only the secret groups that you specify.This field can be supplied as a comma-delimited list of secret group IDs.", + "name": "basic_constraints_valid_for_non_ca", + "type": "TypeBool", + "description": "Determines whether to mark the Basic Constraints extension of an issued private certificate as valid for non-CA certificates.", "optional": true, "computed": true }, { - "name": "allow_bare_domains", + "name": "allow_ip_sans", "type": "TypeBool", - "description": "Determines whether to allow clients to request private certificates that match the value of the actual domains on the final certificate.For example, if you specify `example.com` in the `allowed_domains` field, you grant clients the ability to request a certificate that contains the name `example.com` as one of the DNS values on the final certificate.**Important:** In some scenarios, allowing bare domains can be considered a security risk.", + "description": "Determines whether to allow clients to request a private certificate with IP Subject Alternative Names.", "optional": true, "computed": true }, { - "name": "enforce_hostnames", + "name": "server_flag", "type": "TypeBool", - "description": "Determines whether to enforce only valid host names for common names, DNS Subject Alternative Names, and the host section of email addresses.", + "description": "Determines whether private certificates are flagged for server use.", "optional": true, "computed": true }, { - "name": "ext_key_usage_oids", - "type": "TypeList", - "description": "A list of extended key usage Object Identifiers (OIDs).", + "name": "email_protection_flag", + "type": "TypeBool", + "description": "Determines whether private certificates are flagged for email protection use.", "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "computed": true }, { - "name": "instance_id", + "name": "name", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", + "description": "A human-readable unique name to assign to your configuration.To protect your privacy, do not use personal data, such as your name or location, as an name for your secret.", "immutable": true, "required": true }, @@ -146333,38 +150828,14 @@ "computed": true }, { - "name": "key_bits", - "type": "TypeInt", - "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", - "optional": true, - "computed": true - }, - { - "name": "serial_number", - "type": "TypeString", - "description": "Unused field.", + "name": "country", + "type": "TypeList", + "description": "The Country (C) values to define in the subject field of the resulting certificate.", "optional": true, "computed": true, - "deprecated": "This field is deprecated." - }, - { - "name": "allow_any_name", - "type": "TypeBool", - "description": "Determines whether to allow clients to request a private certificate that matches any common name.", - "optional": true, - "computed": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true - }, - { - "name": "ttl_seconds", - "type": "TypeInt", - "description": "The requested Time To Live, after which the certificate will be expired.", - "computed": true + "elem": { + "type": "TypeString" + } }, { "name": "locality", @@ -146377,29 +150848,9 @@ } }, { - "name": "certificate_authority", - "type": "TypeString", - "description": "The name of the intermediate certificate authority.", - "required": true - }, - { - "name": "allow_subdomains", - "type": "TypeBool", - "description": "Determines whether to allow clients to request private certificates with common names (CN) that are subdomains of the CNs that are allowed by the other certificate template options. This includes wildcard subdomains.For example, if `allowed_domains` has a value of `example.com` and `allow_subdomains`is set to `true`, then the following subdomains are allowed: `foo.example.com`, `bar.example.com`, `*.example.com`.**Note:** This field is redundant if you use the `allow_any_name` option.", - "optional": true, - "computed": true - }, - { - "name": "allow_glob_domains", - "type": "TypeBool", - "description": "Determines whether to allow glob patterns, for example, `ftp*.example.com`, in the names that are specified in the `allowed_domains` field.If set to `true`, clients are allowed to request private certificates with names that match the glob patterns.", - "optional": true, - "computed": true - }, - { - "name": "ext_key_usage", + "name": "postal_code", "type": "TypeList", - "description": "The allowed extended key usage constraint on private certificates.You can find valid values in the [Go x509 package documentation](https://golang.org/pkg/crypto/x509/#ExtKeyUsage). Omit the `ExtKeyUsage` part of the value. Values are not case-sensitive. To specify no key usage constraints, set this field to an empty list.", + "description": "The postal code values to define in the subject field of the resulting certificate.", "optional": true, "computed": true, "elem": { @@ -146407,124 +150858,89 @@ } }, { - "name": "use_csr_common_name", - "type": "TypeBool", - "description": "When used with the `private_cert_configuration_action_sign_csr` action, this field determines whether to use the common name (CN) from a certificate signing request (CSR) instead of the CN that's included in the data of the certificate.Does not include any requested Subject Alternative Names (SANs) in the CSR. To use the alternative names, include the `use_csr_sans` property.", - "optional": true, + "name": "secret_type", + "type": "TypeString", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "not_before_duration", - "type": "TypeString", - "description": "The duration in seconds by which to backdate the `not_before` property of an issued private certificate.The value can be supplied as a string representation of a duration, such as `30s`. In the API response, this value is returned in seconds (integer).", - "optional": true + "name": "max_ttl_seconds", + "type": "TypeInt", + "description": "The maximum time-to-live (TTL) for certificates that are created by this CA in seconds.", + "computed": true }, { - "name": "max_ttl", + "name": "endpoint_type", "type": "TypeString", - "description": "The maximum time-to-live (TTL) for certificates that are created by this CA.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).Minimum value is one hour (`1h`). Maximum value is 100 years (`876000h`).", + "description": "public or private.", "optional": true }, { - "name": "postal_code", - "type": "TypeList", - "description": "The postal code values to define in the subject field of the resulting certificate.", + "name": "code_signing_flag", + "type": "TypeBool", + "description": "Determines whether private certificates are flagged for code signing use.", "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "computed": true }, { - "name": "allow_ip_sans", - "type": "TypeBool", - "description": "Determines whether to allow clients to request a private certificate with IP Subject Alternative Names.", - "optional": true, + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "email_protection_flag", - "type": "TypeBool", - "description": "Determines whether private certificates are flagged for email protection use.", - "optional": true, + "name": "config_type", + "type": "TypeString", + "description": "The configuration type.", "computed": true }, { - "name": "use_csr_sans", - "type": "TypeBool", - "description": "When used with the `private_cert_configuration_action_sign_csr` action, this field determines whether to use the Subject Alternative Names(SANs) from a certificate signing request (CSR) instead of the SANs that are included in the data of the certificate.Does not include the common name in the CSR. To use the common name, include the `use_csr_common_name` property.", + "name": "key_bits", + "type": "TypeInt", + "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", "optional": true, "computed": true }, { - "name": "require_cn", - "type": "TypeBool", - "description": "Determines whether to require a common name to create a private certificate.By default, a common name is required to generate a certificate. To make the `common_name` field optional, set the `require_cn` option to `false`.", + "name": "allowed_secret_groups", + "type": "TypeString", + "description": "Scopes the creation of private certificates to only the secret groups that you specify.This field can be supplied as a comma-delimited list of secret group IDs.", "optional": true, "computed": true }, { - "name": "policy_identifiers", + "name": "allowed_domains", "type": "TypeList", - "description": "A list of policy Object Identifiers (OIDs).", + "description": "The domains to define for the certificate template. This property is used along with the `allow_bare_domains` and `allow_subdomains` options.", "optional": true, "computed": true, "elem": { "type": "TypeString" } - } - ], - "ibm_sm_public_certificate": [ - { - "name": "ca", - "type": "TypeString", - "description": "The name of the certificate authority configuration.", - "immutable": true, - "required": true - }, - { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", - "computed": true }, { - "name": "validity", + "name": "allowed_other_sans", "type": "TypeList", - "description": "The date and time that the certificate validity period begins and ends.", + "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names (SANs) to allow for private certificates.The format for each element in the list is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`. To allow any value for an OID, use `*` as its value. Alternatively, specify a single `*` to allow any `other_sans` input.", + "optional": true, "computed": true, "elem": { - "not_after": { - "name": "not_after", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - }, - "not_before": { - "name": "not_before", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - } + "type": "TypeString" } - }, + } + ], + "ibm_sm_public_certificate": [ { - "name": "certificate", + "name": "serial_number", "type": "TypeString", - "description": "The PEM-encoded contents of your certificate.", - "secure": true, + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", "computed": true }, { - "name": "alt_names", - "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", - "immutable": true, - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "name", + "type": "TypeString", + "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", + "required": true }, { "name": "akamai", @@ -146598,89 +151014,12 @@ }, "max_items": 1 }, - { - "name": "state_description", - "type": "TypeString", - "description": "A text representation of the secret state.", - "computed": true - }, - { - "name": "private_key", - "type": "TypeString", - "description": "(Optional) The PEM-encoded private key to associate with the certificate.", - "secure": true, - "computed": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true - }, - { - "name": "secret_id", - "type": "TypeString", - "description": "A v4 UUID identifier.", - "computed": true - }, - { - "name": "issuer", - "type": "TypeString", - "description": "The distinguished name that identifies the entity that signed and issued the certificate.", - "computed": true - }, - { - "name": "secret_group_id", - "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "key_algorithm", - "type": "TypeString", - "description": "The identifier for the cryptographic algorithm to be used to generate the public key that is associated with the certificate.The algorithm that you select determines the encryption algorithm (`RSA` or `ECDSA`) and key size to be used to generate keys and sign certificates. For longer living certificates, it is recommended to use longer keys to provide more encryption protection. Allowed values: RSA2048, RSA4096, EC256, EC384.", - "default_value": "RSA2048", - "immutable": true, - "optional": true - }, - { - "name": "rotation", - "type": "TypeList", - "description": "Determines whether Secrets Manager rotates your secrets automatically.", - "optional": true, - "computed": true, - "elem": { - "auto_rotate": { - "name": "auto_rotate", - "type": "TypeBool", - "description": "Determines whether Secrets Manager rotates your secret automatically.Default is `false`. If `auto_rotate` is set to `true` the service rotates your certificate 31 days before it expires.", - "optional": true, - "computed": true - }, - "rotate_keys": { - "name": "rotate_keys", - "type": "TypeBool", - "description": "Determines whether Secrets Manager rotates the private key for your public certificate automatically.Default is `false`. If it is set to `true`, the service generates and stores a new private key for your rotated certificate.", - "optional": true, - "computed": true - } - }, - "max_items": 1 - }, { "name": "signing_algorithm", "type": "TypeString", "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", "computed": true }, - { - "name": "expiration_date", - "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", - "computed": true - }, { "name": "issuance_info", "type": "TypeList", @@ -146769,6 +151108,46 @@ } } }, + { + "name": "ca", + "type": "TypeString", + "description": "The name of the certificate authority configuration.", + "immutable": true, + "required": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date when a resource was created. The date format follows RFC 3339.", + "computed": true + }, + { + "name": "intermediate", + "type": "TypeString", + "description": "(Optional) The PEM-encoded intermediate certificate to associate with the root certificate.", + "secure": true, + "computed": true + }, + { + "name": "validity", + "type": "TypeList", + "description": "The date and time that the certificate validity period begins and ends.", + "computed": true, + "elem": { + "not_after": { + "name": "not_after", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + }, + "not_before": { + "name": "not_before", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + } + } + }, { "name": "instance_id", "type": "TypeString", @@ -146778,17 +151157,39 @@ "required": true }, { - "name": "endpoint_type", + "name": "alt_names", + "type": "TypeList", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", + "immutable": true, + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "key_algorithm", "type": "TypeString", - "description": "public or private.", + "description": "The identifier for the cryptographic algorithm to be used to generate the public key that is associated with the certificate.The algorithm that you select determines the encryption algorithm (`RSA` or `ECDSA`) and key size to be used to generate keys and sign certificates. For longer living certificates, it is recommended to use longer keys to provide more encryption protection. Allowed values: RSA2048, RSA4096, EC256, EC384.", + "default_value": "RSA2048", + "immutable": true, "optional": true }, { - "name": "common_name", - "type": "TypeString", - "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", + "name": "version_custom_metadata", + "type": "TypeMap", + "description": "The secret version metadata that a user can customize.", "immutable": true, - "required": true + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "secret_id", + "type": "TypeString", + "description": "A v4 UUID identifier.", + "computed": true }, { "name": "crn", @@ -146798,20 +151199,23 @@ "computed": true }, { - "name": "state", + "name": "locks_total", "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "description": "The number of locks of the secret.", "computed": true }, { - "name": "region", + "name": "issuer", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "description": "The distinguished name that identifies the entity that signed and issued the certificate.", "computed": true }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true + }, { "name": "secret_type", "type": "TypeString", @@ -146819,38 +151223,49 @@ "computed": true }, { - "name": "name", + "name": "common_name", "type": "TypeString", - "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", + "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", + "immutable": true, "required": true }, { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", - "computed": true - }, - { - "name": "labels", + "name": "rotation", "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "description": "Determines whether Secrets Manager rotates your secrets automatically.", "optional": true, "computed": true, "elem": { - "type": "TypeString" - } + "auto_rotate": { + "name": "auto_rotate", + "type": "TypeBool", + "description": "Determines whether Secrets Manager rotates your secret automatically.Default is `false`. If `auto_rotate` is set to `true` the service rotates your certificate 31 days before it expires.", + "optional": true, + "computed": true + }, + "rotate_keys": { + "name": "rotate_keys", + "type": "TypeBool", + "description": "Determines whether Secrets Manager rotates the private key for your public certificate automatically.Default is `false`. If it is set to `true`, the service generates and stores a new private key for your rotated certificate.", + "optional": true, + "computed": true + } + }, + "max_items": 1 }, { - "name": "created_at", + "name": "created_by", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "serial_number", - "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", - "computed": true + "name": "bundle_certs", + "type": "TypeBool", + "description": "Determines whether your issued certificate is bundled with intermediate certificates. Set to `false` for the certificate file to contain only the issued certificate.", + "default_value": true, + "immutable": true, + "optional": true }, { "name": "custom_metadata", @@ -146863,32 +151278,60 @@ } }, { - "name": "version_custom_metadata", - "type": "TypeMap", - "description": "The secret version metadata that a user can customize.", + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "computed": true + }, + { + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", "immutable": true, "optional": true, + "computed": true + }, + { + "name": "certificate", + "type": "TypeString", + "description": "The PEM-encoded contents of your certificate.", + "secure": true, + "computed": true + }, + { + "name": "private_key", + "type": "TypeString", + "description": "(Optional) The PEM-encoded private key to associate with the certificate.", + "secure": true, + "computed": true + }, + { + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "optional": true, + "computed": true, "elem": { "type": "TypeString" } }, { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", + "name": "state_description", + "type": "TypeString", + "description": "A text representation of the secret state.", "computed": true }, { - "name": "updated_at", - "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", "computed": true }, { - "name": "intermediate", + "name": "expiration_date", "type": "TypeString", - "description": "(Optional) The PEM-encoded intermediate certificate to associate with the root certificate.", - "secure": true, + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true }, { @@ -146905,15 +151348,35 @@ "required": true }, { - "name": "bundle_certs", + "name": "downloaded", "type": "TypeBool", - "description": "Determines whether your issued certificate is bundled with intermediate certificates. Set to `false` for the certificate file to contain only the issued certificate.", - "default_value": true, + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "computed": true + }, + { + "name": "secret_group_id", + "type": "TypeString", + "description": "A v4 UUID identifier, or `default` secret group.", "immutable": true, - "optional": true + "optional": true, + "computed": true } ], "ibm_sm_public_certificate_action_validate_manual_dns": [ + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, { "name": "region", "type": "TypeString", @@ -146935,17 +151398,16 @@ "description": "A v4 UUID identifier.", "immutable": true, "required": true - }, + } + ], + "ibm_sm_public_certificate_configuration_ca_lets_encrypt": [ { - "name": "instance_id", + "name": "name", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", + "description": "A human-readable unique name to assign to your configuration.To protect your privacy, do not use personal data, such as your name or location, as an name for your secret.", "immutable": true, "required": true - } - ], - "ibm_sm_public_certificate_configuration_ca_lets_encrypt": [ + }, { "name": "lets_encrypt_environment", "type": "TypeString", @@ -146993,22 +151455,9 @@ "type": "TypeString", "description": "public or private.", "optional": true - }, - { - "name": "name", - "type": "TypeString", - "description": "A human-readable unique name to assign to your configuration.To protect your privacy, do not use personal data, such as your name or location, as an name for your secret.", - "immutable": true, - "required": true } ], "ibm_sm_public_certificate_configuration_dns_cis": [ - { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true - }, { "name": "created_at", "type": "TypeString", @@ -147016,17 +151465,10 @@ "computed": true }, { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, - { - "name": "name", + "name": "updated_at", "type": "TypeString", - "description": "A human-readable unique name to assign to your configuration.To protect your privacy, do not use personal data, such as your name or location, as an name for your secret.", - "immutable": true, - "required": true + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "computed": true }, { "name": "config_type", @@ -147035,13 +151477,13 @@ "computed": true }, { - "name": "cloud_internet_services_crn", + "name": "cloud_internet_services_apikey", "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "required": true, - "min_length": 9, - "max_length": 512, - "matches": "^crn:v[0-9](:([A-Za-z0-9-._~!$\u0026'()*+,;=@\\/]|%[0-9A-Z]{2})*){8}$" + "description": "An IBM Cloud API key that can to list domains in your Cloud Internet Services instance.To grant Secrets Manager the ability to view the Cloud Internet Services instance and all of its domains, the API key must be assigned the Reader service role on Internet Services (`internet-svcs`).If you need to manage specific domains, you can assign the Manager role. For production environments, it is recommended that you assign the Reader access role, and then use the[IAM Policy Management API](https://cloud.ibm.com/apidocs/iam-policy-management#create-policy) to control specific domains. For more information, see the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-prepare-order-certificates#authorize-specific-domains).", + "min_length": 4, + "max_length": 128, + "matches": "(.*?)", + "optional": true }, { "name": "secret_type", @@ -147050,19 +151492,32 @@ "computed": true }, { - "name": "cloud_internet_services_apikey", + "name": "created_by", "type": "TypeString", - "description": "An IBM Cloud API key that can to list domains in your Cloud Internet Services instance.To grant Secrets Manager the ability to view the Cloud Internet Services instance and all of its domains, the API key must be assigned the Reader service role on Internet Services (`internet-svcs`).If you need to manage specific domains, you can assign the Manager role. For production environments, it is recommended that you assign the Reader access role, and then use the[IAM Policy Management API](https://cloud.ibm.com/apidocs/iam-policy-management#create-policy) to control specific domains. For more information, see the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-prepare-order-certificates#authorize-specific-domains).", - "min_length": 4, - "max_length": 128, - "matches": "(.*?)", + "description": "The unique identifier that is associated with the entity that created the secret.", + "computed": true + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", "optional": true }, { - "name": "updated_at", + "name": "name", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true + "description": "A human-readable unique name to assign to your configuration.To protect your privacy, do not use personal data, such as your name or location, as an name for your secret.", + "immutable": true, + "required": true + }, + { + "name": "cloud_internet_services_crn", + "type": "TypeString", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "required": true, + "min_length": 9, + "max_length": 512, + "matches": "^crn:v[0-9](:([A-Za-z0-9-._~!$\u0026'()*+,;=@\\/]|%[0-9A-Z]{2})*){8}$" }, { "name": "instance_id", @@ -147084,27 +151539,13 @@ ], "ibm_sm_public_certificate_configuration_dns_classic_infrastructure": [ { - "name": "name", + "name": "instance_id", "type": "TypeString", - "description": "A human-readable unique name to assign to your configuration.To protect your privacy, do not use personal data, such as your name or location, as an name for your secret.", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", "immutable": true, "required": true }, - { - "name": "config_type", - "type": "TypeString", - "description": "The configuration type.", - "computed": true - }, - { - "name": "classic_infrastructure_username", - "type": "TypeString", - "description": "The username that is associated with your classic infrastructure account.In most cases, your classic infrastructure username is your `\u003caccount_id\u003e_\u003cemail_address\u003e`. For more information, see the [docs](https://cloud.ibm.com/docs/account?topic=account-classic_keys).", - "required": true, - "min_length": 2, - "max_length": 128, - "matches": "(.*?)" - }, { "name": "classic_infrastructure_password", "type": "TypeString", @@ -147120,12 +151561,6 @@ "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, - { - "name": "updated_at", - "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true - }, { "name": "created_by", "type": "TypeString", @@ -147133,19 +151568,11 @@ "computed": true }, { - "name": "created_at", + "name": "updated_at", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, { "name": "region", "type": "TypeString", @@ -147160,23 +151587,37 @@ "type": "TypeString", "description": "public or private.", "optional": true - } - ], - "ibm_sm_secret_group": [ + }, { - "name": "description", + "name": "name", "type": "TypeString", - "description": "An extended description of your secret group.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", - "max_length": 1024, - "matches": "(.*?)", - "optional": true + "description": "A human-readable unique name to assign to your configuration.To protect your privacy, do not use personal data, such as your name or location, as an name for your secret.", + "immutable": true, + "required": true }, { - "name": "created_at", + "name": "config_type", "type": "TypeString", - "description": "The date that a resource was created. The date format follows RFC 3339.", + "description": "The configuration type.", "computed": true }, + { + "name": "classic_infrastructure_username", + "type": "TypeString", + "description": "The username that is associated with your classic infrastructure account.In most cases, your classic infrastructure username is your `\u003caccount_id\u003e_\u003cemail_address\u003e`. For more information, see the [docs](https://cloud.ibm.com/docs/account?topic=account-classic_keys).", + "required": true, + "min_length": 2, + "max_length": 128, + "matches": "(.*?)" + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date when a resource was created. The date format follows RFC 3339.", + "computed": true + } + ], + "ibm_sm_secret_group": [ { "name": "updated_at", "type": "TypeString", @@ -147220,9 +151661,67 @@ "min_length": 2, "max_length": 64, "matches": "[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\\\.*[A-Za-z0-9]+)*$" + }, + { + "name": "description", + "type": "TypeString", + "description": "An extended description of your secret group.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "max_length": 1024, + "matches": "(.*?)", + "optional": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date that a resource was created. The date format follows RFC 3339.", + "computed": true } ], "ibm_sm_username_password_secret": [ + { + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "username", + "type": "TypeString", + "description": "The username that is assigned to the secret.", + "immutable": true, + "required": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "computed": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, + { + "name": "secret_group_id", + "type": "TypeString", + "description": "A v4 UUID identifier, or `default` secret group.", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "secret_id", + "type": "TypeString", + "description": "A v4 UUID identifier.", + "computed": true + }, { "name": "secret_type", "type": "TypeString", @@ -147259,13 +151758,6 @@ }, "max_items": 1 }, - { - "name": "username", - "type": "TypeString", - "description": "The username that is assigned to the secret.", - "immutable": true, - "required": true - }, { "name": "password", "type": "TypeString", @@ -147274,24 +151766,22 @@ "immutable": true, "required": true }, - { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", - "computed": true - }, - { - "name": "next_rotation_date", - "type": "TypeString", - "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", - "computed": true - }, { "name": "expiration_date", "type": "TypeString", "description": "The date a secret is expired. The date format follows RFC 3339.", "optional": true }, + { + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "name", "type": "TypeString", @@ -147299,28 +151789,28 @@ "required": true }, { - "name": "region", + "name": "state_description", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "description": "A text representation of the secret state.", "computed": true }, { - "name": "version_custom_metadata", - "type": "TypeMap", - "description": "The secret version metadata that a user can customize.", - "immutable": true, - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "crn", + "type": "TypeString", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", + "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "computed": true + }, + { + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { @@ -147336,15 +151826,15 @@ "optional": true }, { - "name": "secret_id", + "name": "created_by", "type": "TypeString", - "description": "A v4 UUID identifier.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", "computed": true }, { @@ -147354,143 +151844,189 @@ "computed": true }, { - "name": "secret_group_id", + "name": "next_rotation_date", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", + "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", + "computed": true + }, + { + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "version_custom_metadata", + "type": "TypeMap", + "description": "The secret version metadata that a user can customize.", "immutable": true, "optional": true, - "computed": true + "elem": { + "type": "TypeString" + } }, { - "name": "crn", + "name": "created_at", "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true + } + ], + "ibm_space": [ + { + "name": "auditors", + "type": "TypeSet", + "description": "The IBMID of the users who will have auditor role in this space, ex - user@example.com", + "optional": true, + "elem": { + "type": "TypeString" + } }, { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true + "name": "managers", + "type": "TypeSet", + "description": "The IBMID of the users who will have manager role in this space, ex - user@example.com", + "optional": true, + "elem": { + "type": "TypeString" + } }, { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", - "computed": true + "name": "developers", + "type": "TypeSet", + "description": "The IBMID of the users who will have developer role in this space, ex - user@example.com", + "optional": true, + "elem": { + "type": "TypeString" + } }, { - "name": "state_description", + "name": "space_quota", "type": "TypeString", - "description": "A text representation of the secret state.", - "computed": true + "description": "The name of the Space Quota Definition", + "immutable": true, + "optional": true }, { - "name": "updated_at", + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "name", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true + "description": "The name for the space", + "required": true }, { - "name": "instance_id", + "name": "org", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", + "description": "The org this space belongs to", "immutable": true, "required": true - }, + } + ], + "ibm_ssl_certificate": [ { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", - "optional": true, - "computed": true, + "name": "organization_information", + "type": "TypeSet", + "description": "Organization information", + "required": true, "elem": { - "type": "TypeString" - } + "org_address": { + "name": "org_address", + "type": "TypeSet", + "description": "Organization address", + "required": true, + "elem": { + "org_address_line1": { + "name": "org_address_line1", + "type": "TypeString", + "required": true + }, + "org_address_line2": { + "name": "org_address_line2", + "type": "TypeString", + "optional": true + }, + "org_city": { + "name": "org_city", + "type": "TypeString", + "required": true + }, + "org_country_code": { + "name": "org_country_code", + "type": "TypeString", + "required": true + }, + "org_postal_code": { + "name": "org_postal_code", + "type": "TypeString", + "required": true + }, + "org_state": { + "name": "org_state", + "type": "TypeString", + "required": true + } + } + }, + "org_fax_number": { + "name": "org_fax_number", + "type": "TypeString", + "optional": true + }, + "org_organization_name": { + "name": "org_organization_name", + "type": "TypeString", + "description": "Organization name", + "required": true + }, + "org_phone_number": { + "name": "org_phone_number", + "type": "TypeString", + "description": "Organization phone number", + "required": true + } + }, + "max_items": 1 }, { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - } - ], - "ibm_space": [ - { - "name": "name", + "name": "server_type", "type": "TypeString", - "description": "The name for the space", + "description": "server type", "required": true }, { - "name": "org", - "type": "TypeString", - "description": "The org this space belongs to", - "immutable": true, + "name": "validity_months", + "type": "TypeInt", + "description": "vslidity of the ssl certificate in month", "required": true }, { - "name": "auditors", - "type": "TypeSet", - "description": "The IBMID of the users who will have auditor role in this space, ex - user@example.com", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "managers", - "type": "TypeSet", - "description": "The IBMID of the users who will have manager role in this space, ex - user@example.com", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "developers", - "type": "TypeSet", - "description": "The IBMID of the users who will have developer role in this space, ex - user@example.com", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "space_quota", + "name": "ssl_type", "type": "TypeString", - "description": "The name of the Space Quota Definition", - "immutable": true, - "optional": true + "description": "ssl type", + "required": true }, { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - } - ], - "ibm_ssl_certificate": [ - { - "name": "technical_contact_same_as_org_address_flag", - "type": "TypeBool", - "description": "Technical contact same as org address flag", - "default_value": false, - "optional": true + "name": "certificate_signing_request", + "type": "TypeString", + "description": "certificate signing request info", + "required": true }, { - "name": "administrative_address_same_as_organization_flag", + "name": "billing_address_same_as_organization_flag", "type": "TypeBool", - "description": "administrative address same as organization flag", + "description": "billing address same as organization flag", "default_value": false, "optional": true }, @@ -147576,80 +152112,79 @@ "max_items": 1 }, { - "name": "administrative_contact", + "name": "billing_contact", "type": "TypeSet", "optional": true, "elem": { - "admin_address": { - "name": "admin_address", + "billing_address": { + "name": "billing_address", "type": "TypeSet", "optional": true, "elem": { - "admin_address_line1": { - "name": "admin_address_line1", + "billing_address_line1": { + "name": "billing_address_line1", "type": "TypeString", "optional": true }, - "admin_address_line2": { - "name": "admin_address_line2", + "billing_address_line2": { + "name": "billing_address_line2", "type": "TypeString", "optional": true }, - "admin_city": { - "name": "admin_city", + "billing_city": { + "name": "billing_city", "type": "TypeString", - "default_value": "", "optional": true }, - "admin_country_code": { - "name": "admin_country_code", + "billing_country_code": { + "name": "billing_country_code", "type": "TypeString", "optional": true }, - "admin_postal_code": { - "name": "admin_postal_code", + "billing_postal_code": { + "name": "billing_postal_code", "type": "TypeString", "optional": true }, - "admin_state": { - "name": "admin_state", + "billing_state": { + "name": "billing_state", "type": "TypeString", "optional": true } } }, - "admin_email_address": { - "name": "admin_email_address", + "billing_email_address": { + "name": "billing_email_address", "type": "TypeString", "optional": true }, - "admin_fax_number": { - "name": "admin_fax_number", + "billing_fax_number": { + "name": "billing_fax_number", "type": "TypeString", "optional": true }, - "admin_first_name": { - "name": "admin_first_name", + "billing_first_name": { + "name": "billing_first_name", "type": "TypeString", "optional": true }, - "admin_last_name": { - "name": "admin_last_name", + "billing_last_name": { + "name": "billing_last_name", "type": "TypeString", "optional": true }, - "admin_organization_name": { - "name": "admin_organization_name", + "billing_organization_name": { + "name": "billing_organization_name", "type": "TypeString", "optional": true }, - "admin_phone_number": { - "name": "admin_phone_number", + "billing_phone_number": { + "name": "billing_phone_number", "type": "TypeString", "optional": true }, - "admin_title": { - "name": "admin_title", + "billing_title": { + "name": "billing_title", "type": "TypeString", "optional": true } @@ -147657,124 +152192,114 @@ "max_items": 1 }, { - "name": "administrative_contact_same_as_technical_flag", - "type": "TypeBool", - "description": "Administrative contact same as technical flag", - "default_value": false, - "optional": true - }, - { - "name": "billing_contact_same_as_technical_flag", + "name": "renewal_flag", "type": "TypeBool", - "description": "billing contact", - "default_value": false, + "description": "Renewal flag", + "default_value": true, "optional": true }, { - "name": "server_count", - "type": "TypeInt", - "description": "Server count", - "required": true - }, - { - "name": "ssl_type", + "name": "order_approver_email_address", "type": "TypeString", - "description": "ssl type", + "description": "Email address of the approver", "required": true }, { - "name": "certificate_signing_request", - "type": "TypeString", - "description": "certificate signing request info", - "required": true + "name": "technical_contact_same_as_org_address_flag", + "type": "TypeBool", + "description": "Technical contact same as org address flag", + "default_value": false, + "optional": true }, { - "name": "order_approver_email_address", - "type": "TypeString", - "description": "Email address of the approver", - "required": true + "name": "administrative_address_same_as_organization_flag", + "type": "TypeBool", + "description": "administrative address same as organization flag", + "default_value": false, + "optional": true }, { - "name": "billing_address_same_as_organization_flag", + "name": "billing_contact_same_as_technical_flag", "type": "TypeBool", - "description": "billing address same as organization flag", + "description": "billing contact", "default_value": false, "optional": true }, { - "name": "billing_contact", + "name": "administrative_contact", "type": "TypeSet", "optional": true, "elem": { - "billing_address": { - "name": "billing_address", + "admin_address": { + "name": "admin_address", "type": "TypeSet", "optional": true, "elem": { - "billing_address_line1": { - "name": "billing_address_line1", + "admin_address_line1": { + "name": "admin_address_line1", "type": "TypeString", "optional": true }, - "billing_address_line2": { - "name": "billing_address_line2", + "admin_address_line2": { + "name": "admin_address_line2", "type": "TypeString", "optional": true }, - "billing_city": { - "name": "billing_city", + "admin_city": { + "name": "admin_city", "type": "TypeString", + "default_value": "", "optional": true }, - "billing_country_code": { - "name": "billing_country_code", + "admin_country_code": { + "name": "admin_country_code", "type": "TypeString", "optional": true }, - "billing_postal_code": { - "name": "billing_postal_code", + "admin_postal_code": { + "name": "admin_postal_code", "type": "TypeString", "optional": true }, - "billing_state": { - "name": "billing_state", + "admin_state": { + "name": "admin_state", "type": "TypeString", "optional": true } } }, - "billing_email_address": { - "name": "billing_email_address", + "admin_email_address": { + "name": "admin_email_address", "type": "TypeString", "optional": true }, - "billing_fax_number": { - "name": "billing_fax_number", + "admin_fax_number": { + "name": "admin_fax_number", "type": "TypeString", "optional": true }, - "billing_first_name": { - "name": "billing_first_name", + "admin_first_name": { + "name": "admin_first_name", "type": "TypeString", "optional": true }, - "billing_last_name": { - "name": "billing_last_name", + "admin_last_name": { + "name": "admin_last_name", "type": "TypeString", "optional": true }, - "billing_organization_name": { - "name": "billing_organization_name", + "admin_organization_name": { + "name": "admin_organization_name", "type": "TypeString", "optional": true }, - "billing_phone_number": { - "name": "billing_phone_number", + "admin_phone_number": { + "name": "admin_phone_number", "type": "TypeString", "optional": true }, - "billing_title": { - "name": "billing_title", + "admin_title": { + "name": "admin_title", "type": "TypeString", "optional": true } @@ -147782,94 +152307,65 @@ "max_items": 1 }, { - "name": "server_type", - "type": "TypeString", - "description": "server type", - "required": true - }, - { - "name": "validity_months", + "name": "server_count", "type": "TypeInt", - "description": "vslidity of the ssl certificate in month", + "description": "Server count", "required": true }, { - "name": "renewal_flag", + "name": "administrative_contact_same_as_technical_flag", "type": "TypeBool", - "description": "Renewal flag", - "default_value": true, + "description": "Administrative contact same as technical flag", + "default_value": false, "optional": true + } + ], + "ibm_storage_block": [ + { + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true }, { - "name": "organization_information", + "name": "os_format_type", + "type": "TypeString", + "description": "OS formatr type", + "immutable": true, + "required": true + }, + { + "name": "allowed_virtual_guest_info", "type": "TypeSet", - "description": "Organization information", - "required": true, + "computed": true, "elem": { - "org_address": { - "name": "org_address", - "type": "TypeSet", - "description": "Organization address", - "required": true, - "elem": { - "org_address_line1": { - "name": "org_address_line1", - "type": "TypeString", - "required": true - }, - "org_address_line2": { - "name": "org_address_line2", - "type": "TypeString", - "optional": true - }, - "org_city": { - "name": "org_city", - "type": "TypeString", - "required": true - }, - "org_country_code": { - "name": "org_country_code", - "type": "TypeString", - "required": true - }, - "org_postal_code": { - "name": "org_postal_code", - "type": "TypeString", - "required": true - }, - "org_state": { - "name": "org_state", - "type": "TypeString", - "required": true - } - } - }, - "org_fax_number": { - "name": "org_fax_number", + "host_iqn": { + "name": "host_iqn", "type": "TypeString", - "optional": true + "computed": true }, - "org_organization_name": { - "name": "org_organization_name", + "id": { + "name": "id", + "type": "TypeInt", + "computed": true + }, + "password": { + "name": "password", "type": "TypeString", - "description": "Organization name", - "required": true + "computed": true }, - "org_phone_number": { - "name": "org_phone_number", + "username": { + "name": "username", "type": "TypeString", - "description": "Organization phone number", - "required": true + "computed": true } }, - "max_items": 1 - } - ], - "ibm_storage_block": [ + "deprecated": "Please use 'allowed_host_info' instead" + }, { - "name": "allowed_virtual_guest_ids", + "name": "allowed_hardware_ids", "type": "TypeSet", - "description": "List of allowed virtual guest IDs", + "description": "List of allowe hardware IDs", "optional": true, "computed": true, "elem": { @@ -147887,33 +152383,7 @@ } }, { - "name": "hourly_billing", - "type": "TypeBool", - "description": "Billing done hourly, if set to true", - "default_value": false, - "immutable": true, - "optional": true - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - }, - { - "name": "capacity", - "type": "TypeInt", - "description": "Storage block size", - "required": true - }, - { - "name": "lunid", - "type": "TypeString", - "description": "LUN Id", - "computed": true - }, - { - "name": "allowed_virtual_guest_info", + "name": "allowed_hardware_info", "type": "TypeSet", "computed": true, "elem": { @@ -147940,6 +152410,41 @@ }, "deprecated": "Please use 'allowed_host_info' instead" }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Storage block type", + "immutable": true, + "required": true + }, + { + "name": "capacity", + "type": "TypeInt", + "description": "Storage block size", + "required": true + }, + { + "name": "volumename", + "type": "TypeString", + "description": "Volume name", + "computed": true + }, + { + "name": "allowed_virtual_guest_ids", + "type": "TypeSet", + "description": "List of allowed virtual guest IDs", + "optional": true, + "computed": true, + "elem": { + "type": "TypeInt" + } + }, { "name": "allowed_host_info", "type": "TypeList", @@ -147977,17 +152482,10 @@ } }, { - "name": "type", + "name": "hostname", "type": "TypeString", - "description": "Storage block type", - "immutable": true, - "required": true - }, - { - "name": "iops", - "type": "TypeFloat", - "description": "IOPS value required", - "required": true + "description": "Hostname", + "computed": true }, { "name": "snapshot_capacity", @@ -147997,19 +152495,18 @@ "optional": true }, { - "name": "allowed_ip_addresses", - "type": "TypeSet", - "description": "Allowed IP addresses", - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "notes", + "type": "TypeString", + "description": "Additional note info", + "optional": true }, { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true + "name": "hourly_billing", + "type": "TypeBool", + "description": "Billing done hourly, if set to true", + "default_value": false, + "immutable": true, + "optional": true }, { "name": "datacenter", @@ -148019,70 +152516,54 @@ "required": true }, { - "name": "volumename", - "type": "TypeString", - "description": "Volume name", - "computed": true + "name": "iops", + "type": "TypeFloat", + "description": "IOPS value required", + "required": true }, { - "name": "hostname", + "name": "lunid", "type": "TypeString", - "description": "Hostname", + "description": "LUN Id", "computed": true }, { - "name": "os_format_type", - "type": "TypeString", - "description": "OS formatr type", - "immutable": true, + "name": "allowed_ip_addresses", + "type": "TypeSet", + "description": "Allowed IP addresses", + "optional": true, + "elem": { + "type": "TypeString" + } + } + ], + "ibm_storage_evault": [ + { + "name": "capacity", + "type": "TypeInt", + "description": "Capacity", "required": true }, { - "name": "notes", - "type": "TypeString", - "description": "Additional note info", + "name": "virtual_instance_id", + "type": "TypeInt", + "description": "Virtual instance ID", + "immutable": true, "optional": true }, { - "name": "allowed_hardware_ids", - "type": "TypeSet", - "description": "List of allowe hardware IDs", - "optional": true, - "computed": true, - "elem": { - "type": "TypeInt" - } + "name": "hardware_instance_id", + "type": "TypeInt", + "description": "Hardware instance ID", + "immutable": true, + "optional": true }, { - "name": "allowed_hardware_info", - "type": "TypeSet", - "computed": true, - "elem": { - "host_iqn": { - "name": "host_iqn", - "type": "TypeString", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeInt", - "computed": true - }, - "password": { - "name": "password", - "type": "TypeString", - "computed": true - }, - "username": { - "name": "username", - "type": "TypeString", - "computed": true - } - }, - "deprecated": "Please use 'allowed_host_info' instead" - } - ], - "ibm_storage_evault": [ + "name": "username", + "type": "TypeString", + "description": "user name", + "computed": true + }, { "name": "password", "type": "TypeString", @@ -148112,40 +152593,19 @@ "description": "Datacenter name", "immutable": true, "required": true - }, + } + ], + "ibm_storage_file": [ { "name": "capacity", "type": "TypeInt", - "description": "Capacity", + "description": "Storage capacity", "required": true }, { - "name": "virtual_instance_id", - "type": "TypeInt", - "description": "Virtual instance ID", - "immutable": true, - "optional": true - }, - { - "name": "hardware_instance_id", - "type": "TypeInt", - "description": "Hardware instance ID", - "immutable": true, - "optional": true - }, - { - "name": "username", - "type": "TypeString", - "description": "user name", - "computed": true - } - ], - "ibm_storage_file": [ - { - "name": "type", - "type": "TypeString", - "description": "Storage type", - "immutable": true, + "name": "iops", + "type": "TypeFloat", + "description": "iops rate", "required": true }, { @@ -148154,15 +152614,6 @@ "description": "Storage volume name", "computed": true }, - { - "name": "allowed_subnets", - "type": "TypeSet", - "description": "Allowed network subnets", - "optional": true, - "elem": { - "type": "TypeString" - } - }, { "name": "notes", "type": "TypeString", @@ -148212,22 +152663,6 @@ }, "max_items": 3 }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "Tags set for the storage volume", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - }, { "name": "hourly_billing", "type": "TypeBool", @@ -148237,24 +152672,29 @@ "optional": true }, { - "name": "datacenter", + "name": "resource_name", "type": "TypeString", - "description": "Datacenter name", - "immutable": true, - "required": true + "description": "The name of the resource", + "computed": true }, { - "name": "iops", - "type": "TypeFloat", - "description": "iops rate", - "required": true + "name": "resource_status", + "type": "TypeString", + "description": "The status of the resource", + "computed": true }, { - "name": "snapshot_capacity", - "type": "TypeInt", - "description": "Snapshot capacity", + "name": "type", + "type": "TypeString", + "description": "Storage type", "immutable": true, - "optional": true + "required": true + }, + { + "name": "hostname", + "type": "TypeString", + "description": "Hostname", + "computed": true }, { "name": "allowed_virtual_guest_ids", @@ -148276,6 +152716,15 @@ "type": "TypeInt" } }, + { + "name": "allowed_ip_addresses", + "type": "TypeSet", + "description": "Allowed range of IP addresses", + "optional": true, + "elem": { + "type": "TypeString" + } + }, { "name": "mountpoint", "type": "TypeString", @@ -148283,66 +152732,52 @@ "computed": true }, { - "name": "capacity", - "type": "TypeInt", - "description": "Storage capacity", + "name": "datacenter", + "type": "TypeString", + "description": "Datacenter name", + "immutable": true, "required": true }, { - "name": "hostname", - "type": "TypeString", - "description": "Hostname", - "computed": true + "name": "snapshot_capacity", + "type": "TypeInt", + "description": "Snapshot capacity", + "immutable": true, + "optional": true }, { - "name": "allowed_ip_addresses", + "name": "allowed_subnets", "type": "TypeSet", - "description": "Allowed range of IP addresses", + "description": "Allowed network subnets", "optional": true, "elem": { "type": "TypeString" } }, { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true + "name": "tags", + "type": "TypeSet", + "description": "Tags set for the storage volume", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } }, { - "name": "resource_status", + "name": "resource_controller_url", "type": "TypeString", - "description": "The status of the resource", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true } ], "ibm_subnet": [ { - "name": "endpoint_ip", - "type": "TypeString", - "description": "endpoint IP", - "immutable": true, - "optional": true - }, - { - "name": "subnet_cidr", - "type": "TypeString", - "description": "CIDR notation for the subnet", - "computed": true - }, - { - "name": "notes", + "name": "type", "type": "TypeString", - "description": "Notes", - "optional": true - }, - { - "name": "private", - "type": "TypeBool", - "description": "private subnet", - "default_value": false, + "description": "subnet type", "immutable": true, - "optional": true + "required": true }, { "name": "ip_version", @@ -148352,13 +152787,6 @@ "immutable": true, "optional": true }, - { - "name": "capacity", - "type": "TypeInt", - "description": "number of ip addresses in the subnet", - "immutable": true, - "required": true - }, { "name": "vlan_id", "type": "TypeInt", @@ -148367,6 +152795,12 @@ "optional": true, "computed": true }, + { + "name": "subnet_cidr", + "type": "TypeString", + "description": "CIDR notation for the subnet", + "computed": true + }, { "name": "tags", "type": "TypeSet", @@ -148378,30 +152812,56 @@ } }, { - "name": "type", + "name": "private", + "type": "TypeBool", + "description": "private subnet", + "default_value": false, + "immutable": true, + "optional": true + }, + { + "name": "endpoint_ip", "type": "TypeString", - "description": "subnet type", + "description": "endpoint IP", + "immutable": true, + "optional": true + }, + { + "name": "notes", + "type": "TypeString", + "description": "Notes", + "optional": true + }, + { + "name": "capacity", + "type": "TypeInt", + "description": "number of ip addresses in the subnet", "immutable": true, "required": true } ], "ibm_tg_connection": [ { - "name": "created_at", + "name": "network_id", "type": "TypeString", - "description": "The date and time that this connection was created", + "description": "The ID of the network being connected via this connection. This field is required for some types, such as 'vpc' or 'directlink' or 'power_virtual_server'. The value of this is the CRN of the VPC or direct link or power_virtual_server gateway to be connected. This field is required to be unspecified for network type 'classic', 'gre_tunnel', and 'unbound_gre_tunnel'.", + "immutable": true, + "optional": true, "computed": true }, { - "name": "status", + "name": "network_account_id", "type": "TypeString", - "description": "What is the current configuration state of this connection. Possible values: [attached,failed,pending,deleting,detaching,detached]", + "description": "The ID of the account which owns the network that is being connected. Generally only used if the network is in a different account than the gateway. This field is required for type 'unbound_gre_tunnel' when the associated_network_type is 'classic' and the GRE tunnel is in a different account than the gateway.", + "immutable": true, + "optional": true, "computed": true }, { - "name": "base_network_type", + "name": "local_gateway_ip", "type": "TypeString", - "description": "The type of network the unbound gre tunnel is targeting. This field is required for network type 'unbound_gre_tunnel'.", + "description": "The local gateway IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.", + "immutable": true, "optional": true, "computed": true }, @@ -148414,36 +152874,27 @@ "computed": true }, { - "name": "remote_gateway_ip", - "type": "TypeString", - "description": "The remote gateway IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.", + "name": "remote_bgp_asn", + "type": "TypeInt", + "description": "The remote network BGP ASN. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.", "immutable": true, "optional": true, "computed": true }, { - "name": "network_account_id", + "name": "remote_gateway_ip", "type": "TypeString", - "description": "The ID of the account which owns the network that is being connected. Generally only used if the network is in a different account than the gateway. This field is required for type 'unbound_gre_tunnel' when the associated_network_type is 'classic' and the GRE tunnel is in a different account than the gateway.", + "description": "The remote gateway IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.", "immutable": true, "optional": true, "computed": true }, { - "name": "remote_tunnel_ip", + "name": "related_crn", "type": "TypeString", - "description": "The remote tunnel IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.", - "immutable": true, - "optional": true, + "description": "The crn of the transit gateway", "computed": true }, - { - "name": "gateway", - "type": "TypeString", - "description": "The Transit Gateway identifier", - "immutable": true, - "required": true - }, { "name": "name", "type": "TypeString", @@ -148454,47 +152905,38 @@ "optional": true }, { - "name": "network_id", + "name": "remote_tunnel_ip", "type": "TypeString", - "description": "The ID of the network being connected via this connection. This field is required for some types, such as 'vpc' or 'directlink' or 'power_virtual_server'. The value of this is the CRN of the VPC or direct link or power_virtual_server gateway to be connected. This field is required to be unspecified for network type 'classic', 'gre_tunnel', and 'unbound_gre_tunnel'.", + "description": "The remote tunnel IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.", "immutable": true, "optional": true, "computed": true }, { - "name": "related_crn", + "name": "updated_at", "type": "TypeString", - "description": "The crn of the transit gateway", + "description": "The date and time that this connection was last updated", "computed": true }, { - "name": "base_connection_id", + "name": "gateway", "type": "TypeString", - "description": "The ID of a network_type 'classic' connection a tunnel is configured over. This field only applies to network type 'gre_tunnel' connections.", + "description": "The Transit Gateway identifier", "immutable": true, - "optional": true, - "computed": true + "required": true }, { - "name": "local_gateway_ip", + "name": "base_connection_id", "type": "TypeString", - "description": "The local gateway IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "remote_bgp_asn", - "type": "TypeInt", - "description": "The remote network BGP ASN. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.", + "description": "The ID of a network_type 'classic' connection a tunnel is configured over. This field only applies to network type 'gre_tunnel' connections.", "immutable": true, "optional": true, "computed": true }, { - "name": "updated_at", + "name": "status", "type": "TypeString", - "description": "The date and time that this connection was last updated", + "description": "What is the current configuration state of this connection. Possible values: [attached,failed,pending,deleting,detaching,detached]", "computed": true }, { @@ -148517,6 +152959,13 @@ "required": true, "options": "classic, directlink, vpc, gre_tunnel, unbound_gre_tunnel, power_virtual_server" }, + { + "name": "base_network_type", + "type": "TypeString", + "description": "The type of network the unbound gre tunnel is targeting. This field is required for network type 'unbound_gre_tunnel'.", + "optional": true, + "computed": true + }, { "name": "zone", "type": "TypeString", @@ -148524,17 +152973,15 @@ "immutable": true, "optional": true, "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that this connection was created", + "computed": true } ], "ibm_tg_connection_action": [ - { - "name": "action", - "type": "TypeString", - "description": "The Transit Gateway Connection cross account action", - "immutable": true, - "required": true, - "options": "approve, reject" - }, { "name": "gateway", "type": "TypeString", @@ -148548,15 +152995,35 @@ "description": "The Transit Gateway Connection identifier", "immutable": true, "required": true + }, + { + "name": "action", + "type": "TypeString", + "description": "The Transit Gateway Connection cross account action", + "immutable": true, + "required": true, + "options": "approve, reject" } ], "ibm_tg_connection_prefix_filter": [ + { + "name": "ge", + "type": "TypeInt", + "description": "IP Prefix GE", + "optional": true + }, { "name": "prefix", "type": "TypeString", "description": "IP Prefix", "required": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The date and time that this prefix filter was last updated", + "computed": true + }, { "name": "created_at", "type": "TypeString", @@ -148564,16 +153031,16 @@ "computed": true }, { - "name": "ge", - "type": "TypeInt", - "description": "IP Prefix GE", - "optional": true + "name": "connection_id", + "type": "TypeString", + "description": "The Transit Gateway Connection identifier", + "required": true }, { - "name": "le", - "type": "TypeInt", - "description": "IP Prefix LE", - "optional": true + "name": "filter_id", + "type": "TypeString", + "description": "The Transit Gateway Connection Prefix Filter identifier", + "computed": true }, { "name": "action", @@ -148589,10 +153056,10 @@ "optional": true }, { - "name": "updated_at", - "type": "TypeString", - "description": "The date and time that this prefix filter was last updated", - "computed": true + "name": "le", + "type": "TypeInt", + "description": "IP Prefix LE", + "optional": true }, { "name": "gateway", @@ -148600,21 +153067,21 @@ "description": "The Transit Gateway identifier", "immutable": true, "required": true - }, + } + ], + "ibm_tg_gateway": [ { - "name": "connection_id", + "name": "resource_controller_url", "type": "TypeString", - "description": "The Transit Gateway Connection identifier", - "required": true + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true }, { - "name": "filter_id", + "name": "resource_status", "type": "TypeString", - "description": "The Transit Gateway Connection Prefix Filter identifier", + "description": "The status of the resource", "computed": true - } - ], - "ibm_tg_gateway": [ + }, { "name": "created_at", "type": "TypeString", @@ -148627,6 +153094,25 @@ "description": "The updation time of the resource", "computed": true }, + { + "name": "status", + "type": "TypeString", + "description": "The Status of the resource", + "computed": true + }, + { + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true + }, + { + "name": "global", + "type": "TypeBool", + "description": "Allow global routing for a Transit Gateway. If unspecified, the default value is false", + "default_value": false, + "optional": true + }, { "name": "tags", "type": "TypeSet", @@ -148640,13 +153126,6 @@ "type": "TypeString" } }, - { - "name": "resource_group", - "type": "TypeString", - "cloud_data_type": "resource_group", - "optional": true, - "computed": true - }, { "name": "crn", "type": "TypeString", @@ -148655,15 +153134,18 @@ "computed": true }, { - "name": "resource_crn", + "name": "name", "type": "TypeString", - "description": "The crn of the resource", - "computed": true + "description": "Name Transit Gateway Services", + "required": true, + "options": "^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$}", + "min_length": 1, + "max_length": 63 }, { - "name": "resource_status", + "name": "resource_crn", "type": "TypeString", - "description": "The status of the resource", + "description": "The crn of the resource", "computed": true }, { @@ -148675,47 +153157,56 @@ "required": true }, { - "name": "name", + "name": "resource_group", "type": "TypeString", - "description": "Name Transit Gateway Services", - "required": true, - "options": "^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$}", - "min_length": 1, - "max_length": 63 - }, - { - "name": "global", - "type": "TypeBool", - "description": "Allow global routing for a Transit Gateway. If unspecified, the default value is false", - "default_value": false, - "optional": true + "cloud_data_type": "resource_group", + "optional": true, + "computed": true }, { "name": "resource_group_name", "type": "TypeString", "description": "The resource group name in which resource is provisioned", "computed": true - }, + } + ], + "ibm_tg_route_report": [ { - "name": "status", + "name": "created_at", "type": "TypeString", - "description": "The Status of the resource", "computed": true }, { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true + "name": "overlapping_routes", + "type": "TypeList", + "description": "Collection of transit gateway overlapping routes", + "computed": true, + "elem": { + "routes": { + "name": "routes", + "type": "TypeList", + "description": "Collection of transit gateway overlapping route's details", + "computed": true, + "elem": { + "connection_id": { + "name": "connection_id", + "type": "TypeString", + "computed": true + }, + "prefix": { + "name": "prefix", + "type": "TypeString", + "computed": true + } + } + } + } }, { - "name": "resource_name", + "name": "status", "type": "TypeString", - "description": "The name of the resource", "computed": true - } - ], - "ibm_tg_route_report": [ + }, { "name": "updated_at", "type": "TypeString", @@ -148797,44 +153288,8 @@ "computed": true } } - }, - { - "name": "created_at", - "type": "TypeString", - "computed": true - }, - { - "name": "overlapping_routes", - "type": "TypeList", - "description": "Collection of transit gateway overlapping routes", - "computed": true, - "elem": { - "routes": { - "name": "routes", - "type": "TypeList", - "description": "Collection of transit gateway overlapping route's details", - "computed": true, - "elem": { - "connection_id": { - "name": "connection_id", - "type": "TypeString", - "computed": true - }, - "prefix": { - "name": "prefix", - "type": "TypeString", - "computed": true - } - } - } - } - }, - { - "name": "status", - "type": "TypeString", - "computed": true } ] }, - "Version": "1.58.0" + "Version": "1.58.1" } \ No newline at end of file From 4c1ae5e4057b9a0d8f50062f7d2da5e4b30418c4 Mon Sep 17 00:00:00 2001 From: hkantare Date: Wed, 25 Oct 2023 10:10:43 +0530 Subject: [PATCH 08/58] update CHANGELOG --- CHANGELOG.md | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 35deeb797a..39d6c38d16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,69 @@ +# 1.59.0-beta0 (Oct 25, 2023) + +Features +* Support Usage Reports + - **Datasources** + - ibm_billing_snapshot_list + - **Resources** + - ibm_billing_report_snapshot + +* Support Power Instance + - **Datasources** + - ibm_pi_workspace + - ibm_pi_workspaces + - ibm_pi_datacenter + - ibm_pi_datacenters + +* Support Schematics Agents + - **Datasources** + - ibm_schematics_policies + - ibm_schematics_policy + - ibm_schematics_agents + - ibm_schematics_agent + - ibm_schematics_agent_prs + - ibm_schematics_agent_deploy + - ibm_schematics_agent_health + - **Resources** + - ibm_schematics_policy + - ibm_schematics_agent + - ibm_schematics_agent_prs + - ibm_schematics_agent_deploy + - ibm_schematics_agent_health + +* Support Event Notification + - **Datasources** + - ibm_en_destination_custom_email + - ibm_en_subscription_custom_email + - **Resources** + - ibm_en_destination_custom_email + - ibm_en_subscription_custom_email + + +Enhancements +* Get secret by name ([4825](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4825)) +* VPN for VPC: Customer should be able to recover their gateway or server for unhealthy status ([4858](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4858)) +* support for tf 1.5 in schematics workspace ([4853](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4853)) +* Deprecated match_resource_types and Intoduced match_resource_type ([4863](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4863)) +* Enterprise BaaS feature ([4845](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4845)) +* sarama golang library update ([4810](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4810)) +* Adding NUMA and Profile Status to instance, instance profile and dedicated hosts ([4871](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4871)) +* update terraform as per latest eventstreams go sdk release 1.4.0 ([4862](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4862)) +* Add path to invoke update without determining changed CRN data, add validator for name of secrets ([4859](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4859)) +* Feature: ReplicationEnabledField for Storage Pool ([4875](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4875)) + +Bug Fixes +* Fix handling of bundle_certs in Secrets Manager public cert ([4854](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4854)) +* add description in docs for Key Protect ([4846](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4846)) +* Update iam_service_policy.html.markdown ([4836](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4836)) +* v1.58.0 ibm_container_cluster_config: new endpoint_type returning self-signed private endpoint ([4861](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4861)) + # 1.58.1 (Oct 04, 2023) Bug Fixes * Timing issue while destroying Key Protect resources ([4837](https://github.com/IBM-Cloud/terraform-provider-ibm/issues/4837)) * ibm_cos_bucket data lookup is throwing NoSuchWebsiteConfiguration in new version 1.58.0 ([4838](https://github.com/IBM-Cloud/terraform-provider-ibm/issues/4838)) * Metrics router and atracker: Updated platform-services-go-sdk to fetch Madrid endpoint ([4830](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4830)) + # 1.58.0 (Sep 29, 2023) Features From 6090ebe7fed6646f17dddb1849510d28b3fdbf19 Mon Sep 17 00:00:00 2001 From: hkantare Date: Wed, 25 Oct 2023 10:11:55 +0530 Subject: [PATCH 09/58] Bump up version to 1.59.0-beta0 --- version/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/version.go b/version/version.go index 3fc06faa13..5efc7c9eac 100644 --- a/version/version.go +++ b/version/version.go @@ -5,7 +5,7 @@ import ( ) // Version is the current provider main version -const Version = "1.58.1" +const Version = "1.59.0-beta0" // GitCommit is the git commit that was compiled. This will be filled in by the compiler. var GitCommit string From c66b8630b2a538f43e2a758f3269eb2197e401d9 Mon Sep 17 00:00:00 2001 From: Omar Ibrahim <97538078+omaraibrahim@users.noreply.github.com> Date: Wed, 25 Oct 2023 12:30:09 -0400 Subject: [PATCH 10/58] Remove deprecated scaling attributes (#4481) --- examples/ibm-database/main.tf | 11 +- .../database/data_source_ibm_database.go | 14 - .../database/data_source_ibm_database_test.go | 4 +- ibm/service/database/resource_ibm_database.go | 318 +------------- .../resource_ibm_database_cassandra_test.go | 127 +++--- .../resource_ibm_database_edb_test.go | 51 ++- ...esource_ibm_database_elasticsearch_test.go | 122 +++--- .../resource_ibm_database_etcd_test.go | 47 +- ...ce_ibm_database_mongodb_enterprise_test.go | 55 ++- ...urce_ibm_database_mongodb_sharding_test.go | 49 ++- .../resource_ibm_database_mongodb_test.go | 47 +- .../resource_ibm_database_mysql_test.go | 34 +- .../resource_ibm_database_postgresql_test.go | 403 ++---------------- .../resource_ibm_database_rabbitmq_test.go | 47 +- .../resource_ibm_database_redis_test.go | 47 +- website/docs/r/database.html.markdown | 49 --- 16 files changed, 448 insertions(+), 977 deletions(-) diff --git a/examples/ibm-database/main.tf b/examples/ibm-database/main.tf index 048f47a70d..1f7f6d9c8d 100644 --- a/examples/ibm-database/main.tf +++ b/examples/ibm-database/main.tf @@ -36,8 +36,15 @@ resource "ibm_database" "test_acc" { tags = ["tag1", "tag2"] // adminpassword = "password12" - members_memory_allocation_mb = 3072 - members_disk_allocation_mb = 20480 + group { + group_id = "member" + memory { + allocation_mb = 2048 + } + disk { + allocation_mb = 10240 + } + } users { name = "user123" diff --git a/ibm/service/database/data_source_ibm_database.go b/ibm/service/database/data_source_ibm_database.go index 0b944a9949..be79a83bf2 100644 --- a/ibm/service/database/data_source_ibm_database.go +++ b/ibm/service/database/data_source_ibm_database.go @@ -89,18 +89,6 @@ func DataSourceIBMDatabaseInstance() *schema.Resource { Type: schema.TypeString, Computed: true, }, - "members_memory_allocation_mb": { - Description: "Memory allocation required for cluster", - Type: schema.TypeInt, - Computed: true, - Deprecated: "This field is deprecated please use groups", - }, - "members_disk_allocation_mb": { - Description: "Disk allocation required for cluster", - Type: schema.TypeInt, - Computed: true, - Deprecated: "This field is deprecated please use groups", - }, "platform_options": { Description: "Platform-specific options for this deployment.r", Type: schema.TypeSet, @@ -668,8 +656,6 @@ func dataSourceIBMDatabaseInstanceRead(d *schema.ResourceData, meta interface{}) return fmt.Errorf("[ERROR] Error getting database groups: %s", err) } d.Set("groups", flex.FlattenIcdGroups(groupList)) - d.Set("members_memory_allocation_mb", groupList.Groups[0].Memory.AllocationMb) - d.Set("members_disk_allocation_mb", groupList.Groups[0].Disk.AllocationMb) getAutoscalingConditionsOptions := &clouddatabasesv5.GetAutoscalingConditionsOptions{ ID: &instance.ID, diff --git a/ibm/service/database/data_source_ibm_database_test.go b/ibm/service/database/data_source_ibm_database_test.go index 67c92961e7..500ff603c7 100644 --- a/ibm/service/database/data_source_ibm_database_test.go +++ b/ibm/service/database/data_source_ibm_database_test.go @@ -36,8 +36,8 @@ func TestAccIBMDatabaseDataSource_basic(t *testing.T) { resource.TestCheckResourceAttr(dataName, "plan", "standard"), resource.TestCheckResourceAttr(dataName, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(dataName, "adminuser", "admin"), - resource.TestCheckResourceAttr(dataName, "members_memory_allocation_mb", "2048"), - resource.TestCheckResourceAttr(dataName, "members_disk_allocation_mb", "10240"), + resource.TestCheckResourceAttr(dataName, "groups.0.memory.0.allocation_mb", "2048"), + resource.TestCheckResourceAttr(dataName, "groups.0.disk.0.allocation_mb", "10240"), resource.TestCheckResourceAttr(dataName, "allowlist.#", "0"), resource.TestCheckResourceAttr(dataName, "tags.#", "1"), ), diff --git a/ibm/service/database/resource_ibm_database.go b/ibm/service/database/resource_ibm_database.go index 19479695a9..d128f96c87 100644 --- a/ibm/service/database/resource_ibm_database.go +++ b/ibm/service/database/resource_ibm_database.go @@ -187,74 +187,6 @@ func ResourceIBMDatabaseInstance() *schema.Resource { Computed: true, ForceNew: true, }, - "members_memory_allocation_mb": { - Description: "Memory allocation required for cluster", - Type: schema.TypeInt, - Optional: true, - Computed: true, - ConflictsWith: []string{"node_count", "node_memory_allocation_mb", "node_disk_allocation_mb", "node_cpu_allocation_count", "group"}, - Deprecated: "use group instead", - }, - "members_disk_allocation_mb": { - Description: "Disk allocation required for cluster", - Type: schema.TypeInt, - Optional: true, - Computed: true, - ConflictsWith: []string{"node_count", "node_memory_allocation_mb", "node_disk_allocation_mb", "node_cpu_allocation_count", "group"}, - Deprecated: "use group instead", - }, - "members_cpu_allocation_count": { - Description: "CPU allocation required for cluster", - Type: schema.TypeInt, - Optional: true, - Computed: true, - ConflictsWith: []string{"node_count", "node_memory_allocation_mb", "node_disk_allocation_mb", "node_cpu_allocation_count", "group"}, - Deprecated: "use group instead", - }, - "node_count": { - Description: "Total number of nodes in the cluster", - Type: schema.TypeInt, - Optional: true, - Computed: true, - ConflictsWith: []string{"members_memory_allocation_mb", "members_disk_allocation_mb", "members_cpu_allocation_count", "group"}, - Deprecated: "use group instead", - }, - "node_memory_allocation_mb": { - Description: "Memory allocation per node", - Type: schema.TypeInt, - Optional: true, - Computed: true, - ConflictsWith: []string{"members_memory_allocation_mb", "members_disk_allocation_mb", "members_cpu_allocation_count", "group"}, - Deprecated: "use group instead", - }, - "node_disk_allocation_mb": { - Description: "Disk allocation per node", - Type: schema.TypeInt, - Optional: true, - Computed: true, - ConflictsWith: []string{"members_memory_allocation_mb", "members_disk_allocation_mb", "members_cpu_allocation_count", "group"}, - Deprecated: "use group instead", - }, - "node_cpu_allocation_count": { - Description: "CPU allocation per node", - Type: schema.TypeInt, - Optional: true, - Computed: true, - ConflictsWith: []string{"members_memory_allocation_mb", "members_disk_allocation_mb", "members_cpu_allocation_count", "group"}, - Deprecated: "use group instead", - }, - "plan_validation": { - Description: "For elasticsearch and postgres perform database parameter validation during the plan phase. Otherwise, database parameter validation happens in apply phase.", - Type: schema.TypeBool, - Optional: true, - Default: true, - DiffSuppressFunc: func(k, o, n string, d *schema.ResourceData) bool { - if o == "" { - return true - } - return false - }, - }, "service_endpoints": { Description: "Types of the service endpoints. Possible values are 'public', 'private', 'public-and-private'.", Type: schema.TypeString, @@ -472,9 +404,8 @@ func ResourceIBMDatabaseInstance() *schema.Resource { }, }, "group": { - Type: schema.TypeSet, - Optional: true, - ConflictsWith: []string{"members_memory_allocation_mb", "members_disk_allocation_mb", "members_cpu_allocation_count", "node_memory_allocation_mb", "node_disk_allocation_mb", "node_cpu_allocation_count", "node_count"}, + Type: schema.TypeSet, + Optional: true, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "group_id": { @@ -999,28 +930,6 @@ func getDefaultScalingGroups(_service string, _plan string, meta interface{}) (g return getDefaultScalingGroupsResponse.Groups, nil } -func getDatabaseServiceDefaults(service string, meta interface{}) (*icdv4.Group, error) { - icdClient, err := meta.(conns.ClientSession).ICDAPI() - if err != nil { - return nil, fmt.Errorf("[ERROR] Error getting database client settings: %s", err) - } - - var dbType string - if service == "databases-for-cassandra" { - dbType = "datastax_enterprise_full" - } else if strings.HasPrefix(service, "messages-for-") { - dbType = service[len("messages-for-"):] - } else { - dbType = service[len("databases-for-"):] - } - - groupDefaults, err := icdClient.Groups().GetDefaultGroups(dbType) - if err != nil { - return nil, fmt.Errorf("ICD API is down for plan validation, set plan_validation=false %s", err) - } - return &groupDefaults.Groups[0], nil -} - func getInitialNodeCount(service string, plan string, meta interface{}) (int, error) { groups, err := getDefaultScalingGroups(service, plan, meta) @@ -1110,45 +1019,6 @@ type CountLimit struct { CanScaleDown bool } -func checkCountValue(name string, limits CountLimit, divider int, diff *schema.ResourceDiff) error { - groupLimit := GroupResource{ - Units: limits.Units, - Allocation: limits.AllocationCount, - Minimum: limits.MinimumCount, - Maximum: limits.MaximumCount, - StepSize: limits.StepSizeCount, - IsAdjustable: limits.IsAdjustable, - IsOptional: limits.IsOptional, - CanScaleDown: limits.CanScaleDown, - } - return checkGroupValue(name, groupLimit, divider, diff) -} - -type MbLimit struct { - Units string - AllocationMb int - MinimumMb int - MaximumMb int - StepSizeMb int - IsAdjustable bool - IsOptional bool - CanScaleDown bool -} - -func checkMbValue(name string, limits MbLimit, divider int, diff *schema.ResourceDiff) error { - groupLimit := GroupResource{ - Units: limits.Units, - Allocation: limits.AllocationMb, - Minimum: limits.MinimumMb, - Maximum: limits.MaximumMb, - StepSize: limits.StepSizeMb, - IsAdjustable: limits.IsAdjustable, - IsOptional: limits.IsOptional, - CanScaleDown: limits.CanScaleDown, - } - return checkGroupValue(name, groupLimit, divider, diff) -} - func resourceIBMDatabaseInstanceDiff(_ context.Context, diff *schema.ResourceDiff, meta interface{}) (err error) { err = flex.ResourceTagsCustomizeDiff(diff) if err != nil { @@ -1156,67 +1026,6 @@ func resourceIBMDatabaseInstanceDiff(_ context.Context, diff *schema.ResourceDif } service := diff.Get("service").(string) - planPhase := diff.Get("plan_validation").(bool) - - if service == "databases-for-postgresql" || - service == "databases-for-elasticsearch" || - service == "databases-for-cassandra" || - service == "databases-for-enterprisedb" { - if planPhase { - groupDefaults, err := getDatabaseServiceDefaults(service, meta) - if err != nil { - return err - } - - err = checkMbValue("members_memory_allocation_mb", MbLimit(groupDefaults.Memory), 1, diff) - if err != nil { - return err - } - - err = checkMbValue("members_disk_allocation_mb", MbLimit(groupDefaults.Disk), 1, diff) - if err != nil { - return err - } - - err = checkCountValue("members_cpu_allocation_count", CountLimit(groupDefaults.Cpu), 1, diff) - if err != nil { - return err - } - - err = checkCountValue("node_count", CountLimit(groupDefaults.Members), 1, diff) - if err != nil { - return err - } - - var divider = groupDefaults.Members.MinimumCount - err = checkMbValue("node_memory_allocation_mb", MbLimit(groupDefaults.Memory), divider, diff) - if err != nil { - return err - } - - err = checkMbValue("node_disk_allocation_mb", MbLimit(groupDefaults.Disk), divider, diff) - if err != nil { - return err - } - - if diff.HasChange("node_cpu_allocation_count") { - err = checkCountValue("node_cpu_allocation_count", CountLimit(groupDefaults.Cpu), divider, diff) - if err != nil { - return err - } - } else if diff.HasChange("node_count") { - if _, ok := diff.GetOk("node_cpu_allocation_count"); !ok { - _, newSetting := diff.GetChange("node_count") - min := groupDefaults.Cpu.MinimumCount / divider - if newSetting != min { - return fmt.Errorf("node_cpu_allocation_count must be set when node_count is greater then the minimum %d", min) - } - } - } - } - } else if diff.HasChange("node_count") || diff.HasChange("node_memory_allocation_mb") || diff.HasChange("node_disk_allocation_mb") || diff.HasChange("node_cpu_allocation_count") { - return fmt.Errorf("[ERROR] node_count, node_memory_allocation_mb, node_disk_allocation_mb, node_cpu_allocation_count only supported for postgresql, elasticsearch and cassandra") - } _, logicalReplicationSet := diff.GetOk("logical_replication_slot") @@ -1373,24 +1182,6 @@ func resourceIBMDatabaseInstanceCreate(context context.Context, d *schema.Resour } } } - if memory, ok := d.GetOk("members_memory_allocation_mb"); ok { - params.Memory = memory.(int) - } - if memory, ok := d.GetOk("node_memory_allocation_mb"); ok { - params.Memory = memory.(int) * initialNodeCount - } - if disk, ok := d.GetOk("members_disk_allocation_mb"); ok { - params.Disk = disk.(int) - } - if disk, ok := d.GetOk("node_disk_allocation_mb"); ok { - params.Disk = disk.(int) * initialNodeCount - } - if cpu, ok := d.GetOk("members_cpu_allocation_count"); ok { - params.CPU = cpu.(int) - } - if cpu, ok := d.GetOk("node_cpu_allocation_count"); ok { - params.CPU = cpu.(int) * initialNodeCount - } if version, ok := d.GetOk("version"); ok { params.Version = version.(string) } @@ -1451,20 +1242,6 @@ func resourceIBMDatabaseInstanceCreate(context context.Context, d *schema.Resour return diag.FromErr(err) } - if node_count, ok := d.GetOk("node_count"); ok { - if initialNodeCount != node_count { - icdClient, err := meta.(conns.ClientSession).ICDAPI() - if err != nil { - return diag.FromErr(fmt.Errorf("[ERROR] Error getting database client settings: %s", err)) - } - - err = horizontalScale(d, meta, icdClient) - if err != nil { - return diag.FromErr(err) - } - } - } - if group, ok := d.GetOk("group"); ok { groups := expandGroups(group.(*schema.Set).List()) groupsResponse, err := getGroups(*instance.ID, meta) @@ -1863,16 +1640,6 @@ func resourceIBMDatabaseInstanceRead(context context.Context, d *schema.Resource } d.Set("groups", flex.FlattenIcdGroups(groupList)) - d.Set("node_count", groupList.Groups[0].Members.AllocationCount) - - d.Set("members_memory_allocation_mb", groupList.Groups[0].Memory.AllocationMb) - d.Set("node_memory_allocation_mb", groupList.Groups[0].Memory.AllocationMb/groupList.Groups[0].Members.AllocationCount) - - d.Set("members_disk_allocation_mb", groupList.Groups[0].Disk.AllocationMb) - d.Set("node_disk_allocation_mb", groupList.Groups[0].Disk.AllocationMb/groupList.Groups[0].Members.AllocationCount) - - d.Set("members_cpu_allocation_count", groupList.Groups[0].Cpu.AllocationCount) - d.Set("node_cpu_allocation_count", groupList.Groups[0].Cpu.AllocationCount/groupList.Groups[0].Members.AllocationCount) getAutoscalingConditionsOptions := &clouddatabasesv5.GetAutoscalingConditionsOptions{ ID: instance.ID, @@ -1985,19 +1752,11 @@ func resourceIBMDatabaseInstanceUpdate(context context.Context, d *schema.Resour return diag.FromErr(fmt.Errorf("[ERROR] Error getting database client settings: %s", err)) } - icdClient, err := meta.(conns.ClientSession).ICDAPI() if err != nil { return diag.FromErr(fmt.Errorf("[ERROR] Error getting database client settings: %s", err)) } icdId := flex.EscapeUrlParm(instanceID) - if d.HasChange("node_count") { - err = horizontalScale(d, meta, icdClient) - if err != nil { - return diag.FromErr(err) - } - } - if d.HasChange("configuration") { if config, ok := d.GetOk("configuration"); ok { var rawConfig map[string]json.RawMessage @@ -2034,54 +1793,6 @@ func resourceIBMDatabaseInstanceUpdate(context context.Context, d *schema.Resour } } - if d.HasChange("members_memory_allocation_mb") || d.HasChange("members_disk_allocation_mb") || d.HasChange("members_cpu_allocation_count") || d.HasChange("node_memory_allocation_mb") || d.HasChange("node_disk_allocation_mb") || d.HasChange("node_cpu_allocation_count") { - params := icdv4.GroupReq{} - if d.HasChange("members_memory_allocation_mb") { - memory := d.Get("members_memory_allocation_mb").(int) - memoryReq := icdv4.MemoryReq{AllocationMb: memory} - params.GroupBdy.Memory = &memoryReq - } - if d.HasChange("node_memory_allocation_mb") || d.HasChange("node_count") { - memory := d.Get("node_memory_allocation_mb").(int) - count := d.Get("node_count").(int) - memoryReq := icdv4.MemoryReq{AllocationMb: memory * count} - params.GroupBdy.Memory = &memoryReq - } - if d.HasChange("members_disk_allocation_mb") { - disk := d.Get("members_disk_allocation_mb").(int) - diskReq := icdv4.DiskReq{AllocationMb: disk} - params.GroupBdy.Disk = &diskReq - } - if d.HasChange("node_disk_allocation_mb") || d.HasChange("node_count") { - disk := d.Get("node_disk_allocation_mb").(int) - count := d.Get("node_count").(int) - diskReq := icdv4.DiskReq{AllocationMb: disk * count} - params.GroupBdy.Disk = &diskReq - } - if d.HasChange("members_cpu_allocation_count") { - cpu := d.Get("members_cpu_allocation_count").(int) - cpuReq := icdv4.CpuReq{AllocationCount: cpu} - params.GroupBdy.Cpu = &cpuReq - } - if d.HasChange("node_cpu_allocation_mb") || d.HasChange("node_count") { - cpu := d.Get("node_cpu_allocation_count").(int) - count := d.Get("node_count").(int) - CpuReq := icdv4.CpuReq{AllocationCount: cpu * count} - params.GroupBdy.Cpu = &CpuReq - } - - task, err := icdClient.Groups().UpdateGroup(icdId, "member", params) - if err != nil { - return diag.FromErr(fmt.Errorf("[ERROR] Error updating database scaling group: %s", err)) - } - - _, err = waitForDatabaseTaskComplete(task.Id, d, meta, d.Timeout(schema.TimeoutUpdate)) - if err != nil { - return diag.FromErr(fmt.Errorf( - "[ERROR] Error waiting for database (%s) scaling group update task to complete: %s", icdId, err)) - } - } - if d.HasChange("group") { oldGroup, newGroup := d.GetChange("group") if oldGroup == nil { @@ -2418,31 +2129,6 @@ func resourceIBMDatabaseInstanceUpdate(context context.Context, d *schema.Resour return resourceIBMDatabaseInstanceRead(context, d, meta) } -func horizontalScale(d *schema.ResourceData, meta interface{}, icdClient icdv4.ICDServiceAPI) error { - params := icdv4.GroupReq{} - - icdId := flex.EscapeUrlParm(d.Id()) - - members := d.Get("node_count").(int) - membersReq := icdv4.MembersReq{AllocationCount: members} - params.GroupBdy.Members = &membersReq - - _, err := icdClient.Groups().UpdateGroup(icdId, "member", params) - - if err != nil { - return fmt.Errorf("[ERROR] Error updating database scaling group: %s", err) - } - - // ScaleOut is handled with an ICD API call, however, the check is is on the instance status - _, err = waitForDatabaseInstanceUpdate(d, meta) - if err != nil { - return fmt.Errorf( - "[ERROR] Error waiting for database (%s) horizontal scale to complete: %s", d.Id(), err) - } - - return nil -} - func getConnectionString(d *schema.ResourceData, userName, connectionEndpoint string, meta interface{}) (flex.CsEntry, error) { csEntry := flex.CsEntry{} icdClient, err := meta.(conns.ClientSession).ICDAPI() diff --git a/ibm/service/database/resource_ibm_database_cassandra_test.go b/ibm/service/database/resource_ibm_database_cassandra_test.go index 3f8b3de7f3..5c5b703e03 100644 --- a/ibm/service/database/resource_ibm_database_cassandra_test.go +++ b/ibm/service/database/resource_ibm_database_cassandra_test.go @@ -35,8 +35,6 @@ func TestAccIBMCassandraDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "plan", "enterprise"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(name, "adminuser", "admin"), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "36864"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "61440"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), resource.TestCheckResourceAttr(name, "users.#", "1"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "2"), @@ -52,8 +50,6 @@ func TestAccIBMCassandraDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-cassandra"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "38400"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "61440"), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), resource.TestCheckResourceAttr(name, "users.#", "2"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "3"), @@ -68,8 +64,6 @@ func TestAccIBMCassandraDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-cassandra"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "36864"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "61440"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "users.#", "0"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), @@ -101,10 +95,6 @@ func TestAccIBMDatabaseInstance_Cassandra_Node(t *testing.T) { resource.TestCheckResourceAttr(name, "plan", "enterprise"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(name, "adminuser", "admin"), - resource.TestCheckResourceAttr(name, "node_count", "3"), - resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "12288"), - resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "20480"), - resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "6"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), resource.TestCheckResourceAttr(name, "users.#", "1"), @@ -122,10 +112,6 @@ func TestAccIBMDatabaseInstance_Cassandra_Node(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-cassandra"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "node_count", "3"), - resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "12416"), - resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "20480"), - resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "6"), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), resource.TestCheckResourceAttr(name, "users.#", "2"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "3"), @@ -140,10 +126,6 @@ func TestAccIBMDatabaseInstance_Cassandra_Node(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-cassandra"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "node_count", "3"), - resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "12288"), - resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "20480"), - resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "6"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "users.#", "0"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), @@ -157,10 +139,6 @@ func TestAccIBMDatabaseInstance_Cassandra_Node(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-cassandra"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "node_count", "4"), - resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "12288"), - resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "20480"), - resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "6"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "users.#", "0"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), @@ -197,10 +175,6 @@ func TestAccIBMDatabaseInstance_Cassandra_Group(t *testing.T) { resource.TestCheckResourceAttr(name, "plan", "enterprise"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(name, "adminuser", "admin"), - resource.TestCheckResourceAttr(name, "node_count", "3"), - resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "12288"), - resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "20480"), - resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "6"), resource.TestCheckResourceAttr(name, "groups.0.count", "3"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "36864"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "61440"), @@ -221,10 +195,6 @@ func TestAccIBMDatabaseInstance_Cassandra_Group(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-cassandra"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "node_count", "3"), - resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "12416"), - resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "20480"), - resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "6"), resource.TestCheckResourceAttr(name, "groups.0.count", "3"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "37248"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "61440"), @@ -243,10 +213,6 @@ func TestAccIBMDatabaseInstance_Cassandra_Group(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-cassandra"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "node_count", "3"), - resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "12288"), - resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "20480"), - resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "6"), resource.TestCheckResourceAttr(name, "groups.0.count", "3"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "36864"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "61440"), @@ -264,10 +230,6 @@ func TestAccIBMDatabaseInstance_Cassandra_Group(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-cassandra"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "node_count", "4"), - resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "12288"), - resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "20480"), - resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "6"), resource.TestCheckResourceAttr(name, "groups.0.count", "4"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "49152"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "81920"), @@ -312,7 +274,7 @@ func TestAccIBMDatabaseInstanceCassandraImport(t *testing.T) { ImportState: true, ImportStateVerify: true, ImportStateVerifyIgnore: []string{ - "wait_time_minutes", "plan_validation"}, + "wait_time_minutes"}, }, }, }) @@ -334,8 +296,6 @@ func testAccCheckIBMDatabaseInstanceCassandraBasic(databaseResourceGroup string, plan = "enterprise" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 36864 - members_disk_allocation_mb = 61440 users { name = "user123" password = "password12" @@ -368,8 +328,6 @@ func testAccCheckIBMDatabaseInstanceCassandraFullyspecified(databaseResourceGrou plan = "enterprise" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 38400 - members_disk_allocation_mb = 61440 users { name = "user123" password = "password12" @@ -410,8 +368,6 @@ func testAccCheckIBMDatabaseInstanceCassandraReduced(databaseResourceGroup strin plan = "enterprise" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 36864 - members_disk_allocation_mb = 61440 timeouts { create = "480m" @@ -436,10 +392,22 @@ func testAccCheckIBMDatabaseInstanceCassandraNodeBasic(databaseResourceGroup str plan = "enterprise" location = "%[3]s" adminpassword = "password12" - node_count = 3 - node_memory_allocation_mb = 12288 - node_disk_allocation_mb = 20480 - node_cpu_allocation_count = 6 + + group { + group_id = "member" + + memory { + allocation_mb = 12288 + } + + disk { + allocation_mb = 20480 + } + + cpu { + allocation_count = 6 + } + } users { name = "user123" @@ -474,10 +442,23 @@ func testAccCheckIBMDatabaseInstanceCassandraNodeFullyspecified(databaseResource location = "%[3]s" version = "5.1" adminpassword = "password12" - node_count = 3 - node_memory_allocation_mb = 12416 - node_disk_allocation_mb = 20480 - node_cpu_allocation_count = 6 + + group { + group_id = "member" + members { + allocation_count = 3 + } + memory { + allocation_mb = 12416 + } + disk { + allocation_mb = 20480 + } + + cpu { + allocation_count = 6 + } + } users { name = "user123" @@ -520,10 +501,22 @@ func testAccCheckIBMDatabaseInstanceCassandraNodeReduced(databaseResourceGroup s location = "%[3]s" version = "5.1" adminpassword = "password12" - node_count = 3 - node_memory_allocation_mb = 12288 - node_disk_allocation_mb = 20480 - node_cpu_allocation_count = 6 + + group { + group_id = "member" + members { + allocation_count = 3 + } + memory { + allocation_mb = 12288 + } + disk { + allocation_mb = 20480 + } + cpu { + allocation_count = 6 + } + } timeouts { create = "480m" @@ -548,10 +541,22 @@ func testAccCheckIBMDatabaseInstanceCassandraNodeScaleOut(databaseResourceGroup plan = "enterprise" location = "%[3]s" adminpassword = "password12" - node_count = 4 - node_memory_allocation_mb = 12288 - node_disk_allocation_mb = 20480 - node_cpu_allocation_count = 6 + + group { + group_id = "member" + members { + allocation_count = 4 + } + memory { + allocation_mb = 12288 + } + disk { + allocation_mb = 20480 + } + cpu { + allocation_count = 6 + } + } timeouts { create = "480m" diff --git a/ibm/service/database/resource_ibm_database_edb_test.go b/ibm/service/database/resource_ibm_database_edb_test.go index 64dccdd1bc..d554fe943e 100644 --- a/ibm/service/database/resource_ibm_database_edb_test.go +++ b/ibm/service/database/resource_ibm_database_edb_test.go @@ -36,8 +36,8 @@ func TestAccIBMEDBDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(name, "adminuser", "admin"), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "3072"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "61440"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "61440"), resource.TestCheckResourceAttr(name, "service_endpoints", "public"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), resource.TestCheckResourceAttr(name, "users.#", "1"), @@ -56,8 +56,8 @@ func TestAccIBMEDBDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-enterprisedb"), resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "6144"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "92160"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "6144"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "92160"), resource.TestCheckResourceAttr(name, "service_endpoints", "public-and-private"), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), resource.TestCheckResourceAttr(name, "users.#", "2"), @@ -79,8 +79,8 @@ func TestAccIBMEDBDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-enterprisedb"), resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "3072"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "92160"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "92160"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "users.#", "0"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), @@ -92,7 +92,7 @@ func TestAccIBMEDBDatabaseInstanceBasic(t *testing.T) { ImportState: true, ImportStateVerify: false, ImportStateVerifyIgnore: []string{ - "wait_time_minutes", "plan_validation", "adminpassword"}, + "wait_time_minutes", "adminpassword"}, }, }, }) @@ -111,8 +111,15 @@ func testAccCheckIBMDatabaseInstanceEDBBasic(databaseResourceGroup string, name plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 3072 - members_disk_allocation_mb = 61440 + group { + group_id = "member" + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 20480 + } + } tags = ["one:two"] users { name = "user123" @@ -144,9 +151,18 @@ func testAccCheckIBMDatabaseInstanceEDBFullyspecified(databaseResourceGroup stri plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 6144 - members_disk_allocation_mb = 92160 - members_cpu_allocation_count = 12 + group { + group_id = "member" + memory { + allocation_mb = 2048 + } + disk { + allocation_mb = 30720 + } + cpu { + allocation_count = 4 + } + } service_endpoints = "public-and-private" tags = ["one:two"] users { @@ -187,8 +203,15 @@ func testAccCheckIBMDatabaseInstanceEDBReduced(databaseResourceGroup string, nam plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 3072 - members_disk_allocation_mb = 92160 + group { + group_id = "member" + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 30720 + } + } service_endpoints = "public" tags = ["one:two"] timeouts { diff --git a/ibm/service/database/resource_ibm_database_elasticsearch_test.go b/ibm/service/database/resource_ibm_database_elasticsearch_test.go index b8b7455bca..cb5fb613c1 100644 --- a/ibm/service/database/resource_ibm_database_elasticsearch_test.go +++ b/ibm/service/database/resource_ibm_database_elasticsearch_test.go @@ -35,8 +35,6 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(name, "adminuser", "admin"), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "3072"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "15360"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), resource.TestCheckResourceAttr(name, "users.#", "1"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "2"), @@ -53,8 +51,6 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "6144"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "18432"), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), resource.TestCheckResourceAttr(name, "users.#", "2"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "3"), @@ -69,8 +65,6 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "3072"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "18432"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "users.#", "0"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), @@ -121,10 +115,6 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Node(t *testing.T) { resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(name, "adminuser", "admin"), - resource.TestCheckResourceAttr(name, "node_count", "3"), - resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), - resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "5120"), - resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "3"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), resource.TestCheckResourceAttr(name, "users.#", "1"), @@ -142,10 +132,6 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Node(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "node_count", "3"), - resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), - resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "6144"), - resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "3"), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), resource.TestCheckResourceAttr(name, "users.#", "2"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "3"), @@ -160,10 +146,6 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Node(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "node_count", "3"), - resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), - resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "6144"), - resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "3"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "users.#", "0"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), @@ -177,10 +159,6 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Node(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "node_count", "4"), - resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), - resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "6144"), - resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "3"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "users.#", "0"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), @@ -217,10 +195,6 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Group(t *testing.T) { resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(name, "adminuser", "admin"), - resource.TestCheckResourceAttr(name, "node_count", "3"), - resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), - resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "5120"), - resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "3"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), resource.TestCheckResourceAttr(name, "users.#", "1"), @@ -238,10 +212,6 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Group(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "node_count", "3"), - resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), - resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "6144"), - resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "3"), resource.TestCheckResourceAttr(name, "groups.0.count", "3"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "18432"), @@ -260,10 +230,6 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Group(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "node_count", "3"), - resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), - resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "6144"), - resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "3"), resource.TestCheckResourceAttr(name, "groups.0.count", "3"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "18432"), @@ -281,10 +247,6 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Group(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "node_count", "4"), - resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), - resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "6144"), - resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "3"), resource.TestCheckResourceAttr(name, "groups.0.count", "4"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "4096"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "24576"), @@ -333,7 +295,7 @@ func TestAccIBMDatabaseInstanceElasticsearchImport(t *testing.T) { ImportState: true, ImportStateVerify: true, ImportStateVerifyIgnore: []string{ - "wait_time_minutes", "plan_validation"}, + "wait_time_minutes"}, }, }, }) @@ -355,8 +317,6 @@ func testAccCheckIBMDatabaseInstanceElasticsearchBasic(databaseResourceGroup str plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 3072 - members_disk_allocation_mb = 15360 users { name = "user123" password = "password12" @@ -389,8 +349,6 @@ func testAccCheckIBMDatabaseInstanceElasticsearchFullyspecified(databaseResource plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 6144 - members_disk_allocation_mb = 18432 users { name = "user123" password = "password12" @@ -432,8 +390,6 @@ func testAccCheckIBMDatabaseInstanceElasticsearchReduced(databaseResourceGroup s plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 3072 - members_disk_allocation_mb = 18432 timeouts { create = "120m" @@ -493,11 +449,22 @@ func testAccCheckIBMDatabaseInstanceElasticsearchNodeBasic(databaseResourceGroup plan = "standard" location = "%[3]s" adminpassword = "password12" - node_count = 3 - node_memory_allocation_mb = 1024 - node_disk_allocation_mb = 5120 - node_cpu_allocation_count = 3 + group { + group_id = "member" + members { + allocation_count = 3 + } + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 5120 + } + cpu { + allocation_count = 3 + } + } users { name = "user123" password = "password12" @@ -530,10 +497,21 @@ func testAccCheckIBMDatabaseInstanceElasticsearchNodeFullyspecified(databaseReso plan = "standard" location = "%[3]s" adminpassword = "password12" - node_count = 3 - node_memory_allocation_mb = 1024 - node_disk_allocation_mb = 6144 - node_cpu_allocation_count = 3 + group { + group_id = "member" + members { + allocation_count = 3 + } + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 6144 + } + cpu { + allocation_count = 3 + } + } users { name = "user123" password = "password12" @@ -574,10 +552,21 @@ func testAccCheckIBMDatabaseInstanceElasticsearchNodeReduced(databaseResourceGro plan = "standard" location = "%[3]s" adminpassword = "password12" - node_count = 3 - node_memory_allocation_mb = 1024 - node_disk_allocation_mb = 6144 - node_cpu_allocation_count = 3 + group { + group_id = "member" + members { + allocation_count = 3 + } + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 6144 + } + cpu { + allocation_count = 3 + } + } timeouts { create = "120m" @@ -602,10 +591,21 @@ func testAccCheckIBMDatabaseInstanceElasticsearchNodeScaleOut(databaseResourceGr plan = "standard" location = "%[3]s" adminpassword = "password12" - node_count = 4 - node_memory_allocation_mb = 1024 - node_disk_allocation_mb = 6144 - node_cpu_allocation_count = 3 + group { + group_id = "member" + members { + allocation_count = 4 + } + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 6144 + } + cpu { + allocation_count = 3 + } + } timeouts { create = "120m" diff --git a/ibm/service/database/resource_ibm_database_etcd_test.go b/ibm/service/database/resource_ibm_database_etcd_test.go index c362210aaa..42d7a83c0c 100644 --- a/ibm/service/database/resource_ibm_database_etcd_test.go +++ b/ibm/service/database/resource_ibm_database_etcd_test.go @@ -36,8 +36,8 @@ func TestAccIBMDatabaseInstance_Etcd_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(name, "adminuser", "root"), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "3072"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "61440"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "9216"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "184320"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), resource.TestCheckResourceAttr(name, "users.#", "1"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "2"), @@ -55,8 +55,8 @@ func TestAccIBMDatabaseInstance_Etcd_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-etcd"), resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "6144"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "64512"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "18432"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "193536"), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), resource.TestCheckResourceAttr(name, "users.#", "2"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "3"), @@ -69,8 +69,8 @@ func TestAccIBMDatabaseInstance_Etcd_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-etcd"), resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "3072"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "64512"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "9216"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "193536"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "users.#", "0"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), @@ -110,7 +110,7 @@ func TestAccIBMDatabaseInstanceEtcdImport(t *testing.T) { ImportState: true, ImportStateVerify: true, ImportStateVerifyIgnore: []string{ - "wait_time_minutes", "plan_validation"}, + "wait_time_minutes"}, }, }, }) @@ -132,8 +132,15 @@ func testAccCheckIBMDatabaseInstanceEtcdBasic(databaseResourceGroup string, name plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 3072 - members_disk_allocation_mb = 61440 + group { + group_id = "member" + memory { + allocation_mb = 3072 + } + disk { + allocation_mb = 61440 + } + } users { name = "user123" password = "password12" @@ -160,8 +167,15 @@ func testAccCheckIBMDatabaseInstanceEtcdFullyspecified(databaseResourceGroup str plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 6144 - members_disk_allocation_mb = 64512 + group { + group_id = "member" + memory { + allocation_mb = 6144 + } + disk { + allocation_mb = 64512 + } + } users { name = "user123" password = "password12" @@ -197,8 +211,15 @@ func testAccCheckIBMDatabaseInstanceEtcdReduced(databaseResourceGroup string, na plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 3072 - members_disk_allocation_mb = 64512 + group { + group_id = "member" + memory { + allocation_mb = 3072 + } + disk { + allocation_mb = 64512 + } + } } `, databaseResourceGroup, name, acc.IcdDbRegion) } diff --git a/ibm/service/database/resource_ibm_database_mongodb_enterprise_test.go b/ibm/service/database/resource_ibm_database_mongodb_enterprise_test.go index 74974d9675..e8a11917ae 100644 --- a/ibm/service/database/resource_ibm_database_mongodb_enterprise_test.go +++ b/ibm/service/database/resource_ibm_database_mongodb_enterprise_test.go @@ -36,9 +36,9 @@ func TestAccIBMMongoDBEnterpriseDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "plan", "enterprise"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(name, "adminuser", "admin"), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "43008"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "61440"), resource.TestCheckResourceAttr(name, "service_endpoints", "public"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "43008"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "61440"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), resource.TestCheckResourceAttr(name, "users.#", "1"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "2"), @@ -56,9 +56,9 @@ func TestAccIBMMongoDBEnterpriseDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-mongodb"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "86016"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "122880"), resource.TestCheckResourceAttr(name, "service_endpoints", "public"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "86016"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "122880"), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), resource.TestCheckResourceAttr(name, "users.#", "2"), resource.TestCheckResourceAttr(name, "users.1.type", "ops_manager"), @@ -80,9 +80,9 @@ func TestAccIBMMongoDBEnterpriseDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-mongodb"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "43008"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "122880"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "43008"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "122880"), resource.TestCheckResourceAttr(name, "users.#", "0"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), resource.TestCheckResourceAttr(name, "tags.#", "1"), @@ -93,7 +93,7 @@ func TestAccIBMMongoDBEnterpriseDatabaseInstanceBasic(t *testing.T) { ImportState: true, ImportStateVerify: true, ImportStateVerifyIgnore: []string{ - "wait_time_minutes", "plan_validation", "adminpassword", "connectionstrings.0.queryoptions"}, + "wait_time_minutes", "adminpassword", "connectionstrings.0.queryoptions"}, }, }, }) @@ -121,9 +121,9 @@ func TestAccIBMMongoDBEnterpriseDatabaseInstanceGroupBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "plan", "enterprise"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(name, "adminuser", "admin"), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "43008"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "61440"), resource.TestCheckResourceAttr(name, "service_endpoints", "public"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "43008"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "61440"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), resource.TestCheckResourceAttr(name, "connectionstrings.0.name", "admin"), resource.TestCheckResourceAttr(name, "groups.0.count", "3"), @@ -151,9 +151,16 @@ func testAccCheckIBMDatabaseInstanceMongoDBEnterpriseBasic(databaseResourceGroup plan = "enterprise" location = "%[3]s" adminpassword = "password12" - members_disk_allocation_mb = 61440 - members_memory_allocation_mb = 43008 tags = ["one:two"] + group { + group_id = "member" + memory { + allocation_mb = 14336 + } + disk { + allocation_mb = 20480 + } + } users { name = "user123" password = "password12" @@ -185,10 +192,19 @@ func testAccCheckIBMDatabaseInstanceMongoDBEnterpriseFullyspecified(databaseReso plan = "enterprise" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 86016 - members_disk_allocation_mb = 122880 - members_cpu_allocation_count = 27 tags = ["one:two"] + group { + group_id = "member" + memory { + allocation_mb = 28672 + } + disk { + allocation_mb = 40960 + } + cpu { + allocation_count = 9 + } + } users { name = "user123" password = "password12" @@ -229,10 +245,17 @@ func testAccCheckIBMDatabaseInstanceMongoDBEnterpriseReduced(databaseResourceGro plan = "enterprise" location = "%[3]s" adminpassword = "password12" - members_disk_allocation_mb = 122880 - members_memory_allocation_mb = 43008 service_endpoints = "public" tags = ["one:two"] + group { + group_id = "member" + memory { + allocation_mb = 14336 + } + disk { + allocation_mb = 40960 + } + } timeouts { create = "480m" update = "480m" diff --git a/ibm/service/database/resource_ibm_database_mongodb_sharding_test.go b/ibm/service/database/resource_ibm_database_mongodb_sharding_test.go index 7ced69aa72..3b8a8e7dbb 100644 --- a/ibm/service/database/resource_ibm_database_mongodb_sharding_test.go +++ b/ibm/service/database/resource_ibm_database_mongodb_sharding_test.go @@ -36,8 +36,8 @@ func TestAccIBMMongoDBShardingDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "plan", "enterprise-sharding"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(name, "adminuser", "admin"), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "86016"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "122880"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "43008"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "61440"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), resource.TestCheckResourceAttr(name, "users.#", "1"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "2"), @@ -54,8 +54,8 @@ func TestAccIBMMongoDBShardingDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-mongodb"), resource.TestCheckResourceAttr(name, "plan", "enterprise-sharding"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "86016"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "122880"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "86016"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "122880"), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), resource.TestCheckResourceAttr(name, "users.#", "2"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "3"), @@ -71,8 +71,8 @@ func TestAccIBMMongoDBShardingDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-mongodb"), resource.TestCheckResourceAttr(name, "plan", "enterprise-sharding"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "86016"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "122880"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "43008"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "122880"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "users.#", "0"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), @@ -95,8 +95,15 @@ func testAccCheckIBMDatabaseInstanceMongoDBShardingBasic(databaseResourceGroup s plan = "enterprise-sharding" location = "%[3]s" adminpassword = "password12" - members_disk_allocation_mb = 122880 - members_memory_allocation_mb = 86016 + group { + group_id = "member" + memory { + allocation_mb = 14336 + } + disk { + allocation_mb = 20480 + } + } users { name = "user123" password = "password12" @@ -128,9 +135,18 @@ func testAccCheckIBMDatabaseInstanceMongoDBShardingFullyspecified(databaseResour plan = "enterprise-sharding" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 86016 - members_disk_allocation_mb = 122880 - members_cpu_allocation_count = 36 + group { + group_id = "member" + memory { + allocation_mb = 28672 + } + disk { + allocation_mb = 40960 + } + cpu { + allocation_count = 9 + } + } users { name = "user123" password = "password12" @@ -171,8 +187,15 @@ func testAccCheckIBMDatabaseInstanceMongoDBShardingReduced(databaseResourceGroup plan = "enterprise-sharding" location = "%[3]s" adminpassword = "password12" - members_disk_allocation_mb = 122880 - members_memory_allocation_mb = 86016 + group { + group_id = "member" + memory { + allocation_mb = 14336 + } + disk { + allocation_mb = 40960 + } + } service_endpoints = "public" timeouts { create = "480m" diff --git a/ibm/service/database/resource_ibm_database_mongodb_test.go b/ibm/service/database/resource_ibm_database_mongodb_test.go index a96b59e67c..683d02fa14 100644 --- a/ibm/service/database/resource_ibm_database_mongodb_test.go +++ b/ibm/service/database/resource_ibm_database_mongodb_test.go @@ -36,10 +36,10 @@ func TestAccIBMDatabaseInstanceMongodbBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(name, "adminuser", "admin"), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "3072"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "30720"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), resource.TestCheckResourceAttr(name, "users.#", "1"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "30720"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "2"), resource.TestCheckResourceAttr(name, "connectionstrings.1.name", "admin"), resource.TestMatchResourceAttr(name, "connectionstrings.1.certname", regexp.MustCompile("[-a-z0-9]*")), @@ -54,10 +54,10 @@ func TestAccIBMDatabaseInstanceMongodbBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-mongodb"), resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "6144"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "30720"), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), resource.TestCheckResourceAttr(name, "users.#", "2"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "6144"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "30720"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "3"), resource.TestCheckResourceAttr(name, "connectionstrings.2.name", "admin"), resource.TestCheckResourceAttr(name, "connectionstrings.0.scheme", "mongodb"), @@ -71,8 +71,8 @@ func TestAccIBMDatabaseInstanceMongodbBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-mongodb"), resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "3072"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "30720"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "30720"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "users.#", "0"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), @@ -117,7 +117,7 @@ func TestAccIBMDatabaseInstanceMongodbImport(t *testing.T) { ImportState: true, ImportStateVerify: true, ImportStateVerifyIgnore: []string{ - "wait_time_minutes", "connectionstrings", "plan_validation"}, + "wait_time_minutes", "connectionstrings"}, }, }, }) @@ -136,8 +136,15 @@ func testAccCheckIBMDatabaseInstanceMongodbBasic(databaseResourceGroup string, n plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 3072 - members_disk_allocation_mb = 30720 + group { + group_id = "member" + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 10240 + } + } users { name = "user123" password = "password12" @@ -163,8 +170,15 @@ func testAccCheckIBMDatabaseInstanceMongodbFullyspecified(databaseResourceGroup plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 6144 - members_disk_allocation_mb = 30720 + group { + group_id = "member" + memory { + allocation_mb = 2048 + } + disk { + allocation_mb = 10240 + } + } users { name = "user123" password = "password12" @@ -198,8 +212,15 @@ func testAccCheckIBMDatabaseInstanceMongodbReduced(databaseResourceGroup string, plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 3072 - members_disk_allocation_mb = 30720 + group { + group_id = "member" + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 10240 + } + } } `, databaseResourceGroup, name, acc.IcdDbRegion) diff --git a/ibm/service/database/resource_ibm_database_mysql_test.go b/ibm/service/database/resource_ibm_database_mysql_test.go index 423d48d800..d88873886a 100644 --- a/ibm/service/database/resource_ibm_database_mysql_test.go +++ b/ibm/service/database/resource_ibm_database_mysql_test.go @@ -35,8 +35,8 @@ func TestAccIBMMysqlDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(name, "adminuser", "admin"), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "3072"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "61440"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "61440"), resource.TestCheckResourceAttr(name, "service_endpoints", "public"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), resource.TestCheckResourceAttr(name, "users.#", "1"), @@ -55,8 +55,8 @@ func TestAccIBMMysqlDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-mysql"), resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "6144"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "92160"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "6144"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "92160"), resource.TestCheckResourceAttr(name, "service_endpoints", "public-and-private"), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), resource.TestCheckResourceAttr(name, "users.#", "2"), @@ -87,8 +87,15 @@ func testAccCheckIBMDatabaseInstanceMysqlBasic(databaseResourceGroup string, nam plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 3072 - members_disk_allocation_mb = 61440 + group { + group_id = "member" + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 20480 + } + } tags = ["one:two"] users { name = "user123" @@ -120,9 +127,18 @@ func testAccCheckIBMDatabaseInstanceMysqlFullyspecified(databaseResourceGroup st plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 6144 - members_disk_allocation_mb = 92160 - members_cpu_allocation_count = 12 + group { + group_id = "member" + memory { + allocation_mb = 2048 + } + disk { + allocation_mb = 30720 + } + cpu { + allocation_count = 4 + } + } service_endpoints = "public-and-private" tags = ["one:two"] users { diff --git a/ibm/service/database/resource_ibm_database_postgresql_test.go b/ibm/service/database/resource_ibm_database_postgresql_test.go index 609cbbb712..15866b186c 100644 --- a/ibm/service/database/resource_ibm_database_postgresql_test.go +++ b/ibm/service/database/resource_ibm_database_postgresql_test.go @@ -57,9 +57,9 @@ func TestAccIBMDatabaseInstancePostgresBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(name, "adminuser", "admin"), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "2048"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "10240"), - resource.TestCheckResourceAttr(name, "members_cpu_allocation_count", "0"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "4096"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "20480"), + resource.TestCheckResourceAttr(name, "groups.0.cpu.0.allocation_count", "0"), resource.TestCheckResourceAttr(name, "service_endpoints", "public"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), resource.TestCheckResourceAttr(name, "users.#", "1"), @@ -79,8 +79,8 @@ func TestAccIBMDatabaseInstancePostgresBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-postgresql"), resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "4096"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "14336"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "8192"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "28672"), resource.TestCheckResourceAttr(name, "service_endpoints", "public-and-private"), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), resource.TestCheckResourceAttr(name, "users.#", "3"), @@ -104,158 +104,6 @@ func TestAccIBMDatabaseInstancePostgresBasic(t *testing.T) { }) } -func TestAccIBMDatabaseInstancePostgresGroupMigration(t *testing.T) { - t.Parallel() - databaseResourceGroup := "default" - var databaseInstanceOne string - rnd := fmt.Sprintf("tf-Pgress-%d", acctest.RandIntRange(10, 100)) - testName := rnd - name := "ibm_database." + testName - - resource.Test(t, resource.TestCase{ - PreCheck: func() { acc.TestAccPreCheck(t) }, - Providers: acc.TestAccProviders, - CheckDestroy: testAccCheckIBMDatabaseInstanceDestroy, - Steps: []resource.TestStep{ - { - Config: testAccCheckIBMDatabaseInstancePostgresGroupDeprecated(databaseResourceGroup, testName), - Check: resource.ComposeAggregateTestCheckFunc( - testAccCheckIBMDatabaseInstanceExists(name, &databaseInstanceOne), - resource.TestCheckResourceAttr(name, "name", testName), - resource.TestCheckResourceAttr(name, "service", "databases-for-postgresql"), - resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "adminuser", "admin"), - resource.TestCheckResourceAttr(name, "groups.0.count", "2"), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "2048"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "10240"), - resource.TestCheckResourceAttr(name, "members_cpu_allocation_count", "6"), - ), - }, - { - Config: testAccCheckIBMDatabaseInstancePostgresGroupMigrated(databaseResourceGroup, testName), - Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr(name, "name", testName), - resource.TestCheckResourceAttr(name, "service", "databases-for-postgresql"), - resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "adminuser", "admin"), - resource.TestCheckResourceAttr(name, "groups.0.count", "2"), - resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "2048"), - resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "10240"), - resource.TestCheckResourceAttr(name, "groups.0.cpu.0.allocation_count", "6"), - ), - }, - }, - }) -} - -func TestAccIBMDatabaseInstancePostgresNode(t *testing.T) { - t.Parallel() - databaseResourceGroup := "default" - var databaseInstanceOne string - rnd := fmt.Sprintf("tf-Pgress-%d", acctest.RandIntRange(10, 100)) - testName := rnd - name := "ibm_database." + testName - - resource.Test(t, resource.TestCase{ - PreCheck: func() { acc.TestAccPreCheck(t) }, - Providers: acc.TestAccProviders, - CheckDestroy: testAccCheckIBMDatabaseInstanceDestroy, - Steps: []resource.TestStep{ - { - Config: testAccCheckIBMDatabaseInstancePostgresNodeBasic(databaseResourceGroup, testName), - Check: resource.ComposeAggregateTestCheckFunc( - testAccCheckIBMDatabaseInstanceExists(name, &databaseInstanceOne), - resource.TestCheckResourceAttr(name, "name", testName), - resource.TestCheckResourceAttr(name, "service", "databases-for-postgresql"), - resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "adminuser", "admin"), - resource.TestCheckResourceAttr(name, "node_count", "2"), - resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), - resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "5120"), - resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "3"), - resource.TestCheckResourceAttr(name, "service_endpoints", "public"), - resource.TestCheckResourceAttr(name, "allowlist.#", "1"), - resource.TestCheckResourceAttr(name, "users.#", "1"), - resource.TestCheckResourceAttr(name, "connectionstrings.#", "2"), - resource.TestCheckResourceAttr(name, "connectionstrings.1.name", "admin"), - resource.TestMatchResourceAttr(name, "connectionstrings.1.certname", regexp.MustCompile("[-a-z0-9]*")), - resource.TestMatchResourceAttr(name, "connectionstrings.1.certbase64", regexp.MustCompile("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")), - resource.TestCheckResourceAttr(name, "tags.#", "1"), - ), - }, - { - Config: testAccCheckIBMDatabaseInstancePostgresNodeFullyspecified(databaseResourceGroup, testName), - Check: resource.ComposeAggregateTestCheckFunc( - testAccCheckIBMDatabaseInstanceExists(name, &databaseInstanceOne), - resource.TestCheckResourceAttr(name, "name", testName), - resource.TestCheckResourceAttr(name, "service", "databases-for-postgresql"), - resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "node_count", "2"), - resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), - resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "7168"), - resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "3"), - resource.TestCheckResourceAttr(name, "service_endpoints", "public-and-private"), - resource.TestCheckResourceAttr(name, "allowlist.#", "2"), - resource.TestCheckResourceAttr(name, "users.#", "2"), - resource.TestCheckResourceAttr(name, "connectionstrings.#", "3"), - resource.TestCheckResourceAttr(name, "connectionstrings.2.name", "admin"), - resource.TestCheckResourceAttr(name, "connectionstrings.0.hosts.#", "1"), - resource.TestCheckResourceAttr(name, "connectionstrings.0.scheme", "postgres"), - resource.TestMatchResourceAttr(name, "connectionstrings.0.certname", regexp.MustCompile("[-a-z0-9]*")), - resource.TestMatchResourceAttr(name, "connectionstrings.0.certbase64", regexp.MustCompile("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")), - resource.TestMatchResourceAttr(name, "connectionstrings.0.database", regexp.MustCompile("[-a-z0-9]+")), - resource.TestCheckResourceAttr(name, "tags.#", "1"), - ), - }, - { - Config: testAccCheckIBMDatabaseInstancePostgresNodeReduced(databaseResourceGroup, testName), - Check: resource.ComposeAggregateTestCheckFunc( - testAccCheckIBMDatabaseInstanceExists(name, &databaseInstanceOne), - resource.TestCheckResourceAttr(name, "name", testName), - resource.TestCheckResourceAttr(name, "service", "databases-for-postgresql"), - resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "node_count", "2"), - resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), - resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "7168"), - resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "3"), - resource.TestCheckResourceAttr(name, "allowlist.#", "0"), - resource.TestCheckResourceAttr(name, "users.#", "0"), - resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), - resource.TestCheckResourceAttr(name, "tags.#", "1"), - ), - }, - { - Config: testAccCheckIBMDatabaseInstancePostgresNodeScaleOut(databaseResourceGroup, testName), - Check: resource.ComposeAggregateTestCheckFunc( - testAccCheckIBMDatabaseInstanceExists(name, &databaseInstanceOne), - resource.TestCheckResourceAttr(name, "name", testName), - resource.TestCheckResourceAttr(name, "service", "databases-for-postgresql"), - resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "node_count", "3"), - resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), - resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "7168"), - resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "3"), - resource.TestCheckResourceAttr(name, "allowlist.#", "0"), - resource.TestCheckResourceAttr(name, "users.#", "0"), - resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), - resource.TestCheckResourceAttr(name, "tags.#", "1"), - ), - }, - // { - // ResourceName: name, - // ImportState: true, - // ImportStateVerify: true, - // }, - }, - }) -} - func TestAccIBMDatabaseInstancePostgresGroup(t *testing.T) { t.Parallel() databaseResourceGroup := "default" @@ -279,8 +127,8 @@ func TestAccIBMDatabaseInstancePostgresGroup(t *testing.T) { resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(name, "adminuser", "admin"), resource.TestCheckResourceAttr(name, "groups.0.count", "2"), - resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "2048"), - resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "10240"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "4096"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "20480"), resource.TestCheckResourceAttr(name, "groups.0.cpu.0.allocation_count", "6"), resource.TestCheckResourceAttr(name, "service_endpoints", "public"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), @@ -301,8 +149,8 @@ func TestAccIBMDatabaseInstancePostgresGroup(t *testing.T) { resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(name, "groups.0.count", "2"), - resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "2304"), - resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "14336"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "4608"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "28672"), resource.TestCheckResourceAttr(name, "groups.0.cpu.0.allocation_count", "6"), resource.TestCheckResourceAttr(name, "service_endpoints", "public-and-private"), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), @@ -326,8 +174,8 @@ func TestAccIBMDatabaseInstancePostgresGroup(t *testing.T) { resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(name, "groups.0.count", "2"), - resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "2048"), - resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "14336"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "4096"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "28672"), resource.TestCheckResourceAttr(name, "groups.0.cpu.0.allocation_count", "6"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "users.#", "0"), @@ -344,8 +192,8 @@ func TestAccIBMDatabaseInstancePostgresGroup(t *testing.T) { resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(name, "groups.0.count", "3"), - resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), - resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "21504"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "6144"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "43008"), resource.TestCheckResourceAttr(name, "groups.0.cpu.0.allocation_count", "9"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "users.#", "0"), @@ -387,7 +235,7 @@ func TestAccIBMDatabaseInstancePostgresImport(t *testing.T) { ImportState: true, ImportStateVerify: true, ImportStateVerifyIgnore: []string{ - "wait_time_minutes", "plan_validation"}, + "wait_time_minutes"}, }, }, }) @@ -568,8 +416,15 @@ func testAccCheckIBMDatabaseInstancePostgresBasic(databaseResourceGroup string, plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 2048 - members_disk_allocation_mb = 10240 + group { + group_id = "member" + memory { + allocation_mb = 2048 + } + disk { + allocation_mb = 10240 + } + } tags = ["one:two"] users { name = "user123" @@ -608,9 +463,18 @@ func testAccCheckIBMDatabaseInstancePostgresFullyspecified(databaseResourceGroup plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 4096 - members_disk_allocation_mb = 14336 - members_cpu_allocation_count = 6 + group { + group_id = "member" + memory { + allocation_mb = 4096 + } + disk { + allocation_mb = 14336 + } + cpu { + allocation_count = 6 + } + } service_endpoints = "public-and-private" tags = ["one:two"] users { @@ -654,203 +518,6 @@ func testAccCheckIBMDatabaseInstancePostgresFullyspecified(databaseResourceGroup `, databaseResourceGroup, name, acc.IcdDbRegion) } -func testAccCheckIBMDatabaseInstancePostgresReduced(databaseResourceGroup string, name string) string { - return fmt.Sprintf(` - data "ibm_resource_group" "test_acc" { - name = "%[1]s" - } - - resource "ibm_database" "%[2]s" { - resource_group_id = data.ibm_resource_group.test_acc.id - name = "%[2]s" - service = "databases-for-postgresql" - plan = "standard" - location = "%[3]s" - adminpassword = "password12" - members_memory_allocation_mb = 2048 - members_disk_allocation_mb = 14336 - service_endpoints = "public" - tags = ["one:two"] - } - `, databaseResourceGroup, name, acc.IcdDbRegion) -} - -func testAccCheckIBMDatabaseInstancePostgresGroupDeprecated(databaseResourceGroup string, name string) string { - return fmt.Sprintf(` - data "ibm_resource_group" "test_acc" { - name = "%[1]s" - } - - resource "ibm_database" "%[2]s" { - resource_group_id = data.ibm_resource_group.test_acc.id - name = "%[2]s" - service = "databases-for-postgresql" - plan = "standard" - location = "%[3]s" - adminpassword = "password12" - service_endpoints = "public" - tags = ["one:two"] - - members_memory_allocation_mb = 2048 - members_disk_allocation_mb = 10240 - members_cpu_allocation_count = 6 - } - `, databaseResourceGroup, name, acc.IcdDbRegion) -} - -func testAccCheckIBMDatabaseInstancePostgresGroupMigrated(databaseResourceGroup string, name string) string { - return fmt.Sprintf(` - data "ibm_resource_group" "test_acc" { - name = "%[1]s" - } - - resource "ibm_database" "%[2]s" { - resource_group_id = data.ibm_resource_group.test_acc.id - name = "%[2]s" - service = "databases-for-postgresql" - plan = "standard" - location = "%[3]s" - adminpassword = "password12" - service_endpoints = "public" - tags = ["one:two"] - - group { - group_id = "member" - - memory { - allocation_mb = 1024 - } - - disk { - allocation_mb = 5120 - } - - cpu { - allocation_count = 3 - } - - members { - allocation_count = 2 - } - } - } - `, databaseResourceGroup, name, acc.IcdDbRegion) -} - -func testAccCheckIBMDatabaseInstancePostgresNodeBasic(databaseResourceGroup string, name string) string { - return fmt.Sprintf(` - data "ibm_resource_group" "test_acc" { - name = "%[1]s" - } - - resource "ibm_database" "%[2]s" { - resource_group_id = data.ibm_resource_group.test_acc.id - name = "%[2]s" - service = "databases-for-postgresql" - plan = "standard" - location = "%[3]s" - adminpassword = "password12" - node_count = 2 - node_memory_allocation_mb = 1024 - node_disk_allocation_mb = 5120 - node_cpu_allocation_count = 3 - tags = ["one:two"] - users { - name = "user123" - password = "password12" - } - allowlist { - address = "172.168.1.2/32" - description = "desc1" - } - } - `, databaseResourceGroup, name, acc.IcdDbRegion) -} - -func testAccCheckIBMDatabaseInstancePostgresNodeFullyspecified(databaseResourceGroup string, name string) string { - return fmt.Sprintf(` - data "ibm_resource_group" "test_acc" { - name = "%[1]s" - } - - resource "ibm_database" "%[2]s" { - resource_group_id = data.ibm_resource_group.test_acc.id - name = "%[2]s" - service = "databases-for-postgresql" - plan = "standard" - location = "%[3]s" - adminpassword = "password12" - node_count = 2 - node_memory_allocation_mb = 1024 - node_disk_allocation_mb = 7168 - node_cpu_allocation_count = 3 - service_endpoints = "public-and-private" - tags = ["one:two"] - users { - name = "user123" - password = "password12" - } - users { - name = "user124" - password = "password12" - } - allowlist { - address = "172.168.1.2/32" - description = "desc1" - } - allowlist { - address = "172.168.1.1/32" - description = "desc" - } - } - `, databaseResourceGroup, name, acc.IcdDbRegion) -} - -func testAccCheckIBMDatabaseInstancePostgresNodeReduced(databaseResourceGroup string, name string) string { - return fmt.Sprintf(` - data "ibm_resource_group" "test_acc" { - name = "%[1]s" - } - - resource "ibm_database" "%[2]s" { - resource_group_id = data.ibm_resource_group.test_acc.id - name = "%[2]s" - service = "databases-for-postgresql" - plan = "standard" - location = "%[3]s" - adminpassword = "password12" - node_count = 2 - node_memory_allocation_mb = 1024 - node_disk_allocation_mb = 7168 - node_cpu_allocation_count = 3 - service_endpoints = "public" - tags = ["one:two"] - } - `, databaseResourceGroup, name, acc.IcdDbRegion) -} -func testAccCheckIBMDatabaseInstancePostgresNodeScaleOut(databaseResourceGroup string, name string) string { - return fmt.Sprintf(` - data "ibm_resource_group" "test_acc" { - name = "%[1]s" - } - - resource "ibm_database" "%[2]s" { - resource_group_id = data.ibm_resource_group.test_acc.id - name = "%[2]s" - service = "databases-for-postgresql" - plan = "standard" - location = "%[3]s" - adminpassword = "password12" - node_count = 3 - node_memory_allocation_mb = 1024 - node_disk_allocation_mb = 7168 - node_cpu_allocation_count = 3 - service_endpoints = "public" - tags = ["one:two"] - } - `, databaseResourceGroup, name, acc.IcdDbRegion) -} - func testAccCheckIBMDatabaseInstancePostgresGroupBasic(databaseResourceGroup string, name string) string { return fmt.Sprintf(` data "ibm_resource_group" "test_acc" { diff --git a/ibm/service/database/resource_ibm_database_rabbitmq_test.go b/ibm/service/database/resource_ibm_database_rabbitmq_test.go index f7ada694d9..93a4bc0456 100644 --- a/ibm/service/database/resource_ibm_database_rabbitmq_test.go +++ b/ibm/service/database/resource_ibm_database_rabbitmq_test.go @@ -35,8 +35,8 @@ func TestAccIBMDatabaseInstance_Rabbitmq_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(name, "adminuser", "admin"), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "3072"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "3072"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "3072"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), resource.TestCheckResourceAttr(name, "users.#", "1"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "2"), @@ -53,8 +53,8 @@ func TestAccIBMDatabaseInstance_Rabbitmq_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "messages-for-rabbitmq"), resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "6144"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "6144"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "6144"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "6144"), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), resource.TestCheckResourceAttr(name, "users.#", "2"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "3"), @@ -69,8 +69,8 @@ func TestAccIBMDatabaseInstance_Rabbitmq_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "messages-for-rabbitmq"), resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "3072"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "6144"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "6144"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "users.#", "0"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), @@ -115,7 +115,7 @@ func TestAccIBMDatabaseInstanceRabbitmqImport(t *testing.T) { ImportState: true, ImportStateVerify: true, ImportStateVerifyIgnore: []string{ - "wait_time_minutes", "plan_validation"}, + "wait_time_minutes"}, }, }, }) @@ -137,8 +137,15 @@ func testAccCheckIBMDatabaseInstanceRabbitmqBasic(databaseResourceGroup string, plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 3072 - members_disk_allocation_mb = 3072 + group { + group_id = "member" + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 1024 + } + } users { name = "user123" password = "password12" @@ -170,8 +177,15 @@ func testAccCheckIBMDatabaseInstanceRabbitmqFullyspecified(databaseResourceGroup plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 6144 - members_disk_allocation_mb = 6144 + group { + group_id = "member" + memory { + allocation_mb = 2048 + } + disk { + allocation_mb = 2048 + } + } users { name = "user123" password = "password12" @@ -207,8 +221,15 @@ func testAccCheckIBMDatabaseInstanceRabbitmqReduced(databaseResourceGroup string plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 3072 - members_disk_allocation_mb = 6144 + group { + group_id = "member" + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 2048 + } + } } `, databaseResourceGroup, name, acc.IcdDbRegion) } diff --git a/ibm/service/database/resource_ibm_database_redis_test.go b/ibm/service/database/resource_ibm_database_redis_test.go index bf51217e20..3a0f4cd85a 100644 --- a/ibm/service/database/resource_ibm_database_redis_test.go +++ b/ibm/service/database/resource_ibm_database_redis_test.go @@ -36,8 +36,8 @@ func TestAccIBMDatabaseInstance_Redis_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), resource.TestCheckResourceAttr(name, "adminuser", "admin"), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "2048"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "2048"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "2048"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "2048"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), resource.TestCheckResourceAttr(name, "connectionstrings.0.name", "admin"), @@ -52,8 +52,8 @@ func TestAccIBMDatabaseInstance_Redis_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-redis"), resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "2304"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "4096"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "2304"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "4096"), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), ), }, @@ -64,9 +64,9 @@ func TestAccIBMDatabaseInstance_Redis_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "service", "databases-for-redis"), resource.TestCheckResourceAttr(name, "plan", "standard"), resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), - resource.TestCheckResourceAttr(name, "members_memory_allocation_mb", "2048"), - resource.TestCheckResourceAttr(name, "members_disk_allocation_mb", "4096"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "2048"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "4096"), ), }, { @@ -117,7 +117,7 @@ func TestAccIBMDatabaseInstanceRedisImport(t *testing.T) { ImportState: true, ImportStateVerify: true, ImportStateVerifyIgnore: []string{ - "wait_time_minutes", "plan_validation"}, + "wait_time_minutes"}, }, }, }) @@ -169,8 +169,15 @@ func testAccCheckIBMDatabaseInstanceRedisBasic(databaseResourceGroup string, nam plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 2048 - members_disk_allocation_mb = 2048 + group { + group_id = "member" + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 1024 + } + } allowlist { address = "172.168.1.2/32" description = "desc1" @@ -202,8 +209,15 @@ func testAccCheckIBMDatabaseInstanceRedisFullyspecified(databaseResourceGroup st plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 2304 - members_disk_allocation_mb = 4096 + group { + group_id = "member" + memory { + allocation_mb = 1152 + } + disk { + allocation_mb = 2048 + } + } allowlist { address = "172.168.1.2/32" description = "desc1" @@ -230,8 +244,15 @@ func testAccCheckIBMDatabaseInstanceRedisReduced(databaseResourceGroup string, n plan = "standard" location = "%[3]s" adminpassword = "password12" - members_memory_allocation_mb = 2048 - members_disk_allocation_mb = 4096 + group { + group_id = "member" + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 2048 + } + } } `, databaseResourceGroup, name, acc.IcdDbRegion) } diff --git a/website/docs/r/database.html.markdown b/website/docs/r/database.html.markdown index 11a0e93bd8..5ca75a682a 100644 --- a/website/docs/r/database.html.markdown +++ b/website/docs/r/database.html.markdown @@ -67,45 +67,6 @@ output "ICD Etcd database connection string" { ``` -### **Deprecated** Sample database instance by using `node_` attributes -Please Note this has been deprecated: Please use the `group` attribute instead -An example to configure and deploy database by using `node_` attributes instead of `memory_`. - -```terraform -data "ibm_resource_group" "group" { - name = "" -} - -resource "ibm_database" "" { - name = "" - plan = "standard" - location = "eu-gb" - service = "databases-for-etcd" - resource_group_id = data.ibm_resource_group.group.id - tags = ["tag1", "tag2"] - - adminpassword = "password12" - node_count = 3 - node_memory_allocation_mb = 1024 - node_disk_allocation_mb = 20480 - users { - name = "user123" - password = "password12" - type = "database" - } - - allowlist { - address = "172.168.1.1/32" - description = "desc" - } -} - -output "ICD Etcd database connection string" { - value = "http://${ibm_database.test_acc.ibm_database_connection.icd_conn}" -} - -``` - ### Sample database instance by using `group` attributes An example to configure and deploy database by using `group` attributes. @@ -661,18 +622,8 @@ Review the argument reference that you can specify for your resource. - Nested scheme for `cpu`: - `allocation_count` - (Optional, Integer) Allocated dedicated CPU per-member. -- `members_memory_allocation_mb` **Deprecated** - (Optional, Integer) The amount of memory in megabytes for the database, split across all members. If not specified, the default setting of the database service is used, which can vary by database type. -- `members_disk_allocation_mb` **Deprecated** - (Optional, Integer) The amount of disk space for the database, split across all members. If not specified, the default setting of the database service is used, which can vary by database type. -- `members_cpu_allocation_count` **Deprecated** - (Optional, Integer) Enables and allocates the number of specified dedicated cores to your deployment. -- `node_count` **Deprecated** - (Optional, Integer) The total number of nodes in the cluster. If not specified defaults to the database minimum node count. These vary by database type. See the documentation related to each database for the defaults. https://cloud.ibm.com/docs/databases-for-postgresql?topic=cloud-databases-provisioning#provisioning-parameters -- `node_cpu_allocation_count` **Deprecated** - (Optional, Integer) Enables and allocates the number of specified dedicated cores to your deployment per node. -- `node_disk_allocation_mb` **Deprecated** - (Optional, Integer) The disk size of the database per node. As above. -- `node_memory_allocation_mb` **Deprecated** - (Optional,Integer) The memory size for the database per node. If not specified defaults to the database default. These vary by database type. See the documentation related to each database for the defaults. https://cloud.ibm.com/docs/databases-for-postgresql?topic=cloud-databases-provisioning#provisioning-parameters - - ~> **Note:** `members_memory_allocation_mb`, `members_disk_allocation_mb`, `members_cpu_allocation_count` conflicts with `node_count`,`node_cpu_allocation_count`, `node_disk_allocation_mb`, `node_memory_allocation_mb`. `group` conflicts with `node_` and `members_` arguments. Either members, node, or group arguments have to be provided. - `name` - (Required, String) A descriptive name that is used to identify the database instance. The name must not include spaces. - `plan` - (Required, Forces new resource, String) The name of the service plan that you choose for your instance. All databases use `standard`. `enterprise` is supported only for elasticsearch (`databases-for-elasticsearch`), cassandra (`databases-for-cassandra`), and mongodb(`databases-for-mongodb`) -* `plan_validation` - (Optional, bool) Enable or disable validating the database parameters for elasticsearch and postgres (more coming soon) during the plan phase. If not specified defaults to true. - `point_in_time_recovery_deployment_id` - (Optional, String) The ID of the source deployment that you want to recover back to. - `point_in_time_recovery_time` - (Optional, String) The timestamp in UTC format that you want to restore to. To retrieve the timestamp, run the `ibmcloud cdb postgresql earliest-pitr-timestamp ` command. To restore to the latest available time, use a blank string `""` as the timestamp. For more information, see [Point-in-time Recovery](https://cloud.ibm.com/docs/databases-for-postgresql?topic=databases-for-postgresql-pitr). - `remote_leader_id` - (Optional, String) A CRN of the leader database to make the replica(read-only) deployment. The leader database is created by a database deployment with the same service ID. A read-only replica is set up to replicate all of your data from the leader deployment to the replica deployment by using asynchronous replication. For more information, see [Configuring Read-only Replicas](https://cloud.ibm.com/docs/databases-for-postgresql?topic=databases-for-postgresql-read-only-replicas). From aeb07fa63809422617eacea2a30779dfbf5faa6f Mon Sep 17 00:00:00 2001 From: Brian Gleeson Date: Fri, 27 Oct 2023 10:17:01 +0100 Subject: [PATCH 11/58] fix(tekton): update CD Go SDK version --- go.mod | 2 +- go.sum | 4 ++-- website/docs/r/cd_tekton_pipeline_trigger.html.markdown | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index e02d593965..ab6b42847b 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/IBM/cloudant-go-sdk v0.0.43 github.com/IBM/code-engine-go-sdk v0.0.0-20230606173928-4863db061918 github.com/IBM/container-registry-go-sdk v1.1.0 - github.com/IBM/continuous-delivery-go-sdk v1.2.0 + github.com/IBM/continuous-delivery-go-sdk v1.2.1 github.com/IBM/event-notifications-go-admin-sdk v0.2.7 github.com/IBM/eventstreams-go-sdk v1.4.0 github.com/IBM/go-sdk-core/v3 v3.2.4 diff --git a/go.sum b/go.sum index 9eb528a9f1..62bac6cdb4 100644 --- a/go.sum +++ b/go.sum @@ -125,8 +125,8 @@ github.com/IBM/code-engine-go-sdk v0.0.0-20230606173928-4863db061918 h1:RfHezAVs github.com/IBM/code-engine-go-sdk v0.0.0-20230606173928-4863db061918/go.mod h1:IP6U/1NxgxzPeYdyiEwMaZyzelTw82JGHWl7bY78eQM= github.com/IBM/container-registry-go-sdk v1.1.0 h1:sYyknIod8R4RJZQqAheiduP6wbSTphE9Ag8ho28yXjc= github.com/IBM/container-registry-go-sdk v1.1.0/go.mod h1:4TwsCnQtVfZ4Vkapy/KPvQBKFc3VOyUZYkwRU4FTPrs= -github.com/IBM/continuous-delivery-go-sdk v1.2.0 h1:FcgB5EvVrZLUnyR4S/mBocHHo9gJ5IQkSlCa6nqmr2A= -github.com/IBM/continuous-delivery-go-sdk v1.2.0/go.mod h1:oW51tS5/MDCcEM7lUvjK1H9GFC/oKsRbyYfmvGyMGmw= +github.com/IBM/continuous-delivery-go-sdk v1.2.1 h1:MVclWmjW6LevbYgrA7PGJzS+Dmqy3/JBYUpBp/ct+Vk= +github.com/IBM/continuous-delivery-go-sdk v1.2.1/go.mod h1:oW51tS5/MDCcEM7lUvjK1H9GFC/oKsRbyYfmvGyMGmw= github.com/IBM/event-notifications-go-admin-sdk v0.2.7 h1:Y6YPiXZO3/oAhs7rY6ekowJAsf9J05g2UFq3wjFkuCs= github.com/IBM/event-notifications-go-admin-sdk v0.2.7/go.mod h1:iI6/TJt4GQBDsl8NYzoIYGnsNjMG0kOVIEl7mcM5v1E= github.com/IBM/eventstreams-go-sdk v1.2.0 h1:eP0afHArMGjwhGqvZAhhu/3EDKRch2JehpveqF1TUjs= diff --git a/website/docs/r/cd_tekton_pipeline_trigger.html.markdown b/website/docs/r/cd_tekton_pipeline_trigger.html.markdown index 166de62a72..123e19dc6e 100644 --- a/website/docs/r/cd_tekton_pipeline_trigger.html.markdown +++ b/website/docs/r/cd_tekton_pipeline_trigger.html.markdown @@ -15,13 +15,12 @@ Create, update, and delete cd_tekton_pipeline_triggers with this resource. ```hcl resource "ibm_cd_tekton_pipeline_trigger" "cd_tekton_pipeline_trigger_instance" { event_listener = "pr-listener" - events = ["push", "pull_request" ] max_concurrent_runs = 3 name = "Manual Trigger" pipeline_id = "94619026-912b-4d92-8f51-6c74f0692d90" type = "manual" worker { - id = "public" + id = "public" } } ``` From 88f159390d354225026bf57d5bf10e2d7abbf179 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 27 Oct 2023 07:55:37 -0500 Subject: [PATCH 12/58] SCC: Adding updates to the scc resources/datasources (#4865) * SCC: Adding updates to the scc resources/datasources * Updates to scc profile go and profile_attachment md - Added to a TODO to verify all default-parameters are present - Changed the formattinf for the profile_attachment markdown * fixed the testing * go mod update * changing scc_profile.Controls back to Required --------- Co-authored-by: Timothy-Yao --- go.mod | 11 +------- go.sum | 22 ++-------------- ...source_ibm_scc_provider_type_collection.go | 5 ++-- ...e_ibm_scc_provider_type_collection_test.go | 7 +++--- ibm/service/scc/resource_ibm_scc_profile.go | 25 +++++++++++-------- .../scc/resource_ibm_scc_profile_test.go | 4 +++ .../docs/d/scc_control_library.html.markdown | 2 +- .../d/scc_instance_settings.html.markdown | 1 + .../docs/d/scc_latest_reports.html.markdown | 2 +- website/docs/d/scc_profile.html.markdown | 2 +- .../d/scc_profile_attachment.html.markdown | 2 +- .../docs/d/scc_provider_type.html.markdown | 2 +- ...scc_provider_type_collection.html.markdown | 2 +- .../scc_provider_type_instance.html.markdown | 2 +- website/docs/d/scc_report.html.markdown | 2 +- .../docs/d/scc_report_controls.html.markdown | 2 +- .../d/scc_report_evaluations.html.markdown | 2 +- .../docs/d/scc_report_resources.html.markdown | 2 +- website/docs/d/scc_report_rule.html.markdown | 2 +- .../docs/d/scc_report_summary.html.markdown | 2 +- website/docs/d/scc_report_tags.html.markdown | 2 +- .../scc_report_violation_drift.html.markdown | 2 +- website/docs/d/scc_rule.html.markdown | 2 +- .../docs/r/scc_control_library.html.markdown | 2 +- website/docs/r/scc_profile.html.markdown | 2 +- .../r/scc_profile_attachment.html.markdown | 8 +++--- .../scc_provider_type_instance.html.markdown | 2 +- website/docs/r/scc_rule.html.markdown | 2 +- 28 files changed, 55 insertions(+), 68 deletions(-) diff --git a/go.mod b/go.mod index ab6b42847b..e475397e2d 100644 --- a/go.mod +++ b/go.mod @@ -27,7 +27,7 @@ require ( github.com/IBM/platform-services-go-sdk v0.52.0 github.com/IBM/project-go-sdk v0.0.10 github.com/IBM/push-notifications-go-sdk v0.0.0-20210310100607-5790b96c47f5 - github.com/IBM/scc-go-sdk/v5 v5.1.2 + github.com/IBM/scc-go-sdk/v5 v5.1.3 github.com/IBM/schematics-go-sdk v0.2.2 github.com/IBM/secrets-manager-go-sdk/v2 v2.0.1 github.com/IBM/vpc-beta-go-sdk v0.6.0 @@ -70,7 +70,6 @@ require ( require ( cloud.google.com/go/kms v1.10.1 // indirect cloud.google.com/go/monitoring v1.13.0 // indirect - github.com/Bowery/prompt v0.0.0-20190916142128-fa8279994f75 // indirect github.com/Logicalis/asn1 v0.0.0-20190312173541-d60463189a56 // indirect github.com/PromonLogicalis/asn1 v0.0.0-20190312173541-d60463189a56 // indirect github.com/agext/levenshtein v1.2.2 // indirect @@ -87,7 +86,6 @@ require ( github.com/coreos/pkg v0.0.0-20220810130054-c7d1c02cb6cf // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/dchest/bcrypt_pbkdf v0.0.0-20150205184540-83f37f9c154a // indirect - github.com/dchest/safefile v0.0.0-20151022103144-855e8d98f185 // indirect github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect github.com/eapache/go-resiliency v1.4.0 // indirect github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 // indirect @@ -119,7 +117,6 @@ require ( github.com/google/gnostic v0.6.9 // indirect github.com/google/go-querystring v1.1.0 // indirect github.com/google/gofuzz v1.2.0 // indirect - github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-checkpoint v0.5.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect @@ -160,7 +157,6 @@ require ( github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/kardianos/govendor v1.0.9 // indirect github.com/klauspost/compress v1.16.7 // indirect github.com/kube-object-storage/lib-bucket-provisioner v0.0.0-20221122204822-d1a8c34382f1 // indirect github.com/leodido/go-urn v1.2.3 // indirect @@ -172,8 +168,6 @@ require ( github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-testing-interface v1.14.1 // indirect github.com/mitchellh/go-wordwrap v1.0.0 // indirect - github.com/mitchellh/gox v1.0.1 // indirect - github.com/mitchellh/iochan v1.0.0 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/moby/spdystream v0.2.0 // indirect @@ -214,9 +208,6 @@ require ( golang.org/x/term v0.13.0 // indirect golang.org/x/text v0.13.0 // indirect golang.org/x/time v0.3.0 // indirect - golang.org/x/tools v0.12.0 // indirect - golang.org/x/tools/cmd/cover v0.1.0-deprecated // indirect - golang.org/x/tools/go/vcs v0.1.0-deprecated // indirect gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19 // indirect diff --git a/go.sum b/go.sum index 62bac6cdb4..256d47b73e 100644 --- a/go.sum +++ b/go.sum @@ -93,8 +93,6 @@ github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZ github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk= github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUMfuitfgcfuo= github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= -github.com/Bowery/prompt v0.0.0-20190916142128-fa8279994f75 h1:xGHheKK44eC6K0u5X+DZW/fRaR1LnDdqPHMZMWx5fv8= -github.com/Bowery/prompt v0.0.0-20190916142128-fa8279994f75/go.mod h1:4/6eNcqZ09BZ9wLK3tZOjBA1nDj+B0728nlX5YRlSmQ= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/toml v1.2.0 h1:Rt8g24XnyGTyglgET/PRUNlrUeu9F5L+7FilkXfZgs0= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= @@ -129,8 +127,6 @@ github.com/IBM/continuous-delivery-go-sdk v1.2.1 h1:MVclWmjW6LevbYgrA7PGJzS+Dmqy github.com/IBM/continuous-delivery-go-sdk v1.2.1/go.mod h1:oW51tS5/MDCcEM7lUvjK1H9GFC/oKsRbyYfmvGyMGmw= github.com/IBM/event-notifications-go-admin-sdk v0.2.7 h1:Y6YPiXZO3/oAhs7rY6ekowJAsf9J05g2UFq3wjFkuCs= github.com/IBM/event-notifications-go-admin-sdk v0.2.7/go.mod h1:iI6/TJt4GQBDsl8NYzoIYGnsNjMG0kOVIEl7mcM5v1E= -github.com/IBM/eventstreams-go-sdk v1.2.0 h1:eP0afHArMGjwhGqvZAhhu/3EDKRch2JehpveqF1TUjs= -github.com/IBM/eventstreams-go-sdk v1.2.0/go.mod h1:2tuAxaYLctfqfr5jvyqSrxxEQGMwYPm3yJGWSj85YVQ= github.com/IBM/eventstreams-go-sdk v1.4.0 h1:yS/Ns29sBOe8W2tynQmz9HTKqQZ0ckse4Py5Oy/F2rM= github.com/IBM/eventstreams-go-sdk v1.4.0/go.mod h1:2tuAxaYLctfqfr5jvyqSrxxEQGMwYPm3yJGWSj85YVQ= github.com/IBM/go-sdk-core/v3 v3.0.0/go.mod h1:JI5NS2+iCoY/D8Oq3JNEZNA7qO42agu6fnaUmDsRcJA= @@ -167,8 +163,8 @@ github.com/IBM/push-notifications-go-sdk v0.0.0-20210310100607-5790b96c47f5 h1:N github.com/IBM/push-notifications-go-sdk v0.0.0-20210310100607-5790b96c47f5/go.mod h1:b07XHUVh0XYnQE9s2mqgjYST1h9buaQNqN4EcKhOsX0= github.com/IBM/sarama v1.41.2 h1:ZDBZfGPHAD4uuAtSv4U22fRZBgst0eEwGFzLj0fb85c= github.com/IBM/sarama v1.41.2/go.mod h1:xdpu7sd6OE1uxNdjYTSKUfY8FaKkJES9/+EyjSgiGQk= -github.com/IBM/scc-go-sdk/v5 v5.1.2 h1:9axGtNlP3bHhoE9yJgCuc+g5/VdyhYqfhZ5oS3ovCFI= -github.com/IBM/scc-go-sdk/v5 v5.1.2/go.mod h1:YtAVlzq10bwR82QX4ZavhDIwa1s85RuVO9N/KmXVcuk= +github.com/IBM/scc-go-sdk/v5 v5.1.3 h1:8zqJx/HgChTlMaC21HzthIR4HbFkuJ3dR/D68254jRg= +github.com/IBM/scc-go-sdk/v5 v5.1.3/go.mod h1:YtAVlzq10bwR82QX4ZavhDIwa1s85RuVO9N/KmXVcuk= github.com/IBM/schematics-go-sdk v0.2.2 h1:8S3hoVLzF/ZRgWDaLqwHnLmZvlEBHCKgHszmMh7yD2E= github.com/IBM/schematics-go-sdk v0.2.2/go.mod h1:Tw2OSAPdpC69AxcwoyqcYYaGTTW6YpERF9uNEU+BFRQ= github.com/IBM/secrets-manager-go-sdk/v2 v2.0.1 h1:0Ouu31RsuOLdH26oNsnPErEjctWTplLEIXxwExnTZT0= @@ -364,8 +360,6 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1 github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dchest/bcrypt_pbkdf v0.0.0-20150205184540-83f37f9c154a h1:saTgr5tMLFnmy/yg3qDTft4rE5DY2uJ/cCxCe3q0XTU= github.com/dchest/bcrypt_pbkdf v0.0.0-20150205184540-83f37f9c154a/go.mod h1:Bw9BbhOJVNR+t0jCqx2GC6zv0TGBsShs56Y3gfSCvl0= -github.com/dchest/safefile v0.0.0-20151022103144-855e8d98f185 h1:3T8ZyTDp5QxTx3NU48JVb2u+75xc040fofcBaN+6jPA= -github.com/dchest/safefile v0.0.0-20151022103144-855e8d98f185/go.mod h1:cFRxtTwTOJkz2x3rQUNCYKWC93yP1VKjR8NUhqFxZNU= github.com/denisenkom/go-mssqldb v0.0.0-20190412130859-3b1d194e553a/go.mod h1:zAg7JM8CkOJ43xKXIj7eRO9kmWm/TW578qo+oDO6tuM= github.com/denverdino/aliyungo v0.0.0-20190125010748-a747050bb1ba h1:p6poVbjHDkKa+wtC8frBMwQtT3BmqGYBjzMwJ63tuR4= github.com/dgryski/go-metro v0.0.0-20180109044635-280f6062b5bc h1:8WFBn63wegobsYAX0YjD+8suexZDga5CctH4CCTx2+8= @@ -741,8 +735,6 @@ github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20230510103437-eeec1cb781c3 h1:2XF1Vzq06X+inNqgJ9tRnGuw+ZVCB3FazXODD6JE1R8= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= -github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -892,7 +884,6 @@ github.com/hashicorp/go-uuid v1.0.2-0.20191001231223-f32f5fe8d6a8/go.mod h1:6SBZ github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-version v1.0.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.5.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= @@ -1077,8 +1068,6 @@ github.com/jtolds/gls v4.2.1+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVY github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= -github.com/kardianos/govendor v1.0.9 h1:WOH3FcVI9eOgnIZYg96iwUwrL4eOVx+aQ66oyX2R8Yc= -github.com/kardianos/govendor v1.0.9/go.mod h1:yvmR6q9ZZ7nSF5Wvh40v0wfP+3TwwL8zYQp+itoZSVM= github.com/karrick/godirwalk v1.8.0/go.mod h1:H5KPZjojv4lE+QYImBI8xVtrBRgYrIVsaRPx4tDPEn4= github.com/karrick/godirwalk v1.10.3/go.mod h1:RoGL9dQei4vP9ilrpETWE8CLOZ1kiN0LhBygSwrAsHA= github.com/kelseyhightower/envconfig v1.3.0/go.mod h1:cccZRl6mQpaq41TPp5QxidR+Sa3axMbJDNb//FQX6Gg= @@ -1193,10 +1182,7 @@ github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp github.com/mitchellh/go-wordwrap v1.0.0 h1:6GlHJ/LTGMrIJbwgdqdl2eEH8o+Exx/0m8ir9Gns0u4= github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= -github.com/mitchellh/gox v1.0.1 h1:x0jD3dcHk9a9xPSDN6YEL4xL6Qz0dvNYm8yZqui5chI= -github.com/mitchellh/gox v1.0.1/go.mod h1:ED6BioOGXMswlXa2zxfh/xdd5QhwYliBFn9V18Ap4z4= github.com/mitchellh/hashstructure v1.0.0/go.mod h1:QjSHrPWS+BGUVBYkbTZWEnOh3G1DutKwClXU/ABz6AQ= -github.com/mitchellh/iochan v1.0.0 h1:C+X3KsSTLFVBr/tK1eYN/vs4rJcvsiLU338UhYPJWeY= github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= @@ -2074,10 +2060,6 @@ golang.org/x/tools v0.9.1/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc= golang.org/x/tools v0.9.3/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc= golang.org/x/tools v0.12.0 h1:YW6HUoUmYBpwSgyaGaZq1fHjrBjX1rlpZ54T6mu2kss= golang.org/x/tools v0.12.0/go.mod h1:Sc0INKfu04TlqNoRA1hgpFZbhYXHPr4V5DzpSBTPqQM= -golang.org/x/tools/cmd/cover v0.1.0-deprecated h1:Rwy+mWYz6loAF+LnG1jHG/JWMHRMMC2/1XX3Ejkx9lA= -golang.org/x/tools/cmd/cover v0.1.0-deprecated/go.mod h1:hMDiIvlpN1NoVgmjLjUJE9tMHyxHjFX7RuQ+rW12mSA= -golang.org/x/tools/go/vcs v0.1.0-deprecated h1:cOIJqWBl99H1dH5LWizPa+0ImeeJq3t3cJjaeOWUAL4= -golang.org/x/tools/go/vcs v0.1.0-deprecated/go.mod h1:zUrvATBAvEI9535oC0yWYsLsHIV4Z7g63sNPVMtuBy8= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/ibm/service/scc/data_source_ibm_scc_provider_type_collection.go b/ibm/service/scc/data_source_ibm_scc_provider_type_collection.go index 6cd8ad1e0f..35c21de13d 100644 --- a/ibm/service/scc/data_source_ibm_scc_provider_type_collection.go +++ b/ibm/service/scc/data_source_ibm_scc_provider_type_collection.go @@ -19,7 +19,7 @@ import ( ) func DataSourceIbmSccProviderTypeCollection() *schema.Resource { - return &schema.Resource{ + return AddSchemaData(&schema.Resource{ ReadContext: dataSourceIbmSccProviderTypeCollectionRead, Schema: map[string]*schema.Schema{ @@ -115,7 +115,7 @@ func DataSourceIbmSccProviderTypeCollection() *schema.Resource { }, }, }, - } + }) } func dataSourceIbmSccProviderTypeCollectionRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { @@ -125,6 +125,7 @@ func dataSourceIbmSccProviderTypeCollectionRead(context context.Context, d *sche } listProviderTypesOptions := &securityandcompliancecenterapiv3.ListProviderTypesOptions{} + listProviderTypesOptions.SetInstanceID(d.Get("instance_id").(string)) providerTypesCollection, response, err := securityAndComplianceCenterApIsClient.ListProviderTypesWithContext(context, listProviderTypesOptions) if err != nil { diff --git a/ibm/service/scc/data_source_ibm_scc_provider_type_collection_test.go b/ibm/service/scc/data_source_ibm_scc_provider_type_collection_test.go index b6a6969e9b..8838d2a0d0 100644 --- a/ibm/service/scc/data_source_ibm_scc_provider_type_collection_test.go +++ b/ibm/service/scc/data_source_ibm_scc_provider_type_collection_test.go @@ -18,7 +18,7 @@ func TestAccIbmSccProviderTypeCollectionDataSourceBasic(t *testing.T) { Providers: acc.TestAccProviders, Steps: []resource.TestStep{ resource.TestStep{ - Config: testAccCheckIbmSccProviderTypeCollectionDataSourceConfigBasic(), + Config: testAccCheckIbmSccProviderTypeCollectionDataSourceConfigBasic(acc.SccInstanceID), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttrSet("data.ibm_scc_provider_type_collection.scc_provider_type_collection_instance", "id"), ), @@ -27,9 +27,10 @@ func TestAccIbmSccProviderTypeCollectionDataSourceBasic(t *testing.T) { }) } -func testAccCheckIbmSccProviderTypeCollectionDataSourceConfigBasic() string { +func testAccCheckIbmSccProviderTypeCollectionDataSourceConfigBasic(instanceID string) string { return fmt.Sprintf(` data "ibm_scc_provider_type_collection" "scc_provider_type_collection_instance" { + instance_id = "%s" } - `) + `, instanceID) } diff --git a/ibm/service/scc/resource_ibm_scc_profile.go b/ibm/service/scc/resource_ibm_scc_profile.go index 0ba57cdf76..c48be7df14 100644 --- a/ibm/service/scc/resource_ibm_scc_profile.go +++ b/ibm/service/scc/resource_ibm_scc_profile.go @@ -58,12 +58,12 @@ func ResourceIbmSccProfile() *schema.Resource { Schema: map[string]*schema.Schema{ "control_library_id": { Type: schema.TypeString, - Optional: true, + Required: true, Description: "The ID of the control library that contains the profile.", }, "control_id": { Type: schema.TypeString, - Optional: true, + Required: true, Description: "The unique ID of the control inside the control library.", }, "control_library_version": { @@ -267,6 +267,7 @@ func ResourceIbmSccProfile() *schema.Resource { "profile_version": { Type: schema.TypeString, Computed: true, + Optional: true, Description: "The version status of the profile.", }, "version_group_label": { @@ -274,11 +275,6 @@ func ResourceIbmSccProfile() *schema.Resource { Computed: true, Description: "The version group label of the profile.", }, - "instance_id": { - Type: schema.TypeString, - Computed: true, - Description: "The instance ID.", - }, "latest": { Type: schema.TypeBool, Computed: true, @@ -372,6 +368,8 @@ func resourceIbmSccProfileCreate(context context.Context, d *schema.ResourceData bodyModelMap["profile_type"] = "custom" if _, ok := d.GetOk("controls"); ok { bodyModelMap["controls"] = d.Get("controls") + } else { + bodyModelMap["controls"] = []interface{}{} } if _, ok := d.GetOk("default_parameters"); ok { bodyModelMap["default_parameters"] = d.Get("default_parameters") @@ -553,7 +551,9 @@ func resourceIbmSccProfileUpdate(context context.Context, d *schema.ResourceData if d.HasChange("profile_description") { hasChange = true } - + if d.HasChange("profile_version") { + hasChange = true + } if hasChange { if _, ok := d.GetOk("controls"); ok { bodyModelMap["controls"] = d.Get("controls") @@ -567,14 +567,16 @@ func resourceIbmSccProfileUpdate(context context.Context, d *schema.ResourceData if _, ok := d.GetOk("profile_description"); ok { bodyModelMap["profile_description"] = d.Get("profile_description") } - + if _, ok := d.GetOk("profile_version"); ok { + bodyModelMap["profile_version"] = d.Get("profile_version") + } convertedModel, err := resourceIbmSccProfileMapToReplaceProfileOptions(bodyModelMap) if err != nil { return diag.FromErr(err) } replaceProfileOptions = convertedModel - replaceProfileOptions.SetProfileID(d.Id()) + replaceProfileOptions.SetProfileID(d.Get("profile_id").(string)) _, response, err := securityandcompliancecenterapiClient.ReplaceProfileWithContext(context, replaceProfileOptions) if err != nil { log.Printf("[DEBUG] ReplaceProfileWithContext failed %s\n%s", err, response) @@ -670,6 +672,8 @@ func resourceIbmSccProfileMapToProfilePrototype(modelMap map[string]interface{}) } } model.DefaultParameters = defaultParameters + // TODO: Validate all the Controls have default Parameters for any parameters found + // Use the instance_id associated return model, nil } @@ -678,6 +682,7 @@ func resourceIbmSccProfileMapToReplaceProfileOptions(modelMap map[string]interfa model.ProfileName = core.StringPtr(modelMap["profile_name"].(string)) model.ProfileDescription = core.StringPtr(modelMap["profile_description"].(string)) model.ProfileType = core.StringPtr(modelMap["profile_type"].(string)) + model.ProfileVersion = core.StringPtr(modelMap["profile_version"].(string)) controls := []securityandcompliancecenterapiv3.ProfileControlsPrototype{} for _, controlsItem := range modelMap["controls"].([]interface{}) { controlsItemModel, err := resourceIbmSccProfileMapToProfileControlsPrototype(controlsItem.(map[string]interface{})) diff --git a/ibm/service/scc/resource_ibm_scc_profile_test.go b/ibm/service/scc/resource_ibm_scc_profile_test.go index 7823df8ad0..0708724cbd 100644 --- a/ibm/service/scc/resource_ibm_scc_profile_test.go +++ b/ibm/service/scc/resource_ibm_scc_profile_test.go @@ -59,6 +59,7 @@ func TestAccIbmSccProfileAllArgs(t *testing.T) { profileType := "custom" profileNameUpdate := profileName profileDescriptionUpdate := profileDescription + profileVersion := "0.0.0" profileTypeUpdate := profileType resource.Test(t, resource.TestCase{ @@ -73,6 +74,7 @@ func TestAccIbmSccProfileAllArgs(t *testing.T) { resource.TestCheckResourceAttr("ibm_scc_profile.scc_profile_instance", "profile_name", profileName), resource.TestCheckResourceAttr("ibm_scc_profile.scc_profile_instance", "profile_description", profileDescription), resource.TestCheckResourceAttr("ibm_scc_profile.scc_profile_instance", "profile_type", profileType), + resource.TestCheckResourceAttr("ibm_scc_profile.scc_profile_instance", "profile_version", profileVersion), ), }, resource.TestStep{ @@ -81,6 +83,7 @@ func TestAccIbmSccProfileAllArgs(t *testing.T) { resource.TestCheckResourceAttr("ibm_scc_profile.scc_profile_instance", "profile_name", profileNameUpdate), resource.TestCheckResourceAttr("ibm_scc_profile.scc_profile_instance", "profile_description", profileDescriptionUpdate), resource.TestCheckResourceAttr("ibm_scc_profile.scc_profile_instance", "profile_type", profileTypeUpdate), + resource.TestCheckResourceAttr("ibm_scc_profile.scc_profile_instance", "profile_version", profileVersion), ), }, resource.TestStep{ @@ -197,6 +200,7 @@ func testAccCheckIbmSccProfileConfig(instanceID string, profileName string, prof profile_name = "%s" profile_description = "%s" profile_type = "%s" + profile_version = "0.0.0" controls { control_library_id = resource.ibm_scc_control_library.scc_control_library_instance.control_library_id control_id = resource.ibm_scc_control_library.scc_control_library_instance.controls[0].control_id diff --git a/website/docs/d/scc_control_library.html.markdown b/website/docs/d/scc_control_library.html.markdown index 20db99ed77..fb1273466a 100644 --- a/website/docs/d/scc_control_library.html.markdown +++ b/website/docs/d/scc_control_library.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Retrieve information about a scc_control_library from a read-only data source. Then, you can reference the fields of the data source in other resources within the same configuration by using interpolation syntax. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage diff --git a/website/docs/d/scc_instance_settings.html.markdown b/website/docs/d/scc_instance_settings.html.markdown index 4c2d84e148..ce53c59171 100644 --- a/website/docs/d/scc_instance_settings.html.markdown +++ b/website/docs/d/scc_instance_settings.html.markdown @@ -10,6 +10,7 @@ subcategory: "Security and Compliance Center" Provides a read-only data source to retrieve information about scc_instance_settings. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax. +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage diff --git a/website/docs/d/scc_latest_reports.html.markdown b/website/docs/d/scc_latest_reports.html.markdown index 8fc6676f60..2d62fb41f9 100644 --- a/website/docs/d/scc_latest_reports.html.markdown +++ b/website/docs/d/scc_latest_reports.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Retrieve information about the latest reports from a read-only data source. Then, you can reference the fields of the data source in other resources within the same configuration by using interpolation syntax. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage diff --git a/website/docs/d/scc_profile.html.markdown b/website/docs/d/scc_profile.html.markdown index 521f2f2316..73983c2183 100644 --- a/website/docs/d/scc_profile.html.markdown +++ b/website/docs/d/scc_profile.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Retrieve information about a profile from a read-only data source. Then, you can reference the fields of the data source in other resources within the same configuration by using interpolation syntax. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage diff --git a/website/docs/d/scc_profile_attachment.html.markdown b/website/docs/d/scc_profile_attachment.html.markdown index ae30e2d3fb..15b0f39023 100644 --- a/website/docs/d/scc_profile_attachment.html.markdown +++ b/website/docs/d/scc_profile_attachment.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Retrieve information about a profile attachment from a read-only data source. Then, you can reference the fields of the data source in other resources within the same configuration by using interpolation syntax. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage diff --git a/website/docs/d/scc_provider_type.html.markdown b/website/docs/d/scc_provider_type.html.markdown index cc2c8d4d4f..55b13ba210 100644 --- a/website/docs/d/scc_provider_type.html.markdown +++ b/website/docs/d/scc_provider_type.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Retrieve information about a provider type from a read-only data source. Then, you can reference the fields of the data source in other resources within the same configuration by using interpolation syntax. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage diff --git a/website/docs/d/scc_provider_type_collection.html.markdown b/website/docs/d/scc_provider_type_collection.html.markdown index 96d9c51e2e..96dece472f 100644 --- a/website/docs/d/scc_provider_type_collection.html.markdown +++ b/website/docs/d/scc_provider_type_collection.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Retrieve information about a provider type collection from a read-only data source. Then, you can reference the fields of the data source in other resources within the same configuration by using interpolation syntax. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage diff --git a/website/docs/d/scc_provider_type_instance.html.markdown b/website/docs/d/scc_provider_type_instance.html.markdown index 6f5dc1b7b8..044c336c67 100644 --- a/website/docs/d/scc_provider_type_instance.html.markdown +++ b/website/docs/d/scc_provider_type_instance.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Retrieve information about a provider type instance from a read-only data source. Then, you can reference the fields of the data source in other resources within the same configuration by using interpolation syntax. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage diff --git a/website/docs/d/scc_report.html.markdown b/website/docs/d/scc_report.html.markdown index 576c99daea..15aa7fedd9 100644 --- a/website/docs/d/scc_report.html.markdown +++ b/website/docs/d/scc_report.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Retrieve information about a report from a read-only data source. Then, you can reference the fields of the data source in other resources within the same configuration by using interpolation syntax. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage diff --git a/website/docs/d/scc_report_controls.html.markdown b/website/docs/d/scc_report_controls.html.markdown index e36ab1805b..8bf2a1df6f 100644 --- a/website/docs/d/scc_report_controls.html.markdown +++ b/website/docs/d/scc_report_controls.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Retrieve information about report controls from a read-only data source. Then, you can reference the fields of the data source in other resources within the same configuration by using interpolation syntax. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage diff --git a/website/docs/d/scc_report_evaluations.html.markdown b/website/docs/d/scc_report_evaluations.html.markdown index e67c25a800..8050494e04 100644 --- a/website/docs/d/scc_report_evaluations.html.markdown +++ b/website/docs/d/scc_report_evaluations.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Retrieve information about report evaluations from a read-only data source. Then, you can reference the fields of the data source in other resources within the same configuration by using interpolation syntax. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage diff --git a/website/docs/d/scc_report_resources.html.markdown b/website/docs/d/scc_report_resources.html.markdown index 340cf9d7f5..4cd1cc270b 100644 --- a/website/docs/d/scc_report_resources.html.markdown +++ b/website/docs/d/scc_report_resources.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Retrieve information about report resources from a read-only data source. Then, you can reference the fields of the data source in other resources within the same configuration by using interpolation syntax. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage diff --git a/website/docs/d/scc_report_rule.html.markdown b/website/docs/d/scc_report_rule.html.markdown index f579ad4380..aee94a5909 100644 --- a/website/docs/d/scc_report_rule.html.markdown +++ b/website/docs/d/scc_report_rule.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Retrieve information about a report rule from a read-only data source. Then, you can reference the fields of the data source in other resources within the same configuration by using interpolation syntax. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage diff --git a/website/docs/d/scc_report_summary.html.markdown b/website/docs/d/scc_report_summary.html.markdown index f48e4615ba..1c2348268d 100644 --- a/website/docs/d/scc_report_summary.html.markdown +++ b/website/docs/d/scc_report_summary.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Retrieve information about a report summary from a read-only data source. Then, you can reference the fields of the data source in other resources within the same configuration by using interpolation syntax. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage diff --git a/website/docs/d/scc_report_tags.html.markdown b/website/docs/d/scc_report_tags.html.markdown index dbc8b0e175..9c10d98e13 100644 --- a/website/docs/d/scc_report_tags.html.markdown +++ b/website/docs/d/scc_report_tags.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Retrieve information about report tags from a read-only data source. Then, you can reference the fields of the data source in other resources within the same configuration by using interpolation syntax. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage diff --git a/website/docs/d/scc_report_violation_drift.html.markdown b/website/docs/d/scc_report_violation_drift.html.markdown index d6738d4404..14e0d30466 100644 --- a/website/docs/d/scc_report_violation_drift.html.markdown +++ b/website/docs/d/scc_report_violation_drift.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Retrieve information about a report violation drift from a read-only data source. Then, yo can reference the fields of the data source in other resources within the same configuration by using interpolation syntax. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage diff --git a/website/docs/d/scc_rule.html.markdown b/website/docs/d/scc_rule.html.markdown index f9728bb5b3..5e697578fa 100644 --- a/website/docs/d/scc_rule.html.markdown +++ b/website/docs/d/scc_rule.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Retrieve information about a rule from a read-only data source. Then, you can reference the fields of the data source in other resources within the same configuration by using interpolation syntax. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage diff --git a/website/docs/r/scc_control_library.html.markdown b/website/docs/r/scc_control_library.html.markdown index 201b87552b..98ef982637 100644 --- a/website/docs/r/scc_control_library.html.markdown +++ b/website/docs/r/scc_control_library.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Create, update, and delete control libraries by using this resource. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage diff --git a/website/docs/r/scc_profile.html.markdown b/website/docs/r/scc_profile.html.markdown index b0360fe701..9f1d94cc57 100644 --- a/website/docs/r/scc_profile.html.markdown +++ b/website/docs/r/scc_profile.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Create, update, and delete profiles with this resource. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage diff --git a/website/docs/r/scc_profile_attachment.html.markdown b/website/docs/r/scc_profile_attachment.html.markdown index 064429b657..d821939540 100644 --- a/website/docs/r/scc_profile_attachment.html.markdown +++ b/website/docs/r/scc_profile_attachment.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Create, update, and delete profile attachments with this resource. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage @@ -58,9 +58,11 @@ Nested schema for **scope**: * `properties` - (List) The properties supported for scoping by this environment. * Constraints: The maximum length is `8` items. The minimum length is `0` items. Nested schema for **properties**: - * `name` - (String) The name of the property. + -> NOTE: Defining the `scope_type` value must be either `account`, `account.resource_group`, `enterprise`, `enterprise.account` and `enterprise.account_group`." + -> NOTE: Defining the `scope_id` value will be the id of the `scope_type`(ex. `enterprise.account_group` will be the ID of the account_group within an enterprise) + * `name` - (Required, String) The name of the property. * Constraints: The maximum length is `64` characters. The minimum length is `2` characters. The value must match regular expression `/[A-Za-z0-9]+/`. - * `value` - (String) The value of the property. + * `value` - (Required, String) The value of the property. * Constraints: The maximum length is `64` characters. The minimum length is `2` characters. The value must match regular expression `/[A-Za-z0-9]+/`. * `notifications` - (List) The request payload of the attachment notifications. Nested schema for **notifications**: diff --git a/website/docs/r/scc_provider_type_instance.html.markdown b/website/docs/r/scc_provider_type_instance.html.markdown index 2a75e888d7..f67260edc4 100644 --- a/website/docs/r/scc_provider_type_instance.html.markdown +++ b/website/docs/r/scc_provider_type_instance.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Create, update, and delete provider type instances with this resource. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage diff --git a/website/docs/r/scc_rule.html.markdown b/website/docs/r/scc_rule.html.markdown index 322fa63013..1fbe9fbbf4 100644 --- a/website/docs/r/scc_rule.html.markdown +++ b/website/docs/r/scc_rule.html.markdown @@ -10,7 +10,7 @@ subcategory: "Security and Compliance Center" Create, update, and delete rules with this resource. -~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.ibm.com`). +~> NOTE: if you specify the `region` in the provider, that region will become the default URL. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will override any URL(ex. `export IBMCLOUD_SCC_API_ENDPOINT=https://us-south.compliance.cloud.ibm.com`). ## Example Usage From 716ed6d18d0e3c313973c59ca39d495198e8ca26 Mon Sep 17 00:00:00 2001 From: Omar Ibrahim <97538078+omaraibrahim@users.noreply.github.com> Date: Fri, 27 Oct 2023 10:26:42 -0400 Subject: [PATCH 13/58] Add support for Elasticsearch Platinum (#4712) * Initial commit for elasticsearchpl * Added Elasticsearch Platinum tests * removed plan_validation=false * updated secrets baseline and docs * migrated tests to groups and added example --- .secrets.baseline | 10 + ibm/service/database/resource_ibm_database.go | 6 +- ...bm_database_elasticsearch_platinum_test.go | 871 ++++++++++++++++++ website/docs/r/database.html.markdown | 47 +- 4 files changed, 932 insertions(+), 2 deletions(-) create mode 100644 ibm/service/database/resource_ibm_database_elasticsearch_platinum_test.go diff --git a/.secrets.baseline b/.secrets.baseline index e568372e40..abde119aa3 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -2119,6 +2119,16 @@ "verified_result": null } ], + "ibm/service/database/resource_ibm_database_elasticsearch_platinum_test.go": [ + { + "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", + "is_secret": false, + "is_verified": false, + "line_number": 779, + "type": "Secret Keyword", + "verified_result": null + } + ], "ibm/service/database/resource_ibm_database_elasticsearch_test.go": [ { "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", diff --git a/ibm/service/database/resource_ibm_database.go b/ibm/service/database/resource_ibm_database.go index d128f96c87..1cbe4913cf 100644 --- a/ibm/service/database/resource_ibm_database.go +++ b/ibm/service/database/resource_ibm_database.go @@ -838,7 +838,7 @@ func ResourceIBMICDValidator() *validate.ResourceValidator { Identifier: "plan", ValidateFunctionIdentifier: validate.ValidateAllowedStringValue, Type: validate.TypeString, - AllowedValues: "standard, enterprise, enterprise-sharding", + AllowedValues: "standard, enterprise, enterprise-sharding, platinum", Required: true}) validateSchema = append(validateSchema, validate.ValidateSchema{ @@ -916,6 +916,10 @@ func getDefaultScalingGroups(_service string, _plan string, meta interface{}) (g service = "mongodbee" } + if service == "elasticsearch" && _plan == "platinum" { + service = "elasticsearchpl" + } + if service == "mongodb" && _plan == "enterprise-sharding" { service = "mongodbees" } diff --git a/ibm/service/database/resource_ibm_database_elasticsearch_platinum_test.go b/ibm/service/database/resource_ibm_database_elasticsearch_platinum_test.go new file mode 100644 index 0000000000..1027e878da --- /dev/null +++ b/ibm/service/database/resource_ibm_database_elasticsearch_platinum_test.go @@ -0,0 +1,871 @@ +// Copyright IBM Corp. 2017, 2021 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package database_test + +import ( + "fmt" + "testing" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccIBMDatabaseInstance_ElasticsearchPlatinum_Basic(t *testing.T) { + t.Parallel() + databaseResourceGroup := "default" + var databaseInstanceOne string + rnd := fmt.Sprintf("tf-Es-%d", acctest.RandIntRange(10, 100)) + testName := rnd + name := "ibm_database." + testName + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIBMDatabaseInstanceDestroy, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMDatabaseInstanceElasticsearchPlatinumBasic(databaseResourceGroup, testName), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMDatabaseInstanceExists(name, &databaseInstanceOne), + resource.TestCheckResourceAttr(name, "name", testName), + resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), + resource.TestCheckResourceAttr(name, "plan", "platinum"), + resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "adminuser", "admin"), + resource.TestCheckResourceAttr(name, "allowlist.#", "1"), + resource.TestCheckResourceAttr(name, "users.#", "1"), + resource.TestCheckResourceAttr(name, "connectionstrings.#", "2"), + resource.TestCheckResourceAttr(name, "connectionstrings.1.name", "admin"), + resource.TestCheckResourceAttr(name, "connectionstrings.0.hosts.#", "1"), + resource.TestCheckResourceAttr(name, "connectionstrings.0.database", ""), + ), + }, + { + Config: testAccCheckIBMDatabaseInstanceElasticsearchPlatinumFullyspecified(databaseResourceGroup, testName), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMDatabaseInstanceExists(name, &databaseInstanceOne), + resource.TestCheckResourceAttr(name, "name", testName), + resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), + resource.TestCheckResourceAttr(name, "plan", "platinum"), + resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "allowlist.#", "2"), + resource.TestCheckResourceAttr(name, "users.#", "2"), + resource.TestCheckResourceAttr(name, "connectionstrings.#", "3"), + resource.TestCheckResourceAttr(name, "connectionstrings.2.name", "admin"), + ), + }, + { + Config: testAccCheckIBMDatabaseInstanceElasticsearchPlatinumReduced(databaseResourceGroup, testName), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMDatabaseInstanceExists(name, &databaseInstanceOne), + resource.TestCheckResourceAttr(name, "name", testName), + resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), + resource.TestCheckResourceAttr(name, "plan", "platinum"), + resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "18432"), + resource.TestCheckResourceAttr(name, "allowlist.#", "0"), + resource.TestCheckResourceAttr(name, "users.#", "0"), + resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), + ), + }, + { + Config: testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupMigration(databaseResourceGroup, testName), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMDatabaseInstanceExists(name, &databaseInstanceOne), + resource.TestCheckResourceAttr(name, "name", testName), + resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), + resource.TestCheckResourceAttr(name, "plan", "platinum"), + resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "18432"), + resource.TestCheckResourceAttr(name, "whitelist.#", "0"), + resource.TestCheckResourceAttr(name, "users.#", "0"), + resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), + ), + }, + // { + // ResourceName: name, + // ImportState: true, + // ImportStateVerify: true, + // }, + }, + }) +} + +func TestAccIBMDatabaseInstance_ElasticsearchPlatinum_Node(t *testing.T) { + t.Parallel() + databaseResourceGroup := "default" + var databaseInstanceOne string + rnd := fmt.Sprintf("tf-Es-%d", acctest.RandIntRange(10, 100)) + testName := rnd + name := "ibm_database." + testName + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIBMDatabaseInstanceDestroy, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeBasic(databaseResourceGroup, testName), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMDatabaseInstanceExists(name, &databaseInstanceOne), + resource.TestCheckResourceAttr(name, "name", testName), + resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), + resource.TestCheckResourceAttr(name, "plan", "platinum"), + resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "adminuser", "admin"), + resource.TestCheckResourceAttr(name, "node_count", "3"), + resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), + resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "5120"), + resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "3"), + + resource.TestCheckResourceAttr(name, "allowlist.#", "1"), + resource.TestCheckResourceAttr(name, "users.#", "1"), + resource.TestCheckResourceAttr(name, "connectionstrings.#", "2"), + resource.TestCheckResourceAttr(name, "connectionstrings.1.name", "admin"), + resource.TestCheckResourceAttr(name, "connectionstrings.0.hosts.#", "1"), + resource.TestCheckResourceAttr(name, "connectionstrings.0.database", ""), + ), + }, + { + Config: testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeFullyspecified(databaseResourceGroup, testName), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMDatabaseInstanceExists(name, &databaseInstanceOne), + resource.TestCheckResourceAttr(name, "name", testName), + resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), + resource.TestCheckResourceAttr(name, "plan", "platinum"), + resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "node_count", "3"), + resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), + resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "6144"), + resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "3"), + resource.TestCheckResourceAttr(name, "allowlist.#", "2"), + resource.TestCheckResourceAttr(name, "users.#", "2"), + resource.TestCheckResourceAttr(name, "connectionstrings.#", "3"), + resource.TestCheckResourceAttr(name, "connectionstrings.2.name", "admin"), + ), + }, + { + Config: testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeReduced(databaseResourceGroup, testName), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMDatabaseInstanceExists(name, &databaseInstanceOne), + resource.TestCheckResourceAttr(name, "name", testName), + resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), + resource.TestCheckResourceAttr(name, "plan", "platinum"), + resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "node_count", "3"), + resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), + resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "6144"), + resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "3"), + resource.TestCheckResourceAttr(name, "allowlist.#", "0"), + resource.TestCheckResourceAttr(name, "users.#", "0"), + resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), + ), + }, + { + Config: testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeScaleOut(databaseResourceGroup, testName), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMDatabaseInstanceExists(name, &databaseInstanceOne), + resource.TestCheckResourceAttr(name, "name", testName), + resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), + resource.TestCheckResourceAttr(name, "plan", "platinum"), + resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "node_count", "4"), + resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), + resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "6144"), + resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "3"), + resource.TestCheckResourceAttr(name, "allowlist.#", "0"), + resource.TestCheckResourceAttr(name, "users.#", "0"), + resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), + ), + }, + //{ + // ResourceName: name, + // ImportState: true, + // ImportStateVerify: true, + //}, + }, + }) +} + +func TestAccIBMDatabaseInstance_ElasticsearchPlatinum_Group(t *testing.T) { + t.Parallel() + databaseResourceGroup := "default" + var databaseInstanceOne string + rnd := fmt.Sprintf("tf-Es-%d", acctest.RandIntRange(10, 100)) + testName := rnd + name := "ibm_database." + testName + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIBMDatabaseInstanceDestroy, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupBasic(databaseResourceGroup, testName), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMDatabaseInstanceExists(name, &databaseInstanceOne), + resource.TestCheckResourceAttr(name, "name", testName), + resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), + resource.TestCheckResourceAttr(name, "plan", "platinum"), + resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "adminuser", "admin"), + resource.TestCheckResourceAttr(name, "node_count", "3"), + resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), + resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "5120"), + resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "3"), + + resource.TestCheckResourceAttr(name, "allowlist.#", "1"), + resource.TestCheckResourceAttr(name, "users.#", "1"), + resource.TestCheckResourceAttr(name, "connectionstrings.#", "2"), + resource.TestCheckResourceAttr(name, "connectionstrings.1.name", "admin"), + resource.TestCheckResourceAttr(name, "connectionstrings.0.hosts.#", "1"), + resource.TestCheckResourceAttr(name, "connectionstrings.0.database", ""), + ), + }, + { + Config: testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupFullyspecified(databaseResourceGroup, testName), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMDatabaseInstanceExists(name, &databaseInstanceOne), + resource.TestCheckResourceAttr(name, "name", testName), + resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), + resource.TestCheckResourceAttr(name, "plan", "platinum"), + resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "node_count", "3"), + resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), + resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "6144"), + resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "3"), + resource.TestCheckResourceAttr(name, "groups.0.count", "3"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "18432"), + resource.TestCheckResourceAttr(name, "groups.0.cpu.0.allocation_count", "9"), + resource.TestCheckResourceAttr(name, "allowlist.#", "2"), + resource.TestCheckResourceAttr(name, "users.#", "2"), + resource.TestCheckResourceAttr(name, "connectionstrings.#", "3"), + resource.TestCheckResourceAttr(name, "connectionstrings.2.name", "admin"), + ), + }, + { + Config: testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupReduced(databaseResourceGroup, testName), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMDatabaseInstanceExists(name, &databaseInstanceOne), + resource.TestCheckResourceAttr(name, "name", testName), + resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), + resource.TestCheckResourceAttr(name, "plan", "platinum"), + resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "node_count", "3"), + resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), + resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "6144"), + resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "3"), + resource.TestCheckResourceAttr(name, "groups.0.count", "3"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "18432"), + resource.TestCheckResourceAttr(name, "groups.0.cpu.0.allocation_count", "9"), + resource.TestCheckResourceAttr(name, "allowlist.#", "0"), + resource.TestCheckResourceAttr(name, "users.#", "0"), + resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), + ), + }, + { + Config: testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupScaleOut(databaseResourceGroup, testName), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMDatabaseInstanceExists(name, &databaseInstanceOne), + resource.TestCheckResourceAttr(name, "name", testName), + resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), + resource.TestCheckResourceAttr(name, "plan", "platinum"), + resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "node_count", "4"), + resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), + resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "6144"), + resource.TestCheckResourceAttr(name, "node_cpu_allocation_count", "3"), + resource.TestCheckResourceAttr(name, "groups.0.count", "4"), + resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "4096"), + resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "24576"), + resource.TestCheckResourceAttr(name, "groups.0.cpu.0.allocation_count", "12"), + resource.TestCheckResourceAttr(name, "allowlist.#", "0"), + resource.TestCheckResourceAttr(name, "users.#", "0"), + resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), + ), + }, + //{ + // ResourceName: name, + // ImportState: true, + // ImportStateVerify: true, + //}, + }, + }) +} + +// TestAccIBMDatabaseInstance_CreateAfterManualDestroy not required as tested by resource_instance tests + +func TestAccIBMDatabaseInstanceElasticsearchPlatinumImport(t *testing.T) { + t.Parallel() + databaseResourceGroup := "default" + var databaseInstanceOne string + serviceName := fmt.Sprintf("tf-Es-%d", acctest.RandIntRange(10, 100)) + //serviceName := "test_acc" + resourceName := "ibm_database." + serviceName + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIBMDatabaseInstanceDestroy, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMDatabaseInstanceElasticsearchPlatinumImport(databaseResourceGroup, serviceName), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMDatabaseInstanceExists(resourceName, &databaseInstanceOne), + resource.TestCheckResourceAttr(resourceName, "name", serviceName), + resource.TestCheckResourceAttr(resourceName, "service", "databases-for-elasticsearch"), + resource.TestCheckResourceAttr(resourceName, "plan", "platinum"), + resource.TestCheckResourceAttr(resourceName, "location", acc.IcdDbRegion), + ), + }, + { + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{ + "wait_time_minutes", "plan_validation"}, + }, + }, + }) +} + +// func testAccCheckIBMDatabaseInstanceDestroy(s *terraform.State) etc in resource_ibm_database_postgresql_test.go + +func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumBasic(databaseResourceGroup string, name string) string { + return fmt.Sprintf(` + data "ibm_resource_group" "test_acc" { + is_default = true + # name = "%[1]s" + } + + resource "ibm_database" "%[2]s" { + resource_group_id = data.ibm_resource_group.test_acc.id + name = "%[2]s" + service = "databases-for-elasticsearch" + plan = "platinum" + location = "%[3]s" + adminpassword = "password12" + group { + group_id = "member" + + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 6144 + } + } + users { + name = "user123" + password = "password12" + } + allowlist { + address = "172.168.1.2/32" + description = "desc1" + } + + timeouts { + create = "120m" + update = "120m" + delete = "15m" + } + } + `, databaseResourceGroup, name, acc.IcdDbRegion) +} + +func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumFullyspecified(databaseResourceGroup string, name string) string { + return fmt.Sprintf(` + data "ibm_resource_group" "test_acc" { + is_default = true + # name = "%[1]s" + } + + resource "ibm_database" "%[2]s" { + resource_group_id = data.ibm_resource_group.test_acc.id + name = "%[2]s" + service = "databases-for-elasticsearch" + plan = "platinum" + location = "%[3]s" + adminpassword = "password12" + users { + name = "user123" + password = "password12" + } + users { + name = "user124" + password = "password12" + } + allowlist { + address = "172.168.1.2/32" + description = "desc1" + } + allowlist { + address = "172.168.1.1/32" + description = "desc" + } + + timeouts { + create = "120m" + update = "120m" + delete = "15m" + } + } + + `, databaseResourceGroup, name, acc.IcdDbRegion) +} + +func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumReduced(databaseResourceGroup string, name string) string { + return fmt.Sprintf(` + data "ibm_resource_group" "test_acc" { + is_default = true + # name = "%[1]s" + } + + resource "ibm_database" "%[2]s" { + resource_group_id = data.ibm_resource_group.test_acc.id + name = "%[2]s" + service = "databases-for-elasticsearch" + plan = "platinum" + location = "%[3]s" + adminpassword = "password12" + + timeouts { + create = "120m" + update = "120m" + delete = "15m" + } + } + `, databaseResourceGroup, name, acc.IcdDbRegion) +} + +func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupMigration(databaseResourceGroup string, name string) string { + return fmt.Sprintf(` + data "ibm_resource_group" "test_acc" { + is_default = true + # name = "%[1]s" + } + + resource "ibm_database" "%[2]s" { + resource_group_id = data.ibm_resource_group.test_acc.id + name = "%[2]s" + service = "databases-for-elasticsearch" + plan = "platinum" + location = "%[3]s" + adminpassword = "password12" + + group { + group_id = "member" + + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 6144 + } + } + + timeouts { + create = "120m" + update = "120m" + delete = "15m" + } + } + `, databaseResourceGroup, name, acc.IcdDbRegion) +} + +func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeBasic(databaseResourceGroup string, name string) string { + return fmt.Sprintf(` + data "ibm_resource_group" "test_acc" { + is_default = true + # name = "%[1]s" + } + + resource "ibm_database" "%[2]s" { + resource_group_id = data.ibm_resource_group.test_acc.id + name = "%[2]s" + service = "databases-for-elasticsearch" + plan = "platinum" + location = "%[3]s" + adminpassword = "password12" + group { + group_id = "member" + members { + allocation_count = 3 + } + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 5120 + } + cpu { + allocation_count = 3 + } + } + + users { + name = "user123" + password = "password12" + } + allowlist { + address = "172.168.1.2/32" + description = "desc1" + } + + timeouts { + create = "120m" + update = "120m" + delete = "15m" + } + } + `, databaseResourceGroup, name, acc.IcdDbRegion) +} + +func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeFullyspecified(databaseResourceGroup string, name string) string { + return fmt.Sprintf(` + data "ibm_resource_group" "test_acc" { + is_default = true + # name = "%[1]s" + } + + resource "ibm_database" "%[2]s" { + resource_group_id = data.ibm_resource_group.test_acc.id + name = "%[2]s" + service = "databases-for-elasticsearch" + plan = "platinum" + location = "%[3]s" + adminpassword = "password12" + group { + group_id = "member" + members { + allocation_count = 3 + } + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 6144 + } + cpu { + allocation_count = 3 + } + } + users { + name = "user123" + password = "password12" + } + users { + name = "user124" + password = "password12" + } + allowlist { + address = "172.168.1.2/32" + description = "desc1" + } + allowlist { + address = "172.168.1.1/32" + description = "desc" + } + + timeouts { + create = "120m" + update = "120m" + delete = "15m" + } + } + `, databaseResourceGroup, name, acc.IcdDbRegion) +} + +func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeReduced(databaseResourceGroup string, name string) string { + return fmt.Sprintf(` + data "ibm_resource_group" "test_acc" { + is_default = true + # name = "%[1]s" + } + + resource "ibm_database" "%[2]s" { + resource_group_id = data.ibm_resource_group.test_acc.id + name = "%[2]s" + service = "databases-for-elasticsearch" + plan = "platinum" + location = "%[3]s" + adminpassword = "password12" + group { + group_id = "member" + members { + allocation_count = 3 + } + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 6144 + } + cpu { + allocation_count = 3 + } + } + + timeouts { + create = "120m" + update = "120m" + delete = "15m" + } + } + `, databaseResourceGroup, name, acc.IcdDbRegion) +} + +func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeScaleOut(databaseResourceGroup string, name string) string { + return fmt.Sprintf(` + data "ibm_resource_group" "test_acc" { + is_default = true + # name = "%[1]s" + } + + resource "ibm_database" "%[2]s" { + resource_group_id = data.ibm_resource_group.test_acc.id + name = "%[2]s" + service = "databases-for-elasticsearch" + plan = "platinum" + location = "%[3]s" + adminpassword = "password12" + group { + group_id = "member" + members { + allocation_count = 4 + } + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 6144 + } + cpu { + allocation_count = 3 + } + } + + timeouts { + create = "120m" + update = "120m" + delete = "15m" + } + } + `, databaseResourceGroup, name, acc.IcdDbRegion) +} + +func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupBasic(databaseResourceGroup string, name string) string { + return fmt.Sprintf(` + data "ibm_resource_group" "test_acc" { + is_default = true + # name = "%[1]s" + } + + resource "ibm_database" "%[2]s" { + resource_group_id = data.ibm_resource_group.test_acc.id + name = "%[2]s" + service = "databases-for-elasticsearch" + plan = "platinum" + location = "%[3]s" + adminpassword = "password12" + + group { + group_id = "member" + members { + allocation_count = 3 + } + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 5120 + } + cpu { + allocation_count = 3 + } + } + + users { + name = "user123" + password = "password12" + } + allowlist { + address = "172.168.1.2/32" + description = "desc1" + } + + timeouts { + create = "120m" + update = "120m" + delete = "15m" + } + } + `, databaseResourceGroup, name, acc.IcdDbRegion) +} + +func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupFullyspecified(databaseResourceGroup string, name string) string { + return fmt.Sprintf(` + data "ibm_resource_group" "test_acc" { + is_default = true + # name = "%[1]s" + } + + resource "ibm_database" "%[2]s" { + resource_group_id = data.ibm_resource_group.test_acc.id + name = "%[2]s" + service = "databases-for-elasticsearch" + plan = "platinum" + location = "%[3]s" + adminpassword = "password12" + + group { + group_id = "member" + members { + allocation_count = 3 + } + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 6144 + } + cpu { + allocation_count = 3 + } + } + users { + name = "user123" + password = "password12" + } + users { + name = "user124" + password = "password12" + } + allowlist { + address = "172.168.1.2/32" + description = "desc1" + } + allowlist { + address = "172.168.1.1/32" + description = "desc" + } + + timeouts { + create = "120m" + update = "120m" + delete = "15m" + } + } + + `, databaseResourceGroup, name, acc.IcdDbRegion) +} + +func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupReduced(databaseResourceGroup string, name string) string { + return fmt.Sprintf(` + data "ibm_resource_group" "test_acc" { + is_default = true + # name = "%[1]s" + } + + resource "ibm_database" "%[2]s" { + resource_group_id = data.ibm_resource_group.test_acc.id + name = "%[2]s" + service = "databases-for-elasticsearch" + plan = "platinum" + location = "%[3]s" + adminpassword = "password12" + + group { + group_id = "member" + members { + allocation_count = 3 + } + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 6144 + } + cpu { + allocation_count = 3 + } + } + + timeouts { + create = "120m" + update = "120m" + delete = "15m" + } + } + `, databaseResourceGroup, name, acc.IcdDbRegion) +} + +func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupScaleOut(databaseResourceGroup string, name string) string { + return fmt.Sprintf(` + data "ibm_resource_group" "test_acc" { + is_default = true + # name = "%[1]s" + } + + resource "ibm_database" "%[2]s" { + resource_group_id = data.ibm_resource_group.test_acc.id + name = "%[2]s" + service = "databases-for-elasticsearch" + plan = "platinum" + location = "%[3]s" + adminpassword = "password12" + + group { + group_id = "member" + members { + allocation_count = 4 + } + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 6144 + } + cpu { + allocation_count = 3 + } + } + timeouts { + create = "120m" + update = "120m" + delete = "15m" + } + } + `, databaseResourceGroup, name, acc.IcdDbRegion) +} + +func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumImport(databaseResourceGroup string, name string) string { + return fmt.Sprintf(` + data "ibm_resource_group" "test_acc" { + is_default = true + # name = "%[1]s" + } + + resource "ibm_database" "%[2]s" { + resource_group_id = data.ibm_resource_group.test_acc.id + name = "%[2]s" + service = "databases-for-elasticsearch" + plan = "platinum" + location = "%[3]s" + + timeouts { + create = "120m" + update = "120m" + delete = "15m" + } + } + + `, databaseResourceGroup, name, acc.IcdDbRegion) +} diff --git a/website/docs/r/database.html.markdown b/website/docs/r/database.html.markdown index 5ca75a682a..00645a693f 100644 --- a/website/docs/r/database.html.markdown +++ b/website/docs/r/database.html.markdown @@ -460,6 +460,51 @@ resource "ibm_database" "es" { } } ``` +### Sample Elasticsearch Platinum instance + +```terraform +data "ibm_resource_group" "test_acc" { + is_default = true +} + +resource "ibm_database" "es" { + resource_group_id = data.ibm_resource_group.test_acc.id + name = "es-platinum" + service = "databases-for-elasticsearch" + plan = "platinum" + location = "eu-gb" + adminpassword = "password12" + group { + group_id = "member" + members { + allocation_count = 3 + } + memory { + allocation_mb = 1024 + } + disk { + allocation_mb = 5120 + } + cpu { + allocation_count = 3 + } + } + users { + name = "user123" + password = "password12" + } + allowlist { + address = "172.168.1.2/32" + description = "desc1" + } + + timeouts { + create = "120m" + update = "120m" + delete = "15m" + } +} +``` ### Updating configuration for postgres database ```terraform @@ -623,7 +668,7 @@ Review the argument reference that you can specify for your resource. - `allocation_count` - (Optional, Integer) Allocated dedicated CPU per-member. - `name` - (Required, String) A descriptive name that is used to identify the database instance. The name must not include spaces. -- `plan` - (Required, Forces new resource, String) The name of the service plan that you choose for your instance. All databases use `standard`. `enterprise` is supported only for elasticsearch (`databases-for-elasticsearch`), cassandra (`databases-for-cassandra`), and mongodb(`databases-for-mongodb`) +- `plan` - (Required, Forces new resource, String) The name of the service plan that you choose for your instance. All databases use `standard`. `enterprise` is supported only for elasticsearch (`databases-for-elasticsearch`), cassandra (`databases-for-cassandra`), and mongodb(`databases-for-mongodb`). `platinum` is supported for elasticsearch (`databases-for-elasticsearch`). - `point_in_time_recovery_deployment_id` - (Optional, String) The ID of the source deployment that you want to recover back to. - `point_in_time_recovery_time` - (Optional, String) The timestamp in UTC format that you want to restore to. To retrieve the timestamp, run the `ibmcloud cdb postgresql earliest-pitr-timestamp ` command. To restore to the latest available time, use a blank string `""` as the timestamp. For more information, see [Point-in-time Recovery](https://cloud.ibm.com/docs/databases-for-postgresql?topic=databases-for-postgresql-pitr). - `remote_leader_id` - (Optional, String) A CRN of the leader database to make the replica(read-only) deployment. The leader database is created by a database deployment with the same service ID. A read-only replica is set up to replicate all of your data from the leader deployment to the replica deployment by using asynchronous replication. For more information, see [Configuring Read-only Replicas](https://cloud.ibm.com/docs/databases-for-postgresql?topic=databases-for-postgresql-read-only-replicas). From 6c2d473e3534b57ca2e74e6d89e5922ece005408 Mon Sep 17 00:00:00 2001 From: Deepak Selvakumar <77007253+deepaksibm@users.noreply.github.com> Date: Sun, 29 Oct 2023 17:43:04 +0530 Subject: [PATCH 14/58] doc correction: Share mount target doc corrections --- .../d/is_share_mount_target.html.markdown | 48 ++++++++++++------ .../d/is_share_mount_targets.html.markdown | 49 +++++++++++++------ .../r/is_share_mount_target.html.markdown | 22 ++++++--- 3 files changed, 83 insertions(+), 36 deletions(-) diff --git a/website/docs/d/is_share_mount_target.html.markdown b/website/docs/d/is_share_mount_target.html.markdown index b9c4e1a5b4..2b67534486 100644 --- a/website/docs/d/is_share_mount_target.html.markdown +++ b/website/docs/d/is_share_mount_target.html.markdown @@ -47,19 +47,39 @@ The following arguments are supported: The following attributes are exported: -- `created_at` - The date and time that the share target was created. -- `href` - The URL for this share target. -- `lifecycle_state` - The lifecycle state of the mount target. -- `mount_path` - The mount path for the share.The IP addresses used in the mount path are currently within the IBM services IP range, but are expected to change to be within one of the VPC's subnets in the future. +- `access_control_mode` - (String) The access control mode for the share. +- `created_at` - (String) The date and time that the share target was created. +- `href` - (String) The URL for this share target. +- `lifecycle_state` - (String) The lifecycle state of the mount target. +- `mount_path` - (String) The mount path for the share. The server component of the mount path may be either an IP address or a fully qualified domain name. + + This property will be absent if the lifecycle_state of the mount target is 'pending', failed, or deleting. + + -> **If the share's access_control_mode is:** + • security_group: The IP address used in the mount path is the primary_ip address of the virtual network interface for this share mount target.
+ • vpc: The fully-qualified domain name used in the mount path is an address that resolves to the share mount target.
- `name` - The user-defined name for this share target. -- `resource_type` - The type of resource referenced. +- `resource_type` - (String) The type of resource referenced. - `transit_encryption` - (String) The transit encryption mode for this share target. -- `vpc` - The VPC to which this share target is allowing to mount the file share. Nested `vpc` blocks have the following structure: - - `crn` - The CRN for this VPC. - - `deleted` - If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested `deleted` blocks have the following structure: - - `more_info` - Link to documentation about deleted resources. - - `href` - The URL for this VPC. - - `id` - The unique identifier for this VPC. - - `name` - The unique user-defined name for this VPC. - - `resource_type` - The resource type. - +- `vpc` - (List) The VPC to which this share target is allowing to mount the file share. Nested `vpc` blocks have the following structure: + - `crn` - (String) The CRN for this VPC. + - `deleted` - (String) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested `deleted` blocks have the following structure: + - `more_info` - (String) Link to documentation about deleted resources. + - `href` - (String) The URL for this VPC. + - `id` - (String) The unique identifier for this VPC. + - `name` - (String) The unique user-defined name for this VPC. + - `resource_type` - (String) The resource type. +- `subnet` - (List) The subnet of the virtual network interface for the share mount target. Nested `subnet` blocks have the following structure: + - `crn` - (String) The CRN for this subnet. + - `deleted` - (String) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested `deleted` blocks have the following structure: + - `more_info` - (String) Link to documentation about deleted resources. + - `href` - (String) The URL for this subnet. + - `id` - (String) The unique identifier for this subnet. + - `name` - (String) The unique user-defined name for this subnet. + - `resource_type` - (String) The resource type. +- `virtual_network_interface` - (List) The virtual network interface for this file share mount target.. Nested `virtual_network_interface` blocks have the following structure: + - `crn` - (String) The CRN for this virtual network interface. + - `href` - (String) The URL for this virtual network interface. + - `id` - (String) The unique identifier for this virtual network interface. + - `name` - (String) The unique user-defined name for this virtual network interface. + - `resource_type` - (String) The resource type. diff --git a/website/docs/d/is_share_mount_targets.html.markdown b/website/docs/d/is_share_mount_targets.html.markdown index 830530bae3..17d59f25f4 100644 --- a/website/docs/d/is_share_mount_targets.html.markdown +++ b/website/docs/d/is_share_mount_targets.html.markdown @@ -40,20 +40,41 @@ The following attributes are exported: - `id` - The unique identifier of the ShareTargetCollection. - `mount_targets` - Collection of share targets. Nested `targets` blocks have the following structure: - - `created_at` - The date and time that the share target was created. - - `href` - The URL for this share target. - - `id` - The unique identifier for this share target. - - `lifecycle_state` - The lifecycle state of the mount target. - - `mount_path` - The mount path for the share.The IP addresses used in the mount path are currently within the IBM services IP range, but are expected to change to be within one of the VPC's subnets in the future. - - `name` - The user-defined name for this share target. - - `resource_type` - The type of resource referenced. + - `access_control_mode` - (String) The access control mode for the share. + - `created_at` - (String) The date and time that the share target was created. + - `href` - (String) The URL for this share target. + - `id` - (String) The unique identifier for this share target. + - `lifecycle_state` - (String) The lifecycle state of the mount target. + - `mount_path` - (String) The mount path for the share. The server component of the mount path may be either an IP address or a fully qualified domain name. + + This property will be absent if the lifecycle_state of the mount target is 'pending', failed, or deleting. + + -> **If the share's access_control_mode is:** + • security_group: The IP address used in the mount path is the primary_ip address of the virtual network interface for this share mount target.
+ • vpc: The fully-qualified domain name used in the mount path is an address that resolves to the share mount target.
+ - `name` - (String) The user-defined name for this share target. + - `resource_type` - (String) The type of resource referenced. - `transit_encryption` - (String) The transit encryption mode for this share target. - `vpc` - The VPC to which this share target is allowing to mount the file share. Nested `vpc` blocks have the following structure: - - `crn` - The CRN for this VPC. - - `deleted` - If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested `deleted` blocks have the following structure: - - `more_info` - Link to documentation about deleted resources. - - `href` - The URL for this VPC. - - `id` - The unique identifier for this VPC. - - `name` - The unique user-defined name for this VPC. - - `resource_type` - The resource type. + - `crn` - (String) The CRN for this VPC. + - `deleted` - (String) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested `deleted` blocks have the following structure: + - `more_info` - (String) Link to documentation about deleted resources. + - `href` - (String) The URL for this VPC. + - `id` - (String) The unique identifier for this VPC. + - `name` - (String) The unique user-defined name for this VPC. + - `resource_type` - (String) The resource type. + - `subnet` - (List) The subnet of the virtual network interface for the share mount target. Nested `subnet` blocks have the following structure: + - `crn` - (String) The CRN for this subnet. + - `deleted` - (String) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested `deleted` blocks have the following structure: + - `more_info` - (String) Link to documentation about deleted resources. + - `href` - (String) The URL for this subnet. + - `id` - (String) The unique identifier for this subnet. + - `name` - (String) The unique user-defined name for this subnet. + - `resource_type` - (String) The resource type. + - `virtual_network_interface` - (List) The virtual network interface for this file share mount target.. Nested `virtual_network_interface` blocks have the following structure: + - `crn` - (String) The CRN for this virtual network interface. + - `href` - (String) The URL for this virtual network interface. + - `id` - (String) The unique identifier for this virtual network interface. + - `name` - (String) The unique user-defined name for this virtual network interface. + - `resource_type` - (String) The resource type. diff --git a/website/docs/r/is_share_mount_target.html.markdown b/website/docs/r/is_share_mount_target.html.markdown index 2d432673d9..15039a137a 100644 --- a/website/docs/r/is_share_mount_target.html.markdown +++ b/website/docs/r/is_share_mount_target.html.markdown @@ -126,14 +126,20 @@ The following arguments are supported: The following attributes are exported: - -- `mount_target` - The unique identifier of the share target -- `created_at` - The date and time that the share target was created. -- `href` - The URL for this share target. -- `id` - The unique identifier of the ShareTarget. The id is composed of \/\ -- `lifecycle_state` - The lifecycle state of the mount target. -- `mount_path` - The mount path for the share.The IP addresses used in the mount path are currently within the IBM services IP range, but are expected to change to be within one of the VPC's subnets in the future. -- `resource_type` - The type of resource referenced. +- `access_control_mode` - (String) The access control mode for the share. +- `mount_target` - (String) The unique identifier of the share target +- `created_at` - (String) The date and time that the share target was created. +- `href` - (String) The URL for this share target. +- `id` - (String) The unique identifier of the ShareTarget. The id is composed of \/\ +- `lifecycle_state` - (String) The lifecycle state of the mount target. +- `mount_path` - (String) The mount path for the share. The server component of the mount path may be either an IP address or a fully qualified domain name. + + This property will be absent if the lifecycle_state of the mount target is 'pending', failed, or deleting. + + -> **If the share's access_control_mode is:** + • security_group: The IP address used in the mount path is the primary_ip address of the virtual network interface for this share mount target.
+ • vpc: The fully-qualified domain name used in the mount path is an address that resolves to the share mount target.
+- `resource_type` - (String) The type of resource referenced. - `transit_encryption` - (String) The transit encryption mode for this share target. ## Import From 6c0007afb3e56a5fc813a38e5b517cfeead8fafd Mon Sep 17 00:00:00 2001 From: Ujjwal Kumar <78945437+ujjwal-ibm@users.noreply.github.com> Date: Mon, 30 Oct 2023 04:25:20 +0000 Subject: [PATCH 15/58] added support for security groups for network load balancers (#4888) * added support for security groups for network load balancers * updated docs for flow log collectors data source --- ibm/service/vpc/resource_ibm_is_lb.go | 13 ++- ibm/service/vpc/resource_ibm_is_lb_test.go | 94 ++++++++++++++++++++++ website/docs/d/is_flow_log.html.markdown | 4 +- website/docs/r/is_lb.html.markdown | 2 +- 4 files changed, 103 insertions(+), 10 deletions(-) diff --git a/ibm/service/vpc/resource_ibm_is_lb.go b/ibm/service/vpc/resource_ibm_is_lb.go index 66f6ebac1a..4e58d0483c 100644 --- a/ibm/service/vpc/resource_ibm_is_lb.go +++ b/ibm/service/vpc/resource_ibm_is_lb.go @@ -189,13 +189,12 @@ func ResourceIBMISLB() *schema.Resource { }, isLBSecurityGroups: { - Type: schema.TypeSet, - Computed: true, - Optional: true, - Elem: &schema.Schema{Type: schema.TypeString}, - Set: schema.HashString, - Description: "Load Balancer securitygroups list", - ConflictsWith: []string{isLBProfile}, + Type: schema.TypeSet, + Computed: true, + Optional: true, + Elem: &schema.Schema{Type: schema.TypeString}, + Set: schema.HashString, + Description: "Load Balancer securitygroups list", }, isLBSecurityGroupsSupported: { diff --git a/ibm/service/vpc/resource_ibm_is_lb_test.go b/ibm/service/vpc/resource_ibm_is_lb_test.go index 01d9a0919e..4dcb832567 100644 --- a/ibm/service/vpc/resource_ibm_is_lb_test.go +++ b/ibm/service/vpc/resource_ibm_is_lb_test.go @@ -330,6 +330,50 @@ func TestAccIBMISLB_basic_network(t *testing.T) { }, }) } +func TestAccIBMISLB_basic_network_security_group(t *testing.T) { + var lb string + vpcname := fmt.Sprintf("tflb-vpc-%d", acctest.RandIntRange(10, 100)) + subnetname := fmt.Sprintf("tflb-subnet-name-%d", acctest.RandIntRange(10, 100)) + nlbName := fmt.Sprintf("tfnlbcreate%d", acctest.RandIntRange(10, 100)) + nlbName1 := fmt.Sprintf("tfnlbupdate%d", acctest.RandIntRange(10, 100)) + securityGroup := fmt.Sprintf("tflbsecuritygroup%d", acctest.RandIntRange(10, 100)) + securityGroup2 := fmt.Sprintf("tflbsecuritygroup2%d", acctest.RandIntRange(10, 100)) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIBMISLBDestroy, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMISLBNetworkSgConfig(vpcname, subnetname, acc.ISZoneName, acc.ISCIDR, nlbName, securityGroup), + Check: resource.ComposeTestCheckFunc( + testAccCheckIBMISLBExists("ibm_is_lb.testacc_NLB", lb), + resource.TestCheckResourceAttr( + "ibm_is_lb.testacc_NLB", "name", nlbName), + resource.TestCheckResourceAttrSet( + "ibm_is_lb.testacc_NLB", "hostname"), + resource.TestCheckResourceAttrSet( + "ibm_is_lb.testacc_NLB", "security_groups.#"), + resource.TestCheckResourceAttr( + "ibm_is_lb.testacc_NLB", "security_groups.#", "1"), + ), + }, + + { + Config: testAccCheckIBMISLBNetworkSgUpdateConfig(vpcname, subnetname, acc.ISZoneName, acc.ISCIDR, nlbName1, securityGroup, securityGroup2), + Check: resource.ComposeTestCheckFunc( + testAccCheckIBMISLBExists("ibm_is_lb.testacc_NLB", lb), + resource.TestCheckResourceAttr( + "ibm_is_lb.testacc_NLB", "name", nlbName1), + resource.TestCheckResourceAttrSet( + "ibm_is_lb.testacc_NLB", "security_groups.#"), + resource.TestCheckResourceAttr( + "ibm_is_lb.testacc_NLB", "security_groups.#", "2"), + ), + }, + }, + }) +} func TestAccIBMISLB_basic_network_vnf(t *testing.T) { var lb string @@ -582,6 +626,56 @@ func testAccCheckIBMISLBNetworkConfig(vpcname, subnetname, zone, cidr, nlbName s profile = "network-fixed" }`, vpcname, subnetname, zone, cidr, nlbName) +} +func testAccCheckIBMISLBNetworkSgConfig(vpcname, subnetname, zone, cidr, nlbName, securityGroup string) string { + return fmt.Sprintf(` + resource "ibm_is_vpc" "testacc_vpc" { + name = "%s" + } + resource "ibm_is_subnet" "testacc_subnet" { + name = "%s" + vpc = ibm_is_vpc.testacc_vpc.id + zone = "%s" + ipv4_cidr_block = "%s" + } + resource "ibm_is_security_group" "testacc_security_group" { + name = "%s" + vpc = ibm_is_vpc.testacc_vpc.id + } + resource "ibm_is_lb" "testacc_NLB" { + name = "%s" + subnets = [ibm_is_subnet.testacc_subnet.id] + security_groups = [ibm_is_security_group.testacc_security_group.id] + profile = "network-fixed" + }`, vpcname, subnetname, zone, cidr, securityGroup, nlbName) + +} +func testAccCheckIBMISLBNetworkSgUpdateConfig(vpcname, subnetname, zone, cidr, nlbName, securityGroup, securityGroup2 string) string { + return fmt.Sprintf(` + resource "ibm_is_vpc" "testacc_vpc" { + name = "%s" + } + resource "ibm_is_subnet" "testacc_subnet" { + name = "%s" + vpc = ibm_is_vpc.testacc_vpc.id + zone = "%s" + ipv4_cidr_block = "%s" + } + resource "ibm_is_security_group" "testacc_security_group" { + name = "%s" + vpc = ibm_is_vpc.testacc_vpc.id + } + resource "ibm_is_security_group" "testacc_security_group2" { + name = "%s" + vpc = ibm_is_vpc.testacc_vpc.id + } + resource "ibm_is_lb" "testacc_NLB" { + name = "%s" + subnets = [ibm_is_subnet.testacc_subnet.id] + security_groups = [ibm_is_security_group.testacc_security_group.id, ibm_is_security_group.testacc_security_group2.id] + profile = "network-fixed" + }`, vpcname, subnetname, zone, cidr, securityGroup, securityGroup2, nlbName) + } func testAccCheckIBMISLBNetworkRouteModeConfig(vpcname, subnetname, zone, cidr, nlbName string, routeMode bool) string { diff --git a/website/docs/d/is_flow_log.html.markdown b/website/docs/d/is_flow_log.html.markdown index 19e58e5bd8..21c3342f07 100644 --- a/website/docs/d/is_flow_log.html.markdown +++ b/website/docs/d/is_flow_log.html.markdown @@ -33,8 +33,8 @@ data "ibm_is_flow_log" "example" { Review the argument reference that you can specify for your data source. -- `identifier` - (Optional, String) The ID of the subnet, This is required when `name` is not specified. -- `name` - (Optional, String) The name of the subnet, This is required when `identifier` is not specified. +- `identifier` - (Optional, String) The ID of the flow log collector, This is required when `name` is not specified. +- `name` - (Optional, String) The name of the flow log collector, This is required when `identifier` is not specified. ## Attribute reference diff --git a/website/docs/r/is_lb.html.markdown b/website/docs/r/is_lb.html.markdown index 1fe27a0a86..5d24ffe531 100644 --- a/website/docs/r/is_lb.html.markdown +++ b/website/docs/r/is_lb.html.markdown @@ -90,7 +90,7 @@ Review the argument references that you can specify for your resource. - `route_mode` - (Optional, Forces new resource, Bool) Indicates whether route mode is enabled for this load balancer. ~> **NOTE:** Currently, `route_mode` enabled is supported only by private network load balancers. -- `security_groups` (Optional, List) A list of security groups to use for this load balancer. This option is supported only for application load balancers. +- `security_groups` (Optional, List) A list of security groups to use for this load balancer. This option is supported for both application and network load balancers. - `subnets` - (Required, List) List of the subnets IDs to connect to the load balancer. ~> **NOTE:** From 2ad17ae9e0ec761a324925d7f215101e1f415f17 Mon Sep 17 00:00:00 2001 From: hkantare Date: Mon, 30 Oct 2023 09:51:09 +0530 Subject: [PATCH 16/58] Add beta flag to Schematics Agents resources/datasources --- website/docs/d/schematics_agent.html.markdown | 2 ++ website/docs/d/schematics_agent_deploy.html.markdown | 2 ++ website/docs/d/schematics_agent_health.html.markdown | 2 ++ website/docs/d/schematics_agent_prs.html.markdown | 2 ++ website/docs/d/schematics_agents.html.markdown | 2 ++ website/docs/d/schematics_policies.html.markdown | 2 ++ website/docs/d/schematics_policy.html.markdown | 2 ++ website/docs/r/schematics_agent.html.markdown | 2 ++ website/docs/r/schematics_agent_deploy.html.markdown | 2 ++ website/docs/r/schematics_agent_health.html.markdown | 2 ++ website/docs/r/schematics_agent_prs.html.markdown | 2 ++ website/docs/r/schematics_policy.html.markdown | 2 ++ 12 files changed, 24 insertions(+) diff --git a/website/docs/d/schematics_agent.html.markdown b/website/docs/d/schematics_agent.html.markdown index 745f673855..442d89280f 100644 --- a/website/docs/d/schematics_agent.html.markdown +++ b/website/docs/d/schematics_agent.html.markdown @@ -8,6 +8,8 @@ subcategory: "Schematics" # ibm_schematics_agent +~> **Beta:** This resource is in Beta, and is subject to change. + Provides a read-only data source for schematics_agent. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. ## Example Usage diff --git a/website/docs/d/schematics_agent_deploy.html.markdown b/website/docs/d/schematics_agent_deploy.html.markdown index 668df3e6a6..0384799adf 100644 --- a/website/docs/d/schematics_agent_deploy.html.markdown +++ b/website/docs/d/schematics_agent_deploy.html.markdown @@ -8,6 +8,8 @@ subcategory: "Schematics" # ibm_schematics_agent_deploy +~> **Beta:** This resource is in Beta, and is subject to change. + Provides a read-only data source for schematics_agent_deploy. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. ## Example Usage diff --git a/website/docs/d/schematics_agent_health.html.markdown b/website/docs/d/schematics_agent_health.html.markdown index 071e160950..0ff0fd2d2d 100644 --- a/website/docs/d/schematics_agent_health.html.markdown +++ b/website/docs/d/schematics_agent_health.html.markdown @@ -8,6 +8,8 @@ subcategory: "Schematics" # ibm_schematics_agent_health +~> **Beta:** This resource is in Beta, and is subject to change. + Provides a read-only data source for schematics_agent_health. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. ## Example Usage diff --git a/website/docs/d/schematics_agent_prs.html.markdown b/website/docs/d/schematics_agent_prs.html.markdown index c7601001f8..aefc4c929a 100644 --- a/website/docs/d/schematics_agent_prs.html.markdown +++ b/website/docs/d/schematics_agent_prs.html.markdown @@ -8,6 +8,8 @@ subcategory: "Schematics" # ibm_schematics_agent_prs +~> **Beta:** This resource is in Beta, and is subject to change. + Provides a read-only data source for schematics_agent_prs. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. ## Example Usage diff --git a/website/docs/d/schematics_agents.html.markdown b/website/docs/d/schematics_agents.html.markdown index 9b071e01d2..08f7532d09 100644 --- a/website/docs/d/schematics_agents.html.markdown +++ b/website/docs/d/schematics_agents.html.markdown @@ -8,6 +8,8 @@ subcategory: "Schematics" # ibm_schematics_agents +~> **Beta:** This resource is in Beta, and is subject to change. + Provides a read-only data source for schematics_agents. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. ## Example Usage diff --git a/website/docs/d/schematics_policies.html.markdown b/website/docs/d/schematics_policies.html.markdown index 71b1eefbb8..dbb58395e6 100644 --- a/website/docs/d/schematics_policies.html.markdown +++ b/website/docs/d/schematics_policies.html.markdown @@ -8,6 +8,8 @@ subcategory: "Schematics" # ibm_schematics_policies +~> **Beta:** This resource is in Beta, and is subject to change. + Provides a read-only data source for schematics_policies. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. ## Example Usage diff --git a/website/docs/d/schematics_policy.html.markdown b/website/docs/d/schematics_policy.html.markdown index a6e87c06ee..70fead3f22 100644 --- a/website/docs/d/schematics_policy.html.markdown +++ b/website/docs/d/schematics_policy.html.markdown @@ -8,6 +8,8 @@ subcategory: "Schematics" # ibm_schematics_policy +~> **Beta:** This resource is in Beta, and is subject to change. + Provides a read-only data source for schematics_policy. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. ## Example Usage diff --git a/website/docs/r/schematics_agent.html.markdown b/website/docs/r/schematics_agent.html.markdown index f887254854..af12fb8c26 100644 --- a/website/docs/r/schematics_agent.html.markdown +++ b/website/docs/r/schematics_agent.html.markdown @@ -8,6 +8,8 @@ subcategory: "Schematics" # ibm_schematics_agent +~> **Beta:** This resource is in Beta, and is subject to change. + Provides a resource for schematics_agent. This allows schematics_agent to be created, updated and deleted. ## Example Usage diff --git a/website/docs/r/schematics_agent_deploy.html.markdown b/website/docs/r/schematics_agent_deploy.html.markdown index 37e01124a2..0089f2b684 100644 --- a/website/docs/r/schematics_agent_deploy.html.markdown +++ b/website/docs/r/schematics_agent_deploy.html.markdown @@ -8,6 +8,8 @@ subcategory: "Schematics" # ibm_schematics_agent_deploy +~> **Beta:** This resource is in Beta, and is subject to change. + Provides a resource for schematics_agent_deploy. This allows schematics_agent_deploy to be created, updated and deleted. ## Example Usage diff --git a/website/docs/r/schematics_agent_health.html.markdown b/website/docs/r/schematics_agent_health.html.markdown index ba2b16c6e2..82ecf4f647 100644 --- a/website/docs/r/schematics_agent_health.html.markdown +++ b/website/docs/r/schematics_agent_health.html.markdown @@ -8,6 +8,8 @@ subcategory: "Schematics" # ibm_schematics_agent_health +~> **Beta:** This resource is in Beta, and is subject to change. + Provides a resource for schematics_agent_health. This allows schematics_agent_health to be created, updated and deleted. ## Example Usage diff --git a/website/docs/r/schematics_agent_prs.html.markdown b/website/docs/r/schematics_agent_prs.html.markdown index a813565834..00d3dce5f7 100644 --- a/website/docs/r/schematics_agent_prs.html.markdown +++ b/website/docs/r/schematics_agent_prs.html.markdown @@ -8,6 +8,8 @@ subcategory: "Schematics" # ibm_schematics_agent_prs +~> **Beta:** This resource is in Beta, and is subject to change. + Provides a resource for schematics_agent_prs. This allows schematics_agent_prs to be created, updated and deleted. ## Example Usage diff --git a/website/docs/r/schematics_policy.html.markdown b/website/docs/r/schematics_policy.html.markdown index e80add1a42..b1618ba389 100644 --- a/website/docs/r/schematics_policy.html.markdown +++ b/website/docs/r/schematics_policy.html.markdown @@ -8,6 +8,8 @@ subcategory: "Schematics" # ibm_schematics_policy +~> **Beta:** This resource is in Beta, and is subject to change. + Provides a resource for schematics_policy. This allows schematics_policy to be created, updated and deleted. ## Example Usage From 43a9d81150b59fac35c379d0ce96733052f90011 Mon Sep 17 00:00:00 2001 From: hkantare Date: Mon, 30 Oct 2023 10:02:08 +0530 Subject: [PATCH 17/58] Fix indentation for subcategory --- website/docs/d/sm_private_certificate.html.markdown | 2 +- website/docs/r/trusted_profile_template.html.markdown | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/d/sm_private_certificate.html.markdown b/website/docs/d/sm_private_certificate.html.markdown index 3e7331c496..22bc586770 100644 --- a/website/docs/d/sm_private_certificate.html.markdown +++ b/website/docs/d/sm_private_certificate.html.markdown @@ -2,7 +2,7 @@ layout: "ibm" page_title: "IBM : ibm_sm_private_certificate" description: |- -Get information about PrivateCertificate + Get information about PrivateCertificate subcategory: "Secrets Manager" --- diff --git a/website/docs/r/trusted_profile_template.html.markdown b/website/docs/r/trusted_profile_template.html.markdown index c46e543e85..da47c9a24a 100644 --- a/website/docs/r/trusted_profile_template.html.markdown +++ b/website/docs/r/trusted_profile_template.html.markdown @@ -2,7 +2,7 @@ layout: "ibm" page_title: "IBM : ibm_trusted_profile_template" description: |- - Manages IAM trusted profile templates + Manages IAM trusted profile templates subcategory: "Identity & Access Management (IAM)" --- From 1f88b2315ce3839e90cb8a7274fd9f6c9c473bf6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 25 Oct 2023 21:45:31 +0000 Subject: [PATCH 18/58] dependabot: bump google.golang.org/grpc from 1.57.0 to 1.57.1 Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.57.0 to 1.57.1. - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](https://github.com/grpc/grpc-go/compare/v1.57.0...v1.57.1) --- updated-dependencies: - dependency-name: google.golang.org/grpc dependency-type: indirect ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index e475397e2d..8f6c7bf23a 100644 --- a/go.mod +++ b/go.mod @@ -211,7 +211,7 @@ require ( gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19 // indirect - google.golang.org/grpc v1.57.0 // indirect + google.golang.org/grpc v1.57.1 // indirect google.golang.org/protobuf v1.31.0 // indirect gopkg.in/go-playground/validator.v9 v9.31.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect diff --git a/go.sum b/go.sum index 256d47b73e..c6cc71647e 100644 --- a/go.sum +++ b/go.sum @@ -2185,8 +2185,8 @@ google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAG google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.41.0/go.mod h1:U3l9uK9J0sini8mHphKoXyaqDA/8VyGnDee1zzIUK6k= -google.golang.org/grpc v1.57.0 h1:kfzNeI/klCGD2YPMUlaGNT3pxvYfga7smW3Vth8Zsiw= -google.golang.org/grpc v1.57.0/go.mod h1:Sd+9RMTACXwmub0zcNY2c4arhtrbBYD1AUHI/dt16Mo= +google.golang.org/grpc v1.57.1 h1:upNTNqv0ES+2ZOOqACwVtS3Il8M12/+Hz41RCPzAjQg= +google.golang.org/grpc v1.57.1/go.mod h1:Sd+9RMTACXwmub0zcNY2c4arhtrbBYD1AUHI/dt16Mo= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= From 87879e98dbf186bd31a2b88f2176bae7c7251677 Mon Sep 17 00:00:00 2001 From: hkantare Date: Mon, 30 Oct 2023 13:07:09 +0530 Subject: [PATCH 19/58] update metadata --- metadata/provider_metadata.json | 81154 +++++++++++++++--------------- 1 file changed, 40543 insertions(+), 40611 deletions(-) diff --git a/metadata/provider_metadata.json b/metadata/provider_metadata.json index e4d5489bf3..595fc1b0cd 100644 --- a/metadata/provider_metadata.json +++ b/metadata/provider_metadata.json @@ -149,18 +149,30 @@ "computed": true }, { - "name": "service_instance_guid", + "name": "environment_json", + "type": "TypeMap", + "description": "Key/value pairs of all the environment variables to run in your app. Does not include any system or service variables.", + "computed": true + }, + { + "name": "route_guid", "type": "TypeSet", - "description": "Define the service instance guids that should be bound to this application.", + "description": "Define the route guids which should be bound to the application.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "package_state", + "name": "state", "type": "TypeString", - "description": "The state of the application package whether staged, pending etc", + "description": "The state of the application", + "computed": true + }, + { + "name": "instances", + "type": "TypeInt", + "description": "The number of instances", "computed": true }, { @@ -170,25 +182,16 @@ "computed": true }, { - "name": "name", + "name": "health_check_type", "type": "TypeString", - "description": "The name for the app", - "required": true - }, - { - "name": "route_guid", - "type": "TypeSet", - "description": "Define the route guids which should be bound to the application.", - "computed": true, - "elem": { - "type": "TypeString" - } + "description": "Type of health check to perform.", + "computed": true }, { - "name": "state", + "name": "name", "type": "TypeString", - "description": "The state of the application", - "computed": true + "description": "The name for the app", + "required": true }, { "name": "space_guid", @@ -196,18 +199,6 @@ "description": "Define space guid to which app belongs", "required": true }, - { - "name": "instances", - "type": "TypeInt", - "description": "The number of instances", - "computed": true - }, - { - "name": "environment_json", - "type": "TypeMap", - "description": "Key/value pairs of all the environment variables to run in your app. Does not include any system or service variables.", - "computed": true - }, { "name": "memory", "type": "TypeInt", @@ -221,9 +212,18 @@ "computed": true }, { - "name": "health_check_type", + "name": "service_instance_guid", + "type": "TypeSet", + "description": "Define the service instance guids that should be bound to this application.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "package_state", "type": "TypeString", - "description": "Type of health check to perform.", + "description": "The state of the application package whether staged, pending etc", "computed": true }, { @@ -241,9 +241,27 @@ "required": true }, { - "name": "href", + "name": "guid", "type": "TypeString", - "description": "Collection URL.", + "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", + "required": true + }, + { + "name": "created_time", + "type": "TypeString", + "description": "Creation time of the collection.", + "computed": true + }, + { + "name": "updated_time", + "type": "TypeString", + "description": "Last modified time of the collection data.", + "computed": true + }, + { + "name": "properties_count", + "type": "TypeInt", + "description": "Number of properties associated with the collection.", "computed": true }, { @@ -266,58 +284,6 @@ } } }, - { - "name": "expand", - "type": "TypeBool", - "description": "If set to true, returns expanded view of the resource details.", - "optional": true - }, - { - "name": "tags", - "type": "TypeString", - "description": "Tags associated with the collection.", - "cloud_data_type": "tags", - "computed": true - }, - { - "name": "created_time", - "type": "TypeString", - "description": "Creation time of the collection.", - "computed": true - }, - { - "name": "features_count", - "type": "TypeInt", - "description": "Number of features associated with the collection.", - "computed": true - }, - { - "name": "guid", - "type": "TypeString", - "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", - "required": true - }, - { - "name": "include", - "type": "TypeList", - "description": "Include feature, property details in the response.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "description", - "type": "TypeString", - "description": "Collection description.", - "computed": true - }, - { - "name": "properties_count", - "type": "TypeInt", - "description": "Number of properties associated with the collection.", - "computed": true - }, { "name": "features", "type": "TypeList", @@ -339,52 +305,53 @@ } }, { - "name": "name", - "type": "TypeString", - "description": "Collection name.", - "computed": true + "name": "include", + "type": "TypeList", + "description": "Include feature, property details in the response.", + "optional": true, + "elem": { + "type": "TypeString" + } }, { - "name": "updated_time", + "name": "description", "type": "TypeString", - "description": "Last modified time of the collection data.", + "description": "Collection description.", "computed": true - } - ], - "ibm_app_config_collections": [ + }, { - "name": "guid", + "name": "tags", "type": "TypeString", - "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", - "required": true + "description": "Tags associated with the collection.", + "cloud_data_type": "tags", + "computed": true }, { - "name": "limit", - "type": "TypeInt", - "description": "The number of records to retrieve.", - "optional": true + "name": "href", + "type": "TypeString", + "description": "Collection URL.", + "computed": true }, { - "name": "offset", + "name": "features_count", "type": "TypeInt", - "description": "Skipped number of records.", - "optional": true + "description": "Number of features associated with the collection.", + "computed": true }, { - "name": "total_count", - "type": "TypeInt", - "description": "Total number of records.", + "name": "name", + "type": "TypeString", + "description": "Collection name.", "computed": true }, { - "name": "include", - "type": "TypeList", - "description": "Include feature, property details in the response.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, + "name": "expand", + "type": "TypeBool", + "description": "If set to true, returns expanded view of the resource details.", + "optional": true + } + ], + "ibm_app_config_collections": [ { "name": "expand", "type": "TypeBool", @@ -492,46 +459,48 @@ "computed": true } } - } - ], - "ibm_app_config_environment": [ + }, { "name": "guid", "type": "TypeString", "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", - "immutable": true, "required": true }, { - "name": "expand", - "type": "TypeBool", - "description": "If set to `true`, returns expanded view of the resource details.", + "name": "limit", + "type": "TypeInt", + "description": "The number of records to retrieve.", "optional": true }, { - "name": "href", - "type": "TypeString", - "description": "Environment URL.", - "computed": true + "name": "offset", + "type": "TypeInt", + "description": "Skipped number of records.", + "optional": true }, { - "name": "environment_id", - "type": "TypeString", - "description": "Environment Id.", - "required": true + "name": "total_count", + "type": "TypeInt", + "description": "Total number of records.", + "computed": true }, + { + "name": "include", + "type": "TypeList", + "description": "Include feature, property details in the response.", + "optional": true, + "elem": { + "type": "TypeString" + } + } + ], + "ibm_app_config_environment": [ { "name": "name", "type": "TypeString", "description": "Environment name.", "computed": true }, - { - "name": "description", - "type": "TypeString", - "description": "Environment description.", - "computed": true - }, { "name": "tags", "type": "TypeString", @@ -540,15 +509,28 @@ "computed": true }, { - "name": "color_code", + "name": "created_time", "type": "TypeString", - "description": "Color code to distinguish the environment. The Hex code for the color. For example `#FF0000` for `red`.", + "description": "Creation time of the environment.", "computed": true }, { - "name": "created_time", + "name": "guid", "type": "TypeString", - "description": "Creation time of the environment.", + "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", + "immutable": true, + "required": true + }, + { + "name": "expand", + "type": "TypeBool", + "description": "If set to `true`, returns expanded view of the resource details.", + "optional": true + }, + { + "name": "color_code", + "type": "TypeString", + "description": "Color code to distinguish the environment. The Hex code for the color. For example `#FF0000` for `red`.", "computed": true }, { @@ -556,37 +538,27 @@ "type": "TypeString", "description": "Last modified time of the environment data.", "computed": true - } - ], - "ibm_app_config_environments": [ + }, { - "name": "next", - "type": "TypeList", - "description": "URL to navigate to the next list of records.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "URL of the response.", - "computed": true - } - } + "name": "href", + "type": "TypeString", + "description": "Environment URL.", + "computed": true }, { - "name": "previous", - "type": "TypeList", - "description": "URL to navigate to the previous list of records.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "URL of the response.", - "computed": true - } - } + "name": "environment_id", + "type": "TypeString", + "description": "Environment Id.", + "required": true }, + { + "name": "description", + "type": "TypeString", + "description": "Environment description.", + "computed": true + } + ], + "ibm_app_config_environments": [ { "name": "expand", "type": "TypeBool", @@ -605,40 +577,6 @@ "description": "The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.", "optional": true }, - { - "name": "total_count", - "type": "TypeInt", - "description": "Total number of records.", - "computed": true - }, - { - "name": "last", - "type": "TypeList", - "description": "URL to navigate to the last page of records.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "URL of the response.", - "computed": true - } - } - }, - { - "name": "guid", - "type": "TypeString", - "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", - "immutable": true, - "required": true - }, - { - "name": "tags", - "type": "TypeString", - "description": "filter the resources to be returned based on the associated tags. Returns resources associated with any of the specified tags.", - "cloud_data_type": "tags", - "optional": true - }, { "name": "environments", "type": "TypeList", @@ -695,6 +633,20 @@ } } }, + { + "name": "guid", + "type": "TypeString", + "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", + "immutable": true, + "required": true + }, + { + "name": "tags", + "type": "TypeString", + "description": "filter the resources to be returned based on the associated tags. Returns resources associated with any of the specified tags.", + "cloud_data_type": "tags", + "optional": true + }, { "name": "first", "type": "TypeList", @@ -708,31 +660,68 @@ "computed": true } } - } - ], - "ibm_app_config_feature": [ + }, { - "name": "feature_id", - "type": "TypeString", - "description": "Feature Id.", - "required": true + "name": "previous", + "type": "TypeList", + "description": "URL to navigate to the previous list of records.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "URL of the response.", + "computed": true + } + } }, { - "name": "description", - "type": "TypeString", - "description": "Feature description.", + "name": "last", + "type": "TypeList", + "description": "URL to navigate to the last page of records.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "URL of the response.", + "computed": true + } + } + }, + { + "name": "total_count", + "type": "TypeInt", + "description": "Total number of records.", "computed": true }, { - "name": "type", + "name": "next", + "type": "TypeList", + "description": "URL to navigate to the next list of records.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "URL of the response.", + "computed": true + } + } + } + ], + "ibm_app_config_feature": [ + { + "name": "disabled_value", "type": "TypeString", - "description": "Type of the feature (BOOLEAN, STRING, NUMERIC).", + "description": "Value of the feature when it is disabled. The value can be Boolean, String or a Numeric value as per the `type` attribute.", "computed": true }, { - "name": "enabled", - "type": "TypeBool", - "description": "The state of the feature flag.", + "name": "tags", + "type": "TypeString", + "description": "Tags associated with the feature.", + "cloud_data_type": "tags", "computed": true }, { @@ -742,28 +731,16 @@ "computed": true }, { - "name": "href", - "type": "TypeString", - "description": "Feature flag URL.", - "computed": true - }, - { - "name": "environment_id", - "type": "TypeString", - "description": "Environment Id.", - "required": true - }, - { - "name": "created_time", + "name": "description", "type": "TypeString", - "description": "Creation time of the feature flag.", + "description": "Feature description.", "computed": true }, { - "name": "name", + "name": "includes", "type": "TypeString", - "description": "Feature name.", - "computed": true + "description": "Include the associated collections in the response.", + "optional": true }, { "name": "enabled_value", @@ -771,18 +748,6 @@ "description": "Value of the feature when it is enabled. The value can be Boolean, String or a Numeric value as per the `type` attribute.", "computed": true }, - { - "name": "disabled_value", - "type": "TypeString", - "description": "Value of the feature when it is disabled. The value can be Boolean, String or a Numeric value as per the `type` attribute.", - "computed": true - }, - { - "name": "rollout_percentage", - "type": "TypeInt", - "description": "Rollout percentage of the feature.", - "computed": true - }, { "name": "segment_rules", "type": "TypeList", @@ -826,19 +791,6 @@ } } }, - { - "name": "guid", - "type": "TypeString", - "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", - "required": true - }, - { - "name": "tags", - "type": "TypeString", - "description": "Tags associated with the feature.", - "cloud_data_type": "tags", - "computed": true - }, { "name": "collections", "type": "TypeList", @@ -866,37 +818,85 @@ "computed": true }, { - "name": "includes", + "name": "environment_id", "type": "TypeString", - "description": "Include the associated collections in the response.", - "optional": true - } - ], - "ibm_app_config_features": [ + "description": "Environment Id.", + "required": true + }, { - "name": "sort", + "name": "name", "type": "TypeString", - "description": "Sort the feature details based on the specified attribute.", - "optional": true + "description": "Feature name.", + "computed": true }, { - "name": "segments", + "name": "feature_id", + "type": "TypeString", + "description": "Feature Id.", + "required": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Type of the feature (BOOLEAN, STRING, NUMERIC).", + "computed": true + }, + { + "name": "enabled", + "type": "TypeBool", + "description": "The state of the feature flag.", + "computed": true + }, + { + "name": "rollout_percentage", + "type": "TypeInt", + "description": "Rollout percentage of the feature.", + "computed": true + }, + { + "name": "created_time", + "type": "TypeString", + "description": "Creation time of the feature flag.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "Feature flag URL.", + "computed": true + }, + { + "name": "guid", + "type": "TypeString", + "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", + "required": true + } + ], + "ibm_app_config_features": [ + { + "name": "collections", "type": "TypeList", - "description": "Filter features by a list of comma separated segments.", + "description": "Filter features by a list of comma separated collections.", "optional": true, "elem": { "type": "TypeString" } }, { - "name": "includes", + "name": "segments", "type": "TypeList", - "description": "Include the associated collections or targeting rules details in the response.", + "description": "Filter features by a list of comma separated segments.", "optional": true, "elem": { "type": "TypeString" } }, + { + "name": "expand", + "type": "TypeBool", + "description": "If set to `true`, returns expanded view of the resource details.", + "optional": true + }, { "name": "limit", "type": "TypeInt", @@ -909,6 +909,20 @@ "description": "Number of records returned in the current response.", "computed": true }, + { + "name": "next", + "type": "TypeList", + "description": "URL to navigate to the next list of records.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "URL of the response.", + "computed": true + } + } + }, { "name": "previous", "type": "TypeList", @@ -929,6 +943,68 @@ "description": "Environment Id.", "required": true }, + { + "name": "tags", + "type": "TypeString", + "description": "Filter the resources to be returned based on the associated tags. Specify the parameter as a list of comma separated tags. Returns resources associated with any of the specified tags.", + "cloud_data_type": "tags", + "optional": true + }, + { + "name": "offset", + "type": "TypeInt", + "description": "The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.", + "optional": true + }, + { + "name": "first", + "type": "TypeList", + "description": "URL to navigate to the first page of records.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "URL of the response.", + "computed": true + } + } + }, + { + "name": "last", + "type": "TypeList", + "description": "URL to navigate to the last page of records.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "URL of the response.", + "computed": true + } + } + }, + { + "name": "guid", + "type": "TypeString", + "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", + "required": true + }, + { + "name": "sort", + "type": "TypeString", + "description": "Sort the feature details based on the specified attribute.", + "optional": true + }, + { + "name": "includes", + "type": "TypeList", + "description": "Include the associated collections or targeting rules details in the response.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, { "name": "features", "type": "TypeList", @@ -1077,19 +1153,16 @@ "computed": true } } - }, + } + ], + "ibm_app_config_properties": [ { - "name": "first", + "name": "collections", "type": "TypeList", - "description": "URL to navigate to the first page of records.", - "computed": true, + "description": "Filter features by a list of comma separated collections.", + "optional": true, "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "URL of the response.", - "computed": true - } + "type": "TypeString" } }, { @@ -1099,10 +1172,13 @@ "optional": true }, { - "name": "offset", - "type": "TypeInt", - "description": "The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.", - "optional": true + "name": "include", + "type": "TypeList", + "description": "Include the associated collections or targeting rules details in the response.", + "optional": true, + "elem": { + "type": "TypeString" + } }, { "name": "guid", @@ -1111,51 +1187,11 @@ "required": true }, { - "name": "tags", + "name": "sort", "type": "TypeString", - "description": "Filter the resources to be returned based on the associated tags. Specify the parameter as a list of comma separated tags. Returns resources associated with any of the specified tags.", - "cloud_data_type": "tags", + "description": "Sort the feature details based on the specified attribute.", "optional": true }, - { - "name": "collections", - "type": "TypeList", - "description": "Filter features by a list of comma separated collections.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "next", - "type": "TypeList", - "description": "URL to navigate to the next list of records.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "URL of the response.", - "computed": true - } - } - }, - { - "name": "last", - "type": "TypeList", - "description": "URL to navigate to the last page of records.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "URL of the response.", - "computed": true - } - } - } - ], - "ibm_app_config_properties": [ { "name": "tags", "type": "TypeString", @@ -1163,69 +1199,12 @@ "cloud_data_type": "tags", "optional": true }, - { - "name": "limit", - "type": "TypeInt", - "description": "The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.", - "optional": true - }, { "name": "offset", "type": "TypeInt", "description": "The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.", "optional": true }, - { - "name": "total_count", - "type": "TypeInt", - "description": "Number of records returned in the current response.", - "computed": true - }, - { - "name": "environment_id", - "type": "TypeString", - "description": "Environment Id.", - "required": true - }, - { - "name": "sort", - "type": "TypeString", - "description": "Sort the feature details based on the specified attribute.", - "optional": true - }, - { - "name": "collections", - "type": "TypeList", - "description": "Filter features by a list of comma separated collections.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "segments", - "type": "TypeList", - "description": "Filter features by a list of comma separated segments.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "expand", - "type": "TypeBool", - "description": "If set to `true`, returns expanded view of the resource details.", - "optional": true - }, - { - "name": "include", - "type": "TypeList", - "description": "Include the associated collections or targeting rules details in the response.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, { "name": "properties", "type": "TypeList", @@ -1352,13 +1331,82 @@ } }, { - "name": "guid", + "name": "total_count", + "type": "TypeInt", + "description": "Number of records returned in the current response.", + "computed": true + }, + { + "name": "environment_id", "type": "TypeString", - "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", + "description": "Environment Id.", "required": true + }, + { + "name": "segments", + "type": "TypeList", + "description": "Filter features by a list of comma separated segments.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "limit", + "type": "TypeInt", + "description": "The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.", + "optional": true } ], "ibm_app_config_property": [ + { + "name": "property_id", + "type": "TypeString", + "description": "Property Id.", + "required": true + }, + { + "name": "segment_exists", + "type": "TypeBool", + "description": "Denotes if the targeting rules are specified for the property.", + "computed": true + }, + { + "name": "created_time", + "type": "TypeString", + "description": "Creation time of the property.", + "computed": true + }, + { + "name": "guid", + "type": "TypeString", + "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Property description.", + "computed": true + }, + { + "name": "updated_time", + "type": "TypeString", + "description": "Last modified time of the property data.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Property name.", + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Type of the Property (BOOLEAN, STRING, NUMERIC).", + "computed": true + }, { "name": "collections", "type": "TypeList", @@ -1379,30 +1427,31 @@ } } }, - { - "name": "href", - "type": "TypeString", - "description": "Property URL.", - "computed": true - }, { "name": "environment_id", "type": "TypeString", "description": "Environment Id.", "required": true }, - { - "name": "property_id", - "type": "TypeString", - "description": "Property Id.", - "required": true - }, { "name": "include", "type": "TypeString", "description": "Include the associated collections in the response.", "optional": true }, + { + "name": "value", + "type": "TypeString", + "description": "Value of the Property. The value can be Boolean, String or a Numeric value as per the `type` attribute.", + "computed": true + }, + { + "name": "tags", + "type": "TypeString", + "description": "Tags associated with the property.", + "cloud_data_type": "tags", + "computed": true + }, { "name": "segment_rules", "type": "TypeList", @@ -1441,83 +1490,13 @@ } }, { - "name": "tags", - "type": "TypeString", - "description": "Tags associated with the property.", - "cloud_data_type": "tags", - "computed": true - }, - { - "name": "segment_exists", - "type": "TypeBool", - "description": "Denotes if the targeting rules are specified for the property.", - "computed": true - }, - { - "name": "created_time", - "type": "TypeString", - "description": "Creation time of the property.", - "computed": true - }, - { - "name": "guid", - "type": "TypeString", - "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Property name.", - "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Property description.", - "computed": true - }, - { - "name": "value", - "type": "TypeString", - "description": "Value of the Property. The value can be Boolean, String or a Numeric value as per the `type` attribute.", - "computed": true - }, - { - "name": "type", - "type": "TypeString", - "description": "Type of the Property (BOOLEAN, STRING, NUMERIC).", - "computed": true - }, - { - "name": "updated_time", + "name": "href", "type": "TypeString", - "description": "Last modified time of the property data.", + "description": "Property URL.", "computed": true } ], "ibm_app_config_segment": [ - { - "name": "segment_id", - "type": "TypeString", - "description": "Segment id.", - "required": true - }, - { - "name": "includes", - "type": "TypeList", - "description": "Include feature and property details in the response.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "updated_time", - "type": "TypeString", - "description": "Last modified time of the segment data.", - "computed": true - }, { "name": "guid", "type": "TypeString", @@ -1525,9 +1504,9 @@ "required": true }, { - "name": "description", + "name": "name", "type": "TypeString", - "description": "Segment description.", + "description": "Segment name.", "computed": true }, { @@ -1549,35 +1528,6 @@ "description": "Segment flag URL.", "computed": true }, - { - "name": "rules", - "type": "TypeList", - "description": "List of rules that determine if the entity belongs to the segment during feature / property evaluation.", - "computed": true, - "elem": { - "attribute_name": { - "name": "attribute_name", - "type": "TypeString", - "description": "Attribute name.", - "computed": true - }, - "operator": { - "name": "operator", - "type": "TypeString", - "description": "Operator to be used for the evaluation if the entity belongs to the segment.", - "computed": true - }, - "values": { - "name": "values", - "type": "TypeList", - "description": "List of values. Entities matching any of the given values will be considered to belong to the segment", - "computed": true, - "elem": { - "type": "TypeString" - } - } - } - }, { "name": "features", "type": "TypeList", @@ -1619,18 +1569,68 @@ } }, { - "name": "name", + "name": "segment_id", "type": "TypeString", - "description": "Segment name.", + "description": "Segment id.", + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Segment description.", + "computed": true + }, + { + "name": "includes", + "type": "TypeList", + "description": "Include feature and property details in the response.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "updated_time", + "type": "TypeString", + "description": "Last modified time of the segment data.", "computed": true + }, + { + "name": "rules", + "type": "TypeList", + "description": "List of rules that determine if the entity belongs to the segment during feature / property evaluation.", + "computed": true, + "elem": { + "attribute_name": { + "name": "attribute_name", + "type": "TypeString", + "description": "Attribute name.", + "computed": true + }, + "operator": { + "name": "operator", + "type": "TypeString", + "description": "Operator to be used for the evaluation if the entity belongs to the segment.", + "computed": true + }, + "values": { + "name": "values", + "type": "TypeList", + "description": "List of values. Entities matching any of the given values will be considered to belong to the segment", + "computed": true, + "elem": { + "type": "TypeString" + } + } + } } ], "ibm_app_config_segments": [ { - "name": "offset", - "type": "TypeInt", - "description": "The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.", - "optional": true + "name": "guid", + "type": "TypeString", + "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", + "required": true }, { "name": "tags", @@ -1645,6 +1645,12 @@ "description": "Sort the segment details based on the specified attribute.", "optional": true }, + { + "name": "include", + "type": "TypeString", + "description": "Segment details to include the associated rules in the response", + "optional": true + }, { "name": "expand", "type": "TypeBool", @@ -1652,27 +1658,21 @@ "optional": true }, { - "name": "total_count", + "name": "limit", "type": "TypeInt", - "description": "Total number of records.", + "description": "The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.", "optional": true }, { - "name": "guid", - "type": "TypeString", - "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", - "required": true - }, - { - "name": "include", - "type": "TypeString", - "description": "Segment details to include the associated rules in the response", + "name": "total_count", + "type": "TypeInt", + "description": "Total number of records.", "optional": true }, { - "name": "limit", + "name": "offset", "type": "TypeInt", - "description": "The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.", + "description": "The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.", "optional": true }, { @@ -1803,9 +1803,27 @@ "required": true }, { - "name": "git_branch", + "name": "git_config_id", "type": "TypeString", - "description": "Branch name to which you need to write or update the configuration.", + "description": "Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only", + "required": true + }, + { + "name": "git_file_path", + "type": "TypeString", + "description": "Git file path, this is a path where your configuration file will be written.", + "computed": true + }, + { + "name": "updated_time", + "type": "TypeString", + "description": "Last modified time of the git config data.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "Git config URL.", "computed": true }, { @@ -1829,51 +1847,33 @@ } }, { - "name": "created_time", - "type": "TypeString", - "description": "Creation time of the git config.", - "computed": true - }, - { - "name": "updated_time", - "type": "TypeString", - "description": "Last modified time of the git config data.", - "computed": true - }, - { - "name": "last_sync_time", + "name": "git_config_name", "type": "TypeString", - "description": "Latest time when the snapshot was synced to git.", + "description": "Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only", "computed": true }, { - "name": "href", + "name": "git_url", "type": "TypeString", - "description": "Git config URL.", + "description": "Git url which will be used to connect to the github account.", "computed": true }, { - "name": "git_config_id", - "type": "TypeString", - "description": "Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only", - "required": true - }, - { - "name": "git_config_name", + "name": "git_branch", "type": "TypeString", - "description": "Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only", + "description": "Branch name to which you need to write or update the configuration.", "computed": true }, { - "name": "git_url", + "name": "created_time", "type": "TypeString", - "description": "Git url which will be used to connect to the github account.", + "description": "Creation time of the git config.", "computed": true }, { - "name": "git_file_path", + "name": "last_sync_time", "type": "TypeString", - "description": "Git file path, this is a path where your configuration file will be written.", + "description": "Latest time when the snapshot was synced to git.", "computed": true }, { @@ -1904,6 +1904,24 @@ } ], "ibm_app_config_snapshots": [ + { + "name": "limit", + "type": "TypeInt", + "description": "The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.", + "optional": true + }, + { + "name": "offset", + "type": "TypeInt", + "description": "The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.", + "optional": true + }, + { + "name": "total_count", + "type": "TypeInt", + "description": "Total number of records.", + "computed": true + }, { "name": "git_config", "type": "TypeList", @@ -2029,24 +2047,6 @@ "type": "TypeString", "description": "Filters the response based on the specified environment_id.", "optional": true - }, - { - "name": "limit", - "type": "TypeInt", - "description": "The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.", - "optional": true - }, - { - "name": "offset", - "type": "TypeInt", - "description": "The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.", - "optional": true - }, - { - "name": "total_count", - "type": "TypeInt", - "description": "Total number of records.", - "computed": true } ], "ibm_app_domain_private": [ @@ -2066,6 +2066,12 @@ } ], "ibm_app_route": [ + { + "name": "path", + "type": "TypeString", + "description": "The path of the route", + "optional": true + }, { "name": "port", "type": "TypeString", @@ -2089,12 +2095,6 @@ "type": "TypeString", "description": "The host of the route", "optional": true - }, - { - "name": "path", - "type": "TypeString", - "description": "The path of the route", - "optional": true } ], "ibm_appid_action_url": [ @@ -2210,17 +2210,6 @@ } ], "ibm_appid_application": [ - { - "name": "profiles_url", - "type": "TypeString", - "computed": true - }, - { - "name": "discovery_endpoint", - "type": "TypeString", - "description": "This URL returns OAuth Authorization Server Metadata", - "computed": true - }, { "name": "type", "type": "TypeString", @@ -2257,6 +2246,17 @@ "type": "TypeString", "description": "Base URL for common OAuth endpoints, like `/authorization`, `/token` and `/publickeys`", "computed": true + }, + { + "name": "profiles_url", + "type": "TypeString", + "computed": true + }, + { + "name": "discovery_endpoint", + "type": "TypeString", + "description": "This URL returns OAuth Authorization Server Metadata", + "computed": true } ], "ibm_appid_application_roles": [ @@ -2388,6 +2388,12 @@ } ], "ibm_appid_cloud_directory_template": [ + { + "name": "base64_encoded_html_body", + "type": "TypeString", + "description": "The HTML body of the email encoded in Base64", + "computed": true + }, { "name": "plain_text_body", "type": "TypeString", @@ -2424,41 +2430,9 @@ "type": "TypeString", "description": "The HTML body of the email", "computed": true - }, - { - "name": "base64_encoded_html_body", - "type": "TypeString", - "description": "The HTML body of the email encoded in Base64", - "computed": true } ], "ibm_appid_cloud_directory_user": [ - { - "name": "meta", - "type": "TypeList", - "description": "Cloud Directory user metadata", - "computed": true, - "elem": { - "created": { - "name": "created", - "type": "TypeString", - "description": "User creation date", - "computed": true - }, - "last_modified": { - "name": "last_modified", - "type": "TypeString", - "description": "Last user modification date", - "computed": true - } - } - }, - { - "name": "tenant_id", - "type": "TypeString", - "description": "The AppID instance GUID", - "required": true - }, { "name": "active", "type": "TypeBool", @@ -2472,15 +2446,15 @@ "computed": true }, { - "name": "user_id", + "name": "user_name", "type": "TypeString", - "description": "Cloud Directory user ID", - "required": true + "description": "Optional username", + "computed": true }, { - "name": "subject", + "name": "status", "type": "TypeString", - "description": "The user's identifier ('subject' in identity token)", + "description": "Current user status: `PENDING` or `CONFIRMED`", "computed": true }, { @@ -2504,27 +2478,53 @@ } }, { - "name": "display_name", + "name": "tenant_id", "type": "TypeString", - "description": "Cloud Directory user display name", - "computed": true + "description": "The AppID instance GUID", + "required": true }, { - "name": "user_name", + "name": "user_id", "type": "TypeString", - "description": "Optional username", + "description": "Cloud Directory user ID", + "required": true + }, + { + "name": "subject", + "type": "TypeString", + "description": "The user's identifier ('subject' in identity token)", "computed": true }, { - "name": "status", + "name": "display_name", "type": "TypeString", - "description": "Current user status: `PENDING` or `CONFIRMED`", + "description": "Cloud Directory user display name", "computed": true + }, + { + "name": "meta", + "type": "TypeList", + "description": "Cloud Directory user metadata", + "computed": true, + "elem": { + "created": { + "name": "created", + "type": "TypeString", + "description": "User creation date", + "computed": true + }, + "last_modified": { + "name": "last_modified", + "type": "TypeString", + "description": "Last user modification date", + "computed": true + } + } } ], "ibm_appid_idp_cloud_directory": [ { - "name": "reset_password_notification_enabled", + "name": "reset_password_enabled", "type": "TypeBool", "computed": true }, @@ -2533,14 +2533,6 @@ "type": "TypeString", "computed": true }, - { - "name": "identity_confirm_methods", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "identity_field", "type": "TypeString", @@ -2558,14 +2550,18 @@ "computed": true }, { - "name": "welcome_enabled", + "name": "signup_enabled", "type": "TypeBool", + "description": "Allow users to sign-up to your app", "computed": true }, { - "name": "reset_password_enabled", - "type": "TypeBool", - "computed": true + "name": "identity_confirm_methods", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "self_service_enabled", @@ -2574,9 +2570,13 @@ "computed": true }, { - "name": "signup_enabled", + "name": "welcome_enabled", + "type": "TypeBool", + "computed": true + }, + { + "name": "reset_password_notification_enabled", "type": "TypeBool", - "description": "Allow users to sign-up to your app", "computed": true } ], @@ -2600,6 +2600,12 @@ } ], "ibm_appid_idp_facebook": [ + { + "name": "tenant_id", + "type": "TypeString", + "description": "The AppID instance GUID", + "required": true + }, { "name": "is_active", "type": "TypeBool", @@ -2632,12 +2638,6 @@ "type": "TypeString", "description": "Paste the URI into the Valid OAuth redirect URIs field in the Facebook Login section of the Facebook Developers Portal", "computed": true - }, - { - "name": "tenant_id", - "type": "TypeString", - "description": "The AppID instance GUID", - "required": true } ], "ibm_appid_idp_google": [ @@ -2681,6 +2681,12 @@ } ], "ibm_appid_idp_saml": [ + { + "name": "tenant_id", + "type": "TypeString", + "description": "The AppID instance GUID", + "required": true + }, { "name": "is_active", "type": "TypeBool", @@ -2761,12 +2767,6 @@ "computed": true } } - }, - { - "name": "tenant_id", - "type": "TypeString", - "description": "The AppID instance GUID", - "required": true } ], "ibm_appid_idp_saml_metadata": [ @@ -2858,12 +2858,6 @@ } ], "ibm_appid_password_regex": [ - { - "name": "error_message", - "type": "TypeString", - "description": "Custom error message", - "computed": true - }, { "name": "regex", "type": "TypeString", @@ -2881,6 +2875,12 @@ "type": "TypeString", "description": "The regex expression rule for acceptable password encoded in base64", "computed": true + }, + { + "name": "error_message", + "type": "TypeString", + "description": "Custom error message", + "computed": true } ], "ibm_appid_redirect_urls": [ @@ -3032,6 +3032,12 @@ } ], "ibm_appid_token_config": [ + { + "name": "refresh_token_expires_in", + "type": "TypeInt", + "description": "The length of time for which refresh tokens are valid in seconds", + "computed": true + }, { "name": "anonymous_token_expires_in", "type": "TypeInt", @@ -3108,12 +3114,6 @@ "type": "TypeInt", "description": "The length of time for which access tokens are valid in seconds", "computed": true - }, - { - "name": "refresh_token_expires_in", - "type": "TypeInt", - "description": "The length of time for which refresh tokens are valid in seconds", - "computed": true } ], "ibm_appid_user_roles": [ @@ -3151,6 +3151,12 @@ } ], "ibm_atracker_routes": [ + { + "name": "name", + "type": "TypeString", + "description": "The name of the route.", + "optional": true + }, { "name": "routes", "type": "TypeList", @@ -3247,21 +3253,9 @@ "computed": true } } - }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the route.", - "optional": true } ], "ibm_atracker_targets": [ - { - "name": "name", - "type": "TypeString", - "description": "The name of the target resource.", - "optional": true - }, { "name": "targets", "type": "TypeList", @@ -3494,21 +3488,15 @@ } } } - } - ], - "ibm_billing_snapshot_list": [ - { - "name": "month", - "type": "TypeString", - "description": "The month for which billing report snapshot is requested. Format is yyyy-mm.", - "required": true }, { - "name": "date_from", - "type": "TypeInt", - "description": "Timestamp in milliseconds for which billing report snapshot is requested.", + "name": "name", + "type": "TypeString", + "description": "The name of the target resource.", "optional": true - }, + } + ], + "ibm_billing_snapshot_list": [ { "name": "date_to", "type": "TypeInt", @@ -3671,27 +3659,21 @@ "computed": true } } - } - ], - "ibm_cbr_rule": [ - { - "name": "last_modified_at", - "type": "TypeString", - "description": "The last time the resource was modified.", - "computed": true }, { - "name": "last_modified_by_id", - "type": "TypeString", - "description": "IAM ID of the user or service which modified the resource.", - "computed": true - }, - { - "name": "rule_id", + "name": "month", "type": "TypeString", - "description": "The ID of a rule.", + "description": "The month for which billing report snapshot is requested. Format is yyyy-mm.", "required": true }, + { + "name": "date_from", + "type": "TypeInt", + "description": "Timestamp in milliseconds for which billing report snapshot is requested.", + "optional": true + } + ], + "ibm_cbr_rule": [ { "name": "crn", "type": "TypeString", @@ -3699,67 +3681,6 @@ "cloud_data_type": "crn", "computed": true }, - { - "name": "contexts", - "type": "TypeList", - "description": "The contexts this rule applies to.", - "computed": true, - "elem": { - "attributes": { - "name": "attributes", - "type": "TypeList", - "description": "The attributes.", - "computed": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "The attribute name.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "The attribute value.", - "computed": true - } - } - } - } - }, - { - "name": "operations", - "type": "TypeList", - "description": "The operations this rule applies to.", - "computed": true, - "elem": { - "api_types": { - "name": "api_types", - "type": "TypeList", - "description": "The API types this rule applies to.", - "computed": true, - "elem": { - "api_type_id": { - "name": "api_type_id", - "type": "TypeString", - "computed": true - } - } - } - } - }, - { - "name": "href", - "type": "TypeString", - "description": "The href link to the resource.", - "computed": true - }, - { - "name": "created_by_id", - "type": "TypeString", - "description": "IAM ID of the user or service which created the resource.", - "computed": true - }, { "name": "description", "type": "TypeString", @@ -3827,60 +3748,82 @@ } }, { - "name": "enforcement_mode", + "name": "href", "type": "TypeString", - "description": "The rule enforcement mode: * `enabled` - The restrictions are enforced and reported. This is the default. * `disabled` - The restrictions are disabled. Nothing is enforced or reported. * `report` - The restrictions are evaluated and reported, but not enforced.", + "description": "The href link to the resource.", "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The time the resource was created.", - "computed": true - } - ], - "ibm_cbr_zone": [ - { - "name": "name", + "name": "last_modified_at", "type": "TypeString", - "description": "The name of the zone.", + "description": "The last time the resource was modified.", "computed": true }, { - "name": "account_id", + "name": "last_modified_by_id", "type": "TypeString", - "description": "The id of the account owning this zone.", - "computed": true - }, - { - "name": "address_count", - "type": "TypeInt", - "description": "The number of addresses in the zone.", + "description": "IAM ID of the user or service which modified the resource.", "computed": true }, { - "name": "description", + "name": "rule_id", "type": "TypeString", - "description": "The description of the zone.", - "computed": true + "description": "The ID of a rule.", + "required": true }, { - "name": "last_modified_at", - "type": "TypeString", - "description": "The last time the resource was modified.", - "computed": true + "name": "contexts", + "type": "TypeList", + "description": "The contexts this rule applies to.", + "computed": true, + "elem": { + "attributes": { + "name": "attributes", + "type": "TypeList", + "description": "The attributes.", + "computed": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "The attribute name.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "The attribute value.", + "computed": true + } + } + } + } }, { - "name": "zone_id", - "type": "TypeString", - "description": "The ID of a zone.", - "required": true + "name": "operations", + "type": "TypeList", + "description": "The operations this rule applies to.", + "computed": true, + "elem": { + "api_types": { + "name": "api_types", + "type": "TypeList", + "description": "The API types this rule applies to.", + "computed": true, + "elem": { + "api_type_id": { + "name": "api_type_id", + "type": "TypeString", + "computed": true + } + } + } + } }, { - "name": "crn", + "name": "enforcement_mode", "type": "TypeString", - "description": "The zone CRN.", - "cloud_data_type": "crn", + "description": "The rule enforcement mode: * `enabled` - The restrictions are enforced and reported. This is the default. * `disabled` - The restrictions are disabled. Nothing is enforced or reported. * `report` - The restrictions are evaluated and reported, but not enforced.", "computed": true }, { @@ -3894,17 +3837,19 @@ "type": "TypeString", "description": "IAM ID of the user or service which created the resource.", "computed": true - }, + } + ], + "ibm_cbr_zone": [ { - "name": "last_modified_by_id", + "name": "last_modified_at", "type": "TypeString", - "description": "IAM ID of the user or service which modified the resource.", + "description": "The last time the resource was modified.", "computed": true }, { - "name": "excluded_count", - "type": "TypeInt", - "description": "The number of excluded addresses in the zone.", + "name": "account_id", + "type": "TypeString", + "description": "The id of the account owning this zone.", "computed": true }, { @@ -3965,6 +3910,18 @@ } } }, + { + "name": "created_at", + "type": "TypeString", + "description": "The time the resource was created.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The description of the zone.", + "computed": true + }, { "name": "excluded", "type": "TypeList", @@ -3985,6 +3942,49 @@ } } }, + { + "name": "last_modified_by_id", + "type": "TypeString", + "description": "IAM ID of the user or service which modified the resource.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The zone CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "address_count", + "type": "TypeInt", + "description": "The number of addresses in the zone.", + "computed": true + }, + { + "name": "excluded_count", + "type": "TypeInt", + "description": "The number of excluded addresses in the zone.", + "computed": true + }, + { + "name": "created_by_id", + "type": "TypeString", + "description": "IAM ID of the user or service which created the resource.", + "computed": true + }, + { + "name": "zone_id", + "type": "TypeString", + "description": "The ID of a zone.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the zone.", + "computed": true + }, { "name": "href", "type": "TypeString", @@ -4109,19 +4109,78 @@ } }, { - "name": "pipeline_id", - "type": "TypeString", - "description": "ID of current instance.", - "required": true + "name": "properties", + "type": "TypeList", + "description": "Tekton pipeline's environment properties.", + "computed": true, + "elem": { + "enum": { + "name": "enum", + "type": "TypeList", + "description": "Options for `single_select` property type. Only needed when using `single_select` property type.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "API URL for interacting with the property.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Property name.", + "computed": true + }, + "path": { + "name": "path", + "type": "TypeString", + "description": "A dot notation path for `integration` type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Property type.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Property value. Any string value is valid.", + "computed": true + } + } }, { - "name": "updated_at", + "name": "build_number", + "type": "TypeInt", + "description": "The latest pipeline run build number. If this property is absent, the pipeline hasn't had any pipeline runs.", + "computed": true + }, + { + "name": "next_build_number", + "type": "TypeInt", + "description": "The build number that will be used for the next pipeline run.", + "computed": true + }, + { + "name": "enabled", + "type": "TypeBool", + "description": "Flag whether this pipeline is enabled.", + "computed": true + }, + { + "name": "status", "type": "TypeString", - "description": "Standard RFC 3339 Date Time String.", + "description": "Pipeline status.", "computed": true }, { - "name": "created_at", + "name": "updated_at", "type": "TypeString", "description": "Standard RFC 3339 Date Time String.", "computed": true @@ -4395,71 +4454,6 @@ } } }, - { - "name": "enable_notifications", - "type": "TypeBool", - "description": "Flag whether to enable notifications for this pipeline. When enabled, pipeline run events will be published on all slack integration specified channels in the parent toolchain. If omitted, this feature is disabled by default.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "String.", - "computed": true - }, - { - "name": "build_number", - "type": "TypeInt", - "description": "The latest pipeline run build number. If this property is absent, the pipeline hasn't had any pipeline runs.", - "computed": true - }, - { - "name": "properties", - "type": "TypeList", - "description": "Tekton pipeline's environment properties.", - "computed": true, - "elem": { - "enum": { - "name": "enum", - "type": "TypeList", - "description": "Options for `single_select` property type. Only needed when using `single_select` property type.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "API URL for interacting with the property.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Property name.", - "computed": true - }, - "path": { - "name": "path", - "type": "TypeString", - "description": "A dot notation path for `integration` type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Property type.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Property value. Any string value is valid.", - "computed": true - } - } - }, { "name": "worker", "type": "TypeList", @@ -4493,49 +4487,43 @@ "computed": true }, { - "name": "href", + "name": "pipeline_id", "type": "TypeString", - "description": "API URL for interacting with the pipeline.", + "description": "ID of current instance.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "String.", "computed": true }, { - "name": "next_build_number", - "type": "TypeInt", - "description": "The build number that will be used for the next pipeline run.", + "name": "created_at", + "type": "TypeString", + "description": "Standard RFC 3339 Date Time String.", "computed": true }, { - "name": "enable_partial_cloning", - "type": "TypeBool", - "description": "Flag whether to enable partial cloning for this pipeline. When partial clone is enabled, only the files contained within the paths specified in definition repositories are read and cloned, this means that symbolic links might not work. If omitted, this feature is disabled by default.", + "name": "href", + "type": "TypeString", + "description": "API URL for interacting with the pipeline.", "computed": true }, { - "name": "enabled", + "name": "enable_notifications", "type": "TypeBool", - "description": "Flag whether this pipeline is enabled.", + "description": "Flag whether to enable notifications for this pipeline. When enabled, pipeline run events will be published on all slack integration specified channels in the parent toolchain. If omitted, this feature is disabled by default.", "computed": true }, { - "name": "status", - "type": "TypeString", - "description": "Pipeline status.", + "name": "enable_partial_cloning", + "type": "TypeBool", + "description": "Flag whether to enable partial cloning for this pipeline. When partial clone is enabled, only the files contained within the paths specified in definition repositories are read and cloned, this means that symbolic links might not work. If omitted, this feature is disabled by default.", "computed": true } ], "ibm_cd_tekton_pipeline_definition": [ - { - "name": "href", - "type": "TypeString", - "description": "API URL for interacting with the definition.", - "computed": true - }, - { - "name": "pipeline_id", - "type": "TypeString", - "description": "The Tekton pipeline ID.", - "required": true - }, { "name": "definition_id", "type": "TypeString", @@ -4601,6 +4589,18 @@ "computed": true } } + }, + { + "name": "href", + "type": "TypeString", + "description": "API URL for interacting with the definition.", + "computed": true + }, + { + "name": "pipeline_id", + "type": "TypeString", + "description": "The Tekton pipeline ID.", + "required": true } ], "ibm_cd_tekton_pipeline_property": [ @@ -4657,68 +4657,6 @@ } ], "ibm_cd_tekton_pipeline_trigger": [ - { - "name": "events", - "type": "TypeList", - "description": "Only needed for Git triggers. List of events to which a Git trigger listens. Choose one or more from: 'push', 'pull_request' and 'pull_request_closed'. For SCM repositories that use 'merge request' events, such events map to the equivalent 'pull request' events.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "trigger_id", - "type": "TypeString", - "description": "The trigger ID.", - "required": true - }, - { - "name": "properties", - "type": "TypeList", - "description": "Optional trigger properties used to override or supplement the pipeline properties when triggering a pipeline run.", - "computed": true, - "elem": { - "enum": { - "name": "enum", - "type": "TypeList", - "description": "Options for `single_select` property type. Only needed for `single_select` property type.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "API URL for interacting with the trigger property.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Property name.", - "computed": true - }, - "path": { - "name": "path", - "type": "TypeString", - "description": "A dot notation path for `integration` type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Property type.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Property value. Any string value is valid.", - "computed": true - } - } - }, { "name": "worker", "type": "TypeList", @@ -4745,12 +4683,6 @@ } } }, - { - "name": "max_concurrent_runs", - "type": "TypeInt", - "description": "Defines the maximum number of concurrent runs for this trigger. If omitted then the concurrency limit is disabled for this trigger.", - "computed": true - }, { "name": "enabled", "type": "TypeBool", @@ -4758,9 +4690,9 @@ "computed": true }, { - "name": "cron", + "name": "timezone", "type": "TypeString", - "description": "Only needed for timer triggers. Cron expression that indicates when this trigger will activate. Maximum frequency is every 5 minutes. The string is based on UNIX crontab syntax: minute, hour, day of month, month, day of week. Example: 0 *_/2 * * * - every 2 hours.", + "description": "Only used for timer triggers. Specify the timezone used for this timer trigger, which will ensure the cron activates this trigger relative to the specified timezone. If no timezone is specified, the default timezone used is UTC. Valid timezones are those listed in the IANA timezone database, https://www.iana.org/time-zones.", "computed": true }, { @@ -4770,10 +4702,14 @@ "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "Trigger name.", - "computed": true + "name": "tags", + "type": "TypeList", + "description": "Optional trigger tags array.", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "source", @@ -4880,27 +4816,17 @@ } }, { - "name": "pipeline_id", + "name": "webhook_url", "type": "TypeString", - "description": "The Tekton pipeline ID.", - "required": true + "description": "Webhook URL that can be used to trigger pipeline runs.", + "computed": true }, { - "name": "href", + "name": "type", "type": "TypeString", - "description": "API URL for interacting with the trigger. Only included when fetching the list of pipeline triggers.", + "description": "Trigger type.", "computed": true }, - { - "name": "tags", - "type": "TypeList", - "description": "Optional trigger tags array.", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "favorite", "type": "TypeBool", @@ -4908,25 +4834,105 @@ "computed": true }, { - "name": "timezone", + "name": "href", "type": "TypeString", - "description": "Only used for timer triggers. Specify the timezone used for this timer trigger, which will ensure the cron activates this trigger relative to the specified timezone. If no timezone is specified, the default timezone used is UTC. Valid timezones are those listed in the IANA timezone database, https://www.iana.org/time-zones.", + "description": "API URL for interacting with the trigger. Only included when fetching the list of pipeline triggers.", "computed": true }, { - "name": "webhook_url", + "name": "max_concurrent_runs", + "type": "TypeInt", + "description": "Defines the maximum number of concurrent runs for this trigger. If omitted then the concurrency limit is disabled for this trigger.", + "computed": true + }, + { + "name": "cron", "type": "TypeString", - "description": "Webhook URL that can be used to trigger pipeline runs.", + "description": "Only needed for timer triggers. Cron expression that indicates when this trigger will activate. Maximum frequency is every 5 minutes. The string is based on UNIX crontab syntax: minute, hour, day of month, month, day of week. Example: 0 *_/2 * * * - every 2 hours.", "computed": true }, { - "name": "type", + "name": "pipeline_id", "type": "TypeString", - "description": "Trigger type.", + "description": "The Tekton pipeline ID.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Trigger name.", "computed": true + }, + { + "name": "events", + "type": "TypeList", + "description": "Only needed for Git triggers. List of events to which a Git trigger listens. Choose one or more from: 'push', 'pull_request' and 'pull_request_closed'. For SCM repositories that use 'merge request' events, such events map to the equivalent 'pull request' events.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "trigger_id", + "type": "TypeString", + "description": "The trigger ID.", + "required": true + }, + { + "name": "properties", + "type": "TypeList", + "description": "Optional trigger properties used to override or supplement the pipeline properties when triggering a pipeline run.", + "computed": true, + "elem": { + "enum": { + "name": "enum", + "type": "TypeList", + "description": "Options for `single_select` property type. Only needed for `single_select` property type.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "API URL for interacting with the trigger property.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Property name.", + "computed": true + }, + "path": { + "name": "path", + "type": "TypeString", + "description": "A dot notation path for `integration` type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Property type.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Property value. Any string value is valid.", + "computed": true + } + } } ], "ibm_cd_tekton_pipeline_trigger_property": [ + { + "name": "trigger_id", + "type": "TypeString", + "description": "The trigger ID.", + "required": true + }, { "name": "name", "type": "TypeString", @@ -4934,9 +4940,15 @@ "computed": true }, { - "name": "value", + "name": "path", "type": "TypeString", - "description": "Property value. Any string value is valid.", + "description": "A dot notation path for `integration` type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "API URL for interacting with the trigger property.", "computed": true }, { @@ -4954,24 +4966,12 @@ "description": "Property type.", "computed": true }, - { - "name": "path", - "type": "TypeString", - "description": "A dot notation path for `integration` type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.", - "computed": true - }, { "name": "pipeline_id", "type": "TypeString", "description": "The Tekton pipeline ID.", "required": true }, - { - "name": "trigger_id", - "type": "TypeString", - "description": "The trigger ID.", - "required": true - }, { "name": "property_name", "type": "TypeString", @@ -4979,13 +4979,44 @@ "required": true }, { - "name": "href", + "name": "value", "type": "TypeString", - "description": "API URL for interacting with the trigger property.", + "description": "Property value. Any string value is valid.", "computed": true } ], "ibm_cd_toolchain": [ + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest toolchain update timestamp.", + "computed": true + }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Toolchain name.", + "computed": true + }, + { + "name": "account_id", + "type": "TypeString", + "description": "Account ID where toolchain can be found.", + "computed": true + }, + { + "name": "location", + "type": "TypeString", + "description": "Toolchain region.", + "cloud_data_type": "region", + "computed": true + }, { "name": "resource_group_id", "type": "TypeString", @@ -5001,9 +5032,9 @@ "computed": true }, { - "name": "href", + "name": "ui_href", "type": "TypeString", - "description": "URI that can be used to retrieve toolchain.", + "description": "URL of a user-facing user interface for this toolchain.", "computed": true }, { @@ -5016,12 +5047,6 @@ "type": "TypeString" } }, - { - "name": "name", - "type": "TypeString", - "description": "Toolchain name.", - "computed": true - }, { "name": "description", "type": "TypeString", @@ -5029,50 +5054,56 @@ "computed": true }, { - "name": "location", + "name": "href", "type": "TypeString", - "description": "Toolchain region.", - "cloud_data_type": "region", + "description": "URI that can be used to retrieve toolchain.", "computed": true }, { - "name": "ui_href", + "name": "created_at", "type": "TypeString", - "description": "URL of a user-facing user interface for this toolchain.", + "description": "Toolchain creation timestamp.", "computed": true }, { - "name": "created_at", + "name": "created_by", "type": "TypeString", - "description": "Toolchain creation timestamp.", + "description": "Identity that created the toolchain.", "computed": true + } + ], + "ibm_cd_toolchain_tool_appconfig": [ + { + "name": "tool_id", + "type": "TypeString", + "description": "ID of the tool bound to the toolchain.", + "required": true }, { - "name": "updated_at", + "name": "resource_group_id", "type": "TypeString", - "description": "Latest toolchain update timestamp.", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "created_by", + "name": "toolchain_crn", "type": "TypeString", - "description": "Identity that created the toolchain.", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { - "name": "toolchain_id", + "name": "name", "type": "TypeString", - "description": "ID of the toolchain.", - "required": true + "description": "Name of the tool.", + "computed": true }, { - "name": "account_id", + "name": "updated_at", "type": "TypeString", - "description": "Account ID where toolchain can be found.", + "description": "Latest tool update timestamp.", "computed": true - } - ], - "ibm_cd_toolchain_tool_appconfig": [ + }, { "name": "parameters", "type": "TypeList", @@ -5117,43 +5148,12 @@ } } }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, { "name": "toolchain_id", "type": "TypeString", "description": "ID of the toolchain.", "required": true }, - { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "computed": true - }, { "name": "crn", "type": "TypeString", @@ -5161,12 +5161,6 @@ "cloud_data_type": "crn", "computed": true }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, { "name": "href", "type": "TypeString", @@ -5192,39 +5186,44 @@ "computed": true } } + }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true } ], "ibm_cd_toolchain_tool_artifactory": [ { - "name": "toolchain_id", + "name": "href", "type": "TypeString", - "description": "ID of the toolchain.", - "required": true + "description": "URI representing the tool.", + "computed": true }, { - "name": "tool_id", + "name": "name", "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true + "description": "Name of the tool.", + "computed": true }, { - "name": "resource_group_id", + "name": "state", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", + "description": "Current configuration state of the tool.", "computed": true }, { - "name": "crn", + "name": "toolchain_id", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true + "description": "ID of the toolchain.", + "required": true }, { - "name": "href", + "name": "resource_group_id", "type": "TypeString", - "description": "URI representing the tool.", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, { @@ -5253,12 +5252,6 @@ } } }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "computed": true - }, { "name": "updated_at", "type": "TypeString", @@ -5335,13 +5328,40 @@ } }, { - "name": "state", + "name": "tool_id", "type": "TypeString", - "description": "Current configuration state of the tool.", + "description": "ID of the tool bound to the toolchain.", + "required": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true } ], "ibm_cd_toolchain_tool_bitbucketgit": [ + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain.", + "required": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, { "name": "referent", "type": "TypeList", @@ -5374,6 +5394,30 @@ "description": "Latest tool update timestamp.", "computed": true }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "ID of the tool bound to the toolchain.", + "required": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, { "name": "parameters", "type": "TypeList", @@ -5465,90 +5509,13 @@ "computed": true } } - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain.", - "required": true } ], "ibm_cd_toolchain_tool_custom": [ { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "computed": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "computed": true - } - } - }, - { - "name": "state", + "name": "href", "type": "TypeString", - "description": "Current configuration state of the tool.", + "description": "URI representing the tool.", "computed": true }, { @@ -5607,18 +5574,6 @@ } } }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain.", - "required": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true - }, { "name": "crn", "type": "TypeString", @@ -5627,25 +5582,11 @@ "computed": true }, { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, - { - "name": "name", + "name": "tool_id", "type": "TypeString", - "description": "Name of the tool.", - "computed": true + "description": "ID of the tool bound to the toolchain.", + "required": true }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - } - ], - "ibm_cd_toolchain_tool_devopsinsights": [ { "name": "resource_group_id", "type": "TypeString", @@ -5659,43 +5600,6 @@ "description": "CRN of toolchain which the tool is bound to.", "computed": true }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain.", - "required": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, { "name": "referent", "type": "TypeList", @@ -5717,32 +5621,31 @@ } }, { - "name": "state", + "name": "name", "type": "TypeString", - "description": "Current configuration state of the tool.", + "description": "Name of the tool.", "computed": true - } - ], - "ibm_cd_toolchain_tool_eventnotifications": [ - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain.", - "required": true }, { - "name": "resource_group_id", + "name": "updated_at", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", + "description": "Latest tool update timestamp.", "computed": true }, { - "name": "toolchain_crn", + "name": "state", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "Current configuration state of the tool.", "computed": true }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain.", + "required": true + } + ], + "ibm_cd_toolchain_tool_devopsinsights": [ { "name": "referent", "type": "TypeList", @@ -5764,16 +5667,16 @@ } }, { - "name": "state", + "name": "name", "type": "TypeString", - "description": "Current configuration state of the tool.", + "description": "Name of the tool.", "computed": true }, { - "name": "tool_id", + "name": "updated_at", "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true + "description": "Latest tool update timestamp.", + "computed": true }, { "name": "crn", @@ -5789,15 +5692,48 @@ "computed": true }, { - "name": "name", + "name": "resource_group_id", "type": "TypeString", - "description": "Name of the tool.", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "updated_at", + "name": "toolchain_crn", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain.", + "required": true + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "ID of the tool bound to the toolchain.", + "required": true + } + ], + "ibm_cd_toolchain_tool_eventnotifications": [ + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain.", + "required": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { @@ -5819,21 +5755,13 @@ "computed": true } } - } - ], - "ibm_cd_toolchain_tool_githubconsolidated": [ + }, { "name": "state", "type": "TypeString", "description": "Current configuration state of the tool.", "computed": true }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain.", - "required": true - }, { "name": "tool_id", "type": "TypeString", @@ -5861,11 +5789,39 @@ "computed": true }, { - "name": "toolchain_crn", + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "computed": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "computed": true + } + } + }, + { + "name": "name", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "Name of the tool.", "computed": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + } + ], + "ibm_cd_toolchain_tool_githubconsolidated": [ { "name": "referent", "type": "TypeList", @@ -5886,6 +5842,24 @@ } } }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, { "name": "name", "type": "TypeString", @@ -5898,6 +5872,32 @@ "description": "Latest tool update timestamp.", "computed": true }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain.", + "required": true + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "ID of the tool bound to the toolchain.", + "required": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, { "name": "parameters", "type": "TypeList", @@ -6029,12 +6029,6 @@ } ], "ibm_cd_toolchain_tool_gitlab": [ - { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true - }, { "name": "crn", "type": "TypeString", @@ -6042,6 +6036,24 @@ "cloud_data_type": "crn", "computed": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, { "name": "referent", "type": "TypeList", @@ -6063,9 +6075,9 @@ } }, { - "name": "state", + "name": "name", "type": "TypeString", - "description": "Current configuration state of the tool.", + "description": "Name of the tool.", "computed": true }, { @@ -6197,39 +6209,6 @@ "description": "ID of the toolchain.", "required": true }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - } - ], - "ibm_cd_toolchain_tool_hashicorpvault": [ { "name": "tool_id", "type": "TypeString", @@ -6248,19 +6227,9 @@ "type": "TypeString", "description": "CRN of toolchain which the tool is bound to.", "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_hashicorpvault": [ { "name": "parameters", "type": "TypeList", @@ -6358,40 +6327,29 @@ "required": true }, { - "name": "crn", + "name": "toolchain_crn", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "computed": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "computed": true - } - } + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true }, { "name": "updated_at", "type": "TypeString", "description": "Latest tool update timestamp.", "computed": true - } - ], - "ibm_cd_toolchain_tool_hostedgit": [ + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "computed": true + }, { "name": "tool_id", "type": "TypeString", @@ -6399,16 +6357,17 @@ "required": true }, { - "name": "crn", + "name": "resource_group_id", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "href", + "name": "crn", "type": "TypeString", - "description": "URI representing the tool.", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true }, { @@ -6430,35 +6389,39 @@ "computed": true } } - }, + } + ], + "ibm_cd_toolchain_tool_hostedgit": [ { - "name": "state", + "name": "toolchain_id", "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true + "description": "ID of the toolchain.", + "required": true }, { - "name": "toolchain_id", + "name": "tool_id", "type": "TypeString", - "description": "ID of the toolchain.", + "description": "ID of the tool bound to the toolchain.", "required": true }, { - "name": "toolchain_crn", + "name": "resource_group_id", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "name", + "name": "crn", "type": "TypeString", - "description": "Name of the tool.", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true }, { - "name": "updated_at", + "name": "name", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "Name of the tool.", "computed": true }, { @@ -6567,14 +6530,95 @@ } }, { - "name": "resource_group_id", + "name": "state", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", + "description": "Current configuration state of the tool.", + "computed": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, + { + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "computed": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "computed": true + } + } + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", "computed": true } ], "ibm_cd_toolchain_tool_jenkins": [ + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, + { + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "computed": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "computed": true + } + } + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, { "name": "toolchain_id", "type": "TypeString", @@ -6582,22 +6626,29 @@ "required": true }, { - "name": "crn", + "name": "tool_id", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", + "description": "ID of the tool bound to the toolchain.", + "required": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "href", + "name": "crn", "type": "TypeString", - "description": "URI representing the tool.", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true }, { - "name": "updated_at", + "name": "name", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "Name of the tool.", "computed": true }, { @@ -6639,19 +6690,15 @@ "computed": true } } - }, + } + ], + "ibm_cd_toolchain_tool_jira": [ { - "name": "state", + "name": "name", "type": "TypeString", - "description": "Current configuration state of the tool.", + "description": "Name of the tool.", "computed": true }, - { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true - }, { "name": "resource_group_id", "type": "TypeString", @@ -6666,37 +6713,9 @@ "computed": true }, { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "computed": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "computed": true - } - } - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "computed": true - } - ], - "ibm_cd_toolchain_tool_jira": [ - { - "name": "toolchain_crn", + "name": "href", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "URI representing the tool.", "computed": true }, { @@ -6719,31 +6738,6 @@ } } }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "computed": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, { "name": "updated_at", "type": "TypeString", @@ -6802,52 +6796,20 @@ "required": true }, { - "name": "resource_group_id", + "name": "tool_id", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - } - ], - "ibm_cd_toolchain_tool_keyprotect": [ - { - "name": "parameters", - "type": "TypeList", - "description": "Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the \u003ca href=\"https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations\"\u003eConfiguring tool integrations page\u003c/a\u003e.", - "computed": true, - "elem": { - "instance_name": { - "name": "instance_name", - "type": "TypeString", - "description": "The name of the Key Protect service instance.", - "computed": true - }, - "location": { - "name": "location", - "type": "TypeString", - "description": "The IBM Cloud location where the Key Protect service instance is located.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The name used to identify this tool integration. Secret references include this name to identify the secrets store where the secrets reside. All secrets store tools integrated into a toolchain should have a unique name to allow secret resolution to function properly.", - "computed": true - }, - "resource_group_name": { - "name": "resource_group_name", - "type": "TypeString", - "description": "The name of the resource group where the Key Protect service instance is located.", - "computed": true - } - } + "description": "ID of the tool bound to the toolchain.", + "required": true }, { - "name": "state", + "name": "crn", "type": "TypeString", - "description": "Current configuration state of the tool.", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_keyprotect": [ { "name": "resource_group_id", "type": "TypeString", @@ -6862,18 +6824,6 @@ "cloud_data_type": "crn", "computed": true }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, { "name": "referent", "type": "TypeList", @@ -6895,9 +6845,15 @@ } }, { - "name": "name", + "name": "updated_at", "type": "TypeString", - "description": "Name of the tool.", + "description": "Latest tool update timestamp.", + "computed": true + }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", "computed": true }, { @@ -6913,13 +6869,77 @@ "required": true }, { - "name": "updated_at", + "name": "toolchain_crn", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", "computed": true + }, + { + "name": "parameters", + "type": "TypeList", + "description": "Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the \u003ca href=\"https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations\"\u003eConfiguring tool integrations page\u003c/a\u003e.", + "computed": true, + "elem": { + "instance_name": { + "name": "instance_name", + "type": "TypeString", + "description": "The name of the Key Protect service instance.", + "computed": true + }, + "location": { + "name": "location", + "type": "TypeString", + "description": "The IBM Cloud location where the Key Protect service instance is located.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The name used to identify this tool integration. Secret references include this name to identify the secrets store where the secrets reside. All secrets store tools integrated into a toolchain should have a unique name to allow secret resolution to function properly.", + "computed": true + }, + "resource_group_name": { + "name": "resource_group_name", + "type": "TypeString", + "description": "The name of the resource group where the Key Protect service instance is located.", + "computed": true + } + } } ], "ibm_cd_toolchain_tool_nexus": [ + { + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "computed": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "computed": true + } + } + }, { "name": "parameters", "type": "TypeList", @@ -6978,18 +6998,11 @@ } }, { - "name": "tool_id", + "name": "toolchain_id", "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", + "description": "ID of the toolchain.", "required": true }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, { "name": "crn", "type": "TypeString", @@ -7004,42 +7017,29 @@ "computed": true }, { - "name": "updated_at", + "name": "href", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "URI representing the tool.", "computed": true }, { - "name": "toolchain_id", + "name": "state", "type": "TypeString", - "description": "ID of the toolchain.", - "required": true + "description": "Current configuration state of the tool.", + "computed": true }, { - "name": "href", + "name": "tool_id", "type": "TypeString", - "description": "URI representing the tool.", - "computed": true + "description": "ID of the tool bound to the toolchain.", + "required": true }, { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "computed": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "computed": true - } - } + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true }, { "name": "name", @@ -7048,31 +7048,30 @@ "computed": true }, { - "name": "state", + "name": "updated_at", "type": "TypeString", - "description": "Current configuration state of the tool.", + "description": "Latest tool update timestamp.", "computed": true } ], "ibm_cd_toolchain_tool_pagerduty": [ { - "name": "resource_group_id", + "name": "tool_id", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true + "description": "ID of the tool bound to the toolchain.", + "required": true }, { - "name": "crn", + "name": "resource_group_id", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "toolchain_crn", + "name": "href", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "URI representing the tool.", "computed": true }, { @@ -7121,15 +7120,16 @@ "required": true }, { - "name": "tool_id", + "name": "crn", "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true }, { - "name": "href", + "name": "toolchain_crn", "type": "TypeString", - "description": "URI representing the tool.", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { @@ -7160,18 +7160,6 @@ } ], "ibm_cd_toolchain_tool_pipeline": [ - { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, { "name": "referent", "type": "TypeList", @@ -7193,21 +7181,21 @@ } }, { - "name": "updated_at", + "name": "name", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "Name of the tool.", "computed": true }, { - "name": "state", + "name": "updated_at", "type": "TypeString", - "description": "Current configuration state of the tool.", + "description": "Latest tool update timestamp.", "computed": true }, { - "name": "toolchain_id", + "name": "tool_id", "type": "TypeString", - "description": "ID of the toolchain.", + "description": "ID of the tool bound to the toolchain.", "required": true }, { @@ -7231,9 +7219,9 @@ "computed": true }, { - "name": "name", + "name": "href", "type": "TypeString", - "description": "Name of the tool.", + "description": "URI representing the tool.", "computed": true }, { @@ -7249,14 +7237,33 @@ "computed": true } } + }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain.", + "required": true } ], "ibm_cd_toolchain_tool_privateworker": [ { - "name": "tool_id", + "name": "updated_at", "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true + "description": "Latest tool update timestamp.", + "computed": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true }, { "name": "crn", @@ -7265,6 +7272,12 @@ "cloud_data_type": "crn", "computed": true }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, { "name": "referent", "type": "TypeList", @@ -7285,6 +7298,30 @@ } } }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "computed": true + }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain.", + "required": true + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "ID of the tool bound to the toolchain.", + "required": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, { "name": "parameters", "type": "TypeList", @@ -7317,58 +7354,53 @@ "type": "TypeString", "description": "Current configuration state of the tool.", "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_saucelabs": [ { - "name": "toolchain_id", + "name": "href", "type": "TypeString", - "description": "ID of the toolchain.", - "required": true + "description": "URI representing the tool.", + "computed": true }, { - "name": "resource_group_id", + "name": "name", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", + "description": "Name of the tool.", "computed": true }, { - "name": "toolchain_crn", + "name": "state", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "Current configuration state of the tool.", "computed": true }, { - "name": "href", + "name": "toolchain_id", "type": "TypeString", - "description": "URI representing the tool.", - "computed": true + "description": "ID of the toolchain.", + "required": true }, { - "name": "name", + "name": "resource_group_id", "type": "TypeString", - "description": "Name of the tool.", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "updated_at", + "name": "crn", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true - } - ], - "ibm_cd_toolchain_tool_saucelabs": [ + }, { "name": "toolchain_crn", "type": "TypeString", "description": "CRN of toolchain which the tool is bound to.", "computed": true }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, { "name": "referent", "type": "TypeList", @@ -7389,38 +7421,12 @@ } } }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "computed": true - }, { "name": "updated_at", "type": "TypeString", "description": "Latest tool update timestamp.", "computed": true }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain.", - "required": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, { "name": "parameters", "type": "TypeList", @@ -7442,12 +7448,6 @@ } } }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, { "name": "tool_id", "type": "TypeString", @@ -7456,12 +7456,24 @@ } ], "ibm_cd_toolchain_tool_secretsmanager": [ + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "computed": true + }, { "name": "toolchain_id", "type": "TypeString", "description": "ID of the toolchain.", "required": true }, + { + "name": "tool_id", + "type": "TypeString", + "description": "ID of the tool bound to the toolchain.", + "required": true + }, { "name": "resource_group_id", "type": "TypeString", @@ -7469,12 +7481,25 @@ "cloud_data_type": "resource_group", "computed": true }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, { "name": "toolchain_crn", "type": "TypeString", "description": "CRN of toolchain which the tool is bound to.", "computed": true }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, { "name": "referent", "type": "TypeList", @@ -7495,12 +7520,6 @@ } } }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "computed": true - }, { "name": "updated_at", "type": "TypeString", @@ -7556,25 +7575,6 @@ "type": "TypeString", "description": "Current configuration state of the tool.", "computed": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true } ], "ibm_cd_toolchain_tool_securitycompliance": [ @@ -7584,12 +7584,6 @@ "description": "ID of the toolchain.", "required": true }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, { "name": "referent", "type": "TypeList", @@ -7611,35 +7605,9 @@ } }, { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "href", + "name": "updated_at", "type": "TypeString", - "description": "URI representing the tool.", + "description": "Latest tool update timestamp.", "computed": true }, { @@ -7648,12 +7616,6 @@ "description": "Name of the tool.", "computed": true }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, { "name": "parameters", "type": "TypeList", @@ -7745,19 +7707,83 @@ "computed": true } } + }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "ID of the tool bound to the toolchain.", + "required": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true } ], "ibm_cd_toolchain_tool_slack": [ { - "name": "name", + "name": "toolchain_id", "type": "TypeString", - "description": "Name of the tool.", - "computed": true + "description": "ID of the toolchain.", + "required": true }, { - "name": "updated_at", + "name": "tool_id", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "ID of the tool bound to the toolchain.", + "required": true + }, + { + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "computed": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "computed": true + } + } + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", "computed": true }, { @@ -7818,10 +7844,10 @@ } }, { - "name": "tool_id", + "name": "state", "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true + "description": "Current configuration state of the tool.", + "computed": true }, { "name": "resource_group_id", @@ -7831,78 +7857,32 @@ "computed": true }, { - "name": "toolchain_crn", + "name": "crn", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true }, { - "name": "href", + "name": "toolchain_crn", "type": "TypeString", - "description": "URI representing the tool.", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "computed": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "computed": true - } - } - }, - { - "name": "state", + "name": "href", "type": "TypeString", - "description": "Current configuration state of the tool.", + "description": "URI representing the tool.", "computed": true }, { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain.", - "required": true - }, - { - "name": "crn", + "name": "updated_at", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", + "description": "Latest tool update timestamp.", "computed": true } ], "ibm_cd_toolchain_tool_sonarqube": [ - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, { "name": "href", "type": "TypeString", @@ -7929,30 +7909,6 @@ } } }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "ID of the tool bound to the toolchain.", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, { "name": "parameters", "type": "TypeList", @@ -7992,11 +7948,55 @@ } } }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, { "name": "toolchain_id", "type": "TypeString", "description": "ID of the toolchain.", "required": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "ID of the tool bound to the toolchain.", + "required": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true } ], "ibm_cd_toolchains": [ @@ -8096,19 +8096,30 @@ ], "ibm_cis": [ { - "name": "resource_group_id", + "name": "resource_name", "type": "TypeString", - "description": "The id of the resource group in which the cis instance is present", - "cloud_data_type": "resource_group", - "optional": true + "description": "The name of the resource", + "computed": true }, { - "name": "location", + "name": "resource_crn", "type": "TypeString", - "description": "The location or the environment in which cis instance exists", - "cloud_data_type": "region", + "description": "The crn of the resource", + "computed": true + }, + { + "name": "resource_status", + "type": "TypeString", + "description": "The status of the resource", "computed": true }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "The id of the resource group in which the cis instance is present", + "cloud_data_type": "resource_group", + "optional": true + }, { "name": "service", "type": "TypeString", @@ -8116,15 +8127,15 @@ "computed": true }, { - "name": "status", + "name": "plan", "type": "TypeString", - "description": "The resource instance status", + "description": "The plan type of the cis instance", "computed": true }, { - "name": "resource_name", + "name": "status", "type": "TypeString", - "description": "The name of the resource", + "description": "The resource instance status", "computed": true }, { @@ -8146,21 +8157,10 @@ "computed": true }, { - "name": "plan", - "type": "TypeString", - "description": "The plan type of the cis instance", - "computed": true - }, - { - "name": "resource_crn", - "type": "TypeString", - "description": "The crn of the resource", - "computed": true - }, - { - "name": "resource_status", + "name": "location", "type": "TypeString", - "description": "The status of the resource", + "description": "The location or the environment in which cis instance exists", + "cloud_data_type": "region", "computed": true }, { @@ -8257,27 +8257,6 @@ } ], "ibm_cis_bot_analytics": [ - { - "name": "since", - "type": "TypeString", - "description": "Datetime for start of query", - "required": true - }, - { - "name": "until", - "type": "TypeString", - "description": "Datetime for end of query", - "required": true - }, - { - "name": "result", - "type": "TypeString", - "description": "Bot Analytics result", - "computed": true, - "elem": { - "type": "TypeMap" - } - }, { "name": "cis_id", "type": "TypeString", @@ -8299,37 +8278,30 @@ "type": "TypeString", "description": "Bot Analytics Type", "required": true - } - ], - "ibm_cis_bot_managements": [ - { - "name": "auth_id_logging", - "type": "TypeString", - "description": "Auth ID Logging", - "computed": true }, { - "name": "use_latest_model", + "name": "since", "type": "TypeString", - "description": "Use Latest Model", - "computed": true + "description": "Datetime for start of query", + "required": true }, { - "name": "cis_id", + "name": "until", "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] + "description": "Datetime for end of query", + "required": true }, { - "name": "domain_id", + "name": "result", "type": "TypeString", - "description": "Associated CIS domain", - "required": true - }, + "description": "Bot Analytics result", + "computed": true, + "elem": { + "type": "TypeMap" + } + } + ], + "ibm_cis_bot_managements": [ { "name": "fight_mode", "type": "TypeString", @@ -8347,9 +8319,19 @@ "type": "TypeString", "description": "Enable JS", "computed": true - } - ], - "ibm_cis_cache_settings": [ + }, + { + "name": "auth_id_logging", + "type": "TypeString", + "description": "Auth ID Logging", + "computed": true + }, + { + "name": "use_latest_model", + "type": "TypeString", + "description": "Use Latest Model", + "computed": true + }, { "name": "cis_id", "type": "TypeString", @@ -8365,39 +8347,9 @@ "type": "TypeString", "description": "Associated CIS domain", "required": true - }, - { - "name": "caching_level", - "type": "TypeList", - "description": "Cache Level Setting", - "computed": true, - "elem": { - "editable": { - "name": "editable", - "type": "TypeBool", - "description": "cache level editable", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "cache level id", - "computed": true - }, - "modified_on": { - "name": "modified_on", - "type": "TypeString", - "description": "cache level modified on", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "cache level value", - "computed": true - } - } - }, + } + ], + "ibm_cis_cache_settings": [ { "name": "serve_stale_content", "type": "TypeList", @@ -8525,6 +8477,54 @@ "computed": true } } + }, + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, + { + "name": "domain_id", + "type": "TypeString", + "description": "Associated CIS domain", + "required": true + }, + { + "name": "caching_level", + "type": "TypeList", + "description": "Cache Level Setting", + "computed": true, + "elem": { + "editable": { + "name": "editable", + "type": "TypeBool", + "description": "cache level editable", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "cache level id", + "computed": true + }, + "modified_on": { + "name": "modified_on", + "type": "TypeString", + "description": "cache level modified on", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "cache level value", + "computed": true + } + } } ], "ibm_cis_certificates": [ @@ -8899,30 +8899,22 @@ ], "ibm_cis_domain": [ { - "name": "domain", - "type": "TypeString", - "description": "CISzone - Domain", - "required": true - }, - { - "name": "type", - "type": "TypeString", - "description": "CISzone - Domain Type", - "computed": true - }, - { - "name": "paused", - "type": "TypeBool", - "computed": true + "name": "original_name_servers", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "status", + "name": "domain_id", "type": "TypeString", "computed": true }, { - "name": "domain_id", + "name": "verification_key", "type": "TypeString", + "optional": true, "computed": true }, { @@ -8936,15 +8928,23 @@ ] }, { - "name": "name_servers", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "domain", + "type": "TypeString", + "description": "CISzone - Domain", + "required": true }, { - "name": "original_name_servers", + "name": "paused", + "type": "TypeBool", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "computed": true + }, + { + "name": "name_servers", "type": "TypeList", "computed": true, "elem": { @@ -8952,9 +8952,9 @@ } }, { - "name": "verification_key", + "name": "type", "type": "TypeString", - "optional": true, + "description": "CISzone - Domain Type", "computed": true }, { @@ -9156,16 +9156,6 @@ } ], "ibm_cis_firewall": [ - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, { "name": "domain_id", "type": "TypeString", @@ -9333,6 +9323,16 @@ "computed": true } } + }, + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] } ], "ibm_cis_firewall_rules": [ @@ -9765,22 +9765,6 @@ } ], "ibm_cis_mtls_apps": [ - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "domain_id", - "type": "TypeString", - "description": "Associated CIS domain", - "required": true - }, { "name": "mtls_access_apps", "type": "TypeList", @@ -9907,9 +9891,41 @@ "computed": true } } + }, + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, + { + "name": "domain_id", + "type": "TypeString", + "description": "Associated CIS domain", + "required": true } ], "ibm_cis_mtlss": [ + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, + { + "name": "domain_id", + "type": "TypeString", + "description": "Associated CIS domain", + "required": true + }, { "name": "mtls_certificates", "type": "TypeList", @@ -9962,38 +9978,9 @@ "computed": true } } - }, - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "domain_id", - "type": "TypeString", - "description": "Associated CIS domain", - "required": true } ], "ibm_cis_origin_auths": [ - { - "name": "domain_id", - "type": "TypeString", - "description": "Associated CIS domain", - "required": true - }, - { - "name": "hostname", - "type": "TypeString", - "description": "Associated CIS host name", - "default_value": "no_host", - "optional": true - }, { "name": "request_type", "type": "TypeString", @@ -10073,19 +10060,22 @@ "cloud_data_range": [ "service:internet-svcs" ] - } - ], - "ibm_cis_origin_pools": [ + }, { - "name": "cis_id", + "name": "domain_id", "type": "TypeString", - "description": "DNS Zone CRN", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] + "description": "Associated CIS domain", + "required": true }, + { + "name": "hostname", + "type": "TypeString", + "description": "Associated CIS host name", + "default_value": "no_host", + "optional": true + } + ], + "ibm_cis_origin_pools": [ { "name": "cis_origin_pools", "type": "TypeList", @@ -10211,9 +10201,7 @@ "computed": true } } - } - ], - "ibm_cis_page_rules": [ + }, { "name": "cis_id", "type": "TypeString", @@ -10223,13 +10211,9 @@ "cloud_data_range": [ "service:internet-svcs" ] - }, - { - "name": "domain_id", - "type": "TypeString", - "description": "DNS Zone ID", - "required": true - }, + } + ], + "ibm_cis_page_rules": [ { "name": "cis_page_rules", "type": "TypeList", @@ -10344,6 +10328,22 @@ } } } + }, + { + "name": "cis_id", + "type": "TypeString", + "description": "DNS Zone CRN", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, + { + "name": "domain_id", + "type": "TypeString", + "description": "DNS Zone ID", + "required": true } ], "ibm_cis_range_apps": [ @@ -10460,6 +10460,15 @@ } ], "ibm_cis_rate_limit": [ + { + "name": "cis_id", + "type": "TypeString", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, { "name": "domain_id", "type": "TypeString", @@ -10636,18 +10645,31 @@ "computed": true } } - }, + } + ], + "ibm_cis_waf_groups": [ { "name": "cis_id", "type": "TypeString", + "description": "CIS Intance CRN", "cloud_data_type": "resource_instance", "required": true, "cloud_data_range": [ "service:internet-svcs" ] - } - ], - "ibm_cis_waf_groups": [ + }, + { + "name": "domain_id", + "type": "TypeString", + "description": "CIS Domain ID", + "required": true + }, + { + "name": "package_id", + "type": "TypeString", + "description": "WAF Rule package id", + "required": true + }, { "name": "waf_groups", "type": "TypeList", @@ -10696,11 +10718,13 @@ "computed": true } } - }, + } + ], + "ibm_cis_waf_packages": [ { "name": "cis_id", "type": "TypeString", - "description": "CIS Intance CRN", + "description": "DNS Zone CRN", "cloud_data_type": "resource_instance", "required": true, "cloud_data_range": [ @@ -10710,17 +10734,9 @@ { "name": "domain_id", "type": "TypeString", - "description": "CIS Domain ID", + "description": "CIS domain id", "required": true }, - { - "name": "package_id", - "type": "TypeString", - "description": "WAF Rule package id", - "required": true - } - ], - "ibm_cis_waf_packages": [ { "name": "waf_packages", "type": "TypeList", @@ -10758,25 +10774,19 @@ "computed": true } } - }, + } + ], + "ibm_cis_waf_rules": [ { "name": "cis_id", "type": "TypeString", - "description": "DNS Zone CRN", + "description": "CIS instance crn", "cloud_data_type": "resource_instance", "required": true, "cloud_data_range": [ "service:internet-svcs" ] }, - { - "name": "domain_id", - "type": "TypeString", - "description": "CIS domain id", - "required": true - } - ], - "ibm_cis_waf_rules": [ { "name": "domain_id", "type": "TypeString", @@ -10861,16 +10871,6 @@ "computed": true } } - }, - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] } ], "ibm_cis_webhooks": [ @@ -10919,15 +10919,27 @@ ], "ibm_cloud_shell_account_settings": [ { - "name": "account_id", - "type": "TypeString", - "description": "The account ID in which the account settings belong to.", - "required": true + "name": "updated_at", + "type": "TypeInt", + "description": "Timestamp of last update in Unix epoch time.", + "computed": true }, { - "name": "rev", + "name": "updated_by", "type": "TypeString", - "description": "Unique revision number for the settings object.", + "description": "IAM ID of last updater.", + "computed": true + }, + { + "name": "default_enable_new_features", + "type": "TypeBool", + "description": "You can choose which Cloud Shell features are available in the account and whether any new features are enabled as they become available. The feature settings apply only to the enabled Cloud Shell locations.", + "computed": true + }, + { + "name": "enabled", + "type": "TypeBool", + "description": "When enabled, Cloud Shell is available to all users in the account.", "computed": true }, { @@ -10937,9 +10949,9 @@ "computed": true }, { - "name": "default_enable_new_features", - "type": "TypeBool", - "description": "You can choose which Cloud Shell features are available in the account and whether any new features are enabled as they become available. The feature settings apply only to the enabled Cloud Shell locations.", + "name": "created_by", + "type": "TypeString", + "description": "IAM ID of creator.", "computed": true }, { @@ -10949,59 +10961,41 @@ "computed": true }, { - "name": "enabled", - "type": "TypeBool", - "description": "When enabled, Cloud Shell is available to all users in the account.", - "computed": true - }, - { - "name": "regions", + "name": "features", "type": "TypeList", - "description": "List of Cloud Shell region settings.", + "description": "List of Cloud Shell features.", "computed": true, "elem": { "enabled": { "name": "enabled", "type": "TypeBool", - "description": "State of the region.", + "description": "State of the feature.", "computed": true }, "key": { "name": "key", "type": "TypeString", - "description": "Name of the region.", + "description": "Name of the feature.", "computed": true } } }, { - "name": "updated_at", - "type": "TypeInt", - "description": "Timestamp of last update in Unix epoch time.", - "computed": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "IAM ID of creator.", - "computed": true - }, - { - "name": "features", + "name": "regions", "type": "TypeList", - "description": "List of Cloud Shell features.", + "description": "List of Cloud Shell region settings.", "computed": true, "elem": { "enabled": { "name": "enabled", "type": "TypeBool", - "description": "State of the feature.", + "description": "State of the region.", "computed": true }, "key": { "name": "key", "type": "TypeString", - "description": "Name of the feature.", + "description": "Name of the region.", "computed": true } } @@ -11013,13 +11007,94 @@ "computed": true }, { - "name": "updated_by", + "name": "account_id", "type": "TypeString", - "description": "IAM ID of last updater.", + "description": "The account ID in which the account settings belong to.", + "required": true + }, + { + "name": "rev", + "type": "TypeString", + "description": "Unique revision number for the settings object.", "computed": true } ], "ibm_cloudant": [ + { + "name": "tags", + "type": "TypeSet", + "description": "Tags of Resource Instance", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "guid", + "type": "TypeString", + "description": "Guid of resource instance", + "computed": true + }, + { + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", + "computed": true + }, + { + "name": "enable_cors", + "type": "TypeBool", + "description": "Boolean value to turn CORS on and off.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Resource instance name for example, myobjectstorage", + "required": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "The id of the resource group in which the instance is present", + "cloud_data_type": "resource_group", + "optional": true, + "computed": true + }, + { + "name": "plan", + "type": "TypeString", + "description": "The plan type of the instance", + "computed": true + }, + { + "name": "version", + "type": "TypeString", + "description": "Vendor version.", + "computed": true + }, + { + "name": "include_data_events", + "type": "TypeBool", + "description": "Include data event types in events sent to IBM Cloud Activity Tracker with LogDNA for the IBM Cloudant instance. By default only emitted events are of \"management\" type.", + "computed": true + }, + { + "name": "throughput", + "type": "TypeMap", + "description": "Schema for detailed information about throughput capacity with breakdown by specific throughput requests classes.", + "computed": true, + "elem": { + "type": "TypeInt" + } + }, { "name": "location", "type": "TypeString", @@ -11028,6 +11103,34 @@ "optional": true, "computed": true }, + { + "name": "status", + "type": "TypeString", + "description": "The resource instance status", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "CRN of resource instance", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "extensions", + "type": "TypeMap", + "description": "The extended metadata as a map associated with the resource instance.", + "computed": true + }, + { + "name": "features_flags", + "type": "TypeList", + "description": "List of feature flags.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "cors_config", "type": "TypeList", @@ -11052,34 +11155,9 @@ } }, { - "name": "include_data_events", - "type": "TypeBool", - "description": "Include data event types in events sent to IBM Cloud Activity Tracker with LogDNA for the IBM Cloudant instance. By default only emitted events are of \"management\" type.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Resource instance name for example, myobjectstorage", - "required": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The resource instance status", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "guid", + "name": "service", "type": "TypeString", - "description": "Guid of resource instance", + "description": "The service type of the instance", "computed": true }, { @@ -11089,21 +11167,15 @@ "computed": true }, { - "name": "resource_status", - "type": "TypeString", - "description": "The status of the resource", - "computed": true - }, - { - "name": "version", + "name": "resource_crn", "type": "TypeString", - "description": "Vendor version.", + "description": "The crn of the resource", "computed": true }, { - "name": "service", + "name": "resource_status", "type": "TypeString", - "description": "The service type of the instance", + "description": "The status of the resource", "computed": true }, { @@ -11115,78 +11187,6 @@ "type": "TypeString" } }, - { - "name": "throughput", - "type": "TypeMap", - "description": "Schema for detailed information about throughput capacity with breakdown by specific throughput requests classes.", - "computed": true, - "elem": { - "type": "TypeInt" - } - }, - { - "name": "enable_cors", - "type": "TypeBool", - "description": "Boolean value to turn CORS on and off.", - "computed": true - }, - { - "name": "features_flags", - "type": "TypeList", - "description": "List of feature flags.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "The id of the resource group in which the instance is present", - "cloud_data_type": "resource_group", - "optional": true, - "computed": true - }, - { - "name": "plan", - "type": "TypeString", - "description": "The plan type of the instance", - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "Tags of Resource Instance", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_crn", - "type": "TypeString", - "description": "The crn of the resource", - "computed": true - }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", - "computed": true - }, - { - "name": "extensions", - "type": "TypeMap", - "description": "The extended metadata as a map associated with the resource instance.", - "computed": true - }, { "name": "capacity", "type": "TypeInt", @@ -11195,76 +11195,6 @@ } ], "ibm_cloudant_database": [ - { - "name": "update_seq", - "type": "TypeString", - "description": "An opaque string that describes the state of the database. Do not rely on this string for counting the number of updates.", - "computed": true - }, - { - "name": "instance_crn", - "type": "TypeString", - "description": "Cloudant Instance CRN.", - "required": true - }, - { - "name": "doc_count", - "type": "TypeInt", - "description": "A count of the documents in the specified database.", - "computed": true - }, - { - "name": "doc_del_count", - "type": "TypeInt", - "description": "Number of deleted documents.", - "computed": true - }, - { - "name": "props", - "type": "TypeList", - "description": "The database properties.", - "computed": true, - "elem": { - "partitioned": { - "name": "partitioned", - "type": "TypeBool", - "description": "The value is `true` for a partitioned database.", - "computed": true - } - } - }, - { - "name": "sizes", - "type": "TypeList", - "description": "Database size information.", - "computed": true, - "elem": { - "active": { - "name": "active", - "type": "TypeInt", - "description": "The active size of the data in the database, in bytes.", - "computed": true - }, - "external": { - "name": "external", - "type": "TypeInt", - "description": "The total uncompressed size of the data in the database, in bytes.", - "computed": true - }, - "file": { - "name": "file", - "type": "TypeInt", - "description": "The total size of the database as stored on disk, in bytes.", - "computed": true - } - } - }, - { - "name": "db", - "type": "TypeString", - "description": "Path parameter to specify the database name.", - "required": true - }, { "name": "cluster", "type": "TypeList", @@ -11298,21 +11228,9 @@ } }, { - "name": "compact_running", - "type": "TypeBool", - "description": "True if the database compaction routine is operating on this database.", - "computed": true - }, - { - "name": "compacted_seq", - "type": "TypeString", - "description": "An opaque string that describes the compaction state of the database.", - "computed": true - }, - { - "name": "committed_update_seq", - "type": "TypeString", - "description": "An opaque string that describes the committed state of the database.", + "name": "doc_count", + "type": "TypeInt", + "description": "A count of the documents in the specified database.", "computed": true }, { @@ -11322,207 +11240,107 @@ "computed": true }, { - "name": "disk_format_version", - "type": "TypeInt", - "description": "The version of the physical format used for the data when it is stored on disk.", - "computed": true + "name": "instance_crn", + "type": "TypeString", + "description": "Cloudant Instance CRN.", + "required": true }, { - "name": "engine", + "name": "compacted_seq", "type": "TypeString", - "description": "The engine used for the database.", + "description": "An opaque string that describes the compaction state of the database.", "computed": true - } - ], - "ibm_cm_catalog": [ + }, { - "name": "catalog_filters", + "name": "props", "type": "TypeList", - "description": "Filters for account and catalog filters.", + "description": "The database properties.", "computed": true, "elem": { - "category_filters": { - "name": "category_filters", - "type": "TypeMap", - "description": "Filter against offering properties.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "id_filters": { - "name": "id_filters", - "type": "TypeList", - "description": "Filter on offering ID's. There is an include filter and an exclule filter. Both can be set.", - "computed": true, - "elem": { - "exclude": { - "name": "exclude", - "type": "TypeList", - "description": "Offering filter terms.", - "computed": true, - "elem": { - "filter_terms": { - "name": "filter_terms", - "type": "TypeList", - "description": "List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.", - "computed": true, - "elem": { - "type": "TypeString" - } - } - } - }, - "include": { - "name": "include", - "type": "TypeList", - "description": "Offering filter terms.", - "computed": true, - "elem": { - "filter_terms": { - "name": "filter_terms", - "type": "TypeList", - "description": "List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.", - "computed": true, - "elem": { - "type": "TypeString" - } - } - } - } - } - }, - "include_all": { - "name": "include_all", + "partitioned": { + "name": "partitioned", "type": "TypeBool", - "description": "-\u003e true - Include all of the public catalog when filtering. Further settings will specifically exclude some offerings. false - Exclude all of the public catalog when filtering. Further settings will specifically include some offerings.", + "description": "The value is `true` for a partitioned database.", "computed": true } } }, { - "name": "rev", + "name": "committed_update_seq", "type": "TypeString", - "description": "Cloudant revision.", + "description": "An opaque string that describes the committed state of the database.", "computed": true }, { - "name": "short_description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "catalog_icon_url", + "name": "update_seq", "type": "TypeString", - "description": "URL for an icon associated with this catalog.", + "description": "An opaque string that describes the state of the database. Do not rely on this string for counting the number of updates.", "computed": true }, { - "name": "tags", - "type": "TypeList", - "description": "List of tags associated with this catalog.", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "url", - "type": "TypeString", - "description": "The url for this specific catalog.", + "name": "compact_running", + "type": "TypeBool", + "description": "True if the database compaction routine is operating on this database.", "computed": true }, { - "name": "offerings_url", - "type": "TypeString", - "description": "URL path to offerings.", + "name": "disk_format_version", + "type": "TypeInt", + "description": "The version of the physical format used for the data when it is stored on disk.", "computed": true }, { - "name": "disabled", - "type": "TypeBool", - "description": "Denotes whether a catalog is disabled.", + "name": "doc_del_count", + "type": "TypeInt", + "description": "Number of deleted documents.", "computed": true }, { - "name": "metadata", - "type": "TypeMap", - "description": "Catalog specific metadata.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "engine", + "type": "TypeString", + "description": "The engine used for the database.", + "computed": true }, { - "name": "label_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", + "name": "sizes", + "type": "TypeList", + "description": "Database size information.", "computed": true, "elem": { - "type": "TypeString" + "active": { + "name": "active", + "type": "TypeInt", + "description": "The active size of the data in the database, in bytes.", + "computed": true + }, + "external": { + "name": "external", + "type": "TypeInt", + "description": "The total uncompressed size of the data in the database, in bytes.", + "computed": true + }, + "file": { + "name": "file", + "type": "TypeInt", + "description": "The total size of the database as stored on disk, in bytes.", + "computed": true + } } }, { - "name": "crn", - "type": "TypeString", - "description": "CRN associated with the catalog.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "kind", - "type": "TypeString", - "description": "Kind of catalog. Supported kinds are offering and vpe.", - "computed": true - }, - { - "name": "label", + "name": "db", "type": "TypeString", - "description": "Display Name in the requested language.", - "computed": true - }, + "description": "Path parameter to specify the database name.", + "required": true + } + ], + "ibm_cm_catalog": [ { "name": "short_description", "type": "TypeString", "description": "Description in the requested language.", "computed": true }, - { - "name": "catalog_banner_url", - "type": "TypeString", - "description": "URL for a banner image for this catalog.", - "computed": true - }, - { - "name": "updated", - "type": "TypeString", - "description": "The date-time this catalog was last updated.", - "computed": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group id the catalog is owned by.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "catalog_identifier", - "type": "TypeString", - "description": "Catalog identifier.", - "required": true - }, - { - "name": "id", - "type": "TypeString", - "description": "Unique ID.", - "computed": true - }, { "name": "features", "type": "TypeList", @@ -11562,15 +11380,10 @@ } }, { - "name": "created", - "type": "TypeString", - "description": "The date-time this catalog was created.", - "computed": true - }, - { - "name": "owning_account", + "name": "resource_group_id", "type": "TypeString", - "description": "Account that owns catalog.", + "description": "Resource group id the catalog is owned by.", + "cloud_data_type": "resource_group", "computed": true }, { @@ -11736,6 +11549,159 @@ } } }, + { + "name": "label_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "short_description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "url", + "type": "TypeString", + "description": "The url for this specific catalog.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "CRN associated with the catalog.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "disabled", + "type": "TypeBool", + "description": "Denotes whether a catalog is disabled.", + "computed": true + }, + { + "name": "updated", + "type": "TypeString", + "description": "The date-time this catalog was last updated.", + "computed": true + }, + { + "name": "owning_account", + "type": "TypeString", + "description": "Account that owns catalog.", + "computed": true + }, + { + "name": "catalog_identifier", + "type": "TypeString", + "description": "Catalog identifier.", + "required": true + }, + { + "name": "id", + "type": "TypeString", + "description": "Unique ID.", + "computed": true + }, + { + "name": "rev", + "type": "TypeString", + "description": "Cloudant revision.", + "computed": true + }, + { + "name": "catalog_icon_url", + "type": "TypeString", + "description": "URL for an icon associated with this catalog.", + "computed": true + }, + { + "name": "offerings_url", + "type": "TypeString", + "description": "URL path to offerings.", + "computed": true + }, + { + "name": "catalog_filters", + "type": "TypeList", + "description": "Filters for account and catalog filters.", + "computed": true, + "elem": { + "category_filters": { + "name": "category_filters", + "type": "TypeMap", + "description": "Filter against offering properties.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "id_filters": { + "name": "id_filters", + "type": "TypeList", + "description": "Filter on offering ID's. There is an include filter and an exclule filter. Both can be set.", + "computed": true, + "elem": { + "exclude": { + "name": "exclude", + "type": "TypeList", + "description": "Offering filter terms.", + "computed": true, + "elem": { + "filter_terms": { + "name": "filter_terms", + "type": "TypeList", + "description": "List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.", + "computed": true, + "elem": { + "type": "TypeString" + } + } + } + }, + "include": { + "name": "include", + "type": "TypeList", + "description": "Offering filter terms.", + "computed": true, + "elem": { + "filter_terms": { + "name": "filter_terms", + "type": "TypeList", + "description": "List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.", + "computed": true, + "elem": { + "type": "TypeString" + } + } + } + } + } + }, + "include_all": { + "name": "include_all", + "type": "TypeBool", + "description": "-\u003e true - Include all of the public catalog when filtering. Further settings will specifically exclude some offerings. false - Exclude all of the public catalog when filtering. Further settings will specifically include some offerings.", + "computed": true + } + } + }, + { + "name": "metadata", + "type": "TypeMap", + "description": "Catalog specific metadata.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "target_account_contexts", "type": "TypeList", @@ -11800,76 +11766,54 @@ } } } - } - ], - "ibm_cm_object": [ + }, { - "name": "state", - "type": "TypeList", - "description": "Offering state.", - "computed": true, - "elem": { - "current": { - "name": "current", - "type": "TypeString", - "description": "one of: new, validated, account-published, ibm-published, public-published.", - "computed": true - }, - "current_entered": { - "name": "current_entered", - "type": "TypeString", - "description": "Date and time of current request.", - "computed": true - }, - "pending": { - "name": "pending", - "type": "TypeString", - "description": "one of: new, validated, account-published, ibm-published, public-published.", - "computed": true - }, - "pending_requested": { - "name": "pending_requested", - "type": "TypeString", - "description": "Date and time of pending request.", - "computed": true - }, - "previous": { - "name": "previous", - "type": "TypeString", - "description": "one of: new, validated, account-published, ibm-published, public-published.", - "computed": true - } - } + "name": "label", + "type": "TypeString", + "description": "Display Name in the requested language.", + "computed": true }, { - "name": "url", + "name": "catalog_banner_url", "type": "TypeString", - "description": "The url for this specific object.", + "description": "URL for a banner image for this catalog.", "computed": true }, { - "name": "parent_id", + "name": "tags", + "type": "TypeList", + "description": "List of tags associated with this catalog.", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "created", "type": "TypeString", - "description": "The parent for this specific object.", + "description": "The date-time this catalog was created.", "computed": true }, { "name": "kind", "type": "TypeString", - "description": "Kind of object.", + "description": "Kind of catalog. Supported kinds are offering and vpe.", "computed": true - }, + } + ], + "ibm_cm_object": [ { - "name": "short_description", + "name": "updated", "type": "TypeString", - "description": "Short description in the requested language.", + "description": "The date and time this catalog was last updated.", "computed": true }, { - "name": "catalog_name", + "name": "object_id", "type": "TypeString", - "description": "The name of the catalog.", - "computed": true + "description": "Object identifier.", + "required": true }, { "name": "rev", @@ -11884,6 +11828,18 @@ "cloud_data_type": "crn", "computed": true }, + { + "name": "url", + "type": "TypeString", + "description": "The url for this specific object.", + "computed": true + }, + { + "name": "parent_id", + "type": "TypeString", + "description": "The parent for this specific object.", + "computed": true + }, { "name": "created", "type": "TypeString", @@ -11891,21 +11847,47 @@ "computed": true }, { - "name": "tags", - "type": "TypeList", - "description": "List of tags associated with this catalog.", - "cloud_data_type": "tags", + "name": "catalog_id", + "type": "TypeString", + "description": "Catalog identifier.", + "required": true + }, + { + "name": "label_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "updated", + "name": "label", "type": "TypeString", - "description": "The date and time this catalog was last updated.", + "description": "Display name in the requested language.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The programmatic name of this object.", + "computed": true + }, + { + "name": "short_description", + "type": "TypeString", + "description": "Short description in the requested language.", "computed": true }, + { + "name": "short_description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "publish", "type": "TypeList", @@ -11945,61 +11927,247 @@ } }, { - "name": "data", + "name": "catalog_name", "type": "TypeString", - "description": "Stringified map of data values for this object.", + "description": "The name of the catalog.", "computed": true }, { - "name": "catalog_id", + "name": "catalog_object_id", "type": "TypeString", - "description": "Catalog identifier.", - "required": true + "description": "unique id.", + "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The programmatic name of this object.", - "computed": true + "name": "tags", + "type": "TypeList", + "description": "List of tags associated with this catalog.", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "label", + "name": "kind", "type": "TypeString", - "description": "Display name in the requested language.", + "description": "Kind of object.", "computed": true }, { - "name": "short_description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", + "name": "state", + "type": "TypeList", + "description": "Offering state.", "computed": true, "elem": { - "type": "TypeString" + "current": { + "name": "current", + "type": "TypeString", + "description": "one of: new, validated, account-published, ibm-published, public-published.", + "computed": true + }, + "current_entered": { + "name": "current_entered", + "type": "TypeString", + "description": "Date and time of current request.", + "computed": true + }, + "pending": { + "name": "pending", + "type": "TypeString", + "description": "one of: new, validated, account-published, ibm-published, public-published.", + "computed": true + }, + "pending_requested": { + "name": "pending_requested", + "type": "TypeString", + "description": "Date and time of pending request.", + "computed": true + }, + "previous": { + "name": "previous", + "type": "TypeString", + "description": "one of: new, validated, account-published, ibm-published, public-published.", + "computed": true + } } }, { - "name": "object_id", + "name": "data", "type": "TypeString", - "description": "Object identifier.", - "required": true + "description": "Stringified map of data values for this object.", + "computed": true + } + ], + "ibm_cm_offering": [ + { + "name": "rating", + "type": "TypeList", + "description": "Repository info for offerings.", + "computed": true, + "elem": { + "four_star_count": { + "name": "four_star_count", + "type": "TypeInt", + "description": "Four start rating.", + "computed": true + }, + "one_star_count": { + "name": "one_star_count", + "type": "TypeInt", + "description": "One start rating.", + "computed": true + }, + "three_star_count": { + "name": "three_star_count", + "type": "TypeInt", + "description": "Three start rating.", + "computed": true + }, + "two_star_count": { + "name": "two_star_count", + "type": "TypeInt", + "description": "Two start rating.", + "computed": true + } + } }, { - "name": "catalog_object_id", + "name": "created", "type": "TypeString", - "description": "unique id.", + "description": "The date and time this catalog was created.", "computed": true }, { - "name": "label_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", + "name": "media", + "type": "TypeList", + "description": "A list of media items related to this offering.", "computed": true, "elem": { - "type": "TypeString" + "api_url": { + "name": "api_url", + "type": "TypeString", + "description": "CM API specific URL of the specified media item.", + "computed": true + }, + "caption": { + "name": "caption", + "type": "TypeString", + "description": "Caption for this media item.", + "computed": true + }, + "caption_i18n": { + "name": "caption_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "thumbnail_url": { + "name": "thumbnail_url", + "type": "TypeString", + "description": "Thumbnail URL for this media item.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of this media item.", + "computed": true + }, + "url": { + "name": "url", + "type": "TypeString", + "description": "URL of the specified media item.", + "computed": true + }, + "url_proxy": { + "name": "url_proxy", + "type": "TypeList", + "description": "Offering URL proxy information.", + "computed": true, + "elem": { + "sha": { + "name": "sha", + "type": "TypeString", + "description": "SHA256 fingerprint of image.", + "computed": true + }, + "url": { + "name": "url", + "type": "TypeString", + "description": "URL of the specified media item being proxied.", + "computed": true + } + } + } } - } - ], - "ibm_cm_offering": [ + }, + { + "name": "product_kind", + "type": "TypeString", + "description": "The product kind. Valid values are module, solution, or empty string.", + "computed": true + }, + { + "name": "permit_request_ibm_public_publish", + "type": "TypeBool", + "description": "Is it permitted to request publishing to IBM or Public.", + "computed": true, + "deprecated": "This argument is deprecated" + }, + { + "name": "public_publish_approved", + "type": "TypeBool", + "description": "Indicates if this offering has been approved for use by all IBM Cloud users.", + "computed": true, + "deprecated": "This argument is deprecated" + }, + { + "name": "publish_public_crn", + "type": "TypeString", + "description": "The crn of the public catalog entry of this offering.", + "computed": true + }, + { + "name": "portal_ui_url", + "type": "TypeString", + "description": "The portal UI URL.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The crn for this specific offering.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The programmatic name of this offering.", + "computed": true + }, + { + "name": "offering_support_url", + "type": "TypeString", + "description": "[deprecated] - Use offering.support instead. URL to be displayed in the Consumption UI for getting support on this offering.", + "computed": true + }, + { + "name": "share_with_all", + "type": "TypeBool", + "description": "Denotes public availability of an Offering - if share_enabled is true.", + "computed": true + }, + { + "name": "offering_identifier", + "type": "TypeString", + "description": "Computed Offering ID.", + "computed": true + }, { "name": "metadata", "type": "TypeMap", @@ -12016,70 +12184,200 @@ "computed": true }, { - "name": "catalog_id", - "type": "TypeString", - "description": "Catalog identifier.", - "immutable": true, - "required": true - }, - { - "name": "tags", + "name": "provider_info", "type": "TypeList", - "description": "List of tags associated with this catalog.", - "cloud_data_type": "tags", + "description": "Information on the provider for this offering, or omitted if no provider information is given.", "computed": true, "elem": { - "type": "TypeString" + "id": { + "name": "id", + "type": "TypeString", + "description": "The id of this provider.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The name of this provider.", + "computed": true + } } }, { - "name": "kinds", + "name": "badges", "type": "TypeList", - "description": "Array of kind.", + "description": "A list of badges for this offering.", "computed": true, "elem": { - "additional_features": { - "name": "additional_features", + "authority": { + "name": "authority", + "type": "TypeString", + "description": "Authority for the current badge.", + "computed": true + }, + "constraints": { + "name": "constraints", "type": "TypeList", - "description": "List of features associated with this offering.", + "description": "An optional set of constraints indicating which versions in an Offering have this particular badge.", "computed": true, "elem": { - "description": { - "name": "description", + "rule": { + "name": "rule", "type": "TypeString", - "description": "Feature description.", + "description": "Rule for the current constraint.", "computed": true }, - "description_i18n": { - "name": "description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "title": { - "name": "title", + "type": { + "name": "type", "type": "TypeString", - "description": "Heading.", + "description": "Type of the current constraint.", "computed": true - }, - "title_i18n": { - "name": "title_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } } } }, - "created": { - "name": "created", + "description": { + "name": "description", "type": "TypeString", - "description": "The date and time this catalog was created.", + "description": "Description of the current badge.", + "computed": true + }, + "description_i18n": { + "name": "description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "icon": { + "name": "icon", + "type": "TypeString", + "description": "Icon for the current badge.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "ID of the current badge.", + "computed": true + }, + "label": { + "name": "label", + "type": "TypeString", + "description": "Display name for the current badge.", + "computed": true + }, + "label_i18n": { + "name": "label_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "learn_more_links": { + "name": "learn_more_links", + "type": "TypeList", + "description": "Learn more links for a badge.", + "computed": true, + "elem": { + "first_party": { + "name": "first_party", + "type": "TypeString", + "description": "First party link.", + "computed": true + }, + "third_party": { + "name": "third_party", + "type": "TypeString", + "description": "Third party link.", + "computed": true + } + } + }, + "tag": { + "name": "tag", + "type": "TypeString", + "description": "Tag for the current badge.", + "computed": true + } + } + }, + { + "name": "url", + "type": "TypeString", + "description": "The url for this specific offering.", + "computed": true + }, + { + "name": "tags", + "type": "TypeList", + "description": "List of tags associated with this catalog.", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "long_description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "kinds", + "type": "TypeList", + "description": "Array of kind.", + "computed": true, + "elem": { + "additional_features": { + "name": "additional_features", + "type": "TypeList", + "description": "List of features associated with this offering.", + "computed": true, + "elem": { + "description": { + "name": "description", + "type": "TypeString", + "description": "Feature description.", + "computed": true + }, + "description_i18n": { + "name": "description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "title": { + "name": "title", + "type": "TypeString", + "description": "Heading.", + "computed": true + }, + "title_i18n": { + "name": "title_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + } + } + }, + "created": { + "name": "created", + "type": "TypeString", + "description": "The date and time this catalog was created.", "computed": true }, "format_kind": { @@ -14072,92 +14370,21 @@ } }, { - "name": "public_original_crn", - "type": "TypeString", - "description": "The original offering CRN that this publish entry came from.", - "computed": true - }, - { - "name": "long_description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "publish_approved", - "type": "TypeBool", - "description": "Offering has been approved to publish to permitted to IBM or Public Catalog.", - "computed": true - }, - { - "name": "portal_approval_record", + "name": "rev", "type": "TypeString", - "description": "The portal's approval record ID.", + "description": "Cloudant revision.", "computed": true }, { - "name": "deprecate_pending", - "type": "TypeList", - "description": "Deprecation information for an Offering.", - "computed": true, - "elem": { - "deprecate_date": { - "name": "deprecate_date", - "type": "TypeString", - "description": "Date of deprecation.", - "computed": true - }, - "deprecate_state": { - "name": "deprecate_state", - "type": "TypeString", - "description": "Deprecation state.", - "computed": true - }, - "description": { - "name": "description", - "type": "TypeString", - "computed": true - } - } - }, - { - "name": "offering_id", - "type": "TypeString", - "description": "Offering identifier.", - "immutable": true, - "required": true - }, - { - "name": "offering_docs_url", + "name": "catalog_name", "type": "TypeString", - "description": "URL for an additional docs with this offering.", + "description": "The name of the catalog.", "computed": true }, { - "name": "keywords", - "type": "TypeList", - "description": "List of keywords associated with offering, typically used to search for it.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "short_description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "catalog_name", + "name": "disclaimer", "type": "TypeString", - "description": "The name of the catalog.", + "description": "A disclaimer for this offering.", "computed": true }, { @@ -14345,47 +14572,45 @@ } }, { - "name": "product_kind", + "name": "label", "type": "TypeString", - "description": "The product kind. Valid values are module, solution, or empty string.", + "description": "Display Name in the requested language.", "computed": true }, { - "name": "badges", + "name": "label_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "share_with_access_list", "type": "TypeList", - "description": "A list of badges for this offering.", + "description": "A list of account IDs to add to this offering's access list.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "public_original_crn", + "type": "TypeString", + "description": "The original offering CRN that this publish entry came from.", + "computed": true + }, + { + "name": "features", + "type": "TypeList", + "description": "list of features associated with this offering.", "computed": true, "elem": { - "authority": { - "name": "authority", - "type": "TypeString", - "description": "Authority for the current badge.", - "computed": true - }, - "constraints": { - "name": "constraints", - "type": "TypeList", - "description": "An optional set of constraints indicating which versions in an Offering have this particular badge.", - "computed": true, - "elem": { - "rule": { - "name": "rule", - "type": "TypeString", - "description": "Rule for the current constraint.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of the current constraint.", - "computed": true - } - } - }, "description": { "name": "description", "type": "TypeString", - "description": "Description of the current badge.", + "description": "Feature description.", "computed": true }, "description_i18n": { @@ -14397,88 +14622,43 @@ "type": "TypeString" } }, - "icon": { - "name": "icon", - "type": "TypeString", - "description": "Icon for the current badge.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "ID of the current badge.", - "computed": true - }, - "label": { - "name": "label", + "title": { + "name": "title", "type": "TypeString", - "description": "Display name for the current badge.", + "description": "Heading.", "computed": true }, - "label_i18n": { - "name": "label_i18n", + "title_i18n": { + "name": "title_i18n", "type": "TypeMap", "description": "A map of translated strings, by language code.", "computed": true, "elem": { "type": "TypeString" } - }, - "learn_more_links": { - "name": "learn_more_links", - "type": "TypeList", - "description": "Learn more links for a badge.", - "computed": true, - "elem": { - "first_party": { - "name": "first_party", - "type": "TypeString", - "description": "First party link.", - "computed": true - }, - "third_party": { - "name": "third_party", - "type": "TypeString", - "description": "Third party link.", - "computed": true - } - } - }, - "tag": { - "name": "tag", - "type": "TypeString", - "description": "Tag for the current badge.", - "computed": true } } }, { - "name": "updated", - "type": "TypeString", - "description": "The date and time this catalog was last updated.", - "computed": true - }, - { - "name": "share_enabled", + "name": "share_with_ibm", "type": "TypeBool", - "description": "Denotes sharing including access list availability of an Offering is enabled.", + "description": "Denotes IBM employee availability of an Offering - if share_enabled is true.", "computed": true }, { - "name": "ibm_publish_approved", - "type": "TypeBool", - "description": "Indicates if this offering has been approved for use by all IBMers.", - "computed": true, - "deprecated": "This argument is deprecated" + "name": "updated", + "type": "TypeString", + "description": "The date and time this catalog was last updated.", + "computed": true }, { - "name": "portal_ui_url", + "name": "short_description", "type": "TypeString", - "description": "The portal UI URL.", + "description": "Short description in the requested language.", "computed": true }, { - "name": "label_i18n", + "name": "short_description_i18n", "type": "TypeMap", "description": "A map of translated strings, by language code.", "computed": true, @@ -14486,123 +14666,12 @@ "type": "TypeString" } }, - { - "name": "rating", - "type": "TypeList", - "description": "Repository info for offerings.", - "computed": true, - "elem": { - "four_star_count": { - "name": "four_star_count", - "type": "TypeInt", - "description": "Four start rating.", - "computed": true - }, - "one_star_count": { - "name": "one_star_count", - "type": "TypeInt", - "description": "One start rating.", - "computed": true - }, - "three_star_count": { - "name": "three_star_count", - "type": "TypeInt", - "description": "Three start rating.", - "computed": true - }, - "two_star_count": { - "name": "two_star_count", - "type": "TypeInt", - "description": "Two start rating.", - "computed": true - } - } - }, - { - "name": "created", - "type": "TypeString", - "description": "The date and time this catalog was created.", - "computed": true - }, { "name": "long_description", "type": "TypeString", "description": "Long description in the requested language.", "computed": true }, - { - "name": "disclaimer", - "type": "TypeString", - "description": "A disclaimer for this offering.", - "computed": true - }, - { - "name": "offering_identifier", - "type": "TypeString", - "description": "Computed Offering ID.", - "computed": true - }, - { - "name": "url", - "type": "TypeString", - "description": "The url for this specific offering.", - "computed": true - }, - { - "name": "share_with_access_list", - "type": "TypeList", - "description": "A list of account IDs to add to this offering's access list.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "permit_request_ibm_public_publish", - "type": "TypeBool", - "description": "Is it permitted to request publishing to IBM or Public.", - "computed": true, - "deprecated": "This argument is deprecated" - }, - { - "name": "public_publish_approved", - "type": "TypeBool", - "description": "Indicates if this offering has been approved for use by all IBM Cloud users.", - "computed": true, - "deprecated": "This argument is deprecated" - }, - { - "name": "share_with_all", - "type": "TypeBool", - "description": "Denotes public availability of an Offering - if share_enabled is true.", - "computed": true - }, - { - "name": "publish_public_crn", - "type": "TypeString", - "description": "The crn of the public catalog entry of this offering.", - "computed": true - }, - { - "name": "provider_info", - "type": "TypeList", - "description": "Information on the provider for this offering, or omitted if no provider information is given.", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "The id of this provider.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The name of this provider.", - "computed": true - } - } - }, { "name": "image_pull_keys", "type": "TypeList", @@ -14630,78 +14699,39 @@ } }, { - "name": "name", - "type": "TypeString", - "description": "The programmatic name of this offering.", - "computed": true - }, - { - "name": "offering_icon_url", - "type": "TypeString", - "description": "URL for an icon associated with this offering.", - "computed": true - }, - { - "name": "offering_support_url", + "name": "catalog_id", "type": "TypeString", - "description": "[deprecated] - Use offering.support instead. URL to be displayed in the Consumption UI for getting support on this offering.", - "computed": true + "description": "Catalog identifier.", + "immutable": true, + "required": true }, { - "name": "features", + "name": "keywords", "type": "TypeList", - "description": "list of features associated with this offering.", + "description": "List of keywords associated with offering, typically used to search for it.", "computed": true, "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "Feature description.", - "computed": true - }, - "description_i18n": { - "name": "description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "title": { - "name": "title", - "type": "TypeString", - "description": "Heading.", - "computed": true - }, - "title_i18n": { - "name": "title_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - } + "type": "TypeString" } }, { - "name": "label", - "type": "TypeString", - "description": "Display Name in the requested language.", + "name": "publish_approved", + "type": "TypeBool", + "description": "Offering has been approved to publish to permitted to IBM or Public Catalog.", "computed": true }, { - "name": "pc_managed", + "name": "share_enabled", "type": "TypeBool", - "description": "Offering is managed by Partner Center.", + "description": "Denotes sharing including access list availability of an Offering is enabled.", "computed": true }, { - "name": "share_with_ibm", + "name": "ibm_publish_approved", "type": "TypeBool", - "description": "Denotes IBM employee availability of an Offering - if share_enabled is true.", - "computed": true + "description": "Indicates if this offering has been approved for use by all IBMers.", + "computed": true, + "deprecated": "This argument is deprecated" }, { "name": "repo_info", @@ -14724,93 +14754,69 @@ } }, { - "name": "crn", - "type": "TypeString", - "description": "The crn for this specific offering.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "short_description", + "name": "portal_approval_record", "type": "TypeString", - "description": "Short description in the requested language.", + "description": "The portal's approval record ID.", "computed": true }, { - "name": "media", + "name": "deprecate_pending", "type": "TypeList", - "description": "A list of media items related to this offering.", + "description": "Deprecation information for an Offering.", "computed": true, "elem": { - "api_url": { - "name": "api_url", - "type": "TypeString", - "description": "CM API specific URL of the specified media item.", - "computed": true - }, - "caption": { - "name": "caption", - "type": "TypeString", - "description": "Caption for this media item.", - "computed": true - }, - "caption_i18n": { - "name": "caption_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "thumbnail_url": { - "name": "thumbnail_url", + "deprecate_date": { + "name": "deprecate_date", "type": "TypeString", - "description": "Thumbnail URL for this media item.", + "description": "Date of deprecation.", "computed": true }, - "type": { - "name": "type", + "deprecate_state": { + "name": "deprecate_state", "type": "TypeString", - "description": "Type of this media item.", + "description": "Deprecation state.", "computed": true }, - "url": { - "name": "url", + "description": { + "name": "description", "type": "TypeString", - "description": "URL of the specified media item.", "computed": true - }, - "url_proxy": { - "name": "url_proxy", - "type": "TypeList", - "description": "Offering URL proxy information.", - "computed": true, - "elem": { - "sha": { - "name": "sha", - "type": "TypeString", - "description": "SHA256 fingerprint of image.", - "computed": true - }, - "url": { - "name": "url", - "type": "TypeString", - "description": "URL of the specified media item being proxied.", - "computed": true - } - } } } }, { - "name": "rev", + "name": "offering_id", "type": "TypeString", - "description": "Cloudant revision.", + "description": "Offering identifier.", + "immutable": true, + "required": true + }, + { + "name": "offering_icon_url", + "type": "TypeString", + "description": "URL for an icon associated with this offering.", + "computed": true + }, + { + "name": "offering_docs_url", + "type": "TypeString", + "description": "URL for an additional docs with this offering.", + "computed": true + }, + { + "name": "pc_managed", + "type": "TypeBool", + "description": "Offering is managed by Partner Center.", "computed": true } ], "ibm_cm_offering_instance": [ + { + "name": "channel", + "type": "TypeString", + "description": "channel to target for the operator subscription. Required for operator bundles", + "computed": true + }, { "name": "instance_identifier", "type": "TypeString", @@ -14818,21 +14824,33 @@ "required": true }, { - "name": "url", + "name": "catalog_id", "type": "TypeString", - "description": "url reference to this object.", + "description": "Catalog ID this instance was created from.", "computed": true }, { - "name": "catalog_id", + "name": "offering_id", "type": "TypeString", - "description": "Catalog ID this instance was created from.", + "description": "Offering ID this instance was created from.", "computed": true }, { - "name": "version", + "name": "cluster_all_namespaces", + "type": "TypeBool", + "description": "designate to install into all namespaces.", + "computed": true + }, + { + "name": "schematics_workspace_id", "type": "TypeString", - "description": "The version this instance was installed from (not version id).", + "description": "id of the schematics workspace, for offerings installed through schematics", + "computed": true + }, + { + "name": "url", + "type": "TypeString", + "description": "url reference to this object.", "computed": true }, { @@ -14842,15 +14860,21 @@ "computed": true }, { - "name": "offering_id", + "name": "label", "type": "TypeString", - "description": "Offering ID this instance was created from.", + "description": "the label for this instance.", "computed": true }, { - "name": "kind_format", + "name": "version", "type": "TypeString", - "description": "the format this instance has (helm, operator, ova...).", + "description": "The version this instance was installed from (not version id).", + "computed": true + }, + { + "name": "cluster_region", + "type": "TypeString", + "description": "Cluster region (e.g., us-south).", "computed": true }, { @@ -14862,24 +14886,12 @@ "type": "TypeString" } }, - { - "name": "schematics_workspace_id", - "type": "TypeString", - "description": "id of the schematics workspace, for offerings installed through schematics", - "computed": true - }, { "name": "install_plan", "type": "TypeString", "description": "install plan for the subscription of the operator- can be either Automatic or Manual. Required for operator bundles", "computed": true }, - { - "name": "channel", - "type": "TypeString", - "description": "channel to target for the operator subscription. Required for operator bundles", - "computed": true - }, { "name": "crn", "type": "TypeString", @@ -14888,22 +14900,9 @@ "computed": true }, { - "name": "cluster_region", - "type": "TypeString", - "description": "Cluster region (e.g., us-south).", - "computed": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "id of the resource group", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "label", + "name": "kind_format", "type": "TypeString", - "description": "the label for this instance.", + "description": "the format this instance has (helm, operator, ova...).", "computed": true }, { @@ -14913,9 +14912,10 @@ "computed": true }, { - "name": "cluster_all_namespaces", - "type": "TypeBool", - "description": "designate to install into all namespaces.", + "name": "resource_group_id", + "type": "TypeString", + "description": "id of the resource group", + "cloud_data_type": "resource_group", "computed": true } ], @@ -14934,6 +14934,99 @@ } ], "ibm_cm_version": [ + { + "name": "flavor", + "type": "TypeList", + "description": "Version Flavor Information. Only supported for Product kind Solution.", + "computed": true, + "elem": { + "index": { + "name": "index", + "type": "TypeInt", + "description": "Order that this flavor should appear when listed for a single version.", + "computed": true + }, + "label": { + "name": "label", + "type": "TypeString", + "description": "Label for this flavor.", + "computed": true + }, + "label_i18n": { + "name": "label_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Programmatic name for this flavor.", + "computed": true + } + } + }, + { + "name": "outputs", + "type": "TypeList", + "description": "List of output values for this version.", + "computed": true, + "elem": { + "description": { + "name": "description", + "type": "TypeString", + "description": "Output description.", + "computed": true + }, + "key": { + "name": "key", + "type": "TypeString", + "description": "Output key.", + "computed": true + } + } + }, + { + "name": "state", + "type": "TypeList", + "description": "Offering state.", + "computed": true, + "elem": { + "current": { + "name": "current", + "type": "TypeString", + "description": "one of: new, validated, account-published, ibm-published, public-published.", + "computed": true + }, + "current_entered": { + "name": "current_entered", + "type": "TypeString", + "description": "Date and time of current request.", + "computed": true + }, + "pending": { + "name": "pending", + "type": "TypeString", + "description": "one of: new, validated, account-published, ibm-published, public-published.", + "computed": true + }, + "pending_requested": { + "name": "pending_requested", + "type": "TypeString", + "description": "Date and time of pending request.", + "computed": true + }, + "previous": { + "name": "previous", + "type": "TypeString", + "description": "one of: new, validated, account-published, ibm-published, public-published.", + "computed": true + } + } + }, { "name": "created", "type": "TypeString", @@ -14941,21 +15034,240 @@ "computed": true }, { - "name": "required_resources", + "name": "configuration", "type": "TypeList", - "description": "Resource requirments for installation.", + "description": "List of user solicited overrides.", "computed": true, "elem": { + "custom_config": { + "name": "custom_config", + "type": "TypeList", + "description": "Render type.", + "computed": true, + "elem": { + "associations": { + "name": "associations", + "type": "TypeList", + "description": "List of parameters that are associated with this configuration.", + "computed": true, + "elem": { + "parameters": { + "name": "parameters", + "type": "TypeList", + "description": "Parameters for this association.", + "computed": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of this parameter.", + "computed": true + }, + "options_refresh": { + "name": "options_refresh", + "type": "TypeBool", + "description": "Refresh options.", + "computed": true + } + } + } + } + }, + "config_constraints": { + "name": "config_constraints", + "type": "TypeMap", + "description": "Map of constraint parameters that will be passed to the custom widget.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "grouping": { + "name": "grouping", + "type": "TypeString", + "description": "Determines where this configuration type is rendered (3 sections today - Target, Resource, and Deployment).", + "computed": true + }, + "grouping_index": { + "name": "grouping_index", + "type": "TypeInt", + "description": "Determines the order that this configuration item shows in that particular grouping.", + "computed": true + }, + "original_grouping": { + "name": "original_grouping", + "type": "TypeString", + "description": "Original grouping type for this configuration (3 types - Target, Resource, and Deployment).", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "ID of the widget type.", + "computed": true + } + } + }, + "default_value": { + "name": "default_value", + "type": "TypeString", + "description": "The default value as a JSON encoded string. To use a secret when the type is password, specify a JSON encoded value of $ref:#/components/schemas/SecretInstance, prefixed with `cmsm_v1:`.", + "computed": true + }, + "description": { + "name": "description", + "type": "TypeString", + "description": "Key description.", + "computed": true + }, + "display_name": { + "name": "display_name", + "type": "TypeString", + "description": "Display name for configuration type.", + "computed": true + }, + "hidden": { + "name": "hidden", + "type": "TypeBool", + "description": "Hide values.", + "computed": true + }, + "key": { + "name": "key", + "type": "TypeString", + "description": "Configuration key.", + "computed": true + }, + "options": { + "name": "options", + "type": "TypeList", + "description": "List of options of type.", + "computed": true, + "elem": { + "type": "TypeMap" + } + }, + "required": { + "name": "required", + "type": "TypeBool", + "description": "Is key required to install.", + "computed": true + }, "type": { "name": "type", "type": "TypeString", - "description": "Type of requirement.", + "description": "Value type (string, boolean, int).", "computed": true }, - "value": { - "name": "value", + "type_metadata": { + "name": "type_metadata", "type": "TypeString", - "description": "mem, disk, cores, and nodes can be parsed as an int. targetVersion will be a semver range value.", + "description": "The original type, as found in the source being onboarded.", + "computed": true + }, + "value_constraint": { + "name": "value_constraint", + "type": "TypeString", + "description": "Constraint associated with value, e.g., for string type - regx:[a-z].", + "computed": true + } + } + }, + { + "name": "iam_permissions", + "type": "TypeList", + "description": "List of IAM permissions that are required to consume this version.", + "computed": true, + "elem": { + "resources": { + "name": "resources", + "type": "TypeList", + "description": "Resources for this permission.", + "computed": true, + "elem": { + "description": { + "name": "description", + "type": "TypeString", + "description": "Resource description.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Resource name.", + "computed": true + }, + "role_crns": { + "name": "role_crns", + "type": "TypeList", + "description": "Role CRNs for this permission.", + "computed": true, + "elem": { + "type": "TypeString" + } + } + } + }, + "role_crns": { + "name": "role_crns", + "type": "TypeList", + "description": "Role CRNs for this permission.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "service_name": { + "name": "service_name", + "type": "TypeString", + "description": "Service name.", + "computed": true + } + } + }, + { + "name": "pre_install", + "type": "TypeList", + "description": "Optional pre-install instructions.", + "computed": true, + "elem": { + "delete_script": { + "name": "delete_script", + "type": "TypeString", + "description": "Optional script that if run will remove the installed version.", + "computed": true + }, + "instructions": { + "name": "instructions", + "type": "TypeString", + "description": "Instruction on step and by whom (role) that are needed to take place to prepare the target for installing this version.", + "computed": true + }, + "instructions_i18n": { + "name": "instructions_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "scope": { + "name": "scope", + "type": "TypeString", + "description": "Optional value indicating if this script is scoped to a namespace or the entire cluster.", + "computed": true + }, + "script": { + "name": "script", + "type": "TypeString", + "description": "Optional script that needs to be run post any pre-condition script.", + "computed": true + }, + "script_permission": { + "name": "script_permission", + "type": "TypeString", + "description": "Optional iam permissions that are required on the target cluster to run this script.", "computed": true } } @@ -14999,17 +15311,462 @@ } }, { - "name": "image_manifest_url", - "type": "TypeString", - "description": "If set, denotes a url to a YAML file with list of container images used by this version.", + "name": "whitelisted_accounts", + "type": "TypeList", + "description": "Whitelisted accounts for version.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "deprecated", + "type": "TypeBool", + "description": "read only field, indicating if this version is deprecated.", "computed": true }, { - "name": "version_locator", + "name": "version_loc_id", "type": "TypeString", "description": "A dotted value of `catalogID`.`versionID`.", + "required": true + }, + { + "name": "rev", + "type": "TypeString", + "description": "Cloudant revision.", + "computed": true + }, + { + "name": "version", + "type": "TypeString", + "description": "Version of content type.", + "computed": true + }, + { + "name": "offering_id", + "type": "TypeString", + "description": "Offering ID.", + "computed": true + }, + { + "name": "kind_id", + "type": "TypeString", + "description": "Kind ID.", + "computed": true + }, + { + "name": "repo_url", + "type": "TypeString", + "description": "Content's repo URL.", + "computed": true + }, + { + "name": "single_instance", + "type": "TypeBool", + "description": "Denotes if single instance can be deployed to a given cluster.", "computed": true }, + { + "name": "long_description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "tgz_url", + "type": "TypeString", + "description": "File used to on-board this version.", + "computed": true + }, + { + "name": "metadata", + "type": "TypeList", + "description": "Generic data to be included with content being onboarded. Required for virtual server image for VPC.", + "computed": true, + "elem": { + "end_deploy_time": { + "name": "end_deploy_time", + "type": "TypeString", + "description": "The time validation ended.", + "computed": true + }, + "est_deploy_time": { + "name": "est_deploy_time", + "type": "TypeFloat", + "description": "The estimated time validation takes.", + "computed": true + }, + "example_name": { + "name": "example_name", + "type": "TypeString", + "description": "Working directory of source files.", + "computed": true + }, + "file": { + "name": "file", + "type": "TypeList", + "description": "Details for the stored image file. Required for virtual server image for VPC.", + "computed": true, + "elem": { + "size": { + "name": "size", + "type": "TypeInt", + "description": "Size of the stored image file rounded up to the next gigabyte. Required for virtual server image for VPC.", + "computed": true + } + } + }, + "images": { + "name": "images", + "type": "TypeList", + "description": "Image operating system. Required for virtual server image for VPC.", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "Programmatic ID of virtual server image. Required for virtual server image for VPC.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Programmatic name of virtual server image. Required for virtual server image for VPC.", + "computed": true + }, + "region": { + "name": "region", + "type": "TypeString", + "description": "Region the virtual server image is available in. Required for virtual server image for VPC.", + "computed": true + } + } + }, + "minimum_provisioned_size": { + "name": "minimum_provisioned_size", + "type": "TypeInt", + "description": "Minimum size (in gigabytes) of a volume onto which this image may be provisioned. Required for virtual server image for VPC.", + "computed": true + }, + "modules": { + "name": "modules", + "type": "TypeList", + "description": "Terraform modules.", + "computed": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the module.", + "computed": true + }, + "offering_reference": { + "name": "offering_reference", + "type": "TypeList", + "description": "Terraform modules.", + "computed": true, + "elem": { + "catalog_id": { + "name": "catalog_id", + "type": "TypeString", + "description": "Catalog ID of the module reference.", + "computed": true + }, + "flavor": { + "name": "flavor", + "type": "TypeString", + "description": "Flavor of the module.", + "computed": true + }, + "flavors": { + "name": "flavors", + "type": "TypeList", + "description": "Flavors of the module.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "ID of the offering module.", + "computed": true + }, + "kind": { + "name": "kind", + "type": "TypeString", + "description": "Kind of the offeringmodule.", + "computed": true + }, + "metadata": { + "name": "metadata", + "type": "TypeString", + "description": "Metadata of the module.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the offering module.", + "computed": true + }, + "version": { + "name": "version", + "type": "TypeString", + "description": "Version of the offering module.", + "computed": true + } + } + }, + "source": { + "name": "source", + "type": "TypeString", + "description": "Source of the module.", + "computed": true + } + } + }, + "operating_system": { + "name": "operating_system", + "type": "TypeList", + "description": "Operating system included in this image. Required for virtual server image for VPC.", + "computed": true, + "elem": { + "architecture": { + "name": "architecture", + "type": "TypeString", + "description": "Operating system architecture. Required for virtual server image for VPC.", + "computed": true + }, + "dedicated_host_only": { + "name": "dedicated_host_only", + "type": "TypeBool", + "description": "Images with this operating system can only be used on dedicated hosts or dedicated host groups. Required for virtual server image for VPC.", + "computed": true + }, + "display_name": { + "name": "display_name", + "type": "TypeString", + "description": "Unique, display-friendly name for the operating system. Required for virtual server image for VPC.", + "computed": true + }, + "family": { + "name": "family", + "type": "TypeString", + "description": "Software family for this operating system. Required for virtual server image for VPC.", + "computed": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "URL for this operating system. Required for virtual server image for VPC.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Globally unique name for this operating system Required for virtual server image for VPC.", + "computed": true + }, + "vendor": { + "name": "vendor", + "type": "TypeString", + "description": "Vendor of the operating system. Required for virtual server image for VPC.", + "computed": true + }, + "version": { + "name": "version", + "type": "TypeString", + "description": "Major release version of this operating system. Required for virtual server image for VPC.", + "computed": true + } + } + }, + "source_url": { + "name": "source_url", + "type": "TypeString", + "description": "Version source URL.", + "computed": true + }, + "start_deploy_time": { + "name": "start_deploy_time", + "type": "TypeString", + "description": "The time validation started.", + "computed": true + }, + "terraform_version": { + "name": "terraform_version", + "type": "TypeString", + "description": "Terraform version.", + "computed": true + }, + "usage": { + "name": "usage", + "type": "TypeString", + "description": "Usage text for the version.", + "computed": true + }, + "usage_template": { + "name": "usage_template", + "type": "TypeString", + "description": "Usage text for the version.", + "computed": true + }, + "validated_terraform_version": { + "name": "validated_terraform_version", + "type": "TypeString", + "description": "Version name.", + "computed": true + }, + "version_name": { + "name": "version_name", + "type": "TypeString", + "description": "Version name.", + "computed": true + }, + "vsi_vpc": { + "name": "vsi_vpc", + "type": "TypeList", + "description": "VSI VPC version information", + "computed": true, + "elem": { + "file": { + "name": "file", + "type": "TypeList", + "description": "Details for the stored image file. Required for virtual server image for VPC.", + "computed": true, + "elem": { + "size": { + "name": "size", + "type": "TypeInt", + "description": "Size of the stored image file rounded up to the next gigabyte. Required for virtual server image for VPC.", + "computed": true + } + } + }, + "images": { + "name": "images", + "type": "TypeList", + "description": "Image operating system. Required for virtual server image for VPC.", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "Programmatic ID of virtual server image. Required for virtual server image for VPC.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Programmatic name of virtual server image. Required for virtual server image for VPC.", + "computed": true + }, + "region": { + "name": "region", + "type": "TypeString", + "description": "Region the virtual server image is available in. Required for virtual server image for VPC.", + "computed": true + } + } + }, + "minimum_provisioned_size": { + "name": "minimum_provisioned_size", + "type": "TypeInt", + "description": "Minimum size (in gigabytes) of a volume onto which this image may be provisioned. Required for virtual server image for VPC.", + "computed": true + }, + "operating_system": { + "name": "operating_system", + "type": "TypeList", + "description": "Operating system included in this image. Required for virtual server image for VPC.", + "computed": true, + "elem": { + "architecture": { + "name": "architecture", + "type": "TypeString", + "description": "Operating system architecture. Required for virtual server image for VPC.", + "computed": true + }, + "dedicated_host_only": { + "name": "dedicated_host_only", + "type": "TypeBool", + "description": "Images with this operating system can only be used on dedicated hosts or dedicated host groups. Required for virtual server image for VPC.", + "computed": true + }, + "display_name": { + "name": "display_name", + "type": "TypeString", + "description": "Unique, display-friendly name for the operating system. Required for virtual server image for VPC.", + "computed": true + }, + "family": { + "name": "family", + "type": "TypeString", + "description": "Software family for this operating system. Required for virtual server image for VPC.", + "computed": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "URL for this operating system. Required for virtual server image for VPC.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Globally unique name for this operating system Required for virtual server image for VPC.", + "computed": true + }, + "vendor": { + "name": "vendor", + "type": "TypeString", + "description": "Vendor of the operating system. Required for virtual server image for VPC.", + "computed": true + }, + "version": { + "name": "version", + "type": "TypeString", + "description": "Major release version of this operating system. Required for virtual server image for VPC.", + "computed": true + } + } + } + } + }, + "working_directory": { + "name": "working_directory", + "type": "TypeString", + "description": "Working directory of source files.", + "computed": true + } + } + }, + { + "name": "required_resources", + "type": "TypeList", + "description": "Resource requirments for installation.", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of requirement.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "mem, disk, cores, and nodes can be parsed as an int. targetVersion will be a semver range value.", + "computed": true + } + } + }, { "name": "solution_info", "type": "TypeList", @@ -15699,6 +16456,19 @@ } } }, + { + "name": "version_id", + "type": "TypeString", + "description": "Unique ID.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Version's CRN.", + "cloud_data_type": "crn", + "computed": true + }, { "name": "catalog_id", "type": "TypeString", @@ -15706,483 +16476,60 @@ "computed": true }, { - "name": "install", - "type": "TypeList", - "description": "Script information.", - "computed": true, - "elem": { - "delete_script": { - "name": "delete_script", - "type": "TypeString", - "description": "Optional script that if run will remove the installed version.", - "computed": true - }, - "instructions": { - "name": "instructions", - "type": "TypeString", - "description": "Instruction on step and by whom (role) that are needed to take place to prepare the target for installing this version.", - "computed": true - }, - "instructions_i18n": { - "name": "instructions_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "scope": { - "name": "scope", - "type": "TypeString", - "description": "Optional value indicating if this script is scoped to a namespace or the entire cluster.", - "computed": true - }, - "script": { - "name": "script", - "type": "TypeString", - "description": "Optional script that needs to be run post any pre-condition script.", - "computed": true - }, - "script_permission": { - "name": "script_permission", - "type": "TypeString", - "description": "Optional iam permissions that are required on the target cluster to run this script.", - "computed": true - } - } + "name": "package_version", + "type": "TypeString", + "description": "Version of the package used to create this version.", + "computed": true }, { - "name": "state", + "name": "image_pull_key_name", + "type": "TypeString", + "description": "ID of the image pull key to use from Offering.ImagePullKeys.", + "computed": true + }, + { + "name": "deprecate_pending", "type": "TypeList", - "description": "Offering state.", + "description": "Deprecation information for an Offering.", "computed": true, "elem": { - "current": { - "name": "current", - "type": "TypeString", - "description": "one of: new, validated, account-published, ibm-published, public-published.", - "computed": true - }, - "current_entered": { - "name": "current_entered", - "type": "TypeString", - "description": "Date and time of current request.", - "computed": true - }, - "pending": { - "name": "pending", + "deprecate_date": { + "name": "deprecate_date", "type": "TypeString", - "description": "one of: new, validated, account-published, ibm-published, public-published.", + "description": "Date of deprecation.", "computed": true }, - "pending_requested": { - "name": "pending_requested", + "deprecate_state": { + "name": "deprecate_state", "type": "TypeString", - "description": "Date and time of pending request.", + "description": "Deprecation state.", "computed": true }, - "previous": { - "name": "previous", + "description": { + "name": "description", "type": "TypeString", - "description": "one of: new, validated, account-published, ibm-published, public-published.", "computed": true } } }, { - "name": "image_pull_key_name", - "type": "TypeString", - "description": "ID of the image pull key to use from Offering.ImagePullKeys.", + "name": "is_consumable", + "type": "TypeBool", + "description": "Is the version able to be shared.", "computed": true }, { - "name": "updated", + "name": "sha", "type": "TypeString", - "description": "The date and time this version was last updated.", + "description": "hash of the content.", "computed": true }, { - "name": "tags", - "type": "TypeList", - "description": "List of tags associated with this catalog.", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "tgz_url", + "name": "updated", "type": "TypeString", - "description": "File used to on-board this version.", + "description": "The date and time this version was last updated.", "computed": true }, - { - "name": "metadata", - "type": "TypeList", - "description": "Generic data to be included with content being onboarded. Required for virtual server image for VPC.", - "computed": true, - "elem": { - "end_deploy_time": { - "name": "end_deploy_time", - "type": "TypeString", - "description": "The time validation ended.", - "computed": true - }, - "est_deploy_time": { - "name": "est_deploy_time", - "type": "TypeFloat", - "description": "The estimated time validation takes.", - "computed": true - }, - "example_name": { - "name": "example_name", - "type": "TypeString", - "description": "Working directory of source files.", - "computed": true - }, - "file": { - "name": "file", - "type": "TypeList", - "description": "Details for the stored image file. Required for virtual server image for VPC.", - "computed": true, - "elem": { - "size": { - "name": "size", - "type": "TypeInt", - "description": "Size of the stored image file rounded up to the next gigabyte. Required for virtual server image for VPC.", - "computed": true - } - } - }, - "images": { - "name": "images", - "type": "TypeList", - "description": "Image operating system. Required for virtual server image for VPC.", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "Programmatic ID of virtual server image. Required for virtual server image for VPC.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Programmatic name of virtual server image. Required for virtual server image for VPC.", - "computed": true - }, - "region": { - "name": "region", - "type": "TypeString", - "description": "Region the virtual server image is available in. Required for virtual server image for VPC.", - "computed": true - } - } - }, - "minimum_provisioned_size": { - "name": "minimum_provisioned_size", - "type": "TypeInt", - "description": "Minimum size (in gigabytes) of a volume onto which this image may be provisioned. Required for virtual server image for VPC.", - "computed": true - }, - "modules": { - "name": "modules", - "type": "TypeList", - "description": "Terraform modules.", - "computed": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the module.", - "computed": true - }, - "offering_reference": { - "name": "offering_reference", - "type": "TypeList", - "description": "Terraform modules.", - "computed": true, - "elem": { - "catalog_id": { - "name": "catalog_id", - "type": "TypeString", - "description": "Catalog ID of the module reference.", - "computed": true - }, - "flavor": { - "name": "flavor", - "type": "TypeString", - "description": "Flavor of the module.", - "computed": true - }, - "flavors": { - "name": "flavors", - "type": "TypeList", - "description": "Flavors of the module.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "ID of the offering module.", - "computed": true - }, - "kind": { - "name": "kind", - "type": "TypeString", - "description": "Kind of the offeringmodule.", - "computed": true - }, - "metadata": { - "name": "metadata", - "type": "TypeString", - "description": "Metadata of the module.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the offering module.", - "computed": true - }, - "version": { - "name": "version", - "type": "TypeString", - "description": "Version of the offering module.", - "computed": true - } - } - }, - "source": { - "name": "source", - "type": "TypeString", - "description": "Source of the module.", - "computed": true - } - } - }, - "operating_system": { - "name": "operating_system", - "type": "TypeList", - "description": "Operating system included in this image. Required for virtual server image for VPC.", - "computed": true, - "elem": { - "architecture": { - "name": "architecture", - "type": "TypeString", - "description": "Operating system architecture. Required for virtual server image for VPC.", - "computed": true - }, - "dedicated_host_only": { - "name": "dedicated_host_only", - "type": "TypeBool", - "description": "Images with this operating system can only be used on dedicated hosts or dedicated host groups. Required for virtual server image for VPC.", - "computed": true - }, - "display_name": { - "name": "display_name", - "type": "TypeString", - "description": "Unique, display-friendly name for the operating system. Required for virtual server image for VPC.", - "computed": true - }, - "family": { - "name": "family", - "type": "TypeString", - "description": "Software family for this operating system. Required for virtual server image for VPC.", - "computed": true - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "URL for this operating system. Required for virtual server image for VPC.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Globally unique name for this operating system Required for virtual server image for VPC.", - "computed": true - }, - "vendor": { - "name": "vendor", - "type": "TypeString", - "description": "Vendor of the operating system. Required for virtual server image for VPC.", - "computed": true - }, - "version": { - "name": "version", - "type": "TypeString", - "description": "Major release version of this operating system. Required for virtual server image for VPC.", - "computed": true - } - } - }, - "source_url": { - "name": "source_url", - "type": "TypeString", - "description": "Version source URL.", - "computed": true - }, - "start_deploy_time": { - "name": "start_deploy_time", - "type": "TypeString", - "description": "The time validation started.", - "computed": true - }, - "terraform_version": { - "name": "terraform_version", - "type": "TypeString", - "description": "Terraform version.", - "computed": true - }, - "usage": { - "name": "usage", - "type": "TypeString", - "description": "Usage text for the version.", - "computed": true - }, - "usage_template": { - "name": "usage_template", - "type": "TypeString", - "description": "Usage text for the version.", - "computed": true - }, - "validated_terraform_version": { - "name": "validated_terraform_version", - "type": "TypeString", - "description": "Version name.", - "computed": true - }, - "version_name": { - "name": "version_name", - "type": "TypeString", - "description": "Version name.", - "computed": true - }, - "vsi_vpc": { - "name": "vsi_vpc", - "type": "TypeList", - "description": "VSI VPC version information", - "computed": true, - "elem": { - "file": { - "name": "file", - "type": "TypeList", - "description": "Details for the stored image file. Required for virtual server image for VPC.", - "computed": true, - "elem": { - "size": { - "name": "size", - "type": "TypeInt", - "description": "Size of the stored image file rounded up to the next gigabyte. Required for virtual server image for VPC.", - "computed": true - } - } - }, - "images": { - "name": "images", - "type": "TypeList", - "description": "Image operating system. Required for virtual server image for VPC.", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "Programmatic ID of virtual server image. Required for virtual server image for VPC.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Programmatic name of virtual server image. Required for virtual server image for VPC.", - "computed": true - }, - "region": { - "name": "region", - "type": "TypeString", - "description": "Region the virtual server image is available in. Required for virtual server image for VPC.", - "computed": true - } - } - }, - "minimum_provisioned_size": { - "name": "minimum_provisioned_size", - "type": "TypeInt", - "description": "Minimum size (in gigabytes) of a volume onto which this image may be provisioned. Required for virtual server image for VPC.", - "computed": true - }, - "operating_system": { - "name": "operating_system", - "type": "TypeList", - "description": "Operating system included in this image. Required for virtual server image for VPC.", - "computed": true, - "elem": { - "architecture": { - "name": "architecture", - "type": "TypeString", - "description": "Operating system architecture. Required for virtual server image for VPC.", - "computed": true - }, - "dedicated_host_only": { - "name": "dedicated_host_only", - "type": "TypeBool", - "description": "Images with this operating system can only be used on dedicated hosts or dedicated host groups. Required for virtual server image for VPC.", - "computed": true - }, - "display_name": { - "name": "display_name", - "type": "TypeString", - "description": "Unique, display-friendly name for the operating system. Required for virtual server image for VPC.", - "computed": true - }, - "family": { - "name": "family", - "type": "TypeString", - "description": "Software family for this operating system. Required for virtual server image for VPC.", - "computed": true - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "URL for this operating system. Required for virtual server image for VPC.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Globally unique name for this operating system Required for virtual server image for VPC.", - "computed": true - }, - "vendor": { - "name": "vendor", - "type": "TypeString", - "description": "Vendor of the operating system. Required for virtual server image for VPC.", - "computed": true - }, - "version": { - "name": "version", - "type": "TypeString", - "description": "Major release version of this operating system. Required for virtual server image for VPC.", - "computed": true - } - } - } - } - }, - "working_directory": { - "name": "working_directory", - "type": "TypeString", - "description": "Working directory of source files.", - "computed": true - } - } - }, { "name": "validation", "type": "TypeList", @@ -16231,96 +16578,79 @@ } }, { - "name": "package_version", - "type": "TypeString", - "description": "Version of the package used to create this version.", - "computed": true - }, - { - "name": "rev", - "type": "TypeString", - "description": "Cloudant revision.", - "computed": true + "name": "install", + "type": "TypeList", + "description": "Script information.", + "computed": true, + "elem": { + "delete_script": { + "name": "delete_script", + "type": "TypeString", + "description": "Optional script that if run will remove the installed version.", + "computed": true + }, + "instructions": { + "name": "instructions", + "type": "TypeString", + "description": "Instruction on step and by whom (role) that are needed to take place to prepare the target for installing this version.", + "computed": true + }, + "instructions_i18n": { + "name": "instructions_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "scope": { + "name": "scope", + "type": "TypeString", + "description": "Optional value indicating if this script is scoped to a namespace or the entire cluster.", + "computed": true + }, + "script": { + "name": "script", + "type": "TypeString", + "description": "Optional script that needs to be run post any pre-condition script.", + "computed": true + }, + "script_permission": { + "name": "script_permission", + "type": "TypeString", + "description": "Optional iam permissions that are required on the target cluster to run this script.", + "computed": true + } + } }, { - "name": "crn", + "name": "image_manifest_url", "type": "TypeString", - "description": "Version's CRN.", - "cloud_data_type": "crn", + "description": "If set, denotes a url to a YAML file with list of container images used by this version.", "computed": true }, { - "name": "version", + "name": "long_description", "type": "TypeString", - "description": "Version of content type.", + "description": "Long description for version.", "computed": true }, { - "name": "long_description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", + "name": "tags", + "type": "TypeList", + "description": "List of tags associated with this catalog.", + "cloud_data_type": "tags", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "version_loc_id", + "name": "source_url", "type": "TypeString", - "description": "A dotted value of `catalogID`.`versionID`.", - "required": true - }, - { - "name": "iam_permissions", - "type": "TypeList", - "description": "List of IAM permissions that are required to consume this version.", - "computed": true, - "elem": { - "resources": { - "name": "resources", - "type": "TypeList", - "description": "Resources for this permission.", - "computed": true, - "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "Resource description.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Resource name.", - "computed": true - }, - "role_crns": { - "name": "role_crns", - "type": "TypeList", - "description": "Role CRNs for this permission.", - "computed": true, - "elem": { - "type": "TypeString" - } - } - } - }, - "role_crns": { - "name": "role_crns", - "type": "TypeList", - "description": "Role CRNs for this permission.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "service_name": { - "name": "service_name", - "type": "TypeString", - "description": "Service name.", - "computed": true - } - } + "description": "Content's source URL (e.g git repo).", + "computed": true }, { "name": "entitlement", @@ -16364,348 +16694,157 @@ } }, { - "name": "is_consumable", - "type": "TypeBool", - "description": "Is the version able to be shared.", + "name": "version_locator", + "type": "TypeString", + "description": "A dotted value of `catalogID`.`versionID`.", + "computed": true + } + ], + "ibm_code_engine_app": [ + { + "name": "run_as_user", + "type": "TypeInt", + "description": "Optional user ID (UID) to run the app (e.g., `1001`).", "computed": true }, { - "name": "flavor", + "name": "run_commands", "type": "TypeList", - "description": "Version Flavor Information. Only supported for Product kind Solution.", + "description": "Optional commands for the app that are passed to start the container. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.", "computed": true, "elem": { - "index": { - "name": "index", - "type": "TypeInt", - "description": "Order that this flavor should appear when listed for a single version.", - "computed": true - }, - "label": { - "name": "label", - "type": "TypeString", - "description": "Label for this flavor.", - "computed": true - }, - "label_i18n": { - "name": "label_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Programmatic name for this flavor.", - "computed": true - } + "type": "TypeString" } }, { - "name": "sha", - "type": "TypeString", - "description": "hash of the content.", - "computed": true - }, - { - "name": "offering_id", - "type": "TypeString", - "description": "Offering ID.", + "name": "scale_min_instances", + "type": "TypeInt", + "description": "Optional minimum number of instances for this app. If you set this value to `0`, the app will scale down to zero, if not hit by any request for some time.", "computed": true }, { - "name": "kind_id", + "name": "app_id", "type": "TypeString", - "description": "Kind ID.", + "description": "The identifier of the resource.", "computed": true }, { - "name": "source_url", + "name": "image_secret", "type": "TypeString", - "description": "Content's source URL (e.g git repo).", + "description": "Optional name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the app will be created but cannot reach the ready status, until this property is provided, too.", "computed": true }, { - "name": "long_description", + "name": "project_id", "type": "TypeString", - "description": "Long description for version.", - "computed": true - }, - { - "name": "single_instance", - "type": "TypeBool", - "description": "Denotes if single instance can be deployed to a given cluster.", - "computed": true - }, - { - "name": "whitelisted_accounts", - "type": "TypeList", - "description": "Whitelisted accounts for version.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "deprecate_pending", - "type": "TypeList", - "description": "Deprecation information for an Offering.", - "computed": true, - "elem": { - "deprecate_date": { - "name": "deprecate_date", - "type": "TypeString", - "description": "Date of deprecation.", - "computed": true - }, - "deprecate_state": { - "name": "deprecate_state", - "type": "TypeString", - "description": "Deprecation state.", - "computed": true - }, - "description": { - "name": "description", - "type": "TypeString", - "computed": true - } - } + "description": "The ID of the project.", + "required": true }, { - "name": "version_id", - "type": "TypeString", - "description": "Unique ID.", + "name": "scale_request_timeout", + "type": "TypeInt", + "description": "Optional amount of time in seconds that is allowed for a running app to respond to a request.", "computed": true }, { - "name": "repo_url", + "name": "image_reference", "type": "TypeString", - "description": "Content's repo URL.", + "description": "The name of the image that is used for this app. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.", "computed": true }, { - "name": "configuration", + "name": "run_env_variables", "type": "TypeList", - "description": "List of user solicited overrides.", + "description": "References to config maps, secrets or literal values, which are exposed as environment variables in the application.", "computed": true, "elem": { - "custom_config": { - "name": "custom_config", - "type": "TypeList", - "description": "Render type.", - "computed": true, - "elem": { - "associations": { - "name": "associations", - "type": "TypeList", - "description": "List of parameters that are associated with this configuration.", - "computed": true, - "elem": { - "parameters": { - "name": "parameters", - "type": "TypeList", - "description": "Parameters for this association.", - "computed": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of this parameter.", - "computed": true - }, - "options_refresh": { - "name": "options_refresh", - "type": "TypeBool", - "description": "Refresh options.", - "computed": true - } - } - } - } - }, - "config_constraints": { - "name": "config_constraints", - "type": "TypeMap", - "description": "Map of constraint parameters that will be passed to the custom widget.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "grouping": { - "name": "grouping", - "type": "TypeString", - "description": "Determines where this configuration type is rendered (3 sections today - Target, Resource, and Deployment).", - "computed": true - }, - "grouping_index": { - "name": "grouping_index", - "type": "TypeInt", - "description": "Determines the order that this configuration item shows in that particular grouping.", - "computed": true - }, - "original_grouping": { - "name": "original_grouping", - "type": "TypeString", - "description": "Original grouping type for this configuration (3 types - Target, Resource, and Deployment).", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "ID of the widget type.", - "computed": true - } - } - }, - "default_value": { - "name": "default_value", + "key": { + "name": "key", "type": "TypeString", - "description": "The default value as a JSON encoded string. To use a secret when the type is password, specify a JSON encoded value of $ref:#/components/schemas/SecretInstance, prefixed with `cmsm_v1:`.", + "description": "The key to reference as environment variable.", "computed": true }, - "description": { - "name": "description", + "name": { + "name": "name", "type": "TypeString", - "description": "Key description.", + "description": "The name of the environment variable.", "computed": true }, - "display_name": { - "name": "display_name", + "prefix": { + "name": "prefix", "type": "TypeString", - "description": "Display name for configuration type.", - "computed": true - }, - "hidden": { - "name": "hidden", - "type": "TypeBool", - "description": "Hide values.", + "description": "A prefix that can be added to all keys of a full secret or config map reference.", "computed": true }, - "key": { - "name": "key", + "reference": { + "name": "reference", "type": "TypeString", - "description": "Configuration key.", - "computed": true - }, - "options": { - "name": "options", - "type": "TypeList", - "description": "List of options of type.", - "computed": true, - "elem": { - "type": "TypeMap" - } - }, - "required": { - "name": "required", - "type": "TypeBool", - "description": "Is key required to install.", + "description": "The name of the secret or config map.", "computed": true }, "type": { "name": "type", "type": "TypeString", - "description": "Value type (string, boolean, int).", - "computed": true - }, - "type_metadata": { - "name": "type_metadata", - "type": "TypeString", - "description": "The original type, as found in the source being onboarded.", + "description": "Specify the type of the environment variable.", "computed": true }, - "value_constraint": { - "name": "value_constraint", + "value": { + "name": "value", "type": "TypeString", - "description": "Constraint associated with value, e.g., for string type - regx:[a-z].", + "description": "The literal value of the environment variable.", "computed": true } } }, { - "name": "outputs", - "type": "TypeList", - "description": "List of output values for this version.", - "computed": true, - "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "Output description.", - "computed": true - }, - "key": { - "name": "key", - "type": "TypeString", - "description": "Output key.", - "computed": true - } - } + "name": "name", + "type": "TypeString", + "description": "The name of your application.", + "required": true }, { - "name": "pre_install", + "name": "image_port", + "type": "TypeInt", + "description": "Optional port the app listens on. While the app will always be exposed via port `443` for end users, this port is used to connect to the port that is exposed by the container image.", + "computed": true + }, + { + "name": "run_volume_mounts", "type": "TypeList", - "description": "Optional pre-install instructions.", + "description": "Mounts of config maps or secrets.", "computed": true, "elem": { - "delete_script": { - "name": "delete_script", - "type": "TypeString", - "description": "Optional script that if run will remove the installed version.", - "computed": true - }, - "instructions": { - "name": "instructions", + "mount_path": { + "name": "mount_path", "type": "TypeString", - "description": "Instruction on step and by whom (role) that are needed to take place to prepare the target for installing this version.", + "description": "The path that should be mounted.", "computed": true }, - "instructions_i18n": { - "name": "instructions_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "scope": { - "name": "scope", + "name": { + "name": "name", "type": "TypeString", - "description": "Optional value indicating if this script is scoped to a namespace or the entire cluster.", + "description": "The name of the mount.", "computed": true }, - "script": { - "name": "script", + "reference": { + "name": "reference", "type": "TypeString", - "description": "Optional script that needs to be run post any pre-condition script.", + "description": "The name of the referenced secret or config map.", "computed": true }, - "script_permission": { - "name": "script_permission", + "type": { + "name": "type", "type": "TypeString", - "description": "Optional iam permissions that are required on the target cluster to run this script.", + "description": "Specify the type of the volume mount. Allowed types are: 'config_map', 'secret'.", "computed": true } } }, { - "name": "deprecated", - "type": "TypeBool", - "description": "read only field, indicating if this version is deprecated.", + "name": "scale_concurrency", + "type": "TypeInt", + "description": "Optional maximum number of requests that can be processed concurrently per instance.", "computed": true - } - ], - "ibm_code_engine_app": [ - { - "name": "name", - "type": "TypeString", - "description": "The name of your application.", - "required": true }, { "name": "endpoint_internal", @@ -16713,30 +16852,6 @@ "description": "URL to app that is only visible within the project.", "computed": true }, - { - "name": "run_service_account", - "type": "TypeString", - "description": "Optional name of the service account. For built-in service accounts, you can use the shortened names `manager` , `none`, `reader`, and `writer`.", - "computed": true - }, - { - "name": "scale_concurrency_target", - "type": "TypeInt", - "description": "Optional threshold of concurrent requests per instance at which one or more additional instances are created. Use this value to scale up instances based on concurrent number of requests. This option defaults to the value of the `scale_concurrency` option, if not specified.", - "computed": true - }, - { - "name": "scale_ephemeral_storage_limit", - "type": "TypeString", - "description": "Optional amount of ephemeral storage to set for the instance of the app. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", - "computed": true - }, - { - "name": "app_id", - "type": "TypeString", - "description": "The identifier of the resource.", - "computed": true - }, { "name": "run_arguments", "type": "TypeList", @@ -16753,15 +16868,15 @@ "computed": true }, { - "name": "scale_min_instances", + "name": "scale_concurrency_target", "type": "TypeInt", - "description": "Optional minimum number of instances for this app. If you set this value to `0`, the app will scale down to zero, if not hit by any request for some time.", + "description": "Optional threshold of concurrent requests per instance at which one or more additional instances are created. Use this value to scale up instances based on concurrent number of requests. This option defaults to the value of the `scale_concurrency` option, if not specified.", "computed": true }, { - "name": "endpoint", + "name": "scale_cpu_limit", "type": "TypeString", - "description": "Optional URL to invoke app. Depending on visibility this is accessible publicly or in the private network only. Empty in case 'managed_domain_mappings' is set to 'local'.", + "description": "Optional number of CPU set for the instance of the app. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo).", "computed": true }, { @@ -16771,53 +16886,21 @@ "computed": true }, { - "name": "run_env_variables", - "type": "TypeList", - "description": "References to config maps, secrets or literal values, which are exposed as environment variables in the application.", - "computed": true, - "elem": { - "key": { - "name": "key", - "type": "TypeString", - "description": "The key to reference as environment variable.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The name of the environment variable.", - "computed": true - }, - "prefix": { - "name": "prefix", - "type": "TypeString", - "description": "A prefix that can be added to all keys of a full secret or config map reference.", - "computed": true - }, - "reference": { - "name": "reference", - "type": "TypeString", - "description": "The name of the secret or config map.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Specify the type of the environment variable.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "The literal value of the environment variable.", - "computed": true - } - } + "name": "scale_initial_instances", + "type": "TypeInt", + "description": "Optional initial number of instances that are created upon app creation or app update.", + "computed": true }, { - "name": "scale_concurrency", + "name": "run_service_account", + "type": "TypeString", + "description": "Optional name of the service account. For built-in service accounts, you can use the shortened names `manager` , `none`, `reader`, and `writer`.", + "computed": true + }, + { + "name": "scale_max_instances", "type": "TypeInt", - "description": "Optional maximum number of requests that can be processed concurrently per instance.", + "description": "Optional maximum number of instances for this app. If you set this value to `0`, this property does not set a upper scaling limit. However, the app scaling is still limited by the project quota for instances. See [Limits and quotas for Code Engine](https://cloud.ibm.com/docs/codeengine?topic=codeengine-limits).", "computed": true }, { @@ -16847,21 +16930,27 @@ } }, { - "name": "project_id", + "name": "created_at", "type": "TypeString", - "description": "The ID of the project.", - "required": true + "description": "The timestamp when the resource was created.", + "computed": true }, { - "name": "run_as_user", - "type": "TypeInt", - "description": "Optional user ID (UID) to run the app (e.g., `1001`).", + "name": "entity_tag", + "type": "TypeString", + "description": "The version of the app instance, which is used to achieve optimistic locking.", "computed": true }, { - "name": "scale_request_timeout", - "type": "TypeInt", - "description": "Optional amount of time in seconds that is allowed for a running app to respond to a request.", + "name": "resource_type", + "type": "TypeString", + "description": "The type of the app.", + "computed": true + }, + { + "name": "scale_ephemeral_storage_limit", + "type": "TypeString", + "description": "Optional amount of ephemeral storage to set for the instance of the app. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", "computed": true }, { @@ -16871,188 +16960,137 @@ "computed": true }, { - "name": "entity_tag", + "name": "endpoint", "type": "TypeString", - "description": "The version of the app instance, which is used to achieve optimistic locking.", + "description": "Optional URL to invoke app. Depending on visibility this is accessible publicly or in the private network only. Empty in case 'managed_domain_mappings' is set to 'local'.", "computed": true }, { - "name": "image_port", - "type": "TypeInt", - "description": "Optional port the app listens on. While the app will always be exposed via port `443` for end users, this port is used to connect to the port that is exposed by the container image.", + "name": "href", + "type": "TypeString", + "description": "When you provision a new app, a URL is created identifying the location of the instance.", + "computed": true + } + ], + "ibm_code_engine_binding": [ + { + "name": "status", + "type": "TypeString", + "description": "The current status of the binding.", "computed": true }, { - "name": "run_commands", - "type": "TypeList", - "description": "Optional commands for the app that are passed to start the container. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "project_id", + "type": "TypeString", + "description": "The ID of the project.", + "required": true }, { - "name": "run_volume_mounts", + "name": "component", "type": "TypeList", - "description": "Mounts of config maps or secrets.", + "description": "A reference to another component.", "computed": true, "elem": { - "mount_path": { - "name": "mount_path", - "type": "TypeString", - "description": "The path that should be mounted.", - "computed": true - }, "name": { "name": "name", "type": "TypeString", - "description": "The name of the mount.", - "computed": true - }, - "reference": { - "name": "reference", - "type": "TypeString", - "description": "The name of the referenced secret or config map.", + "description": "The name of the referenced component.", "computed": true }, - "type": { - "name": "type", + "resource_type": { + "name": "resource_type", "type": "TypeString", - "description": "Specify the type of the volume mount. Allowed types are: 'config_map', 'secret'.", + "description": "The type of the referenced resource.", "computed": true } } }, - { - "name": "scale_initial_instances", - "type": "TypeInt", - "description": "Optional initial number of instances that are created upon app creation or app update.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The timestamp when the resource was created.", - "computed": true - }, { "name": "href", "type": "TypeString", - "description": "When you provision a new app, a URL is created identifying the location of the instance.", + "description": "When you provision a new binding, a URL is created identifying the location of the instance.", "computed": true }, { - "name": "image_secret", + "name": "binding_id", "type": "TypeString", - "description": "Optional name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the app will be created but cannot reach the ready status, until this property is provided, too.", - "computed": true + "description": "The ID of the binding.", + "required": true }, { - "name": "resource_type", + "name": "prefix", "type": "TypeString", - "description": "The type of the app.", + "description": "The value that is set as prefix in the component that is bound.", "computed": true }, { - "name": "image_reference", + "name": "resource_type", "type": "TypeString", - "description": "The name of the image that is used for this app. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.", + "description": "The type of the binding.", "computed": true }, { - "name": "scale_cpu_limit", + "name": "secret_name", "type": "TypeString", - "description": "Optional number of CPU set for the instance of the app. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo).", - "computed": true - }, - { - "name": "scale_max_instances", - "type": "TypeInt", - "description": "Optional maximum number of instances for this app. If you set this value to `0`, this property does not set a upper scaling limit. However, the app scaling is still limited by the project quota for instances. See [Limits and quotas for Code Engine](https://cloud.ibm.com/docs/codeengine?topic=codeengine-limits).", + "description": "The service access secret that is bound to a component.", "computed": true } ], - "ibm_code_engine_binding": [ + "ibm_code_engine_build": [ { - "name": "prefix", + "name": "source_url", "type": "TypeString", - "description": "The value that is set as prefix in the component that is bound.", + "description": "The URL of the code repository. This field is required if the `source_type` is `git`. If the `source_type` value is `local`, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like `https://github.com/IBM/CodeEngine`. If the repository requires authentication, you need to provide a 'ssh' URL like `git@github.com:IBM/CodeEngine.git` along with a `source_secret` that points to a secret of format `ssh_auth`.", "computed": true }, { - "name": "resource_type", + "name": "source_context_dir", "type": "TypeString", - "description": "The type of the binding.", + "description": "Option directory in the repository that contains the buildpacks file or the Dockerfile.", "computed": true }, { - "name": "secret_name", + "name": "source_revision", "type": "TypeString", - "description": "The service access secret that is bound to a component.", + "description": "Commit, tag, or branch in the source repository to pull. This field is optional if the `source_type` is `git` and uses the HEAD of default branch if not specified. If the `source_type` value is `local`, this field must be omitted.", "computed": true }, { "name": "status", "type": "TypeString", - "description": "The current status of the binding.", + "description": "The current status of the build.", "computed": true }, { - "name": "project_id", - "type": "TypeString", - "description": "The ID of the project.", - "required": true - }, - { - "name": "component", + "name": "status_details", "type": "TypeList", - "description": "A reference to another component.", + "description": "The detailed status of the build.", "computed": true, "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "The name of the referenced component.", - "computed": true - }, - "resource_type": { - "name": "resource_type", + "reason": { + "name": "reason", "type": "TypeString", - "description": "The type of the referenced resource.", + "description": "Optional information to provide more context in case of a 'failed' or 'warning' status.", "computed": true } } }, { - "name": "href", - "type": "TypeString", - "description": "When you provision a new binding, a URL is created identifying the location of the instance.", - "computed": true - }, - { - "name": "binding_id", - "type": "TypeString", - "description": "The ID of the binding.", - "required": true - } - ], - "ibm_code_engine_build": [ - { - "name": "source_revision", + "name": "strategy_size", "type": "TypeString", - "description": "Commit, tag, or branch in the source repository to pull. This field is optional if the `source_type` is `git` and uses the HEAD of default branch if not specified. If the `source_type` value is `local`, this field must be omitted.", + "description": "Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`, `large`, `xlarge`.", "computed": true }, { - "name": "strategy_spec_file", + "name": "created_at", "type": "TypeString", - "description": "Optional path to the specification file that is used for build strategies for building an image.", + "description": "The timestamp when the resource was created.", "computed": true }, { - "name": "output_image", + "name": "build_id", "type": "TypeString", - "description": "The name of the image.", + "description": "The identifier of the resource.", "computed": true }, { @@ -17068,21 +17106,21 @@ "computed": true }, { - "name": "source_url", + "name": "source_type", "type": "TypeString", - "description": "The URL of the code repository. This field is required if the `source_type` is `git`. If the `source_type` value is `local`, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like `https://github.com/IBM/CodeEngine`. If the repository requires authentication, you need to provide a 'ssh' URL like `git@github.com:IBM/CodeEngine.git` along with a `source_secret` that points to a secret of format `ssh_auth`.", + "description": "Specifies the type of source to determine if your build source is in a repository or based on local source code.* local - For builds from local source code.* git - For builds from git version controlled source code.", "computed": true }, { - "name": "strategy_size", + "name": "strategy_spec_file", "type": "TypeString", - "description": "Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`, `large`, `xlarge`.", + "description": "Optional path to the specification file that is used for build strategies for building an image.", "computed": true }, { - "name": "strategy_type", - "type": "TypeString", - "description": "The strategy to use for building the image.", + "name": "timeout", + "type": "TypeInt", + "description": "The maximum amount of time, in seconds, that can pass before the build must succeed or fail.", "computed": true }, { @@ -17092,71 +17130,53 @@ "required": true }, { - "name": "href", + "name": "output_secret", "type": "TypeString", - "description": "When you provision a new build, a URL is created identifying the location of the instance.", - "computed": true - }, - { - "name": "timeout", - "type": "TypeInt", - "description": "The maximum amount of time, in seconds, that can pass before the build must succeed or fail.", + "description": "The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.", "computed": true }, { - "name": "source_type", + "name": "href", "type": "TypeString", - "description": "Specifies the type of source to determine if your build source is in a repository or based on local source code.* local - For builds from local source code.* git - For builds from git version controlled source code.", + "description": "When you provision a new build, a URL is created identifying the location of the instance.", "computed": true }, { - "name": "status", + "name": "output_image", "type": "TypeString", - "description": "The current status of the build.", + "description": "The name of the image.", "computed": true }, { - "name": "status_details", - "type": "TypeList", - "description": "The detailed status of the build.", - "computed": true, - "elem": { - "reason": { - "name": "reason", - "type": "TypeString", - "description": "Optional information to provide more context in case of a 'failed' or 'warning' status.", - "computed": true - } - } - }, - { - "name": "entity_tag", + "name": "strategy_type", "type": "TypeString", - "description": "The version of the build instance, which is used to achieve optimistic locking.", + "description": "The strategy to use for building the image.", "computed": true }, { - "name": "output_secret", + "name": "name", "type": "TypeString", - "description": "The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.", - "computed": true + "description": "The name of your build.", + "required": true }, { - "name": "build_id", + "name": "entity_tag", "type": "TypeString", - "description": "The identifier of the resource.", + "description": "The version of the build instance, which is used to achieve optimistic locking.", "computed": true - }, + } + ], + "ibm_code_engine_config_map": [ { - "name": "source_context_dir", + "name": "project_id", "type": "TypeString", - "description": "Option directory in the repository that contains the buildpacks file or the Dockerfile.", - "computed": true + "description": "The ID of the project.", + "required": true }, { "name": "name", "type": "TypeString", - "description": "The name of your build.", + "description": "The name of your configmap.", "required": true }, { @@ -17164,9 +17184,7 @@ "type": "TypeString", "description": "The timestamp when the resource was created.", "computed": true - } - ], - "ibm_code_engine_config_map": [ + }, { "name": "data", "type": "TypeMap", @@ -17199,33 +17217,9 @@ "type": "TypeString", "description": "The type of the config map.", "computed": true - }, - { - "name": "project_id", - "type": "TypeString", - "description": "The ID of the project.", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The name of your configmap.", - "required": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The timestamp when the resource was created.", - "computed": true } ], "ibm_code_engine_job": [ - { - "name": "created_at", - "type": "TypeString", - "description": "The timestamp when the resource was created.", - "computed": true - }, { "name": "job_id", "type": "TypeString", @@ -17233,13 +17227,10 @@ "computed": true }, { - "name": "run_arguments", - "type": "TypeList", - "description": "Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "image_secret", + "type": "TypeString", + "description": "The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.", + "computed": true }, { "name": "run_commands", @@ -17251,28 +17242,60 @@ } }, { - "name": "scale_cpu_limit", + "name": "run_mode", "type": "TypeString", - "description": "Optional amount of CPU set for the instance of the job. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo).", + "description": "The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `max_execution_time` and `retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `max_execution_time` and `retry_limit` properties are not allowed.", "computed": true }, { - "name": "scale_ephemeral_storage_limit", + "name": "run_service_account", "type": "TypeString", - "description": "Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", + "description": "The name of the service account. For built-in service accounts, you can use the shortened names `manager`, `none`, `reader`, and `writer`. This property must not be set on a job run, which references a job template.", "computed": true }, { - "name": "scale_retry_limit", - "type": "TypeInt", - "description": "The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if `run_mode` is `task`.", + "name": "run_volume_mounts", + "type": "TypeList", + "description": "Optional mounts of config maps or a secrets.", + "computed": true, + "elem": { + "mount_path": { + "name": "mount_path", + "type": "TypeString", + "description": "The path that should be mounted.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The name of the mount.", + "computed": true + }, + "reference": { + "name": "reference", + "type": "TypeString", + "description": "The name of the referenced secret or config map.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Specify the type of the volume mount. Allowed types are: 'config_map', 'secret'.", + "computed": true + } + } + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The timestamp when the resource was created.", "computed": true }, { - "name": "project_id", + "name": "scale_cpu_limit", "type": "TypeString", - "description": "The ID of the project.", - "required": true + "description": "Optional amount of CPU set for the instance of the job. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo).", + "computed": true }, { "name": "href", @@ -17280,6 +17303,21 @@ "description": "When you provision a new job, a URL is created identifying the location of the instance.", "computed": true }, + { + "name": "image_reference", + "type": "TypeString", + "description": "The name of the image that is used for this job. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.", + "computed": true + }, + { + "name": "run_arguments", + "type": "TypeList", + "description": "Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "run_env_variables", "type": "TypeList", @@ -17325,72 +17363,34 @@ } }, { - "name": "run_service_account", + "name": "scale_array_spec", "type": "TypeString", - "description": "The name of the service account. For built-in service accounts, you can use the shortened names `manager`, `none`, `reader`, and `writer`. This property must not be set on a job run, which references a job template.", - "computed": true - }, - { - "name": "run_volume_mounts", - "type": "TypeList", - "description": "Optional mounts of config maps or a secrets.", - "computed": true, - "elem": { - "mount_path": { - "name": "mount_path", - "type": "TypeString", - "description": "The path that should be mounted.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The name of the mount.", - "computed": true - }, - "reference": { - "name": "reference", - "type": "TypeString", - "description": "The name of the referenced secret or config map.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Specify the type of the volume mount. Allowed types are: 'config_map', 'secret'.", - "computed": true - } - } - }, - { - "name": "scale_max_execution_time", - "type": "TypeInt", - "description": "The maximum execution time in seconds for runs of the job. This property can only be specified if `run_mode` is `task`.", + "description": "Define a custom set of array indices as comma-separated list containing single values and hyphen-separated ranges like `5,12-14,23,27`. Each instance can pick up its array index via environment variable `JOB_INDEX`. The number of unique array indices specified here determines the number of job instances to run.", "computed": true }, { - "name": "entity_tag", + "name": "scale_ephemeral_storage_limit", "type": "TypeString", - "description": "The version of the job instance, which is used to achieve optimistic locking.", + "description": "Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", "computed": true }, { - "name": "image_reference", + "name": "scale_memory_limit", "type": "TypeString", - "description": "The name of the image that is used for this job. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.", + "description": "Optional amount of memory set for the instance of the job. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo). The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", "computed": true }, { - "name": "run_mode", - "type": "TypeString", - "description": "The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `max_execution_time` and `retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `max_execution_time` and `retry_limit` properties are not allowed.", + "name": "scale_retry_limit", + "type": "TypeInt", + "description": "The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if `run_mode` is `task`.", "computed": true }, { - "name": "scale_memory_limit", + "name": "project_id", "type": "TypeString", - "description": "Optional amount of memory set for the instance of the job. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo). The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", - "computed": true + "description": "The ID of the project.", + "required": true }, { "name": "name", @@ -17399,9 +17399,9 @@ "required": true }, { - "name": "image_secret", + "name": "entity_tag", "type": "TypeString", - "description": "The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.", + "description": "The version of the job instance, which is used to achieve optimistic locking.", "computed": true }, { @@ -17417,13 +17417,20 @@ "computed": true }, { - "name": "scale_array_spec", - "type": "TypeString", - "description": "Define a custom set of array indices as comma-separated list containing single values and hyphen-separated ranges like `5,12-14,23,27`. Each instance can pick up its array index via environment variable `JOB_INDEX`. The number of unique array indices specified here determines the number of job instances to run.", + "name": "scale_max_execution_time", + "type": "TypeInt", + "description": "The maximum execution time in seconds for runs of the job. This property can only be specified if `run_mode` is `task`.", "computed": true } ], "ibm_code_engine_project": [ + { + "name": "region", + "type": "TypeString", + "description": "The region for your project deployment. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.", + "cloud_data_type": "region", + "computed": true + }, { "name": "project_id", "type": "TypeString", @@ -17431,80 +17438,85 @@ "required": true }, { - "name": "name", + "name": "account_id", "type": "TypeString", - "description": "The name of the project.", + "description": "An alphanumeric value identifying the account ID.", "computed": true }, { - "name": "region", + "name": "created_at", "type": "TypeString", - "description": "The region for your project deployment. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.", - "cloud_data_type": "region", + "description": "The timestamp when the project was created.", "computed": true }, { - "name": "resource_type", + "name": "href", "type": "TypeString", - "description": "The type of the project.", + "description": "When you provision a new resource, a URL is created identifying the location of the instance.", "computed": true }, { - "name": "status", + "name": "name", "type": "TypeString", - "description": "The current state of the project. For example, if the project is created and ready to get used, it will return active.", + "description": "The name of the project.", "computed": true }, { - "name": "account_id", + "name": "crn", "type": "TypeString", - "description": "An alphanumeric value identifying the account ID.", + "description": "The CRN of the project.", + "cloud_data_type": "crn", "computed": true }, { - "name": "created_at", + "name": "resource_group_id", "type": "TypeString", - "description": "The timestamp when the project was created.", + "description": "The ID of the resource group.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "crn", + "name": "resource_type", "type": "TypeString", - "description": "The CRN of the project.", - "cloud_data_type": "crn", + "description": "The type of the project.", "computed": true }, { - "name": "href", + "name": "status", "type": "TypeString", - "description": "When you provision a new resource, a URL is created identifying the location of the instance.", + "description": "The current state of the project. For example, if the project is created and ready to get used, it will return active.", "computed": true + } + ], + "ibm_code_engine_secret": [ + { + "name": "name", + "type": "TypeString", + "description": "The name of your secret.", + "required": true }, { - "name": "resource_group_id", + "name": "created_at", "type": "TypeString", - "description": "The ID of the resource group.", - "cloud_data_type": "resource_group", + "description": "The timestamp when the resource was created.", "computed": true - } - ], - "ibm_code_engine_secret": [ + }, { - "name": "href", + "name": "format", "type": "TypeString", - "description": "When you provision a new secret, a URL is created identifying the location of the instance.", + "description": "Specify the format of the secret.", "computed": true }, { - "name": "secret_id", + "name": "resource_type", "type": "TypeString", - "description": "The identifier of the resource.", + "description": "The type of the secret.", "computed": true }, { - "name": "resource_type", + "name": "secret_id", "type": "TypeString", - "description": "The type of the secret.", + "description": "The identifier of the resource.", "computed": true }, { @@ -17597,48 +17609,30 @@ "computed": true }, { - "name": "format", - "type": "TypeString", - "description": "Specify the format of the secret.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The name of your secret.", - "required": true - }, - { - "name": "created_at", + "name": "href", "type": "TypeString", - "description": "The timestamp when the resource was created.", + "description": "When you provision a new secret, a URL is created identifying the location of the instance.", "computed": true } ], "ibm_compute_bare_metal": [ { - "name": "domain", + "name": "hostname", "type": "TypeString", - "description": "The domain of the bare metal server", + "description": "The hostname of the bare metal server", "optional": true, "computed": true }, { - "name": "datacenter", + "name": "private_ipv4_address", "type": "TypeString", - "description": "Datacenter in which the bare metal is deployed", - "computed": true - }, - { - "name": "public_vlan_id", - "type": "TypeInt", - "description": "The public VLAN used for the public network interface of the server.", + "description": "The private IPv4 address of the bare metal server.", "computed": true }, { - "name": "unbonded_network", - "type": "TypeBool", - "description": "When the value is `true`, two physical network interfaces are provided without a bonding configuration.", + "name": "datacenter", + "type": "TypeString", + "description": "Datacenter in which the bare metal is deployed", "computed": true }, { @@ -17647,67 +17641,39 @@ "computed": true }, { - "name": "tags", - "type": "TypeList", - "description": "Tags associated with this bare metal server.", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "secondary_ip_addresses", - "type": "TypeList", - "description": "The public secondary IPv4 addresses of the bare metal server.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "global_identifier", + "type": "TypeString", + "description": "The unique global identifier of the bare metal server", + "optional": true, + "computed": true }, { - "name": "private_subnet", + "name": "network_speed", "type": "TypeInt", - "description": "The private subnet used for the private network interface of the server.", + "description": "The connection speed, expressed in Mbps, for the server network components.", "computed": true }, { - "name": "user_metadata", + "name": "public_ipv4_address", "type": "TypeString", - "description": "Arbitrary data available to the computing server.", + "description": "The public IPv4 address of the bare metal server.", "computed": true }, { - "name": "redundant_network", - "type": "TypeBool", - "description": "When the value is `true`, two physical network interfaces are provided with a bonding configuration.", + "name": "public_ipv4_address_id", + "type": "TypeInt", "computed": true }, { - "name": "file_storage_ids", - "type": "TypeSet", - "description": "File storage to which this computing server have access.", - "computed": true, - "elem": { - "type": "TypeInt" - } - }, - { - "name": "public_bandwidth", + "name": "private_vlan_id", "type": "TypeInt", - "description": "The amount of public network traffic, allowed per month.", + "description": "The private VLAN used for the private network interface of the server.", "computed": true }, { - "name": "private_ipv4_address", + "name": "user_metadata", "type": "TypeString", - "description": "The private IPv4 address of the bare metal server.", - "computed": true - }, - { - "name": "private_network_only", - "type": "TypeBool", - "description": "Specifies whether the server only has access to the private network.", + "description": "Arbitrary data available to the computing server.", "computed": true }, { @@ -17717,20 +17683,37 @@ "computed": true }, { - "name": "ipv6_enabled", + "name": "unbonded_network", "type": "TypeBool", - "description": "Indicates whether the public IPv6 address enabled or not", + "description": "When the value is `true`, two physical network interfaces are provided without a bonding configuration.", "computed": true }, { - "name": "private_ipv4_address_id", + "name": "secondary_ip_count", "type": "TypeInt", + "description": "The number of secondary IPv4 addresses of the bare metal server.", "computed": true }, { - "name": "hourly_billing", + "name": "public_vlan_id", + "type": "TypeInt", + "description": "The public VLAN used for the public network interface of the server.", + "computed": true + }, + { + "name": "tags", + "type": "TypeList", + "description": "Tags associated with this bare metal server.", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "ipv6_enabled", "type": "TypeBool", - "description": "The billing type of the server.", + "description": "Indicates whether the public IPv6 address enabled or not", "computed": true }, { @@ -17740,86 +17723,103 @@ "computed": true }, { - "name": "network_speed", - "type": "TypeInt", - "description": "The connection speed, expressed in Mbps, for the server network components.", - "computed": true + "name": "most_recent", + "type": "TypeBool", + "description": "If true and multiple entries are found, the most recently created bare metal is used. If false, an error is returned", + "default_value": false, + "optional": true }, { - "name": "notes", + "name": "domain", "type": "TypeString", - "description": "Notes associated with the server.", + "description": "The domain of the bare metal server", + "optional": true, "computed": true }, { - "name": "redundant_power_supply", - "type": "TypeBool", - "description": "When the value is `true`, it indicates additional power supply is provided.", + "name": "private_ipv4_address_id", + "type": "TypeInt", "computed": true }, { - "name": "ipv6_address_id", - "type": "TypeInt", + "name": "hourly_billing", + "type": "TypeBool", + "description": "The billing type of the server.", "computed": true }, { - "name": "global_identifier", - "type": "TypeString", - "description": "The unique global identifier of the bare metal server", - "optional": true, + "name": "private_network_only", + "type": "TypeBool", + "description": "Specifies whether the server only has access to the private network.", "computed": true }, { - "name": "public_ipv4_address_id", - "type": "TypeInt", + "name": "redundant_network", + "type": "TypeBool", + "description": "When the value is `true`, two physical network interfaces are provided with a bonding configuration.", "computed": true }, { - "name": "public_subnet", + "name": "file_storage_ids", + "type": "TypeSet", + "description": "File storage to which this computing server have access.", + "computed": true, + "elem": { + "type": "TypeInt" + } + }, + { + "name": "ipv6_address_id", "type": "TypeInt", - "description": "The public subnet used for the public network interface of the server.", "computed": true }, { - "name": "private_vlan_id", + "name": "private_subnet", "type": "TypeInt", - "description": "The private VLAN used for the private network interface of the server.", + "description": "The private subnet used for the private network interface of the server.", "computed": true }, { - "name": "block_storage_ids", - "type": "TypeSet", - "description": "Block storage to which this computing server have access.", + "name": "secondary_ip_addresses", + "type": "TypeList", + "description": "The public secondary IPv4 addresses of the bare metal server.", "computed": true, "elem": { - "type": "TypeInt" + "type": "TypeString" } }, { - "name": "secondary_ip_count", + "name": "public_bandwidth", "type": "TypeInt", - "description": "The number of secondary IPv4 addresses of the bare metal server.", + "description": "The amount of public network traffic, allowed per month.", "computed": true }, { - "name": "hostname", - "type": "TypeString", - "description": "The hostname of the bare metal server", - "optional": true, + "name": "public_subnet", + "type": "TypeInt", + "description": "The public subnet used for the public network interface of the server.", "computed": true }, { - "name": "public_ipv4_address", + "name": "notes", "type": "TypeString", - "description": "The public IPv4 address of the bare metal server.", + "description": "Notes associated with the server.", "computed": true }, { - "name": "most_recent", + "name": "redundant_power_supply", "type": "TypeBool", - "description": "If true and multiple entries are found, the most recently created bare metal is used. If false, an error is returned", - "default_value": false, - "optional": true + "description": "When the value is `true`, it indicates additional power supply is provided.", + "computed": true + }, + { + "name": "block_storage_ids", + "type": "TypeSet", + "description": "Block storage to which this computing server have access.", + "computed": true, + "elem": { + "type": "TypeInt" + } } ], "ibm_compute_image_template": [ @@ -17976,14 +17976,8 @@ ], "ibm_compute_vm_instance": [ { - "name": "status", - "type": "TypeString", - "description": "The VSI status", - "computed": true - }, - { - "name": "ipv4_address", - "type": "TypeString", + "name": "private_subnet_id", + "type": "TypeInt", "computed": true }, { @@ -17992,23 +17986,9 @@ "computed": true }, { - "name": "secondary_ip_addresses", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "domain", + "name": "last_known_power_state", "type": "TypeString", - "description": "The domain of the virtual guest", - "required": true - }, - { - "name": "cores", - "type": "TypeInt", - "description": "Number of cpu cores", + "description": "The last known power state of a virtual guest in the event the guest is turned off outside of IMS or has gone offline.", "computed": true }, { @@ -18018,104 +17998,107 @@ "computed": true }, { - "name": "public_subnet_id", + "name": "ip_address_id_private", "type": "TypeInt", "computed": true }, { - "name": "ipv4_address_private", + "name": "ipv6_address", "type": "TypeString", "computed": true }, { - "name": "secondary_ip_count", - "type": "TypeInt", - "computed": true + "name": "domain", + "type": "TypeString", + "description": "The domain of the virtual guest", + "required": true }, { - "name": "datacenter", - "type": "TypeString", - "description": "Datacenter in which the virtual guest is deployed", - "computed": true + "name": "most_recent", + "type": "TypeBool", + "description": "If true and multiple entries are found, the most recently created virtual guest is used. If false, an error is returned", + "default_value": false, + "optional": true }, { - "name": "public_interface_id", + "name": "private_interface_id", "type": "TypeInt", "computed": true }, { - "name": "ipv6_address", - "type": "TypeString", + "name": "public_subnet_id", + "type": "TypeInt", "computed": true }, { - "name": "hostname", + "name": "ipv4_address", "type": "TypeString", - "description": "The hostname of the virtual guest", - "required": true + "computed": true }, { - "name": "private_interface_id", + "name": "ip_address_id", "type": "TypeInt", "computed": true }, { - "name": "private_subnet_id", + "name": "ipv6_address_id", "type": "TypeInt", "computed": true }, { - "name": "ip_address_id", + "name": "secondary_ip_count", "type": "TypeInt", "computed": true }, { - "name": "ip_address_id_private", + "name": "cores", "type": "TypeInt", + "description": "Number of cpu cores", "computed": true }, { - "name": "ipv6_address_id", + "name": "public_interface_id", "type": "TypeInt", "computed": true }, { - "name": "public_ipv6_subnet_id", + "name": "status", "type": "TypeString", + "description": "The VSI status", "computed": true }, { - "name": "last_known_power_state", + "name": "ipv4_address_private", "type": "TypeString", - "description": "The last known power state of a virtual guest in the event the guest is turned off outside of IMS or has gone offline.", "computed": true }, { - "name": "most_recent", - "type": "TypeBool", - "description": "If true and multiple entries are found, the most recently created virtual guest is used. If false, an error is returned", - "default_value": false, - "optional": true - } - ], - "ibm_container_addons": [ + "name": "public_ipv6_subnet_id", + "type": "TypeString", + "computed": true + }, { - "name": "cluster", + "name": "secondary_ip_addresses", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "hostname", "type": "TypeString", - "description": "Cluster Name or ID", - "cloud_data_type": "cluster", - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "description": "The hostname of the virtual guest", + "required": true }, { - "name": "resource_group_id", + "name": "datacenter", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", + "description": "Datacenter in which the virtual guest is deployed", "computed": true - }, + } + ], + "ibm_container_addons": [ { "name": "addons", "type": "TypeList", @@ -18192,33 +18175,26 @@ "computed": true } } - } - ], - "ibm_container_alb": [ - { - "name": "zone", - "type": "TypeString", - "description": "ALB zone", - "computed": true - }, - { - "name": "alb_id", - "type": "TypeString", - "description": "ALB ID", - "required": true }, { - "name": "alb_type", + "name": "cluster", "type": "TypeString", - "description": "ALB type", - "computed": true + "description": "Cluster Name or ID", + "cloud_data_type": "cluster", + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] }, { - "name": "cluster", + "name": "resource_group_id", "type": "TypeString", - "description": "Cluster id", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", "computed": true - }, + } + ], + "ibm_container_alb": [ { "name": "user_ip", "type": "TypeString", @@ -18242,29 +18218,33 @@ "type": "TypeString", "description": "ALB name", "computed": true - } - ], - "ibm_container_alb_cert": [ + }, { - "name": "secret_name", + "name": "zone", "type": "TypeString", - "description": "Secret name", - "required": true + "description": "ALB zone", + "computed": true }, { - "name": "namespace", + "name": "alb_id", "type": "TypeString", - "description": "Namespace of the secret", - "default_value": "ibm-cert-store", - "optional": true + "description": "ALB ID", + "required": true }, { - "name": "issuer_name", + "name": "alb_type", "type": "TypeString", - "description": "certificate issuer name", - "computed": true, - "deprecated": "This field is depricated and is not available in v2 version of ingress api" + "description": "ALB type", + "computed": true }, + { + "name": "cluster", + "type": "TypeString", + "description": "Cluster id", + "computed": true + } + ], + "ibm_container_alb_cert": [ { "name": "cluster_crn", "type": "TypeString", @@ -18273,9 +18253,28 @@ "deprecated": "This field is depricated and is not available in v2 version of ingress api" }, { - "name": "domain_name", + "name": "cloud_cert_instance_id", "type": "TypeString", - "description": "Domain name", + "description": "cloud cert instance ID", + "computed": true + }, + { + "name": "secret_name", + "type": "TypeString", + "description": "Secret name", + "required": true + }, + { + "name": "namespace", + "type": "TypeString", + "description": "Namespace of the secret", + "default_value": "ibm-cert-store", + "optional": true + }, + { + "name": "persistence", + "type": "TypeBool", + "description": "Persistence of secret", "computed": true }, { @@ -18285,10 +18284,11 @@ "computed": true }, { - "name": "cloud_cert_instance_id", + "name": "issuer_name", "type": "TypeString", - "description": "cloud cert instance ID", - "computed": true + "description": "certificate issuer name", + "computed": true, + "deprecated": "This field is depricated and is not available in v2 version of ingress api" }, { "name": "cert_crn", @@ -18307,19 +18307,36 @@ ] }, { - "name": "persistence", - "type": "TypeBool", - "description": "Persistence of secret", + "name": "status", + "type": "TypeString", + "description": "Secret Status", "computed": true }, { - "name": "status", + "name": "domain_name", "type": "TypeString", - "description": "Secret Status", + "description": "Domain name", "computed": true } ], "ibm_container_bind_service": [ + { + "name": "cluster_name_id", + "type": "TypeString", + "description": "Cluster name or ID", + "cloud_data_type": "cluster", + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] + }, + { + "name": "service_instance_id", + "type": "TypeString", + "description": "Service instance ID", + "optional": true, + "computed": true + }, { "name": "service_instance_name", "type": "TypeString", @@ -18338,87 +18355,85 @@ "type": "TypeString", "description": "Key info", "computed": true - }, + } + ], + "ibm_container_cluster": [ { "name": "cluster_name_id", "type": "TypeString", - "description": "Cluster name or ID", - "cloud_data_type": "cluster", - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] - }, - { - "name": "service_instance_id", - "type": "TypeString", - "description": "Service instance ID", + "description": "Name or id of the cluster", "optional": true, - "computed": true - } - ], - "ibm_container_cluster": [ + "deprecated": "use name instead" + }, { - "name": "is_trusted", - "type": "TypeBool", + "name": "worker_count", + "type": "TypeInt", + "description": "Number of workers", "computed": true }, { - "name": "vlans", + "name": "albs", "type": "TypeList", "computed": true, "elem": { + "alb_ip": { + "name": "alb_ip", + "type": "TypeString", + "computed": true + }, + "alb_type": { + "name": "alb_type", + "type": "TypeString", + "computed": true + }, + "disable_deployment": { + "name": "disable_deployment", + "type": "TypeBool", + "computed": true + }, + "enable": { + "name": "enable", + "type": "TypeBool", + "computed": true + }, "id": { "name": "id", "type": "TypeString", "computed": true }, - "subnets": { - "name": "subnets", - "type": "TypeList", - "computed": true, - "elem": { - "cidr": { - "name": "cidr", - "type": "TypeString", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "computed": true - }, - "ips": { - "name": "ips", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "is_byoip": { - "name": "is_byoip", - "type": "TypeBool", - "computed": true - }, - "is_public": { - "name": "is_public", - "type": "TypeBool", - "computed": true - } - } + "name": { + "name": "name", + "type": "TypeString", + "computed": true + }, + "num_of_instances": { + "name": "num_of_instances", + "type": "TypeString", + "computed": true + }, + "resize": { + "name": "resize", + "type": "TypeBool", + "computed": true + }, + "state": { + "name": "state", + "type": "TypeString", + "computed": true } } }, { - "name": "public_service_endpoint", - "type": "TypeBool", + "name": "ingress_hostname", + "type": "TypeString", "computed": true }, { - "name": "resource_controller_url", + "name": "resource_group_id", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "optional": true, "computed": true }, { @@ -18432,31 +18447,30 @@ ] }, { - "name": "worker_count", - "type": "TypeInt", - "description": "Number of workers", + "name": "alb_type", + "type": "TypeString", + "default_value": "all", + "optional": true + }, + { + "name": "private_service_endpoint", + "type": "TypeBool", "computed": true }, { - "name": "org_guid", + "name": "resource_controller_url", "type": "TypeString", - "description": "The bluemix organization guid this cluster belongs to", - "optional": true, - "deprecated": "This field is deprecated" + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", + "computed": true }, { - "name": "space_guid", + "name": "public_service_endpoint_url", "type": "TypeString", - "description": "The bluemix space guid this cluster belongs to", - "optional": true, - "deprecated": "This field is deprecated" + "computed": true }, { - "name": "resource_group_id", + "name": "server_url", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "optional": true, "computed": true }, { @@ -18467,9 +18481,16 @@ "optional": true }, { - "name": "resource_crn", + "name": "crn", "type": "TypeString", - "description": "The crn of the resource", + "description": "CRN of resource instance", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "image_security_enforcement", + "type": "TypeBool", + "description": "True if image security enforcement is enabled", "computed": true }, { @@ -18479,12 +18500,9 @@ "computed": true }, { - "name": "workers", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "is_trusted", + "type": "TypeBool", + "computed": true }, { "name": "worker_pools", @@ -18556,86 +18574,59 @@ } }, { - "name": "albs", - "type": "TypeList", + "name": "bounded_services", + "type": "TypeSet", "computed": true, "elem": { - "alb_ip": { - "name": "alb_ip", - "type": "TypeString", - "computed": true - }, - "alb_type": { - "name": "alb_type", - "type": "TypeString", - "computed": true - }, - "disable_deployment": { - "name": "disable_deployment", - "type": "TypeBool", - "computed": true - }, - "enable": { - "name": "enable", - "type": "TypeBool", - "computed": true - }, - "id": { - "name": "id", + "namespace": { + "name": "namespace", "type": "TypeString", "computed": true }, - "name": { - "name": "name", + "service_id": { + "name": "service_id", "type": "TypeString", "computed": true }, - "num_of_instances": { - "name": "num_of_instances", + "service_key_name": { + "name": "service_key_name", "type": "TypeString", "computed": true }, - "resize": { - "name": "resize", - "type": "TypeBool", - "computed": true - }, - "state": { - "name": "state", + "service_name": { + "name": "service_name", "type": "TypeString", "computed": true } } }, { - "name": "ingress_hostname", + "name": "ingress_secret", "type": "TypeString", + "secure": true, "computed": true }, { - "name": "region", + "name": "org_guid", "type": "TypeString", - "description": "The cluster region", - "cloud_data_type": "region", + "description": "The bluemix organization guid this cluster belongs to", "optional": true, - "computed": true, "deprecated": "This field is deprecated" }, { - "name": "private_service_endpoint", - "type": "TypeBool", - "computed": true - }, - { - "name": "image_security_enforcement", - "type": "TypeBool", - "description": "True if image security enforcement is enabled", + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "private_service_endpoint_url", + "name": "region", "type": "TypeString", - "computed": true + "description": "The cluster region", + "cloud_data_type": "region", + "optional": true, + "computed": true, + "deprecated": "This field is deprecated" }, { "name": "api_key_owner_name", @@ -18650,100 +18641,118 @@ "computed": true }, { - "name": "bounded_services", - "type": "TypeSet", - "computed": true, - "elem": { - "namespace": { - "name": "namespace", - "type": "TypeString", - "computed": true - }, - "service_id": { - "name": "service_id", - "type": "TypeString", - "computed": true - }, - "service_key_name": { - "name": "service_key_name", - "type": "TypeString", - "computed": true - }, - "service_name": { - "name": "service_name", - "type": "TypeString", - "computed": true - } - } - }, - { - "name": "alb_type", + "name": "account_guid", "type": "TypeString", - "default_value": "all", - "optional": true + "description": "The bluemix account guid this cluster belongs to", + "optional": true, + "deprecated": "This field is deprecated" }, { - "name": "ingress_secret", + "name": "private_service_endpoint_url", "type": "TypeString", - "secure": true, "computed": true }, { - "name": "public_service_endpoint_url", + "name": "resource_name", "type": "TypeString", + "description": "The name of the resource", "computed": true }, { - "name": "crn", + "name": "resource_crn", "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", + "description": "The crn of the resource", "computed": true }, { - "name": "api_key_id", - "type": "TypeString", - "description": "ID of APIkey", - "computed": true + "name": "workers", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "cluster_name_id", - "type": "TypeString", - "description": "Name or id of the cluster", - "optional": true, - "deprecated": "use name instead" + "name": "vlans", + "type": "TypeList", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "computed": true + }, + "subnets": { + "name": "subnets", + "type": "TypeList", + "computed": true, + "elem": { + "cidr": { + "name": "cidr", + "type": "TypeString", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "computed": true + }, + "ips": { + "name": "ips", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "is_byoip": { + "name": "is_byoip", + "type": "TypeBool", + "computed": true + }, + "is_public": { + "name": "is_public", + "type": "TypeBool", + "computed": true + } + } + } + } }, { - "name": "account_guid", + "name": "space_guid", "type": "TypeString", - "description": "The bluemix account guid this cluster belongs to", + "description": "The bluemix space guid this cluster belongs to", "optional": true, "deprecated": "This field is deprecated" }, { - "name": "server_url", - "type": "TypeString", - "computed": true - }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", + "name": "public_service_endpoint", + "type": "TypeBool", "computed": true }, { - "name": "resource_group_name", + "name": "api_key_id", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "ID of APIkey", "computed": true } ], "ibm_container_cluster_config": [ { - "name": "token", + "name": "region", "type": "TypeString", - "secure": true, - "computed": true + "description": "The cluster region", + "cloud_data_type": "region", + "optional": true, + "deprecated": "This field is deprecated" + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "optional": true }, { "name": "config_dir", @@ -18753,38 +18762,25 @@ "computed": true }, { - "name": "calico_config_file_path", - "type": "TypeString", - "description": "The absolute path to the calico network config file", - "computed": true + "name": "download", + "type": "TypeBool", + "description": "If set to false will not download the config, otherwise they are downloaded each time but onto the same path for a given cluster name/id", + "default_value": true, + "optional": true }, { - "name": "ca_certificate", + "name": "admin_key", "type": "TypeString", "secure": true, "computed": true }, { - "name": "space_guid", - "type": "TypeString", - "description": "The bluemix space guid this cluster belongs to", - "optional": true, - "deprecated": "This field is deprecated" - }, - { - "name": "account_guid", + "name": "org_guid", "type": "TypeString", - "description": "The bluemix account guid this cluster belongs to", + "description": "The bluemix organization guid this cluster belongs to", "optional": true, "deprecated": "This field is deprecated" }, - { - "name": "download", - "type": "TypeBool", - "description": "If set to false will not download the config, otherwise they are downloaded each time but onto the same path for a given cluster name/id", - "default_value": true, - "optional": true - }, { "name": "network", "type": "TypeBool", @@ -18793,9 +18789,9 @@ "optional": true }, { - "name": "admin_key", + "name": "config_file_path", "type": "TypeString", - "secure": true, + "description": "The absolute path to the kubernetes config yml file", "computed": true }, { @@ -18805,25 +18801,18 @@ "computed": true }, { - "name": "host", + "name": "ca_certificate", "type": "TypeString", + "secure": true, "computed": true }, { - "name": "region", + "name": "space_guid", "type": "TypeString", - "description": "The cluster region", - "cloud_data_type": "region", + "description": "The bluemix space guid this cluster belongs to", "optional": true, "deprecated": "This field is deprecated" }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "optional": true - }, { "name": "admin", "type": "TypeBool", @@ -18838,15 +18827,20 @@ "optional": true }, { - "name": "config_file_path", + "name": "calico_config_file_path", "type": "TypeString", - "description": "The absolute path to the kubernetes config yml file", + "description": "The absolute path to the calico network config file", "computed": true }, { - "name": "org_guid", + "name": "host", "type": "TypeString", - "description": "The bluemix organization guid this cluster belongs to", + "computed": true + }, + { + "name": "account_guid", + "type": "TypeString", + "description": "The bluemix account guid this cluster belongs to", "optional": true, "deprecated": "This field is deprecated" }, @@ -18859,30 +18853,28 @@ "cloud_data_range": [ "resolved_to:id" ] + }, + { + "name": "token", + "type": "TypeString", + "secure": true, + "computed": true } ], "ibm_container_cluster_versions": [ { - "name": "space_guid", - "type": "TypeString", - "description": "The bluemix space guid this cluster belongs to", - "optional": true, - "deprecated": "This field is deprecated" - }, - { - "name": "account_guid", + "name": "org_guid", "type": "TypeString", - "description": "The bluemix account guid this cluster belongs to", + "description": "The bluemix organization guid this cluster belongs to", "optional": true, "deprecated": "This field is deprecated" }, { - "name": "region", + "name": "resource_group_id", "type": "TypeString", - "description": "The cluster region", - "cloud_data_type": "region", - "optional": true, - "deprecated": "This field is deprecated" + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "optional": true }, { "name": "valid_kube_versions", @@ -18900,18 +18892,32 @@ "computed": true }, { - "name": "org_guid", + "name": "default_kube_version", "type": "TypeString", - "description": "The bluemix organization guid this cluster belongs to", + "description": "Default kube-version", + "computed": true + }, + { + "name": "space_guid", + "type": "TypeString", + "description": "The bluemix space guid this cluster belongs to", "optional": true, "deprecated": "This field is deprecated" }, { - "name": "resource_group_id", + "name": "account_guid", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "optional": true + "description": "The bluemix account guid this cluster belongs to", + "optional": true, + "deprecated": "This field is deprecated" + }, + { + "name": "region", + "type": "TypeString", + "description": "The cluster region", + "cloud_data_type": "region", + "optional": true, + "deprecated": "This field is deprecated" }, { "name": "valid_openshift_versions", @@ -18921,26 +18927,18 @@ "elem": { "type": "TypeString" } - }, - { - "name": "default_kube_version", - "type": "TypeString", - "description": "Default kube-version", - "computed": true } ], "ibm_container_cluster_worker": [ { - "name": "private_vlan", + "name": "private_ip", "type": "TypeString", "computed": true }, { - "name": "org_guid", + "name": "public_ip", "type": "TypeString", - "description": "The bluemix organization guid this cluster belongs to", - "optional": true, - "deprecated": "This field is deprecated" + "computed": true }, { "name": "region", @@ -18958,22 +18956,13 @@ "optional": true }, { - "name": "account_guid", - "type": "TypeString", - "description": "The bluemix account guid this cluster belongs to", - "optional": true, - "deprecated": "This field is deprecated" - }, - { - "name": "worker_id", + "name": "private_vlan", "type": "TypeString", - "description": "ID of the worker", - "required": true + "computed": true }, { - "name": "state", + "name": "public_vlan", "type": "TypeString", - "description": "State of the worker", "computed": true }, { @@ -18983,24 +18972,23 @@ "computed": true }, { - "name": "public_vlan", - "type": "TypeString", - "computed": true - }, - { - "name": "private_ip", + "name": "org_guid", "type": "TypeString", - "computed": true + "description": "The bluemix organization guid this cluster belongs to", + "optional": true, + "deprecated": "This field is deprecated" }, { - "name": "public_ip", + "name": "space_guid", "type": "TypeString", - "computed": true + "description": "The bluemix space guid this cluster belongs to", + "optional": true, + "deprecated": "This field is deprecated" }, { - "name": "space_guid", + "name": "account_guid", "type": "TypeString", - "description": "The bluemix space guid this cluster belongs to", + "description": "The bluemix account guid this cluster belongs to", "optional": true, "deprecated": "This field is deprecated" }, @@ -19009,9 +18997,33 @@ "type": "TypeString", "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", "computed": true + }, + { + "name": "worker_id", + "type": "TypeString", + "description": "ID of the worker", + "required": true + }, + { + "name": "state", + "type": "TypeString", + "description": "State of the worker", + "computed": true } ], "ibm_container_dedicated_host": [ + { + "name": "host_id", + "type": "TypeString", + "description": "The id of the dedicated host", + "required": true + }, + { + "name": "host_pool_id", + "type": "TypeString", + "description": "The id of the dedicated host pool the dedicated host is associated with", + "required": true + }, { "name": "flavor", "type": "TypeString", @@ -19136,18 +19148,6 @@ "type": "TypeString", "description": "The zone of the dedicated host", "computed": true - }, - { - "name": "host_id", - "type": "TypeString", - "description": "The id of the dedicated host", - "required": true - }, - { - "name": "host_pool_id", - "type": "TypeString", - "description": "The id of the dedicated host pool the dedicated host is associated with", - "required": true } ], "ibm_container_dedicated_host_flavor": [ @@ -19375,17 +19375,33 @@ ], "ibm_container_ingress_instance": [ { - "name": "secret_group_name", + "name": "status", "type": "TypeString", - "description": "Name of the secret group for the instance", + "description": "Instance registration status", "computed": true }, { - "name": "status", + "name": "instance_type", "type": "TypeString", - "description": "Instance registration status", + "description": "Instance type", "computed": true }, + { + "name": "user_managed", + "type": "TypeBool", + "description": "If the instance was created by the user", + "computed": true + }, + { + "name": "cluster", + "type": "TypeString", + "description": "Cluster ID", + "cloud_data_type": "cluster", + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] + }, { "name": "instance_name", "type": "TypeString", @@ -19399,21 +19415,9 @@ "computed": true }, { - "name": "secret_group_id", - "type": "TypeString", - "description": "Secret group for the instance registration", - "computed": true - }, - { - "name": "instance_type", + "name": "secret_group_name", "type": "TypeString", - "description": "Instance type", - "computed": true - }, - { - "name": "user_managed", - "type": "TypeBool", - "description": "If the instance was created by the user", + "description": "Name of the secret group for the instance", "computed": true }, { @@ -19423,14 +19427,10 @@ "computed": true }, { - "name": "cluster", + "name": "secret_group_id", "type": "TypeString", - "description": "Cluster ID", - "cloud_data_type": "cluster", - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "description": "Secret group for the instance registration", + "computed": true } ], "ibm_container_ingress_secret_opaque": [ @@ -19527,25 +19527,9 @@ "computed": true }, { - "name": "last_updated_timestamp", - "type": "TypeString", - "description": "Timestamp secret was last updated", - "computed": true - }, - { - "name": "cluster", - "type": "TypeString", - "description": "Cluster ID or name", - "cloud_data_type": "cluster", - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] - }, - { - "name": "secret_namespace", + "name": "secret_name", "type": "TypeString", - "description": "Secret namespace", + "description": "Secret name", "required": true }, { @@ -19555,9 +19539,9 @@ "computed": true }, { - "name": "type", - "type": "TypeString", - "description": "Type TLS", + "name": "user_managed", + "type": "TypeBool", + "description": "If the secret was created by the user", "computed": true }, { @@ -19567,22 +19551,38 @@ "computed": true }, { - "name": "user_managed", - "type": "TypeBool", - "description": "If the secret was created by the user", + "name": "domain_name", + "type": "TypeString", + "description": "Domain name", "computed": true }, { - "name": "domain_name", + "name": "last_updated_timestamp", "type": "TypeString", - "description": "Domain name", + "description": "Timestamp secret was last updated", "computed": true }, { - "name": "secret_name", + "name": "cluster", "type": "TypeString", - "description": "Secret name", + "description": "Cluster ID or name", + "cloud_data_type": "cluster", + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] + }, + { + "name": "secret_namespace", + "type": "TypeString", + "description": "Secret namespace", "required": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Type TLS", + "computed": true } ], "ibm_container_nlb_dns": [ @@ -19663,23 +19663,6 @@ } ], "ibm_container_storage_attachment": [ - { - "name": "resource_group_id", - "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "cloud_data_range": [ - "resolved_to:id" - ] - }, - { - "name": "volume", - "type": "TypeString", - "description": "Volume ID", - "computed": true - }, { "name": "volume_attachment_name", "type": "TypeString", @@ -19719,6 +19702,23 @@ "type": "TypeString", "description": "Worker node ID", "required": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "cloud_data_range": [ + "resolved_to:id" + ] + }, + { + "name": "volume", + "type": "TypeString", + "description": "Volume ID", + "computed": true } ], "ibm_container_vpc_alb": [ @@ -19728,12 +19728,7 @@ "computed": true }, { - "name": "resize", - "type": "TypeBool", - "computed": true - }, - { - "name": "status", + "name": "state", "type": "TypeString", "computed": true }, @@ -19745,100 +19740,127 @@ "optional": true }, { - "name": "alb_id", + "name": "alb_type", "type": "TypeString", - "description": "ALB ID", - "required": true + "computed": true }, { "name": "cluster", "type": "TypeString", "computed": true }, + { + "name": "enable", + "type": "TypeBool", + "computed": true + }, { "name": "disable_deployment", "type": "TypeBool", "computed": true }, { - "name": "name", + "name": "zone", "type": "TypeString", "computed": true }, { - "name": "alb_type", + "name": "alb_id", "type": "TypeString", - "computed": true + "description": "ALB ID", + "required": true }, { - "name": "enable", - "type": "TypeBool", + "name": "name", + "type": "TypeString", "computed": true }, { - "name": "state", - "type": "TypeString", + "name": "resize", + "type": "TypeBool", "computed": true }, { - "name": "zone", + "name": "status", "type": "TypeString", "computed": true } ], "ibm_container_vpc_cluster": [ { - "name": "kube_version", + "name": "private_service_endpoint_url", "type": "TypeString", "computed": true }, { - "name": "status", + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "resource_name", "type": "TypeString", - "description": "The status of the cluster master", + "description": "The name of the resource", "computed": true }, { - "name": "state", + "name": "resource_crn", "type": "TypeString", + "description": "The crn of the resource", "computed": true }, { - "name": "public_service_endpoint_url", - "type": "TypeString", + "name": "worker_count", + "type": "TypeInt", + "description": "Number of workers", "computed": true }, { - "name": "resource_crn", + "name": "pod_subnet", "type": "TypeString", - "description": "The crn of the resource", + "description": "Custom subnet CIDR to provide private IP addresses for pods", "computed": true }, { - "name": "cluster_name_id", + "name": "ingress_secret", "type": "TypeString", - "description": "Name or id of the cluster", - "optional": true, - "deprecated": "use name instead" + "secure": true, + "computed": true }, { - "name": "worker_count", - "type": "TypeInt", - "description": "Number of workers", + "name": "public_service_endpoint", + "type": "TypeBool", "computed": true }, { - "name": "resource_group_id", + "name": "service_subnet", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "optional": true, + "description": "Custom subnet CIDR to provide private IP addresses for services", "computed": true }, { - "name": "api_key_owner_name", + "name": "health", + "type": "TypeString", + "computed": true + }, + { + "name": "image_security_enforcement", + "type": "TypeBool", + "description": "True if image security enforcement is enabled", + "computed": true + }, + { + "name": "private_service_endpoint", + "type": "TypeBool", + "computed": true + }, + { + "name": "public_service_endpoint_url", "type": "TypeString", - "description": "Name of the key owner", "computed": true }, { @@ -19848,9 +19870,61 @@ "computed": true }, { - "name": "service_subnet", + "name": "workers", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "api_key_id", + "type": "TypeString", + "description": "ID of APIkey", + "computed": true + }, + { + "name": "resource_status", + "type": "TypeString", + "description": "The status of the resource", + "computed": true + }, + { + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true + }, + { + "name": "api_key_owner_email", + "type": "TypeString", + "description": "email id of the key owner", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name or id of the cluster", + "cloud_data_type": "cluster", + "optional": true, + "cloud_data_range": [ + "resolved_to:id" + ] + }, + { + "name": "alb_type", + "type": "TypeString", + "default_value": "all", + "optional": true + }, + { + "name": "ingress_hostname", + "type": "TypeString", + "computed": true + }, + { + "name": "state", "type": "TypeString", - "description": "Custom subnet CIDR to provide private IP addresses for services", "computed": true }, { @@ -19979,78 +20053,34 @@ } }, { - "name": "api_key_owner_email", - "type": "TypeString", - "description": "email id of the key owner", - "computed": true - }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, - { - "name": "workers", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "private_service_endpoint_url", - "type": "TypeString", - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "image_security_enforcement", - "type": "TypeBool", - "description": "True if image security enforcement is enabled", - "computed": true - }, - { - "name": "resource_name", + "name": "kube_version", "type": "TypeString", - "description": "The name of the resource", "computed": true }, { - "name": "pod_subnet", + "name": "crn", "type": "TypeString", - "description": "Custom subnet CIDR to provide private IP addresses for pods", + "description": "CRN of resource instance", + "cloud_data_type": "crn", "computed": true }, { - "name": "ingress_hostname", + "name": "master_url", "type": "TypeString", "computed": true }, { - "name": "private_service_endpoint", - "type": "TypeBool", - "computed": true - }, - { - "name": "crn", + "name": "status", "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", + "description": "The status of the cluster master", "computed": true }, { - "name": "master_url", + "name": "cluster_name_id", "type": "TypeString", - "computed": true + "description": "Name or id of the cluster", + "optional": true, + "deprecated": "use name instead" }, { "name": "albs", @@ -20100,81 +20130,59 @@ } }, { - "name": "alb_type", - "type": "TypeString", - "default_value": "all", - "optional": true - }, - { - "name": "ingress_secret", + "name": "resource_group_id", "type": "TypeString", - "secure": true, - "computed": true - }, - { - "name": "public_service_endpoint", - "type": "TypeBool", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "optional": true, "computed": true }, { - "name": "health", + "name": "api_key_owner_name", "type": "TypeString", + "description": "Name of the key owner", "computed": true - }, + } + ], + "ibm_container_vpc_cluster_alb": [ { - "name": "api_key_id", + "name": "status", "type": "TypeString", - "description": "ID of APIkey", "computed": true }, { - "name": "resource_status", + "name": "alb_id", "type": "TypeString", - "description": "The status of the resource", - "computed": true + "description": "ALB ID", + "required": true }, { - "name": "name", - "type": "TypeString", - "description": "Name or id of the cluster", - "cloud_data_type": "cluster", - "optional": true, - "cloud_data_range": [ - "resolved_to:id" - ] - } - ], - "ibm_container_vpc_cluster_alb": [ - { - "name": "state", + "name": "alb_type", "type": "TypeString", "computed": true }, { - "name": "status", + "name": "cluster", "type": "TypeString", "computed": true }, { - "name": "zone", - "type": "TypeString", + "name": "enable", + "type": "TypeBool", "computed": true }, { - "name": "resource_group_id", + "name": "name", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "optional": true + "computed": true }, { - "name": "alb_id", + "name": "state", "type": "TypeString", - "description": "ALB ID", - "required": true + "computed": true }, { - "name": "enable", + "name": "disable_deployment", "type": "TypeBool", "computed": true }, @@ -20183,33 +20191,31 @@ "type": "TypeString", "computed": true }, - { - "name": "name", - "type": "TypeString", - "computed": true - }, { "name": "resize", "type": "TypeBool", "computed": true }, { - "name": "alb_type", + "name": "zone", "type": "TypeString", "computed": true }, { - "name": "cluster", + "name": "resource_group_id", "type": "TypeString", - "computed": true - }, - { - "name": "disable_deployment", - "type": "TypeBool", - "computed": true + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "optional": true } ], "ibm_container_vpc_cluster_worker": [ + { + "name": "kube_version", + "type": "TypeString", + "description": "kube version of the worker", + "computed": true + }, { "name": "state", "type": "TypeString", @@ -20217,17 +20223,44 @@ "computed": true }, { - "name": "pool_id", + "name": "network_interfaces", + "type": "TypeList", + "computed": true, + "elem": { + "cidr": { + "name": "cidr", + "type": "TypeString", + "computed": true + }, + "ip_address": { + "name": "ip_address", + "type": "TypeString", + "computed": true + }, + "subnet_id": { + "name": "subnet_id", + "type": "TypeString", + "computed": true + } + } + }, + { + "name": "host_pool_id", "type": "TypeString", - "description": "worker pool id", + "description": "ID of the dedicated host pool this worker is associated with", + "computed": true + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", "computed": true }, { - "name": "resource_group_id", + "name": "worker_id", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "optional": true + "description": "ID of the worker", + "required": true }, { "name": "cluster_name_id", @@ -20246,59 +20279,37 @@ "computed": true }, { - "name": "kube_version", + "name": "pool_id", "type": "TypeString", - "description": "kube version of the worker", + "description": "worker pool id", "computed": true }, { - "name": "host_pool_id", + "name": "pool_name", "type": "TypeString", - "description": "ID of the dedicated host pool this worker is associated with", + "description": "worker pool name", "computed": true }, { - "name": "resource_controller_url", + "name": "resource_group_id", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", - "computed": true - }, + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "optional": true + } + ], + "ibm_container_vpc_cluster_worker_pool": [ { - "name": "worker_id", + "name": "host_pool_id", "type": "TypeString", - "description": "ID of the worker", - "required": true + "computed": true }, { - "name": "pool_name", - "type": "TypeString", - "description": "worker pool name", + "name": "autoscale_enabled", + "type": "TypeBool", + "description": "Autoscaling is enabled on the workerpool", "computed": true }, - { - "name": "network_interfaces", - "type": "TypeList", - "computed": true, - "elem": { - "cidr": { - "name": "cidr", - "type": "TypeString", - "computed": true - }, - "ip_address": { - "name": "ip_address", - "type": "TypeString", - "computed": true - }, - "subnet_id": { - "name": "subnet_id", - "type": "TypeString", - "computed": true - } - } - } - ], - "ibm_container_vpc_cluster_worker_pool": [ { "name": "zones", "type": "TypeSet", @@ -20317,16 +20328,9 @@ } }, { - "name": "labels", - "type": "TypeMap", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "flavor", + "name": "operating_system", "type": "TypeString", + "description": "The operating system of the workers in the worker pool", "computed": true }, { @@ -20378,14 +20382,18 @@ "computed": true }, { - "name": "host_pool_id", + "name": "cluster", "type": "TypeString", - "computed": true + "description": "Cluster name", + "cloud_data_type": "cluster", + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] }, { - "name": "autoscale_enabled", - "type": "TypeBool", - "description": "Autoscaling is enabled on the workerpool", + "name": "flavor", + "type": "TypeString", "computed": true }, { @@ -20394,6 +20402,25 @@ "cloud_data_type": "resource_group", "computed": true }, + { + "name": "worker_pool_name", + "type": "TypeString", + "description": "worker pool name", + "required": true + }, + { + "name": "labels", + "type": "TypeMap", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "kms_instance_id", + "type": "TypeString", + "computed": true + }, { "name": "vpc_id", "type": "TypeString", @@ -20408,38 +20435,36 @@ "name": "kms_account_id", "type": "TypeString", "computed": true - }, + } + ], + "ibm_container_vpc_worker_pool": [ { - "name": "cluster", - "type": "TypeString", - "description": "Cluster name", - "cloud_data_type": "cluster", - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "name": "autoscale_enabled", + "type": "TypeBool", + "description": "Autoscaling is enabled on the workerpool", + "computed": true }, { - "name": "worker_pool_name", - "type": "TypeString", - "description": "worker pool name", - "required": true + "name": "labels", + "type": "TypeMap", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "operating_system", + "name": "resource_group_id", "type": "TypeString", - "description": "The operating system of the workers in the worker pool", + "cloud_data_type": "resource_group", "computed": true }, { "name": "kms_instance_id", "type": "TypeString", "computed": true - } - ], - "ibm_container_vpc_worker_pool": [ + }, { - "name": "flavor", + "name": "kms_account_id", "type": "TypeString", "computed": true }, @@ -20461,14 +20486,13 @@ } }, { - "name": "kms_instance_id", + "name": "host_pool_id", "type": "TypeString", "computed": true }, { - "name": "autoscale_enabled", - "type": "TypeBool", - "description": "Autoscaling is enabled on the workerpool", + "name": "crk", + "type": "TypeString", "computed": true }, { @@ -20477,41 +20501,6 @@ "description": "Cluster name", "required": true }, - { - "name": "worker_pool_name", - "type": "TypeString", - "description": "worker pool name", - "required": true - }, - { - "name": "labels", - "type": "TypeMap", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "vpc_id", - "type": "TypeString", - "computed": true - }, - { - "name": "worker_count", - "type": "TypeInt", - "computed": true - }, - { - "name": "host_pool_id", - "type": "TypeString", - "computed": true - }, - { - "name": "operating_system", - "type": "TypeString", - "description": "The operating system of the workers in the worker pool", - "computed": true - }, { "name": "secondary_storage", "type": "TypeList", @@ -20551,14 +20540,8 @@ } }, { - "name": "resource_group_id", - "type": "TypeString", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "crk", - "type": "TypeString", + "name": "worker_count", + "type": "TypeInt", "computed": true }, { @@ -20567,28 +20550,14 @@ "computed": true }, { - "name": "kms_account_id", - "type": "TypeString", - "computed": true - } - ], - "ibm_container_worker_pool": [ - { - "name": "machine_type", + "name": "worker_pool_name", "type": "TypeString", - "description": "worker nodes machine type", - "computed": true - }, - { - "name": "size_per_zone", - "type": "TypeInt", - "description": "Number of nodes per zone", - "computed": true + "description": "worker pool name", + "required": true }, { - "name": "disk_encryption", - "type": "TypeBool", - "description": "worker node disk encrypted if set to true", + "name": "flavor", + "type": "TypeString", "computed": true }, { @@ -20598,12 +20567,12 @@ "computed": true }, { - "name": "resource_group_id", + "name": "vpc_id", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", "computed": true - }, + } + ], + "ibm_container_worker_pool": [ { "name": "cluster", "type": "TypeString", @@ -20621,9 +20590,9 @@ "required": true }, { - "name": "hardware", - "type": "TypeString", - "description": "Hardware type", + "name": "disk_encryption", + "type": "TypeBool", + "description": "worker node disk encrypted if set to true", "computed": true }, { @@ -20670,6 +20639,37 @@ "description": "list of labels to worker pool", "computed": true }, + { + "name": "operating_system", + "type": "TypeString", + "description": "The operating system of the workers in the worker pool", + "computed": true + }, + { + "name": "machine_type", + "type": "TypeString", + "description": "worker nodes machine type", + "computed": true + }, + { + "name": "size_per_zone", + "type": "TypeInt", + "description": "Number of nodes per zone", + "computed": true + }, + { + "name": "hardware", + "type": "TypeString", + "description": "Hardware type", + "computed": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "computed": true + }, { "name": "autoscale_enabled", "type": "TypeBool", @@ -20678,20 +20678,6 @@ } ], "ibm_cos_bucket": [ - { - "name": "object_versioning", - "type": "TypeList", - "description": "Protect objects from accidental deletion or overwrites. Versioning allows you to keep multiple versions of an object protecting from unintentional data loss.", - "computed": true, - "elem": { - "enable": { - "name": "enable", - "type": "TypeBool", - "description": "Enable or suspend the versioning for objects in the bucket", - "computed": true - } - } - }, { "name": "website_configuration", "type": "TypeList", @@ -20814,91 +20800,125 @@ } }, { - "name": "abort_incomplete_multipart_upload_days", + "name": "s3_endpoint_private", + "type": "TypeString", + "description": "Private endpoint for the COS bucket", + "computed": true + }, + { + "name": "metrics_monitoring", "type": "TypeList", "computed": true, "elem": { - "days_after_initiation": { - "name": "days_after_initiation", - "type": "TypeInt", - "description": "Specifies the number of days when the specific rule action takes effect.", + "metrics_monitoring_crn": { + "name": "metrics_monitoring_crn", + "type": "TypeString", + "description": "Instance of IBM Cloud Monitoring that will receive the bucket metrics.", "computed": true }, - "enable": { - "name": "enable", + "request_metrics_enabled": { + "name": "request_metrics_enabled", "type": "TypeBool", - "description": "Enable or disable rule for a bucket", + "description": "Request metrics will be sent to the monitoring service.", "computed": true }, - "prefix": { - "name": "prefix", + "usage_metrics_enabled": { + "name": "usage_metrics_enabled", + "type": "TypeBool", + "description": "Usage metrics will be sent to the monitoring service.", + "computed": true + } + } + }, + { + "name": "activity_tracking", + "type": "TypeList", + "computed": true, + "elem": { + "activity_tracker_crn": { + "name": "activity_tracker_crn", "type": "TypeString", - "description": "The rule applies to any objects with keys that match this prefix", + "description": "The instance of Activity Tracker that will receive object event data", "computed": true }, - "rule_id": { - "name": "rule_id", - "type": "TypeString", - "description": "Unique identifier for the rule. Rules allow you to set a specific time frame after which objects are deleted. Set Rule ID for cos bucket", + "read_data_events": { + "name": "read_data_events", + "type": "TypeBool", + "description": "If set to true, all object read events will be sent to Activity Tracker.", + "computed": true + }, + "write_data_events": { + "name": "write_data_events", + "type": "TypeBool", + "description": "If set to true, all object write events will be sent to Activity Tracker.", "computed": true } } }, { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private", - "default_value": "public", - "options": "public,private,direct", - "optional": true - }, - { - "name": "key_protect", - "type": "TypeString", - "description": "CRN of the key you want to use data at rest encryption", - "computed": true - }, - { - "name": "retention_rule", + "name": "replication_rule", "type": "TypeList", - "description": "A retention policy is enabled at the IBM Cloud Object Storage bucket level. Minimum, maximum and default retention period are defined by this policy and apply to all objects in the bucket.", + "description": "Replicate objects between buckets, replicate across source and destination. A container for replication rules can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.", "computed": true, "elem": { - "default": { - "name": "default", - "type": "TypeInt", - "description": "If an object is stored in the bucket without specifying a custom retention period.", + "deletemarker_replication_status": { + "name": "deletemarker_replication_status", + "type": "TypeBool", + "description": "Indicates whether to replicate delete markers. It should be either Enable or Disable", "computed": true }, - "maximum": { - "name": "maximum", - "type": "TypeInt", - "description": "Maximum duration of time an object can be kept unmodified in the bucket.", + "destination_bucket_crn": { + "name": "destination_bucket_crn", + "type": "TypeString", + "description": "The Cloud Resource Name (CRN) of the bucket where you want COS to store the results", "computed": true }, - "minimum": { - "name": "minimum", + "enable": { + "name": "enable", + "type": "TypeBool", + "description": "Enable or disable an replication rule for a bucket", + "computed": true + }, + "prefix": { + "name": "prefix", + "type": "TypeString", + "description": "The rule applies to any objects with keys that match this prefix", + "computed": true + }, + "priority": { + "name": "priority", "type": "TypeInt", - "description": "Minimum duration of time an object must be kept unmodified in the bucket", "computed": true }, - "permanent": { - "name": "permanent", - "type": "TypeBool", - "description": "Enable or disable the permanent retention policy on the bucket", + "rule_id": { + "name": "rule_id", + "type": "TypeString", + "description": "A unique identifier for the rule. The maximum value is 255 characters.", "computed": true } } }, { - "name": "website_endpoint", + "name": "kms_key_crn", "type": "TypeString", + "description": "CRN of the key you want to use data at rest encryption", "computed": true }, { - "name": "satellite_location_id", + "name": "single_site_location", "type": "TypeString", - "optional": true + "computed": true + }, + { + "name": "object_lock", + "type": "TypeBool", + "description": "Description", + "computed": true + }, + { + "name": "bucket_name", + "type": "TypeString", + "required": true }, { "name": "crn", @@ -20908,13 +20928,13 @@ "computed": true }, { - "name": "kms_key_crn", + "name": "s3_endpoint_direct", "type": "TypeString", - "description": "CRN of the key you want to use data at rest encryption", + "description": "Direct endpoint for the COS bucket", "computed": true }, { - "name": "single_site_location", + "name": "region_location", "type": "TypeString", "computed": true }, @@ -20924,14 +20944,21 @@ "computed": true }, { - "name": "archive_rule", + "name": "expire_rule", "type": "TypeList", - "description": "Enable configuration archive_rule (glacier/accelerated) to COS Bucket after a defined period of time", + "description": "Enable configuration expire_rule to COS Bucket", "computed": true, "elem": { + "date": { + "name": "date", + "type": "TypeString", + "description": "Specifies the date when the specific rule action takes effect.", + "computed": true + }, "days": { "name": "days", "type": "TypeInt", + "description": "Specifies the number of days when the specific rule action takes effect.", "computed": true }, "enable": { @@ -20940,22 +20967,38 @@ "description": "Enable or disable an archive rule for a bucket", "computed": true }, - "rule_id": { - "name": "rule_id", + "expired_object_delete_marker": { + "name": "expired_object_delete_marker", + "type": "TypeBool", + "description": "Expired object delete markers can be automatically cleaned up to improve performance in bucket. This cannot be used alongside version expiration.", + "computed": true + }, + "prefix": { + "name": "prefix", "type": "TypeString", + "description": "The rule applies to any objects with keys that match this prefix", "computed": true }, - "type": { - "name": "type", + "rule_id": { + "name": "rule_id", "type": "TypeString", "computed": true } } }, { - "name": "bucket_name", + "name": "hard_quota", + "type": "TypeInt", + "description": "sets a maximum amount of storage (in bytes) available for a bucket", + "computed": true + }, + { + "name": "endpoint_type", "type": "TypeString", - "required": true + "description": "public or private", + "default_value": "public", + "options": "public,private,direct", + "optional": true }, { "name": "s3_endpoint_public", @@ -20964,35 +21007,46 @@ "computed": true }, { - "name": "allowed_ip", + "name": "abort_incomplete_multipart_upload_days", "type": "TypeList", - "description": "List of IPv4 or IPv6 addresses", "computed": true, "elem": { - "type": "TypeString" + "days_after_initiation": { + "name": "days_after_initiation", + "type": "TypeInt", + "description": "Specifies the number of days when the specific rule action takes effect.", + "computed": true + }, + "enable": { + "name": "enable", + "type": "TypeBool", + "description": "Enable or disable rule for a bucket", + "computed": true + }, + "prefix": { + "name": "prefix", + "type": "TypeString", + "description": "The rule applies to any objects with keys that match this prefix", + "computed": true + }, + "rule_id": { + "name": "rule_id", + "type": "TypeString", + "description": "Unique identifier for the rule. Rules allow you to set a specific time frame after which objects are deleted. Set Rule ID for cos bucket", + "computed": true + } } }, { - "name": "metrics_monitoring", + "name": "object_versioning", "type": "TypeList", + "description": "Protect objects from accidental deletion or overwrites. Versioning allows you to keep multiple versions of an object protecting from unintentional data loss.", "computed": true, "elem": { - "metrics_monitoring_crn": { - "name": "metrics_monitoring_crn", - "type": "TypeString", - "description": "Instance of IBM Cloud Monitoring that will receive the bucket metrics.", - "computed": true - }, - "request_metrics_enabled": { - "name": "request_metrics_enabled", - "type": "TypeBool", - "description": "Request metrics will be sent to the monitoring service.", - "computed": true - }, - "usage_metrics_enabled": { - "name": "usage_metrics_enabled", + "enable": { + "name": "enable", "type": "TypeBool", - "description": "Usage metrics will be sent to the monitoring service.", + "description": "Enable or suspend the versioning for objects in the bucket", "computed": true } } @@ -21035,52 +21089,42 @@ "optional": true }, { - "name": "activity_tracking", + "name": "cross_region_location", + "type": "TypeString", + "computed": true + }, + { + "name": "resource_instance_id", + "type": "TypeString", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:cloud-object-storage" + ] + }, + { + "name": "satellite_location_id", + "type": "TypeString", + "optional": true + }, + { + "name": "allowed_ip", "type": "TypeList", + "description": "List of IPv4 or IPv6 addresses", "computed": true, "elem": { - "activity_tracker_crn": { - "name": "activity_tracker_crn", - "type": "TypeString", - "description": "The instance of Activity Tracker that will receive object event data", - "computed": true - }, - "read_data_events": { - "name": "read_data_events", - "type": "TypeBool", - "description": "If set to true, all object read events will be sent to Activity Tracker.", - "computed": true - }, - "write_data_events": { - "name": "write_data_events", - "type": "TypeBool", - "description": "If set to true, all object write events will be sent to Activity Tracker.", - "computed": true - } + "type": "TypeString" } }, { - "name": "s3_endpoint_private", - "type": "TypeString", - "description": "Private endpoint for the COS bucket", - "computed": true - }, - { - "name": "expire_rule", + "name": "archive_rule", "type": "TypeList", - "description": "Enable configuration expire_rule to COS Bucket", + "description": "Enable configuration archive_rule (glacier/accelerated) to COS Bucket after a defined period of time", "computed": true, "elem": { - "date": { - "name": "date", - "type": "TypeString", - "description": "Specifies the date when the specific rule action takes effect.", - "computed": true - }, "days": { "name": "days", "type": "TypeInt", - "description": "Specifies the number of days when the specific rule action takes effect.", "computed": true }, "enable": { @@ -21089,30 +21133,49 @@ "description": "Enable or disable an archive rule for a bucket", "computed": true }, - "expired_object_delete_marker": { - "name": "expired_object_delete_marker", - "type": "TypeBool", - "description": "Expired object delete markers can be automatically cleaned up to improve performance in bucket. This cannot be used alongside version expiration.", - "computed": true - }, - "prefix": { - "name": "prefix", + "rule_id": { + "name": "rule_id", "type": "TypeString", - "description": "The rule applies to any objects with keys that match this prefix", "computed": true }, - "rule_id": { - "name": "rule_id", + "type": { + "name": "type", "type": "TypeString", "computed": true } } }, { - "name": "object_lock", - "type": "TypeBool", - "description": "Description", - "computed": true + "name": "retention_rule", + "type": "TypeList", + "description": "A retention policy is enabled at the IBM Cloud Object Storage bucket level. Minimum, maximum and default retention period are defined by this policy and apply to all objects in the bucket.", + "computed": true, + "elem": { + "default": { + "name": "default", + "type": "TypeInt", + "description": "If an object is stored in the bucket without specifying a custom retention period.", + "computed": true + }, + "maximum": { + "name": "maximum", + "type": "TypeInt", + "description": "Maximum duration of time an object can be kept unmodified in the bucket.", + "computed": true + }, + "minimum": { + "name": "minimum", + "type": "TypeInt", + "description": "Minimum duration of time an object must be kept unmodified in the bucket", + "computed": true + }, + "permanent": { + "name": "permanent", + "type": "TypeBool", + "description": "Enable or disable the permanent retention policy on the bucket", + "computed": true + } + } }, { "name": "object_lock_configuration", @@ -21162,67 +21225,10 @@ } }, { - "name": "region_location", - "type": "TypeString", - "computed": true - }, - { - "name": "resource_instance_id", - "type": "TypeString", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:cloud-object-storage" - ] - }, - { - "name": "cross_region_location", + "name": "website_endpoint", "type": "TypeString", "computed": true }, - { - "name": "replication_rule", - "type": "TypeList", - "description": "Replicate objects between buckets, replicate across source and destination. A container for replication rules can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.", - "computed": true, - "elem": { - "deletemarker_replication_status": { - "name": "deletemarker_replication_status", - "type": "TypeBool", - "description": "Indicates whether to replicate delete markers. It should be either Enable or Disable", - "computed": true - }, - "destination_bucket_crn": { - "name": "destination_bucket_crn", - "type": "TypeString", - "description": "The Cloud Resource Name (CRN) of the bucket where you want COS to store the results", - "computed": true - }, - "enable": { - "name": "enable", - "type": "TypeBool", - "description": "Enable or disable an replication rule for a bucket", - "computed": true - }, - "prefix": { - "name": "prefix", - "type": "TypeString", - "description": "The rule applies to any objects with keys that match this prefix", - "computed": true - }, - "priority": { - "name": "priority", - "type": "TypeInt", - "computed": true - }, - "rule_id": { - "name": "rule_id", - "type": "TypeString", - "description": "A unique identifier for the rule. The maximum value is 255 characters.", - "computed": true - } - } - }, { "name": "bucket_type", "type": "TypeString", @@ -21230,56 +21236,40 @@ "optional": true }, { - "name": "hard_quota", - "type": "TypeInt", - "description": "sets a maximum amount of storage (in bytes) available for a bucket", - "computed": true - }, - { - "name": "s3_endpoint_direct", + "name": "key_protect", "type": "TypeString", - "description": "Direct endpoint for the COS bucket", + "description": "CRN of the key you want to use data at rest encryption", "computed": true } ], "ibm_cos_bucket_object": [ { - "name": "body", + "name": "etag", "type": "TypeString", - "description": "COS object body", + "description": "COS object MD5 hexdigest", "computed": true }, - { - "name": "bucket_location", - "type": "TypeString", - "description": "COS bucket location", - "required": true - }, - { - "name": "key", - "type": "TypeString", - "description": "COS object key", - "required": true - }, { "name": "object_lock_legal_hold_status", "type": "TypeString", "computed": true }, { - "name": "object_lock_mode", + "name": "body", "type": "TypeString", + "description": "COS object body", "computed": true }, { - "name": "object_lock_retain_until_date", + "name": "bucket_crn", "type": "TypeString", - "computed": true + "description": "COS bucket CRN", + "required": true }, { - "name": "content_length", - "type": "TypeInt", - "description": "COS object content length", + "name": "content_type", + "type": "TypeString", + "description": "COS object content type", "computed": true }, { @@ -21290,9 +21280,8 @@ "optional": true }, { - "name": "etag", + "name": "version_id", "type": "TypeString", - "description": "COS object MD5 hexdigest", "computed": true }, { @@ -21301,31 +21290,42 @@ "computed": true }, { - "name": "website_redirect", + "name": "object_lock_retain_until_date", "type": "TypeString", "computed": true }, { - "name": "version_id", + "name": "bucket_location", "type": "TypeString", + "description": "COS bucket location", + "required": true + }, + { + "name": "content_length", + "type": "TypeInt", + "description": "COS object content length", "computed": true }, { - "name": "bucket_crn", + "name": "key", "type": "TypeString", - "description": "COS bucket CRN", + "description": "COS object key", "required": true }, { - "name": "content_type", + "name": "last_modified", "type": "TypeString", - "description": "COS object content type", + "description": "COS object last modified date", "computed": true }, { - "name": "last_modified", + "name": "object_lock_mode", + "type": "TypeString", + "computed": true + }, + { + "name": "website_redirect", "type": "TypeString", - "description": "COS object last modified date", "computed": true } ], @@ -21396,6 +21396,12 @@ } ], "ibm_database": [ + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", + "computed": true + }, { "name": "name", "type": "TypeString", @@ -21413,28 +21419,221 @@ "computed": true }, { - "name": "status", + "name": "version", "type": "TypeString", - "description": "The resource instance status", + "description": "The database version to provision if specified", "computed": true }, { - "name": "configuration_schema", - "type": "TypeString", - "description": "The configuration schema in JSON format", - "computed": true + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } }, { - "name": "resource_name", + "name": "users", + "type": "TypeSet", + "computed": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "User name", + "computed": true + }, + "password": { + "name": "password", + "type": "TypeString", + "description": "User password", + "secure": true, + "computed": true + } + } + }, + { + "name": "groups", + "type": "TypeList", + "computed": true, + "elem": { + "count": { + "name": "count", + "type": "TypeInt", + "description": "Count of scaling groups for the instance", + "computed": true + }, + "cpu": { + "name": "cpu", + "type": "TypeList", + "computed": true, + "elem": { + "allocation_count": { + "name": "allocation_count", + "type": "TypeInt", + "description": "The current cpu allocation count", + "computed": true + }, + "can_scale_down": { + "name": "can_scale_down", + "type": "TypeBool", + "description": "Can the number of CPUs be scaled down as well as up", + "computed": true + }, + "is_adjustable": { + "name": "is_adjustable", + "type": "TypeBool", + "description": "Are the number of CPUs adjustable", + "computed": true + }, + "minimum_count": { + "name": "minimum_count", + "type": "TypeInt", + "description": "The minimum number of cpus allowed", + "computed": true + }, + "step_size_count": { + "name": "step_size_count", + "type": "TypeInt", + "description": "The number of CPUs allowed to step up or down by", + "computed": true + }, + "units": { + "name": "units", + "type": "TypeString", + "description": "The .", + "computed": true + } + } + }, + "disk": { + "name": "disk", + "type": "TypeList", + "computed": true, + "elem": { + "allocation_mb": { + "name": "allocation_mb", + "type": "TypeInt", + "description": "The current disk allocation", + "computed": true + }, + "can_scale_down": { + "name": "can_scale_down", + "type": "TypeBool", + "description": "Can the disk size be scaled down as well as up", + "computed": true + }, + "is_adjustable": { + "name": "is_adjustable", + "type": "TypeBool", + "description": "Is the disk size adjustable", + "computed": true + }, + "minimum_mb": { + "name": "minimum_mb", + "type": "TypeInt", + "description": "The minimum disk size allowed", + "computed": true + }, + "step_size_mb": { + "name": "step_size_mb", + "type": "TypeInt", + "description": "The step size disk increases or decreases in", + "computed": true + }, + "units": { + "name": "units", + "type": "TypeString", + "description": "The units disk is allocated in", + "computed": true + } + } + }, + "group_id": { + "name": "group_id", + "type": "TypeString", + "description": "Scaling group name", + "computed": true + }, + "memory": { + "name": "memory", + "type": "TypeList", + "computed": true, + "elem": { + "allocation_mb": { + "name": "allocation_mb", + "type": "TypeInt", + "description": "The current memory allocation for a group instance", + "computed": true + }, + "can_scale_down": { + "name": "can_scale_down", + "type": "TypeBool", + "description": "Can memory scale down as well as up.", + "computed": true + }, + "is_adjustable": { + "name": "is_adjustable", + "type": "TypeBool", + "description": "Is the memory size adjustable.", + "computed": true + }, + "minimum_mb": { + "name": "minimum_mb", + "type": "TypeInt", + "description": "The minimum memory size for a group instance", + "computed": true + }, + "step_size_mb": { + "name": "step_size_mb", + "type": "TypeInt", + "description": "The step size memory increases or decreases in.", + "computed": true + }, + "units": { + "name": "units", + "type": "TypeString", + "description": "The units memory is allocated in.", + "computed": true + } + } + } + } + }, + { + "name": "adminpassword", "type": "TypeString", - "description": "The name of the resource", + "description": "The admin user id for the instance", + "secure": true, "computed": true }, { - "name": "resource_crn", + "name": "platform_options", + "type": "TypeSet", + "description": "Platform-specific options for this deployment.r", + "computed": true, + "elem": { + "backup_encryption_key_crn": { + "name": "backup_encryption_key_crn", + "type": "TypeString", + "description": "Backup encryption key crn", + "computed": true + }, + "disk_encryption_key_crn": { + "name": "disk_encryption_key_crn", + "type": "TypeString", + "description": "Disk encryption key crn", + "computed": true + } + } + }, + { + "name": "location", "type": "TypeString", - "description": "The crn of the resource", - "computed": true + "description": "The location or the region in which the Database instance exists", + "cloud_data_type": "region", + "optional": true }, { "name": "guid", @@ -21443,46 +21642,69 @@ "computed": true }, { - "name": "service", + "name": "adminuser", "type": "TypeString", - "description": "The name of the Cloud Database service", - "optional": true + "description": "The admin user id for the instance", + "computed": true }, { - "name": "adminuser", + "name": "allowlist", + "type": "TypeSet", + "computed": true, + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "Allowlist IP address in CIDR notation", + "computed": true + }, + "description": { + "name": "description", + "type": "TypeString", + "description": "Unique allowlist description", + "computed": true + } + } + }, + { + "name": "resource_name", "type": "TypeString", - "description": "The admin user id for the instance", + "description": "The name of the resource", "computed": true }, { - "name": "adminpassword", + "name": "resource_crn", "type": "TypeString", - "description": "The admin user id for the instance", - "secure": true, + "description": "The crn of the resource", "computed": true }, { - "name": "members_disk_allocation_mb", - "type": "TypeInt", - "description": "Disk allocation required for cluster", - "computed": true, - "deprecated": "This field is deprecated please use groups" + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true }, { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", + "name": "resource_group_id", + "type": "TypeString", + "description": "The id of the resource group in which the Database instance is present", + "cloud_data_type": "resource_group", "optional": true, - "elem": { - "type": "TypeString" - } + "cloud_data_range": [ + "resolved_to:id" + ] }, { - "name": "members_memory_allocation_mb", - "type": "TypeInt", - "description": "Memory allocation required for cluster", - "computed": true, - "deprecated": "This field is deprecated please use groups" + "name": "service", + "type": "TypeString", + "description": "The name of the Cloud Database service", + "optional": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The resource instance status", + "computed": true }, { "name": "auto_scaling", @@ -21662,255 +21884,49 @@ } }, { - "name": "resource_status", + "name": "configuration_schema", "type": "TypeString", - "description": "The status of the resource", + "description": "The configuration schema in JSON format", "computed": true }, { - "name": "resource_group_name", + "name": "resource_status", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "The status of the resource", "computed": true - }, + } + ], + "ibm_database_backup": [ { - "name": "resource_controller_url", + "name": "download_link", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", + "description": "URI which is currently available for file downloading.", "computed": true }, { - "name": "groups", - "type": "TypeList", - "computed": true, - "elem": { - "count": { - "name": "count", - "type": "TypeInt", - "description": "Count of scaling groups for the instance", - "computed": true - }, - "cpu": { - "name": "cpu", - "type": "TypeList", - "computed": true, - "elem": { - "allocation_count": { - "name": "allocation_count", - "type": "TypeInt", - "description": "The current cpu allocation count", - "computed": true - }, - "can_scale_down": { - "name": "can_scale_down", - "type": "TypeBool", - "description": "Can the number of CPUs be scaled down as well as up", - "computed": true - }, - "is_adjustable": { - "name": "is_adjustable", - "type": "TypeBool", - "description": "Are the number of CPUs adjustable", - "computed": true - }, - "minimum_count": { - "name": "minimum_count", - "type": "TypeInt", - "description": "The minimum number of cpus allowed", - "computed": true - }, - "step_size_count": { - "name": "step_size_count", - "type": "TypeInt", - "description": "The number of CPUs allowed to step up or down by", - "computed": true - }, - "units": { - "name": "units", - "type": "TypeString", - "description": "The .", - "computed": true - } - } - }, - "disk": { - "name": "disk", - "type": "TypeList", - "computed": true, - "elem": { - "allocation_mb": { - "name": "allocation_mb", - "type": "TypeInt", - "description": "The current disk allocation", - "computed": true - }, - "can_scale_down": { - "name": "can_scale_down", - "type": "TypeBool", - "description": "Can the disk size be scaled down as well as up", - "computed": true - }, - "is_adjustable": { - "name": "is_adjustable", - "type": "TypeBool", - "description": "Is the disk size adjustable", - "computed": true - }, - "minimum_mb": { - "name": "minimum_mb", - "type": "TypeInt", - "description": "The minimum disk size allowed", - "computed": true - }, - "step_size_mb": { - "name": "step_size_mb", - "type": "TypeInt", - "description": "The step size disk increases or decreases in", - "computed": true - }, - "units": { - "name": "units", - "type": "TypeString", - "description": "The units disk is allocated in", - "computed": true - } - } - }, - "group_id": { - "name": "group_id", - "type": "TypeString", - "description": "Scaling group name", - "computed": true - }, - "memory": { - "name": "memory", - "type": "TypeList", - "computed": true, - "elem": { - "allocation_mb": { - "name": "allocation_mb", - "type": "TypeInt", - "description": "The current memory allocation for a group instance", - "computed": true - }, - "can_scale_down": { - "name": "can_scale_down", - "type": "TypeBool", - "description": "Can memory scale down as well as up.", - "computed": true - }, - "is_adjustable": { - "name": "is_adjustable", - "type": "TypeBool", - "description": "Is the memory size adjustable.", - "computed": true - }, - "minimum_mb": { - "name": "minimum_mb", - "type": "TypeInt", - "description": "The minimum memory size for a group instance", - "computed": true - }, - "step_size_mb": { - "name": "step_size_mb", - "type": "TypeInt", - "description": "The step size memory increases or decreases in.", - "computed": true - }, - "units": { - "name": "units", - "type": "TypeString", - "description": "The units memory is allocated in.", - "computed": true - } - } - } - } - }, - { - "name": "resource_group_id", + "name": "created_at", "type": "TypeString", - "description": "The id of the resource group in which the Database instance is present", - "cloud_data_type": "resource_group", - "optional": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "description": "Date and time when this backup was created.", + "computed": true }, { - "name": "location", + "name": "backup_id", "type": "TypeString", - "description": "The location or the region in which the Database instance exists", - "cloud_data_type": "region", - "optional": true + "description": "Backup ID.", + "required": true }, { - "name": "version", + "name": "deployment_id", "type": "TypeString", - "description": "The database version to provision if specified", + "description": "ID of the deployment this backup relates to.", "computed": true }, { - "name": "platform_options", - "type": "TypeSet", - "description": "Platform-specific options for this deployment.r", - "computed": true, - "elem": { - "backup_encryption_key_crn": { - "name": "backup_encryption_key_crn", - "type": "TypeString", - "description": "Backup encryption key crn", - "computed": true - }, - "disk_encryption_key_crn": { - "name": "disk_encryption_key_crn", - "type": "TypeString", - "description": "Disk encryption key crn", - "computed": true - } - } - }, - { - "name": "users", - "type": "TypeSet", - "computed": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "User name", - "computed": true - }, - "password": { - "name": "password", - "type": "TypeString", - "description": "User password", - "secure": true, - "computed": true - } - } + "name": "type", + "type": "TypeString", + "description": "The type of backup.", + "computed": true }, - { - "name": "allowlist", - "type": "TypeSet", - "computed": true, - "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "Allowlist IP address in CIDR notation", - "computed": true - }, - "description": { - "name": "description", - "type": "TypeString", - "description": "Unique allowlist description", - "computed": true - } - } - } - ], - "ibm_database_backup": [ { "name": "status", "type": "TypeString", @@ -21928,36 +21944,6 @@ "type": "TypeBool", "description": "Can this backup be used to restore an instance?.", "computed": true - }, - { - "name": "download_link", - "type": "TypeString", - "description": "URI which is currently available for file downloading.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "Date and time when this backup was created.", - "computed": true - }, - { - "name": "backup_id", - "type": "TypeString", - "description": "Backup ID.", - "required": true - }, - { - "name": "deployment_id", - "type": "TypeString", - "description": "ID of the deployment this backup relates to.", - "computed": true - }, - { - "name": "type", - "type": "TypeString", - "description": "The type of backup.", - "computed": true } ], "ibm_database_backups": [ @@ -22030,20 +22016,7 @@ ], "ibm_database_connection": [ { - "name": "endpoint_type", - "type": "TypeString", - "description": "Endpoint Type. The endpoint must be enabled on the deployment before its connection information can be fetched.", - "required": true, - "options": "public, private, public-and-private" - }, - { - "name": "certificate_root", - "type": "TypeString", - "description": "Optional certificate root path to prepend certificate names. Certificates would be stored in this directory for use by other commands.", - "optional": true - }, - { - "name": "postgres", + "name": "stomp_ssl", "type": "TypeList", "computed": true, "elem": { @@ -22106,12 +22079,6 @@ "type": "TypeString" } }, - "database": { - "name": "database", - "type": "TypeString", - "description": "Name of the database to use in the URI connection.", - "computed": true - }, "hosts": { "name": "hosts", "type": "TypeList", @@ -22167,7 +22134,7 @@ } }, { - "name": "mysql", + "name": "bi_connector", "type": "TypeList", "computed": true, "elem": { @@ -22230,12 +22197,6 @@ "type": "TypeString" } }, - "database": { - "name": "database", - "type": "TypeString", - "description": "Name of the database to use in the URI connection.", - "computed": true - }, "hosts": { "name": "hosts", "type": "TypeList", @@ -22291,7 +22252,7 @@ } }, { - "name": "emp", + "name": "mysql", "type": "TypeList", "computed": true, "elem": { @@ -22354,6 +22315,12 @@ "type": "TypeString" } }, + "database": { + "name": "database", + "type": "TypeString", + "description": "Name of the database to use in the URI connection.", + "computed": true + }, "hosts": { "name": "hosts", "type": "TypeList", @@ -22409,17 +22376,7 @@ } }, { - "name": "deployment_id", - "type": "TypeString", - "description": "Deployment ID.", - "cloud_data_type": "cloud-database", - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] - }, - { - "name": "mqtts", + "name": "rediss", "type": "TypeList", "computed": true, "elem": { @@ -22482,6 +22439,12 @@ "type": "TypeString" } }, + "database": { + "name": "database", + "type": "TypeInt", + "description": "Number of the database to use in the URI connection.", + "computed": true + }, "hosts": { "name": "hosts", "type": "TypeList", @@ -22537,7 +22500,7 @@ } }, { - "name": "analytics", + "name": "amqps", "type": "TypeList", "computed": true, "elem": { @@ -22655,7 +22618,7 @@ } }, { - "name": "ops_manager", + "name": "mqtts", "type": "TypeList", "computed": true, "elem": { @@ -22773,7 +22736,7 @@ } }, { - "name": "secure", + "name": "grpc", "type": "TypeList", "computed": true, "elem": { @@ -22803,15 +22766,21 @@ } } }, - "bundle": { - "name": "bundle", + "browser_accessible": { + "name": "browser_accessible", + "type": "TypeBool", + "description": "Indicates the address is accessible by browser.", + "computed": true + }, + "certificate": { + "name": "certificate", "type": "TypeList", "computed": true, "elem": { - "bundle_base64": { - "name": "bundle_base64", + "certificate_base64": { + "name": "certificate_base64", "type": "TypeString", - "description": "Base64 encoded version of the certificate bundle.", + "description": "Base64 encoded version of the certificate.", "computed": true }, "name": { @@ -22822,6 +22791,14 @@ } } }, + "composed": { + "name": "composed", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } + }, "hosts": { "name": "hosts", "type": "TypeList", @@ -22840,78 +22817,34 @@ "computed": true } } - } - } - }, - { - "name": "user_type", - "type": "TypeString", - "description": "User type.", - "required": true - }, - { - "name": "user_id", - "type": "TypeString", - "description": "User ID.", - "required": true - }, - { - "name": "cli", - "type": "TypeList", - "description": "CLI Connection.", - "computed": true, - "elem": { - "arguments": { - "name": "arguments", - "type": "TypeList", - "description": "Sets of arguments to call the executable with. The outer array corresponds to a possible way to call the CLI; the inner array is the set of arguments to use with that call.", - "computed": true, - "elem": { - "type": "TypeString" - } }, - "bin": { - "name": "bin", + "path": { + "name": "path", "type": "TypeString", - "description": "The name of the executable the CLI should run.", + "description": "Path for URI connection.", "computed": true }, - "certificate": { - "name": "certificate", - "type": "TypeList", - "computed": true, - "elem": { - "certificate_base64": { - "name": "certificate_base64", - "type": "TypeString", - "description": "Base64 encoded version of the certificate.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name associated with the certificate.", - "computed": true - } - } - }, - "composed": { - "name": "composed", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "environment": { - "name": "environment", + "query_options": { + "name": "query_options", "type": "TypeMap", - "description": "A map of environment variables for a CLI connection.", + "description": "Query options to add to the URI connection.", "computed": true, "elem": { "type": "TypeString" } }, + "scheme": { + "name": "scheme", + "type": "TypeString", + "description": "Scheme/protocol for URI connection.", + "computed": true + }, + "ssl": { + "name": "ssl", + "type": "TypeBool", + "description": "Indicates ssl is required for the connection.", + "computed": true + }, "type": { "name": "type", "type": "TypeString", @@ -22921,7 +22854,7 @@ } }, { - "name": "https", + "name": "mongodb", "type": "TypeList", "computed": true, "elem": { @@ -22984,6 +22917,12 @@ "type": "TypeString" } }, + "database": { + "name": "database", + "type": "TypeString", + "description": "Name of the database to use in the URI connection.", + "computed": true + }, "hosts": { "name": "hosts", "type": "TypeList", @@ -23018,6 +22957,12 @@ "type": "TypeString" } }, + "replica_set": { + "name": "replica_set", + "type": "TypeString", + "description": "Name of the replica set to use in the URI connection.", + "computed": true + }, "scheme": { "name": "scheme", "type": "TypeString", @@ -23039,7 +22984,7 @@ } }, { - "name": "amqps", + "name": "secure", "type": "TypeList", "computed": true, "elem": { @@ -23069,21 +23014,15 @@ } } }, - "browser_accessible": { - "name": "browser_accessible", - "type": "TypeBool", - "description": "Indicates the address is accessible by browser.", - "computed": true - }, - "certificate": { - "name": "certificate", + "bundle": { + "name": "bundle", "type": "TypeList", "computed": true, "elem": { - "certificate_base64": { - "name": "certificate_base64", + "bundle_base64": { + "name": "bundle_base64", "type": "TypeString", - "description": "Base64 encoded version of the certificate.", + "description": "Base64 encoded version of the certificate bundle.", "computed": true }, "name": { @@ -23094,14 +23033,6 @@ } } }, - "composed": { - "name": "composed", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } - }, "hosts": { "name": "hosts", "type": "TypeList", @@ -23120,44 +23051,11 @@ "computed": true } } - }, - "path": { - "name": "path", - "type": "TypeString", - "description": "Path for URI connection.", - "computed": true - }, - "query_options": { - "name": "query_options", - "type": "TypeMap", - "description": "Query options to add to the URI connection.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "scheme": { - "name": "scheme", - "type": "TypeString", - "description": "Scheme/protocol for URI connection.", - "computed": true - }, - "ssl": { - "name": "ssl", - "type": "TypeBool", - "description": "Indicates ssl is required for the connection.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of connection being described.", - "computed": true } } }, { - "name": "grpc", + "name": "emp", "type": "TypeList", "computed": true, "elem": { @@ -23275,7 +23173,20 @@ } }, { - "name": "rediss", + "name": "user_type", + "type": "TypeString", + "description": "User type.", + "required": true + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "Endpoint Type. The endpoint must be enabled on the deployment before its connection information can be fetched.", + "required": true, + "options": "public, private, public-and-private" + }, + { + "name": "postgres", "type": "TypeList", "computed": true, "elem": { @@ -23340,8 +23251,8 @@ }, "database": { "name": "database", - "type": "TypeInt", - "description": "Number of the database to use in the URI connection.", + "type": "TypeString", + "description": "Name of the database to use in the URI connection.", "computed": true }, "hosts": { @@ -23399,7 +23310,88 @@ } }, { - "name": "stomp_ssl", + "name": "deployment_id", + "type": "TypeString", + "description": "Deployment ID.", + "cloud_data_type": "cloud-database", + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] + }, + { + "name": "certificate_root", + "type": "TypeString", + "description": "Optional certificate root path to prepend certificate names. Certificates would be stored in this directory for use by other commands.", + "optional": true + }, + { + "name": "cli", + "type": "TypeList", + "description": "CLI Connection.", + "computed": true, + "elem": { + "arguments": { + "name": "arguments", + "type": "TypeList", + "description": "Sets of arguments to call the executable with. The outer array corresponds to a possible way to call the CLI; the inner array is the set of arguments to use with that call.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "bin": { + "name": "bin", + "type": "TypeString", + "description": "The name of the executable the CLI should run.", + "computed": true + }, + "certificate": { + "name": "certificate", + "type": "TypeList", + "computed": true, + "elem": { + "certificate_base64": { + "name": "certificate_base64", + "type": "TypeString", + "description": "Base64 encoded version of the certificate.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name associated with the certificate.", + "computed": true + } + } + }, + "composed": { + "name": "composed", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "environment": { + "name": "environment", + "type": "TypeMap", + "description": "A map of environment variables for a CLI connection.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of connection being described.", + "computed": true + } + } + }, + { + "name": "https", "type": "TypeList", "computed": true, "elem": { @@ -23517,7 +23509,7 @@ } }, { - "name": "mongodb", + "name": "analytics", "type": "TypeList", "computed": true, "elem": { @@ -23580,12 +23572,6 @@ "type": "TypeString" } }, - "database": { - "name": "database", - "type": "TypeString", - "description": "Name of the database to use in the URI connection.", - "computed": true - }, "hosts": { "name": "hosts", "type": "TypeList", @@ -23620,12 +23606,6 @@ "type": "TypeString" } }, - "replica_set": { - "name": "replica_set", - "type": "TypeString", - "description": "Name of the replica set to use in the URI connection.", - "computed": true - }, "scheme": { "name": "scheme", "type": "TypeString", @@ -23647,7 +23627,7 @@ } }, { - "name": "bi_connector", + "name": "ops_manager", "type": "TypeList", "computed": true, "elem": { @@ -23763,6 +23743,12 @@ "computed": true } } + }, + { + "name": "user_id", + "type": "TypeString", + "description": "User ID.", + "required": true } ], "ibm_database_point_in_time_recovery": [ @@ -23811,39 +23797,39 @@ ], "ibm_database_task": [ { - "name": "task_id", + "name": "deployment_id", "type": "TypeString", - "description": "Task ID.", - "required": true + "description": "ID of the deployment the task is being performed on.", + "computed": true }, { - "name": "description", - "type": "TypeString", - "description": "Human-readable description of the task.", + "name": "progress_percent", + "type": "TypeInt", + "description": "Indicator as percentage of progress of the task.", "computed": true }, { - "name": "status", + "name": "created_at", "type": "TypeString", - "description": "The status of the task.", + "description": "Date and time when the task was created.", "computed": true }, { - "name": "deployment_id", + "name": "task_id", "type": "TypeString", - "description": "ID of the deployment the task is being performed on.", - "computed": true + "description": "Task ID.", + "required": true }, { - "name": "progress_percent", - "type": "TypeInt", - "description": "Indicator as percentage of progress of the task.", + "name": "description", + "type": "TypeString", + "description": "Human-readable description of the task.", "computed": true }, { - "name": "created_at", + "name": "status", "type": "TypeString", - "description": "Date and time when the task was created.", + "description": "The status of the task.", "computed": true } ], @@ -23904,16 +23890,10 @@ ], "ibm_dl_export_route_filter": [ { - "name": "prefix", - "type": "TypeString", - "description": "IP prefix representing an address and mask length of the prefix-set", - "computed": true - }, - { - "name": "updated_at", + "name": "ex_filter_id", "type": "TypeString", - "description": "The date and time of the export route filter was last updated", - "computed": true + "description": "Export route Filter identifier", + "required": true }, { "name": "action", @@ -23928,15 +23908,15 @@ "computed": true }, { - "name": "ge", + "name": "le", "type": "TypeInt", - "description": "The minimum matching length of the prefix-set", + "description": "The maximum matching length of the prefix-set", "computed": true }, { - "name": "le", - "type": "TypeInt", - "description": "The maximum matching length of the prefix-set", + "name": "updated_at", + "type": "TypeString", + "description": "The date and time of the export route filter was last updated", "computed": true }, { @@ -23946,15 +23926,21 @@ "required": true }, { - "name": "ex_filter_id", + "name": "before", "type": "TypeString", - "description": "Export route Filter identifier", - "required": true + "description": "Identifier of the next route filter to be considered", + "computed": true }, { - "name": "before", + "name": "ge", + "type": "TypeInt", + "description": "The minimum matching length of the prefix-set", + "computed": true + }, + { + "name": "prefix", "type": "TypeString", - "description": "Identifier of the next route filter to be considered", + "description": "IP prefix representing an address and mask length of the prefix-set", "computed": true } ], @@ -24024,165 +24010,6 @@ } ], "ibm_dl_gateway": [ - { - "name": "bfd_status_updated_at", - "type": "TypeString", - "description": "BFD Status", - "computed": true - }, - { - "name": "bgp_asn", - "type": "TypeInt", - "description": "BGP ASN", - "computed": true - }, - { - "name": "default_import_route_filter", - "type": "TypeString", - "description": "The default directional route filter action that applies to routes that do not match any directional route filters", - "computed": true - }, - { - "name": "bgp_base_cidr", - "type": "TypeString", - "description": "BGP base CIDR", - "computed": true - }, - { - "name": "bgp_ibm_cidr", - "type": "TypeString", - "description": "BGP IBM CIDR", - "computed": true - }, - { - "name": "global", - "type": "TypeBool", - "description": "Gateways with global routing (true) can connect to networks outside their associated region", - "computed": true - }, - { - "name": "bfd_multiplier", - "type": "TypeInt", - "description": "BFD Multiplier", - "computed": true - }, - { - "name": "location_name", - "type": "TypeString", - "description": "Gateway location", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this gateway", - "required": true - }, - { - "name": "gateway_vcs", - "type": "TypeList", - "description": "Collection of direct link gateway virtual connections", - "computed": true, - "elem": { - "created_at": { - "name": "created_at", - "type": "TypeString", - "description": "The date and time resource was created", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this virtual connection", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this virtual connection. Virtualconnection names are unique within a gateway. This is the name of thevirtual connection itself, the network being connected may have its ownname attribute", - "computed": true - }, - "network_account": { - "name": "network_account", - "type": "TypeString", - "description": "For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network.", - "computed": true - }, - "network_id": { - "name": "network_id", - "type": "TypeString", - "description": "Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections.", - "computed": true - }, - "status": { - "name": "status", - "type": "TypeString", - "description": "Status of the virtual connection.Possible values: [pending,attached,approval_pending,rejected,expired,deleting,detached_by_network_pending,detached_by_network]", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The type of virtual connection. (classic,vpc)", - "computed": true - } - } - }, - { - "name": "bfd_interval", - "type": "TypeInt", - "description": "BFD Interval", - "computed": true - }, - { - "name": "bfd_status", - "type": "TypeString", - "description": "BFD Status", - "computed": true - }, - { - "name": "change_request", - "type": "TypeString", - "description": "Changes pending approval for provider managed Direct Link Connect gateways", - "computed": true - }, - { - "name": "metered", - "type": "TypeBool", - "description": "Metered billing option", - "computed": true - }, - { - "name": "operational_status", - "type": "TypeString", - "description": "Gateway operational status", - "computed": true - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "Gateway resource group", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time resource was created", - "computed": true - }, - { - "name": "speed_mbps", - "type": "TypeInt", - "description": "Gateway speed in megabits per second", - "computed": true - }, - { - "name": "vlan", - "type": "TypeInt", - "description": "VLAN allocated for this gateway", - "computed": true - }, { "name": "as_prepends", "type": "TypeList", @@ -24237,34 +24064,27 @@ } }, { - "name": "default_export_route_filter", + "name": "authentication_key", "type": "TypeString", - "description": "The default directional route filter action that applies to routes that do not match any directional route filters", + "description": "BGP MD5 authentication key", "computed": true }, { - "name": "bgp_cer_cidr", + "name": "bgp_status", "type": "TypeString", - "description": "BGP customer edge router CIDR", - "computed": true - }, - { - "name": "bgp_ibm_asn", - "type": "TypeInt", - "description": "IBM BGP ASN", + "description": "Gateway BGP status", "computed": true }, { - "name": "bgp_status_updated_at", + "name": "connection_mode", "type": "TypeString", - "description": "Date and time BGP status was updated", - "optional": true, + "description": "Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection", "computed": true }, { - "name": "completion_notice_reject_reason", + "name": "type", "type": "TypeString", - "description": "Reason for completion notice rejection", + "description": "Gateway type", "computed": true }, { @@ -24274,27 +24094,33 @@ "computed": true }, { - "name": "link_status", + "name": "metered", + "type": "TypeBool", + "description": "Metered billing option", + "computed": true + }, + { + "name": "operational_status", "type": "TypeString", - "description": "Gateway link status", + "description": "Gateway operational status", "computed": true }, { - "name": "location_display_name", + "name": "port", "type": "TypeString", - "description": "Gateway location long name", + "description": "Gateway port", "computed": true }, { - "name": "provider_api_managed", - "type": "TypeBool", - "description": "Indicates whether gateway was created through a provider portal", + "name": "bfd_status_updated_at", + "type": "TypeString", + "description": "BFD Status", "computed": true }, { - "name": "bgp_status", + "name": "bgp_ibm_cidr", "type": "TypeString", - "description": "Gateway BGP status", + "description": "BGP IBM CIDR", "computed": true }, { @@ -24378,28 +24204,35 @@ } }, { - "name": "type", + "name": "change_request", "type": "TypeString", - "description": "Gateway type", + "description": "Changes pending approval for provider managed Direct Link Connect gateways", "computed": true }, { - "name": "authentication_key", + "name": "crn", "type": "TypeString", - "description": "BGP MD5 authentication key", + "description": "The CRN (Cloud Resource Name) of this gateway", + "cloud_data_type": "crn", "computed": true }, { - "name": "connection_mode", + "name": "bgp_status_updated_at", "type": "TypeString", - "description": "Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection", + "description": "Date and time BGP status was updated", + "optional": true, "computed": true }, { - "name": "crn", + "name": "link_status", "type": "TypeString", - "description": "The CRN (Cloud Resource Name) of this gateway", - "cloud_data_type": "crn", + "description": "Gateway link status", + "computed": true + }, + { + "name": "default_import_route_filter", + "type": "TypeString", + "description": "The default directional route filter action that applies to routes that do not match any directional route filters", "computed": true }, { @@ -24410,9 +24243,162 @@ "computed": true }, { - "name": "port", + "name": "location_display_name", "type": "TypeString", - "description": "Gateway port", + "description": "Gateway location long name", + "computed": true + }, + { + "name": "location_name", + "type": "TypeString", + "description": "Gateway location", + "computed": true + }, + { + "name": "provider_api_managed", + "type": "TypeBool", + "description": "Indicates whether gateway was created through a provider portal", + "computed": true + }, + { + "name": "speed_mbps", + "type": "TypeInt", + "description": "Gateway speed in megabits per second", + "computed": true + }, + { + "name": "bgp_base_cidr", + "type": "TypeString", + "description": "BGP base CIDR", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time resource was created", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this gateway", + "required": true + }, + { + "name": "default_export_route_filter", + "type": "TypeString", + "description": "The default directional route filter action that applies to routes that do not match any directional route filters", + "computed": true + }, + { + "name": "bfd_interval", + "type": "TypeInt", + "description": "BFD Interval", + "computed": true + }, + { + "name": "bgp_asn", + "type": "TypeInt", + "description": "BGP ASN", + "computed": true + }, + { + "name": "completion_notice_reject_reason", + "type": "TypeString", + "description": "Reason for completion notice rejection", + "computed": true + }, + { + "name": "vlan", + "type": "TypeInt", + "description": "VLAN allocated for this gateway", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Gateway resource group", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "gateway_vcs", + "type": "TypeList", + "description": "Collection of direct link gateway virtual connections", + "computed": true, + "elem": { + "created_at": { + "name": "created_at", + "type": "TypeString", + "description": "The date and time resource was created", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this virtual connection", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this virtual connection. Virtualconnection names are unique within a gateway. This is the name of thevirtual connection itself, the network being connected may have its ownname attribute", + "computed": true + }, + "network_account": { + "name": "network_account", + "type": "TypeString", + "description": "For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network.", + "computed": true + }, + "network_id": { + "name": "network_id", + "type": "TypeString", + "description": "Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections.", + "computed": true + }, + "status": { + "name": "status", + "type": "TypeString", + "description": "Status of the virtual connection.Possible values: [pending,attached,approval_pending,rejected,expired,deleting,detached_by_network_pending,detached_by_network]", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The type of virtual connection. (classic,vpc)", + "computed": true + } + } + }, + { + "name": "bfd_multiplier", + "type": "TypeInt", + "description": "BFD Multiplier", + "computed": true + }, + { + "name": "bfd_status", + "type": "TypeString", + "description": "BFD Status", + "computed": true + }, + { + "name": "bgp_cer_cidr", + "type": "TypeString", + "description": "BGP customer edge router CIDR", + "computed": true + }, + { + "name": "bgp_ibm_asn", + "type": "TypeInt", + "description": "IBM BGP ASN", + "computed": true + }, + { + "name": "global", + "type": "TypeBool", + "description": "Gateways with global routing (true) can connect to networks outside their associated region", "computed": true } ], @@ -24773,21 +24759,9 @@ ], "ibm_dl_import_route_filter": [ { - "name": "prefix", - "type": "TypeString", - "description": "IP prefix representing an address and mask length of the prefix-set", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "The date and time of the import route filter was last updated", - "computed": true - }, - { - "name": "gateway", + "name": "im_filter_id", "type": "TypeString", - "description": "The Direct Link gateway identifier", + "description": "Import route Filter identifier", "immutable": true, "required": true }, @@ -24810,9 +24784,9 @@ "computed": true }, { - "name": "im_filter_id", + "name": "gateway", "type": "TypeString", - "description": "Import route Filter identifier", + "description": "The Direct Link gateway identifier", "immutable": true, "required": true }, @@ -24827,6 +24801,18 @@ "type": "TypeInt", "description": "The minimum matching length of the prefix-set", "computed": true + }, + { + "name": "prefix", + "type": "TypeString", + "description": "IP prefix representing an address and mask length of the prefix-set", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The date and time of the import route filter was last updated", + "computed": true } ], "ibm_dl_import_route_filters": [ @@ -25021,15 +25007,6 @@ } ], "ibm_dl_port": [ - { - "name": "supported_link_speeds", - "type": "TypeList", - "description": "Port's supported speeds in megabits per second", - "computed": true, - "elem": { - "type": "TypeInt" - } - }, { "name": "port_id", "type": "TypeString", @@ -25065,6 +25042,15 @@ "type": "TypeString", "description": "Port's provider name", "computed": true + }, + { + "name": "supported_link_speeds", + "type": "TypeList", + "description": "Port's supported speeds in megabits per second", + "computed": true, + "elem": { + "type": "TypeInt" + } } ], "ibm_dl_ports": [ @@ -25311,74 +25297,9 @@ } }, { - "name": "virtual_connection_routes", - "type": "TypeList", - "description": "Virtual Connection Routes", - "computed": true, - "elem": { - "routes": { - "name": "routes", - "type": "TypeList", - "description": "Virtual connection routes", - "computed": true, - "elem": { - "active": { - "name": "active", - "type": "TypeBool", - "description": "Indicates whether the route is the preferred path of the prefix", - "computed": true - }, - "local_preference": { - "name": "local_preference", - "type": "TypeString", - "description": "The local preference of the route. This attribute can manipulate the chosen path on routes", - "computed": true - }, - "prefix": { - "name": "prefix", - "type": "TypeString", - "description": "Prefix for virtual connection routes", - "computed": true - } - } - }, - "virtual_connection_id": { - "name": "virtual_connection_id", - "type": "TypeString", - "description": "Virtual connection ID", - "computed": true - }, - "virtual_connection_name": { - "name": "virtual_connection_name", - "type": "TypeString", - "description": "Virtual connection name", - "computed": true - }, - "virtual_connection_type": { - "name": "virtual_connection_type", - "type": "TypeString", - "description": "Virtual connection type", - "computed": true - } - } - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "The date and time resource was created", - "computed": true - }, - { - "name": "route_report", - "type": "TypeString", - "description": "Id of the route report", - "immutable": true, - "required": true - }, - { - "name": "advertised_routes", + "name": "on_prem_routes", "type": "TypeList", - "description": "List of connection prefixes advertised to the on-prem network", + "description": "List of onprem routes", "computed": true, "elem": { "as_path": { @@ -25387,10 +25308,16 @@ "description": "The BGP AS path of the route", "computed": true }, + "next_hop": { + "name": "next_hop", + "type": "TypeString", + "description": "Next Hop address", + "computed": true + }, "prefix": { "name": "prefix", "type": "TypeString", - "description": "Prefix for gateway routes", + "description": "Prefix for onprem routes", "computed": true } } @@ -25430,9 +25357,9 @@ } }, { - "name": "status", + "name": "updated_at", "type": "TypeString", - "description": "Route report status", + "description": "The date and time resource was created", "computed": true }, { @@ -25449,9 +25376,16 @@ "required": true }, { - "name": "on_prem_routes", + "name": "route_report", + "type": "TypeString", + "description": "Id of the route report", + "immutable": true, + "required": true + }, + { + "name": "advertised_routes", "type": "TypeList", - "description": "List of onprem routes", + "description": "List of connection prefixes advertised to the on-prem network", "computed": true, "elem": { "as_path": { @@ -25460,22 +25394,81 @@ "description": "The BGP AS path of the route", "computed": true }, - "next_hop": { - "name": "next_hop", + "prefix": { + "name": "prefix", "type": "TypeString", - "description": "Next Hop address", + "description": "Prefix for gateway routes", + "computed": true + } + } + }, + { + "name": "virtual_connection_routes", + "type": "TypeList", + "description": "Virtual Connection Routes", + "computed": true, + "elem": { + "routes": { + "name": "routes", + "type": "TypeList", + "description": "Virtual connection routes", + "computed": true, + "elem": { + "active": { + "name": "active", + "type": "TypeBool", + "description": "Indicates whether the route is the preferred path of the prefix", + "computed": true + }, + "local_preference": { + "name": "local_preference", + "type": "TypeString", + "description": "The local preference of the route. This attribute can manipulate the chosen path on routes", + "computed": true + }, + "prefix": { + "name": "prefix", + "type": "TypeString", + "description": "Prefix for virtual connection routes", + "computed": true + } + } + }, + "virtual_connection_id": { + "name": "virtual_connection_id", + "type": "TypeString", + "description": "Virtual connection ID", "computed": true }, - "prefix": { - "name": "prefix", + "virtual_connection_name": { + "name": "virtual_connection_name", "type": "TypeString", - "description": "Prefix for onprem routes", + "description": "Virtual connection name", + "computed": true + }, + "virtual_connection_type": { + "name": "virtual_connection_type", + "type": "TypeString", + "description": "Virtual connection type", "computed": true } } + }, + { + "name": "status", + "type": "TypeString", + "description": "Route report status", + "computed": true } ], "ibm_dl_route_reports": [ + { + "name": "gateway", + "type": "TypeString", + "description": "The Direct Link gateway identifier", + "immutable": true, + "required": true + }, { "name": "route_reports", "type": "TypeList", @@ -25653,23 +25646,9 @@ } } } - }, - { - "name": "gateway", - "type": "TypeString", - "description": "The Direct Link gateway identifier", - "immutable": true, - "required": true } ], "ibm_dl_routers": [ - { - "name": "offering_type", - "type": "TypeString", - "description": "The Direct Link offering type", - "required": true, - "options": "dedicated" - }, { "name": "location_name", "type": "TypeString", @@ -25704,6 +25683,13 @@ "computed": true } } + }, + { + "name": "offering_type", + "type": "TypeString", + "description": "The Direct Link offering type", + "required": true, + "options": "dedicated" } ], "ibm_dns_custom_resolver_forwarding_rules": [ @@ -26315,6 +26301,16 @@ } ], "ibm_dns_permitted_networks": [ + { + "name": "instance_id", + "type": "TypeString", + "description": "Instance ID", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:dns-svcs" + ] + }, { "name": "zone_id", "type": "TypeString", @@ -26376,16 +26372,6 @@ "computed": true } } - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "Instance ID", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:dns-svcs" - ] } ], "ibm_dns_resource_records": [ @@ -26445,6 +26431,16 @@ } ], "ibm_dns_secondary": [ + { + "name": "transfer_frequency", + "type": "TypeInt", + "computed": true + }, + { + "name": "status_id", + "type": "TypeInt", + "computed": true + }, { "name": "status_text", "type": "TypeString", @@ -26460,29 +26456,9 @@ "name": "master_ip_address", "type": "TypeString", "computed": true - }, - { - "name": "transfer_frequency", - "type": "TypeInt", - "computed": true - }, - { - "name": "status_id", - "type": "TypeInt", - "computed": true } ], "ibm_dns_zones": [ - { - "name": "instance_id", - "type": "TypeString", - "description": "Instance ID", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:dns-svcs" - ] - }, { "name": "dns_zones", "type": "TypeList", @@ -26538,54 +26514,19 @@ "computed": true } } - } - ], - "ibm_en_destination_android": [ - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "required": true - }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, - { - "name": "subscription_names", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "type": "TypeString" - } }, { - "name": "destination_id", - "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Destination name.", - "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Destination description.", - "computed": true - }, - { - "name": "type", + "name": "instance_id", "type": "TypeString", - "description": "Destination type push_android.", - "computed": true - }, + "description": "Instance ID", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:dns-svcs" + ] + } + ], + "ibm_en_destination_android": [ { "name": "config", "type": "TypeList", @@ -26625,18 +26566,63 @@ } } }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Unique identifier for Destination.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Destination name.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Destination description.", + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Destination type push_android.", + "computed": true + }, { "name": "updated_at", "type": "TypeString", "description": "Last updated time.", "computed": true + }, + { + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true } ], "ibm_en_destination_ce": [ { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", + "name": "type", + "type": "TypeString", + "description": "Destination type Webhook.", "computed": true }, { @@ -26655,9 +26641,27 @@ "required": true }, { - "name": "type", + "name": "destination_id", "type": "TypeString", - "description": "Destination type Webhook.", + "description": "Unique identifier for Destination.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Destination name.", + "computed": true + }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Destination description.", "computed": true }, { @@ -26710,27 +26714,27 @@ "type": "TypeString", "description": "Last updated time.", "computed": true - }, + } + ], + "ibm_en_destination_cf": [ { - "name": "destination_id", + "name": "instance_guid", "type": "TypeString", - "description": "Unique identifier for Destination.", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", "required": true }, { - "name": "name", + "name": "description", "type": "TypeString", - "description": "Destination name.", + "description": "Destination description.", "computed": true }, { - "name": "description", - "type": "TypeString", - "description": "Destination description.", + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", "computed": true - } - ], - "ibm_en_destination_cf": [ + }, { "name": "subscription_names", "type": "TypeList", @@ -26741,15 +26745,21 @@ } }, { - "name": "instance_guid", + "name": "destination_id", "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "description": "Unique identifier for Destination.", "required": true }, { - "name": "description", + "name": "name", "type": "TypeString", - "description": "Destination description.", + "description": "Destination name.", + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Destination type ibmcf.", "computed": true }, { @@ -26784,37 +26794,13 @@ "type": "TypeString", "description": "Last updated time.", "computed": true - }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Destination name.", - "computed": true - }, - { - "name": "type", - "type": "TypeString", - "description": "Destination type ibmcf.", - "computed": true } ], "ibm_en_destination_chrome": [ { - "name": "updated_at", + "name": "description", "type": "TypeString", - "description": "Last updated time.", + "description": "Destination description.", "computed": true }, { @@ -26857,12 +26843,6 @@ } } }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, { "name": "subscription_names", "type": "TypeList", @@ -26891,18 +26871,24 @@ "computed": true }, { - "name": "description", + "name": "updated_at", "type": "TypeString", - "description": "Destination description.", + "description": "Last updated time.", "computed": true - } - ], - "ibm_en_destination_cos": [ + }, { "name": "subscription_count", "type": "TypeInt", "description": "Number of subscriptions.", "computed": true + } + ], + "ibm_en_destination_cos": [ + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true }, { "name": "subscription_names", @@ -26914,21 +26900,27 @@ } }, { - "name": "description", + "name": "instance_guid", "type": "TypeString", - "description": "Destination description.", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Destination name.", "computed": true }, { - "name": "type", + "name": "description", "type": "TypeString", - "description": "Destination type ibmcf.", + "description": "Destination description.", "computed": true }, { - "name": "name", + "name": "type", "type": "TypeString", - "description": "Destination name.", + "description": "Destination type ibmcf.", "computed": true }, { @@ -26965,17 +26957,11 @@ } }, { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", "computed": true }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "required": true - }, { "name": "destination_id", "type": "TypeString", @@ -26985,15 +26971,9 @@ ], "ibm_en_destination_custom_email": [ { - "name": "destination_id", - "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Destination name.", + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", "computed": true }, { @@ -27003,16 +26983,22 @@ "computed": true }, { - "name": "updated_at", + "name": "destination_id", "type": "TypeString", - "description": "Last updated time.", + "description": "Unique identifier for Destination.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Destination name.", "computed": true }, { - "name": "instance_guid", + "name": "type", "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "required": true + "description": "Destination type slack.", + "computed": true }, { "name": "config", @@ -27036,9 +27022,9 @@ } }, { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", "computed": true }, { @@ -27051,31 +27037,13 @@ } }, { - "name": "type", + "name": "instance_guid", "type": "TypeString", - "description": "Destination type slack.", - "computed": true + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true } ], "ibm_en_destination_firefox": [ - { - "name": "destination_id", - "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Destination description.", - "computed": true - }, - { - "name": "type", - "type": "TypeString", - "description": "Destination type push_firefox.", - "computed": true - }, { "name": "subscription_names", "type": "TypeList", @@ -27097,6 +27065,12 @@ "description": "Destination name.", "computed": true }, + { + "name": "type", + "type": "TypeString", + "description": "Destination type push_firefox.", + "computed": true + }, { "name": "config", "type": "TypeList", @@ -27124,20 +27098,71 @@ } } }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Unique identifier for Destination.", + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Destination description.", + "computed": true + }, { "name": "updated_at", "type": "TypeString", "description": "Last updated time.", "computed": true + } + ], + "ibm_en_destination_huawei": [ + { + "name": "destination_id", + "type": "TypeString", + "description": "Unique identifier for Destination.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Destination name.", + "computed": true }, { "name": "subscription_count", "type": "TypeInt", "description": "Number of subscriptions.", "computed": true - } - ], - "ibm_en_destination_huawei": [ + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + }, + { + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true + }, { "name": "description", "type": "TypeString", @@ -27182,54 +27207,9 @@ } } } - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true - }, - { - "name": "subscription_names", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "required": true - }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Destination name.", - "computed": true - }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true } ], "ibm_en_destination_ios": [ - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, { "name": "subscription_names", "type": "TypeList", @@ -27246,9 +27226,9 @@ "computed": true }, { - "name": "certificate_content_type", + "name": "description", "type": "TypeString", - "description": "The Certificate Content Type to be set p8/p12.", + "description": "Destination description.", "computed": true }, { @@ -27258,9 +27238,9 @@ "computed": true }, { - "name": "type", + "name": "updated_at", "type": "TypeString", - "description": "Destination type push_ios.", + "description": "Last updated time.", "computed": true }, { @@ -27321,9 +27301,9 @@ } }, { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", "computed": true }, { @@ -27339,39 +27319,30 @@ "required": true }, { - "name": "description", + "name": "type", "type": "TypeString", - "description": "Destination description.", + "description": "Destination type push_ios.", + "computed": true + }, + { + "name": "certificate_content_type", + "type": "TypeString", + "description": "The Certificate Content Type to be set p8/p12.", "computed": true } ], "ibm_en_destination_msteams": [ { - "name": "type", + "name": "destination_id", "type": "TypeString", - "description": "Destination type msteams.", - "computed": true + "description": "Unique identifier for Destination.", + "required": true }, { - "name": "config", - "type": "TypeList", - "description": "Payload describing a destination configuration.", - "computed": true, - "elem": { - "params": { - "name": "params", - "type": "TypeList", - "computed": true, - "elem": { - "url": { - "name": "url", - "type": "TypeString", - "description": "URL of msteams", - "computed": true - } - } - } - } + "name": "description", + "type": "TypeString", + "description": "Destination description.", + "computed": true }, { "name": "updated_at", @@ -27379,6 +27350,12 @@ "description": "Last updated time.", "computed": true }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + }, { "name": "subscription_names", "type": "TypeList", @@ -27388,24 +27365,12 @@ "type": "TypeString" } }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, { "name": "instance_guid", "type": "TypeString", "description": "Unique identifier for IBM Cloud Event Notifications instance.", "required": true }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true - }, { "name": "name", "type": "TypeString", @@ -27413,10 +27378,31 @@ "computed": true }, { - "name": "description", + "name": "type", "type": "TypeString", - "description": "Destination description.", + "description": "Destination type msteams.", "computed": true + }, + { + "name": "config", + "type": "TypeList", + "description": "Payload describing a destination configuration.", + "computed": true, + "elem": { + "params": { + "name": "params", + "type": "TypeList", + "computed": true, + "elem": { + "url": { + "name": "url", + "type": "TypeString", + "description": "URL of msteams", + "computed": true + } + } + } + } } ], "ibm_en_destination_pagerduty": [ @@ -27426,12 +27412,6 @@ "description": "Destination description.", "computed": true }, - { - "name": "type", - "type": "TypeString", - "description": "Destination type push_chrome.", - "computed": true - }, { "name": "config", "type": "TypeList", @@ -27459,58 +27439,11 @@ } } }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, - { - "name": "subscription_names", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "required": true - }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Destination name.", - "computed": true - }, { "name": "updated_at", "type": "TypeString", "description": "Last updated time.", "computed": true - } - ], - "ibm_en_destination_safari": [ - { - "name": "destination_id", - "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true - }, - { - "name": "type", - "type": "TypeString", - "description": "Destination type push_ios.", - "computed": true }, { "name": "subscription_count", @@ -27533,18 +27466,44 @@ "description": "Unique identifier for IBM Cloud Event Notifications instance.", "required": true }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Unique identifier for Destination.", + "required": true + }, { "name": "name", "type": "TypeString", "description": "Destination name.", "computed": true }, + { + "name": "type", + "type": "TypeString", + "description": "Destination type push_chrome.", + "computed": true + } + ], + "ibm_en_destination_safari": [ + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true + }, { "name": "description", "type": "TypeString", "description": "Destination description.", "computed": true }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + }, { "name": "config", "type": "TypeList", @@ -27607,21 +27566,75 @@ "type": "TypeString", "description": "Last updated time.", "computed": true - } - ], - "ibm_en_destination_slack": [ + }, + { + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Unique identifier for Destination.", + "required": true + }, { "name": "name", "type": "TypeString", "description": "Destination name.", "computed": true }, + { + "name": "type", + "type": "TypeString", + "description": "Destination type push_ios.", + "computed": true + } + ], + "ibm_en_destination_slack": [ + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true + }, { "name": "description", "type": "TypeString", "description": "Destination description.", "computed": true }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + }, + { + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Unique identifier for Destination.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Destination name.", + "computed": true + }, { "name": "type", "type": "TypeString", @@ -27650,22 +27663,30 @@ } }, { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", "computed": true - }, + } + ], + "ibm_en_destination_sn": [ { - "name": "instance_guid", + "name": "destination_id", "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "description": "Unique identifier for Destination.", "required": true }, { - "name": "destination_id", + "name": "name", "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true + "description": "Destination name.", + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Destination type push_chrome.", + "computed": true }, { "name": "updated_at", @@ -27674,20 +27695,9 @@ "computed": true }, { - "name": "subscription_names", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "type": "TypeString" - } - } - ], - "ibm_en_destination_sn": [ - { - "name": "description", - "type": "TypeString", - "description": "Destination description.", + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", "computed": true }, { @@ -27697,15 +27707,9 @@ "required": true }, { - "name": "name", - "type": "TypeString", - "description": "Destination name.", - "computed": true - }, - { - "name": "type", + "name": "description", "type": "TypeString", - "description": "Destination type push_chrome.", + "description": "Destination description.", "computed": true }, { @@ -27753,18 +27757,6 @@ } } }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true - }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, { "name": "subscription_names", "type": "TypeList", @@ -27773,39 +27765,9 @@ "elem": { "type": "TypeString" } - }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true } ], "ibm_en_destination_webhook": [ - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true - }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "required": true - }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Unique identifier for Destination.", - "required": true - }, { "name": "config", "type": "TypeList", @@ -27852,13 +27814,16 @@ } }, { - "name": "subscription_names", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "type", + "type": "TypeString", + "description": "Destination type Webhook.", + "computed": true + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Unique identifier for Destination.", + "required": true }, { "name": "name", @@ -27873,10 +27838,31 @@ "computed": true }, { - "name": "type", + "name": "updated_at", "type": "TypeString", - "description": "Destination type Webhook.", + "description": "Last updated time.", + "computed": true + }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", "computed": true + }, + { + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true } ], "ibm_en_destinations": [ @@ -27953,6 +27939,12 @@ } ], "ibm_en_integration": [ + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + }, { "name": "instance_guid", "type": "TypeString", @@ -27964,12 +27956,6 @@ "type": "TypeString", "description": "Unique identifier for Source.", "required": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true } ], "ibm_en_integrations": [ @@ -28019,6 +28005,18 @@ } ], "ibm_en_source": [ + { + "name": "description", + "type": "TypeString", + "description": "Source description.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + }, { "name": "enabled", "type": "TypeBool", @@ -28042,18 +28040,6 @@ "type": "TypeString", "description": "Source name.", "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Source description.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true } ], "ibm_en_sources": [ @@ -28127,6 +28113,24 @@ } ], "ibm_en_subscription_android": [ + { + "name": "description", + "type": "TypeString", + "description": "Subscription description.", + "computed": true + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "The destination ID.", + "computed": true + }, + { + "name": "topic_id", + "type": "TypeString", + "description": "Topic ID.", + "computed": true + }, { "name": "updated_at", "type": "TypeString", @@ -28139,6 +28143,20 @@ "description": "Unique identifier for IBM Cloud Event Notifications instance.", "required": true }, + { + "name": "subscription_id", + "type": "TypeString", + "description": "Unique identifier for result.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Subscription name.", + "computed": true + } + ], + "ibm_en_subscription_ce": [ { "name": "subscription_id", "type": "TypeString", @@ -28168,21 +28186,21 @@ "type": "TypeString", "description": "Topic ID.", "computed": true - } - ], - "ibm_en_subscription_ce": [ + }, { - "name": "instance_guid", + "name": "updated_at", "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "required": true + "description": "Last updated time.", + "computed": true }, { - "name": "subscription_id", + "name": "instance_guid", "type": "TypeString", - "description": "Unique identifier for result.", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", "required": true - }, + } + ], + "ibm_en_subscription_cf": [ { "name": "name", "type": "TypeString", @@ -28212,9 +28230,27 @@ "type": "TypeString", "description": "Last updated time.", "computed": true + }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true + }, + { + "name": "subscription_id", + "type": "TypeString", + "description": "Unique identifier for result.", + "required": true } ], - "ibm_en_subscription_cf": [ + "ibm_en_subscription_chrome": [ + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true + }, { "name": "subscription_id", "type": "TypeString", @@ -28250,15 +28286,9 @@ "type": "TypeString", "description": "Last updated time.", "computed": true - }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "required": true } ], - "ibm_en_subscription_chrome": [ + "ibm_en_subscription_cos": [ { "name": "destination_id", "type": "TypeString", @@ -28302,13 +28332,7 @@ "computed": true } ], - "ibm_en_subscription_cos": [ - { - "name": "name", - "type": "TypeString", - "description": "Subscription name.", - "computed": true - }, + "ibm_en_subscription_custom_email": [ { "name": "description", "type": "TypeString", @@ -28327,26 +28351,6 @@ "description": "Topic ID.", "computed": true }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true - }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "required": true - }, - { - "name": "subscription_id", - "type": "TypeString", - "description": "Unique identifier for result.", - "required": true - } - ], - "ibm_en_subscription_custom_email": [ { "name": "attributes", "type": "TypeList", @@ -28498,27 +28502,15 @@ "type": "TypeString", "description": "Subscription name.", "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Subscription description.", - "computed": true - }, + } + ], + "ibm_en_subscription_email": [ { - "name": "destination_id", + "name": "name", "type": "TypeString", - "description": "The destination ID.", + "description": "Subscription name.", "computed": true }, - { - "name": "topic_id", - "type": "TypeString", - "description": "Topic ID.", - "computed": true - } - ], - "ibm_en_subscription_email": [ { "name": "description", "type": "TypeString", @@ -28661,21 +28653,9 @@ "type": "TypeString", "description": "Unique identifier for result.", "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Subscription name.", - "computed": true } ], "ibm_en_subscription_firefox": [ - { - "name": "topic_id", - "type": "TypeString", - "description": "Topic ID.", - "computed": true - }, { "name": "updated_at", "type": "TypeString", @@ -28711,9 +28691,27 @@ "type": "TypeString", "description": "The destination ID.", "computed": true + }, + { + "name": "topic_id", + "type": "TypeString", + "description": "Topic ID.", + "computed": true } ], "ibm_en_subscription_huawei": [ + { + "name": "topic_id", + "type": "TypeString", + "description": "Topic ID.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + }, { "name": "instance_guid", "type": "TypeString", @@ -28743,7 +28741,9 @@ "type": "TypeString", "description": "The destination ID.", "computed": true - }, + } + ], + "ibm_en_subscription_ios": [ { "name": "topic_id", "type": "TypeString", @@ -28755,9 +28755,7 @@ "type": "TypeString", "description": "Last updated time.", "computed": true - } - ], - "ibm_en_subscription_ios": [ + }, { "name": "instance_guid", "type": "TypeString", @@ -28782,6 +28780,14 @@ "description": "Subscription description.", "computed": true }, + { + "name": "destination_id", + "type": "TypeString", + "description": "The destination ID.", + "computed": true + } + ], + "ibm_en_subscription_msteams": [ { "name": "destination_id", "type": "TypeString", @@ -28799,9 +28805,13 @@ "type": "TypeString", "description": "Last updated time.", "computed": true - } - ], - "ibm_en_subscription_msteams": [ + }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true + }, { "name": "subscription_id", "type": "TypeString", @@ -28819,33 +28829,27 @@ "type": "TypeString", "description": "Subscription description.", "computed": true - }, + } + ], + "ibm_en_subscription_pagerduty": [ { - "name": "destination_id", + "name": "instance_guid", "type": "TypeString", - "description": "The destination ID.", - "computed": true + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true }, { - "name": "topic_id", + "name": "subscription_id", "type": "TypeString", - "description": "Topic ID.", - "computed": true + "description": "Unique identifier for result.", + "required": true }, { - "name": "updated_at", + "name": "name", "type": "TypeString", - "description": "Last updated time.", + "description": "Subscription name.", "computed": true }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "required": true - } - ], - "ibm_en_subscription_pagerduty": [ { "name": "description", "type": "TypeString", @@ -28869,33 +28873,9 @@ "type": "TypeString", "description": "Last updated time.", "computed": true - }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "required": true - }, - { - "name": "subscription_id", - "type": "TypeString", - "description": "Unique identifier for result.", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Subscription name.", - "computed": true } ], "ibm_en_subscription_safari": [ - { - "name": "subscription_id", - "type": "TypeString", - "description": "Unique identifier for result.", - "required": true - }, { "name": "name", "type": "TypeString", @@ -28931,9 +28911,33 @@ "type": "TypeString", "description": "Unique identifier for IBM Cloud Event Notifications instance.", "required": true + }, + { + "name": "subscription_id", + "type": "TypeString", + "description": "Unique identifier for result.", + "required": true } ], "ibm_en_subscription_slack": [ + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true + }, + { + "name": "subscription_id", + "type": "TypeString", + "description": "Unique identifier for result.", + "required": true + }, { "name": "name", "type": "TypeString", @@ -28970,24 +28974,6 @@ "optional": true } } - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true - }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "required": true - }, - { - "name": "subscription_id", - "type": "TypeString", - "description": "Unique identifier for result.", - "required": true } ], "ibm_en_subscription_sms": [ @@ -29116,6 +29102,30 @@ } ], "ibm_en_subscription_sn": [ + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true + }, + { + "name": "subscription_id", + "type": "TypeString", + "description": "Unique identifier for result.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Subscription name.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Subscription description.", + "computed": true + }, { "name": "destination_id", "type": "TypeString", @@ -29133,13 +29143,9 @@ "type": "TypeString", "description": "Last updated time.", "computed": true - }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "required": true - }, + } + ], + "ibm_en_subscription_webhook": [ { "name": "subscription_id", "type": "TypeString", @@ -29157,9 +29163,13 @@ "type": "TypeString", "description": "Subscription description.", "computed": true - } - ], - "ibm_en_subscription_webhook": [ + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "The destination ID.", + "computed": true + }, { "name": "topic_id", "type": "TypeString", @@ -29199,30 +29209,6 @@ "type": "TypeString", "description": "Unique identifier for IBM Cloud Event Notifications instance.", "required": true - }, - { - "name": "subscription_id", - "type": "TypeString", - "description": "Unique identifier for result.", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Subscription name.", - "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Subscription description.", - "computed": true - }, - { - "name": "destination_id", - "type": "TypeString", - "description": "The destination ID.", - "computed": true } ], "ibm_en_subscriptions": [ @@ -29308,12 +29294,6 @@ } ], "ibm_en_topic": [ - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "required": true - }, { "name": "description", "type": "TypeString", @@ -29321,28 +29301,54 @@ "computed": true }, { - "name": "updated_at", - "type": "TypeString", - "description": "Last time the topic was updated.", - "computed": true - }, - { - "name": "topic_id", - "type": "TypeString", - "description": "Unique identifier for Topic.", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the topic.", - "computed": true - }, - { - "name": "source_count", - "type": "TypeInt", - "description": "Number of sources.", - "computed": true + "name": "subscriptions", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "description": { + "name": "description", + "type": "TypeString", + "description": "Subscription description.", + "computed": true + }, + "destination_id": { + "name": "destination_id", + "type": "TypeString", + "description": "The destination ID.", + "computed": true + }, + "destination_type": { + "name": "destination_type", + "type": "TypeString", + "description": "The type of destination.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "Subscription ID.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Subscription name.", + "computed": true + }, + "topic_id": { + "name": "topic_id", + "type": "TypeString", + "description": "Topic ID.", + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + } + } }, { "name": "sources", @@ -29409,57 +29415,11 @@ "computed": true }, { - "name": "subscriptions", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "Subscription description.", - "computed": true - }, - "destination_id": { - "name": "destination_id", - "type": "TypeString", - "description": "The destination ID.", - "computed": true - }, - "destination_type": { - "name": "destination_type", - "type": "TypeString", - "description": "The type of destination.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "Subscription ID.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Subscription name.", - "computed": true - }, - "topic_id": { - "name": "topic_id", - "type": "TypeString", - "description": "Topic ID.", - "computed": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true - } - } - } - ], - "ibm_en_topics": [ + "name": "updated_at", + "type": "TypeString", + "description": "Last time the topic was updated.", + "computed": true + }, { "name": "instance_guid", "type": "TypeString", @@ -29467,17 +29427,25 @@ "required": true }, { - "name": "total_count", - "type": "TypeInt", - "description": "Number of topics.", - "computed": true + "name": "topic_id", + "type": "TypeString", + "description": "Unique identifier for Topic.", + "required": true }, { - "name": "search_key", + "name": "name", "type": "TypeString", - "description": "Filter the topic by name", - "optional": true + "description": "Name of the topic.", + "computed": true }, + { + "name": "source_count", + "type": "TypeInt", + "description": "Number of sources.", + "computed": true + } + ], + "ibm_en_topics": [ { "name": "topics", "type": "TypeList", @@ -29524,6 +29492,24 @@ "computed": true } } + }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "required": true + }, + { + "name": "total_count", + "type": "TypeInt", + "description": "Number of topics.", + "computed": true + }, + { + "name": "search_key", + "type": "TypeString", + "description": "Filter the topic by name", + "optional": true } ], "ibm_enterprise_account_groups": [ @@ -29869,15 +29855,6 @@ } ], "ibm_event_streams_topic": [ - { - "name": "kafka_brokers_sasl", - "type": "TypeList", - "description": "Kafka brokers addresses for interacting with Kafka native API", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "name", "type": "TypeString", @@ -29911,19 +29888,46 @@ "type": "TypeString", "description": "The API endpoint for interacting with Event Streams REST API", "computed": true + }, + { + "name": "kafka_brokers_sasl", + "type": "TypeList", + "description": "Kafka brokers addresses for interacting with Kafka native API", + "computed": true, + "elem": { + "type": "TypeString" + } } ], "ibm_function_action": [ { - "name": "name", + "name": "namespace", "type": "TypeString", - "description": "Name of action.", + "description": "Name of the namespace.", "required": true }, { - "name": "namespace", + "name": "version", "type": "TypeString", - "description": "Name of the namespace.", + "description": "Semantic version of the item.", + "computed": true + }, + { + "name": "annotations", + "type": "TypeString", + "description": "All annotations set on action by user and those set by the IBM Cloud Function backend/API.", + "computed": true + }, + { + "name": "target_endpoint_url", + "type": "TypeString", + "description": "Action target endpoint URL.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of action.", "required": true }, { @@ -29973,9 +29977,9 @@ } }, { - "name": "annotations", - "type": "TypeString", - "description": "All annotations set on action by user and those set by the IBM Cloud Function backend/API.", + "name": "publish", + "type": "TypeBool", + "description": "Action visibilty.", "computed": true }, { @@ -29989,12 +29993,6 @@ "type": "TypeString", "computed": true }, - { - "name": "target_endpoint_url", - "type": "TypeString", - "description": "Action target endpoint URL.", - "computed": true - }, { "name": "limits", "type": "TypeList", @@ -30019,28 +30017,9 @@ "computed": true } } - }, - { - "name": "publish", - "type": "TypeBool", - "description": "Action visibilty.", - "computed": true - }, - { - "name": "version", - "type": "TypeString", - "description": "Semantic version of the item.", - "computed": true } ], "ibm_function_namespace": [ - { - "name": "location", - "type": "TypeString", - "description": "Namespace Location.", - "cloud_data_type": "region", - "computed": true - }, { "name": "name", "type": "TypeString", @@ -30059,21 +30038,16 @@ "description": "Resource Group ID.", "cloud_data_type": "resource_group", "computed": true - } - ], - "ibm_function_package": [ - { - "name": "name", - "type": "TypeString", - "description": "Name of the package.", - "required": true }, { - "name": "namespace", + "name": "location", "type": "TypeString", - "description": "Name of the namespace.", - "required": true - }, + "description": "Namespace Location.", + "cloud_data_type": "region", + "computed": true + } + ], + "ibm_function_package": [ { "name": "publish", "type": "TypeBool", @@ -30108,13 +30082,11 @@ "name": "package_id", "type": "TypeString", "computed": true - } - ], - "ibm_function_rule": [ + }, { "name": "name", "type": "TypeString", - "description": "Name of the rule.", + "description": "Name of the package.", "required": true }, { @@ -30122,40 +30094,54 @@ "type": "TypeString", "description": "Name of the namespace.", "required": true + } + ], + "ibm_function_rule": [ + { + "name": "publish", + "type": "TypeBool", + "description": "Rule Visibility.", + "computed": true }, { - "name": "trigger_name", + "name": "version", "type": "TypeString", - "description": "Name of the trigger.", + "description": "Semantic version of the rule", "computed": true }, { - "name": "action_name", + "name": "rule_id", "type": "TypeString", - "description": "Name of an action.", "computed": true }, { - "name": "status", + "name": "name", "type": "TypeString", - "description": "Status of the rule.", - "computed": true + "description": "Name of the rule.", + "required": true }, { - "name": "publish", - "type": "TypeBool", - "description": "Rule Visibility.", + "name": "namespace", + "type": "TypeString", + "description": "Name of the namespace.", + "required": true + }, + { + "name": "trigger_name", + "type": "TypeString", + "description": "Name of the trigger.", "computed": true }, { - "name": "version", + "name": "action_name", "type": "TypeString", - "description": "Semantic version of the rule", + "description": "Name of an action.", "computed": true }, { - "name": "rule_id", + "name": "status", "type": "TypeString", + "description": "Status of the rule.", "computed": true } ], @@ -30203,18 +30189,6 @@ } ], "ibm_hpcs": [ - { - "name": "status", - "type": "TypeString", - "description": "The resource instance status", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Resource instance name for example, myobjectstorage", - "required": true - }, { "name": "resource_group_id", "type": "TypeString", @@ -30224,9 +30198,9 @@ "computed": true }, { - "name": "plan", - "type": "TypeString", - "description": "The plan type of the instance", + "name": "units", + "type": "TypeInt", + "description": "The number of operational crypto units for your service instance", "computed": true }, { @@ -30241,13 +30215,6 @@ "description": "Types of the service endpoints. Possible values are `public-and-private`, `private-only`.", "computed": true }, - { - "name": "crn", - "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", - "computed": true - }, { "name": "guid", "type": "TypeString", @@ -30260,6 +30227,12 @@ "description": "The extended metadata as a map associated with the resource instance.", "computed": true }, + { + "name": "name", + "type": "TypeString", + "description": "Resource instance name for example, myobjectstorage", + "required": true + }, { "name": "location", "type": "TypeString", @@ -30276,9 +30249,22 @@ "optional": true }, { - "name": "units", - "type": "TypeInt", - "description": "The number of operational crypto units for your service instance", + "name": "plan", + "type": "TypeString", + "description": "The plan type of the instance", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The resource instance status", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "CRN of resource instance", + "cloud_data_type": "crn", "computed": true }, { @@ -30353,6 +30339,57 @@ } ], "ibm_hpcs_key_template": [ + { + "name": "uko_vault", + "type": "TypeString", + "description": "The UUID of the Vault in which the update is to take place.", + "required": true + }, + { + "name": "vault", + "type": "TypeList", + "description": "Reference to a vault.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "A URL that uniquely identifies your cloud resource.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the referenced vault.", + "computed": true + } + } + }, + { + "name": "region", + "type": "TypeString", + "description": "The region of the UKO instance this resource exists in.", + "cloud_data_type": "region", + "required": true + }, + { + "name": "template_id", + "type": "TypeString", + "description": "UUID of the template.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the key template.", + "computed": true + }, { "name": "key", "type": "TypeList", @@ -30397,25 +30434,6 @@ "description": "Date and time when the key template was updated.", "computed": true }, - { - "name": "updated_by", - "type": "TypeString", - "description": "ID of the user that updated the key.", - "computed": true - }, - { - "name": "region", - "type": "TypeString", - "description": "The region of the UKO instance this resource exists in.", - "cloud_data_type": "region", - "required": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "Date and time when the key template was created.", - "computed": true - }, { "name": "created_by", "type": "TypeString", @@ -30457,41 +30475,25 @@ } }, { - "name": "vault", - "type": "TypeList", - "description": "Reference to a vault.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "A URL that uniquely identifies your cloud resource.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the referenced vault.", - "computed": true - } - } + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the UKO instance this resource exists in.", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:hs-crypto" + ] }, { - "name": "name", - "type": "TypeString", - "description": "Name of the key template.", + "name": "version", + "type": "TypeInt", + "description": "Version of the key template. Every time the key template is updated, the version will be updated automatically.", "computed": true }, { - "name": "description", + "name": "updated_by", "type": "TypeString", - "description": "Description of the key template.", + "description": "ID of the user that updated the key.", "computed": true }, { @@ -30501,45 +30503,30 @@ "computed": true }, { - "name": "version", - "type": "TypeInt", - "description": "Version of the key template. Every time the key template is updated, the version will be updated automatically.", - "computed": true - }, - { - "name": "template_id", - "type": "TypeString", - "description": "UUID of the template.", - "required": true - }, - { - "name": "uko_vault", + "name": "description", "type": "TypeString", - "description": "The UUID of the Vault in which the update is to take place.", - "required": true + "description": "Description of the key template.", + "computed": true }, { - "name": "instance_id", + "name": "created_at", "type": "TypeString", - "description": "The ID of the UKO instance this resource exists in.", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:hs-crypto" - ] + "description": "Date and time when the key template was created.", + "computed": true } ], "ibm_hpcs_keystore": [ { - "name": "google_credentials", + "name": "href", "type": "TypeString", - "description": "The value of the JSON key represented in the Base64 format.", + "description": "A URL that uniquely identifies your cloud resource.", "computed": true }, { - "name": "google_project_id", + "name": "aws_access_key_id", "type": "TypeString", - "description": "The project id associated with this keystore.", + "description": "The access key id used for connecting to this instance of AWS KMS.", + "secure": true, "computed": true }, { @@ -30549,116 +30536,112 @@ "computed": true }, { - "name": "azure_location", + "name": "ibm_api_endpoint", "type": "TypeString", - "description": "Location of the Azure Key Vault.", + "description": "API endpoint of the IBM Cloud keystore.", "computed": true }, { - "name": "ibm_api_key", + "name": "ibm_key_ring", "type": "TypeString", - "description": "The IBM Cloud API key to be used for connecting to this IBM Cloud keystore.", - "secure": true, + "description": "The key ring of an IBM Cloud KMS Keystore.", "computed": true }, { - "name": "vault", + "name": "location", + "type": "TypeString", + "description": "Geographic location of the keystore, if available.", + "cloud_data_type": "region", + "computed": true + }, + { + "name": "groups", "type": "TypeList", - "description": "Reference to a vault.", + "description": "List of groups that this keystore belongs to.", "computed": true, "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "A URL that uniquely identifies your cloud resource.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the referenced vault.", - "computed": true - } + "type": "TypeString" } }, { - "name": "aws_secret_access_key", + "name": "updated_at", "type": "TypeString", - "description": "The secret access key used for connecting to this instance of AWS KMS.", - "secure": true, + "description": "Date and time when the target keystore was last updated.", "computed": true }, { - "name": "azure_service_principal_password", + "name": "google_project_id", "type": "TypeString", - "description": "Azure service principal password.", - "secure": true, + "description": "The project id associated with this keystore.", "computed": true }, { - "name": "ibm_api_endpoint", + "name": "azure_tenant", "type": "TypeString", - "description": "API endpoint of the IBM Cloud keystore.", + "description": "Azure tenant that the Key Vault is associated with,.", "computed": true }, { - "name": "ibm_key_ring", + "name": "region", "type": "TypeString", - "description": "The key ring of an IBM Cloud KMS Keystore.", + "description": "The region of the UKO instance this resource exists in.", + "cloud_data_type": "region", + "required": true + }, + { + "name": "updated_by", + "type": "TypeString", + "description": "ID of the user that last updated the key.", "computed": true }, { - "name": "instance_id", + "name": "google_credentials", "type": "TypeString", - "description": "The ID of the UKO instance this resource exists in.", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:hs-crypto" - ] + "description": "The value of the JSON key represented in the Base64 format.", + "computed": true }, { - "name": "description", + "name": "azure_location", "type": "TypeString", - "description": "Description of the keystore.", + "description": "Location of the Azure Key Vault.", "computed": true }, { - "name": "updated_at", + "name": "azure_service_principal_client_id", "type": "TypeString", - "description": "Date and time when the target keystore was last updated.", + "description": "Azure service principal client ID.", "computed": true }, { - "name": "updated_by", + "name": "name", "type": "TypeString", - "description": "ID of the user that last updated the key.", + "description": "Name of the target keystore. It can be changed in the future.", "computed": true }, { - "name": "href", + "name": "type", "type": "TypeString", - "description": "A URL that uniquely identifies your cloud resource.", + "description": "Type of keystore.", "computed": true }, { - "name": "ibm_iam_endpoint", + "name": "aws_secret_access_key", "type": "TypeString", - "description": "Endpoint of the IAM service for this IBM Cloud keystore.", + "description": "The secret access key used for connecting to this instance of AWS KMS.", + "secure": true, "computed": true }, { - "name": "region", + "name": "azure_environment", "type": "TypeString", - "description": "The region of the UKO instance this resource exists in.", - "cloud_data_type": "region", - "required": true + "description": "Azure environment, usually 'Azure'.", + "computed": true + }, + { + "name": "ibm_variant", + "type": "TypeString", + "description": "Possible IBM Cloud KMS variants.", + "computed": true }, { "name": "keystore_id", @@ -30667,15 +30650,21 @@ "required": true }, { - "name": "type", + "name": "created_at", "type": "TypeString", - "description": "Type of keystore.", + "description": "Date and time when the target keystore was created.", "computed": true }, { - "name": "created_by", + "name": "google_key_ring", "type": "TypeString", - "description": "ID of the user that created the key.", + "description": "A key ring organizes keys in a specific Google Cloud location and allows you to manage access control on groups of keys.", + "computed": true + }, + { + "name": "aws_region", + "type": "TypeString", + "description": "AWS Region.", "computed": true }, { @@ -30685,43 +30674,41 @@ "computed": true }, { - "name": "azure_environment", + "name": "ibm_iam_endpoint", "type": "TypeString", - "description": "Azure environment, usually 'Azure'.", + "description": "Endpoint of the IAM service for this IBM Cloud keystore.", "computed": true }, { - "name": "ibm_variant", + "name": "google_location", "type": "TypeString", - "description": "Possible IBM Cloud KMS variants.", + "description": "Location represents the geographical region where a Cloud KMS resource is stored and can be accessed. A key's location impacts the performance of applications using the key.", "computed": true }, { - "name": "name", + "name": "azure_service_principal_password", "type": "TypeString", - "description": "Name of the target keystore. It can be changed in the future.", + "description": "Azure service principal password.", + "secure": true, "computed": true }, { - "name": "groups", - "type": "TypeList", - "description": "List of groups that this keystore belongs to.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "ibm_api_key", + "type": "TypeString", + "description": "The IBM Cloud API key to be used for connecting to this IBM Cloud keystore.", + "secure": true, + "computed": true }, { - "name": "aws_access_key_id", + "name": "google_private_key_id", "type": "TypeString", - "description": "The access key id used for connecting to this instance of AWS KMS.", - "secure": true, + "description": "The private key id associated with this keystore.", "computed": true }, { - "name": "azure_service_principal_client_id", + "name": "azure_subscription_id", "type": "TypeString", - "description": "Azure service principal client ID.", + "description": "Subscription ID in Azure.", "computed": true }, { @@ -30731,82 +30718,148 @@ "required": true }, { - "name": "azure_tenant", - "type": "TypeString", - "description": "Azure tenant that the Key Vault is associated with,.", - "computed": true + "name": "vault", + "type": "TypeList", + "description": "Reference to a vault.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "A URL that uniquely identifies your cloud resource.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the referenced vault.", + "computed": true + } + } }, { - "name": "ibm_instance_id", + "name": "description", "type": "TypeString", - "description": "The instance ID of the IBM Cloud keystore.", + "description": "Description of the keystore.", "computed": true }, { - "name": "location", + "name": "instance_id", "type": "TypeString", - "description": "Geographic location of the keystore, if available.", - "cloud_data_type": "region", - "computed": true + "description": "The ID of the UKO instance this resource exists in.", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:hs-crypto" + ] }, { - "name": "google_location", + "name": "created_by", "type": "TypeString", - "description": "Location represents the geographical region where a Cloud KMS resource is stored and can be accessed. A key's location impacts the performance of applications using the key.", + "description": "ID of the user that created the key.", "computed": true }, { - "name": "google_key_ring", + "name": "ibm_instance_id", "type": "TypeString", - "description": "A key ring organizes keys in a specific Google Cloud location and allows you to manage access control on groups of keys.", + "description": "The instance ID of the IBM Cloud keystore.", "computed": true - }, + } + ], + "ibm_hpcs_managed_key": [ { - "name": "created_at", + "name": "key_id", "type": "TypeString", - "description": "Date and time when the target keystore was created.", - "computed": true + "description": "UUID of the key.", + "required": true }, { - "name": "google_private_key_id", + "name": "activation_date", "type": "TypeString", - "description": "The private key id associated with this keystore.", + "description": "First day when the key is active.", "computed": true }, { - "name": "aws_region", + "name": "tags", + "type": "TypeList", + "description": "Key-value pairs associated with the key.", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of a tag.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Value of a tag.", + "computed": true + } + } + }, + { + "name": "created_at", "type": "TypeString", - "description": "AWS Region.", + "description": "Date and time when the key was created.", "computed": true }, { - "name": "azure_subscription_id", + "name": "updated_at", "type": "TypeString", - "description": "Subscription ID in Azure.", + "description": "Date and time when the key was last updated.", "computed": true - } - ], - "ibm_hpcs_managed_key": [ + }, { - "name": "instance_id", + "name": "uko_vault", "type": "TypeString", - "description": "The ID of the UKO instance this resource exists in.", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:hs-crypto" - ] + "description": "The UUID of the Vault in which the update is to take place.", + "required": true }, { - "name": "activation_date", + "name": "template", + "type": "TypeList", + "description": "Reference to a key template.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "A URL that uniquely identifies your cloud resource.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the key template.", + "computed": true + } + } + }, + { + "name": "description", "type": "TypeString", - "description": "First day when the key is active.", + "description": "Description of the managed key.", "computed": true }, { - "name": "created_by", + "name": "label", "type": "TypeString", - "description": "ID of the user that created the key.", + "description": "The label of the key.", "computed": true }, { @@ -30869,44 +30922,6 @@ } } }, - { - "name": "updated_by", - "type": "TypeString", - "description": "ID of the user that last updated the key.", - "computed": true - }, - { - "name": "referenced_keystores", - "type": "TypeList", - "description": "referenced keystores.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "A URL that uniquely identifies your cloud resource.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the target keystore.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of keystore.", - "computed": true - } - } - }, { "name": "href", "type": "TypeString", @@ -30914,10 +30929,11 @@ "computed": true }, { - "name": "description", + "name": "region", "type": "TypeString", - "description": "Description of the managed key.", - "computed": true + "description": "The region of the UKO instance this resource exists in.", + "cloud_data_type": "region", + "required": true }, { "name": "state", @@ -30926,38 +30942,47 @@ "computed": true }, { - "name": "expiration_date", - "type": "TypeString", - "description": "Last day when the key is active.", - "computed": true - }, - { - "name": "tags", + "name": "verification_patterns", "type": "TypeList", - "description": "Key-value pairs associated with the key.", - "cloud_data_type": "tags", + "description": "A list of verification patterns of the key (e.g. public key hash for RSA keys).", "computed": true, "elem": { - "name": { - "name": "name", + "method": { + "name": "method", "type": "TypeString", - "description": "Name of a tag.", + "description": "The method used for calculating the verification pattern.", "computed": true }, "value": { "name": "value", "type": "TypeString", - "description": "Value of a tag.", + "description": "The calculated value.", "computed": true } } }, { - "name": "created_at", + "name": "expiration_date", "type": "TypeString", - "description": "Date and time when the key was created.", + "description": "Last day when the key is active.", "computed": true }, + { + "name": "updated_by", + "type": "TypeString", + "description": "ID of the user that last updated the key.", + "computed": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the UKO instance this resource exists in.", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:hs-crypto" + ] + }, { "name": "vault", "type": "TypeList", @@ -30984,32 +31009,6 @@ } } }, - { - "name": "verification_patterns", - "type": "TypeList", - "description": "A list of verification patterns of the key (e.g. public key hash for RSA keys).", - "computed": true, - "elem": { - "method": { - "name": "method", - "type": "TypeString", - "description": "The method used for calculating the verification pattern.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "The calculated value.", - "computed": true - } - } - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Date and time when the key was last updated.", - "computed": true - }, { "name": "size", "type": "TypeString", @@ -31023,28 +31022,15 @@ "computed": true }, { - "name": "region", - "type": "TypeString", - "description": "The region of the UKO instance this resource exists in.", - "cloud_data_type": "region", - "required": true - }, - { - "name": "key_id", - "type": "TypeString", - "description": "UUID of the key.", - "required": true - }, - { - "name": "uko_vault", + "name": "created_by", "type": "TypeString", - "description": "The UUID of the Vault in which the update is to take place.", - "required": true + "description": "ID of the user that created the key.", + "computed": true }, { - "name": "template", + "name": "referenced_keystores", "type": "TypeList", - "description": "Reference to a key template.", + "description": "referenced keystores.", "computed": true, "elem": { "href": { @@ -31062,16 +31048,16 @@ "name": { "name": "name", "type": "TypeString", - "description": "Name of the key template.", + "description": "Name of the target keystore.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of keystore.", "computed": true } } - }, - { - "name": "label", - "type": "TypeString", - "description": "The label of the key.", - "computed": true } ], "ibm_hpcs_vault": [ @@ -31082,9 +31068,9 @@ "computed": true }, { - "name": "created_by", + "name": "updated_at", "type": "TypeString", - "description": "ID of the user that created the vault.", + "description": "Date and time when the vault was last updated.", "computed": true }, { @@ -31093,12 +31079,6 @@ "description": "ID of the user that last updated the vault.", "computed": true }, - { - "name": "href", - "type": "TypeString", - "description": "A URL that uniquely identifies your cloud resource.", - "computed": true - }, { "name": "instance_id", "type": "TypeString", @@ -31110,11 +31090,10 @@ ] }, { - "name": "region", + "name": "name", "type": "TypeString", - "description": "The region of the UKO instance this resource exists in.", - "cloud_data_type": "region", - "required": true + "description": "Name of the vault.", + "computed": true }, { "name": "description", @@ -31123,22 +31102,29 @@ "computed": true }, { - "name": "vault_id", + "name": "created_by", "type": "TypeString", - "description": "UUID of the vault.", - "required": true + "description": "ID of the user that created the vault.", + "computed": true }, { - "name": "name", + "name": "href", "type": "TypeString", - "description": "Name of the vault.", + "description": "A URL that uniquely identifies your cloud resource.", "computed": true }, { - "name": "updated_at", + "name": "region", "type": "TypeString", - "description": "Date and time when the vault was last updated.", - "computed": true + "description": "The region of the UKO instance this resource exists in.", + "cloud_data_type": "region", + "required": true + }, + { + "name": "vault_id", + "type": "TypeString", + "description": "UUID of the vault.", + "required": true } ], "ibm_iam_access_group": [ @@ -31484,12 +31470,24 @@ } ], "ibm_iam_access_group_template_assignment": [ + { + "name": "account_id", + "type": "TypeString", + "description": "Enterprise account ID.", + "computed": true + }, { "name": "template_id", "type": "TypeString", "description": "Filter results by Template Id.", "optional": true }, + { + "name": "template_version", + "type": "TypeString", + "description": "Filter results by Template Version.", + "optional": true + }, { "name": "target", "type": "TypeString", @@ -31508,12 +31506,52 @@ "description": "An optional transaction id for the request.", "optional": true }, + { + "name": "limit", + "type": "TypeInt", + "description": "Maximum number of items returned in the response.", + "computed": true + }, + { + "name": "offset", + "type": "TypeInt", + "description": "Index of the first item returned in the response.", + "computed": true + }, { "name": "total_count", "type": "TypeInt", "description": "Total number of items matching the query.", "computed": true }, + { + "name": "first", + "type": "TypeList", + "description": "A link object.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "A string containing the link’s URL.", + "computed": true + } + } + }, + { + "name": "last", + "type": "TypeList", + "description": "A link object.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "A string containing the link’s URL.", + "computed": true + } + } + }, { "name": "assignments", "type": "TypeList", @@ -31599,33 +31637,11 @@ "computed": true } } - }, - { - "name": "account_id", - "type": "TypeString", - "description": "Enterprise account ID.", - "computed": true - }, - { - "name": "template_version", - "type": "TypeString", - "description": "Filter results by Template Version.", - "optional": true - }, - { - "name": "limit", - "type": "TypeInt", - "description": "Maximum number of items returned in the response.", - "computed": true - }, - { - "name": "offset", - "type": "TypeInt", - "description": "Index of the first item returned in the response.", - "computed": true - }, + } + ], + "ibm_iam_access_group_template_versions": [ { - "name": "first", + "name": "previous", "type": "TypeList", "description": "A link object.", "computed": true, @@ -31651,9 +31667,7 @@ "computed": true } } - } - ], - "ibm_iam_access_group_template_versions": [ + }, { "name": "group_template_versions", "type": "TypeList", @@ -31943,49 +31957,117 @@ "computed": true } } + } + ], + "ibm_iam_account_settings": [ + { + "name": "session_expiration_in_seconds", + "type": "TypeString", + "description": "Defines the session expiration in seconds for the account. Valid values: * Any whole number between between '900' and '86400' * NOT_SET - To unset account setting and use service default.", + "computed": true }, { - "name": "previous", + "name": "history", "type": "TypeList", - "description": "A link object.", + "description": "History of the Account Settings.", "computed": true, "elem": { - "href": { - "name": "href", + "action": { + "name": "action", "type": "TypeString", - "description": "A string containing the link’s URL.", + "description": "Action of the history entry.", "computed": true - } - } - }, - { - "name": "last", - "type": "TypeList", - "description": "A link object.", - "computed": true, - "elem": { - "href": { - "name": "href", + }, + "iam_id": { + "name": "iam_id", "type": "TypeString", - "description": "A string containing the link’s URL.", + "description": "IAM ID of the identity which triggered the action.", + "computed": true + }, + "iam_id_account": { + "name": "iam_id_account", + "type": "TypeString", + "description": "Account of the identity which triggered the action.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "Message which summarizes the executed action.", + "computed": true + }, + "params": { + "name": "params", + "type": "TypeList", + "description": "Params of the history entry.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "timestamp": { + "name": "timestamp", + "type": "TypeString", + "description": "Timestamp when the action was triggered.", "computed": true } } - } - ], - "ibm_iam_account_settings": [ + }, + { + "name": "max_sessions_per_identity", + "type": "TypeString", + "description": "Defines the max allowed sessions per identity required by the account. Valid values: * Any whole number greater than 0 * NOT_SET - To unset account setting and use service default.", + "computed": true + }, + { + "name": "system_access_token_expiration_in_seconds", + "type": "TypeString", + "description": "Defines the access token expiration in seconds. Valid values: * Any whole number between '900' and '3600' * NOT_SET - To unset account setting and use service default.", + "computed": true + }, + { + "name": "system_refresh_token_expiration_in_seconds", + "type": "TypeString", + "description": "Defines the refresh token expiration in seconds. Valid values: * Any whole number between '900' and '2592000' * NOT_SET - To unset account setting and use service default.", + "computed": true + }, { "name": "restrict_create_service_id", "type": "TypeString", "description": "Defines whether or not creating a Service Id is access controlled. Valid values: * RESTRICTED - to apply access control * NOT_RESTRICTED - to remove access control * NOT_SET - to 'unset' a previous set value.", "computed": true }, + { + "name": "account_id", + "type": "TypeString", + "description": "Unique ID of the account.", + "computed": true + }, { "name": "restrict_create_platform_apikey", "type": "TypeString", "description": "Defines whether or not creating platform API keys is access controlled. Valid values: * RESTRICTED - to apply access control * NOT_RESTRICTED - to remove access control * NOT_SET - to 'unset' a previous set value.", "computed": true }, + { + "name": "entity_tag", + "type": "TypeString", + "description": "Version of the account settings.", + "computed": true + }, + { + "name": "include_history", + "type": "TypeBool", + "description": "Defines if the entity history is included in the response.", + "default_value": false, + "optional": true + }, + { + "name": "mfa", + "type": "TypeString", + "description": "Defines the MFA trait for the account. Valid values: * NONE - No MFA trait set * TOTP - For all non-federated IBMId users * TOTP4ALL - For all users * LEVEL1 - Email-based MFA for all users * LEVEL2 - TOTP-based MFA for all users * LEVEL3 - U2F MFA for all users.", + "computed": true + }, { "name": "user_mfa", "type": "TypeList", @@ -32007,27 +32089,53 @@ } }, { - "name": "system_access_token_expiration_in_seconds", + "name": "session_invalidation_in_seconds", "type": "TypeString", - "description": "Defines the access token expiration in seconds. Valid values: * Any whole number between '900' and '3600' * NOT_SET - To unset account setting and use service default.", + "description": "Defines the period of time in seconds in which a session will be invalidated due to inactivity. Valid values: * Any whole number between '900' and '7200' * NOT_SET - To unset account setting and use service default.", "computed": true }, { - "name": "account_id", + "name": "allowed_ip_addresses", "type": "TypeString", - "description": "Unique ID of the account.", + "description": "Defines the IP addresses and subnets from which IAM tokens can be created for the account.", + "computed": true + } + ], + "ibm_iam_account_settings_template": [ + { + "name": "template_id", + "type": "TypeString", + "description": "ID of the account settings template.", + "required": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "Template Created At.", "computed": true }, { - "name": "entity_tag", + "name": "version", "type": "TypeString", - "description": "Version of the account settings.", + "description": "Version of the account settings template.", + "optional": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The description of the trusted profile template. Describe the template for enterprise account users.", + "computed": true + }, + { + "name": "committed", + "type": "TypeBool", + "description": "Committed flag determines if the template is ready for assignment.", "computed": true }, { "name": "history", "type": "TypeList", - "description": "History of the Account Settings.", + "description": "History of the Template.", "computed": true, "elem": { "action": { @@ -32071,56 +32179,12 @@ } } }, - { - "name": "session_expiration_in_seconds", - "type": "TypeString", - "description": "Defines the session expiration in seconds for the account. Valid values: * Any whole number between between '900' and '86400' * NOT_SET - To unset account setting and use service default.", - "computed": true - }, - { - "name": "allowed_ip_addresses", - "type": "TypeString", - "description": "Defines the IP addresses and subnets from which IAM tokens can be created for the account.", - "computed": true - }, - { - "name": "system_refresh_token_expiration_in_seconds", - "type": "TypeString", - "description": "Defines the refresh token expiration in seconds. Valid values: * Any whole number between '900' and '2592000' * NOT_SET - To unset account setting and use service default.", - "computed": true - }, - { - "name": "session_invalidation_in_seconds", - "type": "TypeString", - "description": "Defines the period of time in seconds in which a session will be invalidated due to inactivity. Valid values: * Any whole number between '900' and '7200' * NOT_SET - To unset account setting and use service default.", - "computed": true - }, - { - "name": "mfa", - "type": "TypeString", - "description": "Defines the MFA trait for the account. Valid values: * NONE - No MFA trait set * TOTP - For all non-federated IBMId users * TOTP4ALL - For all users * LEVEL1 - Email-based MFA for all users * LEVEL2 - TOTP-based MFA for all users * LEVEL3 - U2F MFA for all users.", - "computed": true - }, - { - "name": "max_sessions_per_identity", - "type": "TypeString", - "description": "Defines the max allowed sessions per identity required by the account. Valid values: * Any whole number greater than 0 * NOT_SET - To unset account setting and use service default.", - "computed": true - }, { "name": "include_history", "type": "TypeBool", "description": "Defines if the entity history is included in the response.", "default_value": false, "optional": true - } - ], - "ibm_iam_account_settings_template": [ - { - "name": "entity_tag", - "type": "TypeString", - "description": "Entity tag for this templateId-version combination.", - "computed": true }, { "name": "last_modified_at", @@ -32141,9 +32205,15 @@ "computed": true }, { - "name": "description", + "name": "account_id", "type": "TypeString", - "description": "The description of the trusted profile template. Describe the template for enterprise account users.", + "description": "ID of the account where the template resides.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the trusted profile template. This is visible only in the enterprise account.", "computed": true }, { @@ -32228,51 +32298,10 @@ } }, { - "name": "history", - "type": "TypeList", - "description": "History of the Template.", - "computed": true, - "elem": { - "action": { - "name": "action", - "type": "TypeString", - "description": "Action of the history entry.", - "computed": true - }, - "iam_id": { - "name": "iam_id", - "type": "TypeString", - "description": "IAM ID of the identity which triggered the action.", - "computed": true - }, - "iam_id_account": { - "name": "iam_id_account", - "type": "TypeString", - "description": "Account of the identity which triggered the action.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "Message which summarizes the executed action.", - "computed": true - }, - "params": { - "name": "params", - "type": "TypeList", - "description": "Params of the history entry.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "timestamp": { - "name": "timestamp", - "type": "TypeString", - "description": "Timestamp when the action was triggered.", - "computed": true - } - } + "name": "entity_tag", + "type": "TypeString", + "description": "Entity tag for this templateId-version combination.", + "computed": true }, { "name": "crn", @@ -32286,75 +32315,44 @@ "type": "TypeString", "description": "IAMid of the creator.", "computed": true - }, - { - "name": "include_history", - "type": "TypeBool", - "description": "Defines if the entity history is included in the response.", - "default_value": false, - "optional": true - }, + } + ], + "ibm_iam_account_settings_template_assignment": [ { - "name": "name", + "name": "account_id", "type": "TypeString", - "description": "The name of the trusted profile template. This is visible only in the enterprise account.", + "description": "Enterprise account Id.", "computed": true }, { "name": "template_id", "type": "TypeString", - "description": "ID of the account settings template.", - "required": true - }, - { - "name": "version", - "type": "TypeString", - "description": "Version of the account settings template.", + "description": "Template Id.", "optional": true }, { - "name": "account_id", + "name": "created_at", "type": "TypeString", - "description": "ID of the account where the template resides.", - "computed": true - }, - { - "name": "committed", - "type": "TypeBool", - "description": "Committed flag determines if the template is ready for assignment.", + "description": "Assignment created at.", "computed": true }, { - "name": "created_at", + "name": "created_by_id", "type": "TypeString", - "description": "Template Created At.", + "description": "IAMid of the identity that created the assignment.", "computed": true - } - ], - "ibm_iam_account_settings_template_assignment": [ - { - "name": "template_id", - "type": "TypeString", - "description": "Template Id.", - "optional": true }, { - "name": "template_version", - "type": "TypeInt", - "description": "Template version.", - "optional": true - }, - { - "name": "target_type", + "name": "last_modified_at", "type": "TypeString", - "description": "Assignment target type.", - "optional": true + "description": "Assignment modified at.", + "computed": true }, { - "name": "target", + "name": "id", "type": "TypeString", - "description": "Assignment target.", - "optional": true + "description": "Assignment record Id.", + "computed": true }, { "name": "href", @@ -32363,29 +32361,16 @@ "computed": true }, { - "name": "include_history", - "type": "TypeBool", - "description": "Defines if the entity history is included in the response.", - "default_value": false, - "optional": true - }, - { - "name": "account_id", - "type": "TypeString", - "description": "Enterprise account Id.", - "computed": true - }, - { - "name": "created_at", + "name": "last_modified_by_id", "type": "TypeString", - "description": "Assignment created at.", + "description": "IAMid of the identity that last modified the assignment.", "computed": true }, { - "name": "entity_tag", + "name": "assignment_id", "type": "TypeString", - "description": "Entity tag for this assignment record.", - "computed": true + "description": "ID of the Assignment Record.", + "required": true }, { "name": "context", @@ -32461,6 +32446,37 @@ } } }, + { + "name": "target_type", + "type": "TypeString", + "description": "Assignment target type.", + "optional": true + }, + { + "name": "include_history", + "type": "TypeBool", + "description": "Defines if the entity history is included in the response.", + "default_value": false, + "optional": true + }, + { + "name": "template_version", + "type": "TypeInt", + "description": "Template version.", + "optional": true + }, + { + "name": "target", + "type": "TypeString", + "description": "Assignment target.", + "optional": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Assignment status.", + "computed": true + }, { "name": "resources", "type": "TypeList", @@ -32546,36 +32562,6 @@ } } }, - { - "name": "last_modified_at", - "type": "TypeString", - "description": "Assignment modified at.", - "computed": true - }, - { - "name": "last_modified_by_id", - "type": "TypeString", - "description": "IAMid of the identity that last modified the assignment.", - "computed": true - }, - { - "name": "assignment_id", - "type": "TypeString", - "description": "ID of the Assignment Record.", - "required": true - }, - { - "name": "id", - "type": "TypeString", - "description": "Assignment record Id.", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "Assignment status.", - "computed": true - }, { "name": "history", "type": "TypeList", @@ -32624,23 +32610,24 @@ } }, { - "name": "created_by_id", + "name": "entity_tag", "type": "TypeString", - "description": "IAMid of the identity that created the assignment.", + "description": "Entity tag for this assignment record.", "computed": true } ], "ibm_iam_api_key": [ { - "name": "apikey_id", + "name": "entity_tag", "type": "TypeString", - "description": "Unique ID of the API key.", - "required": true + "description": "Version of the API Key details object. You need to specify this value when updating the API key to avoid stale updates.", + "computed": true }, { - "name": "locked", - "type": "TypeBool", - "description": "The API key cannot be changed if set to true.", + "name": "crn", + "type": "TypeString", + "description": "Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::apikey:1234-9012-5678'.", + "cloud_data_type": "crn", "computed": true }, { @@ -32650,9 +32637,9 @@ "computed": true }, { - "name": "created_by", + "name": "description", "type": "TypeString", - "description": "IAM ID of the user or service which created the API key.", + "description": "The optional description of the API key. The 'description' property is only available if a description was provided during a create of an API key.", "computed": true }, { @@ -32662,22 +32649,21 @@ "computed": true }, { - "name": "account_id", + "name": "apikey_id", "type": "TypeString", - "description": "ID of the account that this API key authenticates for.", - "computed": true + "description": "Unique ID of the API key.", + "required": true }, { - "name": "entity_tag", - "type": "TypeString", - "description": "Version of the API Key details object. You need to specify this value when updating the API key to avoid stale updates.", + "name": "locked", + "type": "TypeBool", + "description": "The API key cannot be changed if set to true.", "computed": true }, { - "name": "crn", + "name": "created_by", "type": "TypeString", - "description": "Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::apikey:1234-9012-5678'.", - "cloud_data_type": "crn", + "description": "IAM ID of the user or service which created the API key.", "computed": true }, { @@ -32693,30 +32679,30 @@ "computed": true }, { - "name": "description", + "name": "account_id", "type": "TypeString", - "description": "The optional description of the API key. The 'description' property is only available if a description was provided during a create of an API key.", + "description": "ID of the account that this API key authenticates for.", "computed": true } ], "ibm_iam_auth_token": [ { - "name": "iam_access_token", + "name": "uaa_access_token", "type": "TypeString", "computed": true }, { - "name": "iam_refresh_token", + "name": "uaa_refresh_token", "type": "TypeString", "computed": true }, { - "name": "uaa_access_token", + "name": "iam_access_token", "type": "TypeString", "computed": true }, { - "name": "uaa_refresh_token", + "name": "iam_refresh_token", "type": "TypeString", "computed": true } @@ -32836,110 +32822,6 @@ "description": "The policy template assignment ID.", "required": true }, - { - "name": "href", - "type": "TypeString", - "description": "The href URL that links to the policies assignments API by policy assignment ID.", - "computed": true - }, - { - "name": "last_modified_at", - "type": "TypeString", - "description": "The UTC timestamp when the policy assignment was last modified.", - "computed": true - }, - { - "name": "created_by_id", - "type": "TypeString", - "description": "The iam ID of the entity that created the policy assignment.", - "computed": true - }, - { - "name": "last_modified_by_id", - "type": "TypeString", - "description": "The iam ID of the entity that last modified the policy assignment.", - "computed": true - }, - { - "name": "template_id", - "type": "TypeString", - "description": "policy template id.", - "computed": true - }, - { - "name": "target_type", - "type": "TypeString", - "description": "Assignment target type.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The UTC timestamp when the policy assignment was created.", - "computed": true - }, - { - "name": "options", - "type": "TypeList", - "description": "List of objects with required properties for a policy assignment.", - "computed": true, - "elem": { - "root_requester_id": { - "name": "root_requester_id", - "type": "TypeString", - "description": "The policy assignment requester id.", - "computed": true - }, - "root_template_id": { - "name": "root_template_id", - "type": "TypeString", - "description": "The template id where this policy is being assigned from.", - "computed": true - }, - "root_template_version": { - "name": "root_template_version", - "type": "TypeString", - "description": "The template version where this policy is being assigned from.", - "computed": true - }, - "subject_id": { - "name": "subject_id", - "type": "TypeString", - "description": "The policy subject id.", - "computed": true - }, - "subject_type": { - "name": "subject_type", - "type": "TypeString", - "description": "The policy subject type; either 'iam_id' or 'access_group_id'.", - "computed": true - } - } - }, - { - "name": "account_id", - "type": "TypeString", - "description": "Enterprise accountID.", - "computed": true - }, - { - "name": "template_version", - "type": "TypeString", - "description": "policy template version.", - "computed": true - }, - { - "name": "target", - "type": "TypeString", - "description": "assignment target id.", - "computed": true - }, - { - "name": "id", - "type": "TypeString", - "description": "Policy assignment ID.", - "computed": true - }, { "name": "resources", "type": "TypeList", @@ -33061,21 +32943,113 @@ "computed": true } } - } - ], - "ibm_iam_policy_assignments": [ + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The UTC timestamp when the policy assignment was created.", + "computed": true + }, + { + "name": "last_modified_by_id", + "type": "TypeString", + "description": "The iam ID of the entity that last modified the policy assignment.", + "computed": true + }, + { + "name": "options", + "type": "TypeList", + "description": "List of objects with required properties for a policy assignment.", + "computed": true, + "elem": { + "root_requester_id": { + "name": "root_requester_id", + "type": "TypeString", + "description": "The policy assignment requester id.", + "computed": true + }, + "root_template_id": { + "name": "root_template_id", + "type": "TypeString", + "description": "The template id where this policy is being assigned from.", + "computed": true + }, + "root_template_version": { + "name": "root_template_version", + "type": "TypeString", + "description": "The template version where this policy is being assigned from.", + "computed": true + }, + "subject_id": { + "name": "subject_id", + "type": "TypeString", + "description": "The policy subject id.", + "computed": true + }, + "subject_type": { + "name": "subject_type", + "type": "TypeString", + "description": "The policy subject type; either 'iam_id' or 'access_group_id'.", + "computed": true + } + } + }, + { + "name": "id", + "type": "TypeString", + "description": "Policy assignment ID.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The href URL that links to the policies assignments API by policy assignment ID.", + "computed": true + }, + { + "name": "target_type", + "type": "TypeString", + "description": "Assignment target type.", + "computed": true + }, + { + "name": "last_modified_at", + "type": "TypeString", + "description": "The UTC timestamp when the policy assignment was last modified.", + "computed": true + }, + { + "name": "target", + "type": "TypeString", + "description": "assignment target id.", + "computed": true + }, + { + "name": "created_by_id", + "type": "TypeString", + "description": "The iam ID of the entity that created the policy assignment.", + "computed": true + }, + { + "name": "account_id", + "type": "TypeString", + "description": "Enterprise accountID.", + "computed": true + }, { "name": "template_id", "type": "TypeString", - "description": "Optional template id.", - "optional": true + "description": "policy template id.", + "computed": true }, { "name": "template_version", "type": "TypeString", - "description": "Optional policy template version.", - "optional": true - }, + "description": "policy template version.", + "computed": true + } + ], + "ibm_iam_policy_assignments": [ { "name": "policy_assignments", "type": "TypeList", @@ -33315,6 +33289,18 @@ "computed": true } } + }, + { + "name": "template_id", + "type": "TypeString", + "description": "Optional template id.", + "optional": true + }, + { + "name": "template_version", + "type": "TypeString", + "description": "Optional policy template version.", + "optional": true } ], "ibm_iam_policy_template": [ @@ -33494,6 +33480,36 @@ } ], "ibm_iam_policy_template_version": [ + { + "name": "id", + "type": "TypeString", + "description": "The policy template ID.", + "computed": true + }, + { + "name": "policy_template_id", + "type": "TypeString", + "description": "The policy template ID.", + "required": true + }, + { + "name": "version", + "type": "TypeString", + "description": "The policy template version.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "name of template.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "description of template purpose.", + "computed": true + }, { "name": "account_id", "type": "TypeString", @@ -33635,39 +33651,33 @@ "computed": true } } - }, - { - "name": "id", - "type": "TypeString", - "description": "The policy template ID.", - "computed": true - }, + } + ], + "ibm_iam_role_actions": [ { - "name": "policy_template_id", - "type": "TypeString", - "description": "The policy template ID.", - "required": true + "name": "reader_plus", + "type": "TypeList", + "description": "readerplus action ids", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "version", - "type": "TypeString", - "description": "The policy template version.", - "required": true + "name": "writer", + "type": "TypeList", + "description": "writer action ids", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "name", - "type": "TypeString", - "description": "name of template.", + "name": "actions", + "type": "TypeMap", + "description": "List of actions for different services roles", "computed": true }, - { - "name": "description", - "type": "TypeString", - "description": "description of template purpose.", - "computed": true - } - ], - "ibm_iam_role_actions": [ { "name": "service", "type": "TypeString", @@ -33692,40 +33702,9 @@ "elem": { "type": "TypeString" } - }, - { - "name": "reader_plus", - "type": "TypeList", - "description": "readerplus action ids", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "writer", - "type": "TypeList", - "description": "writer action ids", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "actions", - "type": "TypeMap", - "description": "List of actions for different services roles", - "computed": true } ], "ibm_iam_roles": [ - { - "name": "service", - "type": "TypeString", - "description": "The Service Name", - "immutable": true, - "optional": true - }, { "name": "roles", "type": "TypeList", @@ -33747,6 +33726,13 @@ "computed": true } } + }, + { + "name": "service", + "type": "TypeString", + "description": "The Service Name", + "immutable": true, + "optional": true } ], "ibm_iam_service_id": [ @@ -33812,6 +33798,23 @@ } ], "ibm_iam_service_policy": [ + { + "name": "iam_service_id", + "type": "TypeString", + "description": "UUID of ServiceID", + "cloud_data_type": "iam", + "optional": true, + "cloud_data_range": [ + "service:service_id", + "resolved_to:id" + ] + }, + { + "name": "iam_id", + "type": "TypeString", + "description": "IAM ID of ServiceID", + "optional": true + }, { "name": "sort", "type": "TypeString", @@ -33983,42 +33986,25 @@ "optional": true } } - }, - { - "name": "iam_service_id", - "type": "TypeString", - "description": "UUID of ServiceID", - "cloud_data_type": "iam", - "optional": true, - "cloud_data_range": [ - "service:service_id", - "resolved_to:id" - ] - }, - { - "name": "iam_id", - "type": "TypeString", - "description": "IAM ID of ServiceID", - "optional": true } ], "ibm_iam_trusted_profile": [ { - "name": "ims_user_id", - "type": "TypeInt", - "description": "IMS user ID of the trusted profile.", + "name": "description", + "type": "TypeString", + "description": "The optional description of the trusted profile. The 'description' property is only available if a description was provided during a create of a trusted profile.", "computed": true }, { - "name": "description", + "name": "template_id", "type": "TypeString", - "description": "The optional description of the trusted profile. The 'description' property is only available if a description was provided during a create of a trusted profile.", + "description": "Template id the profile was created from.", "computed": true }, { - "name": "modified_at", + "name": "created_at", "type": "TypeString", - "description": "If set contains a date time string of the last modification date in ISO format.", + "description": "If set contains a date time string of the creation date in ISO format.", "computed": true }, { @@ -34040,9 +34026,33 @@ "computed": true }, { - "name": "template_id", + "name": "ims_user_id", + "type": "TypeInt", + "description": "IMS user ID of the trusted profile.", + "computed": true + }, + { + "name": "profile_id", "type": "TypeString", - "description": "Template id the profile was created from.", + "description": "ID of the trusted profile to get.", + "cloud_data_type": "iam", + "required": true, + "cloud_data_range": [ + "service:trusted_profile", + "resolved_to:id" + ] + }, + { + "name": "crn", + "type": "TypeString", + "description": "Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::profile:Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "assignment_id", + "type": "TypeString", + "description": "Id of assignment that assigned the template.", "computed": true }, { @@ -34093,49 +34103,43 @@ } }, { - "name": "created_at", + "name": "entity_tag", "type": "TypeString", - "description": "If set contains a date time string of the creation date in ISO format.", + "description": "Version of the trusted profile details object. You need to specify this value when updating the trusted profile to avoid stale updates.", "computed": true }, { - "name": "assignment_id", + "name": "name", "type": "TypeString", - "description": "Id of assignment that assigned the template.", + "description": "Name of the trusted profile. The name is checked for uniqueness. Therefore trusted profiles with the same names can not exist in the same account.", "computed": true }, { - "name": "crn", + "name": "modified_at", "type": "TypeString", - "description": "Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::profile:Profile-94497d0d-2ac3-41bf-a993-a49d1b14627c'.", - "cloud_data_type": "crn", + "description": "If set contains a date time string of the last modification date in ISO format.", "computed": true - }, + } + ], + "ibm_iam_trusted_profile_claim_rule": [ { - "name": "entity_tag", + "name": "realm_name", "type": "TypeString", - "description": "Version of the trusted profile details object. You need to specify this value when updating the trusted profile to avoid stale updates.", + "description": "The realm name of the Idp this claim rule applies to.", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "Name of the trusted profile. The name is checked for uniqueness. Therefore trusted profiles with the same names can not exist in the same account.", + "name": "expiration", + "type": "TypeInt", + "description": "Session expiration in seconds.", "computed": true }, { - "name": "profile_id", + "name": "cr_type", "type": "TypeString", - "description": "ID of the trusted profile to get.", - "cloud_data_type": "iam", - "required": true, - "cloud_data_range": [ - "service:trusted_profile", - "resolved_to:id" - ] - } - ], - "ibm_iam_trusted_profile_claim_rule": [ + "description": "The compute resource type. Not required if type is Profile-SAML. Valid values are VSI, IKS_SA, ROKS_SA.", + "computed": true + }, { "name": "profile_id", "type": "TypeString", @@ -34148,21 +34152,33 @@ ] }, { - "name": "realm_name", + "name": "rule_id", "type": "TypeString", - "description": "The realm name of the Idp this claim rule applies to.", + "description": "ID of the claim rule to get.", + "required": true + }, + { + "name": "entity_tag", + "type": "TypeString", + "description": "version of the claim rule.", "computed": true }, { - "name": "expiration", - "type": "TypeInt", - "description": "Session expiration in seconds.", + "name": "name", + "type": "TypeString", + "description": "The optional claim rule name.", "computed": true }, { - "name": "cr_type", + "name": "created_at", "type": "TypeString", - "description": "The compute resource type. Not required if type is Profile-SAML. Valid values are VSI, IKS_SA, ROKS_SA.", + "description": "If set contains a date time string of the creation date in ISO format.", + "computed": true + }, + { + "name": "modified_at", + "type": "TypeString", + "description": "If set contains a date time string of the last modification date in ISO format.", "computed": true }, { @@ -34196,36 +34212,6 @@ "computed": true } } - }, - { - "name": "rule_id", - "type": "TypeString", - "description": "ID of the claim rule to get.", - "required": true - }, - { - "name": "entity_tag", - "type": "TypeString", - "description": "version of the claim rule.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "If set contains a date time string of the creation date in ISO format.", - "computed": true - }, - { - "name": "modified_at", - "type": "TypeString", - "description": "If set contains a date time string of the last modification date in ISO format.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The optional claim rule name.", - "computed": true } ], "ibm_iam_trusted_profile_claim_rules": [ @@ -34385,6 +34371,18 @@ } ], "ibm_iam_trusted_profile_identity": [ + { + "name": "identity_type", + "type": "TypeString", + "description": "Type of the identity.", + "required": true + }, + { + "name": "identifier_id", + "type": "TypeString", + "description": "Identifier of the identity that can assume the trusted profiles.", + "required": true + }, { "name": "iam_id", "type": "TypeString", @@ -34423,18 +34421,6 @@ "type": "TypeString", "description": "ID of the trusted profile.", "required": true - }, - { - "name": "identity_type", - "type": "TypeString", - "description": "Type of the identity.", - "required": true - }, - { - "name": "identifier_id", - "type": "TypeString", - "description": "Identifier of the identity that can assume the trusted profiles.", - "required": true } ], "ibm_iam_trusted_profile_link": [ @@ -34512,17 +34498,6 @@ } ], "ibm_iam_trusted_profile_links": [ - { - "name": "profile_id", - "type": "TypeString", - "description": "ID of the trusted profile.", - "cloud_data_type": "iam", - "required": true, - "cloud_data_range": [ - "service:trusted_profile", - "resolved_to:id" - ] - }, { "name": "links", "type": "TypeList", @@ -34591,26 +34566,20 @@ "computed": true } } - } - ], - "ibm_iam_trusted_profile_policy": [ + }, { "name": "profile_id", "type": "TypeString", - "description": "UUID of trusted profile", + "description": "ID of the trusted profile.", "cloud_data_type": "iam", - "optional": true, + "required": true, "cloud_data_range": [ "service:trusted_profile", "resolved_to:id" ] - }, - { - "name": "iam_id", - "type": "TypeString", - "description": "IAM ID of trusted profile", - "optional": true - }, + } + ], + "ibm_iam_trusted_profile_policy": [ { "name": "sort", "type": "TypeString", @@ -34830,124 +34799,30 @@ } } } - } - ], - "ibm_iam_trusted_profile_template": [ - { - "name": "account_id", - "type": "TypeString", - "description": "ID of the account where the template resides.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the trusted profile template. This is visible only in the enterprise account.", - "computed": true - }, - { - "name": "last_modified_by_id", - "type": "TypeString", - "description": "IAMid of the identity that made the latest modification.", - "computed": true }, { - "name": "include_history", - "type": "TypeBool", - "description": "Defines if the entity history is included in the response.", - "default_value": false, - "optional": true - }, - { - "name": "description", + "name": "profile_id", "type": "TypeString", - "description": "The description of the trusted profile template. Describe the template for enterprise account users.", - "computed": true - }, - { - "name": "committed", - "type": "TypeBool", - "description": "Committed flag determines if the template is ready for assignment.", - "computed": true + "description": "UUID of trusted profile", + "cloud_data_type": "iam", + "optional": true, + "cloud_data_range": [ + "service:trusted_profile", + "resolved_to:id" + ] }, { - "name": "version", + "name": "iam_id", "type": "TypeString", - "description": "Version of the Profile Template.", + "description": "IAM ID of trusted profile", "optional": true - }, - { - "name": "policy_template_references", - "type": "TypeList", - "description": "Existing policy templates that you can reference to assign access in the trusted profile component.", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "ID of Access Policy Template.", - "computed": true - }, - "version": { - "name": "version", - "type": "TypeString", - "description": "Version of Access Policy Template.", - "computed": true - } - } - }, - { - "name": "history", - "type": "TypeList", - "description": "History of the trusted profile template.", - "computed": true, - "elem": { - "action": { - "name": "action", - "type": "TypeString", - "description": "Action of the history entry.", - "computed": true - }, - "iam_id": { - "name": "iam_id", - "type": "TypeString", - "description": "IAM ID of the identity which triggered the action.", - "computed": true - }, - "iam_id_account": { - "name": "iam_id_account", - "type": "TypeString", - "description": "Account of the identity which triggered the action.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "Message which summarizes the executed action.", - "computed": true - }, - "params": { - "name": "params", - "type": "TypeList", - "description": "Params of the history entry.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "timestamp": { - "name": "timestamp", - "type": "TypeString", - "description": "Timestamp when the action was triggered.", - "computed": true - } - } - }, + } + ], + "ibm_iam_trusted_profile_template": [ { - "name": "crn", + "name": "last_modified_at", "type": "TypeString", - "description": "Cloud resource name.", - "cloud_data_type": "crn", + "description": "Timestamp of when the template was last modified.", "computed": true }, { @@ -34962,18 +34837,18 @@ "description": "IAMid of the creator.", "computed": true }, - { - "name": "last_modified_at", - "type": "TypeString", - "description": "Timestamp of when the template was last modified.", - "computed": true - }, { "name": "template_id", "type": "TypeString", "description": "ID of the trusted profile template.", "required": true }, + { + "name": "version", + "type": "TypeString", + "description": "Version of the Profile Template.", + "optional": true + }, { "name": "profile", "type": "TypeList", @@ -35094,19 +34969,136 @@ } }, { - "name": "entity_tag", + "name": "policy_template_references", + "type": "TypeList", + "description": "Existing policy templates that you can reference to assign access in the trusted profile component.", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "ID of Access Policy Template.", + "computed": true + }, + "version": { + "name": "version", + "type": "TypeString", + "description": "Version of Access Policy Template.", + "computed": true + } + } + }, + { + "name": "history", + "type": "TypeList", + "description": "History of the trusted profile template.", + "computed": true, + "elem": { + "action": { + "name": "action", + "type": "TypeString", + "description": "Action of the history entry.", + "computed": true + }, + "iam_id": { + "name": "iam_id", + "type": "TypeString", + "description": "IAM ID of the identity which triggered the action.", + "computed": true + }, + "iam_id_account": { + "name": "iam_id_account", + "type": "TypeString", + "description": "Account of the identity which triggered the action.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "Message which summarizes the executed action.", + "computed": true + }, + "params": { + "name": "params", + "type": "TypeList", + "description": "Params of the history entry.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "timestamp": { + "name": "timestamp", + "type": "TypeString", + "description": "Timestamp when the action was triggered.", + "computed": true + } + } + }, + { + "name": "name", "type": "TypeString", - "description": "Entity tag for this templateId-version combination.", + "description": "The name of the trusted profile template. This is visible only in the enterprise account.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The description of the trusted profile template. Describe the template for enterprise account users.", + "computed": true + }, + { + "name": "committed", + "type": "TypeBool", + "description": "Committed flag determines if the template is ready for assignment.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Cloud resource name.", + "cloud_data_type": "crn", "computed": true }, + { + "name": "include_history", + "type": "TypeBool", + "description": "Defines if the entity history is included in the response.", + "default_value": false, + "optional": true + }, { "name": "id", "type": "TypeString", "description": "ID of the the template.", "computed": true + }, + { + "name": "account_id", + "type": "TypeString", + "description": "ID of the account where the template resides.", + "computed": true + }, + { + "name": "entity_tag", + "type": "TypeString", + "description": "Entity tag for this templateId-version combination.", + "computed": true + }, + { + "name": "last_modified_by_id", + "type": "TypeString", + "description": "IAMid of the identity that made the latest modification.", + "computed": true } ], "ibm_iam_trusted_profile_template_assignment": [ + { + "name": "account_id", + "type": "TypeString", + "description": "Enterprise account Id.", + "computed": true + }, { "name": "target_type", "type": "TypeString", @@ -35114,15 +35106,34 @@ "computed": true }, { - "name": "status", + "name": "href", "type": "TypeString", - "description": "Assignment status.", + "description": "Href.", "computed": true }, { - "name": "created_at", + "name": "entity_tag", "type": "TypeString", - "description": "Assignment created at.", + "description": "Entity tag for this assignment record.", + "computed": true + }, + { + "name": "include_history", + "type": "TypeBool", + "description": "Defines if the entity history is included in the response.", + "default_value": false, + "optional": true + }, + { + "name": "id", + "type": "TypeString", + "description": "Assignment record Id.", + "computed": true + }, + { + "name": "created_by_id", + "type": "TypeString", + "description": "IAMid of the identity that created the assignment.", "computed": true }, { @@ -35200,30 +35211,17 @@ } }, { - "name": "template_id", - "type": "TypeString", - "description": "Template Id.", - "computed": true - }, - { - "name": "href", + "name": "created_at", "type": "TypeString", - "description": "Href.", + "description": "Assignment created at.", "computed": true }, { - "name": "last_modified_by_id", - "type": "TypeString", - "description": "IAMid of the identity that last modified the assignment.", + "name": "template_version", + "type": "TypeInt", + "description": "Template version.", "computed": true }, - { - "name": "include_history", - "type": "TypeBool", - "description": "Defines if the entity history is included in the response.", - "default_value": false, - "optional": true - }, { "name": "resources", "type": "TypeList", @@ -35382,9 +35380,21 @@ } }, { - "name": "template_version", - "type": "TypeInt", - "description": "Template version.", + "name": "last_modified_by_id", + "type": "TypeString", + "description": "IAMid of the identity that last modified the assignment.", + "computed": true + }, + { + "name": "assignment_id", + "type": "TypeString", + "description": "ID of the Assignment Record.", + "required": true + }, + { + "name": "template_id", + "type": "TypeString", + "description": "Template Id.", "computed": true }, { @@ -35434,30 +35444,6 @@ } } }, - { - "name": "entity_tag", - "type": "TypeString", - "description": "Entity tag for this assignment record.", - "computed": true - }, - { - "name": "assignment_id", - "type": "TypeString", - "description": "ID of the Assignment Record.", - "required": true - }, - { - "name": "account_id", - "type": "TypeString", - "description": "Enterprise account Id.", - "computed": true - }, - { - "name": "created_by_id", - "type": "TypeString", - "description": "IAMid of the identity that created the assignment.", - "computed": true - }, { "name": "last_modified_at", "type": "TypeString", @@ -35465,15 +35451,15 @@ "computed": true }, { - "name": "id", + "name": "target", "type": "TypeString", - "description": "Assignment record Id.", + "description": "Assignment target.", "computed": true }, { - "name": "target", + "name": "status", "type": "TypeString", - "description": "Assignment target.", + "description": "Assignment status.", "computed": true } ], @@ -35926,27 +35912,21 @@ ], "ibm_iam_user_profile": [ { - "name": "iam_id", - "type": "TypeString", - "description": "User's IAM ID or or email of user", - "required": true - }, - { - "name": "lastname", + "name": "firstname", "type": "TypeString", - "description": "The last name of the user.", + "description": "The first name of the user.", "computed": true }, { - "name": "state", + "name": "altphonenumber", "type": "TypeString", - "description": "The state of the user. Possible values are PROCESSING, PENDING, ACTIVE, DISABLED_CLASSIC_INFRASTRUCTURE, and VPN_ONLY.", + "description": "The alternative phone number of the user.", "computed": true }, { - "name": "email", + "name": "ibm_id", "type": "TypeString", - "description": "The email of the user.", + "description": "An alphanumeric value identifying the user's IAM ID.", "computed": true }, { @@ -35956,11 +35936,17 @@ "computed": true }, { - "name": "ibm_id", + "name": "account_id", "type": "TypeString", - "description": "An alphanumeric value identifying the user's IAM ID.", + "description": "An alphanumeric value identifying the account ID.", "computed": true }, + { + "name": "iam_id", + "type": "TypeString", + "description": "User's IAM ID or or email of user", + "required": true + }, { "name": "allowed_ip_addresses", "type": "TypeList", @@ -35977,21 +35963,21 @@ "computed": true }, { - "name": "firstname", + "name": "lastname", "type": "TypeString", - "description": "The first name of the user.", + "description": "The last name of the user.", "computed": true }, { - "name": "altphonenumber", + "name": "state", "type": "TypeString", - "description": "The alternative phone number of the user.", + "description": "The state of the user. Possible values are PROCESSING, PENDING, ACTIVE, DISABLED_CLASSIC_INFRASTRUCTURE, and VPN_ONLY.", "computed": true }, { - "name": "account_id", + "name": "email", "type": "TypeString", - "description": "An alphanumeric value identifying the account ID.", + "description": "The email of the user.", "computed": true } ], @@ -36066,6 +36052,13 @@ } ], "ibm_is_backup_policies": [ + { + "name": "resource_group", + "type": "TypeString", + "description": "Filters the collection to resources in the resource group with the specified identifier", + "cloud_data_type": "resource_group", + "optional": true + }, { "name": "name", "type": "TypeString", @@ -36281,112 +36274,30 @@ } } } - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "Filters the collection to resources in the resource group with the specified identifier", - "cloud_data_type": "resource_group", - "optional": true } ], "ibm_is_backup_policy": [ { - "name": "lifecycle_state", + "name": "last_job_completed_at", "type": "TypeString", - "description": "The lifecycle state of the backup policy.", + "description": "The date and time that the most recent job for this backup policy completed.", "computed": true }, { - "name": "plans", + "name": "match_resource_types", "type": "TypeList", - "description": "The plans for the backup policy.", + "description": "A resource type this backup policy applies to. Resources that have both a matching type and a matching user tag will be subject to the backup policy.", "computed": true, "elem": { - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this backup policy plan.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this backup policy plan.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this backup policy plan.", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced.", - "computed": true - } + "type": "TypeString" } }, - { - "name": "health_state", - "type": "TypeString", - "description": "The health of this resource", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this backup policy.", - "optional": true, - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the backup policy was created.", - "computed": true - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced.", - "computed": true - }, { "name": "identifier", "type": "TypeString", "description": "The backup policy identifier.", "optional": true }, - { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this backup policy.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "last_job_completed_at", - "type": "TypeString", - "description": "The date and time that the most recent job for this backup policy completed.", - "computed": true - }, { "name": "href", "type": "TypeString", @@ -36394,13 +36305,10 @@ "computed": true }, { - "name": "match_resource_types", - "type": "TypeList", - "description": "A resource type this backup policy applies to. Resources that have both a matching type and a matching user tag will be subject to the backup policy.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the backup policy.", + "computed": true }, { "name": "match_user_tags", @@ -36439,125 +36347,171 @@ } }, { - "name": "health_reasons", + "name": "health_state", + "type": "TypeString", + "description": "The health of this resource", + "computed": true + }, + { + "name": "scope", "type": "TypeList", - "description": "The reasons for the current health_state (if any).", + "description": "The scope for this backup policy.", "computed": true, "elem": { - "code": { - "name": "code", + "crn": { + "name": "crn", "type": "TypeString", - "description": "A snake case string succinctly identifying the reason for this health state.", + "description": "The CRN for this enterprise.", "computed": true }, - "message": { - "name": "message", + "id": { + "name": "id", "type": "TypeString", - "description": "An explanation of the reason for this health state.", + "description": "The unique identifier for this enterprise or account.", "computed": true }, - "more_info": { - "name": "more_info", + "resource_type": { + "name": "resource_type", "type": "TypeString", - "description": "Link to documentation about the reason for this health state.", + "description": "The resource type.", "computed": true } } }, { - "name": "scope", + "name": "crn", + "type": "TypeString", + "description": "The CRN for this backup policy.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "plans", "type": "TypeList", - "description": "The scope for this backup policy.", + "description": "The plans for the backup policy.", "computed": true, "elem": { - "crn": { - "name": "crn", + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", "type": "TypeString", - "description": "The CRN for this enterprise.", + "description": "The URL for this backup policy plan.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this enterprise or account.", + "description": "The unique identifier for this backup policy plan.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this backup policy plan.", "computed": true }, "resource_type": { "name": "resource_type", "type": "TypeString", - "description": "The resource type.", + "description": "The type of resource referenced.", "computed": true } } - } - ], - "ibm_is_backup_policy_job": [ + }, { - "name": "status", + "name": "resource_type", "type": "TypeString", - "description": "The status of the backup policy job.The enumerated values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the backup policy job on which the unexpected property value was encountered.", + "description": "The type of resource referenced.", "computed": true }, { - "name": "job_type", + "name": "name", "type": "TypeString", - "description": "The type of backup policy job.The enumerated values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the backup policy job on which the unexpected property value was encountered.", + "description": "The unique user-defined name for this backup policy.", + "optional": true, "computed": true }, { - "name": "resource_type", + "name": "created_at", "type": "TypeString", - "description": "The resource type.", + "description": "The date and time that the backup policy was created.", "computed": true }, { - "name": "status_reasons", + "name": "health_reasons", "type": "TypeList", - "description": "The reasons for the current status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", + "description": "The reasons for the current health_state (if any).", "computed": true, "elem": { "code": { "name": "code", "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason:- `internal_error`: Internal error (contact IBM support)- `snapshot_pending`: Cannot delete backup (snapshot) in the `pending` lifecycle state- `snapshot_volume_limit`: The snapshot limit for the source volume has been reached- `source_volume_busy`: The source volume has `busy` set (after multiple retries).", + "description": "A snake case string succinctly identifying the reason for this health state.", "computed": true }, "message": { "name": "message", "type": "TypeString", - "description": "An explanation of the status reason.", + "description": "An explanation of the reason for this health state.", "computed": true }, "more_info": { "name": "more_info", "type": "TypeString", - "description": "Link to documentation about this status reason.", + "description": "Link to documentation about the reason for this health state.", "computed": true } } + } + ], + "ibm_is_backup_policy_job": [ + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the backup policy job was created.", + "computed": true }, { - "name": "identifier", + "name": "href", "type": "TypeString", - "description": "The backup policy job identifier.", - "required": true + "description": "The URL for this backup policy job.", + "computed": true }, { - "name": "auto_delete", - "type": "TypeBool", - "description": "Indicates whether this backup policy job will be automatically deleted after it completes. At present, this is always `true`, but may be modifiable in the future.", + "name": "job_type", + "type": "TypeString", + "description": "The type of backup policy job.The enumerated values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the backup policy job on which the unexpected property value was encountered.", "computed": true }, { - "name": "created_at", + "name": "identifier", "type": "TypeString", - "description": "The date and time that the backup policy job was created.", + "description": "The backup policy job identifier.", + "required": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", "computed": true }, { - "name": "href", + "name": "status", "type": "TypeString", - "description": "The URL for this backup policy job.", + "description": "The status of the backup policy job.The enumerated values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the backup policy job on which the unexpected property value was encountered.", "computed": true }, { @@ -36612,18 +36566,6 @@ } } }, - { - "name": "backup_policy_id", - "type": "TypeString", - "description": "The backup policy identifier.", - "required": true - }, - { - "name": "auto_delete_after", - "type": "TypeInt", - "description": "If `auto_delete` is `true`, the days after completion that this backup policy job will be deleted. This value may be modifiable in the future.", - "computed": true - }, { "name": "backup_policy_plan", "type": "TypeList", @@ -36670,6 +36612,56 @@ } } }, + { + "name": "completed_at", + "type": "TypeString", + "description": "The date and time that the backup policy job was completed.", + "computed": true + }, + { + "name": "status_reasons", + "type": "TypeList", + "description": "The reasons for the current status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the status reason:- `internal_error`: Internal error (contact IBM support)- `snapshot_pending`: Cannot delete backup (snapshot) in the `pending` lifecycle state- `snapshot_volume_limit`: The snapshot limit for the source volume has been reached- `source_volume_busy`: The source volume has `busy` set (after multiple retries).", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the status reason.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about this status reason.", + "computed": true + } + } + }, + { + "name": "backup_policy_id", + "type": "TypeString", + "description": "The backup policy identifier.", + "required": true + }, + { + "name": "auto_delete", + "type": "TypeBool", + "description": "Indicates whether this backup policy job will be automatically deleted after it completes. At present, this is always `true`, but may be modifiable in the future.", + "computed": true + }, + { + "name": "auto_delete_after", + "type": "TypeInt", + "description": "If `auto_delete` is `true`, the days after completion that this backup policy job will be deleted. This value may be modifiable in the future.", + "computed": true + }, { "name": "source_volume", "type": "TypeList", @@ -36715,24 +36707,9 @@ "computed": true } } - }, - { - "name": "completed_at", - "type": "TypeString", - "description": "The date and time that the backup policy job was completed.", - "computed": true } ], "ibm_is_backup_policy_jobs": [ - { - "name": "target_snapshots_id", - "type": "TypeSet", - "description": "Filters the collection to resources with the target snapshot with the specified identifier", - "optional": true, - "elem": { - "type": "TypeString" - } - }, { "name": "target_snapshots_crn", "type": "TypeSet", @@ -36997,15 +36974,61 @@ "type": "TypeString", "description": "Filters the collection to backup policy jobs with a source with the specified identifier", "optional": true + }, + { + "name": "target_snapshots_id", + "type": "TypeSet", + "description": "Filters the collection to resources with the target snapshot with the specified identifier", + "optional": true, + "elem": { + "type": "TypeString" + } } ], "ibm_is_backup_policy_plan": [ { - "name": "lifecycle_state", + "name": "clone_policy", + "type": "TypeList", + "computed": true, + "elem": { + "max_snapshots": { + "name": "max_snapshots", + "type": "TypeInt", + "description": "The maximum number of recent snapshots (per source) that will keep clones.", + "computed": true + }, + "zones": { + "name": "zones", + "type": "TypeSet", + "description": "The zone this backup policy plan will create snapshot clones in.", + "computed": true, + "elem": { + "type": "TypeString" + } + } + } + }, + { + "name": "identifier", "type": "TypeString", - "description": "The lifecycle state of this backup policy plan.", + "description": "The backup policy plan identifier.", + "optional": true + }, + { + "name": "active", + "type": "TypeBool", + "description": "Indicates whether the plan is active.", "computed": true }, + { + "name": "attach_user_tags", + "type": "TypeList", + "description": "User tags to attach to each resource created by this plan.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "remote_region_policy", "type": "TypeList", @@ -37033,21 +37056,40 @@ } }, { - "name": "resource_type", + "name": "backup_policy_id", "type": "TypeString", - "description": "The type of resource referenced.", - "computed": true + "description": "The backup policy identifier.", + "required": true }, { - "name": "identifier", + "name": "deletion_trigger", + "type": "TypeList", + "computed": true, + "elem": { + "delete_after": { + "name": "delete_after", + "type": "TypeInt", + "description": "The maximum number of days to keep each backup after creation.", + "computed": true + }, + "delete_over_count": { + "name": "delete_over_count", + "type": "TypeInt", + "description": "The maximum number of recent backups to keep. If absent, there is no maximum.", + "computed": true + } + } + }, + { + "name": "lifecycle_state", "type": "TypeString", - "description": "The backup policy plan identifier.", - "optional": true + "description": "The lifecycle state of this backup policy plan.", + "computed": true }, { - "name": "active", - "type": "TypeBool", - "description": "Indicates whether the plan is active.", + "name": "resource_type", + "type": "TypeString", + "description": "The type of resource referenced.", "computed": true }, { @@ -37068,40 +37110,6 @@ "description": "The URL for this backup policy plan.", "computed": true }, - { - "name": "backup_policy_id", - "type": "TypeString", - "description": "The backup policy identifier.", - "required": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the backup policy plan was created.", - "computed": true - }, - { - "name": "clone_policy", - "type": "TypeList", - "computed": true, - "elem": { - "max_snapshots": { - "name": "max_snapshots", - "type": "TypeInt", - "description": "The maximum number of recent snapshots (per source) that will keep clones.", - "computed": true - }, - "zones": { - "name": "zones", - "type": "TypeSet", - "description": "The zone this backup policy plan will create snapshot clones in.", - "computed": true, - "elem": { - "type": "TypeString" - } - } - } - }, { "name": "name", "type": "TypeString", @@ -37110,35 +37118,19 @@ "computed": true }, { - "name": "attach_user_tags", - "type": "TypeList", - "description": "User tags to attach to each resource created by this plan.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "deletion_trigger", - "type": "TypeList", - "computed": true, - "elem": { - "delete_after": { - "name": "delete_after", - "type": "TypeInt", - "description": "The maximum number of days to keep each backup after creation.", - "computed": true - }, - "delete_over_count": { - "name": "delete_over_count", - "type": "TypeInt", - "description": "The maximum number of recent backups to keep. If absent, there is no maximum.", - "computed": true - } - } + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the backup policy plan was created.", + "computed": true } ], "ibm_is_backup_policy_plans": [ + { + "name": "backup_policy_id", + "type": "TypeString", + "description": "The backup policy identifier.", + "required": true + }, { "name": "name", "type": "TypeString", @@ -37282,53 +37274,19 @@ "computed": true } } - }, - { - "name": "backup_policy_id", - "type": "TypeString", - "description": "The backup policy identifier.", - "required": true } ], "ibm_is_bare_metal_server": [ { - "name": "resource_type", - "type": "TypeString", - "description": "Resource type name", + "name": "bandwidth", + "type": "TypeInt", + "description": "The total bandwidth (in megabits per second)", "computed": true }, { - "name": "trusted_platform_module", - "type": "TypeList", - "computed": true, - "elem": { - "enabled": { - "name": "enabled", - "type": "TypeBool", - "description": "Indicates whether the trusted platform module is enabled.", - "computed": true - }, - "mode": { - "name": "mode", - "type": "TypeString", - "description": "The trusted platform module mode to use. The specified value must be listed in the bare metal server profile's supported_trusted_platform_module_modes", - "computed": true - }, - "supported_modes": { - "name": "supported_modes", - "type": "TypeSet", - "description": "The trusted platform module (TPM) mode:: disabled: No TPM functionality, tpm_2: TPM 2.0. The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered. Enum: [ disabled, tpm_2 ]", - "computed": true, - "elem": { - "type": "TypeString" - } - } - } - }, - { - "name": "created_at", + "name": "boot_target", "type": "TypeString", - "description": "The date and time that the bare metal server was created", + "description": "The unique identifier for this bare metal server disk", "computed": true }, { @@ -37363,99 +37321,6 @@ } } }, - { - "name": "image", - "type": "TypeString", - "description": "image name", - "computed": true - }, - { - "name": "zone", - "type": "TypeString", - "description": "Zone name", - "computed": true - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "Resource group name", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Bare metal server name", - "optional": true, - "computed": true - }, - { - "name": "boot_target", - "type": "TypeString", - "description": "The unique identifier for this bare metal server disk", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this bare metal server", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "Tags for the Bare metal server", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "profile", - "type": "TypeString", - "description": "profil name", - "computed": true - }, - { - "name": "vpc", - "type": "TypeString", - "description": "The VPC the bare metal server is to be a part of", - "computed": true - }, - { - "name": "identifier", - "type": "TypeString", - "optional": true, - "computed": true - }, - { - "name": "bandwidth", - "type": "TypeInt", - "description": "The total bandwidth (in megabits per second)", - "computed": true - }, - { - "name": "enable_secure_boot", - "type": "TypeBool", - "description": "Indicates whether secure boot is enabled. If enabled, the image must support secure boot or the server will fail to boot.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this bare metal server", - "computed": true - }, - { - "name": "memory", - "type": "TypeInt", - "description": "The amount of memory, truncated to whole gibibytes", - "computed": true - }, { "name": "primary_network_interface", "type": "TypeList", @@ -37543,20 +37408,122 @@ } }, { - "name": "status", + "name": "keys", + "type": "TypeSet", + "description": "SSH key Ids for the bare metal server", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "image", "type": "TypeString", - "description": "Bare metal server status", + "description": "image name", "computed": true }, { - "name": "access_tags", + "name": "identifier", + "type": "TypeString", + "optional": true, + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Bare metal server name", + "optional": true, + "computed": true + }, + { + "name": "trusted_platform_module", + "type": "TypeList", + "computed": true, + "elem": { + "enabled": { + "name": "enabled", + "type": "TypeBool", + "description": "Indicates whether the trusted platform module is enabled.", + "computed": true + }, + "mode": { + "name": "mode", + "type": "TypeString", + "description": "The trusted platform module mode to use. The specified value must be listed in the bare metal server profile's supported_trusted_platform_module_modes", + "computed": true + }, + "supported_modes": { + "name": "supported_modes", + "type": "TypeSet", + "description": "The trusted platform module (TPM) mode:: disabled: No TPM functionality, tpm_2: TPM 2.0. The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered. Enum: [ disabled, tpm_2 ]", + "computed": true, + "elem": { + "type": "TypeString" + } + } + } + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the bare metal server was created", + "computed": true + }, + { + "name": "memory", + "type": "TypeInt", + "description": "The amount of memory, truncated to whole gibibytes", + "computed": true + }, + { + "name": "vpc", + "type": "TypeString", + "description": "The VPC the bare metal server is to be a part of", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "Resource type name", + "computed": true + }, + { + "name": "tags", "type": "TypeSet", - "description": "List of access tags", + "description": "Tags for the Bare metal server", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", "computed": true, "elem": { "type": "TypeString" } }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this bare metal server", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "profile", + "type": "TypeString", + "description": "profil name", + "computed": true + }, + { + "name": "zone", + "type": "TypeString", + "description": "Zone name", + "computed": true + }, + { + "name": "enable_secure_boot", + "type": "TypeBool", + "description": "Indicates whether secure boot is enabled. If enabled, the image must support secure boot or the server will fail to boot.", + "computed": true + }, { "name": "disks", "type": "TypeList", @@ -37601,6 +37568,12 @@ } } }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this bare metal server", + "computed": true + }, { "name": "network_interfaces", "type": "TypeList", @@ -37682,13 +37655,17 @@ } }, { - "name": "keys", - "type": "TypeSet", - "description": "SSH key Ids for the bare metal server", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "resource_group", + "type": "TypeString", + "description": "Resource group name", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Bare metal server status", + "computed": true }, { "name": "status_reasons", @@ -37714,9 +37691,24 @@ "computed": true } } + }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access tags", + "computed": true, + "elem": { + "type": "TypeString" + } } ], "ibm_is_bare_metal_server_disk": [ + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type", + "computed": true + }, { "name": "size", "type": "TypeInt", @@ -37758,12 +37750,6 @@ "type": "TypeString", "description": "The user-defined name for this disk", "computed": true - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type", - "computed": true } ], "ibm_is_bare_metal_server_disks": [ @@ -37819,6 +37805,13 @@ } ], "ibm_is_bare_metal_server_initialization": [ + { + "name": "private_key", + "type": "TypeString", + "description": "Bare Metal Server Private Key file", + "secure": true, + "optional": true + }, { "name": "passphrase", "type": "TypeString", @@ -37892,32 +37885,19 @@ "type": "TypeString", "description": "The bare metal server identifier", "required": true - }, - { - "name": "private_key", - "type": "TypeString", - "description": "Bare Metal Server Private Key file", - "secure": true, - "optional": true } ], "ibm_is_bare_metal_server_network_interface": [ { - "name": "allow_ip_spoofing", - "type": "TypeBool", - "description": "Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface.", - "computed": true - }, - { - "name": "mac_address", + "name": "name", "type": "TypeString", - "description": "The MAC address of the interface. If absent, the value is not known.", + "description": "The user-defined name for this network interface", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this network interface", + "name": "port_speed", + "type": "TypeInt", + "description": "The network interface port speed in Mbps", "computed": true }, { @@ -37959,15 +37939,9 @@ } }, { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type : [ subnet_reserved_ip ]", - "computed": true - }, - { - "name": "subnet", + "name": "status", "type": "TypeString", - "description": "The id of the associated subnet", + "description": "The status of the network interface : [ available, deleting, failed, pending ]", "computed": true }, { @@ -37976,6 +37950,18 @@ "description": "Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface", "computed": true }, + { + "name": "allow_interface_to_float", + "type": "TypeBool", + "description": "Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.", + "computed": true + }, + { + "name": "allow_ip_spoofing", + "type": "TypeBool", + "description": "Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface.", + "computed": true + }, { "name": "enable_infrastructure_nat", "type": "TypeBool", @@ -37989,9 +37975,15 @@ "computed": true }, { - "name": "port_speed", - "type": "TypeInt", - "description": "The network interface port speed in Mbps", + "name": "mac_address", + "type": "TypeString", + "description": "The MAC address of the interface. If absent, the value is not known.", + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "The type of this bare metal server network interface : [ primary, secondary ]", "computed": true }, { @@ -38003,30 +37995,6 @@ "type": "TypeInt" } }, - { - "name": "type", - "type": "TypeString", - "description": "The type of this bare metal server network interface : [ primary, secondary ]", - "computed": true - }, - { - "name": "allow_interface_to_float", - "type": "TypeBool", - "description": "Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.", - "computed": true - }, - { - "name": "bare_metal_server", - "type": "TypeString", - "description": "The bare metal server identifier", - "required": true - }, - { - "name": "network_interface", - "type": "TypeString", - "description": "The bare metal server network interface identifier", - "required": true - }, { "name": "floating_ips", "type": "TypeList", @@ -38078,6 +38046,24 @@ "description": "The network interface type: [ pci, vlan ]", "computed": true }, + { + "name": "bare_metal_server", + "type": "TypeString", + "description": "The bare metal server identifier", + "required": true + }, + { + "name": "network_interface", + "type": "TypeString", + "description": "The bare metal server network interface identifier", + "required": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type : [ subnet_reserved_ip ]", + "computed": true + }, { "name": "security_groups", "type": "TypeSet", @@ -38088,24 +38074,18 @@ } }, { - "name": "status", + "name": "subnet", "type": "TypeString", - "description": "The status of the network interface : [ available, deleting, failed, pending ]", + "description": "The id of the associated subnet", "computed": true } ], "ibm_is_bare_metal_server_network_interface_floating_ip": [ { - "name": "bare_metal_server", - "type": "TypeString", - "description": "The bare metal server identifier", - "required": true - }, - { - "name": "floating_ip", + "name": "name", "type": "TypeString", - "description": "The floating ip identifier of the network interface associated with the bare metal server", - "required": true + "description": "Name of the floating IP", + "computed": true }, { "name": "address", @@ -38114,9 +38094,9 @@ "computed": true }, { - "name": "target", + "name": "zone", "type": "TypeString", - "description": "Target info", + "description": "Zone name", "computed": true }, { @@ -38127,27 +38107,33 @@ "computed": true }, { - "name": "network_interface", + "name": "bare_metal_server", "type": "TypeString", - "description": "The network interface identifier of bare metal server", + "description": "The bare metal server identifier", "required": true }, { - "name": "name", + "name": "floating_ip", "type": "TypeString", - "description": "Name of the floating IP", - "computed": true + "description": "The floating ip identifier of the network interface associated with the bare metal server", + "required": true }, { - "name": "status", + "name": "target", "type": "TypeString", - "description": "Floating IP status", + "description": "Target info", "computed": true }, { - "name": "zone", + "name": "network_interface", "type": "TypeString", - "description": "Zone name", + "description": "The network interface identifier of bare metal server", + "required": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Floating IP status", "computed": true } ], @@ -38217,9 +38203,21 @@ ], "ibm_is_bare_metal_server_network_interface_reserved_ip": [ { - "name": "created_at", + "name": "address", "type": "TypeString", - "description": "The date and time that the reserved IP was created.", + "description": "The IP address", + "computed": true + }, + { + "name": "owner", + "type": "TypeString", + "description": "The owner of a reserved IP, defining whether it is managed by the user or the provider.", + "computed": true + }, + { + "name": "target", + "type": "TypeString", + "description": "Reserved IP target id.", "computed": true }, { @@ -38241,10 +38239,10 @@ "computed": true }, { - "name": "target", + "name": "bare_metal_server", "type": "TypeString", - "description": "Reserved IP target id.", - "computed": true + "description": "The Bare Metal Server identifier.", + "required": true }, { "name": "network_interface", @@ -38265,31 +38263,13 @@ "computed": true }, { - "name": "bare_metal_server", - "type": "TypeString", - "description": "The Bare Metal Server identifier.", - "required": true - }, - { - "name": "address", - "type": "TypeString", - "description": "The IP address", - "computed": true - }, - { - "name": "owner", + "name": "created_at", "type": "TypeString", - "description": "The owner of a reserved IP, defining whether it is managed by the user or the provider.", + "description": "The date and time that the reserved IP was created.", "computed": true } ], "ibm_is_bare_metal_server_network_interface_reserved_ips": [ - { - "name": "total_count", - "type": "TypeInt", - "description": "The total number of resources across all pages", - "computed": true - }, { "name": "bare_metal_server", "type": "TypeString", @@ -38363,6 +38343,12 @@ "computed": true } } + }, + { + "name": "total_count", + "type": "TypeInt", + "description": "The total number of resources across all pages", + "computed": true } ], "ibm_is_bare_metal_server_network_interfaces": [ @@ -38568,9 +38554,40 @@ ], "ibm_is_bare_metal_server_profile": [ { - "name": "memory", + "name": "network_interface_count", "type": "TypeList", - "description": "The memory (in gibibytes) for a bare metal server with this profile", + "computed": true, + "elem": { + "max": { + "name": "max", + "type": "TypeInt", + "description": "The maximum value for this profile field.", + "computed": true + }, + "min": { + "name": "min", + "type": "TypeInt", + "description": "The minimum value for this profile field.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + } + } + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type for this bare metal server profile", + "computed": true + }, + { + "name": "cpu_socket_count", + "type": "TypeList", + "description": "The number of CPU sockets for a bare metal server with this profile", "computed": true, "elem": { "type": { @@ -38616,83 +38633,6 @@ } } }, - { - "name": "disks", - "type": "TypeList", - "description": "Collection of the bare metal server profile's disks", - "computed": true, - "elem": { - "quantity": { - "name": "quantity", - "type": "TypeList", - "description": "The number of disks of this configuration for a bare metal server with this profile", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", - "description": "The value for this profile field", - "computed": true - } - } - }, - "size": { - "name": "size", - "type": "TypeList", - "description": "The size of the disk in GB (gigabytes)", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", - "description": "The value for this profile field", - "computed": true - } - } - }, - "supported_interface_types": { - "name": "supported_interface_types", - "type": "TypeList", - "description": "The disk interface used for attaching the disk.", - "computed": true, - "elem": { - "default": { - "name": "default", - "type": "TypeString", - "description": "The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field", - "computed": true - }, - "values": { - "name": "values", - "type": "TypeSet", - "description": "The supported disk interfaces used for attaching the disk", - "computed": true, - "elem": { - "type": "TypeString" - } - } - } - } - } - }, { "name": "name", "type": "TypeString", @@ -38700,9 +38640,15 @@ "required": true }, { - "name": "cpu_socket_count", + "name": "family", + "type": "TypeString", + "description": "The product family this bare metal server profile belongs to", + "computed": true + }, + { + "name": "cpu_architecture", "type": "TypeList", - "description": "The number of CPU sockets for a bare metal server with this profile", + "description": "The CPU architecture for a bare metal server with this profile", "computed": true, "elem": { "type": { @@ -38713,16 +38659,16 @@ }, "value": { "name": "value", - "type": "TypeInt", + "type": "TypeString", "description": "The value for this profile field", "computed": true } } }, { - "name": "cpu_core_count", + "name": "memory", "type": "TypeList", - "description": "The CPU core count for a bare metal server with this profile", + "description": "The memory (in gibibytes) for a bare metal server with this profile", "computed": true, "elem": { "type": { @@ -38740,9 +38686,9 @@ } }, { - "name": "resource_type", + "name": "href", "type": "TypeString", - "description": "The resource type for this bare metal server profile", + "description": "The URL for this bare metal server profile", "computed": true }, { @@ -38766,46 +38712,41 @@ } }, { - "name": "network_interface_count", + "name": "cpu_core_count", "type": "TypeList", + "description": "The CPU core count for a bare metal server with this profile", "computed": true, "elem": { - "max": { - "name": "max", - "type": "TypeInt", - "description": "The maximum value for this profile field.", - "computed": true - }, - "min": { - "name": "min", - "type": "TypeInt", - "description": "The minimum value for this profile field.", - "computed": true - }, "type": { "name": "type", "type": "TypeString", - "description": "The type for this profile field.", + "description": "The type for this profile field", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "The value for this profile field", "computed": true } } }, { - "name": "console_types", + "name": "supported_trusted_platform_module_modes", "type": "TypeList", - "description": "The console type configuration for a bare metal server with this profile.", + "description": "An array of supported trusted platform module (TPM) modes for this bare metal server profile", "computed": true, "elem": { "type": { "name": "type", "type": "TypeString", - "description": "The type for this profile field.", + "description": "The type for this profile field", "computed": true }, "values": { "name": "values", - "type": "TypeList", - "description": "The console types for a bare metal server with this profile.", + "type": "TypeSet", + "description": "The supported trusted platform module (TPM) modes", "computed": true, "elem": { "type": "TypeString" @@ -38814,59 +38755,104 @@ } }, { - "name": "cpu_architecture", + "name": "console_types", "type": "TypeList", - "description": "The CPU architecture for a bare metal server with this profile", + "description": "The console type configuration for a bare metal server with this profile.", "computed": true, "elem": { "type": { "name": "type", "type": "TypeString", - "description": "The type for this profile field", + "description": "The type for this profile field.", "computed": true }, - "value": { - "name": "value", - "type": "TypeString", - "description": "The value for this profile field", - "computed": true + "values": { + "name": "values", + "type": "TypeList", + "description": "The console types for a bare metal server with this profile.", + "computed": true, + "elem": { + "type": "TypeString" + } } } }, { - "name": "supported_trusted_platform_module_modes", + "name": "disks", "type": "TypeList", - "description": "An array of supported trusted platform module (TPM) modes for this bare metal server profile", + "description": "Collection of the bare metal server profile's disks", "computed": true, "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field", - "computed": true + "quantity": { + "name": "quantity", + "type": "TypeList", + "description": "The number of disks of this configuration for a bare metal server with this profile", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "The value for this profile field", + "computed": true + } + } }, - "values": { - "name": "values", - "type": "TypeSet", - "description": "The supported trusted platform module (TPM) modes", + "size": { + "name": "size", + "type": "TypeList", + "description": "The size of the disk in GB (gigabytes)", "computed": true, "elem": { - "type": "TypeString" + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "The value for this profile field", + "computed": true + } + } + }, + "supported_interface_types": { + "name": "supported_interface_types", + "type": "TypeList", + "description": "The disk interface used for attaching the disk.", + "computed": true, + "elem": { + "default": { + "name": "default", + "type": "TypeString", + "description": "The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field", + "computed": true + }, + "values": { + "name": "values", + "type": "TypeSet", + "description": "The supported disk interfaces used for attaching the disk", + "computed": true, + "elem": { + "type": "TypeString" + } + } } } } - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this bare metal server profile", - "computed": true - }, - { - "name": "family", - "type": "TypeString", - "description": "The product family this bare metal server profile belongs to", - "computed": true } ], "ibm_is_bare_metal_server_profiles": [ @@ -39193,12 +39179,24 @@ "description": "The vpc CRN this bare metal server is in", "optional": true }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the bare metal server", + "optional": true + }, { "name": "network_interfaces_subnet", "type": "TypeString", "description": "The ID of the subnet of the bare metal server network interfaces", "optional": true }, + { + "name": "network_interfaces_subnet_crn", + "type": "TypeString", + "description": "The crn of the subnet of the bare metal server network interfaces", + "optional": true + }, { "name": "servers", "type": "TypeList", @@ -39633,15 +39631,15 @@ "optional": true }, { - "name": "vpc_name", + "name": "vpc", "type": "TypeString", - "description": "The vpc name this bare metal server is in", + "description": "The vpc ID this bare metal server is in", "optional": true }, { - "name": "network_interfaces_subnet_crn", + "name": "vpc_name", "type": "TypeString", - "description": "The crn of the subnet of the bare metal server network interfaces", + "description": "The vpc name this bare metal server is in", "optional": true }, { @@ -39649,21 +39647,43 @@ "type": "TypeString", "description": "The name of the subnet of the bare metal server network interfaces", "optional": true - }, + } + ], + "ibm_is_dedicated_host": [ { - "name": "vpc", + "name": "resource_group", "type": "TypeString", - "description": "The vpc ID this bare metal server is in", - "optional": true + "description": "The unique identifier of the resource group this dedicated host belongs to", + "cloud_data_type": "resource_group", + "optional": true, + "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The name of the bare metal server", - "optional": true - } - ], - "ibm_is_dedicated_host": [ + "name": "available_vcpu", + "type": "TypeList", + "description": "The available VCPU for the dedicated host.", + "computed": true, + "elem": { + "architecture": { + "name": "architecture", + "type": "TypeString", + "description": "The VCPU architecture.", + "computed": true + }, + "count": { + "name": "count", + "type": "TypeInt", + "description": "The number of VCPUs assigned.", + "computed": true + }, + "manufacturer": { + "name": "manufacturer", + "type": "TypeString", + "description": "The VCPU manufacturer.", + "computed": true + } + } + }, { "name": "crn", "type": "TypeString", @@ -39678,31 +39698,69 @@ "computed": true }, { - "name": "profile", + "name": "instance_placement_enabled", + "type": "TypeBool", + "description": "If set to true, instances can be placed on this dedicated host.", + "computed": true + }, + { + "name": "instances", "type": "TypeList", - "description": "The profile this dedicated host uses.", + "description": "Array of instances that are allocated to this dedicated host.", "computed": true, "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this virtual server instance.", + "computed": true + }, + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, "href": { "name": "href", "type": "TypeString", - "description": "The URL for this dedicated host.", + "description": "The URL for this virtual server instance.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this virtual server instance.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The globally unique name for this dedicated host profile.", + "description": "The user-defined name for this virtual server instance (and default system hostname).", "computed": true } } }, { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced.", + "name": "provisionable", + "type": "TypeBool", + "description": "Indicates whether this dedicated host is available for instance creation.", "computed": true }, + { + "name": "host_group", + "type": "TypeString", + "description": "The unique identifier of the dedicated host group this dedicated host belongs to", + "required": true + }, { "name": "socket_count", "type": "TypeInt", @@ -39710,23 +39768,42 @@ "computed": true }, { - "name": "state", + "name": "zone", "type": "TypeString", - "description": "The administrative state of the dedicated host.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the dedicated host on which the unexpected property value was encountered.", + "description": "The globally unique name of the zone this dedicated host resides in.", "computed": true }, { - "name": "resource_group", + "name": "access_tags", + "type": "TypeSet", + "description": "List of access tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "name", "type": "TypeString", - "description": "The unique identifier of the resource group this dedicated host belongs to", - "cloud_data_type": "resource_group", - "optional": true, + "description": "The unique name of this dedicated host", + "required": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the dedicated host was created.", "computed": true }, { - "name": "available_vcpu", + "name": "state", + "type": "TypeString", + "description": "The administrative state of the dedicated host.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the dedicated host on which the unexpected property value was encountered.", + "computed": true + }, + { + "name": "vcpu", "type": "TypeList", - "description": "The available VCPU for the dedicated host.", + "description": "The total VCPU of the dedicated host.", "computed": true, "elem": { "architecture": { @@ -39750,9 +39827,29 @@ } }, { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the dedicated host was created.", + "name": "supported_instance_profiles", + "type": "TypeList", + "description": "Array of instance profiles that can be used by instances placed on this dedicated host.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this virtual server instance profile.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The globally unique name for this virtual server instance profile.", + "computed": true + } + } + }, + { + "name": "available_memory", + "type": "TypeInt", + "description": "The amount of memory in gibibytes that is currently available for instances.", "computed": true }, { @@ -39879,56 +39976,16 @@ } }, { - "name": "instance_placement_enabled", - "type": "TypeBool", - "description": "If set to true, instances can be placed on this dedicated host.", + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the dedicated host resource.", "computed": true }, { - "name": "instances", - "type": "TypeList", - "description": "Array of instances that are allocated to this dedicated host.", - "computed": true, - "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this virtual server instance.", - "computed": true - }, - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this virtual server instance.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this virtual server instance.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this virtual server instance (and default system hostname).", - "computed": true - } - } + "name": "memory", + "type": "TypeInt", + "description": "The total amount of memory in gibibytes for this host.", + "computed": true }, { "name": "numa", @@ -39965,173 +40022,54 @@ } }, { - "name": "supported_instance_profiles", + "name": "profile", "type": "TypeList", - "description": "Array of instance profiles that can be used by instances placed on this dedicated host.", + "description": "The profile this dedicated host uses.", "computed": true, "elem": { "href": { "name": "href", "type": "TypeString", - "description": "The URL for this virtual server instance profile.", + "description": "The URL for this dedicated host.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The globally unique name for this virtual server instance profile.", + "description": "The globally unique name for this dedicated host profile.", "computed": true } } }, { - "name": "name", + "name": "resource_type", "type": "TypeString", - "description": "The unique name of this dedicated host", - "required": true - }, - { - "name": "available_memory", - "type": "TypeInt", - "description": "The amount of memory in gibibytes that is currently available for instances.", - "computed": true - }, - { - "name": "memory", - "type": "TypeInt", - "description": "The total amount of memory in gibibytes for this host.", - "computed": true - }, - { - "name": "provisionable", - "type": "TypeBool", - "description": "Indicates whether this dedicated host is available for instance creation.", + "description": "The type of resource referenced.", "computed": true - }, + } + ], + "ibm_is_dedicated_host_disk": [ { - "name": "vcpu", + "name": "supported_instance_interface_types", "type": "TypeList", - "description": "The total VCPU of the dedicated host.", - "computed": true, - "elem": { - "architecture": { - "name": "architecture", - "type": "TypeString", - "description": "The VCPU architecture.", - "computed": true - }, - "count": { - "name": "count", - "type": "TypeInt", - "description": "The number of VCPUs assigned.", - "computed": true - }, - "manufacturer": { - "name": "manufacturer", - "type": "TypeString", - "description": "The VCPU manufacturer.", - "computed": true - } - } - }, - { - "name": "zone", - "type": "TypeString", - "description": "The globally unique name of the zone this dedicated host resides in.", - "computed": true - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access tags", + "description": "The instance disk interfaces supported for this dedicated host disk.", "computed": true, "elem": { "type": "TypeString" } }, - { - "name": "host_group", - "type": "TypeString", - "description": "The unique identifier of the dedicated host group this dedicated host belongs to", - "required": true - }, - { - "name": "lifecycle_state", - "type": "TypeString", - "description": "The lifecycle state of the dedicated host resource.", - "computed": true - } - ], - "ibm_is_dedicated_host_disk": [ - { - "name": "provisionable", - "type": "TypeBool", - "description": "Indicates whether this dedicated host disk is available for instance disk creation.", - "computed": true - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced.", - "computed": true - }, - { - "name": "size", - "type": "TypeInt", - "description": "The size of the disk in GB (gigabytes).", - "computed": true - }, - { - "name": "dedicated_host", - "type": "TypeString", - "description": "The dedicated host identifier.", - "required": true - }, { "name": "disk", "type": "TypeString", "description": "The dedicated host disk identifier.", "required": true }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this disk.", - "computed": true - }, - { - "name": "interface_type", - "type": "TypeString", - "description": "The disk interface used for attaching the diskThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The user-defined or system-provided name for this disk.", - "computed": true - }, - { - "name": "supported_instance_interface_types", - "type": "TypeList", - "description": "The instance disk interfaces supported for this dedicated host disk.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "available", "type": "TypeInt", "description": "The remaining space left for instance placement in GB (gigabytes).", "computed": true }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the disk was created.", - "computed": true - }, { "name": "instance_disks", "type": "TypeList", @@ -40183,6 +40121,54 @@ "type": "TypeString", "description": "The lifecycle state of this dedicated host disk.", "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The user-defined or system-provided name for this disk.", + "computed": true + }, + { + "name": "provisionable", + "type": "TypeBool", + "description": "Indicates whether this dedicated host disk is available for instance disk creation.", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The type of resource referenced.", + "computed": true + }, + { + "name": "size", + "type": "TypeInt", + "description": "The size of the disk in GB (gigabytes).", + "computed": true + }, + { + "name": "dedicated_host", + "type": "TypeString", + "description": "The dedicated host identifier.", + "required": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the disk was created.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this disk.", + "computed": true + }, + { + "name": "interface_type", + "type": "TypeString", + "description": "The disk interface used for attaching the diskThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", + "computed": true } ], "ibm_is_dedicated_host_disks": [ @@ -40317,64 +40303,6 @@ } ], "ibm_is_dedicated_host_group": [ - { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this dedicated host. If unspecified, the name will be a hyphenated list of randomly-selected words.", - "required": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the dedicated host group was created.", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this dedicated host group.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "The unique identifier of the resource group for this dedicated host group.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "supported_instance_profiles", - "type": "TypeList", - "description": "Array of instance profiles that can be used by instances placed on this dedicated host group.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this virtual server instance profile.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The globally unique name for this virtual server instance profile.", - "computed": true - } - } - }, - { - "name": "zone", - "type": "TypeString", - "description": "The globally unique name of the zone this dedicated host group resides in.", - "computed": true - }, - { - "name": "class", - "type": "TypeString", - "description": "The dedicated host profile class for hosts in this group.", - "computed": true - }, { "name": "dedicated_hosts", "type": "TypeList", @@ -40428,15 +40356,16 @@ } }, { - "name": "family", + "name": "href", "type": "TypeString", - "description": "The dedicated host profile family for hosts in this group.", + "description": "The URL for this dedicated host group.", "computed": true }, { - "name": "href", + "name": "resource_group", "type": "TypeString", - "description": "The URL for this dedicated host group.", + "description": "The unique identifier of the resource group for this dedicated host group.", + "cloud_data_type": "resource_group", "computed": true }, { @@ -40444,28 +40373,66 @@ "type": "TypeString", "description": "The type of resource referenced.", "computed": true - } - ], - "ibm_is_dedicated_host_groups": [ + }, { - "name": "resource_group", + "name": "zone", "type": "TypeString", - "description": "The unique identifier of the resource group this dedicated host group belongs to", - "cloud_data_type": "resource_group", - "optional": true + "description": "The globally unique name of the zone this dedicated host group resides in.", + "computed": true }, { - "name": "zone", + "name": "class", "type": "TypeString", - "description": "The zone name this dedicated host group is in", - "optional": true + "description": "The dedicated host profile class for hosts in this group.", + "computed": true }, { - "name": "name", + "name": "created_at", "type": "TypeString", - "description": "The name of the dedicated host group", - "optional": true + "description": "The date and time that the dedicated host group was created.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this dedicated host group.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "family", + "type": "TypeString", + "description": "The dedicated host profile family for hosts in this group.", + "computed": true + }, + { + "name": "supported_instance_profiles", + "type": "TypeList", + "description": "Array of instance profiles that can be used by instances placed on this dedicated host group.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this virtual server instance profile.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The globally unique name for this virtual server instance profile.", + "computed": true + } + } }, + { + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this dedicated host. If unspecified, the name will be a hyphenated list of randomly-selected words.", + "required": true + } + ], + "ibm_is_dedicated_host_groups": [ { "name": "host_groups", "type": "TypeList", @@ -40611,233 +40578,34 @@ "type": "TypeInt", "description": "The total number of resources across all pages.", "computed": true - } - ], - "ibm_is_dedicated_host_profile": [ - { - "name": "memory", - "type": "TypeList", - "computed": true, - "elem": { - "default": { - "name": "default", - "type": "TypeInt", - "description": "The default value for this profile field.", - "computed": true - }, - "max": { - "name": "max", - "type": "TypeInt", - "description": "The maximum value for this profile field.", - "computed": true - }, - "min": { - "name": "min", - "type": "TypeInt", - "description": "The minimum value for this profile field.", - "computed": true - }, - "step": { - "name": "step", - "type": "TypeInt", - "description": "The increment step value for this profile field.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", - "description": "The value for this profile field.", - "computed": true - }, - "values": { - "name": "values", - "type": "TypeList", - "description": "The permitted values for this profile field.", - "computed": true, - "elem": { - "type": "TypeInt" - } - } - } }, { - "name": "socket_count", - "type": "TypeList", - "computed": true, - "elem": { - "default": { - "name": "default", - "type": "TypeInt", - "description": "The default value for this profile field.", - "computed": true - }, - "max": { - "name": "max", - "type": "TypeInt", - "description": "The maximum value for this profile field.", - "computed": true - }, - "min": { - "name": "min", - "type": "TypeInt", - "description": "The minimum value for this profile field.", - "computed": true - }, - "step": { - "name": "step", - "type": "TypeInt", - "description": "The increment step value for this profile field.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", - "description": "The value for this profile field.", - "computed": true - }, - "values": { - "name": "values", - "type": "TypeList", - "description": "The permitted values for this profile field.", - "computed": true, - "elem": { - "type": "TypeInt" - } - } - } + "name": "resource_group", + "type": "TypeString", + "description": "The unique identifier of the resource group this dedicated host group belongs to", + "cloud_data_type": "resource_group", + "optional": true }, { - "name": "status", + "name": "zone", "type": "TypeString", - "description": "The status of the dedicated host profile.", - "computed": true + "description": "The zone name this dedicated host group is in", + "optional": true }, { - "name": "vcpu_architecture", - "type": "TypeList", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "The VCPU architecture for a dedicated host with this profile.", - "computed": true - } - } - }, + "name": "name", + "type": "TypeString", + "description": "The name of the dedicated host group", + "optional": true + } + ], + "ibm_is_dedicated_host_profile": [ { "name": "class", "type": "TypeString", "description": "The product class this dedicated host profile belongs to.", "computed": true }, - { - "name": "disks", - "type": "TypeList", - "description": "Collection of the dedicated host profile's disks.", - "computed": true, - "elem": { - "interface_type": { - "name": "interface_type", - "type": "TypeList", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "The interface of the disk for a dedicated host with this profileThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", - "computed": true - } - } - }, - "quantity": { - "name": "quantity", - "type": "TypeList", - "description": "The number of disks of this type for a dedicated host with this profile.", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", - "description": "The value for this profile field.", - "computed": true - } - } - }, - "size": { - "name": "size", - "type": "TypeList", - "description": "The size of the disk in GB (gigabytes).", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", - "description": "The size of the disk in GB (gigabytes).", - "computed": true - } - } - }, - "supported_instance_interface_types": { - "name": "supported_instance_interface_types", - "type": "TypeList", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeList", - "description": "The instance disk interfaces supported for a dedicated host with this profile.", - "computed": true, - "elem": { - "type": "TypeString" - } - } - } - } - } - }, { "name": "family", "type": "TypeString", @@ -40851,7 +40619,7 @@ "computed": true }, { - "name": "vcpu_count", + "name": "memory", "type": "TypeList", "computed": true, "elem": { @@ -40903,10 +40671,34 @@ } }, { - "name": "vcpu_manufacturer", + "name": "socket_count", "type": "TypeList", "computed": true, "elem": { + "default": { + "name": "default", + "type": "TypeInt", + "description": "The default value for this profile field.", + "computed": true + }, + "max": { + "name": "max", + "type": "TypeInt", + "description": "The maximum value for this profile field.", + "computed": true + }, + "min": { + "name": "min", + "type": "TypeInt", + "description": "The minimum value for this profile field.", + "computed": true + }, + "step": { + "name": "step", + "type": "TypeInt", + "description": "The increment step value for this profile field.", + "computed": true + }, "type": { "name": "type", "type": "TypeString", @@ -40915,9 +40707,70 @@ }, "value": { "name": "value", + "type": "TypeInt", + "description": "The value for this profile field.", + "computed": true + }, + "values": { + "name": "values", + "type": "TypeList", + "description": "The permitted values for this profile field.", + "computed": true, + "elem": { + "type": "TypeInt" + } + } + } + }, + { + "name": "vcpu_count", + "type": "TypeList", + "computed": true, + "elem": { + "default": { + "name": "default", + "type": "TypeInt", + "description": "The default value for this profile field.", + "computed": true + }, + "max": { + "name": "max", + "type": "TypeInt", + "description": "The maximum value for this profile field.", + "computed": true + }, + "min": { + "name": "min", + "type": "TypeInt", + "description": "The minimum value for this profile field.", + "computed": true + }, + "step": { + "name": "step", + "type": "TypeInt", + "description": "The increment step value for this profile field.", + "computed": true + }, + "type": { + "name": "type", "type": "TypeString", - "description": "The VCPU manufacturer for a dedicated host with this profile.", + "description": "The type for this profile field.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "The value for this profile field.", "computed": true + }, + "values": { + "name": "values", + "type": "TypeList", + "description": "The permitted values for this profile field.", + "computed": true, + "elem": { + "type": "TypeInt" + } } } }, @@ -40927,6 +40780,95 @@ "description": "The globally unique name for this virtual server instance profile.", "optional": true }, + { + "name": "disks", + "type": "TypeList", + "description": "Collection of the dedicated host profile's disks.", + "computed": true, + "elem": { + "interface_type": { + "name": "interface_type", + "type": "TypeList", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "The interface of the disk for a dedicated host with this profileThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", + "computed": true + } + } + }, + "quantity": { + "name": "quantity", + "type": "TypeList", + "description": "The number of disks of this type for a dedicated host with this profile.", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "The value for this profile field.", + "computed": true + } + } + }, + "size": { + "name": "size", + "type": "TypeList", + "description": "The size of the disk in GB (gigabytes).", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "The size of the disk in GB (gigabytes).", + "computed": true + } + } + }, + "supported_instance_interface_types": { + "name": "supported_instance_interface_types", + "type": "TypeList", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeList", + "description": "The instance disk interfaces supported for a dedicated host with this profile.", + "computed": true, + "elem": { + "type": "TypeString" + } + } + } + } + } + }, { "name": "supported_instance_profiles", "type": "TypeList", @@ -40946,6 +40888,50 @@ "computed": true } } + }, + { + "name": "status", + "type": "TypeString", + "description": "The status of the dedicated host profile.", + "computed": true + }, + { + "name": "vcpu_architecture", + "type": "TypeList", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "The VCPU architecture for a dedicated host with this profile.", + "computed": true + } + } + }, + { + "name": "vcpu_manufacturer", + "type": "TypeList", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "The VCPU manufacturer for a dedicated host with this profile.", + "computed": true + } + } } ], "ibm_is_dedicated_host_profiles": [ @@ -41298,6 +41284,12 @@ } ], "ibm_is_dedicated_hosts": [ + { + "name": "total_count", + "type": "TypeInt", + "description": "The total number of resources across all pages.", + "computed": true + }, { "name": "host_group", "type": "TypeString", @@ -41730,12 +41722,6 @@ "computed": true } } - }, - { - "name": "total_count", - "type": "TypeInt", - "description": "The total number of resources across all pages.", - "computed": true } ], "ibm_is_endpoint_gateway_targets": [ @@ -41794,12 +41780,56 @@ } ], "ibm_is_floating_ip": [ + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the floating IP", + "required": true + }, + { + "name": "zone", + "type": "TypeString", + "description": "Zone name", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Floating IP crn", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "tags", + "type": "TypeSet", + "description": "Floating IP tags", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "address", "type": "TypeString", "description": "Floating IP address", "computed": true }, + { + "name": "status", + "type": "TypeString", + "description": "Floating IP status", + "computed": true + }, { "name": "target", "type": "TypeString", @@ -41895,50 +41925,6 @@ "computed": true } } - }, - { - "name": "crn", - "type": "TypeString", - "description": "Floating IP crn", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the floating IP", - "required": true - }, - { - "name": "status", - "type": "TypeString", - "description": "Floating IP status", - "computed": true - }, - { - "name": "zone", - "type": "TypeString", - "description": "Zone name", - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "Floating IP tags", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } } ], "ibm_is_floating_ips": [ @@ -42158,6 +42144,12 @@ } ], "ibm_is_flow_log": [ + { + "name": "auto_delete", + "type": "TypeBool", + "description": "If set to `true`, this flow log collector will be automatically deleted when the target is deleted.", + "computed": true + }, { "name": "lifecycle_state", "type": "TypeString", @@ -42191,51 +42183,6 @@ } } }, - { - "name": "storage_bucket", - "type": "TypeList", - "description": "The Cloud Object Storage bucket where the collected flows are logged.", - "computed": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "The globally unique name of this COS bucket.", - "computed": true - } - } - }, - { - "name": "identifier", - "type": "TypeString", - "description": "The flow log collector identifier.", - "optional": true - }, - { - "name": "active", - "type": "TypeBool", - "description": "Indicates whether this collector is active.", - "computed": true - }, - { - "name": "auto_delete", - "type": "TypeBool", - "description": "If set to `true`, this flow log collector will be automatically deleted when the target is deleted.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the flow log collector was created.", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this flow log collector.", - "cloud_data_type": "crn", - "computed": true - }, { "name": "target", "type": "TypeList", @@ -42288,18 +42235,54 @@ } } }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "name", "type": "TypeString", "description": "The unique user-defined name for this flow log collector.", "optional": true }, + { + "name": "active", + "type": "TypeBool", + "description": "Indicates whether this collector is active.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this flow log collector.", + "cloud_data_type": "crn", + "computed": true + }, { "name": "href", "type": "TypeString", "description": "The URL for this flow log collector.", "computed": true }, + { + "name": "storage_bucket", + "type": "TypeList", + "description": "The Cloud Object Storage bucket where the collected flows are logged.", + "computed": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "The globally unique name of this COS bucket.", + "computed": true + } + } + }, { "name": "vpc", "type": "TypeList", @@ -42347,23 +42330,19 @@ } }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "computed": true, - "elem": { - "type": "TypeString" - } - } - ], - "ibm_is_flow_logs": [ - { - "name": "resource_group", + "name": "identifier", "type": "TypeString", - "description": "The unique identifier of the resource group this flow log belongs to", - "cloud_data_type": "resource_group", + "description": "The flow log collector identifier.", "optional": true }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the flow log collector was created.", + "computed": true + } + ], + "ibm_is_flow_logs": [ { "name": "vpc", "type": "TypeString", @@ -42491,6 +42470,13 @@ "computed": true } } + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "The unique identifier of the resource group this flow log belongs to", + "cloud_data_type": "resource_group", + "optional": true } ], "ibm_is_ike_policies": [ @@ -42649,53 +42635,17 @@ "optional": true }, { - "name": "authentication_algorithm", - "type": "TypeString", - "description": "The authentication algorithm.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that this IKE policy was created.", - "computed": true - }, - { - "name": "dh_group", - "type": "TypeInt", - "description": "The Diffie-Hellman group.", - "computed": true - }, - { - "name": "encryption_algorithm", - "type": "TypeString", - "description": "The encryption algorithm.", - "computed": true - }, - { - "name": "href", + "name": "ike_policy", "type": "TypeString", - "description": "The IKE policy's canonical URL.", - "computed": true - }, - { - "name": "ike_version", - "type": "TypeInt", - "description": "The IKE protocol version.", - "computed": true + "description": "The IKE policy identifier.", + "optional": true }, { - "name": "resource_type", + "name": "authentication_algorithm", "type": "TypeString", - "description": "The resource type.", + "description": "The authentication algorithm.", "computed": true }, - { - "name": "ike_policy", - "type": "TypeString", - "description": "The IKE policy identifier.", - "optional": true - }, { "name": "connections", "type": "TypeList", @@ -42743,15 +42693,21 @@ } }, { - "name": "key_lifetime", - "type": "TypeInt", - "description": "The key lifetime in seconds.", + "name": "created_at", + "type": "TypeString", + "description": "The date and time that this IKE policy was created.", "computed": true }, { - "name": "negotiation_mode", + "name": "encryption_algorithm", "type": "TypeString", - "description": "The IKE negotiation mode. Only `main` is supported.", + "description": "The encryption algorithm.", + "computed": true + }, + { + "name": "key_lifetime", + "type": "TypeInt", + "description": "The key lifetime in seconds.", "computed": true }, { @@ -42780,55 +42736,85 @@ "computed": true } } + }, + { + "name": "dh_group", + "type": "TypeInt", + "description": "The Diffie-Hellman group.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The IKE policy's canonical URL.", + "computed": true + }, + { + "name": "ike_version", + "type": "TypeInt", + "description": "The IKE protocol version.", + "computed": true + }, + { + "name": "negotiation_mode", + "type": "TypeString", + "description": "The IKE negotiation mode. Only `main` is supported.", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true } ], "ibm_is_image": [ { - "name": "obsolescence_at", + "name": "identifier", "type": "TypeString", - "description": "The obsolescence date and time (UTC) for this image. If absent, no obsolescence date and time has been set.", - "computed": true + "description": "Image id", + "optional": true }, { - "name": "name", + "name": "os", "type": "TypeString", - "description": "Image name", - "optional": true + "description": "Image Operating system", + "computed": true }, { - "name": "visibility", + "name": "encryption", "type": "TypeString", - "description": "Whether the image is publicly visible or private to the account", - "optional": true + "description": "The type of encryption used on the image", + "computed": true }, { - "name": "status", + "name": "created_at", "type": "TypeString", - "description": "The status of this image", + "description": "The date and time that the image was created", "computed": true }, { - "name": "checksum", + "name": "obsolescence_at", "type": "TypeString", - "description": "The SHA256 Checksum for this image", + "description": "The obsolescence date and time (UTC) for this image. If absent, no obsolescence date and time has been set.", "computed": true }, { - "name": "encryption", + "name": "checksum", "type": "TypeString", - "description": "The type of encryption used on the image", + "description": "The SHA256 Checksum for this image", "computed": true }, { - "name": "source_volume", + "name": "encryption_key", "type": "TypeString", - "description": "Source volume id of the image", + "description": "The CRN of the Key Protect Root Key or Hyper Protect Crypto Service Root Key for this resource", "computed": true }, { - "name": "deprecation_at", + "name": "architecture", "type": "TypeString", - "description": "The deprecation date and time (UTC) for this image. If absent, no deprecation date and time has been set.", + "description": "The operating system architecture", "computed": true }, { @@ -42859,16 +42845,27 @@ } }, { - "name": "crn", + "name": "visibility", "type": "TypeString", - "description": "The CRN for this image", - "cloud_data_type": "crn", + "description": "Whether the image is publicly visible or private to the account", + "optional": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The status of this image", "computed": true }, { - "name": "created_at", + "name": "source_volume", "type": "TypeString", - "description": "The date and time that the image was created", + "description": "Source volume id of the image", + "computed": true + }, + { + "name": "deprecation_at", + "type": "TypeString", + "description": "The deprecation date and time (UTC) for this image. If absent, no deprecation date and time has been set.", "computed": true }, { @@ -42881,74 +42878,63 @@ } }, { - "name": "identifier", + "name": "name", "type": "TypeString", - "description": "Image id", + "description": "Image name", "optional": true }, { - "name": "os", + "name": "crn", "type": "TypeString", - "description": "Image Operating system", + "description": "The CRN for this image", + "cloud_data_type": "crn", + "computed": true + } + ], + "ibm_is_image_export_job": [ + { + "name": "href", + "type": "TypeString", + "description": "The URL for this image export job.", "computed": true }, { - "name": "architecture", + "name": "started_at", "type": "TypeString", - "description": "The operating system architecture", + "description": "The date and time that the image export job started running.If absent, the export job has not yet started.", "computed": true }, { - "name": "encryption_key", + "name": "completed_at", "type": "TypeString", - "description": "The CRN of the Key Protect Root Key or Hyper Protect Crypto Service Root Key for this resource", + "description": "The date and time that the image export job was completed.If absent, the export job has not yet completed.", "computed": true - } - ], - "ibm_is_image_export_job": [ + }, { - "name": "resource_type", + "name": "storage_href", "type": "TypeString", - "description": "The type of resource referenced.", + "description": "The Cloud Object Storage location of the exported image object. The object at this location may not exist until the job is started, and will be incomplete while the job is running.After the job completes, the exported image object is not managed by the IBM VPC service, and may be removed or replaced with a different object by any user or service with IAM authorization to the bucket.", "computed": true }, { - "name": "status_reasons", + "name": "storage_object", "type": "TypeList", - "description": "The reasons for the current status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", + "description": "The Cloud Object Storage object for the exported image. This object may not exist untilthe job is started, and will not be complete until the job completes.", "computed": true, "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the status reason.", - "computed": true - }, - "more_info": { - "name": "more_info", + "name": { + "name": "name", "type": "TypeString", - "description": "Link to documentation about this status reason.", + "description": "The name of this Cloud Object Storage object. Names are unique within a Cloud Object Storage bucket.", "computed": true } } }, { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this image export job.", - "computed": true - }, - { - "name": "encrypted_data_key", + "name": "image", "type": "TypeString", - "description": "A base64-encoded, encrypted representation of the key that was used to encrypt the data for the exported image. This key can be unwrapped with the image's `encryption_key` root key using either Key Protect or Hyper Protect Crypto Service.If absent, the export job is for an unencrypted image.", - "computed": true + "description": "The image identifier.", + "required": true }, { "name": "image_export_job", @@ -42956,12 +42942,6 @@ "description": "The image export job identifier.", "required": true }, - { - "name": "completed_at", - "type": "TypeString", - "description": "The date and time that the image export job was completed.If absent, the export job has not yet completed.", - "computed": true - }, { "name": "created_at", "type": "TypeString", @@ -42969,74 +42949,80 @@ "computed": true }, { - "name": "href", + "name": "format", "type": "TypeString", - "description": "The URL for this image export job.", + "description": "The format of the exported image.", "computed": true }, { - "name": "status", + "name": "resource_type", "type": "TypeString", - "description": "The status of this image export job:- `deleting`: Export job is being deleted- `failed`: Export job could not be completed successfully- `queued`: Export job is queued- `running`: Export job is in progress- `succeeded`: Export job was completed successfullyThe exported image object is automatically deleted for `failed` jobs.", + "description": "The type of resource referenced.", "computed": true }, { - "name": "storage_bucket", + "name": "status_reasons", "type": "TypeList", - "description": "The Cloud Object Storage bucket of the exported image object.", + "description": "The reasons for the current status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", "computed": true, "elem": { - "crn": { - "name": "crn", + "code": { + "name": "code", "type": "TypeString", - "description": "The CRN of this Cloud Object Storage bucket.", + "description": "A snake case string succinctly identifying the status reason.", "computed": true }, - "name": { - "name": "name", + "message": { + "name": "message", "type": "TypeString", - "description": "The globally unique name of this Cloud Object Storage bucket.", + "description": "An explanation of the status reason.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about this status reason.", "computed": true } } }, { - "name": "image", + "name": "encrypted_data_key", "type": "TypeString", - "description": "The image identifier.", - "required": true + "description": "A base64-encoded, encrypted representation of the key that was used to encrypt the data for the exported image. This key can be unwrapped with the image's `encryption_key` root key using either Key Protect or Hyper Protect Crypto Service.If absent, the export job is for an unencrypted image.", + "computed": true }, { - "name": "started_at", + "name": "name", "type": "TypeString", - "description": "The date and time that the image export job started running.If absent, the export job has not yet started.", + "description": "The user-defined name for this image export job.", "computed": true }, { - "name": "storage_href", + "name": "status", "type": "TypeString", - "description": "The Cloud Object Storage location of the exported image object. The object at this location may not exist until the job is started, and will be incomplete while the job is running.After the job completes, the exported image object is not managed by the IBM VPC service, and may be removed or replaced with a different object by any user or service with IAM authorization to the bucket.", + "description": "The status of this image export job:- `deleting`: Export job is being deleted- `failed`: Export job could not be completed successfully- `queued`: Export job is queued- `running`: Export job is in progress- `succeeded`: Export job was completed successfullyThe exported image object is automatically deleted for `failed` jobs.", "computed": true }, { - "name": "storage_object", + "name": "storage_bucket", "type": "TypeList", - "description": "The Cloud Object Storage object for the exported image. This object may not exist untilthe job is started, and will not be complete until the job completes.", + "description": "The Cloud Object Storage bucket of the exported image object.", "computed": true, "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN of this Cloud Object Storage bucket.", + "computed": true + }, "name": { "name": "name", "type": "TypeString", - "description": "The name of this Cloud Object Storage object. Names are unique within a Cloud Object Storage bucket.", + "description": "The globally unique name of this Cloud Object Storage bucket.", "computed": true } } - }, - { - "name": "format", - "type": "TypeString", - "description": "The format of the exported image.", - "computed": true } ], "ibm_is_image_export_jobs": [ @@ -43182,38 +43168,6 @@ } ], "ibm_is_images": [ - { - "name": "resource_group", - "type": "TypeString", - "description": "The id of the resource group", - "cloud_data_type": "resource_group", - "optional": true - }, - { - "name": "catalog_managed", - "type": "TypeBool", - "description": "Lists images managed as part of a catalog offering. If an image is managed, accounts in the same enterprise with access to that catalog can specify the image's catalog offering version CRN to provision virtual server instances using the image", - "optional": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the image", - "optional": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The status of the image", - "options": "available, deleting, deprecated, failed, obsolete, pending, tentative, unusable", - "optional": true - }, - { - "name": "visibility", - "type": "TypeString", - "description": "Whether the image is publicly visible or private to the account", - "optional": true - }, { "name": "images", "type": "TypeList", @@ -43337,170 +43291,57 @@ "computed": true } } - } - ], - "ibm_is_instance": [ - { - "name": "primary_network_interface", - "type": "TypeList", - "description": "Primary Network interface info", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "Instance Primary Network Interface id", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Instance Primary Network Interface name", - "computed": true - }, - "port_speed": { - "name": "port_speed", - "type": "TypeInt", - "description": "Instance Primary Network Interface port speed", - "computed": true - }, - "primary_ip": { - "name": "primary_ip", - "type": "TypeList", - "description": "The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.", - "computed": true, - "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "The IP address to reserve, which must not already be reserved on the subnet.", - "computed": true - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this reserved IP", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this reserved IP. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the subnet the reserved IP resides in.", - "computed": true - }, - "reserved_ip": { - "name": "reserved_ip", - "type": "TypeString", - "description": "Identifies a reserved IP by a unique property.", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type", - "computed": true - } - } - }, - "primary_ipv4_address": { - "name": "primary_ipv4_address", - "type": "TypeString", - "description": "Instance Primary Network Interface IPV4 Address", - "computed": true - }, - "security_groups": { - "name": "security_groups", - "type": "TypeSet", - "description": "Instance Primary Network Interface Security groups", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "subnet": { - "name": "subnet", - "type": "TypeString", - "description": "Instance Primary Network Interface subnet", - "computed": true - } - } }, { - "name": "private_key", + "name": "resource_group", "type": "TypeString", - "description": "Instance Private Key file", + "description": "The id of the resource group", + "cloud_data_type": "resource_group", "optional": true }, { - "name": "profile", - "type": "TypeString", - "description": "Profile info", - "computed": true - }, - { - "name": "metadata_service_enabled", + "name": "catalog_managed", "type": "TypeBool", - "description": "Indicates whether the metadata service endpoint is available to the virtual server instance", - "computed": true + "description": "Lists images managed as part of a catalog offering. If an image is managed, accounts in the same enterprise with access to that catalog can specify the image's catalog offering version CRN to provision virtual server instances using the image", + "optional": true }, { - "name": "lifecycle_state", + "name": "name", "type": "TypeString", - "description": "The lifecycle state of the virtual server instance.", - "computed": true + "description": "The name of the image", + "optional": true }, { - "name": "tags", - "type": "TypeSet", - "description": "list of tags for the instance", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "status", + "type": "TypeString", + "description": "The status of the image", + "options": "available, deleting, deprecated, failed, obsolete, pending, tentative, unusable", + "optional": true }, { - "name": "resource_name", + "name": "visibility", "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, + "description": "Whether the image is publicly visible or private to the account", + "optional": true + } + ], + "ibm_is_instance": [ { - "name": "resource_group_name", + "name": "resource_controller_url", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { - "name": "metadata_service", - "type": "TypeList", - "description": "The metadata service configuration", - "computed": true, - "elem": { - "enabled": { - "name": "enabled", - "type": "TypeBool", - "description": "Indicates whether the metadata service endpoint will be available to the virtual server instance", - "computed": true - }, - "protocol": { - "name": "protocol", - "type": "TypeString", - "description": "The communication protocol to use for the metadata service endpoint. Applies only when the metadata service is enabled.", - "computed": true - }, - "response_hop_limit": { - "name": "response_hop_limit", - "type": "TypeInt", - "description": "The hop limit (IP time to live) for IP response packets from the metadata service", - "computed": true - } - } + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true }, { - "name": "vpc", + "name": "resource_crn", "type": "TypeString", - "description": "VPC id", + "description": "The crn of the resource", "computed": true }, { @@ -43511,35 +43352,79 @@ "computed": true }, { - "name": "keys", + "name": "volume_attachments", "type": "TypeList", - "description": "Instance keys", + "description": "Instance Volume Attachments", "computed": true, "elem": { "id": { "name": "id", "type": "TypeString", - "description": "Instance key id", + "description": "Instance Volume Attachment id", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "Instance key name", + "description": "Instance Volume Attachment name", + "computed": true + }, + "volume_crn": { + "name": "volume_crn", + "type": "TypeString", + "description": "Instance Boot Volume's volume CRN", + "computed": true + }, + "volume_id": { + "name": "volume_id", + "type": "TypeString", + "description": "Instance Boot Volume's volume id", + "computed": true + }, + "volume_name": { + "name": "volume_name", + "type": "TypeString", + "description": "Instance Boot Volume's volume name", "computed": true } } }, { - "name": "total_volume_bandwidth", - "type": "TypeInt", - "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes", - "computed": true + "name": "gpu", + "type": "TypeList", + "description": "Instance GPU", + "computed": true, + "elem": { + "count": { + "name": "count", + "type": "TypeInt", + "description": "Instance GPU Count", + "computed": true + }, + "manufacturer": { + "name": "manufacturer", + "type": "TypeString", + "description": "Instance GPU Manufacturer", + "computed": true + }, + "memory": { + "name": "memory", + "type": "TypeInt", + "description": "Instance GPU Memory", + "computed": true + }, + "model": { + "name": "model", + "type": "TypeString", + "description": "Instance GPU Model", + "computed": true + } + } }, { - "name": "total_network_bandwidth", + "name": "memory", "type": "TypeInt", - "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance network interfaces.", + "description": "Instance memory", "computed": true }, { @@ -43552,61 +43437,68 @@ } }, { - "name": "memory", - "type": "TypeInt", - "description": "Instance memory", - "computed": true - }, - { - "name": "name", + "name": "resource_group", "type": "TypeString", - "description": "Instance name", - "required": true + "description": "Instance resource group", + "cloud_data_type": "resource_group", + "computed": true }, { - "name": "passphrase", + "name": "crn", "type": "TypeString", - "description": "Passphrase for Instance Private Key file", - "secure": true, - "optional": true + "description": "The crn of the resource", + "cloud_data_type": "crn", + "computed": true }, { - "name": "resource_status", + "name": "resource_group_name", "type": "TypeString", - "description": "The status of the resource", + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "status_reasons", + "name": "metadata_service", "type": "TypeList", - "description": "The reasons for the current status (if any).", + "description": "The metadata service configuration", "computed": true, "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason", + "enabled": { + "name": "enabled", + "type": "TypeBool", + "description": "Indicates whether the metadata service endpoint will be available to the virtual server instance", "computed": true }, - "message": { - "name": "message", + "protocol": { + "name": "protocol", "type": "TypeString", - "description": "An explanation of the status reason", + "description": "The communication protocol to use for the metadata service endpoint. Applies only when the metadata service is enabled.", "computed": true }, - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about this status reason", + "response_hop_limit": { + "name": "response_hop_limit", + "type": "TypeInt", + "description": "The hop limit (IP time to live) for IP response packets from the metadata service", "computed": true } } }, { - "name": "crn", + "name": "passphrase", "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", + "description": "Passphrase for Instance Private Key file", + "secure": true, + "optional": true + }, + { + "name": "total_network_bandwidth", + "type": "TypeInt", + "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance network interfaces.", + "computed": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the virtual server instance.", "computed": true }, { @@ -43660,98 +43552,10 @@ } }, { - "name": "bandwidth", - "type": "TypeInt", - "description": "The total bandwidth (in megabits per second) shared across the instance's network interfaces and storage volumes", - "computed": true - }, - { - "name": "image", + "name": "name", "type": "TypeString", - "description": "Instance Image", - "computed": true - }, - { - "name": "boot_volume", - "type": "TypeList", - "description": "Instance Boot Volume", - "computed": true, - "elem": { - "device": { - "name": "device", - "type": "TypeString", - "description": "Instance Boot Volume device", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "Instance Boot Volume id", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Instance Boot Volume name", - "computed": true - }, - "volume_crn": { - "name": "volume_crn", - "type": "TypeString", - "description": "Instance Boot Volume's volume CRN", - "computed": true - }, - "volume_id": { - "name": "volume_id", - "type": "TypeString", - "description": "Instance Boot Volume's volume id", - "computed": true - }, - "volume_name": { - "name": "volume_name", - "type": "TypeString", - "description": "Instance Boot Volume's volume name", - "computed": true - } - } - }, - { - "name": "volume_attachments", - "type": "TypeList", - "description": "Instance Volume Attachments", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "Instance Volume Attachment id", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Instance Volume Attachment name", - "computed": true - }, - "volume_crn": { - "name": "volume_crn", - "type": "TypeString", - "description": "Instance Boot Volume's volume CRN", - "computed": true - }, - "volume_id": { - "name": "volume_id", - "type": "TypeString", - "description": "Instance Boot Volume's volume id", - "computed": true - }, - "volume_name": { - "name": "volume_name", - "type": "TypeString", - "description": "Instance Boot Volume's volume name", - "computed": true - } - } + "description": "Instance name", + "required": true }, { "name": "network_interfaces", @@ -43832,6 +43636,18 @@ } } }, + { + "name": "image", + "type": "TypeString", + "description": "Instance Image", + "computed": true + }, + { + "name": "numa_count", + "type": "TypeInt", + "description": "The number of NUMA nodes this virtual server instance is provisioned on. This property may be absent if the instance's `status` is not `running`.", + "computed": true + }, { "name": "vcpu", "type": "TypeList", @@ -43859,11 +43675,144 @@ } }, { - "name": "status", + "name": "resource_status", "type": "TypeString", - "description": "instance status", + "description": "The status of the resource", + "computed": true + }, + { + "name": "availability_policy_host_failure", + "type": "TypeString", + "description": "The availability policy to use for this virtual server instance. The action to perform if the compute host experiences a failure.", + "computed": true + }, + { + "name": "total_volume_bandwidth", + "type": "TypeInt", + "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes", + "computed": true + }, + { + "name": "boot_volume", + "type": "TypeList", + "description": "Instance Boot Volume", + "computed": true, + "elem": { + "device": { + "name": "device", + "type": "TypeString", + "description": "Instance Boot Volume device", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "Instance Boot Volume id", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Instance Boot Volume name", + "computed": true + }, + "volume_crn": { + "name": "volume_crn", + "type": "TypeString", + "description": "Instance Boot Volume's volume CRN", + "computed": true + }, + "volume_id": { + "name": "volume_id", + "type": "TypeString", + "description": "Instance Boot Volume's volume id", + "computed": true + }, + "volume_name": { + "name": "volume_name", + "type": "TypeString", + "description": "Instance Boot Volume's volume name", + "computed": true + } + } + }, + { + "name": "volumes", + "type": "TypeSet", + "description": "List of volumes", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "vpc", + "type": "TypeString", + "description": "VPC id", "computed": true }, + { + "name": "tags", + "type": "TypeSet", + "description": "list of tags for the instance", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "status_reasons", + "type": "TypeList", + "description": "The reasons for the current status (if any).", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the status reason", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the status reason", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about this status reason", + "computed": true + } + } + }, + { + "name": "lifecycle_reasons", + "type": "TypeList", + "description": "The reasons for the current lifecycle_state (if any).", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this lifecycle state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this lifecycle state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this lifecycle state.", + "computed": true + } + } + }, { "name": "placement_target", "type": "TypeList", @@ -43916,12 +43865,6 @@ } } }, - { - "name": "availability_policy_host_failure", - "type": "TypeString", - "description": "The availability policy to use for this virtual server instance. The action to perform if the compute host experiences a failure.", - "computed": true - }, { "name": "zone", "type": "TypeString", @@ -43929,119 +43872,174 @@ "computed": true }, { - "name": "resource_group", - "type": "TypeString", - "description": "Instance resource group", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "gpu", + "name": "catalog_offering", "type": "TypeList", - "description": "Instance GPU", + "description": "The catalog offering or offering version to use when provisioning this virtual server instance. If an offering is specified, the latest version of that offering will be used. The specified offering or offering version may be in a different account in the same enterprise, subject to IAM policies.", "computed": true, "elem": { - "count": { - "name": "count", - "type": "TypeInt", - "description": "Instance GPU Count", - "computed": true - }, - "manufacturer": { - "name": "manufacturer", + "offering_crn": { + "name": "offering_crn", "type": "TypeString", - "description": "Instance GPU Manufacturer", - "computed": true - }, - "memory": { - "name": "memory", - "type": "TypeInt", - "description": "Instance GPU Memory", + "description": "Identifies a catalog offering by a unique CRN property", "computed": true }, - "model": { - "name": "model", + "version_crn": { + "name": "version_crn", "type": "TypeString", - "description": "Instance GPU Model", + "description": "Identifies a version of a catalog offering by a unique CRN property", "computed": true } } }, { - "name": "resource_crn", + "name": "status", "type": "TypeString", - "description": "The crn of the resource", + "description": "instance status", "computed": true }, { - "name": "catalog_offering", + "name": "bandwidth", + "type": "TypeInt", + "description": "The total bandwidth (in megabits per second) shared across the instance's network interfaces and storage volumes", + "computed": true + }, + { + "name": "primary_network_interface", "type": "TypeList", - "description": "The catalog offering or offering version to use when provisioning this virtual server instance. If an offering is specified, the latest version of that offering will be used. The specified offering or offering version may be in a different account in the same enterprise, subject to IAM policies.", + "description": "Primary Network interface info", "computed": true, "elem": { - "offering_crn": { - "name": "offering_crn", + "id": { + "name": "id", "type": "TypeString", - "description": "Identifies a catalog offering by a unique CRN property", + "description": "Instance Primary Network Interface id", "computed": true }, - "version_crn": { - "name": "version_crn", + "name": { + "name": "name", "type": "TypeString", - "description": "Identifies a version of a catalog offering by a unique CRN property", + "description": "Instance Primary Network Interface name", + "computed": true + }, + "port_speed": { + "name": "port_speed", + "type": "TypeInt", + "description": "Instance Primary Network Interface port speed", + "computed": true + }, + "primary_ip": { + "name": "primary_ip", + "type": "TypeList", + "description": "The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.", + "computed": true, + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "The IP address to reserve, which must not already be reserved on the subnet.", + "computed": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this reserved IP", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this reserved IP. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the subnet the reserved IP resides in.", + "computed": true + }, + "reserved_ip": { + "name": "reserved_ip", + "type": "TypeString", + "description": "Identifies a reserved IP by a unique property.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type", + "computed": true + } + } + }, + "primary_ipv4_address": { + "name": "primary_ipv4_address", + "type": "TypeString", + "description": "Instance Primary Network Interface IPV4 Address", + "computed": true + }, + "security_groups": { + "name": "security_groups", + "type": "TypeSet", + "description": "Instance Primary Network Interface Security groups", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "subnet": { + "name": "subnet", + "type": "TypeString", + "description": "Instance Primary Network Interface subnet", "computed": true } } }, { - "name": "volumes", - "type": "TypeSet", - "description": "List of volumes", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "metadata_service_enabled", + "type": "TypeBool", + "description": "Indicates whether the metadata service endpoint is available to the virtual server instance", + "computed": true }, { - "name": "resource_controller_url", + "name": "private_key", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true + "description": "Instance Private Key file", + "optional": true }, { - "name": "lifecycle_reasons", + "name": "keys", "type": "TypeList", - "description": "The reasons for the current lifecycle_state (if any).", + "description": "Instance keys", "computed": true, "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the reason for this lifecycle state.", - "computed": true - }, - "message": { - "name": "message", + "id": { + "name": "id", "type": "TypeString", - "description": "An explanation of the reason for this lifecycle state.", + "description": "Instance key id", "computed": true }, - "more_info": { - "name": "more_info", + "name": { + "name": "name", "type": "TypeString", - "description": "Link to documentation about the reason for this lifecycle state.", + "description": "Instance key name", "computed": true } } }, { - "name": "numa_count", - "type": "TypeInt", - "description": "The number of NUMA nodes this virtual server instance is provisioned on. This property may be absent if the instance's `status` is not `running`.", + "name": "profile", + "type": "TypeString", + "description": "Profile info", "computed": true } ], "ibm_is_instance_disk": [ + { + "name": "disk", + "type": "TypeString", + "description": "The instance disk identifier.", + "required": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the disk was created.", + "computed": true + }, { "name": "href", "type": "TypeString", @@ -44077,18 +44075,6 @@ "type": "TypeString", "description": "The instance identifier.", "required": true - }, - { - "name": "disk", - "type": "TypeString", - "description": "The instance disk identifier.", - "required": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the disk was created.", - "computed": true } ], "ibm_is_instance_disks": [ @@ -44151,41 +44137,22 @@ ], "ibm_is_instance_group": [ { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this instance group", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "load_balancer_pool", - "type": "TypeString", - "description": "load balancer pool ID", - "computed": true - }, - { - "name": "vpc", - "type": "TypeString", - "description": "vpc instance", - "computed": true - }, - { - "name": "membership_count", + "name": "application_port", "type": "TypeInt", - "description": "The number of instances in the instance group", + "description": "Used by the instance group when scaling up instances to supply the port for the load balancer pool member.", "computed": true }, { - "name": "instance_template", + "name": "name", "type": "TypeString", - "description": "instance template ID", - "computed": true + "description": "The user-defined name for this instance group", + "required": true }, { - "name": "resource_group", + "name": "crn", "type": "TypeString", - "description": "Resource group ID", - "cloud_data_type": "resource_group", + "description": "The CRN for this instance group", + "cloud_data_type": "crn", "computed": true }, { @@ -44198,9 +44165,9 @@ } }, { - "name": "application_port", - "type": "TypeInt", - "description": "Used by the instance group when scaling up instances to supply the port for the load balancer pool member.", + "name": "load_balancer_pool", + "type": "TypeString", + "description": "load balancer pool ID", "computed": true }, { @@ -44212,6 +44179,12 @@ "type": "TypeString" } }, + { + "name": "vpc", + "type": "TypeString", + "description": "vpc instance", + "computed": true + }, { "name": "status", "type": "TypeString", @@ -44228,10 +44201,23 @@ } }, { - "name": "name", + "name": "instance_template", "type": "TypeString", - "description": "The user-defined name for this instance group", - "required": true + "description": "instance template ID", + "computed": true + }, + { + "name": "membership_count", + "type": "TypeInt", + "description": "The number of instances in the instance group", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource group ID", + "cloud_data_type": "resource_group", + "computed": true } ], "ibm_is_instance_group_manager": [ @@ -44272,6 +44258,12 @@ } } }, + { + "name": "instance_group", + "type": "TypeString", + "description": "instance group ID", + "required": true + }, { "name": "name", "type": "TypeString", @@ -44279,9 +44271,9 @@ "required": true }, { - "name": "manager_type", - "type": "TypeString", - "description": "The type of instance group manager.", + "name": "aggregation_window", + "type": "TypeInt", + "description": "The time window in seconds to aggregate metrics prior to evaluation", "computed": true }, { @@ -44291,37 +44283,37 @@ "computed": true }, { - "name": "manager_id", + "name": "manager_type", "type": "TypeString", - "description": "The ID of instance group manager.", + "description": "The type of instance group manager.", "computed": true }, { - "name": "instance_group", - "type": "TypeString", - "description": "instance group ID", - "required": true - }, - { - "name": "aggregation_window", + "name": "cooldown", "type": "TypeInt", - "description": "The time window in seconds to aggregate metrics prior to evaluation", + "description": "The duration of time in seconds to pause further scale actions after scaling has taken place", "computed": true }, { - "name": "cooldown", - "type": "TypeInt", - "description": "The duration of time in seconds to pause further scale actions after scaling has taken place", + "name": "manager_id", + "type": "TypeString", + "description": "The ID of instance group manager.", "computed": true } ], "ibm_is_instance_group_manager_action": [ { - "name": "name", + "name": "instance_group_manager", "type": "TypeString", - "description": "instance group manager action name", + "description": "Instance group manager ID of type scheduled", "required": true }, + { + "name": "max_membership_count", + "type": "TypeInt", + "description": "The maximum number of members in a managed instance group", + "computed": true + }, { "name": "min_membership_count", "type": "TypeInt", @@ -44329,92 +44321,92 @@ "computed": true }, { - "name": "updated_at", + "name": "resource_type", "type": "TypeString", - "description": "The date and time that the instance group manager action was modified.", + "description": "The resource type.", "computed": true }, { - "name": "action_type", + "name": "next_run_at", "type": "TypeString", - "description": "The type of action for the instance group.", + "description": "The date and time the scheduled action will next run. If empty the system is currently calculating the next run time.", "computed": true }, { - "name": "instance_group", - "type": "TypeString", - "description": "instance group ID", - "required": true + "name": "auto_delete_timeout", + "type": "TypeInt", + "computed": true }, { - "name": "target_manager", + "name": "action_id", "type": "TypeString", - "description": "The unique identifier for this instance group manager of type autoscale.", + "description": "Instance group manager action ID", "computed": true }, { - "name": "target_manager_name", + "name": "instance_group", "type": "TypeString", - "description": "Instance group manager name of type autoscale.", - "computed": true + "description": "instance group ID", + "required": true }, { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", + "name": "auto_delete", + "type": "TypeBool", "computed": true }, { - "name": "next_run_at", + "name": "name", "type": "TypeString", - "description": "The date and time the scheduled action will next run. If empty the system is currently calculating the next run time.", - "computed": true + "description": "instance group manager action name", + "required": true }, { - "name": "action_id", + "name": "action_type", "type": "TypeString", - "description": "Instance group manager action ID", + "description": "The type of action for the instance group.", "computed": true }, { - "name": "run_at", + "name": "target_manager_name", "type": "TypeString", - "description": "The date and time the scheduled action will run.", + "description": "Instance group manager name of type autoscale.", "computed": true }, { - "name": "max_membership_count", - "type": "TypeInt", - "description": "The maximum number of members in a managed instance group", + "name": "last_applied_at", + "type": "TypeString", + "description": "The date and time the scheduled action was last applied. If empty the action has never been applied.", "computed": true }, { - "name": "cron_spec", + "name": "created_at", "type": "TypeString", - "description": "The cron specification for a recurring scheduled action. Actions can be applied a maximum of one time within a 5 min period.", + "description": "The date and time that the instance group manager action was modified.", "computed": true }, { - "name": "last_applied_at", + "name": "run_at", "type": "TypeString", - "description": "The date and time the scheduled action was last applied. If empty the action has never been applied.", + "description": "The date and time the scheduled action will run.", "computed": true }, { - "name": "auto_delete", - "type": "TypeBool", + "name": "target_manager", + "type": "TypeString", + "description": "The unique identifier for this instance group manager of type autoscale.", "computed": true }, { - "name": "auto_delete_timeout", - "type": "TypeInt", + "name": "status", + "type": "TypeString", + "description": "The status of the instance group action- `active`: Action is ready to be run- `completed`: Action was completed successfully- `failed`: Action could not be completed successfully- `incompatible`: Action parameters are not compatible with the group or manager- `omitted`: Action was not applied because this action's manager was disabled.", "computed": true }, { - "name": "instance_group_manager", + "name": "updated_at", "type": "TypeString", - "description": "Instance group manager ID of type scheduled", - "required": true + "description": "The date and time that the instance group manager action was modified.", + "computed": true }, { "name": "membership_count", @@ -44423,15 +44415,9 @@ "computed": true }, { - "name": "status", - "type": "TypeString", - "description": "The status of the instance group action- `active`: Action is ready to be run- `completed`: Action was completed successfully- `failed`: Action could not be completed successfully- `incompatible`: Action parameters are not compatible with the group or manager- `omitted`: Action was not applied because this action's manager was disabled.", - "computed": true - }, - { - "name": "created_at", + "name": "cron_spec", "type": "TypeString", - "description": "The date and time that the instance group manager action was modified.", + "description": "The cron specification for a recurring scheduled action. Actions can be applied a maximum of one time within a 5 min period.", "computed": true } ], @@ -44628,12 +44614,6 @@ } ], "ibm_is_instance_group_manager_policy": [ - { - "name": "policy_id", - "type": "TypeString", - "description": "The policy ID", - "computed": true - }, { "name": "instance_group", "type": "TypeString", @@ -44669,6 +44649,12 @@ "type": "TypeString", "description": "The type of Policy for the Instance Group", "computed": true + }, + { + "name": "policy_id", + "type": "TypeString", + "description": "The policy ID", + "computed": true } ], "ibm_is_instance_group_managers": [ @@ -45280,27 +45266,21 @@ ], "ibm_is_instance_network_interface": [ { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the network interface was created.", - "computed": true - }, - { - "name": "primary_ipv4_address", - "type": "TypeString", - "description": "The primary IPv4 address.", - "computed": true - }, - { - "name": "security_groups", + "name": "floating_ips", "type": "TypeList", - "description": "Collection of security groups.", + "description": "The floating IPs associated with this network interface.", "computed": true, "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "The globally unique IP address.", + "computed": true + }, "crn": { "name": "crn", "type": "TypeString", - "description": "The security group's CRN.", + "description": "The CRN for this floating IP.", "computed": true }, "deleted": { @@ -45320,33 +45300,83 @@ "href": { "name": "href", "type": "TypeString", - "description": "The security group's canonical URL.", + "description": "The URL for this floating IP.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this security group.", + "description": "The unique identifier for this floating IP.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The user-defined name for this security group. Names must be unique within the VPC the security group resides in.", + "description": "The unique user-defined name for this floating IP.", "computed": true } } }, { - "name": "subnet", + "name": "status", + "type": "TypeString", + "description": "The status of the network interface.", + "computed": true + }, + { + "name": "primary_ipv4_address", + "type": "TypeString", + "description": "The primary IPv4 address.", + "computed": true + }, + { + "name": "primary_ip", "type": "TypeList", - "description": "The associated subnet.", + "description": "The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.", + "computed": true, + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "The IP address to reserve, which must not already be reserved on the subnet.", + "computed": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this reserved IP", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this reserved IP. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the subnet the reserved IP resides in.", + "computed": true + }, + "reserved_ip": { + "name": "reserved_ip", + "type": "TypeString", + "description": "Identifies a reserved IP by a unique property.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type", + "computed": true + } + } + }, + { + "name": "security_groups", + "type": "TypeList", + "description": "Collection of security groups.", "computed": true, "elem": { "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN for this subnet.", + "description": "The security group's CRN.", "computed": true }, "deleted": { @@ -45366,19 +45396,19 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for this subnet.", + "description": "The security group's canonical URL.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this subnet.", + "description": "The unique identifier for this security group.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The user-defined name for this subnet.", + "description": "The user-defined name for this security group. Names must be unique within the VPC the security group resides in.", "computed": true } } @@ -45389,12 +45419,30 @@ "description": "The type of this network interface as it relates to an instance.", "computed": true }, + { + "name": "allow_ip_spoofing", + "type": "TypeBool", + "description": "Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this network interface.", + "computed": true + }, { "name": "name", "type": "TypeString", "description": "The user-defined name for this network interface.", "computed": true }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + }, { "name": "instance_name", "type": "TypeString", @@ -45408,21 +45456,27 @@ "required": true }, { - "name": "floating_ips", + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the network interface was created.", + "computed": true + }, + { + "name": "port_speed", + "type": "TypeInt", + "description": "The network interface port speed in Mbps.", + "computed": true + }, + { + "name": "subnet", "type": "TypeList", - "description": "The floating IPs associated with this network interface.", + "description": "The associated subnet.", "computed": true, "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "The globally unique IP address.", - "computed": true - }, "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN for this floating IP.", + "description": "The CRN for this subnet.", "computed": true }, "deleted": { @@ -45442,93 +45496,43 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for this floating IP.", + "description": "The URL for this subnet.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this floating IP.", + "description": "The unique identifier for this subnet.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The unique user-defined name for this floating IP.", + "description": "The user-defined name for this subnet.", "computed": true } } - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this network interface.", - "computed": true - }, + } + ], + "ibm_is_instance_network_interface_reserved_ip": [ { - "name": "allow_ip_spoofing", + "name": "auto_delete", "type": "TypeBool", - "description": "Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface.", - "computed": true - }, - { - "name": "port_speed", - "type": "TypeInt", - "description": "The network interface port speed in Mbps.", + "description": "If set to true, this reserved IP will be automatically deleted", "computed": true }, { - "name": "primary_ip", - "type": "TypeList", - "description": "The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.", - "computed": true, - "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "The IP address to reserve, which must not already be reserved on the subnet.", - "computed": true - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this reserved IP", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this reserved IP. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the subnet the reserved IP resides in.", - "computed": true - }, - "reserved_ip": { - "name": "reserved_ip", - "type": "TypeString", - "description": "Identifies a reserved IP by a unique property.", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type", - "computed": true - } - } - }, - { - "name": "resource_type", + "name": "created_at", "type": "TypeString", - "description": "The resource type.", + "description": "The date and time that the reserved IP was created.", "computed": true }, { - "name": "status", + "name": "href", "type": "TypeString", - "description": "The status of the network interface.", + "description": "The URL for this reserved IP.", "computed": true - } - ], - "ibm_is_instance_network_interface_reserved_ip": [ + }, { "name": "instance", "type": "TypeString", @@ -45548,15 +45552,9 @@ "computed": true }, { - "name": "href", - "type": "TypeString", - "description": "The URL for this reserved IP.", - "computed": true - }, - { - "name": "owner", + "name": "resource_type", "type": "TypeString", - "description": "The owner of a reserved IP, defining whether it is managed by the user or the provider.", + "description": "The resource type.", "computed": true }, { @@ -45571,18 +45569,6 @@ "description": "The reserved IP identifier.", "required": true }, - { - "name": "auto_delete", - "type": "TypeBool", - "description": "If set to true, this reserved IP will be automatically deleted", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the reserved IP was created.", - "computed": true - }, { "name": "name", "type": "TypeString", @@ -45590,9 +45576,9 @@ "computed": true }, { - "name": "resource_type", + "name": "owner", "type": "TypeString", - "description": "The resource type.", + "description": "The owner of a reserved IP, defining whether it is managed by the user or the provider.", "computed": true } ], @@ -45944,66 +45930,41 @@ ], "ibm_is_instance_profile": [ { - "name": "status", + "name": "architecture_type", "type": "TypeString", - "description": "The status of the instance profile.", + "description": "The type for the OS architecture.", "computed": true }, { - "name": "vcpu_architecture", + "name": "gpu_count", "type": "TypeList", + "description": "GPU count of this profile", "computed": true, "elem": { "default": { "name": "default", - "type": "TypeString", - "description": "The default VCPU architecture for an instance with this profile.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", + "type": "TypeInt", + "description": "The default value for this profile field.", "computed": true }, - "value": { - "name": "value", - "type": "TypeString", - "description": "The VCPU architecture for an instance with this profile.", - "computed": true - } - } - }, - { - "name": "network_interface_count", - "type": "TypeSet", - "computed": true, - "elem": { "max": { "name": "max", "type": "TypeInt", - "description": "The maximum value for this profile field", + "description": "The maximum value for this profile field.", "computed": true }, "min": { "name": "min", "type": "TypeInt", - "description": "The minimum value for this profile field", + "description": "The minimum value for this profile field.", "computed": true }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", + "step": { + "name": "step", + "type": "TypeInt", + "description": "The increment step value for this profile field.", "computed": true - } - } - }, - { - "name": "numa_count", - "type": "TypeList", - "computed": true, - "elem": { + }, "type": { "name": "type", "type": "TypeString", @@ -46015,22 +45976,22 @@ "type": "TypeInt", "description": "The value for this profile field.", "computed": true + }, + "values": { + "name": "values", + "type": "TypeList", + "description": "The permitted values for this profile field.", + "computed": true, + "elem": { + "type": "TypeInt" + } } } }, { - "name": "architecture_values", - "type": "TypeList", - "description": "The supported OS architecture(s) for an instance with this profile.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "gpu_count", + "name": "gpu_memory", "type": "TypeList", - "description": "GPU count of this profile", + "description": "GPU memory of this profile", "computed": true, "elem": { "default": { @@ -46081,9 +46042,9 @@ } }, { - "name": "gpu_manufacturer", + "name": "gpu_model", "type": "TypeList", - "description": "GPU manufacturer of this profile", + "description": "GPU model of this profile", "computed": true, "elem": { "type": { @@ -46095,7 +46056,7 @@ "values": { "name": "values", "type": "TypeList", - "description": "The possible GPU manufacturer(s) for an instance with this profile", + "description": "The possible GPU model(s) for an instance with this profile", "computed": true, "elem": { "type": "TypeString" @@ -46104,174 +46065,30 @@ } }, { - "name": "disks", + "name": "name", + "type": "TypeString", + "required": true + }, + { + "name": "family", + "type": "TypeString", + "description": "The product family this virtual server instance profile belongs to.", + "computed": true + }, + { + "name": "architecture_values", "type": "TypeList", - "description": "Collection of the instance profile's disks.", + "description": "The supported OS architecture(s) for an instance with this profile.", "computed": true, "elem": { - "quantity": { - "name": "quantity", - "type": "TypeList", - "computed": true, - "elem": { - "default": { - "name": "default", - "type": "TypeInt", - "description": "The default value for this profile field.", - "computed": true - }, - "max": { - "name": "max", - "type": "TypeInt", - "description": "The maximum value for this profile field.", - "computed": true - }, - "min": { - "name": "min", - "type": "TypeInt", - "description": "The minimum value for this profile field.", - "computed": true - }, - "step": { - "name": "step", - "type": "TypeInt", - "description": "The increment step value for this profile field.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", - "description": "The value for this profile field.", - "computed": true - }, - "values": { - "name": "values", - "type": "TypeList", - "description": "The permitted values for this profile field.", - "computed": true, - "elem": { - "type": "TypeInt" - } - } - } - }, - "size": { - "name": "size", - "type": "TypeList", - "computed": true, - "elem": { - "default": { - "name": "default", - "type": "TypeInt", - "description": "The default value for this profile field.", - "computed": true - }, - "max": { - "name": "max", - "type": "TypeInt", - "description": "The maximum value for this profile field.", - "computed": true - }, - "min": { - "name": "min", - "type": "TypeInt", - "description": "The minimum value for this profile field.", - "computed": true - }, - "step": { - "name": "step", - "type": "TypeInt", - "description": "The increment step value for this profile field.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", - "description": "The value for this profile field.", - "computed": true - }, - "values": { - "name": "values", - "type": "TypeList", - "description": "The permitted values for this profile field.", - "computed": true, - "elem": { - "type": "TypeInt" - } - } - } - }, - "supported_interface_types": { - "name": "supported_interface_types", - "type": "TypeList", - "computed": true, - "elem": { - "default": { - "name": "default", - "type": "TypeString", - "description": "The disk interface used for attaching the disk.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - }, - "values": { - "name": "values", - "type": "TypeList", - "description": "The supported disk interfaces used for attaching the disk.", - "computed": true, - "elem": { - "type": "TypeString" - } - } - } - } + "type": "TypeString" } }, { - "name": "memory", + "name": "numa_count", "type": "TypeList", "computed": true, "elem": { - "default": { - "name": "default", - "type": "TypeInt", - "description": "The default value for this profile field.", - "computed": true - }, - "max": { - "name": "max", - "type": "TypeInt", - "description": "The maximum value for this profile field.", - "computed": true - }, - "min": { - "name": "min", - "type": "TypeInt", - "description": "The minimum value for this profile field.", - "computed": true - }, - "step": { - "name": "step", - "type": "TypeInt", - "description": "The increment step value for this profile field.", - "computed": true - }, "type": { "name": "type", "type": "TypeString", @@ -46283,23 +46100,20 @@ "type": "TypeInt", "description": "The value for this profile field.", "computed": true - }, - "values": { - "name": "values", - "type": "TypeList", - "description": "The permitted values for this profile field.", - "computed": true, - "elem": { - "type": "TypeInt" - } } } }, { - "name": "port_speed", + "name": "vcpu_architecture", "type": "TypeList", "computed": true, "elem": { + "default": { + "name": "default", + "type": "TypeString", + "description": "The default VCPU architecture for an instance with this profile.", + "computed": true + }, "type": { "name": "type", "type": "TypeString", @@ -46308,50 +46122,21 @@ }, "value": { "name": "value", - "type": "TypeInt", - "description": "The value for this profile field.", + "type": "TypeString", + "description": "The VCPU architecture for an instance with this profile.", "computed": true } } }, { - "name": "name", - "type": "TypeString", - "required": true - }, - { - "name": "architecture", + "name": "href", "type": "TypeString", - "description": "The default OS architecture for an instance with this profile.", + "description": "The URL for this virtual server instance profile.", "computed": true }, { - "name": "gpu_model", + "name": "memory", "type": "TypeList", - "description": "GPU model of this profile", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "The type for this profile field.", - "computed": true - }, - "values": { - "name": "values", - "type": "TypeList", - "description": "The possible GPU model(s) for an instance with this profile", - "computed": true, - "elem": { - "type": "TypeString" - } - } - } - }, - { - "name": "total_volume_bandwidth", - "type": "TypeList", - "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes. An increase in this value will result in a corresponding decrease to total_network_bandwidth.", "computed": true, "elem": { "default": { @@ -46401,6 +46186,31 @@ } } }, + { + "name": "network_interface_count", + "type": "TypeSet", + "computed": true, + "elem": { + "max": { + "name": "max", + "type": "TypeInt", + "description": "The maximum value for this profile field", + "computed": true + }, + "min": { + "name": "min", + "type": "TypeInt", + "description": "The minimum value for this profile field", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + } + } + }, { "name": "vcpu_count", "type": "TypeList", @@ -46454,15 +46264,14 @@ } }, { - "name": "architecture_type", + "name": "architecture", "type": "TypeString", - "description": "The type for the OS architecture.", + "description": "The default OS architecture for an instance with this profile.", "computed": true }, { - "name": "gpu_memory", + "name": "bandwidth", "type": "TypeList", - "description": "GPU memory of this profile", "computed": true, "elem": { "default": { @@ -46513,45 +46322,32 @@ } }, { - "name": "href", - "type": "TypeString", - "description": "The URL for this virtual server instance profile.", - "computed": true - }, - { - "name": "vcpu_manufacturer", + "name": "gpu_manufacturer", "type": "TypeList", + "description": "GPU manufacturer of this profile", "computed": true, "elem": { - "default": { - "name": "default", - "type": "TypeString", - "description": "The default VCPU manufacturer for an instance with this profile.", - "computed": true - }, "type": { "name": "type", "type": "TypeString", "description": "The type for this profile field.", "computed": true }, - "value": { - "name": "value", - "type": "TypeString", - "description": "The VCPU manufacturer for an instance with this profile.", - "computed": true + "values": { + "name": "values", + "type": "TypeList", + "description": "The possible GPU manufacturer(s) for an instance with this profile", + "computed": true, + "elem": { + "type": "TypeString" + } } } }, { - "name": "family", - "type": "TypeString", - "description": "The product family this virtual server instance profile belongs to.", - "computed": true - }, - { - "name": "bandwidth", + "name": "total_volume_bandwidth", "type": "TypeList", + "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes. An increase in this value will result in a corresponding decrease to total_network_bandwidth.", "computed": true, "elem": { "default": { @@ -46600,6 +46396,196 @@ } } } + }, + { + "name": "disks", + "type": "TypeList", + "description": "Collection of the instance profile's disks.", + "computed": true, + "elem": { + "quantity": { + "name": "quantity", + "type": "TypeList", + "computed": true, + "elem": { + "default": { + "name": "default", + "type": "TypeInt", + "description": "The default value for this profile field.", + "computed": true + }, + "max": { + "name": "max", + "type": "TypeInt", + "description": "The maximum value for this profile field.", + "computed": true + }, + "min": { + "name": "min", + "type": "TypeInt", + "description": "The minimum value for this profile field.", + "computed": true + }, + "step": { + "name": "step", + "type": "TypeInt", + "description": "The increment step value for this profile field.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "The value for this profile field.", + "computed": true + }, + "values": { + "name": "values", + "type": "TypeList", + "description": "The permitted values for this profile field.", + "computed": true, + "elem": { + "type": "TypeInt" + } + } + } + }, + "size": { + "name": "size", + "type": "TypeList", + "computed": true, + "elem": { + "default": { + "name": "default", + "type": "TypeInt", + "description": "The default value for this profile field.", + "computed": true + }, + "max": { + "name": "max", + "type": "TypeInt", + "description": "The maximum value for this profile field.", + "computed": true + }, + "min": { + "name": "min", + "type": "TypeInt", + "description": "The minimum value for this profile field.", + "computed": true + }, + "step": { + "name": "step", + "type": "TypeInt", + "description": "The increment step value for this profile field.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "The value for this profile field.", + "computed": true + }, + "values": { + "name": "values", + "type": "TypeList", + "description": "The permitted values for this profile field.", + "computed": true, + "elem": { + "type": "TypeInt" + } + } + } + }, + "supported_interface_types": { + "name": "supported_interface_types", + "type": "TypeList", + "computed": true, + "elem": { + "default": { + "name": "default", + "type": "TypeString", + "description": "The disk interface used for attaching the disk.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "values": { + "name": "values", + "type": "TypeList", + "description": "The supported disk interfaces used for attaching the disk.", + "computed": true, + "elem": { + "type": "TypeString" + } + } + } + } + } + }, + { + "name": "port_speed", + "type": "TypeList", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "The value for this profile field.", + "computed": true + } + } + }, + { + "name": "status", + "type": "TypeString", + "description": "The status of the instance profile.", + "computed": true + }, + { + "name": "vcpu_manufacturer", + "type": "TypeList", + "computed": true, + "elem": { + "default": { + "name": "default", + "type": "TypeString", + "description": "The default VCPU manufacturer for an instance with this profile.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The type for this profile field.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "The VCPU manufacturer for an instance with this profile.", + "computed": true + } + } } ], "ibm_is_instance_profiles": [ @@ -47271,11 +47257,153 @@ } ], "ibm_is_instance_template": [ + { + "name": "metadata_service", + "type": "TypeList", + "description": "The metadata service configuration", + "computed": true, + "elem": { + "enabled": { + "name": "enabled", + "type": "TypeBool", + "description": "Indicates whether the metadata service endpoint will be available to the virtual server instance", + "computed": true + }, + "protocol": { + "name": "protocol", + "type": "TypeString", + "description": "The communication protocol to use for the metadata service endpoint. Applies only when the metadata service is enabled.", + "computed": true + }, + "response_hop_limit": { + "name": "response_hop_limit", + "type": "TypeInt", + "description": "The hop limit (IP time to live) for IP response packets from the metadata service", + "computed": true + } + } + }, + { + "name": "resource_group", + "type": "TypeString", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "keys", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "total_volume_bandwidth", + "type": "TypeInt", + "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes", + "computed": true + }, + { + "name": "catalog_offering", + "type": "TypeList", + "description": "The catalog offering or offering version to use when provisioning this virtual server instance template. If an offering is specified, the latest version of that offering will be used. The specified offering or offering version may be in a different account in the same enterprise, subject to IAM policies.", + "computed": true, + "elem": { + "offering_crn": { + "name": "offering_crn", + "type": "TypeString", + "description": "Identifies a catalog offering by a unique CRN property", + "computed": true + }, + "version_crn": { + "name": "version_crn", + "type": "TypeString", + "description": "Identifies a version of a catalog offering by a unique CRN property", + "computed": true + } + } + }, + { + "name": "placement_target", + "type": "TypeList", + "description": "The placement restrictions to use for the virtual server instance.", + "computed": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this dedicated host.", + "computed": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this dedicated host.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this dedicated host.", + "computed": true + } + } + }, + { + "name": "identifier", + "type": "TypeString", + "optional": true, + "computed": true + }, + { + "name": "zone", + "type": "TypeString", + "computed": true + }, + { + "name": "metadata_service_enabled", + "type": "TypeBool", + "description": "Indicates whether the metadata service endpoint is available to the virtual server instance", + "computed": true + }, + { + "name": "availability_policy_host_failure", + "type": "TypeString", + "description": "The availability policy to use for this virtual server instance. The action to perform if the compute host experiences a failure.", + "computed": true + }, + { + "name": "image", + "type": "TypeString", + "computed": true + }, + { + "name": "vpc", + "type": "TypeString", + "computed": true + }, { "name": "profile", "type": "TypeString", "computed": true }, + { + "name": "default_trusted_profile_target", + "type": "TypeString", + "description": "The unique identifier or CRN of the default IAM trusted profile to use for this virtual server instance.", + "computed": true + }, { "name": "volume_attachments", "type": "TypeList", @@ -47339,48 +47467,7 @@ } }, { - "name": "boot_volume_attachment", - "type": "TypeList", - "computed": true, - "elem": { - "delete_volume_on_instance_delete": { - "name": "delete_volume_on_instance_delete", - "type": "TypeBool", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "computed": true - }, - "profile": { - "name": "profile", - "type": "TypeString", - "computed": true - }, - "size": { - "name": "size", - "type": "TypeInt", - "computed": true - }, - "tags": { - "name": "tags", - "type": "TypeSet", - "description": "The user tags associated with this volume.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "volume": { - "name": "volume", - "type": "TypeString", - "computed": true - } - } - }, - { - "name": "network_interfaces", + "name": "primary_network_interface", "type": "TypeList", "computed": true, "elem": { @@ -47436,70 +47523,7 @@ } }, { - "name": "identifier", - "type": "TypeString", - "optional": true, - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "computed": true - }, - { - "name": "default_trusted_profile_auto_link", - "type": "TypeBool", - "description": "If set to `true`, the system will create a link to the specified `target` trusted profile during instance creation. Regardless of whether a link is created by the system or manually using the IAM Identity service, it will be automatically deleted when the instance is deleted.", - "computed": true - }, - { - "name": "metadata_service", - "type": "TypeList", - "description": "The metadata service configuration", - "computed": true, - "elem": { - "enabled": { - "name": "enabled", - "type": "TypeBool", - "description": "Indicates whether the metadata service endpoint will be available to the virtual server instance", - "computed": true - }, - "protocol": { - "name": "protocol", - "type": "TypeString", - "description": "The communication protocol to use for the metadata service endpoint. Applies only when the metadata service is enabled.", - "computed": true - }, - "response_hop_limit": { - "name": "response_hop_limit", - "type": "TypeInt", - "description": "The hop limit (IP time to live) for IP response packets from the metadata service", - "computed": true - } - } - }, - { - "name": "catalog_offering", - "type": "TypeList", - "description": "The catalog offering or offering version to use when provisioning this virtual server instance template. If an offering is specified, the latest version of that offering will be used. The specified offering or offering version may be in a different account in the same enterprise, subject to IAM policies.", - "computed": true, - "elem": { - "offering_crn": { - "name": "offering_crn", - "type": "TypeString", - "description": "Identifies a catalog offering by a unique CRN property", - "computed": true - }, - "version_crn": { - "name": "version_crn", - "type": "TypeString", - "description": "Identifies a version of a catalog offering by a unique CRN property", - "computed": true - } - } - }, - { - "name": "primary_network_interface", + "name": "network_interfaces", "type": "TypeList", "computed": true, "elem": { @@ -47554,101 +47578,63 @@ } } }, - { - "name": "default_trusted_profile_target", - "type": "TypeString", - "description": "The unique identifier or CRN of the default IAM trusted profile to use for this virtual server instance.", - "computed": true - }, { "name": "user_data", "type": "TypeString", "computed": true }, { - "name": "name", - "type": "TypeString", - "optional": true, - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "vpc", - "type": "TypeString", - "computed": true - }, - { - "name": "zone", - "type": "TypeString", - "computed": true - }, - { - "name": "keys", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "total_volume_bandwidth", - "type": "TypeInt", - "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes", - "computed": true - }, - { - "name": "resource_group", - "type": "TypeString", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "metadata_service_enabled", - "type": "TypeBool", - "description": "Indicates whether the metadata service endpoint is available to the virtual server instance", - "computed": true - }, - { - "name": "availability_policy_host_failure", - "type": "TypeString", - "description": "The availability policy to use for this virtual server instance. The action to perform if the compute host experiences a failure.", - "computed": true - }, - { - "name": "image", - "type": "TypeString", - "computed": true - }, - { - "name": "placement_target", + "name": "boot_volume_attachment", "type": "TypeList", - "description": "The placement restrictions to use for the virtual server instance.", "computed": true, "elem": { - "crn": { - "name": "crn", + "delete_volume_on_instance_delete": { + "name": "delete_volume_on_instance_delete", + "type": "TypeBool", + "computed": true + }, + "name": { + "name": "name", "type": "TypeString", - "description": "The CRN for this dedicated host.", "computed": true }, - "href": { - "name": "href", + "profile": { + "name": "profile", "type": "TypeString", - "description": "The URL for this dedicated host.", "computed": true }, - "id": { - "name": "id", + "size": { + "name": "size", + "type": "TypeInt", + "computed": true + }, + "tags": { + "name": "tags", + "type": "TypeSet", + "description": "The user tags associated with this volume.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "volume": { + "name": "volume", "type": "TypeString", - "description": "The unique identifier for this dedicated host.", "computed": true } } + }, + { + "name": "name", + "type": "TypeString", + "optional": true, + "computed": true + }, + { + "name": "default_trusted_profile_auto_link", + "type": "TypeBool", + "description": "If set to `true`, the system will create a link to the specified `target` trusted profile during instance creation. Regardless of whether a link is created by the system or manually using the IAM Identity service, it will be automatically deleted when the instance is deleted.", + "computed": true } ], "ibm_is_instance_templates": [ @@ -48037,6 +48023,24 @@ } ], "ibm_is_instance_volume_attachment": [ + { + "name": "instance", + "type": "TypeString", + "description": "Instance id", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this volume attachment.", + "required": true + }, + { + "name": "device", + "type": "TypeString", + "description": "A unique identifier for the device which is exposed to the instance operating system", + "computed": true + }, { "name": "delete_volume_on_instance_delete", "type": "TypeBool", @@ -48061,6 +48065,12 @@ "description": "The status of this volume attachment, one of [ attached, attaching, deleting, detaching ]", "computed": true }, + { + "name": "type", + "type": "TypeString", + "description": "The type of volume attachment one of [ boot, data ]", + "computed": true + }, { "name": "volume_reference", "type": "TypeList", @@ -48098,39 +48108,9 @@ "computed": true } } - }, - { - "name": "instance", - "type": "TypeString", - "description": "Instance id", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this volume attachment.", - "required": true - }, - { - "name": "device", - "type": "TypeString", - "description": "A unique identifier for the device which is exposed to the instance operating system", - "computed": true - }, - { - "name": "type", - "type": "TypeString", - "description": "The type of volume attachment one of [ boot, data ]", - "computed": true } ], "ibm_is_instance_volume_attachments": [ - { - "name": "instance", - "type": "TypeString", - "description": "Instance id", - "required": true - }, { "name": "volume_attachments", "type": "TypeList", @@ -48217,27 +48197,15 @@ "elem": {} } } - } - ], - "ibm_is_instances": [ - { - "name": "placement_group", - "type": "TypeString", - "description": "ID of the placement group to filter the instances attached to it", - "optional": true }, { - "name": "instance_group_name", - "type": "TypeString", - "description": "Instance group name to filter the instances attached to it", - "optional": true - }, - { - "name": "vpc_name", + "name": "instance", "type": "TypeString", - "description": "Name of the vpc to filter the instances attached to it", - "optional": true - }, + "description": "Instance id", + "required": true + } + ], + "ibm_is_instances": [ { "name": "resource_group", "type": "TypeString", @@ -48246,9 +48214,9 @@ "optional": true }, { - "name": "placement_group_name", + "name": "dedicated_host_name", "type": "TypeString", - "description": "Name of the placement group to filter the instances attached to it", + "description": "Name of the dedicated host to filter the instances attached to it", "optional": true }, { @@ -48257,6 +48225,12 @@ "description": "ID of the dedicated host to filter the instances attached to it", "optional": true }, + { + "name": "placement_group", + "type": "TypeString", + "description": "ID of the placement group to filter the instances attached to it", + "optional": true + }, { "name": "instances", "type": "TypeList", @@ -48885,9 +48859,9 @@ "optional": true }, { - "name": "vpc", + "name": "vpc_name", "type": "TypeString", - "description": "VPC ID to filter the instances attached to it", + "description": "Name of the vpc to filter the instances attached to it", "optional": true }, { @@ -48897,9 +48871,21 @@ "optional": true }, { - "name": "dedicated_host_name", + "name": "placement_group_name", "type": "TypeString", - "description": "Name of the dedicated host to filter the instances attached to it", + "description": "Name of the placement group to filter the instances attached to it", + "optional": true + }, + { + "name": "instance_group_name", + "type": "TypeString", + "description": "Instance group name to filter the instances attached to it", + "optional": true + }, + { + "name": "vpc", + "type": "TypeString", + "description": "VPC ID to filter the instances attached to it", "optional": true } ], @@ -49052,6 +49038,24 @@ } ], "ibm_is_ipsec_policy": [ + { + "name": "ipsec_policy", + "type": "TypeString", + "description": "The IPsec policy identifier.", + "optional": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that this IPsec policy was created.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The IPsec policy's canonical URL.", + "computed": true + }, { "name": "resource_group", "type": "TypeList", @@ -49138,15 +49142,15 @@ } }, { - "name": "created_at", + "name": "encapsulation_mode", "type": "TypeString", - "description": "The date and time that this IPsec policy was created.", + "description": "The encapsulation mode used. Only `tunnel` is supported.", "computed": true }, { - "name": "encapsulation_mode", + "name": "encryption_algorithm", "type": "TypeString", - "description": "The encapsulation mode used. Only `tunnel` is supported.", + "description": "The encryption algorithm.", "computed": true }, { @@ -49172,39 +49176,9 @@ "type": "TypeString", "description": "The transform protocol used. Only `esp` is supported.", "computed": true - }, - { - "name": "ipsec_policy", - "type": "TypeString", - "description": "The IPsec policy identifier.", - "optional": true - }, - { - "name": "encryption_algorithm", - "type": "TypeString", - "description": "The encryption algorithm.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The IPsec policy's canonical URL.", - "computed": true } ], "ibm_is_lb": [ - { - "name": "logging", - "type": "TypeBool", - "description": "Logging of Load Balancer", - "computed": true - }, - { - "name": "operating_status", - "type": "TypeString", - "description": "Load Balancer operating status", - "computed": true - }, { "name": "security_groups", "type": "TypeSet", @@ -49215,26 +49189,15 @@ } }, { - "name": "tags", - "type": "TypeSet", - "description": "Tags associated to Load Balancer", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_group", + "name": "resource_controller_url", "type": "TypeString", - "description": "Load Balancer Resource group", - "cloud_data_type": "resource_group", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { - "name": "hostname", + "name": "resource_group_name", "type": "TypeString", - "description": "Load Balancer Host Name", + "description": "The resource group name in which resource is provisioned", "computed": true }, { @@ -49258,53 +49221,19 @@ } }, { - "name": "type", - "type": "TypeString", - "description": "Load Balancer type", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this Load Balancer", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - }, - { - "name": "udp_supported", - "type": "TypeBool", - "description": "Indicates whether this load balancer supports UDP.", - "computed": true - }, - { - "name": "status", + "name": "operating_status", "type": "TypeString", - "description": "Load Balancer status", + "description": "Load Balancer operating status", "computed": true }, { - "name": "route_mode", - "type": "TypeBool", - "description": "Indicates whether route mode is enabled for this load balancer", - "computed": true + "name": "public_ips", + "type": "TypeList", + "description": "Load Balancer Public IPs", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "access_tags", @@ -49353,6 +49282,39 @@ } } }, + { + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Load Balancer type", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Load Balancer status", + "computed": true + }, + { + "name": "private_ips", + "type": "TypeList", + "description": "Load Balancer private IPs", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "logging", + "type": "TypeBool", + "description": "Logging of Load Balancer", + "computed": true + }, { "name": "listeners", "type": "TypeSet", @@ -49362,6 +49324,48 @@ "type": "TypeString" } }, + { + "name": "name", + "type": "TypeString", + "description": "Load Balancer name", + "required": true + }, + { + "name": "udp_supported", + "type": "TypeBool", + "description": "Indicates whether this load balancer supports UDP.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this Load Balancer", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "tags", + "type": "TypeSet", + "description": "Tags associated to Load Balancer", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Load Balancer Resource group", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "hostname", + "type": "TypeString", + "description": "Load Balancer Host Name", + "computed": true + }, { "name": "pools", "type": "TypeList", @@ -49451,28 +49455,10 @@ } }, { - "name": "name", - "type": "TypeString", - "description": "Load Balancer name", - "required": true - }, - { - "name": "public_ips", - "type": "TypeList", - "description": "Load Balancer Public IPs", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "private_ips", - "type": "TypeList", - "description": "Load Balancer private IPs", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "route_mode", + "type": "TypeBool", + "description": "Indicates whether route mode is enabled for this load balancer", + "computed": true }, { "name": "subnets", @@ -49491,50 +49477,6 @@ } ], "ibm_is_lb_listener": [ - { - "name": "connection_limit", - "type": "TypeInt", - "description": "The connection limit of the listener.", - "computed": true - }, - { - "name": "provisioning_status", - "type": "TypeString", - "description": "The provisioning status of this listener.", - "computed": true - }, - { - "name": "idle_connection_timeout", - "type": "TypeInt", - "description": "idle connection timeout of listener", - "computed": true - }, - { - "name": "lb", - "type": "TypeString", - "description": "The load balancer identifier.", - "required": true - }, - { - "name": "accept_proxy_protocol", - "type": "TypeBool", - "description": "If set to `true`, this listener will accept and forward PROXY protocol information. Supported by load balancers in the `application` family (otherwise always `false`). Additional restrictions:- If this listener has `https_redirect` specified, its `accept_proxy_protocol` value must match the `accept_proxy_protocol` value of the `https_redirect` listener.- If this listener is the target of another listener's `https_redirect`, its `accept_proxy_protocol` value must match that listener's `accept_proxy_protocol` value.", - "computed": true - }, - { - "name": "certificate_instance", - "type": "TypeList", - "description": "The certificate instance used for SSL termination. It is applicable only to `https`protocol.", - "computed": true, - "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this certificate instance.", - "computed": true - } - } - }, { "name": "created_at", "type": "TypeString", @@ -49542,55 +49484,9 @@ "computed": true }, { - "name": "href", - "type": "TypeString", - "description": "The listener's canonical URL.", - "computed": true - }, - { - "name": "port", - "type": "TypeInt", - "description": "The listener port number, or the inclusive lower bound of the port range. Each listener in the load balancer must have a unique `port` and `protocol` combination.", - "computed": true - }, - { - "name": "policies", - "type": "TypeList", - "description": "The policies for this listener.", - "computed": true, - "elem": { - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The listener policy's canonical URL.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The policy's unique identifier.", - "computed": true - } - } - }, - { - "name": "port_min", + "name": "port_max", "type": "TypeInt", - "description": "The inclusive lower bound of the range of ports used by this listener.Only load balancers in the `network` family support more than one port per listener.", + "description": "The inclusive upper bound of the range of ports used by this listener.Only load balancers in the `network` family support more than one port per listener.", "computed": true }, { @@ -49599,6 +49495,12 @@ "description": "The listener identifier.", "required": true }, + { + "name": "connection_limit", + "type": "TypeInt", + "description": "The connection limit of the listener.", + "computed": true + }, { "name": "default_pool", "type": "TypeList", @@ -49639,6 +49541,84 @@ } } }, + { + "name": "policies", + "type": "TypeList", + "description": "The policies for this listener.", + "computed": true, + "elem": { + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The listener policy's canonical URL.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The policy's unique identifier.", + "computed": true + } + } + }, + { + "name": "port", + "type": "TypeInt", + "description": "The listener port number, or the inclusive lower bound of the port range. Each listener in the load balancer must have a unique `port` and `protocol` combination.", + "computed": true + }, + { + "name": "idle_connection_timeout", + "type": "TypeInt", + "description": "idle connection timeout of listener", + "computed": true + }, + { + "name": "certificate_instance", + "type": "TypeList", + "description": "The certificate instance used for SSL termination. It is applicable only to `https`protocol.", + "computed": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this certificate instance.", + "computed": true + } + } + }, + { + "name": "href", + "type": "TypeString", + "description": "The listener's canonical URL.", + "computed": true + }, + { + "name": "provisioning_status", + "type": "TypeString", + "description": "The provisioning status of this listener.", + "computed": true + }, + { + "name": "lb", + "type": "TypeString", + "description": "The load balancer identifier.", + "required": true + }, { "name": "https_redirect", "type": "TypeList", @@ -49693,9 +49673,9 @@ } }, { - "name": "port_max", + "name": "port_min", "type": "TypeInt", - "description": "The inclusive upper bound of the range of ports used by this listener.Only load balancers in the `network` family support more than one port per listener.", + "description": "The inclusive lower bound of the range of ports used by this listener.Only load balancers in the `network` family support more than one port per listener.", "computed": true }, { @@ -49703,6 +49683,12 @@ "type": "TypeString", "description": "The listener protocol. Load balancers in the `network` family support `tcp`. Load balancers in the `application` family support `tcp`, `http`, and `https`. Each listener in the load balancer must have a unique `port` and `protocol` combination.", "computed": true + }, + { + "name": "accept_proxy_protocol", + "type": "TypeBool", + "description": "If set to `true`, this listener will accept and forward PROXY protocol information. Supported by load balancers in the `application` family (otherwise always `false`). Additional restrictions:- If this listener has `https_redirect` specified, its `accept_proxy_protocol` value must match the `accept_proxy_protocol` value of the `https_redirect` listener.- If this listener is the target of another listener's `https_redirect`, its `accept_proxy_protocol` value must match that listener's `accept_proxy_protocol` value.", + "computed": true } ], "ibm_is_lb_listener_policies": [ @@ -49895,70 +49881,6 @@ } ], "ibm_is_lb_listener_policy": [ - { - "name": "lb", - "type": "TypeString", - "description": "The load balancer identifier.", - "required": true - }, - { - "name": "listener", - "type": "TypeString", - "description": "The listener identifier.", - "required": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that this policy was created.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this policy.", - "computed": true - }, - { - "name": "provisioning_status", - "type": "TypeString", - "description": "The provisioning status of this policy.", - "computed": true - }, - { - "name": "rules", - "type": "TypeList", - "description": "The rules for this policy.", - "computed": true, - "elem": { - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The rule's canonical URL.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The rule's unique identifier.", - "computed": true - } - } - }, { "name": "target", "type": "TypeList", @@ -50051,21 +49973,21 @@ } }, { - "name": "policy_id", + "name": "lb", "type": "TypeString", - "description": "The policy identifier.", + "description": "The load balancer identifier.", "required": true }, { - "name": "action", + "name": "listener", "type": "TypeString", - "description": "The policy action.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the policy on which the unexpected property value was encountered.", - "computed": true + "description": "The listener identifier.", + "required": true }, { - "name": "href", + "name": "created_at", "type": "TypeString", - "description": "The listener policy's canonical URL.", + "description": "The date and time that this policy was created.", "computed": true }, { @@ -50073,38 +49995,78 @@ "type": "TypeInt", "description": "Priority of the policy. Lower value indicates higher priority.", "computed": true - } - ], - "ibm_is_lb_listener_policy_rule": [ + }, { - "name": "value", + "name": "provisioning_status", "type": "TypeString", - "description": "Value to be matched for rule condition.If the rule type is `query` and the rule condition is not `matches_regex`, the value must be percent-encoded.", + "description": "The provisioning status of this policy.", "computed": true }, { - "name": "lb", + "name": "rules", + "type": "TypeList", + "description": "The rules for this policy.", + "computed": true, + "elem": { + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The rule's canonical URL.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The rule's unique identifier.", + "computed": true + } + } + }, + { + "name": "policy_id", "type": "TypeString", - "description": "The load balancer identifier.", + "description": "The policy identifier.", "required": true }, { - "name": "listener", + "name": "action", "type": "TypeString", - "description": "The listener identifier.", - "required": true + "description": "The policy action.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the policy on which the unexpected property value was encountered.", + "computed": true }, { - "name": "policy", + "name": "href", "type": "TypeString", - "description": "The policy identifier.", - "required": true + "description": "The listener policy's canonical URL.", + "computed": true }, { - "name": "condition", + "name": "name", "type": "TypeString", - "description": "The condition of the rule.", + "description": "The user-defined name for this policy.", "computed": true + } + ], + "ibm_is_lb_listener_policy_rule": [ + { + "name": "policy", + "type": "TypeString", + "description": "The policy identifier.", + "required": true }, { "name": "provisioning_status", @@ -50118,12 +50080,24 @@ "description": "The type of the rule.Body rules are applied to form-encoded request bodies using the `UTF-8` character set.", "computed": true }, + { + "name": "listener", + "type": "TypeString", + "description": "The listener identifier.", + "required": true + }, { "name": "rule", "type": "TypeString", "description": "The rule identifier.", "required": true }, + { + "name": "condition", + "type": "TypeString", + "description": "The condition of the rule.", + "computed": true + }, { "name": "created_at", "type": "TypeString", @@ -50141,6 +50115,18 @@ "type": "TypeString", "description": "The rule's canonical URL.", "computed": true + }, + { + "name": "value", + "type": "TypeString", + "description": "Value to be matched for rule condition.If the rule type is `query` and the rule condition is not `matches_regex`, the value must be percent-encoded.", + "computed": true + }, + { + "name": "lb", + "type": "TypeString", + "description": "The load balancer identifier.", + "required": true } ], "ibm_is_lb_listener_policy_rules": [ @@ -50444,12 +50430,6 @@ } ], "ibm_is_lb_pool": [ - { - "name": "identifier", - "type": "TypeString", - "description": "The pool identifier.", - "optional": true - }, { "name": "name", "type": "TypeString", @@ -50458,63 +50438,61 @@ "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that this pool was created.", - "computed": true - }, - { - "name": "href", + "name": "algorithm", "type": "TypeString", - "description": "The pool's canonical URL.", + "description": "The load balancing algorithm.", "computed": true }, { - "name": "instance_group", + "name": "health_monitor", "type": "TypeList", - "description": "The instance group that is managing this pool.", + "description": "The health monitor of this pool.", "computed": true, "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this instance group.", + "delay": { + "name": "delay", + "type": "TypeInt", + "description": "The health check interval in seconds. Interval must be greater than timeout value.", "computed": true }, - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } + "max_retries": { + "name": "max_retries", + "type": "TypeInt", + "description": "The health check max retries.", + "computed": true }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this instance group.", + "port": { + "name": "port", + "type": "TypeInt", + "description": "The health check port number. If specified, this overrides the ports specified in the server member resources.", "computed": true }, - "id": { - "name": "id", + "timeout": { + "name": "timeout", + "type": "TypeInt", + "description": "The health check timeout in seconds.", + "computed": true + }, + "type": { + "name": "type", "type": "TypeString", - "description": "The unique identifier for this instance group.", + "description": "The protocol type of this load balancer pool health monitor.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the health monitor on which the unexpected property value was encountered.", "computed": true }, - "name": { - "name": "name", + "url_path": { + "name": "url_path", "type": "TypeString", - "description": "The user-defined name for this instance group.", + "description": "The health check URL path. Applicable only if the health monitor `type` is `http` or`https`. This value must be in the format of an [origin-form request target](https://tools.ietf.org/html/rfc7230#section-5.3.1).", "computed": true } } }, + { + "name": "href", + "type": "TypeString", + "description": "The pool's canonical URL.", + "computed": true + }, { "name": "members", "type": "TypeList", @@ -50555,12 +50533,6 @@ "description": "The protocol used for this load balancer pool.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the pool on which the unexpected property value was encountered.", "computed": true }, - { - "name": "provisioning_status", - "type": "TypeString", - "description": "The provisioning status of this pool.", - "computed": true - }, { "name": "lb", "type": "TypeString", @@ -50568,83 +50540,121 @@ "required": true }, { - "name": "algorithm", + "name": "identifier", "type": "TypeString", - "description": "The load balancing algorithm.", + "description": "The pool identifier.", + "optional": true + }, + { + "name": "provisioning_status", + "type": "TypeString", + "description": "The provisioning status of this pool.", "computed": true }, { - "name": "health_monitor", + "name": "proxy_protocol", + "type": "TypeString", + "description": "The PROXY protocol setting for this pool:- `v1`: Enabled with version 1 (human-readable header format)- `v2`: Enabled with version 2 (binary header format)- `disabled`: DisabledSupported by load balancers in the `application` family (otherwise always `disabled`).", + "computed": true + }, + { + "name": "session_persistence", "type": "TypeList", - "description": "The health monitor of this pool.", + "description": "The session persistence of this pool.The enumerated values for this property are expected to expand in the future. Whenprocessing this property, check for and log unknown values. Optionally haltprocessing and surface the error, or bypass the pool on which the unexpectedproperty value was encountered.", "computed": true, "elem": { - "delay": { - "name": "delay", - "type": "TypeInt", - "description": "The health check interval in seconds. Interval must be greater than timeout value.", - "computed": true - }, - "max_retries": { - "name": "max_retries", - "type": "TypeInt", - "description": "The health check max retries.", - "computed": true - }, - "port": { - "name": "port", - "type": "TypeInt", - "description": "The health check port number. If specified, this overrides the ports specified in the server member resources.", - "computed": true - }, - "timeout": { - "name": "timeout", - "type": "TypeInt", - "description": "The health check timeout in seconds.", + "cookie_name": { + "name": "cookie_name", + "type": "TypeString", + "description": "The session persistence cookie name. Applicable only for type `app_cookie`. Names starting with `IBM` are not allowed.", "computed": true }, "type": { "name": "type", "type": "TypeString", - "description": "The protocol type of this load balancer pool health monitor.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the health monitor on which the unexpected property value was encountered.", - "computed": true - }, - "url_path": { - "name": "url_path", - "type": "TypeString", - "description": "The health check URL path. Applicable only if the health monitor `type` is `http` or`https`. This value must be in the format of an [origin-form request target](https://tools.ietf.org/html/rfc7230#section-5.3.1).", + "description": "The session persistence type. The `http_cookie` and `app_cookie` types are applicable only to the `http` and `https` protocols.", "computed": true } } }, { - "name": "proxy_protocol", + "name": "created_at", "type": "TypeString", - "description": "The PROXY protocol setting for this pool:- `v1`: Enabled with version 1 (human-readable header format)- `v2`: Enabled with version 2 (binary header format)- `disabled`: DisabledSupported by load balancers in the `application` family (otherwise always `disabled`).", + "description": "The date and time that this pool was created.", "computed": true }, { - "name": "session_persistence", + "name": "instance_group", "type": "TypeList", - "description": "The session persistence of this pool.The enumerated values for this property are expected to expand in the future. Whenprocessing this property, check for and log unknown values. Optionally haltprocessing and surface the error, or bypass the pool on which the unexpectedproperty value was encountered.", + "description": "The instance group that is managing this pool.", "computed": true, "elem": { - "cookie_name": { - "name": "cookie_name", + "crn": { + "name": "crn", "type": "TypeString", - "description": "The session persistence cookie name. Applicable only for type `app_cookie`. Names starting with `IBM` are not allowed.", + "description": "The CRN for this instance group.", "computed": true }, - "type": { - "name": "type", + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", "type": "TypeString", - "description": "The session persistence type. The `http_cookie` and `app_cookie` types are applicable only to the `http` and `https` protocols.", + "description": "The URL for this instance group.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this instance group.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this instance group.", "computed": true } } } ], "ibm_is_lb_pool_member": [ + { + "name": "member", + "type": "TypeString", + "description": "The member identifier.", + "required": true + }, + { + "name": "health", + "type": "TypeString", + "description": "Health of the server member in the pool.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The member's canonical URL.", + "computed": true + }, + { + "name": "port", + "type": "TypeInt", + "description": "The port number of the application running in the server member.", + "computed": true + }, { "name": "weight", "type": "TypeInt", @@ -50664,15 +50674,15 @@ "required": true }, { - "name": "member", + "name": "created_at", "type": "TypeString", - "description": "The member identifier.", - "required": true + "description": "The date and time that this member was created.", + "computed": true }, { - "name": "created_at", + "name": "provisioning_status", "type": "TypeString", - "description": "The date and time that this member was created.", + "description": "The provisioning status of this member.", "computed": true }, { @@ -50726,30 +50736,6 @@ "computed": true } } - }, - { - "name": "health", - "type": "TypeString", - "description": "Health of the server member in the pool.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The member's canonical URL.", - "computed": true - }, - { - "name": "port", - "type": "TypeInt", - "description": "The port number of the application running in the server member.", - "computed": true - }, - { - "name": "provisioning_status", - "type": "TypeString", - "description": "The provisioning status of this member.", - "computed": true } ], "ibm_is_lb_pool_members": [ @@ -50869,6 +50855,12 @@ } ], "ibm_is_lb_pools": [ + { + "name": "lb", + "type": "TypeString", + "description": "The load balancer identifier.", + "required": true + }, { "name": "pools", "type": "TypeList", @@ -51068,33 +51060,9 @@ } } } - }, - { - "name": "lb", - "type": "TypeString", - "description": "The load balancer identifier.", - "required": true } ], "ibm_is_lb_profile": [ - { - "name": "route_mode_type", - "type": "TypeString", - "description": "The route mode type for this load balancer profile, one of [fixed, dependent]", - "computed": true - }, - { - "name": "udp_supported", - "type": "TypeBool", - "description": "The UDP support for a load balancer with this profile", - "computed": true - }, - { - "name": "udp_supported_type", - "type": "TypeString", - "description": "The UDP support type for a load balancer with this profile", - "computed": true - }, { "name": "name", "type": "TypeString", @@ -51118,6 +51086,24 @@ "type": "TypeBool", "description": "The route mode support for a load balancer with this profile depends on its configuration", "computed": true + }, + { + "name": "route_mode_type", + "type": "TypeString", + "description": "The route mode type for this load balancer profile, one of [fixed, dependent]", + "computed": true + }, + { + "name": "udp_supported", + "type": "TypeBool", + "description": "The UDP support for a load balancer with this profile", + "computed": true + }, + { + "name": "udp_supported_type", + "type": "TypeString", + "description": "The UDP support type for a load balancer with this profile", + "computed": true } ], "ibm_is_lb_profiles": [ @@ -51457,16 +51443,11 @@ ], "ibm_is_network_acl": [ { - "name": "vpc_name", - "type": "TypeString", - "description": "The name of the vpc the network acl resides in.", - "optional": true - }, - { - "name": "network_acl", + "name": "crn", "type": "TypeString", - "description": "The network acl id.", - "optional": true + "description": "The CRN for this network ACL.", + "cloud_data_type": "crn", + "computed": true }, { "name": "resource_group", @@ -51495,132 +51476,6 @@ } } }, - { - "name": "subnets", - "type": "TypeList", - "description": "The subnets to which this network ACL is attached.", - "computed": true, - "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this subnet.", - "computed": true - }, - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this subnet.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this subnet.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this subnet.", - "computed": true - } - } - }, - { - "name": "vpc", - "type": "TypeList", - "description": "The VPC this network ACL is a part of.", - "computed": true, - "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this VPC.", - "computed": true - }, - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this VPC.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this VPC.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this VPC.", - "computed": true - } - } - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "name", - "type": "TypeString", - "description": "The network acl name.", - "optional": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the network ACL was created.", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this network ACL.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this network ACL.", - "computed": true - }, { "name": "rules", "type": "TypeList", @@ -51812,6 +51667,137 @@ } } } + }, + { + "name": "subnets", + "type": "TypeList", + "description": "The subnets to which this network ACL is attached.", + "computed": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this subnet.", + "computed": true + }, + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this subnet.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this subnet.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this subnet.", + "computed": true + } + } + }, + { + "name": "vpc", + "type": "TypeList", + "description": "The VPC this network ACL is a part of.", + "computed": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this VPC.", + "computed": true + }, + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this VPC.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this VPC.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this VPC.", + "computed": true + } + } + }, + { + "name": "name", + "type": "TypeString", + "description": "The network acl name.", + "optional": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the network ACL was created.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this network ACL.", + "computed": true + }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "vpc_name", + "type": "TypeString", + "description": "The name of the vpc the network acl resides in.", + "optional": true + }, + { + "name": "network_acl", + "type": "TypeString", + "description": "The network acl id.", + "optional": true } ], "ibm_is_network_acl_rule": [ @@ -51822,15 +51808,9 @@ "required": true }, { - "name": "ip_version", - "type": "TypeString", - "description": "The IP version for this rule.", - "computed": true - }, - { - "name": "tcp", + "name": "udp", "type": "TypeList", - "description": "TCP protocol", + "description": "UDP protocol", "computed": true, "elem": { "port_max": { @@ -51859,24 +51839,6 @@ } } }, - { - "name": "action", - "type": "TypeString", - "description": "Whether to allow or deny matching traffic.", - "computed": true - }, - { - "name": "source", - "type": "TypeString", - "description": "The source IP address or CIDR block.", - "computed": true - }, - { - "name": "destination", - "type": "TypeString", - "description": "The destination IP address or CIDR block.", - "computed": true - }, { "name": "icmp", "type": "TypeList", @@ -51898,9 +51860,21 @@ } }, { - "name": "udp", + "name": "protocol", + "type": "TypeString", + "description": "The protocol to enforce.", + "computed": true + }, + { + "name": "direction", + "type": "TypeString", + "description": "Whether the traffic to be matched is inbound or outbound.", + "computed": true + }, + { + "name": "tcp", "type": "TypeList", - "description": "UDP protocol", + "description": "TCP protocol", "computed": true, "elem": { "port_max": { @@ -51930,39 +51904,51 @@ } }, { - "name": "before", + "name": "rule_id", "type": "TypeString", - "description": "The rule that this rule is immediately before. If absent, this is the last rule.", + "description": "Network ACL rule id", "computed": true }, { - "name": "direction", + "name": "source", "type": "TypeString", - "description": "Whether the traffic to be matched is inbound or outbound.", + "description": "The source IP address or CIDR block.", "computed": true }, { - "name": "network_acl", + "name": "href", "type": "TypeString", - "description": "Network ACL id", - "required": true + "description": "The URL for this network ACL rule", + "computed": true }, { - "name": "rule_id", + "name": "action", "type": "TypeString", - "description": "Network ACL rule id", + "description": "Whether to allow or deny matching traffic.", "computed": true }, { - "name": "protocol", + "name": "ip_version", "type": "TypeString", - "description": "The protocol to enforce.", + "description": "The IP version for this rule.", "computed": true }, { - "name": "href", + "name": "destination", "type": "TypeString", - "description": "The URL for this network ACL rule", + "description": "The destination IP address or CIDR block.", + "computed": true + }, + { + "name": "network_acl", + "type": "TypeString", + "description": "Network ACL id", + "required": true + }, + { + "name": "before", + "type": "TypeString", + "description": "The rule that this rule is immediately before. If absent, this is the last rule.", "computed": true } ], @@ -52133,13 +52119,6 @@ } ], "ibm_is_network_acls": [ - { - "name": "resource_group", - "type": "TypeString", - "description": "Resource group identifier.", - "cloud_data_type": "resource_group", - "optional": true - }, { "name": "network_acls", "type": "TypeList", @@ -52496,56 +52475,63 @@ } } } + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource group identifier.", + "cloud_data_type": "resource_group", + "optional": true } ], "ibm_is_operating_system": [ { - "name": "family", + "name": "architecture", "type": "TypeString", - "description": "The name of the software family this operating system belongs to", + "description": "The operating system architecture", "computed": true }, { - "name": "href", + "name": "version", "type": "TypeString", - "description": "The URL for this operating system", + "description": "The major release version of this operating system", "computed": true }, { - "name": "vendor", - "type": "TypeString", - "description": "The vendor of the operating system", + "name": "dedicated_host_only", + "type": "TypeBool", + "description": "Flag which shows images with this operating system can only be used on dedicated hosts or dedicated host groups", "computed": true }, { - "name": "name", + "name": "display_name", "type": "TypeString", - "description": "The globally unique name for this operating system", - "required": true + "description": "A unique, display-friendly name for the operating system", + "computed": true }, { - "name": "architecture", + "name": "family", "type": "TypeString", - "description": "The operating system architecture", + "description": "The name of the software family this operating system belongs to", "computed": true }, { - "name": "version", + "name": "href", "type": "TypeString", - "description": "The major release version of this operating system", + "description": "The URL for this operating system", "computed": true }, { - "name": "dedicated_host_only", - "type": "TypeBool", - "description": "Flag which shows images with this operating system can only be used on dedicated hosts or dedicated host groups", + "name": "vendor", + "type": "TypeString", + "description": "The vendor of the operating system", "computed": true }, { - "name": "display_name", + "name": "name", "type": "TypeString", - "description": "A unique, display-friendly name for the operating system", - "computed": true + "description": "The globally unique name for this operating system", + "required": true } ], "ibm_is_operating_systems": [ @@ -52614,9 +52600,10 @@ "required": true }, { - "name": "lifecycle_state", + "name": "crn", "type": "TypeString", - "description": "The lifecycle state of the placement group.", + "description": "The CRN for this placement group.", + "cloud_data_type": "crn", "computed": true }, { @@ -52651,16 +52638,15 @@ "computed": true }, { - "name": "crn", + "name": "href", "type": "TypeString", - "description": "The CRN for this placement group.", - "cloud_data_type": "crn", + "description": "The URL for this placement group.", "computed": true }, { - "name": "href", + "name": "lifecycle_state", "type": "TypeString", - "description": "The URL for this placement group.", + "description": "The lifecycle state of the placement group.", "computed": true }, { @@ -52807,97 +52793,97 @@ ], "ibm_is_public_gateway": [ { - "name": "status", + "name": "vpc", "type": "TypeString", - "description": "Public gateway instance status", + "description": "Public gateway VPC info", "computed": true }, { - "name": "resource_group", + "name": "resource_name", "type": "TypeString", - "description": "Public gateway resource group info", - "cloud_data_type": "resource_group", - "optional": true, + "description": "The name of the resource", "computed": true }, { - "name": "resource_crn", + "name": "resource_status", "type": "TypeString", - "description": "The crn of the resource", + "description": "The status of the resource", "computed": true }, { - "name": "zone", - "type": "TypeString", - "description": "Public gateway zone info", + "name": "floating_ip", + "type": "TypeMap", + "description": "Public gateway floating IP", "computed": true }, { - "name": "access_tags", + "name": "tags", "type": "TypeSet", - "description": "List of access management tags", + "description": "Service tags for the public gateway instance", + "cloud_data_type": "tags", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, - { - "name": "name", + "name": "crn", "type": "TypeString", - "description": "Public gateway Name", - "required": true - }, - { - "name": "floating_ip", - "type": "TypeMap", - "description": "Public gateway floating IP", + "description": "The crn of the resource", + "cloud_data_type": "crn", "computed": true }, { - "name": "vpc", + "name": "resource_crn", "type": "TypeString", - "description": "Public gateway VPC info", + "description": "The crn of the resource", "computed": true }, { - "name": "resource_name", + "name": "status", "type": "TypeString", - "description": "The name of the resource", + "description": "Public gateway instance status", "computed": true }, { - "name": "resource_status", + "name": "zone", "type": "TypeString", - "description": "The status of the resource", + "description": "Public gateway zone info", "computed": true }, { - "name": "tags", + "name": "access_tags", "type": "TypeSet", - "description": "Service tags for the public gateway instance", - "cloud_data_type": "tags", + "description": "List of access management tags", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "resource_controller_url", + "name": "resource_group_name", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "crn", + "name": "name", "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", + "description": "Public gateway Name", + "required": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Public gateway resource group info", + "cloud_data_type": "resource_group", + "optional": true, + "computed": true + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true } ], @@ -53063,12 +53049,6 @@ } ], "ibm_is_security_group": [ - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, { "name": "name", "type": "TypeString", @@ -53076,10 +53056,15 @@ "required": true }, { - "name": "vpc", + "name": "resource_group_name", "type": "TypeString", - "description": "Security group's resource group id", - "immutable": true, + "description": "The resource group name in which resource is provisioned", + "computed": true + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { @@ -53120,6 +53105,13 @@ "cloud_data_type": "crn", "computed": true }, + { + "name": "vpc", + "type": "TypeString", + "description": "Security group's resource group id", + "immutable": true, + "computed": true + }, { "name": "rules", "type": "TypeList", @@ -53176,15 +53168,33 @@ "computed": true } } + } + ], + "ibm_is_security_group_rule": [ + { + "name": "type", + "type": "TypeInt", + "description": "The ICMP traffic type to allow.", + "computed": true }, { - "name": "resource_controller_url", + "name": "security_group_rule", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "The rule identifier.", + "required": true + }, + { + "name": "ip_version", + "type": "TypeString", + "description": "The IP version to enforce. The format of `remote.address` or `remote.cidr_block` must match this property, if they are used. Alternatively, if `remote` references a security group, then this rule only applies to IP addresses (network interfaces) in that group matching this IP version.", "computed": true - } - ], - "ibm_is_security_group_rule": [ + }, + { + "name": "protocol", + "type": "TypeString", + "description": "The protocol to enforce.", + "computed": true + }, { "name": "remote", "type": "TypeList", @@ -53249,36 +53259,6 @@ "description": "The ICMP traffic code to allow.", "computed": true }, - { - "name": "type", - "type": "TypeInt", - "description": "The ICMP traffic type to allow.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this security group rule.", - "computed": true - }, - { - "name": "ip_version", - "type": "TypeString", - "description": "The IP version to enforce. The format of `remote.address` or `remote.cidr_block` must match this property, if they are used. Alternatively, if `remote` references a security group, then this rule only applies to IP addresses (network interfaces) in that group matching this IP version.", - "computed": true - }, - { - "name": "direction", - "type": "TypeString", - "description": "The direction of traffic to enforce, either `inbound` or `outbound`.", - "computed": true - }, - { - "name": "protocol", - "type": "TypeString", - "description": "The protocol to enforce.", - "computed": true - }, { "name": "port_max", "type": "TypeInt", @@ -53298,10 +53278,16 @@ "required": true }, { - "name": "security_group_rule", + "name": "direction", "type": "TypeString", - "description": "The rule identifier.", - "required": true + "description": "The direction of traffic to enforce, either `inbound` or `outbound`.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this security group rule.", + "computed": true } ], "ibm_is_security_group_rules": [ @@ -53433,6 +53419,12 @@ } ], "ibm_is_security_group_target": [ + { + "name": "security_group", + "type": "TypeString", + "description": "Security group id", + "required": true + }, { "name": "target", "type": "TypeString", @@ -53463,21 +53455,9 @@ "type": "TypeString", "description": "Link to documentation about deleted resources", "computed": true - }, - { - "name": "security_group", - "type": "TypeString", - "description": "Security group id", - "required": true } ], "ibm_is_security_group_targets": [ - { - "name": "security_group", - "type": "TypeString", - "description": "Security group id", - "required": true - }, { "name": "targets", "type": "TypeList", @@ -53515,9 +53495,40 @@ "computed": true } } + }, + { + "name": "security_group", + "type": "TypeString", + "description": "Security group id", + "required": true } ], "ibm_is_security_groups": [ + { + "name": "resource_group", + "type": "TypeString", + "description": "resource group identifier.", + "cloud_data_type": "resource_group", + "optional": true + }, + { + "name": "vpc_id", + "type": "TypeString", + "description": "vpc identifier.", + "optional": true + }, + { + "name": "vpc_crn", + "type": "TypeString", + "description": "vpc crn", + "optional": true + }, + { + "name": "vpc_name", + "type": "TypeString", + "description": "vpc name.", + "optional": true + }, { "name": "security_groups", "type": "TypeList", @@ -53808,96 +53819,51 @@ } } } - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "resource group identifier.", - "cloud_data_type": "resource_group", - "optional": true - }, - { - "name": "vpc_id", - "type": "TypeString", - "description": "vpc identifier.", - "optional": true - }, + } + ], + "ibm_is_share": [ { - "name": "vpc_crn", + "name": "replication_role", "type": "TypeString", - "description": "vpc crn", - "optional": true + "description": "The replication role of the file share.* `none`: This share is not participating in replication.* `replica`: This share is a replication target.* `source`: This share is a replication source.", + "computed": true }, { - "name": "vpc_name", + "name": "replication_status", "type": "TypeString", - "description": "vpc name.", - "optional": true - } - ], - "ibm_is_share": [ - { - "name": "iops", - "type": "TypeInt", - "description": "The maximum input/output operation performance bandwidth per second for the file share.", + "description": "The replication status of the file share.* `active`: This share is actively participating in replication, and the replica's data is up-to-date with the replication schedule.* `failover_pending`: This share is performing a replication failover.* `initializing`: This share is initializing replication.* `none`: This share is not participating in replication.* `split_pending`: This share is performing a replication split.", "computed": true }, { - "name": "latest_job", + "name": "replication_status_reasons", "type": "TypeList", - "description": "The latest job associated with this file share.This property will be absent if no jobs have been created for this file share.", + "description": "The reasons for the current replication status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", "computed": true, "elem": { - "status": { - "name": "status", + "code": { + "name": "code", "type": "TypeString", - "description": "The status of the file share job.The enumerated values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the file share job on which the unexpected property value was encountered.* `cancelled`: This job has been cancelled.* `failed`: This job has failed.* `queued`: This job is queued.* `running`: This job is running.* `succeeded`: This job completed successfully.", + "description": "A snake case string succinctly identifying the status reason.", "computed": true }, - "status_reasons": { - "name": "status_reasons", - "type": "TypeList", - "description": "The reasons for the file share job status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the status reason.", - "computed": true - }, - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about this status reason.", - "computed": true - } - } + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the status reason.", + "computed": true }, - "type": { - "name": "type", + "more_info": { + "name": "more_info", "type": "TypeString", - "description": "The type of the file share job.The enumerated values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the file share job on which the unexpected property value was encountered.* `replication_failover`: This is a share replication failover job.* `replication_init`: This is a share replication is initialization job.* `replication_split`: This is a share replication split job.", + "description": "Link to documentation about this status reason.", "computed": true } } }, { - "name": "lifecycle_state", - "type": "TypeString", - "description": "The lifecycle state of the file share.", - "computed": true - }, - { - "name": "replica_share", + "name": "source_share", "type": "TypeList", - "description": "The replica file share for this source file share.This property will be present when the `replication_role` is `source`.", + "description": "The source file share for this replica file share.This property will be present when the `replication_role` is `replica`.", "computed": true, "elem": { "crn": { @@ -53947,40 +53913,61 @@ } }, { - "name": "replication_status", - "type": "TypeString", - "description": "The replication status of the file share.* `active`: This share is actively participating in replication, and the replica's data is up-to-date with the replication schedule.* `failover_pending`: This share is performing a replication failover.* `initializing`: This share is initializing replication.* `none`: This share is not participating in replication.* `split_pending`: This share is performing a replication split.", - "computed": true - }, - { - "name": "zone", - "type": "TypeString", - "description": "The globally unique name of the zone this file share will reside in.", - "computed": true - }, - { - "name": "encryption", - "type": "TypeString", - "description": "The type of encryption used for this file share.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this share.", - "computed": true + "name": "share_targets", + "type": "TypeList", + "description": "Mount targets for the file share.", + "computed": true, + "elem": { + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this share target.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this share target.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this share target.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The type of resource referenced.", + "computed": true + } + } }, { - "name": "resource_group", - "type": "TypeString", - "description": "The unique identifier of the resource group for this file share.", - "cloud_data_type": "resource_group", + "name": "iops", + "type": "TypeInt", + "description": "The maximum input/output operation performance bandwidth per second for the file share.", "computed": true }, { - "name": "source_share", + "name": "replica_share", "type": "TypeList", - "description": "The source file share for this replica file share.This property will be present when the `replication_role` is `replica`.", + "description": "The replica file share for this source file share.This property will be present when the `replication_role` is `source`.", "computed": true, "elem": { "crn": { @@ -54030,51 +54017,70 @@ } }, { - "name": "share_targets", + "name": "latest_job", "type": "TypeList", - "description": "Mount targets for the file share.", + "description": "The latest job associated with this file share.This property will be absent if no jobs have been created for this file share.", "computed": true, "elem": { - "deleted": { - "name": "deleted", + "status": { + "name": "status", + "type": "TypeString", + "description": "The status of the file share job.The enumerated values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the file share job on which the unexpected property value was encountered.* `cancelled`: This job has been cancelled.* `failed`: This job has failed.* `queued`: This job is queued.* `running`: This job is running.* `succeeded`: This job completed successfully.", + "computed": true + }, + "status_reasons": { + "name": "status_reasons", "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "description": "The reasons for the file share job status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", "computed": true, "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the status reason.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the status reason.", + "computed": true + }, "more_info": { "name": "more_info", "type": "TypeString", - "description": "Link to documentation about deleted resources.", + "description": "Link to documentation about this status reason.", "computed": true } } }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this share target.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this share target.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this share target.", - "computed": true - }, - "resource_type": { - "name": "resource_type", + "type": { + "name": "type", "type": "TypeString", - "description": "The type of resource referenced.", + "description": "The type of the file share job.The enumerated values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the file share job on which the unexpected property value was encountered.* `replication_failover`: This is a share replication failover job.* `replication_init`: This is a share replication is initialization job.* `replication_split`: This is a share replication split job.", "computed": true } } }, + { + "name": "replication_cron_spec", + "type": "TypeString", + "description": "The cron specification for the file share replication schedule.This property will be present when the `replication_role` is `replica`.", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "The unique identifier of the resource group for this file share.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "size", + "type": "TypeInt", + "description": "The size of the file share rounded up to the next gigabyte.", + "computed": true + }, { "name": "access_tags", "type": "TypeSet", @@ -54084,12 +54090,6 @@ "type": "TypeString" } }, - { - "name": "size", - "type": "TypeInt", - "description": "The size of the file share rounded up to the next gigabyte.", - "computed": true - }, { "name": "name", "type": "TypeString", @@ -54098,78 +54098,52 @@ "computed": true }, { - "name": "encryption_key", + "name": "encryption", "type": "TypeString", - "description": "The key used to encrypt this file share. The CRN of the [Key Protect Root Key](https://cloud.ibm.com/docs/key-protect?topic=key-protect-getting-started-tutorial) or [Hyper Protect Crypto Service Root Key](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started) for this resource.", + "description": "The type of encryption used for this file share.", "computed": true }, { - "name": "profile", + "name": "resource_type", "type": "TypeString", - "description": "The globally unique name of the profile this file share uses.", + "description": "The type of resource referenced.", "computed": true }, { - "name": "replication_cron_spec", + "name": "encryption_key", "type": "TypeString", - "description": "The cron specification for the file share replication schedule.This property will be present when the `replication_role` is `replica`.", + "description": "The key used to encrypt this file share. The CRN of the [Key Protect Root Key](https://cloud.ibm.com/docs/key-protect?topic=key-protect-getting-started-tutorial) or [Hyper Protect Crypto Service Root Key](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started) for this resource.", "computed": true }, { - "name": "replication_role", + "name": "href", "type": "TypeString", - "description": "The replication role of the file share.* `none`: This share is not participating in replication.* `replica`: This share is a replication target.* `source`: This share is a replication source.", + "description": "The URL for this share.", "computed": true }, { - "name": "replication_status_reasons", - "type": "TypeList", - "description": "The reasons for the current replication status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the status reason.", - "computed": true - }, - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about this status reason.", - "computed": true - } - } - }, - { - "name": "resource_type", + "name": "crn", "type": "TypeString", - "description": "The type of resource referenced.", + "description": "The CRN for this share.", + "cloud_data_type": "crn", "computed": true }, { - "name": "share", + "name": "lifecycle_state", "type": "TypeString", - "description": "The file share identifier.", - "optional": true + "description": "The lifecycle state of the file share.", + "computed": true }, { - "name": "created_at", + "name": "profile", "type": "TypeString", - "description": "The date and time that the file share is created.", + "description": "The globally unique name of the profile this file share uses.", "computed": true }, { - "name": "crn", + "name": "zone", "type": "TypeString", - "description": "The CRN for this share.", - "cloud_data_type": "crn", + "description": "The globally unique name of the zone this file share will reside in.", "computed": true }, { @@ -54187,30 +54161,31 @@ "elem": { "type": "TypeString" } - } - ], - "ibm_is_share_mount_target": [ + }, { - "name": "transit_encryption", + "name": "share", "type": "TypeString", - "computed": true + "description": "The file share identifier.", + "optional": true }, { - "name": "mount_path", + "name": "created_at", "type": "TypeString", - "description": "The mount path for the share.The IP addresses used in the mount path are currently within the IBM services IP range, but are expected to change to be within one of the VPC's subnets in the future.", + "description": "The date and time that the file share is created.", "computed": true - }, + } + ], + "ibm_is_share_mount_target": [ { - "name": "name", + "name": "lifecycle_state", "type": "TypeString", - "description": "The user-defined name for this share target.", + "description": "The lifecycle state of the mount target.", "computed": true }, { - "name": "resource_type", + "name": "name", "type": "TypeString", - "description": "The type of resource referenced.", + "description": "The user-defined name for this share target.", "computed": true }, { @@ -54225,12 +54200,42 @@ "description": "The share target identifier.", "optional": true }, + { + "name": "share_name", + "type": "TypeString", + "description": "The file share name.", + "optional": true + }, { "name": "mount_target_name", "type": "TypeString", "description": "The share target name.", "optional": true }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the share target was created.", + "computed": true + }, + { + "name": "access_control_mode", + "type": "TypeString", + "description": "The access control mode for the share", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this share target.", + "computed": true + }, + { + "name": "mount_path", + "type": "TypeString", + "description": "The mount path for the share.The IP addresses used in the mount path are currently within the IBM services IP range, but are expected to change to be within one of the VPC's subnets in the future.", + "computed": true + }, { "name": "subnet", "type": "TypeList", @@ -54284,15 +54289,26 @@ } }, { - "name": "virtual_network_interface", + "name": "transit_encryption", + "type": "TypeString", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The type of resource referenced.", + "computed": true + }, + { + "name": "vpc", "type": "TypeList", - "description": "The virtual network interface for this file share mount target.", + "description": "The VPC to which this share target is allowing to mount the file share.", "computed": true, "elem": { "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN for this virtual network interface.", + "description": "The CRN for this VPC.", "computed": true }, "deleted": { @@ -54312,19 +54328,19 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for this virtual network interface.", + "description": "The URL for this VPC.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this virtual network interface.", + "description": "The unique identifier for this VPC.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The unique user-defined name for this virtual network interface.", + "description": "The unique user-defined name for this VPC.", "computed": true }, "resource_type": { @@ -54336,21 +54352,15 @@ } }, { - "name": "href", - "type": "TypeString", - "description": "The URL for this share target.", - "computed": true - }, - { - "name": "vpc", + "name": "virtual_network_interface", "type": "TypeList", - "description": "The VPC to which this share target is allowing to mount the file share.", + "description": "The virtual network interface for this file share mount target.", "computed": true, "elem": { "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN for this VPC.", + "description": "The CRN for this virtual network interface.", "computed": true }, "deleted": { @@ -54370,19 +54380,19 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for this VPC.", + "description": "The URL for this virtual network interface.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this VPC.", + "description": "The unique identifier for this virtual network interface.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The unique user-defined name for this VPC.", + "description": "The unique user-defined name for this virtual network interface.", "computed": true }, "resource_type": { @@ -54392,39 +54402,9 @@ "computed": true } } - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the share target was created.", - "computed": true - }, - { - "name": "lifecycle_state", - "type": "TypeString", - "description": "The lifecycle state of the mount target.", - "computed": true - }, - { - "name": "share_name", - "type": "TypeString", - "description": "The file share name.", - "optional": true - }, - { - "name": "access_control_mode", - "type": "TypeString", - "description": "The access control mode for the share", - "computed": true } ], "ibm_is_share_mount_targets": [ - { - "name": "share", - "type": "TypeString", - "description": "The file share identifier.", - "required": true - }, { "name": "name", "type": "TypeString", @@ -54648,9 +54628,33 @@ } } } + }, + { + "name": "share", + "type": "TypeString", + "description": "The file share identifier.", + "required": true } ], "ibm_is_share_profile": [ + { + "name": "family", + "type": "TypeString", + "description": "The product family this share profile belongs to.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this share profile.", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + }, { "name": "name", "type": "TypeString", @@ -54759,24 +54763,6 @@ "computed": true } } - }, - { - "name": "family", - "type": "TypeString", - "description": "The product family this share profile belongs to.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this share profile.", - "computed": true - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", - "computed": true } ], "ibm_is_share_profiles": [ @@ -54926,6 +54912,19 @@ } ], "ibm_is_shares": [ + { + "name": "name", + "type": "TypeString", + "description": "Name of the share.", + "optional": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource group of the share.", + "cloud_data_type": "resource_group", + "optional": true + }, { "name": "shares", "type": "TypeList", @@ -55287,31 +55286,131 @@ "type": "TypeInt", "description": "The total number of resources across all pages.", "computed": true + } + ], + "ibm_is_snapshot": [ + { + "name": "encryption_key", + "type": "TypeString", + "description": "A reference to the root key used to wrap the data encryption key for the source volume.", + "computed": true }, { - "name": "name", + "name": "minimum_capacity", + "type": "TypeInt", + "description": "Minimum capacity of the snapshot", + "computed": true + }, + { + "name": "source_image", "type": "TypeString", - "description": "Name of the share.", + "description": "If present, the image id from which the data on this volume was most directly provisioned.", + "computed": true + }, + { + "name": "bootable", + "type": "TypeBool", + "description": "Indicates if a boot volume attachment can be created with a volume created from this snapshot", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The crn of the resource", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "encryption", + "type": "TypeString", + "description": "Encryption type of the snapshot", + "computed": true + }, + { + "name": "identifier", + "type": "TypeString", + "description": "Snapshot identifier", "optional": true }, { - "name": "resource_group", + "name": "source_volume", "type": "TypeString", - "description": "Resource group of the share.", - "cloud_data_type": "resource_group", + "description": "Snapshot source volume id", + "computed": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "Snapshot lifecycle state", + "computed": true + }, + { + "name": "backup_policy_plan", + "type": "TypeList", + "description": "If present, the backup policy plan which created this snapshot.", + "computed": true, + "elem": { + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and provides some supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this backup policy plan.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this backup policy plan.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this backup policy plan.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The type of resource referenced", + "computed": true + } + } + }, + { + "name": "name", + "type": "TypeString", + "description": "Snapshot name", "optional": true - } - ], - "ibm_is_snapshot": [ + }, { - "name": "clones", + "name": "access_tags", "type": "TypeSet", - "description": "Zones for creating the snapshot clone", + "description": "List of access tags", "computed": true, "elem": { "type": "TypeString" } }, + { + "name": "size", + "type": "TypeInt", + "description": "The size of the snapshot", + "computed": true + }, { "name": "tags", "type": "TypeSet", @@ -55322,19 +55421,6 @@ "type": "TypeString" } }, - { - "name": "operating_system", - "type": "TypeString", - "description": "The globally unique name for the operating system included in this image", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", - "computed": true - }, { "name": "href", "type": "TypeString", @@ -55348,16 +55434,13 @@ "computed": true }, { - "name": "lifecycle_state", - "type": "TypeString", - "description": "Snapshot lifecycle state", - "computed": true - }, - { - "name": "minimum_capacity", - "type": "TypeInt", - "description": "Minimum capacity of the snapshot", - "computed": true + "name": "clones", + "type": "TypeSet", + "description": "Zones for creating the snapshot clone", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "captured_at", @@ -55438,21 +55521,10 @@ } }, { - "name": "source_image", - "type": "TypeString", - "description": "If present, the image id from which the data on this volume was most directly provisioned.", - "computed": true - }, - { - "name": "bootable", - "type": "TypeBool", - "description": "Indicates if a boot volume attachment can be created with a volume created from this snapshot", - "computed": true - }, - { - "name": "encryption", + "name": "resource_group", "type": "TypeString", - "description": "Encryption type of the snapshot", + "description": "Resource group info", + "cloud_data_type": "resource_group", "computed": true }, { @@ -55530,96 +55602,10 @@ } }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "encryption_key", - "type": "TypeString", - "description": "A reference to the root key used to wrap the data encryption key for the source volume.", - "computed": true - }, - { - "name": "size", - "type": "TypeInt", - "description": "The size of the snapshot", - "computed": true - }, - { - "name": "identifier", - "type": "TypeString", - "description": "Snapshot identifier", - "optional": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Snapshot name", - "optional": true - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "Resource group info", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "source_volume", + "name": "operating_system", "type": "TypeString", - "description": "Snapshot source volume id", + "description": "The globally unique name for the operating system included in this image", "computed": true - }, - { - "name": "backup_policy_plan", - "type": "TypeList", - "description": "If present, the backup policy plan which created this snapshot.", - "computed": true, - "elem": { - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and provides some supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this backup policy plan.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this backup policy plan.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this backup policy plan.", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced", - "computed": true - } - } } ], "ibm_is_snapshot_clone": [ @@ -55648,11 +55634,6 @@ } ], "ibm_is_snapshot_clones": [ - { - "name": "snapshot", - "type": "TypeString", - "required": true - }, { "name": "clones", "type": "TypeList", @@ -55678,60 +55659,71 @@ "computed": true } } + }, + { + "name": "snapshot", + "type": "TypeString", + "required": true } ], "ibm_is_snapshots": [ { - "name": "resource_group", + "name": "source_image", "type": "TypeString", - "description": "Filters the snapshot collection by resources group id", - "cloud_data_type": "resource_group", + "description": "Filters the snapshot collection by source image id", "optional": true }, { - "name": "backup_policy_plan_id", + "name": "source_volume", "type": "TypeString", - "description": "Filters the collection to backup policy jobs with the backup plan with the specified identifier", + "description": "Filters the snapshot collection by source volume id", "optional": true }, { - "name": "tag", + "name": "snapshot_copies_name", "type": "TypeString", - "description": "Filters the collection to resources with the exact tag value", + "description": "Filters the collection to snapshots with copies with the exact specified name.", "optional": true }, { - "name": "source_snapshot_id", + "name": "snapshot_copies_crn", "type": "TypeString", - "description": "Filters the collection to resources with the source snapshot with the specified identifier.", + "description": "Filters the collection to snapshots with copies with the specified CRN.", "optional": true }, { - "name": "snapshot_source_volume_remote_region_name", + "name": "snapshot_copies_remote_region_name", + "type": "TypeString", + "description": "Filters the collection to snapshots with copies with the exact remote region name.", + "optional": true + }, + { + "name": "source_snapshot_remote_region_name", "type": "TypeString", "description": "Filters the collection to snapshots with a source snapshot with the exact remote region name.", "optional": true }, { - "name": "source_image", + "name": "resource_group", "type": "TypeString", - "description": "Filters the snapshot collection by source image id", + "description": "Filters the snapshot collection by resources group id", + "cloud_data_type": "resource_group", "optional": true }, { - "name": "snapshot_copies_id", + "name": "name", "type": "TypeString", - "description": "Filters the collection to snapshots with copies with the specified identifier.", + "description": "Filters the snapshot collection by snapshot name", "optional": true }, { - "name": "snapshot_copies_name", + "name": "snapshot_copies_id", "type": "TypeString", - "description": "Filters the collection to snapshots with copies with the exact specified name.", + "description": "Filters the collection to snapshots with copies with the specified identifier.", "optional": true }, { - "name": "source_snapshot_remote_region_name", + "name": "snapshot_source_volume_remote_region_name", "type": "TypeString", "description": "Filters the collection to snapshots with a source snapshot with the exact remote region name.", "optional": true @@ -56059,37 +56051,25 @@ } }, { - "name": "snapshot_copies_remote_region_name", - "type": "TypeString", - "description": "Filters the collection to snapshots with copies with the exact remote region name.", - "optional": true - }, - { - "name": "name", + "name": "backup_policy_plan_id", "type": "TypeString", - "description": "Filters the snapshot collection by snapshot name", + "description": "Filters the collection to backup policy jobs with the backup plan with the specified identifier", "optional": true }, { - "name": "source_volume", + "name": "source_snapshot_id", "type": "TypeString", - "description": "Filters the snapshot collection by source volume id", + "description": "Filters the collection to resources with the source snapshot with the specified identifier.", "optional": true }, { - "name": "snapshot_copies_crn", + "name": "tag", "type": "TypeString", - "description": "Filters the collection to snapshots with copies with the specified CRN.", + "description": "Filters the collection to resources with the exact tag value", "optional": true } ], "ibm_is_source_share": [ - { - "name": "name", - "type": "TypeString", - "description": "Name of the share.", - "computed": true - }, { "name": "share_replica", "type": "TypeString", @@ -56114,39 +56094,56 @@ "type": "TypeString", "description": "The type of resource referenced.", "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the share.", + "computed": true } ], "ibm_is_ssh_key": [ { - "name": "resource_group", + "name": "fingerprint", "type": "TypeString", - "description": "Resource group ID", - "cloud_data_type": "resource_group", - "optional": true + "description": "The ssh key Fingerprint", + "computed": true }, { - "name": "type", + "name": "public_key", "type": "TypeString", - "description": "The ssh key type", + "description": "SSH Public key data", "computed": true }, { - "name": "fingerprint", + "name": "resource_name", "type": "TypeString", - "description": "The ssh key Fingerprint", + "description": "The name of the resource", "computed": true }, { - "name": "length", - "type": "TypeInt", - "description": "The ssh key length", + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", "computed": true }, { - "name": "crn", + "name": "resource_group", "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", + "description": "Resource group ID", + "cloud_data_type": "resource_group", + "optional": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the ssh key", + "required": true + }, + { + "name": "type", + "type": "TypeString", + "description": "The ssh key type", "computed": true }, { @@ -56165,15 +56162,9 @@ } }, { - "name": "name", - "type": "TypeString", - "description": "The name of the ssh key", - "required": true - }, - { - "name": "public_key", - "type": "TypeString", - "description": "SSH Public key data", + "name": "length", + "type": "TypeInt", + "description": "The ssh key length", "computed": true }, { @@ -56183,15 +56174,10 @@ "computed": true }, { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "resource_crn", + "name": "crn", "type": "TypeString", "description": "The crn of the resource", + "cloud_data_type": "crn", "computed": true } ], @@ -56296,52 +56282,13 @@ ], "ibm_is_subnet": [ { - "name": "name", - "type": "TypeString", - "optional": true, - "computed": true - }, - { - "name": "network_acl", - "type": "TypeString", - "computed": true - }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "vpc_name", - "type": "TypeString", - "computed": true - }, - { - "name": "zone", - "type": "TypeString", - "computed": true - }, - { - "name": "resource_status", - "type": "TypeString", - "description": "The status of the resource", - "computed": true - }, - { - "name": "ipv4_cidr_block", - "type": "TypeString", - "computed": true - }, - { - "name": "available_ipv4_address_count", - "type": "TypeInt", - "computed": true - }, - { - "name": "public_gateway", - "type": "TypeString", - "computed": true + "name": "access_tags", + "type": "TypeSet", + "description": "List of access tags", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "status", @@ -56349,7 +56296,7 @@ "computed": true }, { - "name": "vpc", + "name": "zone", "type": "TypeString", "computed": true }, @@ -56360,42 +56307,9 @@ "computed": true }, { - "name": "resource_crn", - "type": "TypeString", - "description": "The crn of the resource", - "computed": true - }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, - { - "name": "identifier", - "type": "TypeString", - "optional": true - }, - { - "name": "total_ipv4_address_count", - "type": "TypeInt", - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "List of tags", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "crn", + "name": "resource_name", "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", + "description": "The name of the resource", "computed": true }, { @@ -56445,44 +56359,98 @@ } }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access tags", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "identifier", + "type": "TypeString", + "optional": true + }, + { + "name": "total_ipv4_address_count", + "type": "TypeInt", + "computed": true + }, + { + "name": "network_acl", + "type": "TypeString", + "computed": true + }, + { + "name": "ipv4_cidr_block", + "type": "TypeString", + "computed": true + }, + { + "name": "available_ipv4_address_count", + "type": "TypeInt", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The crn of the resource", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "public_gateway", + "type": "TypeString", + "computed": true + }, + { + "name": "vpc", + "type": "TypeString", + "computed": true + }, + { + "name": "vpc_name", + "type": "TypeString", + "computed": true }, { "name": "resource_group", "type": "TypeString", "cloud_data_type": "resource_group", "computed": true - } - ], - "ibm_is_subnet_reserved_ip": [ + }, { - "name": "href", + "name": "resource_crn", "type": "TypeString", - "description": "The URL for this reserved IP.", + "description": "The crn of the resource", "computed": true }, { "name": "name", "type": "TypeString", - "description": "The user-defined or system-provided name for this reserved IP.", + "optional": true, "computed": true }, { - "name": "owner", + "name": "tags", + "type": "TypeSet", + "description": "List of tags", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "resource_status", "type": "TypeString", - "description": "The owner of a reserved IP, defining whether it is managed by the user or the provider.", + "description": "The status of the resource", "computed": true }, { - "name": "resource_type", + "name": "resource_group_name", "type": "TypeString", - "description": "The resource type.", + "description": "The resource group name in which resource is provisioned", + "computed": true + } + ], + "ibm_is_subnet_reserved_ip": [ + { + "name": "target", + "type": "TypeString", + "description": "Reserved IP target id.", "computed": true }, { @@ -56498,9 +56466,9 @@ "required": true }, { - "name": "lifecycle_state", + "name": "address", "type": "TypeString", - "description": "The lifecycle state of the reserved IP", + "description": "The IP address", "computed": true }, { @@ -56510,15 +56478,15 @@ "computed": true }, { - "name": "created_at", + "name": "name", "type": "TypeString", - "description": "The date and time that the reserved IP was created.", + "description": "The user-defined or system-provided name for this reserved IP.", "computed": true }, { - "name": "target", + "name": "owner", "type": "TypeString", - "description": "Reserved IP target id.", + "description": "The owner of a reserved IP, defining whether it is managed by the user or the provider.", "computed": true }, { @@ -56528,9 +56496,27 @@ "required": true }, { - "name": "address", + "name": "lifecycle_state", "type": "TypeString", - "description": "The IP address", + "description": "The lifecycle state of the reserved IP", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the reserved IP was created.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this reserved IP.", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", "computed": true } ], @@ -56759,18 +56745,31 @@ ], "ibm_is_virtual_endpoint_gateway": [ { - "name": "security_groups", + "name": "lifecycle_state", + "type": "TypeString", + "description": "Endpoint gateway lifecycle state", + "computed": true + }, + { + "name": "vpc", + "type": "TypeString", + "description": "The VPC id", + "computed": true + }, + { + "name": "tags", "type": "TypeSet", - "description": "Endpoint gateway securitygroups list", + "description": "List of tags for VPE", + "cloud_data_type": "tags", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "allow_dns_resolution_binding", - "type": "TypeBool", - "description": "Indicates whether to allow this endpoint gateway to participate in DNS resolution bindings with a VPC that has dns.enable_hub set to true.", + "name": "created_at", + "type": "TypeString", + "description": "Endpoint gateway created date and time", "computed": true }, { @@ -56780,18 +56779,44 @@ "computed": true }, { - "name": "lifecycle_state", - "type": "TypeString", - "description": "Endpoint gateway lifecycle state", + "name": "allow_dns_resolution_binding", + "type": "TypeBool", + "description": "Indicates whether to allow this endpoint gateway to participate in DNS resolution bindings with a VPC that has dns.enable_hub set to true.", "computed": true }, { - "name": "crn", + "name": "name", "type": "TypeString", - "description": "The CRN for this Endpoint gateway", - "cloud_data_type": "crn", + "description": "Endpoint gateway name", + "required": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "The resource group id", + "cloud_data_type": "resource_group", "computed": true }, + { + "name": "target", + "type": "TypeList", + "description": "Endpoint gateway target", + "computed": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "The target name", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The target resource type", + "computed": true + } + } + }, { "name": "service_endpoints", "type": "TypeList", @@ -56834,73 +56859,34 @@ } }, { - "name": "vpc", - "type": "TypeString", - "description": "The VPC id", - "computed": true - }, - { - "name": "access_tags", + "name": "security_groups", "type": "TypeSet", - "description": "List of access management tags", + "description": "Endpoint gateway securitygroups list", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "resource_group", - "type": "TypeString", - "description": "The resource group id", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "Endpoint gateway created date and time", - "computed": true - }, - { - "name": "target", - "type": "TypeList", - "description": "Endpoint gateway target", - "computed": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "The target name", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The target resource type", - "computed": true - } - } - }, - { - "name": "tags", + "name": "access_tags", "type": "TypeSet", - "description": "List of tags for VPE", - "cloud_data_type": "tags", + "description": "List of access management tags", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "name", + "name": "resource_type", "type": "TypeString", - "description": "Endpoint gateway name", - "required": true + "description": "Endpoint gateway resource type", + "computed": true }, { - "name": "resource_type", + "name": "crn", "type": "TypeString", - "description": "Endpoint gateway resource type", + "description": "The CRN for this Endpoint gateway", + "cloud_data_type": "crn", "computed": true } ], @@ -57152,54 +57138,73 @@ ], "ibm_is_virtual_network_interface": [ { - "name": "virtual_network_interface", + "name": "name", "type": "TypeString", - "description": "The network interface identifier.", - "required": true + "description": "The name for this virtual network interface. The name is unique across all virtual network interfaces in the VPC.", + "computed": true }, { - "name": "resource_group", + "name": "primary_ip", "type": "TypeList", - "description": "The resource group for this virtual network interface.", - "cloud_data_type": "resource_group", + "description": "The reserved IP for this virtual network interface.May be absent when `lifecycle_state` is `pending`.", "computed": true, "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "The IP address.If the address has not yet been selected, the value will be `0.0.0.0`.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", + "computed": true + }, + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, "href": { "name": "href", "type": "TypeString", - "description": "The URL for this resource group.", + "description": "The URL for this reserved IP.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this resource group.", + "description": "The unique identifier for this reserved IP.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The name for this resource group.", + "description": "The name for this reserved IP. The name is unique across all reserved IPs in a subnet.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", "computed": true } } }, { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", - "computed": true - }, - { - "name": "subnet", + "name": "security_groups", "type": "TypeList", - "description": "The associated subnet.", + "description": "The security groups for this virtual network interface.", "computed": true, "elem": { "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN for this subnet.", + "description": "The security group's CRN.", "computed": true }, "deleted": { @@ -57219,29 +57224,94 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for this subnet.", + "description": "The security group's canonical URL.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this subnet.", + "description": "The unique identifier for this security group.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The name for this subnet. The name is unique across all subnets in the VPC.", + "description": "The name for this security group. The name is unique across all security groups for the VPC.", + "computed": true + } + } + }, + { + "name": "zone", + "type": "TypeList", + "description": "The zone this virtual network interface resides in.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this zone.", "computed": true }, - "resource_type": { - "name": "resource_type", + "name": { + "name": "name", "type": "TypeString", - "description": "The resource type.", + "description": "The globally unique name for this zone.", "computed": true } } }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the virtual network interface was created.", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeList", + "description": "The resource group for this virtual network interface.", + "cloud_data_type": "resource_group", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this resource group.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this resource group.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The name for this resource group.", + "computed": true + } + } + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + }, + { + "name": "auto_delete", + "type": "TypeBool", + "description": "Indicates whether this virtual network interface will be automatically deleted when`target` is deleted.", + "computed": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the virtual network interface.", + "computed": true + }, { "name": "target", "type": "TypeList", @@ -57341,36 +57411,10 @@ } }, { - "name": "zone", - "type": "TypeList", - "description": "The zone this virtual network interface resides in.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this zone.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The globally unique name for this zone.", - "computed": true - } - } - }, - { - "name": "auto_delete", - "type": "TypeBool", - "description": "Indicates whether this virtual network interface will be automatically deleted when`target` is deleted.", - "computed": true - }, - { - "name": "created_at", + "name": "virtual_network_interface", "type": "TypeString", - "description": "The date and time that the virtual network interface was created.", - "computed": true + "description": "The network interface identifier.", + "required": true }, { "name": "crn", @@ -57380,15 +57424,21 @@ "computed": true }, { - "name": "primary_ip", + "name": "href", + "type": "TypeString", + "description": "The URL for this virtual network interface.", + "computed": true + }, + { + "name": "subnet", "type": "TypeList", - "description": "The reserved IP for this virtual network interface.May be absent when `lifecycle_state` is `pending`.", + "description": "The associated subnet.", "computed": true, "elem": { - "address": { - "name": "address", + "crn": { + "name": "crn", "type": "TypeString", - "description": "The IP address.If the address has not yet been selected, the value will be `0.0.0.0`.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", + "description": "The CRN for this subnet.", "computed": true }, "deleted": { @@ -57408,19 +57458,19 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for this reserved IP.", + "description": "The URL for this subnet.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this reserved IP.", + "description": "The unique identifier for this subnet.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The name for this reserved IP. The name is unique across all reserved IPs in a subnet.", + "description": "The name for this subnet. The name is unique across all subnets in the VPC.", "computed": true }, "resource_type": { @@ -57430,70 +57480,6 @@ "computed": true } } - }, - { - "name": "security_groups", - "type": "TypeList", - "description": "The security groups for this virtual network interface.", - "computed": true, - "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The security group's CRN.", - "computed": true - }, - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The security group's canonical URL.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this security group.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The name for this security group. The name is unique across all security groups for the VPC.", - "computed": true - } - } - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this virtual network interface.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The name for this virtual network interface. The name is unique across all virtual network interfaces in the VPC.", - "computed": true - }, - { - "name": "lifecycle_state", - "type": "TypeString", - "description": "The lifecycle state of the virtual network interface.", - "computed": true } ], "ibm_is_virtual_network_interfaces": [ @@ -57849,27 +57835,6 @@ } ], "ibm_is_volume": [ - { - "name": "attachment_state", - "type": "TypeString", - "description": "The attachment state of the volume.", - "computed": true - }, - { - "name": "capacity", - "type": "TypeInt", - "description": "Vloume capacity value", - "computed": true - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "Access management tags for the volume instance", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "health_reasons", "type": "TypeList", @@ -57896,9 +57861,9 @@ } }, { - "name": "active", - "type": "TypeBool", - "description": "Indicates whether a running virtual server instance has an attachment to this volume.", + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", "computed": true }, { @@ -57908,40 +57873,9 @@ "computed": true }, { - "name": "iops", - "type": "TypeInt", - "description": "IOPS value for the Volume", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "Volume status", - "computed": true - }, - { - "name": "zone", - "type": "TypeString", - "description": "Zone name", - "optional": true, - "computed": true - }, - { - "name": "health_state", - "type": "TypeString", - "description": "The health of this resource.", - "computed": true - }, - { - "name": "source_snapshot", - "type": "TypeString", - "description": "Identifier of the snapshot from which this volume was cloned", - "computed": true - }, - { - "name": "resource_status", + "name": "encryption_type", "type": "TypeString", - "description": "The status of the resource", + "description": "Volume encryption type info", "computed": true }, { @@ -57950,85 +57884,6 @@ "description": "Indicates whether this volume is performing an operation that must be serialized. If an operation specifies that it requires serialization, the operation will fail unless this property is `false`.", "computed": true }, - { - "name": "crn", - "type": "TypeString", - "description": "CRN value for the volume instance", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "resource_crn", - "type": "TypeString", - "description": "The crn of the resource", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Volume name", - "required": true - }, - { - "name": "profile", - "type": "TypeString", - "description": "Volume profile name", - "computed": true - }, - { - "name": "status_reasons", - "type": "TypeList", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the status reason", - "computed": true - }, - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about this status reason", - "computed": true - } - } - }, - { - "name": "tags", - "type": "TypeSet", - "description": "Tags for the volume instance", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "bandwidth", - "type": "TypeInt", - "description": "The maximum bandwidth (in megabits per second) for the volume", - "computed": true - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "Resource group name", - "cloud_data_type": "resource_group", - "computed": true - }, { "name": "operating_system", "type": "TypeList", @@ -58085,6 +57940,23 @@ } } }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource group name", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "tags", + "type": "TypeSet", + "description": "Tags for the volume instance", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "resource_controller_url", "type": "TypeString", @@ -58092,15 +57964,55 @@ "computed": true }, { - "name": "created_at", + "name": "name", "type": "TypeString", - "description": "The date and time that the volume was created.", + "description": "Volume name", + "required": true + }, + { + "name": "active", + "type": "TypeBool", + "description": "Indicates whether a running virtual server instance has an attachment to this volume.", "computed": true }, { - "name": "encryption_type", + "name": "resource_status", "type": "TypeString", - "description": "Volume encryption type info", + "description": "The status of the resource", + "computed": true + }, + { + "name": "bandwidth", + "type": "TypeInt", + "description": "The maximum bandwidth (in megabits per second) for the volume", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "CRN value for the volume instance", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Volume status", + "computed": true + }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "Access management tags for the volume instance", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "source_snapshot", + "type": "TypeString", + "description": "Identifier of the snapshot from which this volume was cloned", "computed": true }, { @@ -58108,6 +58020,80 @@ "type": "TypeString", "description": "The resource group name in which resource is provisioned", "computed": true + }, + { + "name": "capacity", + "type": "TypeInt", + "description": "Vloume capacity value", + "computed": true + }, + { + "name": "iops", + "type": "TypeInt", + "description": "IOPS value for the Volume", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the volume was created.", + "computed": true + }, + { + "name": "profile", + "type": "TypeString", + "description": "Volume profile name", + "computed": true + }, + { + "name": "health_state", + "type": "TypeString", + "description": "The health of this resource.", + "computed": true + }, + { + "name": "zone", + "type": "TypeString", + "description": "Zone name", + "optional": true, + "computed": true + }, + { + "name": "attachment_state", + "type": "TypeString", + "description": "The attachment state of the volume.", + "computed": true + }, + { + "name": "status_reasons", + "type": "TypeList", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the status reason", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the status reason", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about this status reason", + "computed": true + } + } + }, + { + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true } ], "ibm_is_volume_profile": [ @@ -58145,42 +58131,6 @@ } ], "ibm_is_volumes": [ - { - "name": "attachment_state", - "type": "TypeString", - "description": "Attachment state of the Volume.", - "optional": true - }, - { - "name": "encryption", - "type": "TypeString", - "description": "Encryption type of Volume.", - "optional": true - }, - { - "name": "operating_system_family", - "type": "TypeString", - "description": "Operating system family of the Volume.", - "optional": true - }, - { - "name": "operating_system_architecture", - "type": "TypeString", - "description": "Operating system architecture of the Volume.", - "optional": true - }, - { - "name": "volume_name", - "type": "TypeString", - "description": "Volume name identifier.", - "optional": true - }, - { - "name": "zone_name", - "type": "TypeString", - "description": "Zone name identifier.", - "optional": true - }, { "name": "volumes", "type": "TypeList", @@ -58687,184 +58637,74 @@ } } } - } - ], - "ibm_is_vpc": [ - { - "name": "id", - "type": "TypeString", - "description": "Id of the ibm_is_vpc", - "cloud_data_type": "is", - "computed": true, - "cloud_data_range": [ - "service:vpc", - "resolved_to:id" - ] - }, - { - "name": "default_network_acl_name", - "type": "TypeString", - "description": "Default Network ACL name", - "computed": true - }, - { - "name": "resource_group", - "type": "TypeString", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", - "computed": true }, { - "name": "security_group", - "type": "TypeList", - "computed": true, - "elem": { - "group_id": { - "name": "group_id", - "type": "TypeString", - "description": "Security group id", - "computed": true - }, - "group_name": { - "name": "group_name", - "type": "TypeString", - "description": "Security group name", - "computed": true - }, - "rules": { - "name": "rules", - "type": "TypeList", - "description": "Security Rules", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeInt", - "computed": true - }, - "direction": { - "name": "direction", - "type": "TypeString", - "description": "Direction of traffic to enforce, either inbound or outbound", - "computed": true - }, - "ip_version": { - "name": "ip_version", - "type": "TypeString", - "description": "IP version: ipv4", - "computed": true - }, - "port_max": { - "name": "port_max", - "type": "TypeInt", - "computed": true - }, - "port_min": { - "name": "port_min", - "type": "TypeInt", - "computed": true - }, - "protocol": { - "name": "protocol", - "type": "TypeString", - "computed": true - }, - "remote": { - "name": "remote", - "type": "TypeString", - "description": "Security group id: an IP address, a CIDR block, or a single security group identifier", - "computed": true - }, - "rule_id": { - "name": "rule_id", - "type": "TypeString", - "description": "Rule ID", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeInt", - "computed": true - } - } - } - } - }, - { - "name": "default_network_acl", - "type": "TypeString", - "computed": true - }, - { - "name": "default_network_acl_crn", - "type": "TypeString", - "description": "Default Network ACL CRN", - "computed": true - }, - { - "name": "default_routing_table_name", + "name": "attachment_state", "type": "TypeString", - "description": "Default routing table name", - "computed": true + "description": "Attachment state of the Volume.", + "optional": true }, { - "name": "default_security_group", + "name": "encryption", "type": "TypeString", - "description": "Security group associated with VPC", - "computed": true + "description": "Encryption type of Volume.", + "optional": true }, { - "name": "resource_controller_url", + "name": "operating_system_family", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true + "description": "Operating system family of the Volume.", + "optional": true }, { - "name": "resource_status", + "name": "operating_system_architecture", "type": "TypeString", - "description": "The status of the resource", - "computed": true + "description": "Operating system architecture of the Volume.", + "optional": true }, { - "name": "identifier", + "name": "volume_name", "type": "TypeString", + "description": "Volume name identifier.", "optional": true }, { - "name": "default_routing_table", + "name": "zone_name", "type": "TypeString", - "description": "Default routing table associated with VPC", - "computed": true - }, + "description": "Zone name identifier.", + "optional": true + } + ], + "ibm_is_vpc": [ { - "name": "default_security_group_crn", + "name": "id", "type": "TypeString", - "description": "Default security group CRN", - "computed": true + "description": "Id of the ibm_is_vpc", + "cloud_data_type": "is", + "computed": true, + "cloud_data_range": [ + "service:vpc", + "resolved_to:id" + ] }, { - "name": "tags", + "name": "access_tags", "type": "TypeSet", - "cloud_data_type": "tags", + "description": "List of access tags", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "classic_access", - "type": "TypeBool", + "name": "status", + "type": "TypeString", + "computed": true + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { @@ -59053,39 +58893,32 @@ } }, { - "name": "health_state", + "name": "name", "type": "TypeString", - "description": "The health of this resource.- `ok`: No abnormal behavior detected- `degraded`: Experiencing compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", - "computed": true + "optional": true }, { - "name": "default_security_group_name", + "name": "default_network_acl_crn", "type": "TypeString", - "description": "Default security group name", + "description": "Default Network ACL CRN", "computed": true }, { - "name": "resource_group_name", + "name": "default_security_group", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "Security group associated with VPC", "computed": true }, { - "name": "name", - "type": "TypeString", - "optional": true - }, - { - "name": "resource_name", + "name": "resource_status", "type": "TypeString", - "description": "The name of the resource", + "description": "The status of the resource", "computed": true }, { - "name": "resource_crn", + "name": "identifier", "type": "TypeString", - "description": "The crn of the resource", - "computed": true + "optional": true }, { "name": "subnets", @@ -59131,13 +58964,75 @@ } }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access tags", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "default_network_acl", + "type": "TypeString", + "computed": true + }, + { + "name": "classic_access", + "type": "TypeBool", + "computed": true + }, + { + "name": "default_network_acl_name", + "type": "TypeString", + "description": "Default Network ACL name", + "computed": true + }, + { + "name": "default_routing_table_name", + "type": "TypeString", + "description": "Default routing table name", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", + "computed": true + }, + { + "name": "default_routing_table", + "type": "TypeString", + "description": "Default routing table associated with VPC", + "computed": true + }, + { + "name": "default_security_group_crn", + "type": "TypeString", + "description": "Default security group CRN", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The crn of the resource", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true + }, + { + "name": "default_security_group_name", + "type": "TypeString", + "description": "Default security group name", + "computed": true + }, + { + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true }, { "name": "health_reasons", @@ -59164,31 +59059,110 @@ "computed": true } } - } - ], - "ibm_is_vpc_address_prefix": [ + }, { - "name": "vpc", - "type": "TypeString", - "description": "The VPC identifier.", - "optional": true + "name": "security_group", + "type": "TypeList", + "computed": true, + "elem": { + "group_id": { + "name": "group_id", + "type": "TypeString", + "description": "Security group id", + "computed": true + }, + "group_name": { + "name": "group_name", + "type": "TypeString", + "description": "Security group name", + "computed": true + }, + "rules": { + "name": "rules", + "type": "TypeList", + "description": "Security Rules", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeInt", + "computed": true + }, + "direction": { + "name": "direction", + "type": "TypeString", + "description": "Direction of traffic to enforce, either inbound or outbound", + "computed": true + }, + "ip_version": { + "name": "ip_version", + "type": "TypeString", + "description": "IP version: ipv4", + "computed": true + }, + "port_max": { + "name": "port_max", + "type": "TypeInt", + "computed": true + }, + "port_min": { + "name": "port_min", + "type": "TypeInt", + "computed": true + }, + "protocol": { + "name": "protocol", + "type": "TypeString", + "computed": true + }, + "remote": { + "name": "remote", + "type": "TypeString", + "description": "Security group id: an IP address, a CIDR block, or a single security group identifier", + "computed": true + }, + "rule_id": { + "name": "rule_id", + "type": "TypeString", + "description": "Rule ID", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeInt", + "computed": true + } + } + } + } }, { - "name": "vpc_name", - "type": "TypeString", - "description": "The VPC name.", - "optional": true + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "address_prefix", + "name": "health_state", "type": "TypeString", - "description": "The address prefix identifier.", - "optional": true + "description": "The health of this resource.- `ok`: No abnormal behavior detected- `degraded`: Experiencing compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", + "computed": true + } + ], + "ibm_is_vpc_address_prefix": [ + { + "name": "is_default", + "type": "TypeBool", + "description": "Indicates whether this is the default prefix for this zone in this VPC. If a default prefix was automatically created when the VPC was created, the prefix is automatically named using a hyphenated list of randomly-selected words, but may be updated with a user-specified name.", + "computed": true }, { - "name": "href", + "name": "name", "type": "TypeString", - "description": "The URL for this address prefix.", + "description": "The user-defined name for this address prefix. Names must be unique within the VPC the address prefix resides in.", "computed": true }, { @@ -59212,10 +59186,10 @@ } }, { - "name": "name", + "name": "vpc_name", "type": "TypeString", - "description": "The user-defined name for this address prefix. Names must be unique within the VPC the address prefix resides in.", - "computed": true + "description": "The VPC name.", + "optional": true }, { "name": "address_prefix_name", @@ -59242,10 +59216,22 @@ "computed": true }, { - "name": "is_default", - "type": "TypeBool", - "description": "Indicates whether this is the default prefix for this zone in this VPC. If a default prefix was automatically created when the VPC was created, the prefix is automatically named using a hyphenated list of randomly-selected words, but may be updated with a user-specified name.", + "name": "href", + "type": "TypeString", + "description": "The URL for this address prefix.", "computed": true + }, + { + "name": "vpc", + "type": "TypeString", + "description": "The VPC identifier.", + "optional": true + }, + { + "name": "address_prefix", + "type": "TypeString", + "description": "The address prefix identifier.", + "optional": true } ], "ibm_is_vpc_address_prefixes": [ @@ -59333,18 +59319,6 @@ } ], "ibm_is_vpc_default_routing_table": [ - { - "name": "route_transit_gateway_ingress", - "type": "TypeBool", - "description": "If set to true, this routing table will be used to route traffic that originates from Transit Gateway to this VPC.", - "computed": true - }, - { - "name": "route_vpc_zone_ingress", - "type": "TypeBool", - "description": "If set to true, this routing table will be used to route traffic that originates from subnets in other zones in this VPC.", - "computed": true - }, { "name": "is_default", "type": "TypeBool", @@ -59371,29 +59345,16 @@ } }, { - "name": "route_internet_ingress", - "type": "TypeBool", - "description": "If set to true, this routing table will be used to route traffic that originates from the internet. For this to succeed, the VPC must not already have a routing table with this property set to true.", + "name": "default_routing_table", + "type": "TypeString", + "description": "Default Routing Table ID", "computed": true }, { - "name": "subnets", - "type": "TypeList", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "Subnet ID", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Subnet name", - "computed": true - } - } + "name": "route_transit_gateway_ingress", + "type": "TypeBool", + "description": "If set to true, this routing table will be used to route traffic that originates from Transit Gateway to this VPC.", + "computed": true }, { "name": "href", @@ -59401,12 +59362,6 @@ "description": "Default Routing table Href", "computed": true }, - { - "name": "name", - "type": "TypeString", - "description": "Default Routing table Name", - "computed": true - }, { "name": "created_at", "type": "TypeString", @@ -59414,95 +59369,108 @@ "computed": true }, { - "name": "vpc", - "type": "TypeString", - "description": "VPC identifier", - "required": true - }, - { - "name": "default_routing_table", + "name": "lifecycle_state", "type": "TypeString", - "description": "Default Routing Table ID", + "description": "Default Routing table Lifecycle State", "computed": true }, { - "name": "resource_type", - "type": "TypeString", - "description": "Default Routing table Resource Type", + "name": "route_direct_link_ingress", + "type": "TypeBool", + "description": "If set to true, this routing table will be used to route traffic that originates from Direct Link to this VPC.", "computed": true }, { - "name": "lifecycle_state", - "type": "TypeString", - "description": "Default Routing table Lifecycle State", + "name": "route_internet_ingress", + "type": "TypeBool", + "description": "If set to true, this routing table will be used to route traffic that originates from the internet. For this to succeed, the VPC must not already have a routing table with this property set to true.", "computed": true }, { - "name": "route_direct_link_ingress", + "name": "route_vpc_zone_ingress", "type": "TypeBool", - "description": "If set to true, this routing table will be used to route traffic that originates from Direct Link to this VPC.", + "description": "If set to true, this routing table will be used to route traffic that originates from subnets in other zones in this VPC.", "computed": true - } - ], - "ibm_is_vpc_dns_resolution_binding": [ + }, + { + "name": "vpc", + "type": "TypeString", + "description": "VPC identifier", + "required": true + }, { "name": "name", "type": "TypeString", - "description": "The name for this DNS resolution binding. The name is unique across all DNS resolution bindings for the VPC.", + "description": "Default Routing table Name", "computed": true }, { "name": "resource_type", "type": "TypeString", - "description": "The resource type.", + "description": "Default Routing table Resource Type", "computed": true }, { - "name": "vpc_id", - "type": "TypeString", - "description": "The VPC identifier.", - "required": true - }, + "name": "subnets", + "type": "TypeList", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "Subnet ID", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Subnet name", + "computed": true + } + } + } + ], + "ibm_is_vpc_dns_resolution_binding": [ { - "name": "identifier", + "name": "href", "type": "TypeString", - "description": "The DNS resolution binding identifier.", - "required": true + "description": "The URL for this DNS resolution binding.", + "computed": true }, { - "name": "created_at", + "name": "lifecycle_state", "type": "TypeString", - "description": "The date and time that the DNS resolution binding was created.", + "description": "The lifecycle state of the DNS resolution binding.", "computed": true }, { - "name": "endpoint_gateways", + "name": "vpc", "type": "TypeList", - "description": "The endpoint gateways in the bound to VPC that are allowed to participate in this DNS resolution binding.The endpoint gateways may be remote and therefore may not be directly retrievable.", + "description": "The VPC bound to for DNS resolution.The VPC may be remote and therefore may not be directly retrievable.", "computed": true, "elem": { "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN for this endpoint gateway.", + "description": "The CRN for this VPC.", "computed": true }, "href": { "name": "href", "type": "TypeString", - "description": "The URL for this endpoint gateway.", + "description": "The URL for this VPC.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this endpoint gateway.", + "description": "The unique identifier for this VPC.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The name for this endpoint gateway. The name is unique across all endpoint gateways in the VPC.", + "description": "The name for this VPC. The name is unique across all VPCs in the region.", "computed": true }, "remote": { @@ -59562,45 +59530,51 @@ } }, { - "name": "href", + "name": "vpc_id", "type": "TypeString", - "description": "The URL for this DNS resolution binding.", - "computed": true + "description": "The VPC identifier.", + "required": true }, { - "name": "lifecycle_state", + "name": "identifier", "type": "TypeString", - "description": "The lifecycle state of the DNS resolution binding.", + "description": "The DNS resolution binding identifier.", + "required": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the DNS resolution binding was created.", "computed": true }, { - "name": "vpc", + "name": "endpoint_gateways", "type": "TypeList", - "description": "The VPC bound to for DNS resolution.The VPC may be remote and therefore may not be directly retrievable.", + "description": "The endpoint gateways in the bound to VPC that are allowed to participate in this DNS resolution binding.The endpoint gateways may be remote and therefore may not be directly retrievable.", "computed": true, "elem": { "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN for this VPC.", + "description": "The CRN for this endpoint gateway.", "computed": true }, "href": { "name": "href", "type": "TypeString", - "description": "The URL for this VPC.", + "description": "The URL for this endpoint gateway.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this VPC.", + "description": "The unique identifier for this endpoint gateway.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The name for this VPC. The name is unique across all VPCs in the region.", + "description": "The name for this endpoint gateway. The name is unique across all endpoint gateways in the VPC.", "computed": true }, "remote": { @@ -59658,6 +59632,18 @@ "computed": true } } + }, + { + "name": "name", + "type": "TypeString", + "description": "The name for this DNS resolution binding. The name is unique across all DNS resolution bindings for the VPC.", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true } ], "ibm_is_vpc_dns_resolution_bindings": [ @@ -59886,33 +59872,41 @@ ], "ibm_is_vpc_routing_table": [ { - "name": "routing_table", - "type": "TypeString", - "description": "The routing table identifier.", - "optional": true + "name": "accept_routes_from", + "type": "TypeList", + "description": "The filters specifying the resources that may create routes in this routing table.At present, only the `resource_type` filter is permitted, and only the `vpn_gateway` value is supported, but filter support is expected to expand in the future.", + "computed": true, + "elem": { + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + } + } }, { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", + "name": "is_default", + "type": "TypeBool", + "description": "Indicates whether this is the default routing table for this VPC.", "computed": true }, { - "name": "route_transit_gateway_ingress", + "name": "route_internet_ingress", "type": "TypeBool", - "description": "Indicates whether this routing table is used to route traffic that originates from from [Transit Gateway](https://cloud.ibm.com/cloud/transit-gateway/) to this VPC.Incoming traffic will be routed according to the routing table with one exception: routes with an `action` of `deliver` are treated as `drop` unless the `next_hop` is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a `next_hop` of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.", + "description": "Indicates whether this routing table is used to route traffic that originates from the internet.Incoming traffic will be routed according to the routing table with two exceptions:- Traffic destined for IP addresses associated with public gateways will not be subject to routes in this routing table.- Routes with an action of deliver are treated as drop unless the `next_hop` is an IP address bound to a network interface on a subnet in the route's `zone`. Therefore, if an incoming packet matches a route with a `next_hop` of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.", "computed": true }, { - "name": "created_at", + "name": "routing_table", "type": "TypeString", - "description": "The date and time that this routing table was created.", - "computed": true + "description": "The routing table identifier.", + "optional": true }, { - "name": "is_default", - "type": "TypeBool", - "description": "Indicates whether this is the default routing table for this VPC.", + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the routing table.", "computed": true }, { @@ -59922,24 +59916,16 @@ "computed": true }, { - "name": "route_internet_ingress", + "name": "route_vpc_zone_ingress", "type": "TypeBool", - "description": "Indicates whether this routing table is used to route traffic that originates from the internet.Incoming traffic will be routed according to the routing table with two exceptions:- Traffic destined for IP addresses associated with public gateways will not be subject to routes in this routing table.- Routes with an action of deliver are treated as drop unless the `next_hop` is an IP address bound to a network interface on a subnet in the route's `zone`. Therefore, if an incoming packet matches a route with a `next_hop` of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.", + "description": "Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC.Incoming traffic will be routed according to the routing table with one exception: routes with an `action` of `deliver` are treated as `drop` unless the `next_hop` is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a `next_hop` of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.", "computed": true }, { - "name": "accept_routes_from", - "type": "TypeList", - "description": "The filters specifying the resources that may create routes in this routing table.At present, only the `resource_type` filter is permitted, and only the `vpn_gateway` value is supported, but filter support is expected to expand in the future.", - "computed": true, - "elem": { - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", - "computed": true - } - } + "name": "created_at", + "type": "TypeString", + "description": "The date and time that this routing table was created.", + "computed": true }, { "name": "href", @@ -59948,27 +59934,15 @@ "computed": true }, { - "name": "lifecycle_state", + "name": "resource_type", "type": "TypeString", - "description": "The lifecycle state of the routing table.", + "description": "The resource type.", "computed": true }, { - "name": "vpc", - "type": "TypeString", - "description": "The VPC identifier.", - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this routing table.", - "optional": true - }, - { - "name": "route_vpc_zone_ingress", + "name": "route_transit_gateway_ingress", "type": "TypeBool", - "description": "Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC.Incoming traffic will be routed according to the routing table with one exception: routes with an `action` of `deliver` are treated as `drop` unless the `next_hop` is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a `next_hop` of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.", + "description": "Indicates whether this routing table is used to route traffic that originates from from [Transit Gateway](https://cloud.ibm.com/cloud/transit-gateway/) to this VPC.Incoming traffic will be routed according to the routing table with one exception: routes with an `action` of `deliver` are treated as `drop` unless the `next_hop` is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a `next_hop` of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.", "computed": true }, { @@ -60011,6 +59985,18 @@ } } }, + { + "name": "vpc", + "type": "TypeString", + "description": "The VPC identifier.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this routing table.", + "optional": true + }, { "name": "subnets", "type": "TypeList", @@ -60066,15 +60052,57 @@ "optional": true }, { - "name": "creator", + "name": "destination", + "type": "TypeString", + "description": "The destination of the route.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this route.", + "computed": true + }, + { + "name": "routing_table", + "type": "TypeString", + "description": "The routing table identifier.", + "required": true + }, + { + "name": "route_id", + "type": "TypeString", + "description": "The VPC routing table route identifier.", + "optional": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the route.", + "computed": true + }, + { + "name": "vpc", + "type": "TypeString", + "description": "The VPC identifier.", + "required": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the route was created.", + "computed": true + }, + { + "name": "next_hop", "type": "TypeList", - "description": "If present, the resource that created the route. Routes with this property present cannot bedirectly deleted. All routes with an `origin` of `learned` or `service` will have thisproperty set, and future `origin` values may also have this property set.", + "description": "If `action` is `deliver`, the next hop that packets will be delivered to. Forother `action` values, its `address` will be `0.0.0.0`.", "computed": true, "elem": { - "crn": { - "name": "crn", + "address": { + "name": "address", "type": "TypeString", - "description": "The VPN gateway's CRN.", + "description": "The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", "computed": true }, "deleted": { @@ -60094,19 +60122,19 @@ "href": { "name": "href", "type": "TypeString", - "description": "The VPN gateway's canonical URL.", + "description": "The VPN connection's canonical URL.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this VPN gateway.", + "description": "The unique identifier for this VPN gateway connection.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The user-defined name for this VPN gateway.", + "description": "The user-defined name for this VPN connection.", "computed": true }, "resource_type": { @@ -60118,21 +60146,27 @@ } }, { - "name": "lifecycle_state", + "name": "origin", "type": "TypeString", - "description": "The lifecycle state of the route.", + "description": "The origin of this route:- `service`: route was directly created by a service- `user`: route was directly created by a userThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the route on which the unexpected property value was encountered.", "computed": true }, { - "name": "next_hop", + "name": "action", + "type": "TypeString", + "description": "The action to perform with a packet matching the route:- `delegate`: delegate to the system's built-in routes- `delegate_vpc`: delegate to the system's built-in routes, ignoring Internet-bound routes- `deliver`: deliver the packet to the specified `next_hop`- `drop`: drop the packet.", + "computed": true + }, + { + "name": "creator", "type": "TypeList", - "description": "If `action` is `deliver`, the next hop that packets will be delivered to. Forother `action` values, its `address` will be `0.0.0.0`.", + "description": "If present, the resource that created the route. Routes with this property present cannot bedirectly deleted. All routes with an `origin` of `learned` or `service` will have thisproperty set, and future `origin` values may also have this property set.", "computed": true, "elem": { - "address": { - "name": "address", + "crn": { + "name": "crn", "type": "TypeString", - "description": "The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", + "description": "The VPN gateway's CRN.", "computed": true }, "deleted": { @@ -60152,19 +60186,19 @@ "href": { "name": "href", "type": "TypeString", - "description": "The VPN connection's canonical URL.", + "description": "The VPN gateway's canonical URL.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this VPN gateway connection.", + "description": "The unique identifier for this VPN gateway.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The user-defined name for this VPN connection.", + "description": "The user-defined name for this VPN gateway.", "computed": true }, "resource_type": { @@ -60175,12 +60209,6 @@ } } }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this route.", - "computed": true - }, { "name": "priority", "type": "TypeInt", @@ -60206,48 +60234,6 @@ "computed": true } } - }, - { - "name": "destination", - "type": "TypeString", - "description": "The destination of the route.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the route was created.", - "computed": true - }, - { - "name": "origin", - "type": "TypeString", - "description": "The origin of this route:- `service`: route was directly created by a service- `user`: route was directly created by a userThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the route on which the unexpected property value was encountered.", - "computed": true - }, - { - "name": "vpc", - "type": "TypeString", - "description": "The VPC identifier.", - "required": true - }, - { - "name": "routing_table", - "type": "TypeString", - "description": "The routing table identifier.", - "required": true - }, - { - "name": "route_id", - "type": "TypeString", - "description": "The VPC routing table route identifier.", - "optional": true - }, - { - "name": "action", - "type": "TypeString", - "description": "The action to perform with a packet matching the route:- `delegate`: delegate to the system's built-in routes- `delegate_vpc`: delegate to the system's built-in routes, ignoring Internet-bound routes- `deliver`: deliver the packet to the specified `next_hop`- `drop`: drop the packet.", - "computed": true } ], "ibm_is_vpc_routing_table_routes": [ @@ -61019,167 +61005,135 @@ ], "ibm_is_vpn_gateway": [ { - "name": "vpn_gateway_name", - "type": "TypeString", - "description": "The VPN gateway name.", - "optional": true - }, - { - "name": "resource_type", + "name": "health_state", "type": "TypeString", - "description": "The resource type.", + "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", "computed": true }, { - "name": "health_reasons", + "name": "connections", "type": "TypeList", + "description": "Connections for this VPN gateway.", "computed": true, "elem": { - "code": { - "name": "code", + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and provides some supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", "type": "TypeString", - "description": "A snake case string succinctly identifying the reason for this health state.", + "description": "The VPN connection's canonical URL.", "computed": true }, - "message": { - "name": "message", + "id": { + "name": "id", "type": "TypeString", - "description": "An explanation of the reason for this health state.", + "description": "The unique identifier for this VPN gateway connection.", "computed": true }, - "more_info": { - "name": "more_info", + "name": { + "name": "name", "type": "TypeString", - "description": "Link to documentation about the reason for this health state.", + "description": "The user-defined name for this VPN connection.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", "computed": true } } }, { - "name": "mode", + "name": "name", "type": "TypeString", - "description": "Route mode VPN gateway.", + "description": "The user-defined name for this VPN gateway.", "computed": true }, { - "name": "href", + "name": "resource_type", "type": "TypeString", - "description": "The VPN gateway's canonical URL.", + "description": "The resource type.", "computed": true }, { - "name": "resource_group", + "name": "health_reasons", "type": "TypeList", - "description": "The resource group for this VPN gateway.", - "cloud_data_type": "resource_group", "computed": true, "elem": { - "href": { - "name": "href", + "code": { + "name": "code", "type": "TypeString", - "description": "The URL for this resource group.", + "description": "A snake case string succinctly identifying the reason for this health state.", "computed": true }, - "id": { - "name": "id", + "message": { + "name": "message", "type": "TypeString", - "description": "The unique identifier for this resource group.", + "description": "An explanation of the reason for this health state.", "computed": true }, - "name": { - "name": "name", + "more_info": { + "name": "more_info", "type": "TypeString", - "description": "The user-defined name for this resource group.", + "description": "Link to documentation about the reason for this health state.", "computed": true } } }, { - "name": "health_state", - "type": "TypeString", - "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "VPN Gateway tags list", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "crn", - "type": "TypeString", - "description": "The VPN gateway's CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "members", + "name": "lifecycle_reasons", "type": "TypeList", - "description": "Collection of VPN gateway members.", + "description": "The reasons for the current lifecycle_state (if any).", "computed": true, "elem": { - "private_ip_address": { - "name": "private_ip_address", - "type": "TypeString", - "description": "The private IP address assigned to the VPN gateway member. This property will be present only when the VPN gateway status is`available`.", - "computed": true - }, - "public_ip_address": { - "name": "public_ip_address", + "code": { + "name": "code", "type": "TypeString", - "description": "The public IP address assigned to the VPN gateway member.", + "description": "A snake case string succinctly identifying the reason for this lifecycle state.", "computed": true }, - "role": { - "name": "role", + "message": { + "name": "message", "type": "TypeString", - "description": "The high availability role assigned to the VPN gateway member.", + "description": "An explanation of the reason for this lifecycle state.", "computed": true }, - "status": { - "name": "status", + "more_info": { + "name": "more_info", "type": "TypeString", - "description": "The status of the VPN gateway member.", + "description": "Link to documentation about the reason for this lifecycle state.", "computed": true } } }, { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this VPN gateway.", - "computed": true - }, - { - "name": "vpc", + "name": "subnet", "type": "TypeList", - "description": "VPC for the VPN Gateway", "computed": true, "elem": { "crn": { "name": "crn", "type": "TypeString", - "description": "The CRN for this VPC.", + "description": "The CRN for this subnet.", "computed": true }, "deleted": { "name": "deleted", "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "description": "If present, this property indicates the referenced resource has been deleted and provides some supplementary information.", "computed": true, "elem": { "more_info": { @@ -61193,110 +61147,132 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for this VPC.", + "description": "The URL for this subnet.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this VPC.", + "description": "The unique identifier for this subnet.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The unique user-defined name for this VPC.", + "description": "The user-defined name for this subnet.", "computed": true } } }, { - "name": "lifecycle_reasons", + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "crn", + "type": "TypeString", + "description": "The VPN gateway's CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "resource_group", "type": "TypeList", - "description": "The reasons for the current lifecycle_state (if any).", + "description": "The resource group for this VPN gateway.", + "cloud_data_type": "resource_group", "computed": true, "elem": { - "code": { - "name": "code", + "href": { + "name": "href", "type": "TypeString", - "description": "A snake case string succinctly identifying the reason for this lifecycle state.", + "description": "The URL for this resource group.", "computed": true }, - "message": { - "name": "message", + "id": { + "name": "id", "type": "TypeString", - "description": "An explanation of the reason for this lifecycle state.", + "description": "The unique identifier for this resource group.", "computed": true }, - "more_info": { - "name": "more_info", + "name": { + "name": "name", "type": "TypeString", - "description": "Link to documentation about the reason for this lifecycle state.", + "description": "The user-defined name for this resource group.", "computed": true } } }, { - "name": "subnet", + "name": "href", + "type": "TypeString", + "description": "The VPN gateway's canonical URL.", + "computed": true + }, + { + "name": "members", "type": "TypeList", + "description": "Collection of VPN gateway members.", "computed": true, "elem": { - "crn": { - "name": "crn", + "private_ip_address": { + "name": "private_ip_address", "type": "TypeString", - "description": "The CRN for this subnet.", + "description": "The private IP address assigned to the VPN gateway member. This property will be present only when the VPN gateway status is`available`.", "computed": true }, - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and provides some supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, - "href": { - "name": "href", + "public_ip_address": { + "name": "public_ip_address", "type": "TypeString", - "description": "The URL for this subnet.", + "description": "The public IP address assigned to the VPN gateway member.", "computed": true }, - "id": { - "name": "id", + "role": { + "name": "role", "type": "TypeString", - "description": "The unique identifier for this subnet.", + "description": "The high availability role assigned to the VPN gateway member.", "computed": true }, - "name": { - "name": "name", + "status": { + "name": "status", "type": "TypeString", - "description": "The user-defined name for this subnet.", + "description": "The status of the VPN gateway member.", "computed": true } } }, { - "name": "vpn_gateway", + "name": "status", "type": "TypeString", - "description": "The VPN gateway identifier.", - "optional": true + "description": "The status of the VPN gateway.", + "computed": true }, { - "name": "connections", + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the VPN route.", + "computed": true + }, + { + "name": "vpc", "type": "TypeList", - "description": "Connections for this VPN gateway.", + "description": "VPC for the VPN Gateway", "computed": true, "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this VPC.", + "computed": true + }, "deleted": { "name": "deleted", "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and provides some supplementary information.", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", "computed": true, "elem": { "more_info": { @@ -61310,29 +61286,39 @@ "href": { "name": "href", "type": "TypeString", - "description": "The VPN connection's canonical URL.", + "description": "The URL for this VPC.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this VPN gateway connection.", + "description": "The unique identifier for this VPC.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The user-defined name for this VPN connection.", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", + "description": "The unique user-defined name for this VPC.", "computed": true } } }, + { + "name": "tags", + "type": "TypeSet", + "description": "VPN Gateway tags list", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "vpn_gateway_name", + "type": "TypeString", + "description": "The VPN gateway name.", + "optional": true + }, { "name": "created_at", "type": "TypeString", @@ -61340,31 +61326,111 @@ "computed": true }, { - "name": "status", + "name": "vpn_gateway", "type": "TypeString", - "description": "The status of the VPN gateway.", - "computed": true + "description": "The VPN gateway identifier.", + "optional": true }, { - "name": "lifecycle_state", + "name": "mode", "type": "TypeString", - "description": "The lifecycle state of the VPN route.", + "description": "Route mode VPN gateway.", "computed": true } ], "ibm_is_vpn_gateway_connection": [ + { + "name": "vpn_gateway_connection", + "type": "TypeString", + "description": "The VPN gateway connection identifier.", + "optional": true + }, + { + "name": "authentication_mode", + "type": "TypeString", + "description": "The authentication mode. Only `psk` is currently supported.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this VPN gateway connection.", + "computed": true + }, + { + "name": "psk", + "type": "TypeString", + "description": "The preshared key.", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The status of a VPN gateway connection.", + "computed": true + }, + { + "name": "vpn_gateway", + "type": "TypeString", + "description": "The VPN gateway identifier.", + "optional": true + }, { "name": "admin_state_up", "type": "TypeBool", "description": "If set to false, the VPN gateway connection is shut down.", "computed": true }, + { + "name": "dead_peer_detection", + "type": "TypeList", + "description": "The Dead Peer Detection settings.", + "computed": true, + "elem": { + "action": { + "name": "action", + "type": "TypeString", + "description": "Dead Peer Detection actions.", + "computed": true + }, + "interval": { + "name": "interval", + "type": "TypeInt", + "description": "Dead Peer Detection interval in seconds.", + "computed": true + }, + "timeout": { + "name": "timeout", + "type": "TypeInt", + "description": "Dead Peer Detection timeout in seconds. Must be at least the interval.", + "computed": true + } + } + }, { "name": "href", "type": "TypeString", "description": "The VPN connection's canonical URL.", "computed": true }, + { + "name": "peer_address", + "type": "TypeString", + "description": "The IP address of the peer VPN gateway.", + "computed": true + }, + { + "name": "vpn_gateway_connection_name", + "type": "TypeString", + "description": "The VPN gateway connection name.", + "optional": true + }, { "name": "ike_policy", "type": "TypeList", @@ -61411,56 +61477,6 @@ } } }, - { - "name": "peer_address", - "type": "TypeString", - "description": "The IP address of the peer VPN gateway.", - "computed": true - }, - { - "name": "status_reasons", - "type": "TypeList", - "description": "The reasons for the current status (if any).", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the status reason.", - "computed": true - }, - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about this status reason.", - "computed": true - } - } - }, - { - "name": "vpn_gateway", - "type": "TypeString", - "description": "The VPN gateway identifier.", - "optional": true - }, - { - "name": "vpn_gateway_connection_name", - "type": "TypeString", - "description": "The VPN gateway connection name.", - "optional": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that this VPN gateway connection was created.", - "computed": true - }, { "name": "ipsec_policy", "type": "TypeList", @@ -61508,18 +61524,35 @@ } }, { - "name": "name", + "name": "mode", "type": "TypeString", - "description": "The user-defined name for this VPN gateway connection.", + "description": "The mode of the VPN gateway.", "computed": true }, { - "name": "local_cidrs", + "name": "routing_protocol", + "type": "TypeString", + "description": "Routing protocols are disabled for this VPN gateway connection.", + "computed": true + }, + { + "name": "tunnels", "type": "TypeList", - "description": "The local CIDRs for this resource.", + "description": "The VPN tunnel configuration for this VPN gateway connection (in static route mode).", "computed": true, "elem": { - "type": "TypeString" + "public_ip_address": { + "name": "public_ip_address", + "type": "TypeString", + "description": "The IP address of the VPN gateway member in which the tunnel resides.", + "computed": true + }, + "status": { + "name": "status", + "type": "TypeString", + "description": "The status of the VPN Tunnel.", + "computed": true + } } }, { @@ -61538,92 +61571,45 @@ "optional": true }, { - "name": "authentication_mode", + "name": "created_at", "type": "TypeString", - "description": "The authentication mode. Only `psk` is currently supported.", + "description": "The date and time that this VPN gateway connection was created.", "computed": true }, { - "name": "dead_peer_detection", + "name": "status_reasons", "type": "TypeList", - "description": "The Dead Peer Detection settings.", + "description": "The reasons for the current status (if any).", "computed": true, "elem": { - "action": { - "name": "action", + "code": { + "name": "code", "type": "TypeString", - "description": "Dead Peer Detection actions.", + "description": "A snake case string succinctly identifying the status reason.", "computed": true }, - "interval": { - "name": "interval", - "type": "TypeInt", - "description": "Dead Peer Detection interval in seconds.", + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the status reason.", "computed": true }, - "timeout": { - "name": "timeout", - "type": "TypeInt", - "description": "Dead Peer Detection timeout in seconds. Must be at least the interval.", + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about this status reason.", "computed": true } } }, { - "name": "mode", - "type": "TypeString", - "description": "The mode of the VPN gateway.", - "computed": true - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The status of a VPN gateway connection.", - "computed": true - }, - { - "name": "tunnels", + "name": "local_cidrs", "type": "TypeList", - "description": "The VPN tunnel configuration for this VPN gateway connection (in static route mode).", + "description": "The local CIDRs for this resource.", "computed": true, "elem": { - "public_ip_address": { - "name": "public_ip_address", - "type": "TypeString", - "description": "The IP address of the VPN gateway member in which the tunnel resides.", - "computed": true - }, - "status": { - "name": "status", - "type": "TypeString", - "description": "The status of the VPN Tunnel.", - "computed": true - } + "type": "TypeString" } - }, - { - "name": "vpn_gateway_connection", - "type": "TypeString", - "description": "The VPN gateway connection identifier.", - "optional": true - }, - { - "name": "psk", - "type": "TypeString", - "description": "The preshared key.", - "computed": true - }, - { - "name": "routing_protocol", - "type": "TypeString", - "description": "Routing protocols are disabled for this VPN gateway connection.", - "computed": true } ], "ibm_is_vpn_gateway_connections": [ @@ -62028,12 +62014,6 @@ } ], "ibm_is_vpn_server": [ - { - "name": "port", - "type": "TypeInt", - "description": "The port number used by this VPN server.", - "computed": true - }, { "name": "client_auto_delete", "type": "TypeBool", @@ -62041,61 +62021,50 @@ "computed": true }, { - "name": "client_idle_timeout", + "name": "client_auto_delete_timeout", "type": "TypeInt", - "description": "The seconds a VPN client can be idle before this VPN server will disconnect it. If `0`, the server will not disconnect idle clients.", + "description": "Hours after which disconnected VPN clients will be automatically deleted. If `0`, disconnected VPN clients will be deleted immediately.", "computed": true }, { - "name": "resource_type", + "name": "lifecycle_state", "type": "TypeString", - "description": "The type of resource referenced.", + "description": "The lifecycle state of the VPN server.", "computed": true }, { - "name": "certificate", - "type": "TypeList", - "description": "The certificate instance for this VPN server.", + "name": "access_tags", + "type": "TypeSet", + "description": "List of access tags", "computed": true, "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this certificate instance.", - "computed": true - } + "type": "TypeString" } }, { - "name": "lifecycle_reasons", - "type": "TypeList", - "description": "The reasons for the current lifecycle_state (if any).", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the reason for this lifecycle state.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the reason for this lifecycle state.", - "computed": true - }, - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about the reason for this lifecycle state.", - "computed": true - } - } + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this VPN server", + "optional": true, + "computed": true }, { - "name": "created_at", + "name": "crn", "type": "TypeString", - "description": "The date and time that the VPN server was created.", + "description": "The CRN for this VPN server.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "enable_split_tunneling", + "type": "TypeBool", + "description": "Indicates whether the split tunneling is enabled on this VPN server.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this VPN server.", "computed": true }, { @@ -62145,159 +62114,93 @@ } }, { - "name": "protocol", - "type": "TypeString", - "description": "The transport protocol used by this VPN server.", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this VPN server.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "enable_split_tunneling", - "type": "TypeBool", - "description": "Indicates whether the split tunneling is enabled on this VPN server.", - "computed": true - }, - { - "name": "client_ip_pool", - "type": "TypeString", - "description": "The VPN client IPv4 address pool, expressed in CIDR format.", - "computed": true - }, - { - "name": "health_state", - "type": "TypeString", - "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", - "computed": true - }, - { - "name": "client_authentication", + "name": "subnets", "type": "TypeList", - "description": "The methods used to authenticate VPN clients to this VPN server. VPN clients must authenticate against all provided methods.", + "description": "The subnets this VPN server is part of.", "computed": true, "elem": { - "client_ca": { - "name": "client_ca", + "crn": { + "name": "crn", "type": "TypeString", - "description": "The CRN for this certificate instance,The certificate instance used for the VPN client certificate authority (CA).", + "description": "The CRN for this subnet.", "computed": true }, - "identity_provider": { - "name": "identity_provider", - "type": "TypeString", - "description": "The type of identity provider to be used by the VPN client.- `iam`: IBM identity and access managementThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the route on which the unexpected property value was encountered,The type of identity provider to be used by VPN client.", - "computed": true + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } }, - "method": { - "name": "method", - "type": "TypeString", - "description": "The type of authentication.", - "computed": true - } - } - }, - { - "name": "client_dns_server_ips", - "type": "TypeList", - "description": "The DNS server addresses that will be provided to VPN clients that are connected to this VPN server.", - "computed": true, - "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", - "computed": true - } - } - }, - { - "name": "resource_group", - "type": "TypeList", - "description": "The resource group for this VPN server.", - "cloud_data_type": "resource_group", - "computed": true, - "elem": { "href": { "name": "href", "type": "TypeString", - "description": "The URL for this resource group.", + "description": "The URL for this subnet.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this resource group.", + "description": "The unique identifier for this subnet.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The user-defined name for this resource group.", + "description": "The user-defined name for this subnet.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", "computed": true } } }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "health_reasons", + "name": "lifecycle_reasons", "type": "TypeList", + "description": "The reasons for the current lifecycle_state (if any).", "computed": true, "elem": { "code": { "name": "code", "type": "TypeString", - "description": "A snake case string succinctly identifying the reason for this health state.", + "description": "A snake case string succinctly identifying the reason for this lifecycle state.", "computed": true }, "message": { "name": "message", "type": "TypeString", - "description": "An explanation of the reason for this health state.", + "description": "An explanation of the reason for this lifecycle state.", "computed": true }, "more_info": { "name": "more_info", "type": "TypeString", - "description": "Link to documentation about the reason for this health state.", + "description": "Link to documentation about the reason for this lifecycle state.", "computed": true } } }, { - "name": "hostname", - "type": "TypeString", - "description": "Fully qualified domain name assigned to this VPN server.", - "computed": true - }, - { - "name": "lifecycle_state", - "type": "TypeString", - "description": "The lifecycle state of the VPN server.", - "computed": true - }, - { - "name": "subnets", + "name": "private_ips", "type": "TypeList", - "description": "The subnets this VPN server is part of.", + "description": "The reserved IPs bound to this VPN server.", "computed": true, "elem": { - "crn": { - "name": "crn", + "address": { + "name": "address", "type": "TypeString", - "description": "The CRN for this subnet.", + "description": "The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", "computed": true }, "deleted": { @@ -62317,19 +62220,19 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for this subnet.", + "description": "The URL for this reserved IP.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this subnet.", + "description": "The unique identifier for this reserved IP.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The user-defined name for this subnet.", + "description": "The user-defined or system-provided name for this reserved IP.", "computed": true }, "resource_type": { @@ -62341,66 +62244,74 @@ } }, { - "name": "identifier", - "type": "TypeString", - "description": "The unique identifier for this VPN server", - "optional": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this VPN server", - "optional": true, - "computed": true + "name": "certificate", + "type": "TypeList", + "description": "The certificate instance for this VPN server.", + "computed": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this certificate instance.", + "computed": true + } + } }, { - "name": "private_ips", + "name": "client_authentication", "type": "TypeList", - "description": "The reserved IPs bound to this VPN server.", + "description": "The methods used to authenticate VPN clients to this VPN server. VPN clients must authenticate against all provided methods.", "computed": true, "elem": { - "address": { - "name": "address", + "client_ca": { + "name": "client_ca", "type": "TypeString", - "description": "The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", + "description": "The CRN for this certificate instance,The certificate instance used for the VPN client certificate authority (CA).", "computed": true }, - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } + "identity_provider": { + "name": "identity_provider", + "type": "TypeString", + "description": "The type of identity provider to be used by the VPN client.- `iam`: IBM identity and access managementThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the route on which the unexpected property value was encountered,The type of identity provider to be used by VPN client.", + "computed": true }, + "method": { + "name": "method", + "type": "TypeString", + "description": "The type of authentication.", + "computed": true + } + } + }, + { + "name": "client_idle_timeout", + "type": "TypeInt", + "description": "The seconds a VPN client can be idle before this VPN server will disconnect it. If `0`, the server will not disconnect idle clients.", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeList", + "description": "The resource group for this VPN server.", + "cloud_data_type": "resource_group", + "computed": true, + "elem": { "href": { "name": "href", "type": "TypeString", - "description": "The URL for this reserved IP.", + "description": "The URL for this resource group.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this reserved IP.", + "description": "The unique identifier for this resource group.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The user-defined or system-provided name for this reserved IP.", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", + "description": "The user-defined name for this resource group.", "computed": true } } @@ -62452,63 +62363,120 @@ } }, { - "name": "client_auto_delete_timeout", - "type": "TypeInt", - "description": "Hours after which disconnected VPN clients will be automatically deleted. If `0`, disconnected VPN clients will be deleted immediately.", + "name": "client_dns_server_ips", + "type": "TypeList", + "description": "The DNS server addresses that will be provided to VPN clients that are connected to this VPN server.", + "computed": true, + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", + "computed": true + } + } + }, + { + "name": "protocol", + "type": "TypeString", + "description": "The transport protocol used by this VPN server.", "computed": true }, { - "name": "href", + "name": "health_state", "type": "TypeString", - "description": "The URL for this VPN server.", + "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", "computed": true - } - ], - "ibm_is_vpn_server_client": [ + }, { - "name": "username", + "name": "hostname", "type": "TypeString", - "description": "The username that this VPN client provided when connecting to the VPN server.This property will be present only when the`username` client authentication method is enabled on the VPN server.", + "description": "Fully qualified domain name assigned to this VPN server.", "computed": true }, { - "name": "vpn_server", + "name": "resource_type", "type": "TypeString", - "description": "The VPN server identifier.", - "required": true + "description": "The type of resource referenced.", + "computed": true }, { - "name": "client_ip", + "name": "identifier", + "type": "TypeString", + "description": "The unique identifier for this VPN server", + "optional": true + }, + { + "name": "client_ip_pool", + "type": "TypeString", + "description": "The VPN client IPv4 address pool, expressed in CIDR format.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the VPN server was created.", + "computed": true + }, + { + "name": "health_reasons", "type": "TypeList", - "description": "The IP address assigned to this VPN client from `client_ip_pool`.", "computed": true, "elem": { - "address": { - "name": "address", + "code": { + "name": "code", "type": "TypeString", - "description": "The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", + "description": "A snake case string succinctly identifying the reason for this health state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this health state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this health state.", "computed": true } } }, { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the VPN client was created.", + "name": "port", + "type": "TypeInt", + "description": "The port number used by this VPN server.", "computed": true - }, + } + ], + "ibm_is_vpn_server_client": [ { - "name": "resource_type", + "name": "common_name", "type": "TypeString", - "description": "The resource type.", + "description": "The common name of client certificate that the VPN client provided when connecting to the server.This property will be present only when the `certificate` client authentication method is enabled on the VPN server.", "computed": true }, { - "name": "status", + "name": "created_at", "type": "TypeString", - "description": "The status of the VPN client:- `connected`: the VPN client is `connected` to this VPN server.- `disconnected`: the VPN client is `disconnected` from this VPN server.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the VPN client on which the unexpected property value was encountered.", + "description": "The date and time that the VPN client was created.", "computed": true }, + { + "name": "remote_ip", + "type": "TypeList", + "description": "The remote IP address of this VPN client.", + "computed": true, + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", + "computed": true + } + } + }, { "name": "remote_port", "type": "TypeInt", @@ -62516,33 +62484,27 @@ "computed": true }, { - "name": "identifier", - "type": "TypeString", - "description": "The VPN client identifier.", - "required": true - }, - { - "name": "common_name", + "name": "resource_type", "type": "TypeString", - "description": "The common name of client certificate that the VPN client provided when connecting to the server.This property will be present only when the `certificate` client authentication method is enabled on the VPN server.", + "description": "The resource type.", "computed": true }, { - "name": "disconnected_at", + "name": "username", "type": "TypeString", - "description": "The date and time that the VPN client was disconnected.", + "description": "The username that this VPN client provided when connecting to the VPN server.This property will be present only when the`username` client authentication method is enabled on the VPN server.", "computed": true }, { - "name": "href", + "name": "identifier", "type": "TypeString", - "description": "The URL for this VPN client.", - "computed": true + "description": "The VPN client identifier.", + "required": true }, { - "name": "remote_ip", + "name": "client_ip", "type": "TypeList", - "description": "The remote IP address of this VPN client.", + "description": "The IP address assigned to this VPN client from `client_ip_pool`.", "computed": true, "elem": { "address": { @@ -62552,6 +62514,30 @@ "computed": true } } + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this VPN client.", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The status of the VPN client:- `connected`: the VPN client is `connected` to this VPN server.- `disconnected`: the VPN client is `disconnected` from this VPN server.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the VPN client on which the unexpected property value was encountered.", + "computed": true + }, + { + "name": "vpn_server", + "type": "TypeString", + "description": "The VPN server identifier.", + "required": true + }, + { + "name": "disconnected_at", + "type": "TypeString", + "description": "The date and time that the VPN client was disconnected.", + "computed": true } ], "ibm_is_vpn_server_client_configuration": [ @@ -62577,12 +62563,6 @@ } ], "ibm_is_vpn_server_clients": [ - { - "name": "vpn_server", - "type": "TypeString", - "description": "The VPN server identifier.", - "required": true - }, { "name": "clients", "type": "TypeList", @@ -62672,27 +62652,15 @@ "computed": true } } - } - ], - "ibm_is_vpn_server_route": [ - { - "name": "href", - "type": "TypeString", - "description": "The URL for this VPN route.", - "computed": true - }, - { - "name": "health_state", - "type": "TypeString", - "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", - "computed": true }, { - "name": "lifecycle_state", + "name": "vpn_server", "type": "TypeString", - "description": "The lifecycle state of the VPN route.", - "computed": true - }, + "description": "The VPN server identifier.", + "required": true + } + ], + "ibm_is_vpn_server_route": [ { "name": "resource_type", "type": "TypeString", @@ -62700,17 +62668,10 @@ "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this VPN server route", - "optional": true, - "computed": true - }, - { - "name": "action", + "name": "identifier", "type": "TypeString", - "description": "The action to perform with a packet matching the VPN route:- `translate`: translate the source IP address to one of the private IP addresses of the VPN server.- `deliver`: deliver the packet into the VPC.- `drop`: drop the packetThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the VPN route on which the unexpected property value was encountered.", - "computed": true + "description": "The unique identifier for this VPN server route", + "optional": true }, { "name": "created_at", @@ -62719,62 +62680,74 @@ "computed": true }, { - "name": "destination", + "name": "href", "type": "TypeString", - "description": "The destination for this VPN route in the VPN server. If an incoming packet does not match any destination, it will be dropped.", + "description": "The URL for this VPN route.", "computed": true }, { - "name": "health_reasons", + "name": "lifecycle_reasons", "type": "TypeList", + "description": "The reasons for the current lifecycle_state (if any).", "computed": true, "elem": { "code": { "name": "code", "type": "TypeString", - "description": "A snake case string succinctly identifying the reason for this health state.", + "description": "A snake case string succinctly identifying the reason for this lifecycle state.", "computed": true }, "message": { "name": "message", "type": "TypeString", - "description": "An explanation of the reason for this health state.", + "description": "An explanation of the reason for this lifecycle state.", "computed": true }, "more_info": { "name": "more_info", "type": "TypeString", - "description": "Link to documentation about the reason for this health state.", + "description": "Link to documentation about the reason for this lifecycle state.", "computed": true } } }, { - "name": "lifecycle_reasons", + "name": "health_state", + "type": "TypeString", + "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", + "computed": true + }, + { + "name": "health_reasons", "type": "TypeList", - "description": "The reasons for the current lifecycle_state (if any).", "computed": true, "elem": { "code": { "name": "code", "type": "TypeString", - "description": "A snake case string succinctly identifying the reason for this lifecycle state.", + "description": "A snake case string succinctly identifying the reason for this health state.", "computed": true }, "message": { "name": "message", "type": "TypeString", - "description": "An explanation of the reason for this lifecycle state.", + "description": "An explanation of the reason for this health state.", "computed": true }, "more_info": { "name": "more_info", "type": "TypeString", - "description": "Link to documentation about the reason for this lifecycle state.", + "description": "Link to documentation about the reason for this health state.", "computed": true } } }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the VPN route.", + "computed": true + }, { "name": "vpn_server", "type": "TypeString", @@ -62782,10 +62755,23 @@ "required": true }, { - "name": "identifier", + "name": "name", "type": "TypeString", - "description": "The unique identifier for this VPN server route", - "optional": true + "description": "The unique user-defined name for this VPN server route", + "optional": true, + "computed": true + }, + { + "name": "action", + "type": "TypeString", + "description": "The action to perform with a packet matching the VPN route:- `translate`: translate the source IP address to one of the private IP addresses of the VPN server.- `deliver`: deliver the packet into the VPC.- `drop`: drop the packetThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the VPN route on which the unexpected property value was encountered.", + "computed": true + }, + { + "name": "destination", + "type": "TypeString", + "description": "The destination for this VPN route in the VPN server. If an incoming packet does not match any destination, it will be dropped.", + "computed": true } ], "ibm_is_vpn_server_routes": [ @@ -63399,23 +63385,11 @@ ], "ibm_kms_instance_policies": [ { - "name": "key_create_import_access", + "name": "dual_auth_delete", "type": "TypeList", - "description": "Data associated with the key create import access policy for the instance", + "description": "Data associated with the dual auth delete policy for instance", "computed": true, "elem": { - "create_root_key": { - "name": "create_root_key", - "type": "TypeBool", - "description": "If set to true, Key Protect allows you or any authorized users to create root keys in the instance.", - "computed": true - }, - "create_standard_key": { - "name": "create_standard_key", - "type": "TypeBool", - "description": "If set to true, Key Protect allows you or any authorized users to create standard keys in the instance.", - "computed": true - }, "created_by": { "name": "created_by", "type": "TypeString", @@ -63431,25 +63405,7 @@ "enabled": { "name": "enabled", "type": "TypeBool", - "description": "Data associated with enable/disable KCIA policy for the instance.", - "computed": true - }, - "enforce_token": { - "name": "enforce_token", - "type": "TypeBool", - "description": "If set to true, the service prevents you or any authorized users from importing key material into the specified service instance without using an import token.", - "computed": true - }, - "import_root_key": { - "name": "import_root_key", - "type": "TypeBool", - "description": "If set to true, Key Protect allows you or any authorized users to import root keys into the instance.", - "computed": true - }, - "import_standard_key": { - "name": "import_standard_key", - "type": "TypeBool", - "description": "If set to true, Key Protect allows you or any authorized users to import standard keys into the instance.", + "description": "Data associated with enable/disable dual authorization policy for the instance.", "computed": true }, "last_updated": { @@ -63467,9 +63423,9 @@ } }, { - "name": "metrics", + "name": "rotation", "type": "TypeList", - "description": "Data associated with the metric policy for the instance", + "description": "Data associated with the rotation policy for instance", "computed": true, "elem": { "created_by": { @@ -63487,7 +63443,13 @@ "enabled": { "name": "enabled", "type": "TypeBool", - "description": "Data associated with enable/disable metrics policy on the instance.", + "description": "Data associated with enable/disable of rotation policy for the instance", + "computed": true + }, + "interval_month": { + "name": "interval_month", + "type": "TypeInt", + "description": "Specifies the rotation time interval in months for the instance", "computed": true }, "last_updated": { @@ -63505,28 +63467,23 @@ } }, { - "name": "instance_id", - "type": "TypeString", - "description": "Key protect or hpcs instance GUID or CRN", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true, - "cloud_data_range": [ - "service:kms|hs-crypto" - ] - }, - { - "name": "policy_type", - "type": "TypeString", - "description": "Type of Policy to be Retrieved", - "optional": true - }, - { - "name": "dual_auth_delete", + "name": "key_create_import_access", "type": "TypeList", - "description": "Data associated with the dual auth delete policy for instance", + "description": "Data associated with the key create import access policy for the instance", "computed": true, "elem": { + "create_root_key": { + "name": "create_root_key", + "type": "TypeBool", + "description": "If set to true, Key Protect allows you or any authorized users to create root keys in the instance.", + "computed": true + }, + "create_standard_key": { + "name": "create_standard_key", + "type": "TypeBool", + "description": "If set to true, Key Protect allows you or any authorized users to create standard keys in the instance.", + "computed": true + }, "created_by": { "name": "created_by", "type": "TypeString", @@ -63542,7 +63499,25 @@ "enabled": { "name": "enabled", "type": "TypeBool", - "description": "Data associated with enable/disable dual authorization policy for the instance.", + "description": "Data associated with enable/disable KCIA policy for the instance.", + "computed": true + }, + "enforce_token": { + "name": "enforce_token", + "type": "TypeBool", + "description": "If set to true, the service prevents you or any authorized users from importing key material into the specified service instance without using an import token.", + "computed": true + }, + "import_root_key": { + "name": "import_root_key", + "type": "TypeBool", + "description": "If set to true, Key Protect allows you or any authorized users to import root keys into the instance.", + "computed": true + }, + "import_standard_key": { + "name": "import_standard_key", + "type": "TypeBool", + "description": "If set to true, Key Protect allows you or any authorized users to import standard keys into the instance.", "computed": true }, "last_updated": { @@ -63560,9 +63535,9 @@ } }, { - "name": "rotation", + "name": "metrics", "type": "TypeList", - "description": "Data associated with the rotation policy for instance", + "description": "Data associated with the metric policy for the instance", "computed": true, "elem": { "created_by": { @@ -63580,13 +63555,7 @@ "enabled": { "name": "enabled", "type": "TypeBool", - "description": "Data associated with enable/disable of rotation policy for the instance", - "computed": true - }, - "interval_month": { - "name": "interval_month", - "type": "TypeInt", - "description": "Specifies the rotation time interval in months for the instance", + "description": "Data associated with enable/disable metrics policy on the instance.", "computed": true }, "last_updated": { @@ -63602,33 +63571,26 @@ "computed": true } } - } - ], - "ibm_kms_key": [ - { - "name": "key_id", - "type": "TypeString", - "optional": true }, { - "name": "key_name", - "type": "TypeString", - "description": "The name of the key to be fetched", - "optional": true - }, - { - "name": "alias", + "name": "instance_id", "type": "TypeString", - "description": "The alias associated with the key", - "optional": true + "description": "Key protect or hpcs instance GUID or CRN", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true, + "cloud_data_range": [ + "service:kms|hs-crypto" + ] }, { - "name": "endpoint_type", + "name": "policy_type", "type": "TypeString", - "description": "public or private", - "default_value": "public", + "description": "Type of Policy to be Retrieved", "optional": true - }, + } + ], + "ibm_kms_key": [ { "name": "keys", "type": "TypeList", @@ -63788,9 +63750,56 @@ "type": "TypeInt", "description": "Limit till the keys to be fetched", "optional": true + }, + { + "name": "key_id", + "type": "TypeString", + "optional": true + }, + { + "name": "key_name", + "type": "TypeString", + "description": "The name of the key to be fetched", + "optional": true + }, + { + "name": "alias", + "type": "TypeString", + "description": "The alias associated with the key", + "optional": true + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private", + "default_value": "public", + "optional": true } ], "ibm_kms_key_policies": [ + { + "name": "instance_id", + "type": "TypeString", + "description": "Key protect or hpcs instance GUID", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:kms|hs-crypto" + ] + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private", + "default_value": "public", + "optional": true + }, + { + "name": "key_id", + "type": "TypeString", + "description": "Key ID of the Key", + "optional": true + }, { "name": "alias", "type": "TypeString", @@ -63910,29 +63919,6 @@ } } } - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "Key protect or hpcs instance GUID", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:kms|hs-crypto" - ] - }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private", - "default_value": "public", - "optional": true - }, - { - "name": "key_id", - "type": "TypeString", - "description": "Key ID of the Key", - "optional": true } ], "ibm_kms_key_rings": [ @@ -63978,39 +63964,6 @@ } ], "ibm_kms_keys": [ - { - "name": "instance_id", - "type": "TypeString", - "description": "Key protect or hpcs instance GUID", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:kms|hs-crypto" - ] - }, - { - "name": "key_name", - "type": "TypeString", - "description": "The name of the key to be fetched", - "optional": true - }, - { - "name": "limit", - "type": "TypeInt", - "description": "Limit till the keys to be fetched", - "optional": true - }, - { - "name": "alias", - "type": "TypeString", - "description": "The name of the key to be fetched", - "optional": true - }, - { - "name": "key_id", - "type": "TypeString", - "optional": true - }, { "name": "endpoint_type", "type": "TypeString", @@ -64162,9 +64115,47 @@ "computed": true } } + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "Key protect or hpcs instance GUID", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:kms|hs-crypto" + ] + }, + { + "name": "key_name", + "type": "TypeString", + "description": "The name of the key to be fetched", + "optional": true + }, + { + "name": "limit", + "type": "TypeInt", + "description": "Limit till the keys to be fetched", + "optional": true + }, + { + "name": "alias", + "type": "TypeString", + "description": "The name of the key to be fetched", + "optional": true + }, + { + "name": "key_id", + "type": "TypeString", + "optional": true } ], "ibm_kp_key": [ + { + "name": "key_protect_id", + "type": "TypeString", + "required": true + }, { "name": "key_name", "type": "TypeString", @@ -64196,11 +64187,6 @@ "computed": true } } - }, - { - "name": "key_protect_id", - "type": "TypeString", - "required": true } ], "ibm_lbaas": [ @@ -64210,13 +64196,18 @@ "computed": true }, { - "name": "vip", - "type": "TypeString", + "name": "server_instances_up", + "type": "TypeInt", "computed": true }, { - "name": "server_instances_down", - "type": "TypeInt", + "name": "name", + "type": "TypeString", + "required": true + }, + { + "name": "description", + "type": "TypeString", "computed": true }, { @@ -64225,9 +64216,12 @@ "computed": true }, { - "name": "use_system_public_ip_pool", - "type": "TypeBool", - "computed": true + "name": "ssl_ciphers", + "type": "TypeSet", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "type", @@ -64235,8 +64229,8 @@ "computed": true }, { - "name": "server_instances_up", - "type": "TypeInt", + "name": "vip", + "type": "TypeString", "computed": true }, { @@ -64267,70 +64261,10 @@ } }, { - "name": "name", - "type": "TypeString", - "required": true - }, - { - "name": "description", - "type": "TypeString", - "computed": true - }, - { - "name": "datacenter", - "type": "TypeString", + "name": "server_instances_down", + "type": "TypeInt", "computed": true }, - { - "name": "ssl_ciphers", - "type": "TypeSet", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "health_monitors", - "type": "TypeList", - "computed": true, - "elem": { - "interval": { - "name": "interval", - "type": "TypeInt", - "computed": true - }, - "max_retries": { - "name": "max_retries", - "type": "TypeInt", - "computed": true - }, - "monitor_id": { - "name": "monitor_id", - "type": "TypeString", - "computed": true - }, - "port": { - "name": "port", - "type": "TypeInt", - "computed": true - }, - "protocol": { - "name": "protocol", - "type": "TypeString", - "computed": true - }, - "timeout": { - "name": "timeout", - "type": "TypeInt", - "computed": true - }, - "url_path": { - "name": "url_path", - "type": "TypeString", - "computed": true - } - } - }, { "name": "protocols", "type": "TypeList", @@ -64382,6 +64316,58 @@ "computed": true } } + }, + { + "name": "health_monitors", + "type": "TypeList", + "computed": true, + "elem": { + "interval": { + "name": "interval", + "type": "TypeInt", + "computed": true + }, + "max_retries": { + "name": "max_retries", + "type": "TypeInt", + "computed": true + }, + "monitor_id": { + "name": "monitor_id", + "type": "TypeString", + "computed": true + }, + "port": { + "name": "port", + "type": "TypeInt", + "computed": true + }, + "protocol": { + "name": "protocol", + "type": "TypeString", + "computed": true + }, + "timeout": { + "name": "timeout", + "type": "TypeInt", + "computed": true + }, + "url_path": { + "name": "url_path", + "type": "TypeString", + "computed": true + } + } + }, + { + "name": "datacenter", + "type": "TypeString", + "computed": true + }, + { + "name": "use_system_public_ip_pool", + "type": "TypeBool", + "computed": true } ], "ibm_metrics_router_routes": [ @@ -64570,34 +64556,6 @@ } ], "ibm_network_vlan": [ - { - "name": "router_hostname", - "type": "TypeString", - "optional": true, - "computed": true - }, - { - "name": "virtual_guests", - "type": "TypeList", - "computed": true, - "elem": { - "domain": { - "name": "domain", - "type": "TypeString", - "computed": true - }, - "hostname": { - "name": "hostname", - "type": "TypeString", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeInt", - "computed": true - } - } - }, { "name": "subnets", "type": "TypeList", @@ -64651,42 +64609,52 @@ "type": "TypeInt", "optional": true, "computed": true + }, + { + "name": "router_hostname", + "type": "TypeString", + "optional": true, + "computed": true + }, + { + "name": "virtual_guests", + "type": "TypeList", + "computed": true, + "elem": { + "domain": { + "name": "domain", + "type": "TypeString", + "computed": true + }, + "hostname": { + "name": "hostname", + "type": "TypeString", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeInt", + "computed": true + } + } } ], "ibm_org": [ { - "name": "org", + "name": "name", "type": "TypeString", "description": "Org name, for example myorg@domain", - "optional": true, - "deprecated": "use name instead" + "optional": true }, { - "name": "name", + "name": "org", "type": "TypeString", "description": "Org name, for example myorg@domain", - "optional": true + "optional": true, + "deprecated": "use name instead" } ], "ibm_org_quota": [ - { - "name": "total_reserved_route_ports", - "type": "TypeInt", - "description": "Defines the number of reserved route ports for organization.", - "computed": true - }, - { - "name": "non_basic_services_allowed", - "type": "TypeBool", - "description": "Define non basic services are allowed for organization.", - "computed": true - }, - { - "name": "total_routes", - "type": "TypeInt", - "description": "Defines the total route for organization.", - "computed": true - }, { "name": "memory_limit", "type": "TypeInt", @@ -64699,12 +64667,6 @@ "description": "Defines the total instance memory limit for organization.", "computed": true }, - { - "name": "trial_db_allowed", - "type": "TypeBool", - "description": "Defines trial db are allowed for organization.", - "computed": true - }, { "name": "total_private_domains", "type": "TypeInt", @@ -64718,10 +64680,10 @@ "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "Org quota name, for example qIBM", - "required": true + "name": "total_reserved_route_ports", + "type": "TypeInt", + "description": "Defines the number of reserved route ports for organization.", + "computed": true }, { "name": "total_services", @@ -64729,6 +64691,24 @@ "description": "Defines the total services for organization.", "computed": true }, + { + "name": "non_basic_services_allowed", + "type": "TypeBool", + "description": "Define non basic services are allowed for organization.", + "computed": true + }, + { + "name": "total_routes", + "type": "TypeInt", + "description": "Defines the total route for organization.", + "computed": true + }, + { + "name": "trial_db_allowed", + "type": "TypeBool", + "description": "Defines trial db are allowed for organization.", + "computed": true + }, { "name": "app_instance_limit", "type": "TypeInt", @@ -64740,6 +64720,12 @@ "type": "TypeInt", "description": "Defines the total app task limit for organization.", "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Org quota name, for example qIBM", + "required": true } ], "ibm_pi_catalog_images": [ @@ -64848,16 +64834,25 @@ ], "ibm_pi_cloud_connection": [ { - "name": "port", + "name": "connection_mode", "type": "TypeString", + "description": "Type of service the gateway is attached to", "computed": true }, { - "name": "gre_destination_address", - "type": "TypeString", - "description": "GRE destination IP address", + "name": "speed", + "type": "TypeInt", "computed": true }, + { + "name": "networks", + "type": "TypeSet", + "description": "Set of Networks attached to this cloud connection", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "vpc_enabled", "type": "TypeBool", @@ -64865,38 +64860,30 @@ "computed": true }, { - "name": "ibm_ip_address", - "type": "TypeString", + "name": "classic_enabled", + "type": "TypeBool", + "description": "Enable classic endpoint destination", "computed": true }, { - "name": "speed", - "type": "TypeInt", + "name": "gre_destination_address", + "type": "TypeString", + "description": "GRE destination IP address", "computed": true }, { - "name": "metered", - "type": "TypeBool", - "computed": true + "name": "pi_cloud_instance_id", + "type": "TypeString", + "required": true }, { - "name": "user_ip_address", + "name": "ibm_ip_address", "type": "TypeString", "computed": true }, { - "name": "networks", - "type": "TypeSet", - "description": "Set of Networks attached to this cloud connection", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "classic_enabled", - "type": "TypeBool", - "description": "Enable classic endpoint destination", + "name": "port", + "type": "TypeString", "computed": true }, { @@ -64909,13 +64896,14 @@ } }, { - "name": "pi_cloud_instance_id", + "name": "pi_cloud_connection_name", "type": "TypeString", + "description": "Cloud Connection Name to be used", "required": true }, { - "name": "global_routing", - "type": "TypeBool", + "name": "status", + "type": "TypeString", "computed": true }, { @@ -64925,19 +64913,17 @@ "computed": true }, { - "name": "pi_cloud_connection_name", - "type": "TypeString", - "description": "Cloud Connection Name to be used", - "required": true + "name": "global_routing", + "type": "TypeBool", + "computed": true }, { - "name": "connection_mode", - "type": "TypeString", - "description": "Type of service the gateway is attached to", + "name": "metered", + "type": "TypeBool", "computed": true }, { - "name": "status", + "name": "user_ip_address", "type": "TypeString", "computed": true } @@ -65050,16 +65036,6 @@ } ], "ibm_pi_cloud_instance": [ - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "required": true - }, - { - "name": "enabled", - "type": "TypeBool", - "computed": true - }, { "name": "tenant_id", "type": "TypeString", @@ -65072,15 +65048,12 @@ "computed": true }, { - "name": "capabilities", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "total_instances", + "type": "TypeFloat", + "computed": true }, { - "name": "total_processors_consumed", + "name": "total_memory_consumed", "type": "TypeFloat", "computed": true }, @@ -65094,6 +65067,16 @@ "type": "TypeFloat", "computed": true }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "required": true + }, + { + "name": "enabled", + "type": "TypeBool", + "computed": true + }, { "name": "pvm_instances", "type": "TypeList", @@ -65132,12 +65115,15 @@ } }, { - "name": "total_instances", - "type": "TypeFloat", - "computed": true + "name": "capabilities", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "total_memory_consumed", + "name": "total_processors_consumed", "type": "TypeFloat", "computed": true } @@ -65175,6 +65161,24 @@ } ], "ibm_pi_datacenter": [ + { + "name": "pi_datacenter_location", + "type": "TypeMap", + "description": "Datacenter location", + "computed": true + }, + { + "name": "pi_datacenter_status", + "type": "TypeString", + "description": "Datacenter status", + "computed": true + }, + { + "name": "pi_datacenter_type", + "type": "TypeString", + "description": "Datacenter type", + "computed": true + }, { "name": "pi_datacenter_zone", "type": "TypeString", @@ -65194,24 +65198,6 @@ "type": "TypeString", "description": "Datacenter href", "computed": true - }, - { - "name": "pi_datacenter_location", - "type": "TypeMap", - "description": "Datacenter location", - "computed": true - }, - { - "name": "pi_datacenter_status", - "type": "TypeString", - "description": "Datacenter status", - "computed": true - }, - { - "name": "pi_datacenter_type", - "type": "TypeString", - "description": "Datacenter type", - "computed": true } ], "ibm_pi_datacenters": [ @@ -65257,12 +65243,6 @@ } ], "ibm_pi_dhcp": [ - { - "name": "pi_dhcp_id", - "type": "TypeString", - "description": "The ID of the DHCP Server", - "required": true - }, { "name": "dhcp_id", "type": "TypeString", @@ -65317,6 +65297,12 @@ "name": "pi_cloud_instance_id", "type": "TypeString", "required": true + }, + { + "name": "pi_dhcp_id", + "type": "TypeString", + "description": "The ID of the DHCP Server", + "required": true } ], "ibm_pi_dhcps": [ @@ -65365,6 +65351,11 @@ } ], "ibm_pi_disaster_recovery_location": [ + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "required": true + }, { "name": "location", "type": "TypeString", @@ -65388,11 +65379,6 @@ "computed": true } } - }, - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "required": true } ], "ibm_pi_disaster_recovery_locations": [ @@ -65439,7 +65425,7 @@ "computed": true }, { - "name": "operatingsystem", + "name": "hypervisor", "type": "TypeString", "computed": true }, @@ -65459,18 +65445,13 @@ "description": "Imagename Name to be used for pvminstances", "required": true }, - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "required": true - }, { "name": "state", "type": "TypeString", "computed": true }, { - "name": "hypervisor", + "name": "operatingsystem", "type": "TypeString", "computed": true }, @@ -65478,9 +65459,19 @@ "name": "storage_pool", "type": "TypeString", "computed": true + }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "required": true } ], "ibm_pi_images": [ + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "required": true + }, { "name": "image_info", "type": "TypeList", @@ -65522,27 +65513,12 @@ "computed": true } } - }, - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "required": true } ], "ibm_pi_instance": [ { - "name": "minmem", - "type": "TypeFloat", - "computed": true - }, - { - "name": "maxmem", - "type": "TypeFloat", - "computed": true - }, - { - "name": "pin_policy", - "type": "TypeString", + "name": "max_virtual_cores", + "type": "TypeInt", "computed": true }, { @@ -65551,25 +65527,17 @@ "computed": true }, { - "name": "storage_pool", + "name": "pi_cloud_instance_id", "type": "TypeString", - "computed": true + "required": true }, { - "name": "placement_group_id", - "type": "TypeString", + "name": "processors", + "type": "TypeFloat", "computed": true }, { - "name": "volumes", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "networks", + "name": "addresses", "type": "TypeList", "computed": true, "elem": { @@ -65603,11 +65571,12 @@ "type": "TypeString", "computed": true } - } + }, + "deprecated": "This field is deprecated, use networks instead" }, { - "name": "minproc", - "type": "TypeFloat", + "name": "status", + "type": "TypeString", "computed": true }, { @@ -65616,38 +65585,28 @@ "computed": true }, { - "name": "max_virtual_cores", + "name": "virtual_cores_assigned", "type": "TypeInt", "computed": true }, { - "name": "storage_type", + "name": "storage_pool", "type": "TypeString", "computed": true }, { - "name": "storage_pool_affinity", - "type": "TypeBool", + "name": "license_repository_capacity", + "type": "TypeInt", "computed": true }, { - "name": "shared_processor_pool_id", + "name": "deployment_type", "type": "TypeString", "computed": true }, { - "name": "pi_cloud_instance_id", + "name": "shared_processor_pool", "type": "TypeString", - "required": true - }, - { - "name": "memory", - "type": "TypeFloat", - "computed": true - }, - { - "name": "virtual_cores_assigned", - "type": "TypeInt", "computed": true }, { @@ -65657,7 +65616,7 @@ "required": true }, { - "name": "addresses", + "name": "networks", "type": "TypeList", "computed": true, "elem": { @@ -65691,8 +65650,7 @@ "type": "TypeString", "computed": true } - }, - "deprecated": "This field is deprecated, use networks instead" + } }, { "name": "proctype", @@ -65700,39 +65658,72 @@ "computed": true }, { - "name": "status", + "name": "minproc", + "type": "TypeFloat", + "computed": true + }, + { + "name": "pin_policy", "type": "TypeString", "computed": true }, { - "name": "license_repository_capacity", - "type": "TypeInt", + "name": "volumes", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "memory", + "type": "TypeFloat", "computed": true }, { - "name": "deployment_type", + "name": "maxmem", + "type": "TypeFloat", + "computed": true + }, + { + "name": "storage_pool_affinity", + "type": "TypeBool", + "computed": true + }, + { + "name": "placement_group_id", "type": "TypeString", "computed": true }, { - "name": "shared_processor_pool", + "name": "health_status", "type": "TypeString", "computed": true }, { - "name": "processors", + "name": "minmem", "type": "TypeFloat", "computed": true }, { - "name": "health_status", + "name": "storage_type", + "type": "TypeString", + "computed": true + }, + { + "name": "shared_processor_pool_id", "type": "TypeString", "computed": true } ], "ibm_pi_instance_ip": [ { - "name": "external_ip", + "name": "ipoctet", + "type": "TypeString", + "computed": true + }, + { + "name": "type", "type": "TypeString", "computed": true }, @@ -65743,37 +65734,32 @@ "required": true }, { - "name": "pi_network_name", + "name": "pi_cloud_instance_id", "type": "TypeString", "required": true }, { - "name": "network_id", + "name": "pi_network_name", "type": "TypeString", - "computed": true + "required": true }, { - "name": "macaddress", + "name": "ip", "type": "TypeString", "computed": true }, { - "name": "type", + "name": "macaddress", "type": "TypeString", "computed": true }, { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "required": true - }, - { - "name": "ip", + "name": "network_id", "type": "TypeString", "computed": true }, { - "name": "ipoctet", + "name": "external_ip", "type": "TypeString", "computed": true } @@ -66054,6 +66040,13 @@ } ], "ibm_pi_key": [ + { + "name": "sshkey", + "type": "TypeString", + "secure": true, + "computed": true, + "deprecated": "This field is deprecated, use ssh_key instead" + }, { "name": "pi_key_name", "type": "TypeString", @@ -66077,13 +66070,6 @@ "description": "SSH RSA key", "secure": true, "computed": true - }, - { - "name": "sshkey", - "type": "TypeString", - "secure": true, - "computed": true, - "deprecated": "This field is deprecated, use ssh_key instead" } ], "ibm_pi_keys": [ @@ -66122,35 +66108,33 @@ ], "ibm_pi_network": [ { - "name": "used_ip_percent", - "type": "TypeFloat", + "name": "vlan_id", + "type": "TypeInt", "computed": true }, { - "name": "name", - "type": "TypeString", - "computed": true, - "deprecated": "This value is deprecated in favor ofpi_network_name" + "name": "available_ip_count", + "type": "TypeFloat", + "computed": true }, { - "name": "jumbo", - "type": "TypeBool", + "name": "used_ip_percent", + "type": "TypeFloat", "computed": true }, { - "name": "pi_network_name", + "name": "type", "type": "TypeString", - "description": "Network Name to be used for pvminstances", - "required": true + "computed": true }, { - "name": "type", + "name": "pi_cloud_instance_id", "type": "TypeString", - "computed": true + "required": true }, { - "name": "vlan_id", - "type": "TypeInt", + "name": "cidr", + "type": "TypeString", "computed": true }, { @@ -66164,19 +66148,10 @@ "computed": true }, { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "required": true - }, - { - "name": "cidr", + "name": "name", "type": "TypeString", - "computed": true - }, - { - "name": "available_ip_count", - "type": "TypeFloat", - "computed": true + "computed": true, + "deprecated": "This value is deprecated in favor ofpi_network_name" }, { "name": "dns", @@ -66185,9 +66160,31 @@ "elem": { "type": "TypeString" } + }, + { + "name": "jumbo", + "type": "TypeBool", + "computed": true + }, + { + "name": "pi_network_name", + "type": "TypeString", + "description": "Network Name to be used for pvminstances", + "required": true } ], "ibm_pi_network_port": [ + { + "name": "pi_network_name", + "type": "TypeString", + "description": "Network Name to be used for pvminstances", + "required": true + }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "required": true + }, { "name": "network_ports", "type": "TypeList", @@ -66230,17 +66227,6 @@ "computed": true } } - }, - { - "name": "pi_network_name", - "type": "TypeString", - "description": "Network Name to be used for pvminstances", - "required": true - }, - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "required": true } ], "ibm_pi_placement_group": [ @@ -66307,11 +66293,6 @@ } ], "ibm_pi_public_network": [ - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "required": true - }, { "name": "name", "type": "TypeString", @@ -66326,6 +66307,11 @@ "name": "vlan_id", "type": "TypeInt", "computed": true + }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "required": true } ], "ibm_pi_pvm_snapshots": [ @@ -66393,12 +66379,6 @@ } ], "ibm_pi_sap_profile": [ - { - "name": "pi_sap_profile_id", - "type": "TypeString", - "description": "SAP Profile ID", - "required": true - }, { "name": "certified", "type": "TypeBool", @@ -66427,6 +66407,12 @@ "name": "pi_cloud_instance_id", "type": "TypeString", "required": true + }, + { + "name": "pi_sap_profile_id", + "type": "TypeString", + "description": "SAP Profile ID", + "required": true } ], "ibm_pi_sap_profiles": [ @@ -66475,21 +66461,20 @@ ], "ibm_pi_shared_processor_pool": [ { - "name": "pi_cloud_instance_id", + "name": "pi_shared_processor_pool_id", "type": "TypeString", - "description": "PI cloud instance ID", "required": true }, { - "name": "allocated_cores", + "name": "available_cores", "type": "TypeFloat", - "description": "Shared processor pool allocated cores", + "description": "Shared processor pool available cores", "computed": true }, { - "name": "status", - "type": "TypeString", - "description": "The status of the shared processor pool", + "name": "allocated_cores", + "type": "TypeFloat", + "description": "Shared processor pool allocated cores", "computed": true }, { @@ -66563,8 +66548,9 @@ } }, { - "name": "pi_shared_processor_pool_id", + "name": "pi_cloud_instance_id", "type": "TypeString", + "description": "PI cloud instance ID", "required": true }, { @@ -66586,19 +66572,13 @@ "computed": true }, { - "name": "available_cores", - "type": "TypeFloat", - "description": "Shared processor pool available cores", + "name": "status", + "type": "TypeString", + "description": "The status of the shared processor pool", "computed": true } ], "ibm_pi_shared_processor_pools": [ - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "description": "PI cloud instance ID", - "required": true - }, { "name": "shared_processor_pools", "type": "TypeList", @@ -66645,17 +66625,15 @@ "computed": true } } + }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "description": "PI cloud instance ID", + "required": true } ], "ibm_pi_spp_placement_group": [ - { - "name": "members", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "pi_spp_placement_group_id", "type": "TypeString", @@ -66675,6 +66653,14 @@ "name": "pi_cloud_instance_id", "type": "TypeString", "required": true + }, + { + "name": "members", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } } ], "ibm_pi_spp_placement_groups": [ @@ -66753,17 +66739,6 @@ } ], "ibm_pi_storage_pools_capacity": [ - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "required": true - }, - { - "name": "maximum_storage_allocation", - "type": "TypeMap", - "description": "Maximum storage allocation", - "computed": true - }, { "name": "storage_pools_capacity", "type": "TypeList", @@ -66801,15 +66776,20 @@ "computed": true } } - } - ], - "ibm_pi_storage_type_capacity": [ + }, { - "name": "pi_storage_type", + "name": "pi_cloud_instance_id", "type": "TypeString", - "description": "Storage type name", "required": true }, + { + "name": "maximum_storage_allocation", + "type": "TypeMap", + "description": "Maximum storage allocation", + "computed": true + } + ], + "ibm_pi_storage_type_capacity": [ { "name": "maximum_storage_allocation", "type": "TypeMap", @@ -66852,6 +66832,12 @@ "name": "pi_cloud_instance_id", "type": "TypeString", "required": true + }, + { + "name": "pi_storage_type", + "type": "TypeString", + "description": "Storage type name", + "required": true } ], "ibm_pi_storage_types_capacity": [ @@ -67009,6 +66995,11 @@ } ], "ibm_pi_tenant": [ + { + "name": "enabled", + "type": "TypeBool", + "computed": true + }, { "name": "tenant_name", "type": "TypeString", @@ -67040,14 +67031,15 @@ "name": "creation_date", "type": "TypeString", "computed": true - }, - { - "name": "enabled", - "type": "TypeBool", - "computed": true } ], "ibm_pi_volume": [ + { + "name": "group_id", + "type": "TypeString", + "description": "Volume Group ID", + "computed": true + }, { "name": "mirroring_state", "type": "TypeString", @@ -67055,21 +67047,27 @@ "computed": true }, { - "name": "master_volume_name", + "name": "primary_role", "type": "TypeString", - "description": "Indicates master volume name", + "description": "Indicates whether master/aux volume is playing the primary role", "computed": true }, { - "name": "pi_cloud_instance_id", + "name": "auxiliary_volume_name", "type": "TypeString", - "required": true + "description": "Indicates auxiliary volume name", + "computed": true }, { - "name": "disk_type", + "name": "state", "type": "TypeString", "computed": true }, + { + "name": "bootable", + "type": "TypeBool", + "computed": true + }, { "name": "volume_pool", "type": "TypeString", @@ -67082,15 +67080,15 @@ "computed": true }, { - "name": "consistency_group_name", - "type": "TypeString", - "description": "Consistency Group Name if volume is a part of volume group", + "name": "auxiliary", + "type": "TypeBool", + "description": "true if volume is auxiliary otherwise false", "computed": true }, { - "name": "group_id", + "name": "consistency_group_name", "type": "TypeString", - "description": "Volume Group ID", + "description": "Consistency Group Name if volume is a part of volume group", "computed": true }, { @@ -67099,8 +67097,8 @@ "computed": true }, { - "name": "bootable", - "type": "TypeBool", + "name": "disk_type", + "type": "TypeString", "computed": true }, { @@ -67110,58 +67108,40 @@ "computed": true }, { - "name": "state", + "name": "replication_type", "type": "TypeString", + "description": "Replication type(metro,global)", "computed": true }, { - "name": "shareable", - "type": "TypeBool", - "computed": true - }, - { - "name": "wwn", + "name": "master_volume_name", "type": "TypeString", + "description": "Indicates master volume name", "computed": true }, { - "name": "auxiliary", - "type": "TypeBool", - "description": "true if volume is auxiliary otherwise false", - "computed": true - }, - { - "name": "pi_volume_name", + "name": "pi_cloud_instance_id", "type": "TypeString", - "description": "Volume Name to be used for pvminstances", "required": true }, { - "name": "replication_type", + "name": "wwn", "type": "TypeString", - "description": "Replication type(metro,global)", "computed": true }, { - "name": "primary_role", + "name": "pi_volume_name", "type": "TypeString", - "description": "Indicates whether master/aux volume is playing the primary role", - "computed": true + "description": "Volume Name to be used for pvminstances", + "required": true }, { - "name": "auxiliary_volume_name", - "type": "TypeString", - "description": "Indicates auxiliary volume name", + "name": "shareable", + "type": "TypeBool", "computed": true } ], "ibm_pi_volume_flash_copy_mappings": [ - { - "name": "pi_volume_id", - "type": "TypeString", - "description": "Volume ID", - "required": true - }, { "name": "pi_cloud_instance_id", "type": "TypeString", @@ -67215,20 +67195,15 @@ "computed": true } } - } - ], - "ibm_pi_volume_group": [ - { - "name": "volume_group_name", - "type": "TypeString", - "description": "Volume group name", - "computed": true }, { - "name": "status", + "name": "pi_volume_id", "type": "TypeString", - "computed": true - }, + "description": "Volume ID", + "required": true + } + ], + "ibm_pi_volume_group": [ { "name": "replication_status", "type": "TypeString", @@ -67274,9 +67249,36 @@ "name": "pi_cloud_instance_id", "type": "TypeString", "required": true + }, + { + "name": "volume_group_name", + "type": "TypeString", + "description": "Volume group name", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "computed": true } ], "ibm_pi_volume_group_details": [ + { + "name": "volume_group_name", + "type": "TypeString", + "description": "Volume group name", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "computed": true + }, + { + "name": "replication_status", + "type": "TypeString", + "computed": true + }, { "name": "consistency_group_name", "type": "TypeString", @@ -67325,22 +67327,6 @@ "name": "pi_cloud_instance_id", "type": "TypeString", "required": true - }, - { - "name": "volume_group_name", - "type": "TypeString", - "description": "Volume group name", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "computed": true - }, - { - "name": "replication_status", - "type": "TypeString", - "computed": true } ], "ibm_pi_volume_group_remote_copy_relationships": [ @@ -67450,9 +67436,16 @@ ], "ibm_pi_volume_group_storage_details": [ { - "name": "pi_cloud_instance_id", + "name": "cycle_period_seconds", + "type": "TypeInt", + "description": "Indicates the minimum period in seconds between multiple cycles", + "computed": true + }, + { + "name": "cycling_mode", "type": "TypeString", - "required": true + "description": "Indicates the type of cycling mode used", + "computed": true }, { "name": "replication_type", @@ -67461,9 +67454,26 @@ "computed": true }, { - "name": "synchronized", + "name": "consistency_group_name", "type": "TypeString", - "description": "Indicates whether the relationship is synchronized", + "description": "The name of consistency group at storage controller level", + "computed": true + }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "required": true + }, + { + "name": "number_of_volumes", + "type": "TypeInt", + "description": "Number of volumes in volume group", + "computed": true + }, + { + "name": "primary_role", + "type": "TypeString", + "description": "Indicates whether master/aux volume is playing the primary role", "computed": true }, { @@ -67482,40 +67492,16 @@ "computed": true }, { - "name": "pi_volume_group_id", - "type": "TypeString", - "description": "Volume group ID", - "required": true - }, - { - "name": "consistency_group_name", - "type": "TypeString", - "description": "The name of consistency group at storage controller level", - "computed": true - }, - { - "name": "cycle_period_seconds", - "type": "TypeInt", - "description": "Indicates the minimum period in seconds between multiple cycles", - "computed": true - }, - { - "name": "cycling_mode", + "name": "synchronized", "type": "TypeString", - "description": "Indicates the type of cycling mode used", - "computed": true - }, - { - "name": "number_of_volumes", - "type": "TypeInt", - "description": "Number of volumes in volume group", + "description": "Indicates whether the relationship is synchronized", "computed": true }, { - "name": "primary_role", + "name": "pi_volume_group_id", "type": "TypeString", - "description": "Indicates whether master/aux volume is playing the primary role", - "computed": true + "description": "Volume group ID", + "required": true } ], "ibm_pi_volume_groups": [ @@ -67655,6 +67641,27 @@ } ], "ibm_pi_volume_onboarding": [ + { + "name": "input_volumes", + "type": "TypeList", + "description": "List of volumes requested to be onboarded", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "progress", + "type": "TypeInt", + "description": "Indicates the progress of volume onboarding operation", + "computed": true + }, + { + "name": "create_time", + "type": "TypeString", + "description": "Indicates the create time of volume onboarding operation", + "computed": true + }, { "name": "description", "type": "TypeString", @@ -67662,9 +67669,9 @@ "computed": true }, { - "name": "input_volumes", + "name": "results_onboarded_volumes", "type": "TypeList", - "description": "List of volumes requested to be onboarded", + "description": "List of volumes which are onboarded successfully", "computed": true, "elem": { "type": "TypeString" @@ -67692,6 +67699,12 @@ } } }, + { + "name": "status", + "type": "TypeString", + "description": "Indicates the status of volume onboarding operation", + "computed": true + }, { "name": "pi_volume_onboarding_id", "type": "TypeString", @@ -67702,33 +67715,6 @@ "name": "pi_cloud_instance_id", "type": "TypeString", "required": true - }, - { - "name": "create_time", - "type": "TypeString", - "description": "Indicates the create time of volume onboarding operation", - "computed": true - }, - { - "name": "progress", - "type": "TypeInt", - "description": "Indicates the progress of volume onboarding operation", - "computed": true - }, - { - "name": "results_onboarded_volumes", - "type": "TypeList", - "description": "List of volumes which are onboarded successfully", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "status", - "type": "TypeString", - "description": "Indicates the status of volume onboarding operation", - "computed": true } ], "ibm_pi_volume_onboardings": [ @@ -67775,22 +67761,22 @@ ], "ibm_pi_volume_remote_copy_relationship": [ { - "name": "name", + "name": "pi_volume_id", "type": "TypeString", - "description": "Remote copy relationship name", - "computed": true + "description": "Volume name", + "required": true }, { - "name": "state", + "name": "copy_type", "type": "TypeString", - "description": "Indicates the relationship state", + "description": "Indicates the copy type.", "computed": true }, { - "name": "pi_volume_id", + "name": "cycling_mode", "type": "TypeString", - "description": "Volume name", - "required": true + "description": "Indicates the type of cycling mode used.", + "computed": true }, { "name": "pi_cloud_instance_id", @@ -67798,27 +67784,21 @@ "required": true }, { - "name": "cycle_period_seconds", - "type": "TypeInt", - "description": "Indicates the minimum period in seconds between multiple cycles", - "computed": true - }, - { - "name": "synchronized", + "name": "name", "type": "TypeString", - "description": "Indicates whether the relationship is synchronized", + "description": "Remote copy relationship name", "computed": true }, { - "name": "auxiliary_changed_volume_name", - "type": "TypeString", - "description": "Name of the volume that is acting as the auxiliary change volume for the relationship", + "name": "cycle_period_seconds", + "type": "TypeInt", + "description": "Indicates the minimum period in seconds between multiple cycles", "computed": true }, { - "name": "copy_type", + "name": "master_changed_volume_name", "type": "TypeString", - "description": "Indicates the copy type.", + "description": "Name of the volume that is acting as the master change volume for the relationship", "computed": true }, { @@ -67834,33 +67814,33 @@ "computed": true }, { - "name": "auxiliary_volume_name", + "name": "synchronized", "type": "TypeString", - "description": "Auxiliary volume name at storage host level", + "description": "Indicates whether the relationship is synchronized", "computed": true }, { - "name": "consistency_group_name", + "name": "auxiliary_changed_volume_name", "type": "TypeString", - "description": "Consistency Group Name if volume is a part of volume group", + "description": "Name of the volume that is acting as the auxiliary change volume for the relationship", "computed": true }, { - "name": "cycling_mode", + "name": "auxiliary_volume_name", "type": "TypeString", - "description": "Indicates the type of cycling mode used.", + "description": "Auxiliary volume name at storage host level", "computed": true }, { - "name": "freeze_time", + "name": "consistency_group_name", "type": "TypeString", - "description": "Freeze time of remote copy relationship", + "description": "Consistency Group Name if volume is a part of volume group", "computed": true }, { - "name": "master_changed_volume_name", + "name": "freeze_time", "type": "TypeString", - "description": "Name of the volume that is acting as the master change volume for the relationship", + "description": "Freeze time of remote copy relationship", "computed": true }, { @@ -67874,26 +67854,15 @@ "type": "TypeString", "description": "Remote copy relationship ID", "computed": true - } - ], - "ibm_pi_workspace": [ - { - "name": "pi_workspace_status", - "type": "TypeString", - "description": "Workspace status", - "computed": true }, { - "name": "pi_workspace_type", + "name": "state", "type": "TypeString", - "description": "Workspace type", + "description": "Indicates the relationship state", "computed": true - }, - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "required": true - }, + } + ], + "ibm_pi_workspace": [ { "name": "pi_workspace_capabilities", "type": "TypeMap", @@ -67920,6 +67889,23 @@ "type": "TypeString", "description": "Workspace name", "computed": true + }, + { + "name": "pi_workspace_status", + "type": "TypeString", + "description": "Workspace status", + "computed": true + }, + { + "name": "pi_workspace_type", + "type": "TypeString", + "description": "Workspace type", + "computed": true + }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "required": true } ], "ibm_pi_workspaces": [ @@ -68236,33 +68222,6 @@ } ], "ibm_resource_group": [ - { - "name": "created_at", - "type": "TypeString", - "description": "The date when the resource group was initially created.", - "computed": true - }, - { - "name": "payment_methods_url", - "type": "TypeString", - "description": "The URL to access the payment methods details that associated with the resource group.", - "computed": true - }, - { - "name": "quota_id", - "type": "TypeString", - "description": "An alpha-numeric value identifying the quota ID associated with the resource group.", - "computed": true - }, - { - "name": "resource_linkages", - "type": "TypeSet", - "description": "An array of the resources that linked to the resource group", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "account_id", "type": "TypeString", @@ -68287,12 +68246,6 @@ "optional": true, "computed": true }, - { - "name": "state", - "type": "TypeString", - "description": "State of the resource group", - "computed": true - }, { "name": "crn", "type": "TypeString", @@ -68301,9 +68254,9 @@ "computed": true }, { - "name": "updated_at", + "name": "created_at", "type": "TypeString", - "description": "The date when the resource group was last updated.", + "description": "The date when the resource group was initially created.", "computed": true }, { @@ -68317,30 +68270,48 @@ "type": "TypeString", "description": "The URL to access the quota details that associated with the resource group.", "computed": true + }, + { + "name": "state", + "type": "TypeString", + "description": "State of the resource group", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The date when the resource group was last updated.", + "computed": true + }, + { + "name": "payment_methods_url", + "type": "TypeString", + "description": "The URL to access the payment methods details that associated with the resource group.", + "computed": true + }, + { + "name": "quota_id", + "type": "TypeString", + "description": "An alpha-numeric value identifying the quota ID associated with the resource group.", + "computed": true + }, + { + "name": "resource_linkages", + "type": "TypeSet", + "description": "An array of the resources that linked to the resource group", + "computed": true, + "elem": { + "type": "TypeString" + } } ], "ibm_resource_instance": [ { - "name": "name", - "type": "TypeString", - "description": "Resource instance name for example, myobjectstorage", - "required": true - }, - { - "name": "resource_group_id", + "name": "location", "type": "TypeString", - "description": "The id of the resource group in which the instance is present", - "cloud_data_type": "resource_group", + "description": "The location or the environment in which instance exists", + "cloud_data_type": "region", "optional": true, - "computed": true, - "cloud_data_range": [ - "resolved_to:id" - ] - }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", "computed": true }, { @@ -68360,18 +68331,15 @@ "computed": true }, { - "name": "extensions", - "type": "TypeMap", - "description": "The extended metadata as a map associated with the resource instance.", - "computed": true - }, - { - "name": "location", + "name": "resource_group_id", "type": "TypeString", - "description": "The location or the environment in which instance exists", - "cloud_data_type": "region", + "description": "The id of the resource group in which the instance is present", + "cloud_data_type": "resource_group", "optional": true, - "computed": true + "computed": true, + "cloud_data_range": [ + "resolved_to:id" + ] }, { "name": "service", @@ -68380,6 +68348,12 @@ "optional": true, "computed": true }, + { + "name": "plan", + "type": "TypeString", + "description": "The plan type of the instance", + "computed": true + }, { "name": "status", "type": "TypeString", @@ -68387,34 +68361,40 @@ "computed": true }, { - "name": "crn", + "name": "resource_crn", "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", + "description": "The crn of the resource", "computed": true }, { - "name": "guid", + "name": "resource_status", "type": "TypeString", - "description": "Guid of resource instance", + "description": "The status of the resource", "computed": true }, { - "name": "resource_crn", + "name": "resource_group_name", "type": "TypeString", - "description": "The crn of the resource", + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "plan", + "name": "name", "type": "TypeString", - "description": "The plan type of the instance", + "description": "Resource instance name for example, myobjectstorage", + "required": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "CRN of resource instance", + "cloud_data_type": "crn", "computed": true }, { - "name": "resource_status", + "name": "guid", "type": "TypeString", - "description": "The status of the resource", + "description": "Guid of resource instance", "computed": true }, { @@ -68422,6 +68402,12 @@ "type": "TypeString", "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", "computed": true + }, + { + "name": "extensions", + "type": "TypeMap", + "description": "The extended metadata as a map associated with the resource instance.", + "computed": true } ], "ibm_resource_key": [ @@ -68433,29 +68419,38 @@ "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The name of the resource key", - "required": true + "name": "most_recent", + "type": "TypeBool", + "description": "If true and multiple entries are found, the most recently created resource key is used. If false, an error is returned", + "default_value": false, + "optional": true }, { - "name": "resource_alias_id", + "name": "status", "type": "TypeString", - "description": "The id of the resource alias", - "optional": true + "description": "Status of resource key", + "computed": true }, { - "name": "role", + "name": "credentials_json", "type": "TypeString", - "description": "User role", + "description": "Credentials asociated with the key in json string", + "secure": true, "computed": true }, { - "name": "status", + "name": "crn", "type": "TypeString", - "description": "Status of resource key", + "description": "crn of resource key", + "cloud_data_type": "crn", "computed": true }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the resource key", + "required": true + }, { "name": "resource_instance_id", "type": "TypeString", @@ -68467,88 +68462,69 @@ ] }, { - "name": "credentials_json", + "name": "resource_alias_id", "type": "TypeString", - "description": "Credentials asociated with the key in json string", - "secure": true, - "computed": true - }, - { - "name": "most_recent", - "type": "TypeBool", - "description": "If true and multiple entries are found, the most recently created resource key is used. If false, an error is returned", - "default_value": false, + "description": "The id of the resource alias", "optional": true }, { - "name": "crn", + "name": "role", "type": "TypeString", - "description": "crn of resource key", - "cloud_data_type": "crn", + "description": "User role", "computed": true } ], "ibm_resource_quota": [ { - "name": "name", + "name": "max_app_instance_memory", "type": "TypeString", - "description": "Resource quota name, for example Trial Quota", - "required": true + "description": "Defines the total memory of app instance.", + "computed": true }, { - "name": "type", + "name": "total_app_memory", "type": "TypeString", - "description": "Type of the quota.", + "description": "Defines the total memory for app.", "computed": true }, { - "name": "max_apps", + "name": "max_service_instances", "type": "TypeInt", - "description": "Defines the total app limit.", + "description": "Defines the total service instances limit.", "computed": true }, { - "name": "max_instances_per_app", + "name": "vsi_limit", "type": "TypeInt", - "description": "Defines the total instances limit per app.", + "description": "Defines the VSI limit.", "computed": true }, { - "name": "max_app_instance_memory", + "name": "name", "type": "TypeString", - "description": "Defines the total memory of app instance.", - "computed": true + "description": "Resource quota name, for example Trial Quota", + "required": true }, { - "name": "total_app_memory", + "name": "type", "type": "TypeString", - "description": "Defines the total memory for app.", + "description": "Type of the quota.", "computed": true }, { - "name": "max_service_instances", + "name": "max_apps", "type": "TypeInt", - "description": "Defines the total service instances limit.", + "description": "Defines the total app limit.", "computed": true }, { - "name": "vsi_limit", + "name": "max_instances_per_app", "type": "TypeInt", - "description": "Defines the VSI limit.", + "description": "Defines the total instances limit per app.", "computed": true } ], "ibm_resource_tag": [ - { - "name": "tags", - "type": "TypeSet", - "description": "List of tags associated with resource instance", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "resource_type", "type": "TypeString", @@ -68567,9 +68543,31 @@ "type": "TypeString", "description": "CRN of the resource on which the tags should be attached", "optional": true + }, + { + "name": "tags", + "type": "TypeSet", + "description": "List of tags associated with resource instance", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } } ], "ibm_satellite_attach_host_script": [ + { + "name": "host_script", + "type": "TypeString", + "description": "Attach host script content", + "computed": true + }, + { + "name": "custom_script", + "type": "TypeString", + "description": "The custom script that has to be appended to generated host script file", + "optional": true + }, { "name": "description", "type": "TypeString", @@ -68577,11 +68575,19 @@ "computed": true }, { - "name": "coreos_host", - "type": "TypeBool", - "description": "If true, returns a CoreOS ignition file for the host. Otherwise, returns a RHEL attach script", + "name": "host_provider", + "type": "TypeString", "optional": true }, + { + "name": "labels", + "type": "TypeSet", + "description": "List of labels for the attach host", + "optional": true, + "elem": { + "type": "TypeString" + } + }, { "name": "script_dir", "type": "TypeString", @@ -68595,18 +68601,6 @@ "description": "The absolute path to the generated host script file", "computed": true }, - { - "name": "host_script", - "type": "TypeString", - "description": "Attach host script content", - "computed": true - }, - { - "name": "custom_script", - "type": "TypeString", - "description": "The custom script that has to be appended to generated host script file", - "optional": true - }, { "name": "location", "type": "TypeString", @@ -68615,29 +68609,29 @@ "required": true }, { - "name": "labels", - "type": "TypeSet", - "description": "List of labels for the attach host", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "host_provider", - "type": "TypeString", + "name": "coreos_host", + "type": "TypeBool", + "description": "If true, returns a CoreOS ignition file for the host. Otherwise, returns a RHEL attach script", "optional": true } ], "ibm_satellite_cluster": [ { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "private_service_endpoint", + "type": "TypeBool", + "computed": true + }, + { + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true + }, + { + "name": "infrastructure_topology", + "type": "TypeString", + "description": "String value for single node cluster option.", + "computed": true }, { "name": "name", @@ -68646,47 +68640,54 @@ "required": true }, { - "name": "location", + "name": "state", "type": "TypeString", - "description": "Name or id of the location", - "cloud_data_type": "region", + "description": "The lifecycle state of the cluster", "computed": true }, { - "name": "status", + "name": "kube_version", "type": "TypeString", - "description": "The status of the cluster", + "description": "Kubernetes version", "computed": true }, { - "name": "worker_count", - "type": "TypeInt", - "description": "Number of workers", + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "optional": true, "computed": true }, { - "name": "workers", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "server_url", + "type": "TypeString", + "description": "The server URL", + "computed": true }, { - "name": "ingress_secret", + "name": "public_service_endpoint_url", "type": "TypeString", - "secure": true, "computed": true }, { - "name": "public_service_endpoint", - "type": "TypeBool", + "name": "private_service_endpoint_url", + "type": "TypeString", "computed": true }, { - "name": "infrastructure_topology", + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "status", "type": "TypeString", - "description": "String value for single node cluster option.", + "description": "The status of the cluster", "computed": true }, { @@ -68694,6 +68695,12 @@ "type": "TypeString", "computed": true }, + { + "name": "worker_count", + "type": "TypeInt", + "description": "Number of workers", + "computed": true + }, { "name": "worker_pools", "type": "TypeList", @@ -68762,33 +68769,31 @@ } }, { - "name": "resource_group_id", + "name": "crn", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "optional": true, + "description": "CRN of resource instance", + "cloud_data_type": "crn", "computed": true }, { - "name": "private_service_endpoint", + "name": "public_service_endpoint", "type": "TypeBool", "computed": true }, { - "name": "public_service_endpoint_url", - "type": "TypeString", - "computed": true - }, - { - "name": "private_service_endpoint_url", + "name": "location", "type": "TypeString", + "description": "Name or id of the location", + "cloud_data_type": "region", "computed": true }, { - "name": "state", - "type": "TypeString", - "description": "The lifecycle state of the cluster", - "computed": true + "name": "workers", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "ingress_hostname", @@ -68796,36 +68801,19 @@ "computed": true }, { - "name": "crn", - "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "server_url", - "type": "TypeString", - "description": "The server URL", - "computed": true - }, - { - "name": "kube_version", - "type": "TypeString", - "description": "Kubernetes version", - "computed": true - }, - { - "name": "resource_group_name", + "name": "ingress_secret", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "secure": true, "computed": true } ], "ibm_satellite_cluster_worker_pool": [ { - "name": "isolation", + "name": "resource_group_id", "type": "TypeString", - "description": "Isolation of the worker node", + "description": "ID of the resource group", + "cloud_data_type": "resource_group", + "optional": true, "computed": true }, { @@ -68834,12 +68822,6 @@ "description": "Enable auto scalling for worker pool", "computed": true }, - { - "name": "name", - "type": "TypeString", - "description": "worker pool name", - "required": true - }, { "name": "state", "type": "TypeString", @@ -68863,6 +68845,15 @@ } } }, + { + "name": "host_labels", + "type": "TypeMap", + "description": "Host labels on the workers", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "worker_pool_labels", "type": "TypeMap", @@ -68873,10 +68864,16 @@ } }, { - "name": "resource_group_id", + "name": "operating_system", "type": "TypeString", - "description": "ID of the resource group", - "cloud_data_type": "resource_group", + "description": "The operating system of the hosts in the worker pool", + "computed": true + }, + { + "name": "region", + "type": "TypeString", + "description": "Name of the region", + "cloud_data_type": "region", "optional": true, "computed": true }, @@ -68887,48 +68884,31 @@ "computed": true }, { - "name": "cluster", - "type": "TypeString", - "description": "Cluster name", - "required": true - }, - { - "name": "flavor", + "name": "isolation", "type": "TypeString", - "description": "The flavor of the satellite worker node", + "description": "Isolation of the worker node", "computed": true }, { - "name": "host_labels", - "type": "TypeMap", - "description": "Host labels on the workers", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "name", + "type": "TypeString", + "description": "worker pool name", + "required": true }, { - "name": "operating_system", + "name": "cluster", "type": "TypeString", - "description": "The operating system of the hosts in the worker pool", - "computed": true + "description": "Cluster name", + "required": true }, { - "name": "region", + "name": "flavor", "type": "TypeString", - "description": "Name of the region", - "cloud_data_type": "region", - "optional": true, + "description": "The flavor of the satellite worker node", "computed": true } ], "ibm_satellite_cluster_worker_pool_zone_attachment": [ - { - "name": "worker_pool", - "type": "TypeString", - "description": "worker pool name", - "required": true - }, { "name": "zone", "type": "TypeString", @@ -68968,94 +68948,15 @@ "type": "TypeString", "description": "Name or id of the cluster", "required": true - } - ], - "ibm_satellite_endpoint": [ - { - "name": "connection_type", - "type": "TypeString", - "description": "The type of the endpoint.", - "computed": true - }, - { - "name": "server_host", - "type": "TypeString", - "description": "The host name or IP address of the server endpoint. For 'http-tunnel' protocol, server_host can start with '*.' , which means a wildcard to it's sub domains. Such as '*.example.com' can accept request to 'api.example.com' and 'www.example.com'.", - "computed": true - }, - { - "name": "sni", - "type": "TypeString", - "description": "The server name indicator (SNI) which used to connect to the server endpoint. Only useful if server side requires SNI.", - "computed": true - }, - { - "name": "server_protocol", - "type": "TypeString", - "description": "The protocol in the server application side. This parameter will change to default value if it is omitted even when using PATCH API. If client_protocol is 'udp', server_protocol must be 'udp'. If client_protocol is 'tcp'/'http', server_protocol could be 'tcp'/'tls' and default to 'tcp'. If client_protocol is 'tls'/'https', server_protocol could be 'tcp'/'tls' and default to 'tls'. If client_protocol is 'http-tunnel', server_protocol must be 'tcp'.", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "Whether the Endpoint is active or not.", - "computed": true - }, - { - "name": "client_protocol", - "type": "TypeString", - "description": "The protocol in the client application side.", - "computed": true - }, - { - "name": "client_mutual_auth", - "type": "TypeBool", - "description": "Whether enable mutual auth in the client application side, when client_protocol is 'tls' or 'https', this field is required.", - "computed": true - }, - { - "name": "server_mutual_auth", - "type": "TypeBool", - "description": "Whether enable mutual auth in the server application side, when client_protocol is 'tls', this field is required.", - "computed": true - }, - { - "name": "connector_port", - "type": "TypeInt", - "description": "The connector port.", - "computed": true - }, - { - "name": "client_host", - "type": "TypeString", - "description": "The hostname which Satellite Link server listen on for the on-location endpoint, or the hostname which the connector server listen on for the on-cloud endpoint destiantion.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The time when the Endpoint is created.", - "computed": true - }, - { - "name": "last_change", - "type": "TypeString", - "description": "The last time modify the Endpoint configurations.", - "computed": true }, { - "name": "location", + "name": "worker_pool", "type": "TypeString", - "description": "The Location ID.", - "cloud_data_type": "region", + "description": "worker pool name", "required": true - }, - { - "name": "reject_unauth", - "type": "TypeBool", - "description": "Whether reject any connection to the server application which is not authorized with the list of supplied CAs in the fields certs.server_cert.", - "computed": true - }, + } + ], + "ibm_satellite_endpoint": [ { "name": "timeout", "type": "TypeInt", @@ -69063,11 +68964,35 @@ "computed": true }, { - "name": "crn", - "type": "TypeString", - "description": "Service instance associated with this location.", - "cloud_data_type": "crn", - "computed": true + "name": "sources", + "type": "TypeList", + "computed": true, + "elem": { + "enabled": { + "name": "enabled", + "type": "TypeBool", + "description": "Whether the source is enabled for the endpoint.", + "computed": true + }, + "last_change": { + "name": "last_change", + "type": "TypeString", + "description": "The last time modify the Endpoint configurations.", + "computed": true + }, + "pending": { + "name": "pending", + "type": "TypeBool", + "description": "Whether the source has been enabled on this endpoint.", + "computed": true + }, + "source_id": { + "name": "source_id", + "type": "TypeString", + "description": "The Source ID.", + "computed": true + } + } }, { "name": "certs", @@ -69158,15 +69083,65 @@ } }, { - "name": "service_name", + "name": "display_name", "type": "TypeString", - "description": "The service name of the endpoint.", + "description": "The display name of the endpoint. Endpoint names must start with a letter and end with an alphanumeric character, can contain letters, numbers, and hyphen (-), and must be 63 characters or fewer.", "computed": true }, { - "name": "client_port", + "name": "reject_unauth", + "type": "TypeBool", + "description": "Whether reject any connection to the server application which is not authorized with the list of supplied CAs in the fields certs.server_cert.", + "computed": true + }, + { + "name": "server_port", "type": "TypeInt", - "description": "The port which Satellite Link server listen on for the on-location, or the port which the connector server listen on for the on-cloud endpoint destiantion.", + "description": "The port number of the server endpoint. For 'http-tunnel' protocol, server_port can be 0, which means any port. Such as 0 is good for 80 (http) and 443 (https).", + "computed": true + }, + { + "name": "sni", + "type": "TypeString", + "description": "The server name indicator (SNI) which used to connect to the server endpoint. Only useful if server side requires SNI.", + "computed": true + }, + { + "name": "client_protocol", + "type": "TypeString", + "description": "The protocol in the client application side.", + "computed": true + }, + { + "name": "connector_port", + "type": "TypeInt", + "description": "The connector port.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Service instance associated with this location.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Whether the Endpoint is active or not.", + "computed": true + }, + { + "name": "location", + "type": "TypeString", + "description": "The Location ID.", + "cloud_data_type": "region", + "required": true + }, + { + "name": "connection_type", + "type": "TypeString", + "description": "The type of the endpoint.", "computed": true }, { @@ -69234,21 +69209,21 @@ } }, { - "name": "endpoint_id", + "name": "created_at", "type": "TypeString", - "description": "The Endpoint ID.", - "required": true + "description": "The time when the Endpoint is created.", + "computed": true }, { - "name": "display_name", + "name": "last_change", "type": "TypeString", - "description": "The display name of the endpoint. Endpoint names must start with a letter and end with an alphanumeric character, can contain letters, numbers, and hyphen (-), and must be 63 characters or fewer.", + "description": "The last time modify the Endpoint configurations.", "computed": true }, { - "name": "server_port", - "type": "TypeInt", - "description": "The port number of the server endpoint. For 'http-tunnel' protocol, server_port can be 0, which means any port. Such as 0 is good for 80 (http) and 443 (https).", + "name": "server_mutual_auth", + "type": "TypeBool", + "description": "Whether enable mutual auth in the server application side, when client_protocol is 'tls', this field is required.", "computed": true }, { @@ -69258,35 +69233,46 @@ "computed": true }, { - "name": "sources", - "type": "TypeList", - "computed": true, - "elem": { - "enabled": { - "name": "enabled", - "type": "TypeBool", - "description": "Whether the source is enabled for the endpoint.", - "computed": true - }, - "last_change": { - "name": "last_change", - "type": "TypeString", - "description": "The last time modify the Endpoint configurations.", - "computed": true - }, - "pending": { - "name": "pending", - "type": "TypeBool", - "description": "Whether the source has been enabled on this endpoint.", - "computed": true - }, - "source_id": { - "name": "source_id", - "type": "TypeString", - "description": "The Source ID.", - "computed": true - } - } + "name": "service_name", + "type": "TypeString", + "description": "The service name of the endpoint.", + "computed": true + }, + { + "name": "client_port", + "type": "TypeInt", + "description": "The port which Satellite Link server listen on for the on-location, or the port which the connector server listen on for the on-cloud endpoint destiantion.", + "computed": true + }, + { + "name": "endpoint_id", + "type": "TypeString", + "description": "The Endpoint ID.", + "required": true + }, + { + "name": "client_mutual_auth", + "type": "TypeBool", + "description": "Whether enable mutual auth in the client application side, when client_protocol is 'tls' or 'https', this field is required.", + "computed": true + }, + { + "name": "client_host", + "type": "TypeString", + "description": "The hostname which Satellite Link server listen on for the on-location endpoint, or the hostname which the connector server listen on for the on-cloud endpoint destiantion.", + "computed": true + }, + { + "name": "server_host", + "type": "TypeString", + "description": "The host name or IP address of the server endpoint. For 'http-tunnel' protocol, server_host can start with '*.' , which means a wildcard to it's sub domains. Such as '*.example.com' can accept request to 'api.example.com' and 'www.example.com'.", + "computed": true + }, + { + "name": "server_protocol", + "type": "TypeString", + "description": "The protocol in the server application side. This parameter will change to default value if it is omitted even when using PATCH API. If client_protocol is 'udp', server_protocol must be 'udp'. If client_protocol is 'tcp'/'http', server_protocol could be 'tcp'/'tls' and default to 'tcp'. If client_protocol is 'tls'/'https', server_protocol could be 'tcp'/'tls' and default to 'tls'. If client_protocol is 'http-tunnel', server_protocol must be 'tcp'.", + "computed": true } ], "ibm_satellite_link": [ @@ -69310,12 +69296,36 @@ "description": "Satellite Link hostname of the location.", "computed": true }, + { + "name": "ws_endpoint", + "type": "TypeString", + "description": "The ws endpoint of the location.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Description of the location.", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Enabled/Disabled.", + "computed": true + }, { "name": "created_at", "type": "TypeString", "description": "Timestamp of creation of location.", "computed": true }, + { + "name": "last_change", + "type": "TypeString", + "description": "Timestamp of latest modification of location.", + "computed": true + }, { "name": "performance", "type": "TypeList", @@ -69391,47 +69401,51 @@ "computed": true } } - }, + } + ], + "ibm_satellite_location": [ { - "name": "ws_endpoint", + "name": "location", "type": "TypeString", - "description": "The ws endpoint of the location.", - "computed": true + "description": "A unique name for the new Satellite location", + "cloud_data_type": "region", + "required": true }, { "name": "description", "type": "TypeString", - "description": "Description of the location.", + "description": "A description of the new Satellite location", "computed": true }, { - "name": "status", + "name": "resource_group_name", "type": "TypeString", - "description": "Enabled/Disabled.", + "description": "Name of the resource group", "computed": true }, { - "name": "last_change", - "type": "TypeString", - "description": "Timestamp of latest modification of location.", + "name": "coreos_enabled", + "type": "TypeBool", + "description": "If Red Hat CoreOS features are enabled within the Satellite location", "computed": true - } - ], - "ibm_satellite_location": [ + }, { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "logging_account_id", + "type": "TypeString", + "description": "The account ID for IBM Log Analysis with LogDNA log forwarding", + "computed": true }, { "name": "ingress_hostname", "type": "TypeString", "computed": true }, + { + "name": "ingress_secret", + "type": "TypeString", + "secure": true, + "computed": true + }, { "name": "hosts", "type": "TypeList", @@ -69477,62 +69491,6 @@ } } }, - { - "name": "ingress_secret", - "type": "TypeString", - "secure": true, - "computed": true - }, - { - "name": "location", - "type": "TypeString", - "description": "A unique name for the new Satellite location", - "cloud_data_type": "region", - "required": true - }, - { - "name": "managed_from", - "type": "TypeString", - "description": "The IBM Cloud metro from which the Satellite location is managed", - "computed": true - }, - { - "name": "coreos_enabled", - "type": "TypeBool", - "description": "If Red Hat CoreOS features are enabled within the Satellite location", - "computed": true - }, - { - "name": "logging_account_id", - "type": "TypeString", - "description": "The account ID for IBM Log Analysis with LogDNA log forwarding", - "computed": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "ID of the resource group", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "Name of the resource group", - "computed": true - }, - { - "name": "created_on", - "type": "TypeString", - "description": "Created Date", - "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "A description of the new Satellite location", - "computed": true - }, { "name": "zones", "type": "TypeSet", @@ -69549,6 +69507,15 @@ "cloud_data_type": "crn", "computed": true }, + { + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "host_attached_count", "type": "TypeInt", @@ -69566,6 +69533,25 @@ "elem": { "type": "TypeString" } + }, + { + "name": "managed_from", + "type": "TypeString", + "description": "The IBM Cloud metro from which the Satellite location is managed", + "computed": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "created_on", + "type": "TypeString", + "description": "Created Date", + "computed": true } ], "ibm_satellite_location_nlb_dns": [ @@ -69644,15 +69630,9 @@ ], "ibm_satellite_storage_assignment": [ { - "name": "uuid", - "type": "TypeString", - "description": "The Universally Unique IDentifier (UUID) of the Assignment.", - "required": true - }, - { - "name": "cluster", + "name": "config_version_uuid", "type": "TypeString", - "description": "ID of the Satellite cluster or Service Cluster that you want to apply the configuration to.", + "description": "The Universally Unique IDentifier (UUID) of the Storage Configuration Version.", "computed": true }, { @@ -69662,27 +69642,9 @@ "computed": true }, { - "name": "config_version_uuid", - "type": "TypeString", - "description": "The Universally Unique IDentifier (UUID) of the Storage Configuration Version.", - "computed": true - }, - { - "name": "rollout_error_count", - "type": "TypeInt", - "description": "The Rollout Error Count of the Assignment.", - "computed": true - }, - { - "name": "is_assignment_upgrade_available", - "type": "TypeBool", - "description": "Whether an Upgrade is Available for the Assignment.", - "computed": true - }, - { - "name": "assignment_name", + "name": "owner", "type": "TypeString", - "description": "Name of the Assignment.", + "description": "The Owner of the Assignment.", "computed": true }, { @@ -69695,9 +69657,9 @@ } }, { - "name": "created", + "name": "cluster", "type": "TypeString", - "description": "The Time of Creation of the Assignment.", + "description": "ID of the Satellite cluster or Service Cluster that you want to apply the configuration to.", "computed": true }, { @@ -69707,61 +69669,67 @@ "computed": true }, { - "name": "config", + "name": "config_uuid", "type": "TypeString", - "description": "Storage Configuration Name or ID.", + "description": "The Universally Unique IDentifier (UUID) of the Storage Configuration.", "computed": true }, { - "name": "config_uuid", + "name": "config_version", "type": "TypeString", - "description": "The Universally Unique IDentifier (UUID) of the Storage Configuration.", + "description": "The Storage Configuration Version.", "computed": true }, { - "name": "assignment_type", - "type": "TypeString", - "description": "The Type of Assignment.", + "name": "rollout_success_count", + "type": "TypeInt", + "description": "The Rollout Success Count of the Assignment.", "computed": true }, { - "name": "owner", + "name": "assignment_name", "type": "TypeString", - "description": "The Owner of the Assignment.", + "description": "Name of the Assignment.", "computed": true }, { - "name": "config_version", + "name": "config", "type": "TypeString", - "description": "The Storage Configuration Version.", + "description": "Storage Configuration Name or ID.", "computed": true }, { - "name": "rollout_success_count", - "type": "TypeInt", - "description": "The Rollout Success Count of the Assignment.", + "name": "assignment_type", + "type": "TypeString", + "description": "The Type of Assignment.", "computed": true - } - ], - "ibm_satellite_storage_configuration": [ + }, { - "name": "config_version", + "name": "created", "type": "TypeString", - "description": "Version of the Storage Configuration.", + "description": "The Time of Creation of the Assignment.", "computed": true }, { - "name": "storage_template_name", - "type": "TypeString", - "description": "The Storage Template Name.", + "name": "rollout_error_count", + "type": "TypeInt", + "description": "The Rollout Error Count of the Assignment.", "computed": true }, { - "name": "storage_template_version", - "type": "TypeString", - "description": "The Storage Template Version.", + "name": "is_assignment_upgrade_available", + "type": "TypeBool", + "description": "Whether an Upgrade is Available for the Assignment.", "computed": true }, + { + "name": "uuid", + "type": "TypeString", + "description": "The Universally Unique IDentifier (UUID) of the Assignment.", + "required": true + } + ], + "ibm_satellite_storage_configuration": [ { "name": "user_config_parameters", "type": "TypeMap", @@ -69798,93 +69766,43 @@ "type": "TypeString", "description": "Name of the Storage Configuration.", "required": true - } - ], - "ibm_scc_account_location": [], - "ibm_scc_account_location_settings": [], - "ibm_scc_account_locations": [], - "ibm_scc_account_notification_settings": [], - "ibm_scc_control_library": [ - { - "name": "account_id", - "type": "TypeString", - "description": "The account ID.", - "computed": true }, { - "name": "control_library_type", + "name": "config_version", "type": "TypeString", - "description": "The control library type.", - "computed": true - }, - { - "name": "controls_count", - "type": "TypeInt", - "description": "The number of controls.", + "description": "Version of the Storage Configuration.", "computed": true }, { - "name": "updated_on", + "name": "storage_template_name", "type": "TypeString", - "description": "The date when the control library was updated.", - "computed": true - }, - { - "name": "latest", - "type": "TypeBool", - "description": "The latest version of the control library.", + "description": "The Storage Template Name.", "computed": true }, { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Security and Compliance Center instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "control_library_id", - "type": "TypeString", - "description": "The control library ID.", - "required": true - }, - { - "name": "control_library_description", + "name": "storage_template_version", "type": "TypeString", - "description": "The control library description.", + "description": "The Storage Template Version.", "computed": true - }, + } + ], + "ibm_scc_account_location": [], + "ibm_scc_account_location_settings": [], + "ibm_scc_account_locations": [], + "ibm_scc_account_notification_settings": [], + "ibm_scc_control_library": [ { "name": "created_on", "type": "TypeString", "description": "The date when the control library was created.", "computed": true }, - { - "name": "version_group_label", - "type": "TypeString", - "description": "The version group label.", - "computed": true - }, - { - "name": "control_library_version", - "type": "TypeString", - "description": "The control library version.", - "computed": true - }, { "name": "control_parents_count", "type": "TypeInt", "description": "The number of parent controls in the control library.", "computed": true }, - { - "name": "hierarchy_enabled", - "type": "TypeBool", - "description": "The indication of whether hierarchy is enabled for the control library.", - "computed": true - }, { "name": "controls", "type": "TypeList", @@ -70079,15 +69997,33 @@ } }, { - "name": "control_library_name", + "name": "controls_count", + "type": "TypeInt", + "description": "The number of controls.", + "computed": true + }, + { + "name": "account_id", "type": "TypeString", - "description": "The control library name.", + "description": "The account ID.", "computed": true }, { - "name": "created_by", + "name": "control_library_type", "type": "TypeString", - "description": "The user who created the control library.", + "description": "The control library type.", + "computed": true + }, + { + "name": "updated_on", + "type": "TypeString", + "description": "The date when the control library was updated.", + "computed": true + }, + { + "name": "hierarchy_enabled", + "type": "TypeBool", + "description": "The indication of whether hierarchy is enabled for the control library.", "computed": true }, { @@ -70095,6 +70031,56 @@ "type": "TypeString", "description": "The user who updated the control library.", "computed": true + }, + { + "name": "latest", + "type": "TypeBool", + "description": "The latest version of the control library.", + "computed": true + }, + { + "name": "control_library_id", + "type": "TypeString", + "description": "The control library ID.", + "required": true + }, + { + "name": "control_library_description", + "type": "TypeString", + "description": "The control library description.", + "computed": true + }, + { + "name": "version_group_label", + "type": "TypeString", + "description": "The version group label.", + "computed": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "The user who created the control library.", + "computed": true + }, + { + "name": "control_library_name", + "type": "TypeString", + "description": "The control library name.", + "computed": true + }, + { + "name": "control_library_version", + "type": "TypeString", + "description": "The control library version.", + "computed": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Security and Compliance Center instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true } ], "ibm_scc_instance_settings": [ @@ -70172,94 +70158,6 @@ } ], "ibm_scc_latest_reports": [ - { - "name": "controls_summary", - "type": "TypeList", - "description": "The compliance stats.", - "computed": true, - "elem": { - "compliant_count": { - "name": "compliant_count", - "type": "TypeInt", - "description": "The number of compliant checks.", - "computed": true - }, - "not_compliant_count": { - "name": "not_compliant_count", - "type": "TypeInt", - "description": "The number of checks that are not compliant.", - "computed": true - }, - "status": { - "name": "status", - "type": "TypeString", - "description": "The allowed values of an aggregated status for controls, specifications, assessments, and resources.", - "computed": true - }, - "total_count": { - "name": "total_count", - "type": "TypeInt", - "description": "The total number of checks.", - "computed": true - }, - "unable_to_perform_count": { - "name": "unable_to_perform_count", - "type": "TypeInt", - "description": "The number of checks that are unable to perform.", - "computed": true - }, - "user_evaluation_required_count": { - "name": "user_evaluation_required_count", - "type": "TypeInt", - "description": "The number of checks that require a user evaluation.", - "computed": true - } - } - }, - { - "name": "evaluations_summary", - "type": "TypeList", - "description": "The evaluation stats.", - "computed": true, - "elem": { - "completed_count": { - "name": "completed_count", - "type": "TypeInt", - "description": "The total number of completed evaluations.", - "computed": true - }, - "error_count": { - "name": "error_count", - "type": "TypeInt", - "description": "The number of evaluations that started, but did not finish, and ended with errors.", - "computed": true - }, - "failure_count": { - "name": "failure_count", - "type": "TypeInt", - "description": "The number of failed evaluations.", - "computed": true - }, - "pass_count": { - "name": "pass_count", - "type": "TypeInt", - "description": "The number of passed evaluations.", - "computed": true - }, - "status": { - "name": "status", - "type": "TypeString", - "description": "The allowed values of an aggregated status for controls, specifications, assessments, and resources.", - "computed": true - }, - "total_count": { - "name": "total_count", - "type": "TypeInt", - "description": "The total number of evaluations.", - "computed": true - } - } - }, { "name": "score", "type": "TypeList", @@ -70479,9 +70377,127 @@ "type": "TypeString", "description": "The ID of the home account.", "computed": true + }, + { + "name": "controls_summary", + "type": "TypeList", + "description": "The compliance stats.", + "computed": true, + "elem": { + "compliant_count": { + "name": "compliant_count", + "type": "TypeInt", + "description": "The number of compliant checks.", + "computed": true + }, + "not_compliant_count": { + "name": "not_compliant_count", + "type": "TypeInt", + "description": "The number of checks that are not compliant.", + "computed": true + }, + "status": { + "name": "status", + "type": "TypeString", + "description": "The allowed values of an aggregated status for controls, specifications, assessments, and resources.", + "computed": true + }, + "total_count": { + "name": "total_count", + "type": "TypeInt", + "description": "The total number of checks.", + "computed": true + }, + "unable_to_perform_count": { + "name": "unable_to_perform_count", + "type": "TypeInt", + "description": "The number of checks that are unable to perform.", + "computed": true + }, + "user_evaluation_required_count": { + "name": "user_evaluation_required_count", + "type": "TypeInt", + "description": "The number of checks that require a user evaluation.", + "computed": true + } + } + }, + { + "name": "evaluations_summary", + "type": "TypeList", + "description": "The evaluation stats.", + "computed": true, + "elem": { + "completed_count": { + "name": "completed_count", + "type": "TypeInt", + "description": "The total number of completed evaluations.", + "computed": true + }, + "error_count": { + "name": "error_count", + "type": "TypeInt", + "description": "The number of evaluations that started, but did not finish, and ended with errors.", + "computed": true + }, + "failure_count": { + "name": "failure_count", + "type": "TypeInt", + "description": "The number of failed evaluations.", + "computed": true + }, + "pass_count": { + "name": "pass_count", + "type": "TypeInt", + "description": "The number of passed evaluations.", + "computed": true + }, + "status": { + "name": "status", + "type": "TypeString", + "description": "The allowed values of an aggregated status for controls, specifications, assessments, and resources.", + "computed": true + }, + "total_count": { + "name": "total_count", + "type": "TypeInt", + "description": "The total number of evaluations.", + "computed": true + } + } } ], "ibm_scc_profile": [ + { + "name": "profile_name", + "type": "TypeString", + "description": "The profile name.", + "computed": true + }, + { + "name": "profile_version", + "type": "TypeString", + "description": "The version status of the profile.", + "computed": true + }, + { + "name": "latest", + "type": "TypeBool", + "description": "The latest version of the profile.", + "computed": true + }, + { + "name": "updated_on", + "type": "TypeString", + "description": "The date when the profile was updated.", + "computed": true + }, + { + "name": "updated_by", + "type": "TypeString", + "description": "The user who updated the profile.", + "computed": true + }, { "name": "default_parameters", "type": "TypeList", @@ -70527,15 +70543,9 @@ } }, { - "name": "profile_name", - "type": "TypeString", - "description": "The profile name.", - "computed": true - }, - { - "name": "profile_version", + "name": "profile_type", "type": "TypeString", - "description": "The version status of the profile.", + "description": "The profile type, such as custom or predefined.", "computed": true }, { @@ -70559,15 +70569,15 @@ "computed": true }, { - "name": "controls_count", - "type": "TypeInt", - "description": "The number of controls for the profile.", - "computed": true + "name": "profile_id", + "type": "TypeString", + "description": "The profile ID.", + "required": true }, { - "name": "attachments_count", + "name": "controls_count", "type": "TypeInt", - "description": "The number of attachments related to this profile.", + "description": "The number of controls for the profile.", "computed": true }, { @@ -70576,24 +70586,6 @@ "description": "The number of parent controls for the profile.", "computed": true }, - { - "name": "profile_description", - "type": "TypeString", - "description": "The profile description.", - "computed": true - }, - { - "name": "latest", - "type": "TypeBool", - "description": "The latest version of the profile.", - "computed": true - }, - { - "name": "updated_by", - "type": "TypeString", - "description": "The user who updated the profile.", - "computed": true - }, { "name": "controls", "type": "TypeList", @@ -70791,15 +70783,9 @@ } }, { - "name": "profile_id", - "type": "TypeString", - "description": "The profile ID.", - "required": true - }, - { - "name": "profile_type", + "name": "profile_description", "type": "TypeString", - "description": "The profile type, such as custom or predefined.", + "description": "The profile description.", "computed": true }, { @@ -70815,23 +70801,23 @@ "computed": true }, { - "name": "updated_on", - "type": "TypeString", - "description": "The date when the profile was updated.", + "name": "attachments_count", + "type": "TypeInt", + "description": "The number of attachments related to this profile.", "computed": true } ], "ibm_scc_profile_attachment": [ { - "name": "created_on", + "name": "attachment_item_id", "type": "TypeString", - "description": "The date when the attachment was created.", + "description": "The ID of the attachment.", "computed": true }, { - "name": "schedule", + "name": "updated_by", "type": "TypeString", - "description": "The schedule of an attachment evaluation.", + "description": "The user who updated the attachment.", "computed": true }, { @@ -70841,44 +70827,18 @@ "computed": true }, { - "name": "attachment_item_id", + "name": "description", "type": "TypeString", - "description": "The ID of the attachment.", + "description": "The description for the attachment.", "computed": true }, { - "name": "scope", - "type": "TypeList", - "description": "The scope payload for the multi cloud feature.", - "computed": true, - "elem": { - "environment": { - "name": "environment", - "type": "TypeString", - "description": "The environment that relates to this scope.", - "computed": true - }, - "properties": { - "name": "properties", - "type": "TypeList", - "description": "The properties supported for scoping by this environment.", - "computed": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "The name of the property.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "The value of the property.", - "computed": true - } - } - } - } + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Security and Compliance Center instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { "name": "status", @@ -70887,15 +70847,15 @@ "computed": true }, { - "name": "name", + "name": "attachment_id", "type": "TypeString", - "description": "The name of the attachment.", - "computed": true + "description": "The attachment ID.", + "required": true }, { - "name": "attachment_id", + "name": "profile_id", "type": "TypeString", - "description": "The attachment ID.", + "description": "The profile ID.", "required": true }, { @@ -70904,14 +70864,6 @@ "description": "The user who created the attachment.", "computed": true }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Security and Compliance Center instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, { "name": "updated_on", "type": "TypeString", @@ -70919,55 +70871,31 @@ "computed": true }, { - "name": "attachment_parameters", + "name": "last_scan", "type": "TypeList", - "description": "The profile parameters for the attachment.", + "description": "The details of the last scan of an attachment.", "computed": true, "elem": { - "assessment_id": { - "name": "assessment_id", - "type": "TypeString", - "description": "The implementation ID of the parameter.", - "computed": true - }, - "assessment_type": { - "name": "assessment_type", - "type": "TypeString", - "description": "The type of the implementation.", - "computed": true - }, - "parameter_display_name": { - "name": "parameter_display_name", - "type": "TypeString", - "description": "The parameter display name.", - "computed": true - }, - "parameter_name": { - "name": "parameter_name", + "id": { + "name": "id", "type": "TypeString", - "description": "The parameter name.", + "description": "The ID of the last scan of an attachment.", "computed": true }, - "parameter_type": { - "name": "parameter_type", + "status": { + "name": "status", "type": "TypeString", - "description": "The parameter type.", + "description": "The status of the last scan of an attachment.", "computed": true }, - "parameter_value": { - "name": "parameter_value", + "time": { + "name": "time", "type": "TypeString", - "description": "The value of the parameter.", + "description": "The time when the last scan started.", "computed": true } } }, - { - "name": "profile_id", - "type": "TypeString", - "description": "The profile ID.", - "required": true - }, { "name": "account_id", "type": "TypeString", @@ -70975,41 +70903,49 @@ "computed": true }, { - "name": "last_scan", + "name": "scope", "type": "TypeList", - "description": "The details of the last scan of an attachment.", + "description": "The scope payload for the multi cloud feature.", "computed": true, "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "The ID of the last scan of an attachment.", - "computed": true - }, - "status": { - "name": "status", + "environment": { + "name": "environment", "type": "TypeString", - "description": "The status of the last scan of an attachment.", + "description": "The environment that relates to this scope.", "computed": true }, - "time": { - "name": "time", - "type": "TypeString", - "description": "The time when the last scan started.", - "computed": true + "properties": { + "name": "properties", + "type": "TypeList", + "description": "The properties supported for scoping by this environment.", + "computed": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "The name of the property.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "The value of the property.", + "computed": true + } + } } } }, { - "name": "description", + "name": "created_on", "type": "TypeString", - "description": "The description for the attachment.", + "description": "The date when the attachment was created.", "computed": true }, { - "name": "updated_by", + "name": "schedule", "type": "TypeString", - "description": "The user who updated the attachment.", + "description": "The schedule of an attachment evaluation.", "computed": true }, { @@ -71048,9 +70984,71 @@ "computed": true } } + }, + { + "name": "attachment_parameters", + "type": "TypeList", + "description": "The profile parameters for the attachment.", + "computed": true, + "elem": { + "assessment_id": { + "name": "assessment_id", + "type": "TypeString", + "description": "The implementation ID of the parameter.", + "computed": true + }, + "assessment_type": { + "name": "assessment_type", + "type": "TypeString", + "description": "The type of the implementation.", + "computed": true + }, + "parameter_display_name": { + "name": "parameter_display_name", + "type": "TypeString", + "description": "The parameter display name.", + "computed": true + }, + "parameter_name": { + "name": "parameter_name", + "type": "TypeString", + "description": "The parameter name.", + "computed": true + }, + "parameter_type": { + "name": "parameter_type", + "type": "TypeString", + "description": "The parameter type.", + "computed": true + }, + "parameter_value": { + "name": "parameter_value", + "type": "TypeString", + "description": "The value of the parameter.", + "computed": true + } + } + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the attachment.", + "computed": true } ], "ibm_scc_provider_type": [ + { + "name": "provider_type_id", + "type": "TypeString", + "description": "The provider type ID.", + "required": true + }, + { + "name": "instance_limit", + "type": "TypeInt", + "description": "The maximum number of instances that can be created for the provider type.", + "computed": true + }, { "name": "id", "type": "TypeString", @@ -71058,9 +71056,9 @@ "computed": true }, { - "name": "mode", - "type": "TypeString", - "description": "The mode that is used to get results from provider (`PUSH` or `PULL`).", + "name": "s2s_enabled", + "type": "TypeBool", + "description": "A boolean that indicates whether the provider type is s2s-enabled.", "computed": true }, { @@ -71070,10 +71068,19 @@ "computed": true }, { - "name": "provider_type_id", + "name": "attributes", + "type": "TypeMap", + "description": "The attributes that are required when you're creating an instance of a provider type. The attributes field can have multiple keys in its value. Each of those keys has a value object that includes the type, and display name as keys. For example, `{type:\"\", display_name:\"\"}`. **NOTE;** If the provider type is s2s-enabled, which means that if the `s2s_enabled` field is set to `true`, then a CRN field of type text is required in the attributes value object.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "type", "type": "TypeString", - "description": "The provider type ID.", - "required": true + "description": "The type of the provider type.", + "computed": true }, { "name": "name", @@ -71082,9 +71089,21 @@ "computed": true }, { - "name": "instance_limit", - "type": "TypeInt", - "description": "The maximum number of instances that can be created for the provider type.", + "name": "description", + "type": "TypeString", + "description": "The provider type description.", + "computed": true + }, + { + "name": "mode", + "type": "TypeString", + "description": "The mode that is used to get results from provider (`PUSH` or `PULL`).", + "computed": true + }, + { + "name": "icon", + "type": "TypeString", + "description": "The icon of a provider in .svg format that is encoded as a base64 string.", "computed": true }, { @@ -71118,39 +71137,6 @@ "type": "TypeString", "description": "Time at which resource was updated.", "computed": true - }, - { - "name": "type", - "type": "TypeString", - "description": "The type of the provider type.", - "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "The provider type description.", - "computed": true - }, - { - "name": "s2s_enabled", - "type": "TypeBool", - "description": "A boolean that indicates whether the provider type is s2s-enabled.", - "computed": true - }, - { - "name": "icon", - "type": "TypeString", - "description": "The icon of a provider in .svg format that is encoded as a base64 string.", - "computed": true - }, - { - "name": "attributes", - "type": "TypeMap", - "description": "The attributes that are required when you're creating an instance of a provider type. The attributes field can have multiple keys in its value. Each of those keys has a value object that includes the type, and display name as keys. For example, `{type:\"\", display_name:\"\"}`. **NOTE;** If the provider type is s2s-enabled, which means that if the `s2s_enabled` field is set to `true`, then a CRN field of type text is required in the attributes value object.", - "computed": true, - "elem": { - "type": "TypeString" - } } ], "ibm_scc_provider_type_collection": [ @@ -71256,15 +71242,17 @@ "computed": true } } - } - ], - "ibm_scc_provider_type_instance": [ + }, { - "name": "provider_type_instance_id", + "name": "instance_id", "type": "TypeString", - "description": "The provider type instance ID.", + "description": "The ID of the Security and Compliance Center instance.", + "cloud_data_type": "resource_instance", + "immutable": true, "required": true - }, + } + ], + "ibm_scc_provider_type_instance": [ { "name": "provider_type_instance_item_id", "type": "TypeString", @@ -71272,10 +71260,10 @@ "computed": true }, { - "name": "provider_type_id", + "name": "type", "type": "TypeString", - "description": "The provider type ID.", - "required": true + "description": "The type of the provider type.", + "computed": true }, { "name": "name", @@ -71283,23 +71271,12 @@ "description": "The name of the provider type instance.", "computed": true }, - { - "name": "attributes", - "type": "TypeMap", - "computed": true - }, { "name": "created_at", "type": "TypeString", "description": "Time at which resource was created.", "computed": true }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Time at which resource was updated.", - "computed": true - }, { "name": "instance_id", "type": "TypeString", @@ -71309,13 +71286,42 @@ "required": true }, { - "name": "type", + "name": "provider_type_id", "type": "TypeString", - "description": "The type of the provider type.", + "description": "The provider type ID.", + "required": true + }, + { + "name": "provider_type_instance_id", + "type": "TypeString", + "description": "The provider type instance ID.", + "required": true + }, + { + "name": "attributes", + "type": "TypeMap", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Time at which resource was updated.", "computed": true } ], "ibm_scc_report": [ + { + "name": "report_id", + "type": "TypeString", + "description": "The ID of the scan that is associated with a report.", + "required": true + }, + { + "name": "created_on", + "type": "TypeString", + "description": "The date when the report was created.", + "computed": true + }, { "name": "scan_time", "type": "TypeString", @@ -71323,27 +71329,35 @@ "computed": true }, { - "name": "account", + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Security and Compliance Center instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, + { + "name": "profile", "type": "TypeList", - "description": "The account that is associated with a report.", + "description": "The profile information.", "computed": true, "elem": { "id": { "name": "id", "type": "TypeString", - "description": "The account ID.", + "description": "The profile ID.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The account name.", + "description": "The profile name.", "computed": true }, - "type": { - "name": "type", + "version": { + "name": "version", "type": "TypeString", - "description": "The account type.", + "description": "The profile version.", "computed": true } } @@ -71433,44 +71447,68 @@ "computed": true }, { - "name": "created_on", + "name": "type", "type": "TypeString", - "description": "The date when the report was created.", + "description": "The type of the scan.", "computed": true }, { - "name": "instance_id", + "name": "cos_object", "type": "TypeString", - "description": "The ID of the Security and Compliance Center instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "description": "The Cloud Object Storage object that is associated with the report.", + "computed": true }, { - "name": "profile", + "name": "account", "type": "TypeList", - "description": "The profile information.", + "description": "The account that is associated with a report.", "computed": true, "elem": { "id": { "name": "id", "type": "TypeString", - "description": "The profile ID.", + "description": "The account ID.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The profile name.", + "description": "The account name.", "computed": true }, - "version": { - "name": "version", + "type": { + "name": "type", "type": "TypeString", - "description": "The profile version.", + "description": "The account type.", "computed": true } } + } + ], + "ibm_scc_report_controls": [ + { + "name": "control_name", + "type": "TypeString", + "description": "The name of the control.", + "optional": true + }, + { + "name": "control_category", + "type": "TypeString", + "description": "A control category value.", + "optional": true + }, + { + "name": "home_account_id", + "type": "TypeString", + "description": "The ID of the home account.", + "computed": true + }, + { + "name": "user_evaluation_required_count", + "type": "TypeInt", + "description": "The number of checks that require a user evaluation.", + "computed": true }, { "name": "report_id", @@ -71479,19 +71517,17 @@ "required": true }, { - "name": "type", + "name": "sort", "type": "TypeString", - "description": "The type of the scan.", - "computed": true + "description": "This field sorts controls by using a valid sort field. To learn more, see [Sorting](https://cloud.ibm.com/docs/api-handbook?topic=api-handbook-sorting).", + "optional": true }, { - "name": "cos_object", - "type": "TypeString", - "description": "The Cloud Object Storage object that is associated with the report.", + "name": "total_count", + "type": "TypeInt", + "description": "The total number of checks.", "computed": true - } - ], - "ibm_scc_report_controls": [ + }, { "name": "not_compliant_count", "type": "TypeInt", @@ -71505,9 +71541,9 @@ "computed": true }, { - "name": "control_name", + "name": "control_id", "type": "TypeString", - "description": "The name of the control.", + "description": "The ID of the control.", "optional": true }, { @@ -71517,22 +71553,24 @@ "optional": true }, { - "name": "compliant_count", - "type": "TypeInt", - "description": "The number of compliant checks.", - "computed": true + "name": "status", + "type": "TypeString", + "description": "The compliance status value.", + "optional": true }, { - "name": "report_id", + "name": "instance_id", "type": "TypeString", - "description": "The ID of the scan that is associated with a report.", + "description": "The ID of the Security and Compliance Center instance.", + "cloud_data_type": "resource_instance", + "immutable": true, "required": true }, { - "name": "control_category", - "type": "TypeString", - "description": "A control category value.", - "optional": true + "name": "compliant_count", + "type": "TypeInt", + "description": "The number of compliant checks.", + "computed": true }, { "name": "controls", @@ -71763,85 +71801,9 @@ "computed": true } } - }, - { - "name": "home_account_id", - "type": "TypeString", - "description": "The ID of the home account.", - "computed": true - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Security and Compliance Center instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "total_count", - "type": "TypeInt", - "description": "The total number of checks.", - "computed": true - }, - { - "name": "user_evaluation_required_count", - "type": "TypeInt", - "description": "The number of checks that require a user evaluation.", - "computed": true - }, - { - "name": "control_id", - "type": "TypeString", - "description": "The ID of the control.", - "optional": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The compliance status value.", - "optional": true - }, - { - "name": "sort", - "type": "TypeString", - "description": "This field sorts controls by using a valid sort field. To learn more, see [Sorting](https://cloud.ibm.com/docs/api-handbook?topic=api-handbook-sorting).", - "optional": true } ], "ibm_scc_report_evaluations": [ - { - "name": "component_id", - "type": "TypeString", - "description": "The ID of component.", - "optional": true - }, - { - "name": "target_id", - "type": "TypeString", - "description": "The ID of the evaluation target.", - "optional": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The evaluation status value.", - "optional": true - }, - { - "name": "first", - "type": "TypeList", - "description": "The page reference.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for the first and next page.", - "computed": true - } - } - }, { "name": "home_account_id", "type": "TypeString", @@ -72072,6 +72034,38 @@ "description": "The ID of the assessment.", "optional": true }, + { + "name": "status", + "type": "TypeString", + "description": "The evaluation status value.", + "optional": true + }, + { + "name": "first", + "type": "TypeList", + "description": "The page reference.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for the first and next page.", + "computed": true + } + } + }, + { + "name": "component_id", + "type": "TypeString", + "description": "The ID of component.", + "optional": true + }, + { + "name": "target_id", + "type": "TypeString", + "description": "The ID of the evaluation target.", + "optional": true + }, { "name": "target_name", "type": "TypeString", @@ -72080,6 +72074,64 @@ } ], "ibm_scc_report_resources": [ + { + "name": "sort", + "type": "TypeString", + "description": "This field sorts resources by using a valid sort field. To learn more, see [Sorting](https://cloud.ibm.com/docs/api-handbook?topic=api-handbook-sorting).", + "optional": true + }, + { + "name": "first", + "type": "TypeList", + "description": "The page reference.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for the first and next page.", + "computed": true + } + } + }, + { + "name": "report_id", + "type": "TypeString", + "description": "The ID of the scan that is associated with a report.", + "required": true + }, + { + "name": "id", + "type": "TypeString", + "description": "The ID of the resource.", + "optional": true + }, + { + "name": "component_id", + "type": "TypeString", + "description": "The ID of component.", + "optional": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The compliance status value.", + "optional": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Security and Compliance Center instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, + { + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource.", + "optional": true + }, { "name": "account_id", "type": "TypeString", @@ -72087,10 +72139,10 @@ "optional": true }, { - "name": "sort", + "name": "home_account_id", "type": "TypeString", - "description": "This field sorts resources by using a valid sort field. To learn more, see [Sorting](https://cloud.ibm.com/docs/api-handbook?topic=api-handbook-sorting).", - "optional": true + "description": "The ID of the home account.", + "computed": true }, { "name": "resources", @@ -72191,67 +72243,21 @@ "computed": true } } - }, + } + ], + "ibm_scc_report_rule": [ { - "name": "instance_id", + "name": "rule_id", "type": "TypeString", - "description": "The ID of the Security and Compliance Center instance.", - "cloud_data_type": "resource_instance", - "immutable": true, + "description": "The ID of a rule in a report.", "required": true }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource.", - "optional": true - }, { "name": "id", "type": "TypeString", - "description": "The ID of the resource.", - "optional": true - }, - { - "name": "component_id", - "type": "TypeString", - "description": "The ID of component.", - "optional": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The compliance status value.", - "optional": true - }, - { - "name": "first", - "type": "TypeList", - "description": "The page reference.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for the first and next page.", - "computed": true - } - } - }, - { - "name": "home_account_id", - "type": "TypeString", - "description": "The ID of the home account.", + "description": "The rule ID.", "computed": true }, - { - "name": "report_id", - "type": "TypeString", - "description": "The ID of the scan that is associated with a report.", - "required": true - } - ], - "ibm_scc_report_rule": [ { "name": "type", "type": "TypeString", @@ -72259,21 +72265,15 @@ "computed": true }, { - "name": "account_id", - "type": "TypeString", - "description": "The rule account ID.", - "computed": true - }, - { - "name": "created_by", + "name": "version", "type": "TypeString", - "description": "The ID of the user who created the rule.", + "description": "The rule version.", "computed": true }, { - "name": "updated_by", + "name": "created_on", "type": "TypeString", - "description": "The ID of the user who updated the rule.", + "description": "The date when the rule was created.", "computed": true }, { @@ -72294,15 +72294,9 @@ "required": true }, { - "name": "id", - "type": "TypeString", - "description": "The rule ID.", - "computed": true - }, - { - "name": "rule_id", + "name": "report_id", "type": "TypeString", - "description": "The ID of a rule in a report.", + "description": "The ID of the scan that is associated with a report.", "required": true }, { @@ -72312,15 +72306,15 @@ "computed": true }, { - "name": "version", + "name": "account_id", "type": "TypeString", - "description": "The rule version.", + "description": "The rule account ID.", "computed": true }, { - "name": "created_on", + "name": "created_by", "type": "TypeString", - "description": "The date when the rule was created.", + "description": "The ID of the user who created the rule.", "computed": true }, { @@ -72330,13 +72324,127 @@ "computed": true }, { - "name": "report_id", + "name": "updated_by", "type": "TypeString", - "description": "The ID of the scan that is associated with a report.", - "required": true + "description": "The ID of the user who updated the rule.", + "computed": true } ], "ibm_scc_report_summary": [ + { + "name": "score", + "type": "TypeList", + "description": "The compliance score.", + "computed": true, + "elem": { + "passed": { + "name": "passed", + "type": "TypeInt", + "description": "The number of successful evaluations.", + "computed": true + }, + "percent": { + "name": "percent", + "type": "TypeInt", + "description": "The percentage of successful evaluations.", + "computed": true + }, + "total_count": { + "name": "total_count", + "type": "TypeInt", + "description": "The total number of evaluations.", + "computed": true + } + } + }, + { + "name": "controls", + "type": "TypeList", + "description": "The compliance stats.", + "computed": true, + "elem": { + "compliant_count": { + "name": "compliant_count", + "type": "TypeInt", + "description": "The number of compliant checks.", + "computed": true + }, + "not_compliant_count": { + "name": "not_compliant_count", + "type": "TypeInt", + "description": "The number of checks that are not compliant.", + "computed": true + }, + "status": { + "name": "status", + "type": "TypeString", + "description": "The allowed values of an aggregated status for controls, specifications, assessments, and resources.", + "computed": true + }, + "total_count": { + "name": "total_count", + "type": "TypeInt", + "description": "The total number of checks.", + "computed": true + }, + "unable_to_perform_count": { + "name": "unable_to_perform_count", + "type": "TypeInt", + "description": "The number of checks that are unable to perform.", + "computed": true + }, + "user_evaluation_required_count": { + "name": "user_evaluation_required_count", + "type": "TypeInt", + "description": "The number of checks that require a user evaluation.", + "computed": true + } + } + }, + { + "name": "evaluations", + "type": "TypeList", + "description": "The evaluation stats.", + "computed": true, + "elem": { + "completed_count": { + "name": "completed_count", + "type": "TypeInt", + "description": "The total number of completed evaluations.", + "computed": true + }, + "error_count": { + "name": "error_count", + "type": "TypeInt", + "description": "The number of evaluations that started, but did not finish, and ended with errors.", + "computed": true + }, + "failure_count": { + "name": "failure_count", + "type": "TypeInt", + "description": "The number of failed evaluations.", + "computed": true + }, + "pass_count": { + "name": "pass_count", + "type": "TypeInt", + "description": "The number of passed evaluations.", + "computed": true + }, + "status": { + "name": "status", + "type": "TypeString", + "description": "The allowed values of an aggregated status for controls, specifications, assessments, and resources.", + "computed": true + }, + "total_count": { + "name": "total_count", + "type": "TypeInt", + "description": "The total number of evaluations.", + "computed": true + } + } + }, { "name": "resources", "type": "TypeList", @@ -72529,120 +72637,6 @@ "computed": true } } - }, - { - "name": "score", - "type": "TypeList", - "description": "The compliance score.", - "computed": true, - "elem": { - "passed": { - "name": "passed", - "type": "TypeInt", - "description": "The number of successful evaluations.", - "computed": true - }, - "percent": { - "name": "percent", - "type": "TypeInt", - "description": "The percentage of successful evaluations.", - "computed": true - }, - "total_count": { - "name": "total_count", - "type": "TypeInt", - "description": "The total number of evaluations.", - "computed": true - } - } - }, - { - "name": "controls", - "type": "TypeList", - "description": "The compliance stats.", - "computed": true, - "elem": { - "compliant_count": { - "name": "compliant_count", - "type": "TypeInt", - "description": "The number of compliant checks.", - "computed": true - }, - "not_compliant_count": { - "name": "not_compliant_count", - "type": "TypeInt", - "description": "The number of checks that are not compliant.", - "computed": true - }, - "status": { - "name": "status", - "type": "TypeString", - "description": "The allowed values of an aggregated status for controls, specifications, assessments, and resources.", - "computed": true - }, - "total_count": { - "name": "total_count", - "type": "TypeInt", - "description": "The total number of checks.", - "computed": true - }, - "unable_to_perform_count": { - "name": "unable_to_perform_count", - "type": "TypeInt", - "description": "The number of checks that are unable to perform.", - "computed": true - }, - "user_evaluation_required_count": { - "name": "user_evaluation_required_count", - "type": "TypeInt", - "description": "The number of checks that require a user evaluation.", - "computed": true - } - } - }, - { - "name": "evaluations", - "type": "TypeList", - "description": "The evaluation stats.", - "computed": true, - "elem": { - "completed_count": { - "name": "completed_count", - "type": "TypeInt", - "description": "The total number of completed evaluations.", - "computed": true - }, - "error_count": { - "name": "error_count", - "type": "TypeInt", - "description": "The number of evaluations that started, but did not finish, and ended with errors.", - "computed": true - }, - "failure_count": { - "name": "failure_count", - "type": "TypeInt", - "description": "The number of failed evaluations.", - "computed": true - }, - "pass_count": { - "name": "pass_count", - "type": "TypeInt", - "description": "The number of passed evaluations.", - "computed": true - }, - "status": { - "name": "status", - "type": "TypeString", - "description": "The allowed values of an aggregated status for controls, specifications, assessments, and resources.", - "computed": true - }, - "total_count": { - "name": "total_count", - "type": "TypeInt", - "description": "The total number of evaluations.", - "computed": true - } - } } ], "ibm_scc_report_tags": [ @@ -72698,6 +72692,19 @@ } ], "ibm_scc_report_violation_drift": [ + { + "name": "report_id", + "type": "TypeString", + "description": "The ID of the scan that is associated with a report.", + "required": true + }, + { + "name": "scan_time_duration", + "type": "TypeInt", + "description": "The duration of the `scan_time` timestamp in number of days.", + "default_value": 0, + "optional": true + }, { "name": "home_account_id", "type": "TypeString", @@ -72781,22 +72788,36 @@ "cloud_data_type": "resource_instance", "immutable": true, "required": true + } + ], + "ibm_scc_rule": [ + { + "name": "created_by", + "type": "TypeString", + "description": "The user who created the rule.", + "computed": true }, { - "name": "report_id", + "name": "version", "type": "TypeString", - "description": "The ID of the scan that is associated with a report.", + "description": "The version number of a rule.", + "computed": true + }, + { + "name": "rule_id", + "type": "TypeString", + "description": "The ID of the corresponding rule.", "required": true }, { - "name": "scan_time_duration", - "type": "TypeInt", - "description": "The duration of the `scan_time` timestamp in number of days.", - "default_value": 0, - "optional": true - } - ], - "ibm_scc_rule": [ + "name": "labels", + "type": "TypeList", + "description": "The list of labels.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "required_config", "type": "TypeList", @@ -73022,24 +73043,9 @@ } }, { - "name": "labels", - "type": "TypeList", - "description": "The list of labels.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "updated_on", - "type": "TypeString", - "description": "The date when the rule was modified.", - "computed": true - }, - { - "name": "version", + "name": "description", "type": "TypeString", - "description": "The version number of a rule.", + "description": "The details of a rule's response.", "computed": true }, { @@ -73134,32 +73140,6 @@ } } }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Security and Compliance Center instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "rule_id", - "type": "TypeString", - "description": "The ID of the corresponding rule.", - "required": true - }, - { - "name": "created_on", - "type": "TypeString", - "description": "The date when the rule was created.", - "computed": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "The user who created the rule.", - "computed": true - }, { "name": "updated_by", "type": "TypeString", @@ -73167,9 +73147,9 @@ "computed": true }, { - "name": "description", + "name": "updated_on", "type": "TypeString", - "description": "The details of a rule's response.", + "description": "The date when the rule was modified.", "computed": true }, { @@ -73189,41 +73169,73 @@ "type": "TypeString", "description": "The rule type (allowable values are `user_defined` or `system_defined`).", "computed": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Security and Compliance Center instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, + { + "name": "created_on", + "type": "TypeString", + "description": "The date when the rule was created.", + "computed": true } ], "ibm_schematics_action": [ { - "name": "tags", + "name": "user_state", "type": "TypeList", - "description": "Action tags.", - "cloud_data_type": "tags", + "description": "User defined status of the Schematics object.", "computed": true, "elem": { - "type": "TypeString" + "set_at": { + "name": "set_at", + "type": "TypeString", + "description": "When the User who set the state of the Object.", + "computed": true + }, + "set_by": { + "name": "set_by", + "type": "TypeString", + "description": "Name of the User who set the state of the Object.", + "computed": true + }, + "state": { + "name": "state", + "type": "TypeString", + "description": "User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution.", + "computed": true + } } }, { - "name": "inventory", - "type": "TypeString", - "description": "Target inventory record ID, used by the action or ansible playbook.", - "computed": true - }, - { - "name": "id", - "type": "TypeString", - "description": "Action ID.", - "computed": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "E-mail address of the user who created an action.", - "computed": true + "name": "bastion", + "type": "TypeList", + "description": "Describes a bastion resource.", + "computed": true, + "elem": { + "host": { + "name": "host", + "type": "TypeString", + "description": "Reference to the Inventory resource definition.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Bastion Name(Unique).", + "computed": true + } + } }, { - "name": "bastion_credential", + "name": "action_inputs", "type": "TypeList", - "description": "User editable variable data \u0026 system generated reference to value.", + "description": "Input variables for the Action.", "computed": true, "elem": { "link": { @@ -73357,9 +73369,46 @@ } }, { - "name": "action_inputs", + "name": "id", + "type": "TypeString", + "description": "Action ID.", + "computed": true + }, + { + "name": "source_created_by", + "type": "TypeString", + "description": "E-mail address of user who created the Action Playbook Source.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Action updation time.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Action description.", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource-group name for an action. By default, action is created in default resource group.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "command_parameter", + "type": "TypeString", + "description": "Schematics job command parameter (playbook-name).", + "computed": true + }, + { + "name": "bastion_credential", "type": "TypeList", - "description": "Input variables for the Action.", + "description": "User editable variable data \u0026 system generated reference to value.", "computed": true, "elem": { "link": { @@ -73493,48 +73542,57 @@ } }, { - "name": "source_updated_by", + "name": "source_created_at", "type": "TypeString", - "description": "E-mail address of user who updated the action playbook source.", + "description": "Action Playbook Source creation time.", "computed": true }, { - "name": "source_updated_at", + "name": "source_updated_by", "type": "TypeString", - "description": "The action playbook updation time.", + "description": "E-mail address of user who updated the action playbook source.", "computed": true }, { - "name": "state", + "name": "playbook_names", "type": "TypeList", - "description": "Computed state of the Action.", + "description": "Playbook names retrieved from the respository.", "computed": true, "elem": { - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of automation (workspace or action).", + "type": "TypeString" + } + }, + { + "name": "sys_lock", + "type": "TypeList", + "description": "System lock status.", + "computed": true, + "elem": { + "sys_locked": { + "name": "sys_locked", + "type": "TypeBool", + "description": "Is the automation locked by a Schematic job ?.", "computed": true }, - "status_job_id": { - "name": "status_job_id", + "sys_locked_at": { + "name": "sys_locked_at", "type": "TypeString", - "description": "Job id reference for this status.", + "description": "When the User performed the job that lead to locking of the automation ?.", "computed": true }, - "status_message": { - "name": "status_message", + "sys_locked_by": { + "name": "sys_locked_by", "type": "TypeString", - "description": "Automation status message - to be displayed along with the status_code.", + "description": "Name of the User who performed the job, that lead to the locking of the automation.", "computed": true } } }, { - "name": "name", + "name": "action_id", "type": "TypeString", - "description": "The unique name of your action. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores. **Example** you can use the name to stop action.", - "computed": true + "description": "Action Id. Use GET /actions API to look up the Action Ids in your IBM Cloud account.", + "required": true }, { "name": "location", @@ -73544,6 +73602,16 @@ "optional": true, "computed": true }, + { + "name": "tags", + "type": "TypeList", + "description": "Action tags.", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "credentials", "type": "TypeList", @@ -73643,58 +73711,11 @@ "computed": true }, { - "name": "source_created_by", - "type": "TypeString", - "description": "E-mail address of user who created the Action Playbook Source.", - "computed": true - }, - { - "name": "action_id", - "type": "TypeString", - "description": "Action Id. Use GET /actions API to look up the Action Ids in your IBM Cloud account.", - "required": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "Action creation time.", - "computed": true - }, - { - "name": "playbook_names", - "type": "TypeList", - "description": "Playbook names retrieved from the respository.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "source_readme_url", + "name": "inventory", "type": "TypeString", - "description": "URL of the `README` file, for the source URL.", + "description": "Target inventory record ID, used by the action or ansible playbook.", "computed": true }, - { - "name": "bastion", - "type": "TypeList", - "description": "Describes a bastion resource.", - "computed": true, - "elem": { - "host": { - "name": "host", - "type": "TypeString", - "description": "Reference to the Inventory resource definition.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Bastion Name(Unique).", - "computed": true - } - } - }, { "name": "targets_ini", "type": "TypeString", @@ -73702,41 +73723,15 @@ "computed": true }, { - "name": "account", + "name": "created_at", "type": "TypeString", - "description": "Action account ID.", + "description": "Action creation time.", "computed": true }, { - "name": "user_state", - "type": "TypeList", - "description": "User defined status of the Schematics object.", - "computed": true, - "elem": { - "set_at": { - "name": "set_at", - "type": "TypeString", - "description": "When the User who set the state of the Object.", - "computed": true - }, - "set_by": { - "name": "set_by", - "type": "TypeString", - "description": "Name of the User who set the state of the Object.", - "computed": true - }, - "state": { - "name": "state", - "type": "TypeString", - "description": "User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution.", - "computed": true - } - } - }, - { - "name": "command_parameter", + "name": "name", "type": "TypeString", - "description": "Schematics job command parameter (playbook-name).", + "description": "The unique name of your action. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores. **Example** you can use the name to stop action.", "computed": true }, { @@ -73876,60 +73871,27 @@ } }, { - "name": "updated_by", - "type": "TypeString", - "description": "E-mail address of the user who updated an action.", - "computed": true - }, - { - "name": "sys_lock", - "type": "TypeList", - "description": "System lock status.", - "computed": true, - "elem": { - "sys_locked": { - "name": "sys_locked", - "type": "TypeBool", - "description": "Is the automation locked by a Schematic job ?.", - "computed": true - }, - "sys_locked_at": { - "name": "sys_locked_at", - "type": "TypeString", - "description": "When the User performed the job that lead to locking of the automation ?.", - "computed": true - }, - "sys_locked_by": { - "name": "sys_locked_by", - "type": "TypeString", - "description": "Name of the User who performed the job, that lead to the locking of the automation.", - "computed": true - } - } - }, - { - "name": "source_created_at", + "name": "created_by", "type": "TypeString", - "description": "Action Playbook Source creation time.", + "description": "E-mail address of the user who created an action.", "computed": true }, { - "name": "updated_at", + "name": "source_readme_url", "type": "TypeString", - "description": "Action updation time.", + "description": "URL of the `README` file, for the source URL.", "computed": true }, { - "name": "description", + "name": "account", "type": "TypeString", - "description": "Action description.", + "description": "Action account ID.", "computed": true }, { - "name": "resource_group", + "name": "updated_by", "type": "TypeString", - "description": "Resource-group name for an action. By default, action is created in default resource group.", - "cloud_data_type": "resource_group", + "description": "E-mail address of the user who updated an action.", "computed": true }, { @@ -74181,15 +74143,204 @@ "computed": true } } + }, + { + "name": "source_updated_at", + "type": "TypeString", + "description": "The action playbook updation time.", + "computed": true + }, + { + "name": "state", + "type": "TypeList", + "description": "Computed state of the Action.", + "computed": true, + "elem": { + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of automation (workspace or action).", + "computed": true + }, + "status_job_id": { + "name": "status_job_id", + "type": "TypeString", + "description": "Job id reference for this status.", + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "Automation status message - to be displayed along with the status_code.", + "computed": true + } + } } ], "ibm_schematics_agent": [ + { + "name": "resource_group", + "type": "TypeString", + "description": "The resource-group name for the agent. By default, agent will be registered in Default Resource Group.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "schematics_location", + "type": "TypeString", + "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "computed": true + }, + { + "name": "agent_infrastructure", + "type": "TypeList", + "description": "The infrastructure parameters used by the agent.", + "computed": true, + "elem": { + "cluster_id": { + "name": "cluster_id", + "type": "TypeString", + "description": "The cluster ID where agent services will be running.", + "computed": true + }, + "cluster_resource_group": { + "name": "cluster_resource_group", + "type": "TypeString", + "description": "The resource group of the cluster (is it required?).", + "computed": true + }, + "cos_bucket_name": { + "name": "cos_bucket_name", + "type": "TypeString", + "description": "The COS bucket name used to store the logs.", + "computed": true + }, + "cos_bucket_region": { + "name": "cos_bucket_region", + "type": "TypeString", + "description": "The COS bucket region.", + "computed": true + }, + "cos_instance_name": { + "name": "cos_instance_name", + "type": "TypeString", + "description": "The COS instance name to store the agent logs.", + "computed": true + }, + "infra_type": { + "name": "infra_type", + "type": "TypeString", + "description": "Type of target agent infrastructure.", + "computed": true + } + } + }, { "name": "created_at", "type": "TypeString", "description": "The agent creation date-time.", "computed": true }, + { + "name": "system_state", + "type": "TypeList", + "description": "Computed state of the agent.", + "computed": true, + "elem": { + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Agent Status.", + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "The agent status message.", + "computed": true + } + } + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the agent (must be unique, for an account).", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Agent description.", + "computed": true + }, + { + "name": "agent_crn", + "type": "TypeString", + "description": "The agent crn, obtained from the Schematics agent deployment configuration.", + "computed": true + }, + { + "name": "updated_by", + "type": "TypeString", + "description": "Email address of user who updated the agent registration.", + "computed": true + }, + { + "name": "agent_kpi", + "type": "TypeList", + "description": "Schematics Agent key performance indicators.", + "computed": true, + "elem": { + "application_indicators": { + "name": "application_indicators", + "type": "TypeList", + "description": "Agent application key performance indicators.", + "computed": true, + "elem": { + "type": "TypeMap" + } + }, + "availability_indicator": { + "name": "availability_indicator", + "type": "TypeString", + "description": "Overall availability indicator reported by the agent.", + "computed": true + }, + "infra_indicators": { + "name": "infra_indicators", + "type": "TypeList", + "description": "Agent infrastructure key performance indicators.", + "computed": true, + "elem": { + "type": "TypeMap" + } + }, + "lifecycle_indicator": { + "name": "lifecycle_indicator", + "type": "TypeString", + "description": "Overall lifecycle indicator reported by the agents.", + "computed": true + }, + "percent_usage_indicator": { + "name": "percent_usage_indicator", + "type": "TypeString", + "description": "Percentage usage of the agent resources.", + "computed": true + } + } + }, + { + "name": "agent_id", + "type": "TypeString", + "description": "Agent ID to get the details of agent.", + "required": true + }, + { + "name": "agent_location", + "type": "TypeString", + "description": "The location where agent is deployed in the user environment.", + "computed": true + }, { "name": "updated_at", "type": "TypeString", @@ -74253,53 +74404,15 @@ } }, { - "name": "version", - "type": "TypeString", - "description": "Agent version.", - "computed": true - }, - { - "name": "agent_crn", - "type": "TypeString", - "description": "The agent crn, obtained from the Schematics agent deployment configuration.", - "computed": true - }, - { - "name": "id", - "type": "TypeString", - "description": "The agent resource id.", - "computed": true - }, - { - "name": "updated_by", + "name": "creation_by", "type": "TypeString", - "description": "Email address of user who updated the agent registration.", + "description": "The email address of an user who created the agent.", "computed": true }, { - "name": "system_state", - "type": "TypeList", - "description": "Computed state of the agent.", - "computed": true, - "elem": { - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Agent Status.", - "computed": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "The agent status message.", - "computed": true - } - } - }, - { - "name": "recent_health_job", + "name": "recent_deploy_job", "type": "TypeList", - "description": "Agent health check.", + "description": "Post-installations checks for Agent health.", "computed": true, "elem": { "agent_id": { @@ -74314,6 +74427,12 @@ "description": "Agent version.", "computed": true }, + "is_redeployed": { + "name": "is_redeployed", + "type": "TypeBool", + "description": "True, when the same version of the agent was redeployed.", + "computed": true + }, "job_id": { "name": "job_id", "type": "TypeString", @@ -74323,31 +74442,31 @@ "log_url": { "name": "log_url", "type": "TypeString", - "description": "URL to the full health-check job logs.", + "description": "URL to the full agent deployment job logs.", "computed": true }, "status_code": { "name": "status_code", "type": "TypeString", - "description": "Final result of the health-check job.", + "description": "Final result of the agent deployment job.", "computed": true }, "status_message": { "name": "status_message", "type": "TypeString", - "description": "The outcome of the health-check job, in a formatted log string.", + "description": "The outcome of the agent deployment job, in a formatted log string.", "computed": true }, "updated_at": { "name": "updated_at", "type": "TypeString", - "description": "The agent health check job updation time.", + "description": "The agent deploy job updation time.", "computed": true }, "updated_by": { "name": "updated_by", "type": "TypeString", - "description": "Email address of user who ran the agent health check job.", + "description": "Email address of user who ran the agent deploy job.", "computed": true } } @@ -74362,6 +74481,12 @@ "type": "TypeString" } }, + { + "name": "version", + "type": "TypeString", + "description": "Agent version.", + "computed": true + }, { "name": "agent_metadata", "type": "TypeList", @@ -74385,139 +74510,6 @@ } } }, - { - "name": "user_state", - "type": "TypeList", - "description": "User defined status of the agent.", - "computed": true, - "elem": { - "set_at": { - "name": "set_at", - "type": "TypeString", - "description": "When the User who set the state of the Object.", - "computed": true - }, - "set_by": { - "name": "set_by", - "type": "TypeString", - "description": "Name of the User who set the state of the Object.", - "computed": true - }, - "state": { - "name": "state", - "type": "TypeString", - "description": "User-defined states * `enable` Agent is enabled by the user. * `disable` Agent is disbaled by the user.", - "computed": true - } - } - }, - { - "name": "agent_kpi", - "type": "TypeList", - "description": "Schematics Agent key performance indicators.", - "computed": true, - "elem": { - "application_indicators": { - "name": "application_indicators", - "type": "TypeList", - "description": "Agent application key performance indicators.", - "computed": true, - "elem": { - "type": "TypeMap" - } - }, - "availability_indicator": { - "name": "availability_indicator", - "type": "TypeString", - "description": "Overall availability indicator reported by the agent.", - "computed": true - }, - "infra_indicators": { - "name": "infra_indicators", - "type": "TypeList", - "description": "Agent infrastructure key performance indicators.", - "computed": true, - "elem": { - "type": "TypeMap" - } - }, - "lifecycle_indicator": { - "name": "lifecycle_indicator", - "type": "TypeString", - "description": "Overall lifecycle indicator reported by the agents.", - "computed": true - }, - "percent_usage_indicator": { - "name": "percent_usage_indicator", - "type": "TypeString", - "description": "Percentage usage of the agent resources.", - "computed": true - } - } - }, - { - "name": "description", - "type": "TypeString", - "description": "Agent description.", - "computed": true - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "The resource-group name for the agent. By default, agent will be registered in Default Resource Group.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "agent_infrastructure", - "type": "TypeList", - "description": "The infrastructure parameters used by the agent.", - "computed": true, - "elem": { - "cluster_id": { - "name": "cluster_id", - "type": "TypeString", - "description": "The cluster ID where agent services will be running.", - "computed": true - }, - "cluster_resource_group": { - "name": "cluster_resource_group", - "type": "TypeString", - "description": "The resource group of the cluster (is it required?).", - "computed": true - }, - "cos_bucket_name": { - "name": "cos_bucket_name", - "type": "TypeString", - "description": "The COS bucket name used to store the logs.", - "computed": true - }, - "cos_bucket_region": { - "name": "cos_bucket_region", - "type": "TypeString", - "description": "The COS bucket region.", - "computed": true - }, - "cos_instance_name": { - "name": "cos_instance_name", - "type": "TypeString", - "description": "The COS instance name to store the agent logs.", - "computed": true - }, - "infra_type": { - "name": "infra_type", - "type": "TypeString", - "description": "Type of target agent infrastructure.", - "computed": true - } - } - }, - { - "name": "agent_location", - "type": "TypeString", - "description": "The location where agent is deployed in the user environment.", - "computed": true - }, { "name": "agent_inputs", "type": "TypeList", @@ -74679,15 +74671,41 @@ } }, { - "name": "creation_by", + "name": "user_state", + "type": "TypeList", + "description": "User defined status of the agent.", + "computed": true, + "elem": { + "set_at": { + "name": "set_at", + "type": "TypeString", + "description": "When the User who set the state of the Object.", + "computed": true + }, + "set_by": { + "name": "set_by", + "type": "TypeString", + "description": "Name of the User who set the state of the Object.", + "computed": true + }, + "state": { + "name": "state", + "type": "TypeString", + "description": "User-defined states * `enable` Agent is enabled by the user. * `disable` Agent is disbaled by the user.", + "computed": true + } + } + }, + { + "name": "id", "type": "TypeString", - "description": "The email address of an user who created the agent.", + "description": "The agent resource id.", "computed": true }, { - "name": "recent_deploy_job", + "name": "recent_health_job", "type": "TypeList", - "description": "Post-installations checks for Agent health.", + "description": "Agent health check.", "computed": true, "elem": { "agent_id": { @@ -74702,12 +74720,6 @@ "description": "Agent version.", "computed": true }, - "is_redeployed": { - "name": "is_redeployed", - "type": "TypeBool", - "description": "True, when the same version of the agent was redeployed.", - "computed": true - }, "job_id": { "name": "job_id", "type": "TypeString", @@ -74717,55 +74729,55 @@ "log_url": { "name": "log_url", "type": "TypeString", - "description": "URL to the full agent deployment job logs.", + "description": "URL to the full health-check job logs.", "computed": true }, "status_code": { "name": "status_code", "type": "TypeString", - "description": "Final result of the agent deployment job.", + "description": "Final result of the health-check job.", "computed": true }, "status_message": { "name": "status_message", "type": "TypeString", - "description": "The outcome of the agent deployment job, in a formatted log string.", + "description": "The outcome of the health-check job, in a formatted log string.", "computed": true }, "updated_at": { "name": "updated_at", "type": "TypeString", - "description": "The agent deploy job updation time.", + "description": "The agent health check job updation time.", "computed": true }, "updated_by": { "name": "updated_by", "type": "TypeString", - "description": "Email address of user who ran the agent deploy job.", + "description": "Email address of user who ran the agent health check job.", "computed": true } } - }, + } + ], + "ibm_schematics_agent_deploy": [ { - "name": "agent_id", + "name": "status_code", "type": "TypeString", - "description": "Agent ID to get the details of agent.", - "required": true + "description": "Final result of the agent deployment job.", + "computed": true }, { - "name": "name", + "name": "status_message", "type": "TypeString", - "description": "The name of the agent (must be unique, for an account).", + "description": "The outcome of the agent deployment job, in a formatted log string.", "computed": true }, { - "name": "schematics_location", + "name": "log_url", "type": "TypeString", - "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "description": "URL to the full agent deployment job logs.", "computed": true - } - ], - "ibm_schematics_agent_deploy": [ + }, { "name": "agent_id", "type": "TypeString", @@ -74773,21 +74785,21 @@ "required": true }, { - "name": "agent_version", + "name": "updated_by", "type": "TypeString", - "description": "Agent version.", + "description": "Email address of user who ran the agent deploy job.", "computed": true }, { - "name": "log_url", - "type": "TypeString", - "description": "URL to the full agent deployment job logs.", + "name": "is_redeployed", + "type": "TypeBool", + "description": "True, when the same version of the agent was redeployed.", "computed": true }, { - "name": "status_message", + "name": "agent_version", "type": "TypeString", - "description": "The outcome of the agent deployment job, in a formatted log string.", + "description": "Agent version.", "computed": true }, { @@ -74801,27 +74813,33 @@ "type": "TypeString", "description": "The agent deploy job updation time.", "computed": true - }, + } + ], + "ibm_schematics_agent_health": [ { - "name": "updated_by", + "name": "status_message", "type": "TypeString", - "description": "Email address of user who ran the agent deploy job.", + "description": "The outcome of the health-check job, in a formatted log string.", "computed": true }, { - "name": "is_redeployed", - "type": "TypeBool", - "description": "True, when the same version of the agent was redeployed.", + "name": "log_url", + "type": "TypeString", + "description": "URL to the full health-check job logs.", "computed": true }, { - "name": "status_code", + "name": "agent_id", "type": "TypeString", - "description": "Final result of the agent deployment job.", + "description": "Agent ID to get the details of agent.", + "required": true + }, + { + "name": "job_id", + "type": "TypeString", + "description": "Job Id.", "computed": true - } - ], - "ibm_schematics_agent_health": [ + }, { "name": "updated_at", "type": "TypeString", @@ -74845,33 +74863,15 @@ "type": "TypeString", "description": "Final result of the health-check job.", "computed": true - }, - { - "name": "status_message", - "type": "TypeString", - "description": "The outcome of the health-check job, in a formatted log string.", - "computed": true - }, - { - "name": "log_url", - "type": "TypeString", - "description": "URL to the full health-check job logs.", - "computed": true - }, - { - "name": "agent_id", - "type": "TypeString", - "description": "Agent ID to get the details of agent.", - "required": true - }, + } + ], + "ibm_schematics_agent_prs": [ { "name": "job_id", "type": "TypeString", "description": "Job Id.", "computed": true - } - ], - "ibm_schematics_agent_prs": [ + }, { "name": "updated_at", "type": "TypeString", @@ -74913,12 +74913,6 @@ "type": "TypeString", "description": "Agent ID to get the details of agent.", "required": true - }, - { - "name": "job_id", - "type": "TypeString", - "description": "Job Id.", - "computed": true } ], "ibm_schematics_agents": [ @@ -75104,15 +75098,28 @@ ], "ibm_schematics_inventory": [ { - "name": "updated_at", + "name": "id", "type": "TypeString", - "description": "Inventory updation time.", + "description": "Inventory id.", "computed": true }, { - "name": "inventories_ini", + "name": "description", "type": "TypeString", - "description": "Input inventory of host and host group for the playbook, in the .ini file format.", + "description": "The description of your Inventory. The description can be up to 2048 characters long in size.", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource-group name for the Inventory definition. By default, Inventory will be created in Default Resource Group.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "Inventory creation time.", "computed": true }, { @@ -75130,16 +75137,66 @@ "description": "Resource Inventory Id. Use `GET /v2/inventories` API to look up the Resource Inventory definition Ids in your IBM Cloud account.", "required": true }, + { + "name": "location", + "type": "TypeString", + "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "cloud_data_type": "region", + "optional": true, + "computed": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "Email address of user who created the Inventory.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Inventory updation time.", + "computed": true + }, + { + "name": "updated_by", + "type": "TypeString", + "description": "Email address of user who updated the Inventory.", + "computed": true + }, + { + "name": "inventories_ini", + "type": "TypeString", + "description": "Input inventory of host and host group for the playbook, in the .ini file format.", + "computed": true + }, { "name": "name", "type": "TypeString", "description": "The unique name of your Inventory. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores.", "computed": true + } + ], + "ibm_schematics_job": [ + { + "name": "tags", + "type": "TypeList", + "description": "User defined tags, while running the job.", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "id", + "type": "TypeString", + "description": "Job ID.", + "computed": true }, { - "name": "description", + "name": "name", "type": "TypeString", - "description": "The description of your Inventory. The description can be up to 2048 characters long in size.", + "description": "Job name, uniquely derived from the related Workspace or Action.", "computed": true }, { @@ -75151,49 +75208,75 @@ "computed": true }, { - "name": "created_at", + "name": "submitted_by", "type": "TypeString", - "description": "Inventory creation time.", + "description": "Email address of user who submitted the job.", "computed": true }, { - "name": "id", + "name": "log_store_url", "type": "TypeString", - "description": "Inventory id.", + "description": "Job log store URL.", "computed": true }, { - "name": "resource_group", + "name": "command_options", + "type": "TypeList", + "description": "Command line options for the command.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "duration", "type": "TypeString", - "description": "Resource-group name for the Inventory definition. By default, Inventory will be created in Default Resource Group.", - "cloud_data_type": "resource_group", + "description": "Duration of job execution; example 40 sec.", "computed": true }, { - "name": "created_by", + "name": "bastion", + "type": "TypeList", + "description": "Describes a bastion resource.", + "computed": true, + "elem": { + "host": { + "name": "host", + "type": "TypeString", + "description": "Reference to the Inventory resource definition.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Bastion Name(Unique).", + "computed": true + } + } + }, + { + "name": "resource_group", "type": "TypeString", - "description": "Email address of user who created the Inventory.", + "description": "Resource-group name derived from the related Workspace or Action.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "updated_by", + "name": "updated_at", "type": "TypeString", - "description": "Email address of user who updated the Inventory.", + "description": "Job status updation timestamp.", "computed": true - } - ], - "ibm_schematics_job": [ + }, { - "name": "resource_group", + "name": "description", "type": "TypeString", - "description": "Resource-group name derived from the related Workspace or Action.", - "cloud_data_type": "resource_group", + "description": "The description of your job is derived from the related action or workspace. The description can be up to 2048 characters long in size.", "computed": true }, { - "name": "submitted_by", + "name": "end_at", "type": "TypeString", - "description": "Email address of user who submitted the job.", + "description": "Job end time.", "computed": true }, { @@ -75493,13 +75576,34 @@ } }, { - "name": "command_options", - "type": "TypeList", - "description": "Command line options for the command.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "results_url", + "type": "TypeString", + "description": "Job results store URL.", + "computed": true + }, + { + "name": "command_name", + "type": "TypeString", + "description": "Schematics job command name.", + "computed": true + }, + { + "name": "state_store_url", + "type": "TypeString", + "description": "Job state store URL.", + "computed": true + }, + { + "name": "start_at", + "type": "TypeString", + "description": "Job start time.", + "computed": true + }, + { + "name": "command_parameter", + "type": "TypeString", + "description": "Schematics job command parameter (playbook-name).", + "computed": true }, { "name": "job_env_settings", @@ -75638,21 +75742,367 @@ } }, { - "name": "tags", + "name": "status", "type": "TypeList", - "description": "User defined tags, while running the job.", - "cloud_data_type": "tags", + "description": "Job Status.", "computed": true, "elem": { - "type": "TypeString" + "action_job_status": { + "name": "action_job_status", + "type": "TypeList", + "description": "Action Job Status.", + "computed": true, + "elem": { + "action_name": { + "name": "action_name", + "type": "TypeString", + "description": "Action name.", + "computed": true + }, + "bastion_status_code": { + "name": "bastion_status_code", + "type": "TypeString", + "description": "Status of Resources.", + "computed": true + }, + "bastion_status_message": { + "name": "bastion_status_message", + "type": "TypeString", + "description": "Bastion status message - to be displayed along with the bastion_status_code;.", + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "Action Job status message - to be displayed along with the action_status_code.", + "computed": true + }, + "targets_status_code": { + "name": "targets_status_code", + "type": "TypeString", + "description": "Status of Resources.", + "computed": true + }, + "targets_status_message": { + "name": "targets_status_message", + "type": "TypeString", + "description": "Aggregated status message for all target resources, to be displayed along with the targets_status_code;.", + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", + "computed": true + } + } + }, + "flow_job_status": { + "name": "flow_job_status", + "type": "TypeList", + "description": "Environment Flow JOB Status.", + "computed": true, + "elem": { + "flow_id": { + "name": "flow_id", + "type": "TypeString", + "description": "flow id.", + "computed": true + }, + "flow_name": { + "name": "flow_name", + "type": "TypeString", + "description": "flow name.", + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "Flow Job status message - to be displayed along with the status_code;.", + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", + "computed": true + }, + "workitems": { + "name": "workitems", + "type": "TypeList", + "description": "Environment's individual workItem status details;.", + "computed": true, + "elem": { + "job_id": { + "name": "job_id", + "type": "TypeString", + "description": "workspace job id.", + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "workitem job status message;.", + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "workitem job status updation timestamp.", + "computed": true + }, + "workspace_id": { + "name": "workspace_id", + "type": "TypeString", + "description": "Workspace id.", + "computed": true + }, + "workspace_name": { + "name": "workspace_name", + "type": "TypeString", + "description": "workspace name.", + "computed": true + } + } + } + } + }, + "system_job_status": { + "name": "system_job_status", + "type": "TypeList", + "description": "System Job Status.", + "computed": true, + "elem": { + "schematics_resource_status": { + "name": "schematics_resource_status", + "type": "TypeList", + "description": "job staus for each schematics resource.", + "computed": true, + "elem": { + "schematics_resource_id": { + "name": "schematics_resource_id", + "type": "TypeString", + "description": "id for each resource which is targeted as a part of system job.", + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "system job status message.", + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", + "computed": true + } + } + }, + "system_status_code": { + "name": "system_status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "computed": true + }, + "system_status_message": { + "name": "system_status_message", + "type": "TypeString", + "description": "System job message.", + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", + "computed": true + } + } + }, + "workspace_job_status": { + "name": "workspace_job_status", + "type": "TypeList", + "description": "Workspace Job Status.", + "computed": true, + "elem": { + "flow_status": { + "name": "flow_status", + "type": "TypeList", + "description": "Environment Flow JOB Status.", + "computed": true, + "elem": { + "flow_id": { + "name": "flow_id", + "type": "TypeString", + "description": "flow id.", + "computed": true + }, + "flow_name": { + "name": "flow_name", + "type": "TypeString", + "description": "flow name.", + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "Flow Job status message - to be displayed along with the status_code;.", + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", + "computed": true + }, + "workitems": { + "name": "workitems", + "type": "TypeList", + "description": "Environment's individual workItem status details;.", + "computed": true, + "elem": { + "job_id": { + "name": "job_id", + "type": "TypeString", + "description": "workspace job id.", + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "workitem job status message;.", + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "workitem job status updation timestamp.", + "computed": true + }, + "workspace_id": { + "name": "workspace_id", + "type": "TypeString", + "description": "Workspace id.", + "computed": true + }, + "workspace_name": { + "name": "workspace_name", + "type": "TypeString", + "description": "workspace name.", + "computed": true + } + } + } + } + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "Workspace job status message (eg. App1_Setup_Pending, for a 'Setup' flow in the 'App1' Workspace).", + "computed": true + }, + "template_status": { + "name": "template_status", + "type": "TypeList", + "description": "Workspace Flow Template job status.", + "computed": true, + "elem": { + "flow_index": { + "name": "flow_index", + "type": "TypeInt", + "description": "Index of the template in the Flow.", + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of Jobs.", + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "Template job status message (eg. VPCt1_Apply_Pending, for a 'VPCt1' Template).", + "computed": true + }, + "template_id": { + "name": "template_id", + "type": "TypeString", + "description": "Template Id.", + "computed": true + }, + "template_name": { + "name": "template_name", + "type": "TypeString", + "description": "Template name.", + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", + "computed": true + } + } + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "Job status updation timestamp.", + "computed": true + }, + "workspace_name": { + "name": "workspace_name", + "type": "TypeString", + "description": "Workspace name.", + "computed": true + } + } + } } }, - { - "name": "duration", - "type": "TypeString", - "description": "Duration of job execution; example 40 sec.", - "computed": true - }, { "name": "command_object", "type": "TypeString", @@ -75666,63 +76116,145 @@ "computed": true }, { - "name": "submitted_at", - "type": "TypeString", - "description": "Job submission time.", - "computed": true - }, - { - "name": "command_parameter", - "type": "TypeString", - "description": "Schematics job command parameter (playbook-name).", - "computed": true - }, - { - "name": "state_store_url", - "type": "TypeString", - "description": "Job state store URL.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Job status updation timestamp.", - "computed": true - }, - { - "name": "command_name", - "type": "TypeString", - "description": "Schematics job command name.", - "computed": true - }, - { - "name": "end_at", - "type": "TypeString", - "description": "Job end time.", - "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "The description of your job is derived from the related action or workspace. The description can be up to 2048 characters long in size.", - "computed": true - }, - { - "name": "start_at", - "type": "TypeString", - "description": "Job start time.", - "computed": true - }, - { - "name": "results_url", - "type": "TypeString", - "description": "Job results store URL.", - "computed": true + "name": "job_inputs", + "type": "TypeList", + "description": "Job inputs used by Action or Workspace.", + "computed": true, + "elem": { + "link": { + "name": "link", + "type": "TypeString", + "description": "Reference link to the variable value By default the expression will point to self.value.", + "computed": true + }, + "metadata": { + "name": "metadata", + "type": "TypeList", + "description": "User editable metadata for the variables.", + "computed": true, + "elem": { + "aliases": { + "name": "aliases", + "type": "TypeList", + "description": "List of aliases for the variable name.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "default_value": { + "name": "default_value", + "type": "TypeString", + "description": "Default value for the variable, if the override value is not specified.", + "computed": true + }, + "description": { + "name": "description", + "type": "TypeString", + "description": "Description of the meta data.", + "computed": true + }, + "group_by": { + "name": "group_by", + "type": "TypeString", + "description": "Display name of the group this variable belongs to.", + "computed": true + }, + "hidden": { + "name": "hidden", + "type": "TypeBool", + "description": "If true, the variable will not be displayed on UI or CLI.", + "computed": true + }, + "immutable": { + "name": "immutable", + "type": "TypeBool", + "description": "Is the variable readonly ?.", + "computed": true + }, + "matches": { + "name": "matches", + "type": "TypeString", + "description": "Regex for the variable value.", + "computed": true + }, + "max_length": { + "name": "max_length", + "type": "TypeInt", + "description": "Maximum length of the variable value. Applicable for string type.", + "computed": true + }, + "max_value": { + "name": "max_value", + "type": "TypeInt", + "description": "Maximum value of the variable. Applicable for integer type.", + "computed": true + }, + "min_length": { + "name": "min_length", + "type": "TypeInt", + "description": "Minimum length of the variable value. Applicable for string type.", + "computed": true + }, + "min_value": { + "name": "min_value", + "type": "TypeInt", + "description": "Minimum value of the variable. Applicable for integer type.", + "computed": true + }, + "options": { + "name": "options", + "type": "TypeList", + "description": "List of possible values for this variable. If type is integer or date, then the array of string will be converted to array of integers or date during runtime.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "position": { + "name": "position", + "type": "TypeInt", + "description": "Relative position of this variable in a list.", + "computed": true + }, + "secure": { + "name": "secure", + "type": "TypeBool", + "description": "Is the variable secure or sensitive ?.", + "computed": true + }, + "source": { + "name": "source", + "type": "TypeString", + "description": "Source of this meta-data.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of the variable.", + "computed": true + } + } + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the variable.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Value for the variable or reference to the value.", + "computed": true + } + } }, { - "name": "id", + "name": "submitted_at", "type": "TypeString", - "description": "Job ID.", + "description": "Job submission time.", "computed": true }, { @@ -77783,564 +78315,14 @@ } } }, - { - "name": "bastion", - "type": "TypeList", - "description": "Describes a bastion resource.", - "computed": true, - "elem": { - "host": { - "name": "host", - "type": "TypeString", - "description": "Reference to the Inventory resource definition.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Bastion Name(Unique).", - "computed": true - } - } - }, - { - "name": "job_inputs", - "type": "TypeList", - "description": "Job inputs used by Action or Workspace.", - "computed": true, - "elem": { - "link": { - "name": "link", - "type": "TypeString", - "description": "Reference link to the variable value By default the expression will point to self.value.", - "computed": true - }, - "metadata": { - "name": "metadata", - "type": "TypeList", - "description": "User editable metadata for the variables.", - "computed": true, - "elem": { - "aliases": { - "name": "aliases", - "type": "TypeList", - "description": "List of aliases for the variable name.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "default_value": { - "name": "default_value", - "type": "TypeString", - "description": "Default value for the variable, if the override value is not specified.", - "computed": true - }, - "description": { - "name": "description", - "type": "TypeString", - "description": "Description of the meta data.", - "computed": true - }, - "group_by": { - "name": "group_by", - "type": "TypeString", - "description": "Display name of the group this variable belongs to.", - "computed": true - }, - "hidden": { - "name": "hidden", - "type": "TypeBool", - "description": "If true, the variable will not be displayed on UI or CLI.", - "computed": true - }, - "immutable": { - "name": "immutable", - "type": "TypeBool", - "description": "Is the variable readonly ?.", - "computed": true - }, - "matches": { - "name": "matches", - "type": "TypeString", - "description": "Regex for the variable value.", - "computed": true - }, - "max_length": { - "name": "max_length", - "type": "TypeInt", - "description": "Maximum length of the variable value. Applicable for string type.", - "computed": true - }, - "max_value": { - "name": "max_value", - "type": "TypeInt", - "description": "Maximum value of the variable. Applicable for integer type.", - "computed": true - }, - "min_length": { - "name": "min_length", - "type": "TypeInt", - "description": "Minimum length of the variable value. Applicable for string type.", - "computed": true - }, - "min_value": { - "name": "min_value", - "type": "TypeInt", - "description": "Minimum value of the variable. Applicable for integer type.", - "computed": true - }, - "options": { - "name": "options", - "type": "TypeList", - "description": "List of possible values for this variable. If type is integer or date, then the array of string will be converted to array of integers or date during runtime.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "position": { - "name": "position", - "type": "TypeInt", - "description": "Relative position of this variable in a list.", - "computed": true - }, - "secure": { - "name": "secure", - "type": "TypeBool", - "description": "Is the variable secure or sensitive ?.", - "computed": true - }, - "source": { - "name": "source", - "type": "TypeString", - "description": "Source of this meta-data.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of the variable.", - "computed": true - } - } - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the variable.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Value for the variable or reference to the value.", - "computed": true - } - } - }, - { - "name": "log_store_url", - "type": "TypeString", - "description": "Job log store URL.", - "computed": true - }, - { - "name": "status", - "type": "TypeList", - "description": "Job Status.", - "computed": true, - "elem": { - "action_job_status": { - "name": "action_job_status", - "type": "TypeList", - "description": "Action Job Status.", - "computed": true, - "elem": { - "action_name": { - "name": "action_name", - "type": "TypeString", - "description": "Action name.", - "computed": true - }, - "bastion_status_code": { - "name": "bastion_status_code", - "type": "TypeString", - "description": "Status of Resources.", - "computed": true - }, - "bastion_status_message": { - "name": "bastion_status_message", - "type": "TypeString", - "description": "Bastion status message - to be displayed along with the bastion_status_code;.", - "computed": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "computed": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "Action Job status message - to be displayed along with the action_status_code.", - "computed": true - }, - "targets_status_code": { - "name": "targets_status_code", - "type": "TypeString", - "description": "Status of Resources.", - "computed": true - }, - "targets_status_message": { - "name": "targets_status_message", - "type": "TypeString", - "description": "Aggregated status message for all target resources, to be displayed along with the targets_status_code;.", - "computed": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "Job status updation timestamp.", - "computed": true - } - } - }, - "flow_job_status": { - "name": "flow_job_status", - "type": "TypeList", - "description": "Environment Flow JOB Status.", - "computed": true, - "elem": { - "flow_id": { - "name": "flow_id", - "type": "TypeString", - "description": "flow id.", - "computed": true - }, - "flow_name": { - "name": "flow_name", - "type": "TypeString", - "description": "flow name.", - "computed": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "computed": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "Flow Job status message - to be displayed along with the status_code;.", - "computed": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "Job status updation timestamp.", - "computed": true - }, - "workitems": { - "name": "workitems", - "type": "TypeList", - "description": "Environment's individual workItem status details;.", - "computed": true, - "elem": { - "job_id": { - "name": "job_id", - "type": "TypeString", - "description": "workspace job id.", - "computed": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "computed": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "workitem job status message;.", - "computed": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "workitem job status updation timestamp.", - "computed": true - }, - "workspace_id": { - "name": "workspace_id", - "type": "TypeString", - "description": "Workspace id.", - "computed": true - }, - "workspace_name": { - "name": "workspace_name", - "type": "TypeString", - "description": "workspace name.", - "computed": true - } - } - } - } - }, - "system_job_status": { - "name": "system_job_status", - "type": "TypeList", - "description": "System Job Status.", - "computed": true, - "elem": { - "schematics_resource_status": { - "name": "schematics_resource_status", - "type": "TypeList", - "description": "job staus for each schematics resource.", - "computed": true, - "elem": { - "schematics_resource_id": { - "name": "schematics_resource_id", - "type": "TypeString", - "description": "id for each resource which is targeted as a part of system job.", - "computed": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "computed": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "system job status message.", - "computed": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "Job status updation timestamp.", - "computed": true - } - } - }, - "system_status_code": { - "name": "system_status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "computed": true - }, - "system_status_message": { - "name": "system_status_message", - "type": "TypeString", - "description": "System job message.", - "computed": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "Job status updation timestamp.", - "computed": true - } - } - }, - "workspace_job_status": { - "name": "workspace_job_status", - "type": "TypeList", - "description": "Workspace Job Status.", - "computed": true, - "elem": { - "flow_status": { - "name": "flow_status", - "type": "TypeList", - "description": "Environment Flow JOB Status.", - "computed": true, - "elem": { - "flow_id": { - "name": "flow_id", - "type": "TypeString", - "description": "flow id.", - "computed": true - }, - "flow_name": { - "name": "flow_name", - "type": "TypeString", - "description": "flow name.", - "computed": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "computed": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "Flow Job status message - to be displayed along with the status_code;.", - "computed": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "Job status updation timestamp.", - "computed": true - }, - "workitems": { - "name": "workitems", - "type": "TypeList", - "description": "Environment's individual workItem status details;.", - "computed": true, - "elem": { - "job_id": { - "name": "job_id", - "type": "TypeString", - "description": "workspace job id.", - "computed": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "computed": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "workitem job status message;.", - "computed": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "workitem job status updation timestamp.", - "computed": true - }, - "workspace_id": { - "name": "workspace_id", - "type": "TypeString", - "description": "Workspace id.", - "computed": true - }, - "workspace_name": { - "name": "workspace_name", - "type": "TypeString", - "description": "workspace name.", - "computed": true - } - } - } - } - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "computed": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "Workspace job status message (eg. App1_Setup_Pending, for a 'Setup' flow in the 'App1' Workspace).", - "computed": true - }, - "template_status": { - "name": "template_status", - "type": "TypeList", - "description": "Workspace Flow Template job status.", - "computed": true, - "elem": { - "flow_index": { - "name": "flow_index", - "type": "TypeInt", - "description": "Index of the template in the Flow.", - "computed": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of Jobs.", - "computed": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "Template job status message (eg. VPCt1_Apply_Pending, for a 'VPCt1' Template).", - "computed": true - }, - "template_id": { - "name": "template_id", - "type": "TypeString", - "description": "Template Id.", - "computed": true - }, - "template_name": { - "name": "template_name", - "type": "TypeString", - "description": "Template name.", - "computed": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "Job status updation timestamp.", - "computed": true - } - } - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "Job status updation timestamp.", - "computed": true - }, - "workspace_name": { - "name": "workspace_name", - "type": "TypeString", - "description": "Workspace name.", - "computed": true - } - } - } - } - }, { "name": "job_id", "type": "TypeString", "description": "Job Id. Use `GET /v2/jobs` API to look up the Job Ids in your IBM Cloud account.", "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Job name, uniquely derived from the related Workspace or Action.", - "computed": true - }, - { - "name": "location", - "type": "TypeString", - "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", - "cloud_data_type": "region", - "optional": true, - "computed": true } ], "ibm_schematics_output": [ - { - "name": "output_json", - "type": "TypeString", - "description": "The json output in string", - "optional": true - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this Workspace", - "computed": true - }, { "name": "workspace_id", "type": "TypeString", @@ -78364,33 +78346,21 @@ "name": "output_values", "type": "TypeMap", "computed": true - } - ], - "ibm_schematics_policies": [ + }, { - "name": "policy_kind", + "name": "output_json", "type": "TypeString", - "description": "Policy kind or categories for managing and deriving policy decision * `agent_assignment_policy` Agent assignment policy for job execution.", + "description": "The json output in string", "optional": true }, { - "name": "total_count", - "type": "TypeInt", - "description": "The total number of policy records.", - "computed": true - }, - { - "name": "limit", - "type": "TypeInt", - "description": "The number of policy records returned.", - "computed": true - }, - { - "name": "offset", - "type": "TypeInt", - "description": "The skipped number of policy records.", + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this Workspace", "computed": true - }, + } + ], + "ibm_schematics_policies": [ { "name": "policies", "type": "TypeList", @@ -78499,19 +78469,33 @@ "computed": true } } + }, + { + "name": "policy_kind", + "type": "TypeString", + "description": "Policy kind or categories for managing and deriving policy decision * `agent_assignment_policy` Agent assignment policy for job execution.", + "optional": true + }, + { + "name": "total_count", + "type": "TypeInt", + "description": "The total number of policy records.", + "computed": true + }, + { + "name": "limit", + "type": "TypeInt", + "description": "The number of policy records returned.", + "computed": true + }, + { + "name": "offset", + "type": "TypeInt", + "description": "The skipped number of policy records.", + "computed": true } ], "ibm_schematics_policy": [ - { - "name": "tags", - "type": "TypeList", - "description": "Tags for the Schematics customization policy.", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "target", "type": "TypeList", @@ -78577,68 +78561,15 @@ } }, { - "name": "crn", - "type": "TypeString", - "description": "The policy CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "policy_id", - "type": "TypeString", - "description": "ID to get the details of policy.", - "required": true - }, - { - "name": "state", - "type": "TypeList", - "description": "User defined status of the Schematics object.", - "computed": true, - "elem": { - "set_at": { - "name": "set_at", - "type": "TypeString", - "description": "When the User who set the state of the Object.", - "computed": true - }, - "set_by": { - "name": "set_by", - "type": "TypeString", - "description": "Name of the User who set the state of the Object.", - "computed": true - }, - "state": { - "name": "state", - "type": "TypeString", - "description": "User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution.", - "computed": true - } - } - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "The resource group name for the policy. By default, Policy will be created in `default` Resource Group.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "location", - "type": "TypeString", - "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", - "cloud_data_type": "region", - "computed": true - }, - { - "name": "created_by", + "name": "created_at", "type": "TypeString", - "description": "The user who created the policy.", + "description": "The policy creation time.", "computed": true }, { - "name": "name", + "name": "updated_at", "type": "TypeString", - "description": "Name of Schematics customization policy.", + "description": "The policy updation time.", "computed": true }, { @@ -78647,50 +78578,6 @@ "description": "The description of Schematics customization policy.", "computed": true }, - { - "name": "id", - "type": "TypeString", - "description": "The system generated policy Id.", - "computed": true - }, - { - "name": "account", - "type": "TypeString", - "description": "The Account id.", - "computed": true - }, - { - "name": "scoped_resources", - "type": "TypeList", - "description": "List of scoped Schematics resources targeted by the policy.", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "Schematics resource Id.", - "computed": true - }, - "kind": { - "name": "kind", - "type": "TypeString", - "description": "Name of the Schematics automation resource.", - "computed": true - } - } - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The policy creation time.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "The policy updation time.", - "computed": true - }, { "name": "kind", "type": "TypeString", @@ -78768,9 +78655,140 @@ } } } + }, + { + "name": "account", + "type": "TypeString", + "description": "The Account id.", + "computed": true + }, + { + "name": "location", + "type": "TypeString", + "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "cloud_data_type": "region", + "computed": true + }, + { + "name": "id", + "type": "TypeString", + "description": "The system generated policy Id.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The policy CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "policy_id", + "type": "TypeString", + "description": "ID to get the details of policy.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of Schematics customization policy.", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "The resource group name for the policy. By default, Policy will be created in `default` Resource Group.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "tags", + "type": "TypeList", + "description": "Tags for the Schematics customization policy.", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "state", + "type": "TypeList", + "description": "User defined status of the Schematics object.", + "computed": true, + "elem": { + "set_at": { + "name": "set_at", + "type": "TypeString", + "description": "When the User who set the state of the Object.", + "computed": true + }, + "set_by": { + "name": "set_by", + "type": "TypeString", + "description": "Name of the User who set the state of the Object.", + "computed": true + }, + "state": { + "name": "state", + "type": "TypeString", + "description": "User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution.", + "computed": true + } + } + }, + { + "name": "scoped_resources", + "type": "TypeList", + "description": "List of scoped Schematics resources targeted by the policy.", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "Schematics resource Id.", + "computed": true + }, + "kind": { + "name": "kind", + "type": "TypeString", + "description": "Name of the Schematics automation resource.", + "computed": true + } + } + }, + { + "name": "created_by", + "type": "TypeString", + "description": "The user who created the policy.", + "computed": true } ], "ibm_schematics_resource_query": [ + { + "name": "id", + "type": "TypeString", + "description": "Resource Query id.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "Resource query creation time.", + "computed": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "Email address of user who created the Resource query.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Resource query updation time.", + "computed": true + }, { "name": "location", "type": "TypeString", @@ -78779,15 +78797,15 @@ "optional": true }, { - "name": "name", + "name": "type", "type": "TypeString", - "description": "Resource query name.", + "description": "Resource type (cluster, vsi, icd, vpc).", "computed": true }, { - "name": "updated_at", + "name": "name", "type": "TypeString", - "description": "Resource query updation time.", + "description": "Resource query name.", "computed": true }, { @@ -78848,30 +78866,6 @@ "type": "TypeString", "description": "Resource query Id. Use `GET /v2/resource_query` API to look up the Resource query definition Ids in your IBM Cloud account.", "required": true - }, - { - "name": "type", - "type": "TypeString", - "description": "Resource type (cluster, vsi, icd, vpc).", - "computed": true - }, - { - "name": "id", - "type": "TypeString", - "description": "Resource Query id.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "Resource query creation time.", - "computed": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "Email address of user who created the Resource query.", - "computed": true } ], "ibm_schematics_state": [ @@ -78913,46 +78907,117 @@ ], "ibm_schematics_workspace": [ { - "name": "locked", + "name": "workspace_id", + "type": "TypeString", + "description": "The ID of the workspace. To find the workspace ID, use the `GET /v1/workspaces` API.", + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The description of the workspace.", + "computed": true + }, + { + "name": "shared_data", + "type": "TypeList", + "description": "Information about the Target used by the templates originating from IBM Cloud catalog offerings. This information is not relevant when you create a workspace from your own Terraform template.", + "computed": true, + "elem": { + "cluster_id": { + "name": "cluster_id", + "type": "TypeString", + "description": "The ID of the cluster where you want to provision the resources of all IBM Cloud catalog templates that are included in the catalog offering.", + "computed": true + }, + "cluster_name": { + "name": "cluster_name", + "type": "TypeString", + "description": "Target cluster name.", + "computed": true + }, + "entitlement_keys": { + "name": "entitlement_keys", + "type": "TypeList", + "description": "The entitlement key that you want to use to install IBM Cloud entitled software.", + "computed": true, + "elem": { + "type": "TypeMap" + } + }, + "namespace": { + "name": "namespace", + "type": "TypeString", + "description": "The Kubernetes namespace or OpenShift project where the resources of all IBM Cloud catalog templates that are included in the catalog offering are deployed into.", + "computed": true + }, + "region": { + "name": "region", + "type": "TypeString", + "description": "The IBM Cloud region that you want to use for the resources of all IBM Cloud catalog templates that are included in the catalog offering.", + "computed": true + }, + "resource_group_id": { + "name": "resource_group_id", + "type": "TypeString", + "description": "The ID of the resource group that you want to use for the resources of all IBM Cloud catalog templates that are included in the catalog offering.", + "computed": true + } + } + }, + { + "name": "template_git_has_uploadedgitrepotar", "type": "TypeBool", - "description": "If set to true, the workspace is locked and disabled for changes.", + "description": "Has uploaded Git repository tar.", + "optional": true, "computed": true }, { - "name": "locked_by", + "name": "frozen_by", "type": "TypeString", - "description": "The user ID that initiated a resource-related job, such as applying or destroying resources, that locked the workspace.", + "description": "The user ID that froze the workspace.", "computed": true }, { - "name": "description", + "name": "resource_group", "type": "TypeString", - "description": "The description of the workspace.", + "description": "The resource group the workspace was provisioned in.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "template_type", + "name": "tags", + "type": "TypeList", + "description": "A list of tags that are associated with the workspace.", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "template_init_state_file", "type": "TypeString", - "description": "The Terraform version that was used to run your Terraform code.", + "description": "Init state file.", "computed": true }, { - "name": "template_git_release", + "name": "template_git_repo_url", "type": "TypeString", - "description": "The repository release.", + "description": "The repository URL.", "computed": true }, { - "name": "template_git_repo_sha_value", + "name": "status_msg", "type": "TypeString", - "description": "The repository SHA value.", + "description": "The success or error message that was returned for the last plan, apply, or destroy job that ran against your workspace.", "computed": true }, { - "name": "is_frozen", - "type": "TypeBool", - "computed": true, - "deprecated": "use frozen instead" + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this workspace", + "computed": true }, { "name": "frozen", @@ -78961,11 +79026,19 @@ "computed": true }, { - "name": "is_locked", - "type": "TypeBool", - "description": "If set to true, the workspace is locked and disabled for changes.", + "name": "status_code", + "type": "TypeString", + "description": "The success or error code that was returned for the last plan, apply, or destroy job that ran against your workspace.", + "computed": true + }, + { + "name": "applied_shareddata_ids", + "type": "TypeList", + "description": "List of applied shared dataset ID.", "computed": true, - "deprecated": "Use locked instead" + "elem": { + "type": "TypeString" + } }, { "name": "catalog_ref", @@ -79029,45 +79102,6 @@ } } }, - { - "name": "last_health_check_at", - "type": "TypeString", - "description": "The timestamp when the last health check was performed by Schematics.", - "computed": true - }, - { - "name": "location", - "type": "TypeString", - "description": "The IBM Cloud location where your workspace was provisioned.", - "cloud_data_type": "region", - "optional": true, - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the workspace.", - "computed": true - }, - { - "name": "template_uninstall_script_name", - "type": "TypeString", - "description": "Uninstall script name.", - "computed": true - }, - { - "name": "updated_by", - "type": "TypeString", - "description": "The user ID that updated the workspace.", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The workspace CRN.", - "cloud_data_type": "crn", - "computed": true - }, { "name": "runtime_data", "type": "TypeList", @@ -79131,48 +79165,37 @@ } }, { - "name": "status", - "type": "TypeString", - "description": "The status of the workspace. **Active**: After you successfully ran your infrastructure code by applying your Terraform execution plan, the state of your workspace changes to `Active`. **Connecting**: Schematics tries to connect to the template in your source repo. If successfully connected, the template is downloaded and metadata, such as input parameters, is extracted. After the template is downloaded, the state of the workspace changes to `Scanning`. **Draft**: The workspace is created without a reference to a GitHub or GitLab repository. **Failed**: If errors occur during the execution of your infrastructure code in IBM Cloud Schematics, your workspace status is set to `Failed`. **Inactive**: The Terraform template was scanned successfully and the workspace creation is complete. You can now start running Schematics plan and apply jobs to provision the IBM Cloud resources that you specified in your template. If you have an `Active` workspace and decide to remove all your resources, your workspace is set to `Inactive` after all your resources are removed. **In progress**: When you instruct IBM Cloud Schematics to run your infrastructure code by applying your Terraform execution plan, the status of our workspace changes to `In progress`. **Scanning**: The download of the Terraform template is complete and vulnerability scanning started. If the scan is successful, the workspace state changes to `Inactive`. If errors in your template are found, the state changes to `Template Error`. **Stopped**: The Schematics plan, apply, or destroy job was cancelled manually. **Template Error**: The Schematics template contains errors and cannot be processed.", - "computed": true - }, - { - "name": "template_values", - "type": "TypeString", - "description": "A list of variable values that you want to apply during the Helm chart installation. The list must be provided in JSON format, such as `\"\"autoscaling: enabled: true minReplicas: 2\"`. The values that you define here override the default Helm chart values. This field is supported only for IBM Cloud catalog offerings that are provisioned by using the Terraform Helm provider.", - "computed": true - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this workspace", - "computed": true - }, - { - "name": "applied_shareddata_ids", - "type": "TypeList", - "description": "List of applied shared dataset ID.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "tags", + "name": "template_env_settings", "type": "TypeList", - "description": "A list of tags that are associated with the workspace.", - "cloud_data_type": "tags", + "description": "List of environment values.", "computed": true, "elem": { - "type": "TypeString" + "hidden": { + "name": "hidden", + "type": "TypeBool", + "description": "If set to `true`, the value of your input variable is protected and not returned in your API response.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The name of the variable.", + "computed": true + }, + "secure": { + "name": "secure", + "type": "TypeBool", + "description": "If set to `true`, the value of your input variable is protected and not returned in your API response.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Enter the value as a string for the primitive types such as `bool`, `number`, `string`, and `HCL` format for the complex variables, as you provide in a `.tfvars` file. **You need to enter escaped string of `HCL` format for the complex variable value**. For more information, about how to declare variables in a terraform configuration file and provide value to schematics, see [Providing values for the declared variables](/docs/schematics?topic=schematics-create-tf-config#declare-variable).", + "computed": true + } } }, - { - "name": "template_git_folder", - "type": "TypeString", - "description": "The subfolder in your GitHub or GitLab repository where your Terraform template is stored. If your template is stored in the root directory, `.` is returned.", - "computed": true - }, { "name": "template_values_metadata", "type": "TypeList", @@ -79303,28 +79326,46 @@ } }, { - "name": "template_ref", + "name": "template_git_full_url", "type": "TypeString", - "description": "Workspace template ref.", + "description": "Full repository URL.", "computed": true }, { - "name": "template_git_full_url", + "name": "template_git_repo_sha_value", "type": "TypeString", - "description": "Full repository URL.", + "description": "The repository SHA value.", "computed": true }, { - "name": "resource_group", + "name": "template_git_url", "type": "TypeString", - "description": "The resource group the workspace was provisioned in.", - "cloud_data_type": "resource_group", + "description": "The source URL.", "computed": true }, { - "name": "template_init_state_file", + "name": "is_frozen", + "type": "TypeBool", + "computed": true, + "deprecated": "use frozen instead" + }, + { + "name": "frozen_at", "type": "TypeString", - "description": "Init state file.", + "description": "The timestamp when the workspace was frozen.", + "computed": true + }, + { + "name": "is_locked", + "type": "TypeBool", + "description": "If set to true, the workspace is locked and disabled for changes.", + "computed": true, + "deprecated": "Use locked instead" + }, + { + "name": "locked", + "type": "TypeBool", + "description": "If set to true, the workspace is locked and disabled for changes.", "computed": true }, { @@ -79366,253 +79407,163 @@ } }, { - "name": "frozen_by", + "name": "template_ref", "type": "TypeString", - "description": "The user ID that froze the workspace.", + "description": "Workspace template ref.", "computed": true }, { - "name": "locked_time", + "name": "updated_by", "type": "TypeString", - "description": "The timestamp when the workspace was locked.", + "description": "The user ID that updated the workspace.", "computed": true }, { - "name": "workspace_id", + "name": "locked_by", "type": "TypeString", - "description": "The ID of the workspace. To find the workspace ID, use the `GET /v1/workspaces` API.", - "required": true + "description": "The user ID that initiated a resource-related job, such as applying or destroying resources, that locked the workspace.", + "computed": true }, { - "name": "created_by", + "name": "name", "type": "TypeString", - "description": "The user ID that created the workspace.", + "description": "The name of the workspace.", "computed": true }, { - "name": "template_git_branch", + "name": "template_git_folder", "type": "TypeString", - "description": "The repository branch.", + "description": "The subfolder in your GitHub or GitLab repository where your Terraform template is stored. If your template is stored in the root directory, `.` is returned.", "computed": true }, { - "name": "frozen_at", + "name": "template_values", "type": "TypeString", - "description": "The timestamp when the workspace was frozen.", + "description": "A list of variable values that you want to apply during the Helm chart installation. The list must be provided in JSON format, such as `\"\"autoscaling: enabled: true minReplicas: 2\"`. The values that you define here override the default Helm chart values. This field is supported only for IBM Cloud catalog offerings that are provisioned by using the Terraform Helm provider.", "computed": true }, { - "name": "status_code", + "name": "updated_at", "type": "TypeString", - "description": "The success or error code that was returned for the last plan, apply, or destroy job that ran against your workspace.", + "description": "The timestamp when the workspace was last updated.", "computed": true }, { - "name": "template_git_repo_url", + "name": "created_by", "type": "TypeString", - "description": "The repository URL.", + "description": "The user ID that created the workspace.", "computed": true }, { - "name": "template_git_url", + "name": "crn", "type": "TypeString", - "description": "The source URL.", + "description": "The workspace CRN.", + "cloud_data_type": "crn", "computed": true }, { - "name": "created_at", + "name": "location", "type": "TypeString", - "description": "The timestamp when the workspace was created.", + "description": "The IBM Cloud location where your workspace was provisioned.", + "cloud_data_type": "region", + "optional": true, "computed": true }, { - "name": "shared_data", - "type": "TypeList", - "description": "Information about the Target used by the templates originating from IBM Cloud catalog offerings. This information is not relevant when you create a workspace from your own Terraform template.", - "computed": true, - "elem": { - "cluster_id": { - "name": "cluster_id", - "type": "TypeString", - "description": "The ID of the cluster where you want to provision the resources of all IBM Cloud catalog templates that are included in the catalog offering.", - "computed": true - }, - "cluster_name": { - "name": "cluster_name", - "type": "TypeString", - "description": "Target cluster name.", - "computed": true - }, - "entitlement_keys": { - "name": "entitlement_keys", - "type": "TypeList", - "description": "The entitlement key that you want to use to install IBM Cloud entitled software.", - "computed": true, - "elem": { - "type": "TypeMap" - } - }, - "namespace": { - "name": "namespace", - "type": "TypeString", - "description": "The Kubernetes namespace or OpenShift project where the resources of all IBM Cloud catalog templates that are included in the catalog offering are deployed into.", - "computed": true - }, - "region": { - "name": "region", - "type": "TypeString", - "description": "The IBM Cloud region that you want to use for the resources of all IBM Cloud catalog templates that are included in the catalog offering.", - "computed": true - }, - "resource_group_id": { - "name": "resource_group_id", - "type": "TypeString", - "description": "The ID of the resource group that you want to use for the resources of all IBM Cloud catalog templates that are included in the catalog offering.", - "computed": true - } - } - }, - { - "name": "template_env_settings", - "type": "TypeList", - "description": "List of environment values.", - "computed": true, - "elem": { - "hidden": { - "name": "hidden", - "type": "TypeBool", - "description": "If set to `true`, the value of your input variable is protected and not returned in your API response.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The name of the variable.", - "computed": true - }, - "secure": { - "name": "secure", - "type": "TypeBool", - "description": "If set to `true`, the value of your input variable is protected and not returned in your API response.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Enter the value as a string for the primitive types such as `bool`, `number`, `string`, and `HCL` format for the complex variables, as you provide in a `.tfvars` file. **You need to enter escaped string of `HCL` format for the complex variable value**. For more information, about how to declare variables in a terraform configuration file and provide value to schematics, see [Providing values for the declared variables](/docs/schematics?topic=schematics-create-tf-config#declare-variable).", - "computed": true - } - } - }, - { - "name": "template_git_has_uploadedgitrepotar", - "type": "TypeBool", - "description": "Has uploaded Git repository tar.", - "optional": true, + "name": "template_type", + "type": "TypeString", + "description": "The Terraform version that was used to run your Terraform code.", "computed": true }, { - "name": "updated_at", + "name": "template_uninstall_script_name", "type": "TypeString", - "description": "The timestamp when the workspace was last updated.", + "description": "Uninstall script name.", "computed": true }, { - "name": "status_msg", + "name": "template_git_release", "type": "TypeString", - "description": "The success or error message that was returned for the last plan, apply, or destroy job that ran against your workspace.", + "description": "The repository release.", "computed": true - } - ], - "ibm_secrets_manager_secret": [ + }, { - "name": "secret_data", - "type": "TypeMap", - "description": "The secret data object", - "secure": true, + "name": "created_at", + "type": "TypeString", + "description": "The timestamp when the workspace was created.", "computed": true }, { - "name": "service_id", + "name": "last_health_check_at", "type": "TypeString", - "description": "The service ID under which the API key (see the `api_key` field) is created. This service ID is added to the access groups that you assign for this secret.", + "description": "The timestamp when the last health check was performed by Schematics.", "computed": true }, { - "name": "endpoint_type", + "name": "status", "type": "TypeString", - "description": "Endpoint Type. 'public' or 'private'", - "default_value": "public", - "options": "public, private", - "optional": true + "description": "The status of the workspace. **Active**: After you successfully ran your infrastructure code by applying your Terraform execution plan, the state of your workspace changes to `Active`. **Connecting**: Schematics tries to connect to the template in your source repo. If successfully connected, the template is downloaded and metadata, such as input parameters, is extracted. After the template is downloaded, the state of the workspace changes to `Scanning`. **Draft**: The workspace is created without a reference to a GitHub or GitLab repository. **Failed**: If errors occur during the execution of your infrastructure code in IBM Cloud Schematics, your workspace status is set to `Failed`. **Inactive**: The Terraform template was scanned successfully and the workspace creation is complete. You can now start running Schematics plan and apply jobs to provision the IBM Cloud resources that you specified in your template. If you have an `Active` workspace and decide to remove all your resources, your workspace is set to `Inactive` after all your resources are removed. **In progress**: When you instruct IBM Cloud Schematics to run your infrastructure code by applying your Terraform execution plan, the status of our workspace changes to `In progress`. **Scanning**: The download of the Terraform template is complete and vulnerability scanning started. If the scan is successful, the workspace state changes to `Inactive`. If errors in your template are found, the state changes to `Template Error`. **Stopped**: The Schematics plan, apply, or destroy job was cancelled manually. **Template Error**: The Schematics template contains errors and cannot be processed.", + "computed": true }, { - "name": "created_by", + "name": "template_git_branch", "type": "TypeString", - "description": "The unique identifier for the entity that created the secret.", + "description": "The repository branch.", "computed": true }, { - "name": "description", + "name": "locked_time", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret.", + "description": "The timestamp when the workspace was locked.", "computed": true - }, + } + ], + "ibm_secrets_manager_secret": [ { - "name": "secret_group_id", + "name": "service_id", "type": "TypeString", - "description": "The v4 UUID that uniquely identifies the secret group to assign to this secret.If you omit this parameter, your secret is assigned to the `default` secret group.", + "description": "The service ID under which the API key (see the `api_key` field) is created. This service ID is added to the access groups that you assign for this secret.", "computed": true }, { - "name": "access_groups", + "name": "labels", "type": "TypeList", - "description": "The access groups that define the capabilities of the service ID and API key that are generated for an`iam_credentials` secret.**Tip:** To find the ID of an access group, go to **Manage \u003e Access (IAM) \u003e Access groups** in the IBM Cloud console. Select the access group to inspect, and click **Details** to view its ID.", + "description": "Labels that you can use to filter for secrets in your instance.Up to 30 labels can be created. Labels can be between 2-30 characters, including spaces. Special characters not permitted include the angled bracket, comma, colon, ampersand, and vertical pipe character (|).To protect your privacy, do not use personal data, such as your name or location, as a label for your secret.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "name", + "name": "state_description", "type": "TypeString", - "description": "A human-readable alias to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as an alias for your secret.", + "description": "A text representation of the secret state.", "computed": true }, { - "name": "crn", + "name": "creation_date", "type": "TypeString", - "description": "The Cloud Resource Name (CRN) that uniquely identifies your Secrets Manager resource.", - "cloud_data_type": "crn", + "description": "The date the secret was created. The date format follows RFC 3339.", "computed": true }, { - "name": "ttl", + "name": "crn", "type": "TypeString", - "description": "The time-to-live (TTL) or lease duration to assign to generated credentials.For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value can be either an integer that specifies the number of seconds, or the string representation of a duration, such as `120m` or `24h`.", + "description": "The Cloud Resource Name (CRN) that uniquely identifies your Secrets Manager resource.", + "cloud_data_type": "crn", "computed": true }, { - "name": "instance_id", - "type": "TypeString", - "description": "Secrets Manager instance GUID", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:secrets-manager" - ] - }, - { - "name": "password", + "name": "payload", "type": "TypeString", - "description": "The password to assign to this secret.", + "description": "The new secret data to assign to an `arbitrary` secret.", "secure": true, "computed": true }, { - "name": "next_rotation_date", - "type": "TypeString", - "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that can be auto-rotated and have an existing rotation policy.", + "name": "reuse_api_key", + "type": "TypeBool", + "description": "(IAM credentials) Reuse the service ID and API key for future read operations.", "computed": true }, { @@ -79635,33 +79586,6 @@ } } }, - { - "name": "type", - "type": "TypeString", - "description": "The MIME type that represents the secret.", - "computed": true - }, - { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to filter for secrets in your instance.Up to 30 labels can be created. Labels can be between 2-30 characters, including spaces. Special characters not permitted include the angled bracket, comma, colon, ampersand, and vertical pipe character (|).To protect your privacy, do not use personal data, such as your name or location, as a label for your secret.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "state_description", - "type": "TypeString", - "description": "A text representation of the secret state.", - "computed": true - }, - { - "name": "last_update_date", - "type": "TypeString", - "description": "Updates when the actual secret is modified. The date format follows RFC 3339.", - "computed": true - }, { "name": "versions", "type": "TypeList", @@ -79694,6 +79618,13 @@ } } }, + { + "name": "secret_data", + "type": "TypeMap", + "description": "The secret data object", + "secure": true, + "computed": true + }, { "name": "secret_type", "type": "TypeString", @@ -79701,6 +79632,34 @@ "required": true, "options": "arbitrary,iam_credentials,imported_cert,public_cert,private_cert,username_password,kv" }, + { + "name": "next_rotation_date", + "type": "TypeString", + "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that can be auto-rotated and have an existing rotation policy.", + "computed": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier for the entity that created the secret.", + "computed": true + }, + { + "name": "password", + "type": "TypeString", + "description": "The password to assign to this secret.", + "secure": true, + "computed": true + }, + { + "name": "access_groups", + "type": "TypeList", + "description": "The access groups that define the capabilities of the service ID and API key that are generated for an`iam_credentials` secret.**Tip:** To find the ID of an access group, go to **Manage \u003e Access (IAM) \u003e Access groups** in the IBM Cloud console. Select the access group to inspect, and click **Details** to view its ID.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "username", "type": "TypeString", @@ -79709,24 +79668,24 @@ "computed": true }, { - "name": "payload", + "name": "api_key", "type": "TypeString", - "description": "The new secret data to assign to an `arbitrary` secret.", + "description": "The API key that is generated for this secret.After the secret reaches the end of its lease (see the `ttl` field), the API key is deleted automatically. If you want to continue to use the same API key for future read operations, see the `reuse_api_key` field.", "secure": true, "computed": true }, + { + "name": "secret_id", + "type": "TypeString", + "description": "The v4 UUID that uniquely identifies the secret.", + "required": true + }, { "name": "state", "type": "TypeInt", "description": "The secret state based on NIST SP 800-57. States are integers and correspond to the Pre-activation = 0, Active = 1, Suspended = 2, Deactivated = 3, and Destroyed = 5 values.", "computed": true }, - { - "name": "creation_date", - "type": "TypeString", - "description": "The date the secret was created. The date format follows RFC 3339.", - "computed": true - }, { "name": "expiration_date", "type": "TypeString", @@ -79734,26 +79693,23 @@ "computed": true }, { - "name": "api_key", + "name": "description", "type": "TypeString", - "description": "The API key that is generated for this secret.After the secret reaches the end of its lease (see the `ttl` field), the API key is deleted automatically. If you want to continue to use the same API key for future read operations, see the `reuse_api_key` field.", - "secure": true, + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret.", "computed": true }, { - "name": "reuse_api_key", - "type": "TypeBool", - "description": "(IAM credentials) Reuse the service ID and API key for future read operations.", + "name": "last_update_date", + "type": "TypeString", + "description": "Updates when the actual secret is modified. The date format follows RFC 3339.", "computed": true }, { - "name": "secret_id", + "name": "ttl", "type": "TypeString", - "description": "The v4 UUID that uniquely identifies the secret.", - "required": true - } - ], - "ibm_secrets_manager_secrets": [ + "description": "The time-to-live (TTL) or lease duration to assign to generated credentials.For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value can be either an integer that specifies the number of seconds, or the string representation of a duration, such as `120m` or `24h`.", + "computed": true + }, { "name": "instance_id", "type": "TypeString", @@ -79764,13 +79720,6 @@ "service:secrets-manager" ] }, - { - "name": "secret_type", - "type": "TypeString", - "description": "The secret type. Supported options include: arbitrary, iam_credentials, username_password.", - "options": "arbitrary, iam_credentials, username_password", - "optional": true - }, { "name": "endpoint_type", "type": "TypeString", @@ -79779,6 +79728,26 @@ "options": "public, private", "optional": true }, + { + "name": "type", + "type": "TypeString", + "description": "The MIME type that represents the secret.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "A human-readable alias to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as an alias for your secret.", + "computed": true + }, + { + "name": "secret_group_id", + "type": "TypeString", + "description": "The v4 UUID that uniquely identifies the secret group to assign to this secret.If you omit this parameter, your secret is assigned to the `default` secret group.", + "computed": true + } + ], + "ibm_secrets_manager_secrets": [ { "name": "metadata", "type": "TypeList", @@ -79993,6 +79962,31 @@ } } } + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "Secrets Manager instance GUID", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:secrets-manager" + ] + }, + { + "name": "secret_type", + "type": "TypeString", + "description": "The secret type. Supported options include: arbitrary, iam_credentials, username_password.", + "options": "arbitrary, iam_credentials, username_password", + "optional": true + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "Endpoint Type. 'public' or 'private'", + "default_value": "public", + "options": "public, private", + "optional": true } ], "ibm_security_group": [ @@ -80018,6 +80012,12 @@ } ], "ibm_service_instance": [ + { + "name": "service_plan_guid", + "type": "TypeString", + "description": "The uniquie identifier of the service offering plan type", + "computed": true + }, { "name": "name", "type": "TypeString", @@ -80057,22 +80057,9 @@ "computed": true } } - }, - { - "name": "service_plan_guid", - "type": "TypeString", - "description": "The uniquie identifier of the service offering plan type", - "computed": true } ], "ibm_service_key": [ - { - "name": "credentials", - "type": "TypeMap", - "description": "Credentials asociated with the key", - "secure": true, - "computed": true - }, { "name": "name", "type": "TypeString", @@ -80090,6 +80077,13 @@ "type": "TypeString", "description": "The guid of the space in which the service instance is present", "required": true + }, + { + "name": "credentials", + "type": "TypeMap", + "description": "Credentials asociated with the key", + "secure": true, + "computed": true } ], "ibm_service_plan": [ @@ -80107,31 +80101,6 @@ } ], "ibm_sm_arbitrary_secret": [ - { - "name": "name", - "type": "TypeString", - "description": "The human-readable name of your secret.", - "optional": true, - "computed": true - }, - { - "name": "secret_group_name", - "type": "TypeString", - "description": "The human-readable name of your secret group.", - "optional": true - }, - { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", - "computed": true - }, - { - "name": "state_description", - "type": "TypeString", - "description": "A text representation of the secret state.", - "computed": true - }, { "name": "locks_total", "type": "TypeInt", @@ -80139,24 +80108,15 @@ "computed": true }, { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "updated_at", + "name": "expiration_date", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true }, { @@ -80174,6 +80134,18 @@ "immutable": true, "required": true }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date when a resource was created. The date format follows RFC 3339.", + "computed": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier that is associated with the entity that created the secret.", + "computed": true + }, { "name": "crn", "type": "TypeString", @@ -80182,9 +80154,28 @@ "computed": true }, { - "name": "created_at", + "name": "secret_group_name", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The human-readable name of your secret group.", + "optional": true + }, + { + "name": "secret_id", + "type": "TypeString", + "description": "The ID of the secret.", + "optional": true, + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "computed": true + }, + { + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true }, { @@ -80196,6 +80187,13 @@ "type": "TypeString" } }, + { + "name": "name", + "type": "TypeString", + "description": "The human-readable name of your secret.", + "optional": true, + "computed": true + }, { "name": "secret_group_id", "type": "TypeString", @@ -80203,87 +80201,78 @@ "computed": true }, { - "name": "versions_total", + "name": "state", "type": "TypeInt", - "description": "The number of versions of the secret.", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", "computed": true }, { - "name": "description", - "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", - "computed": true + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "secret_type", + "name": "region", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, { - "name": "expiration_date", + "name": "state_description", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", + "description": "A text representation of the secret state.", "computed": true }, { - "name": "region", + "name": "endpoint_type", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, - "computed": true + "description": "public or private.", + "optional": true }, { - "name": "secret_id", + "name": "secret_type", "type": "TypeString", - "description": "The ID of the secret.", - "optional": true, + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true } ], "ibm_sm_arbitrary_secret_metadata": [ { - "name": "description", + "name": "secret_group_id", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", - "computed": true - }, - { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "description": "A v4 UUID identifier, or `default` secret group.", "computed": true }, { - "name": "endpoint_type", + "name": "updated_at", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "computed": true }, { - "name": "secret_id", + "name": "crn", "type": "TypeString", - "description": "The ID of the secret.", - "required": true + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", + "computed": true }, { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", "computed": true, "elem": { "type": "TypeString" @@ -80296,9 +80285,27 @@ "computed": true }, { - "name": "secret_group_id", + "name": "secret_id", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", + "description": "The ID of the secret.", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The human-readable name of your secret.", + "computed": true + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true + }, + { + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true }, { @@ -80313,6 +80320,12 @@ "description": "The number of versions of the secret.", "computed": true }, + { + "name": "expiration_date", + "type": "TypeString", + "description": "The date a secret is expired. The date format follows RFC 3339.", + "computed": true + }, { "name": "instance_id", "type": "TypeString", @@ -80321,6 +80334,27 @@ "immutable": true, "required": true }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date when a resource was created. The date format follows RFC 3339.", + "computed": true + }, + { + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "description", + "type": "TypeString", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "computed": true + }, { "name": "region", "type": "TypeString", @@ -80337,59 +80371,66 @@ "computed": true }, { - "name": "crn", + "name": "secret_type", "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true - }, + } + ], + "ibm_sm_configurations": [ { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { - "name": "name", + "name": "region", "type": "TypeString", - "description": "The human-readable name of your secret.", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, { - "name": "secret_type", + "name": "endpoint_type", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", - "computed": true + "description": "public or private.", + "optional": true }, { - "name": "updated_at", + "name": "sort", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true + "description": "Sort a collection of secrets by the specified field in ascending order. To sort in descending order use the `-` character. Available values: id | created_at | updated_at | expiration_date | secret_type | name", + "optional": true }, { - "name": "expiration_date", + "name": "search", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", - "computed": true + "description": "Obtain a collection of secrets that contain the specified string in one or more of the fields: `id`, `name`, `description`,\n `labels`, `secret_type`.", + "optional": true }, { - "name": "created_at", + "name": "groups", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "Filter secrets by groups. You can apply multiple filters by using a comma-separated list of secret group IDs. If you need to filter secrets that are in the default secret group, use the `default` keyword.", + "optional": true + }, + { + "name": "total_count", + "type": "TypeInt", + "description": "The total number of resources in a collection.", "computed": true - } - ], - "ibm_sm_configurations": [ + }, { "name": "configurations", "type": "TypeList", @@ -80499,53 +80540,6 @@ "computed": true } } - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "region", - "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, - { - "name": "sort", - "type": "TypeString", - "description": "Sort a collection of secrets by the specified field in ascending order. To sort in descending order use the `-` character. Available values: id | created_at | updated_at | expiration_date | secret_type | name", - "optional": true - }, - { - "name": "search", - "type": "TypeString", - "description": "Obtain a collection of secrets that contain the specified string in one or more of the fields: `id`, `name`, `description`,\n `labels`, `secret_type`.", - "optional": true - }, - { - "name": "groups", - "type": "TypeString", - "description": "Filter secrets by groups. You can apply multiple filters by using a comma-separated list of secret group IDs. If you need to filter secrets that are in the default secret group, use the `default` keyword.", - "optional": true - }, - { - "name": "total_count", - "type": "TypeInt", - "description": "The total number of resources in a collection.", - "computed": true } ], "ibm_sm_en_registration": [ @@ -80581,18 +80575,16 @@ ], "ibm_sm_iam_credentials_configuration": [ { - "name": "created_at", + "name": "secret_type", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "instance_id", + "name": "created_at", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "description": "The date when a resource was created. The date format follows RFC 3339.", + "computed": true }, { "name": "region", @@ -80603,18 +80595,6 @@ "optional": true, "computed": true }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the configuration.", - "required": true - }, - { - "name": "secret_type", - "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", - "computed": true - }, { "name": "updated_at", "type": "TypeString", @@ -80628,12 +80608,26 @@ "secure": true, "computed": true }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, { "name": "endpoint_type", "type": "TypeString", "description": "public or private.", "optional": true }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the configuration.", + "required": true + }, { "name": "config_type", "type": "TypeString", @@ -80648,6 +80642,12 @@ } ], "ibm_sm_iam_credentials_secret": [ + { + "name": "secret_group_name", + "type": "TypeString", + "description": "The human-readable name of your secret group.", + "optional": true + }, { "name": "access_groups", "type": "TypeList", @@ -80658,58 +80658,64 @@ } }, { - "name": "api_key", + "name": "description", "type": "TypeString", - "description": "The API key that is generated for this secret.After the secret reaches the end of its lease (see the `ttl` field), the API key is deleted automatically.", - "secure": true, + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", "computed": true }, { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", + "computed": true }, { - "name": "created_by", + "name": "api_key", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The API key that is generated for this secret.After the secret reaches the end of its lease (see the `ttl` field), the API key is deleted automatically.", + "secure": true, "computed": true }, { - "name": "updated_at", + "name": "instance_id", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, { - "name": "secret_group_id", + "name": "endpoint_type", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", - "computed": true + "description": "public or private.", + "optional": true }, { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "name": "name", + "type": "TypeString", + "description": "The human-readable name of your secret.", + "optional": true, "computed": true }, { - "name": "service_id_is_static", - "type": "TypeBool", - "description": "Indicates whether an `iam_credentials` secret was created with a static service ID.If it is set to `true`, the service ID for the secret was provided by the user at secret creation. If it is set to `false`, the service ID was generated by Secrets Manager.", + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", "computed": true }, { - "name": "reuse_api_key", - "type": "TypeBool", - "description": "Determines whether to use the same service ID and API key for future read operations on an`iam_credentials` secret. The value is always `true` for IAM credentials secrets managed by Terraform.", + "name": "created_at", + "type": "TypeString", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { @@ -80720,101 +80726,101 @@ "computed": true }, { - "name": "description", + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "secret_type", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The human-readable name of your secret.", - "optional": true, + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { - "name": "secret_type", + "name": "secret_id", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "description": "The ID of the secret.", + "optional": true, "computed": true }, { - "name": "region", + "name": "ttl", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "description": "The time-to-live (TTL) or lease duration to assign to generated credentials.For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value can be either an integer that specifies the number of seconds, or the string representation of a duration, such as `120m` or `24h`.Minimum duration is 1 minute. Maximum is 90 days.", "computed": true }, { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "state_description", + "name": "secret_group_id", "type": "TypeString", - "description": "A text representation of the secret state.", + "description": "A v4 UUID identifier, or `default` secret group.", "computed": true }, { - "name": "api_key_id", + "name": "state_description", "type": "TypeString", - "description": "The ID of the API key that is generated for this secret.", + "description": "A text representation of the secret state.", "computed": true }, { - "name": "secret_id", + "name": "service_id", "type": "TypeString", - "description": "The ID of the secret.", - "optional": true, + "description": "The service ID under which the API key (see the `api_key` field) is created.If you omit this parameter, Secrets Manager generates a new service ID for your secret at its creation and adds it to the access groups that you assign.Optionally, you can use this field to provide your own service ID if you prefer to manage its access directly or retain the service ID after your secret expires, is rotated, or deleted. If you provide a service ID, do not include the `access_groups` parameter.", "computed": true }, { - "name": "ttl", - "type": "TypeString", - "description": "The time-to-live (TTL) or lease duration to assign to generated credentials.For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value can be either an integer that specifies the number of seconds, or the string representation of a duration, such as `120m` or `24h`.Minimum duration is 1 minute. Maximum is 90 days.", + "name": "service_id_is_static", + "type": "TypeBool", + "description": "Indicates whether an `iam_credentials` secret was created with a static service ID.If it is set to `true`, the service ID for the secret was provided by the user at secret creation. If it is set to `false`, the service ID was generated by Secrets Manager.", "computed": true }, { - "name": "next_rotation_date", - "type": "TypeString", - "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", + "name": "reuse_api_key", + "type": "TypeBool", + "description": "Determines whether to use the same service ID and API key for future read operations on an`iam_credentials` secret. The value is always `true` for IAM credentials secrets managed by Terraform.", "computed": true }, { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "computed": true }, { - "name": "created_at", + "name": "updated_at", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "next_rotation_date", + "type": "TypeString", + "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", + "computed": true }, { - "name": "secret_group_name", + "name": "created_by", "type": "TypeString", - "description": "The human-readable name of your secret group.", - "optional": true + "description": "The unique identifier that is associated with the entity that created the secret.", + "computed": true }, { "name": "rotation", @@ -80849,35 +80855,17 @@ } }, { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", - "computed": true - }, - { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", - "computed": true - }, - { - "name": "service_id", + "name": "api_key_id", "type": "TypeString", - "description": "The service ID under which the API key (see the `api_key` field) is created.If you omit this parameter, Secrets Manager generates a new service ID for your secret at its creation and adds it to the access groups that you assign.Optionally, you can use this field to provide your own service ID if you prefer to manage its access directly or retain the service ID after your secret expires, is rotated, or deleted. If you provide a service ID, do not include the `access_groups` parameter.", + "description": "The ID of the API key that is generated for this secret.", "computed": true } ], "ibm_sm_iam_credentials_secret_metadata": [ { - "name": "created_at", + "name": "name", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "description": "The human-readable name of your secret.", "computed": true }, { @@ -80887,41 +80875,11 @@ "computed": true }, { - "name": "next_rotation_date", - "type": "TypeString", - "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", - "computed": true - }, - { - "name": "region", + "name": "secret_group_id", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "service_id_is_static", - "type": "TypeBool", - "description": "Indicates whether an `iam_credentials` secret was created with a static service ID.If it is set to `true`, the service ID for the secret was provided by the user at secret creation. If it is set to `false`, the service ID was generated by Secrets Manager.", + "description": "A v4 UUID identifier, or `default` secret group.", "computed": true }, - { - "name": "secret_id", - "type": "TypeString", - "description": "The ID of the secret.", - "required": true - }, - { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "updated_at", "type": "TypeString", @@ -80929,36 +80887,11 @@ "computed": true }, { - "name": "ttl", - "type": "TypeString", - "description": "The time-to-live (TTL) or lease duration to assign to generated credentials.For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value can be either an integer that specifies the number of seconds, or the string representation of a duration, such as `120m` or `24h`.Minimum duration is 1 minute. Maximum is 90 days.", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", "computed": true }, - { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "access_groups", - "type": "TypeList", - "description": "Access Groups that you can use for an `iam_credentials` secret.Up to 10 Access Groups can be used for each secret.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "rotation", "type": "TypeList", @@ -80992,28 +80925,25 @@ } }, { - "name": "state_description", + "name": "created_by", "type": "TypeString", - "description": "A text representation of the secret state.", - "computed": true - }, - { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "description", + "name": "created_at", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The human-readable name of your secret.", - "computed": true + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "downloaded", @@ -81022,47 +80952,49 @@ "computed": true }, { - "name": "secret_group_id", - "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", "computed": true }, { - "name": "secret_type", - "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", - "computed": true + "name": "access_groups", + "type": "TypeList", + "description": "Access Groups that you can use for an `iam_credentials` secret.Up to 10 Access Groups can be used for each secret.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "reuse_api_key", - "type": "TypeBool", - "description": "Determines whether to use the same service ID and API key for future read operations on an`iam_credentials` secret. The value is always `true` for IAM credentials secrets managed by Terraform.", + "name": "next_rotation_date", + "type": "TypeString", + "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", "computed": true }, { - "name": "instance_id", + "name": "ttl", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "description": "The time-to-live (TTL) or lease duration to assign to generated credentials.For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value can be either an integer that specifies the number of seconds, or the string representation of a duration, such as `120m` or `24h`.Minimum duration is 1 minute. Maximum is 90 days.", + "computed": true }, { - "name": "endpoint_type", + "name": "secret_id", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The ID of the secret.", + "required": true }, { - "name": "created_by", + "name": "crn", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", "computed": true }, { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", + "name": "description", + "type": "TypeString", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", "computed": true }, { @@ -81070,20 +81002,20 @@ "type": "TypeString", "description": "The service ID under which the API key (see the `api_key` field) is created.If you omit this parameter, Secrets Manager generates a new service ID for your secret at its creation and adds it to the access groups that you assign.Optionally, you can use this field to provide your own service ID if you prefer to manage its access directly or retain the service ID after your secret expires, is rotated, or deleted. If you provide a service ID, do not include the `access_groups` parameter.", "computed": true - } - ], - "ibm_sm_imported_certificate": [ + }, { - "name": "created_at", - "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", - "computed": true + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "certificate", - "type": "TypeString", - "description": "The PEM-encoded contents of your certificate.", - "secure": true, + "name": "reuse_api_key", + "type": "TypeBool", + "description": "Determines whether to use the same service ID and API key for future read operations on an`iam_credentials` secret. The value is always `true` for IAM credentials secrets managed by Terraform.", "computed": true }, { @@ -81096,10 +81028,10 @@ "computed": true }, { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", - "computed": true + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true }, { "name": "secret_type", @@ -81108,81 +81040,53 @@ "computed": true }, { - "name": "alt_names", - "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "issuer", + "name": "instance_id", "type": "TypeString", - "description": "The distinguished name that identifies the entity that signed and issued the certificate.", - "computed": true - }, - { - "name": "validity", - "type": "TypeList", - "description": "The date and time that the certificate validity period begins and ends.", - "computed": true, - "elem": { - "not_after": { - "name": "not_after", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - }, - "not_before": { - "name": "not_before", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - } - } + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "service_id_is_static", + "type": "TypeBool", + "description": "Indicates whether an `iam_credentials` secret was created with a static service ID.If it is set to `true`, the service ID for the secret was provided by the user at secret creation. If it is set to `false`, the service ID was generated by Secrets Manager.", + "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The human-readable name of your secret.", - "optional": true, + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { - "name": "signing_algorithm", + "name": "state_description", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", + "description": "A text representation of the secret state.", "computed": true - }, + } + ], + "ibm_sm_imported_certificate": [ { - "name": "private_key", - "type": "TypeString", - "description": "(Optional) The PEM-encoded private key to associate with the certificate.", - "secure": true, + "name": "private_key_included", + "type": "TypeBool", + "description": "Indicates whether the certificate was imported with an associated private key.", "computed": true }, { - "name": "secret_id", - "type": "TypeString", - "description": "The ID of the secret.", - "optional": true, + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true }, { - "name": "description", - "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", - "computed": true + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "secret_group_id", @@ -81191,15 +81095,15 @@ "computed": true }, { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", + "name": "intermediate_included", + "type": "TypeBool", + "description": "Indicates whether the certificate was imported with an associated intermediate certificate.", "computed": true }, { - "name": "expiration_date", + "name": "key_algorithm", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", + "description": "The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.", "computed": true }, { @@ -81209,9 +81113,9 @@ "computed": true }, { - "name": "common_name", + "name": "signing_algorithm", "type": "TypeString", - "description": "The Common Name (AKA CN) represents the server name protected by the SSL certificate.", + "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", "computed": true }, { @@ -81226,6 +81130,12 @@ "description": "public or private.", "optional": true }, + { + "name": "description", + "type": "TypeString", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "computed": true + }, { "name": "crn", "type": "TypeString", @@ -81234,40 +81144,53 @@ "computed": true }, { - "name": "updated_at", + "name": "name", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "The human-readable name of your secret.", + "optional": true, "computed": true }, { - "name": "private_key_included", - "type": "TypeBool", - "description": "Indicates whether the certificate was imported with an associated private key.", + "name": "secret_type", + "type": "TypeString", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "intermediate", + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "computed": true + }, + { + "name": "updated_at", "type": "TypeString", - "description": "(Optional) The PEM-encoded intermediate certificate to associate with the root certificate.", - "secure": true, + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "intermediate_included", - "type": "TypeBool", - "description": "Indicates whether the certificate was imported with an associated intermediate certificate.", + "name": "common_name", + "type": "TypeString", + "description": "The Common Name (AKA CN) represents the server name protected by the SSL certificate.", "computed": true }, { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "name": "issuer", + "type": "TypeString", + "description": "The distinguished name that identifies the entity that signed and issued the certificate.", "computed": true }, { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "name": "secret_id", + "type": "TypeString", + "description": "The ID of the secret.", + "optional": true, + "computed": true + }, + { + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", "computed": true, "elem": { "type": "TypeString" @@ -81280,61 +81203,47 @@ "optional": true }, { - "name": "state", + "name": "versions_total", "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "description": "The number of versions of the secret.", "computed": true }, { - "name": "state_description", - "type": "TypeString", - "description": "A text representation of the secret state.", - "computed": true + "name": "alt_names", + "type": "TypeList", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "key_algorithm", + "name": "private_key", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.", + "description": "(Optional) The PEM-encoded private key to associate with the certificate.", + "secure": true, "computed": true }, { - "name": "instance_id", + "name": "region", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", "immutable": true, - "required": true - } - ], - "ibm_sm_imported_certificate_metadata": [ - { - "name": "secret_type", - "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", - "computed": true - }, - { - "name": "private_key_included", - "type": "TypeBool", - "description": "Indicates whether the certificate was imported with an associated private key.", - "computed": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "optional": true, "computed": true }, { - "name": "secret_group_id", + "name": "created_at", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "serial_number", + "name": "certificate", "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", + "description": "The PEM-encoded contents of your certificate.", + "secure": true, "computed": true }, { @@ -81346,28 +81255,15 @@ "required": true }, { - "name": "updated_at", - "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "key_algorithm", - "type": "TypeString", - "description": "The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", "computed": true }, { - "name": "state_description", + "name": "expiration_date", "type": "TypeString", - "description": "A text representation of the secret state.", + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true }, { @@ -81391,57 +81287,84 @@ } }, { - "name": "common_name", + "name": "intermediate", "type": "TypeString", - "description": "The Common Name (AKA CN) represents the server name protected by the SSL certificate.", + "description": "(Optional) The PEM-encoded intermediate certificate to associate with the root certificate.", + "secure": true, "computed": true }, { - "name": "region", + "name": "state_description", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "description": "A text representation of the secret state.", "computed": true + } + ], + "ibm_sm_imported_certificate_metadata": [ + { + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true }, { - "name": "secret_id", + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", + "computed": true + }, + { + "name": "secret_type", "type": "TypeString", - "description": "The ID of the secret.", - "required": true + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "computed": true }, { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "labels", + "name": "alt_names", "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", + "name": "serial_number", + "type": "TypeString", + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", "computed": true }, { - "name": "signing_algorithm", + "name": "region", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, { - "name": "created_at", + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "computed": true + }, + { + "name": "name", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The human-readable name of your secret.", + "computed": true + }, + { + "name": "expiration_date", + "type": "TypeString", + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true }, { @@ -81451,67 +81374,144 @@ "computed": true }, { - "name": "endpoint_type", + "name": "instance_id", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { - "name": "name", + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "description", "type": "TypeString", - "description": "The human-readable name of your secret.", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", "computed": true }, { - "name": "state", + "name": "secret_group_id", + "type": "TypeString", + "description": "A v4 UUID identifier, or `default` secret group.", + "computed": true + }, + { + "name": "versions_total", "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "description": "The number of versions of the secret.", "computed": true }, { - "name": "expiration_date", + "name": "common_name", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", + "description": "The Common Name (AKA CN) represents the server name protected by the SSL certificate.", "computed": true }, { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", + "name": "private_key_included", + "type": "TypeBool", + "description": "Indicates whether the certificate was imported with an associated private key.", + "computed": true + }, + { + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "description", + "name": "state_description", + "type": "TypeString", + "description": "A text representation of the secret state.", + "computed": true + }, + { + "name": "signing_algorithm", + "type": "TypeString", + "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", + "computed": true + }, + { + "name": "validity", + "type": "TypeList", + "description": "The date and time that the certificate validity period begins and ends.", + "computed": true, + "elem": { + "not_after": { + "name": "not_after", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + }, + "not_before": { + "name": "not_before", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + } + } + }, + { + "name": "secret_id", + "type": "TypeString", + "description": "The ID of the secret.", + "required": true + }, + { + "name": "crn", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", "computed": true }, { - "name": "versions_total", + "name": "state", "type": "TypeInt", - "description": "The number of versions of the secret.", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { - "name": "alt_names", - "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier that is associated with the entity that created the secret.", + "computed": true + }, + { + "name": "key_algorithm", + "type": "TypeString", + "description": "The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.", + "computed": true }, { "name": "issuer", "type": "TypeString", "description": "The distinguished name that identifies the entity that signed and issued the certificate.", "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date when a resource was created. The date format follows RFC 3339.", + "computed": true } ], "ibm_sm_kv_secret": [ + { + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "computed": true + }, { "name": "secret_id", "type": "TypeString", @@ -81519,6 +81519,18 @@ "optional": true, "computed": true }, + { + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier that is associated with the entity that created the secret.", + "computed": true + }, + { + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "computed": true + }, { "name": "description", "type": "TypeString", @@ -81526,15 +81538,15 @@ "computed": true }, { - "name": "secret_group_id", - "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true }, { - "name": "endpoint_type", + "name": "secret_group_name", "type": "TypeString", - "description": "public or private.", + "description": "The human-readable name of your secret group.", "optional": true }, { @@ -81543,6 +81555,18 @@ "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, + { + "name": "state_description", + "type": "TypeString", + "description": "A text representation of the secret state.", + "computed": true + }, + { + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", + "computed": true + }, { "name": "data", "type": "TypeMap", @@ -81554,16 +81578,21 @@ } }, { - "name": "created_by", + "name": "instance_id", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", - "computed": true + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "labels", @@ -81575,18 +81604,23 @@ } }, { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", + "name": "name", + "type": "TypeString", + "description": "The human-readable name of your secret.", + "optional": true, "computed": true }, { - "name": "instance_id", + "name": "endpoint_type", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "description": "public or private.", + "optional": true + }, + { + "name": "secret_group_id", + "type": "TypeString", + "description": "A v4 UUID identifier, or `default` secret group.", + "computed": true }, { "name": "region", @@ -81598,66 +81632,44 @@ "computed": true }, { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", - "computed": true - }, - { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "name": "created_at", + "type": "TypeString", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "state_description", + "name": "crn", "type": "TypeString", - "description": "A text representation of the secret state.", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", "computed": true }, { - "name": "versions_total", + "name": "locks_total", "type": "TypeInt", - "description": "The number of versions of the secret.", + "description": "The number of locks of the secret.", "computed": true - }, + } + ], + "ibm_sm_kv_secret_metadata": [ { - "name": "crn", - "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", "computed": true }, { "name": "name", "type": "TypeString", "description": "The human-readable name of your secret.", - "optional": true, "computed": true }, { - "name": "secret_group_name", + "name": "endpoint_type", "type": "TypeString", - "description": "The human-readable name of your secret group.", + "description": "public or private.", "optional": true }, - { - "name": "updated_at", - "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true - } - ], - "ibm_sm_kv_secret_metadata": [ { "name": "instance_id", "type": "TypeString", @@ -81667,10 +81679,10 @@ "required": true }, { - "name": "created_at", + "name": "secret_id", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", - "computed": true + "description": "The ID of the secret.", + "required": true }, { "name": "crn", @@ -81680,18 +81692,18 @@ "computed": true }, { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "name", + "name": "description", "type": "TypeString", - "description": "The human-readable name of your secret.", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", "computed": true }, { @@ -81701,34 +81713,43 @@ "computed": true }, { - "name": "description", + "name": "secret_type", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "state_description", - "type": "TypeString", - "description": "A text representation of the secret state.", + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, { - "name": "endpoint_type", + "name": "created_at", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The date when a resource was created. The date format follows RFC 3339.", + "computed": true }, { - "name": "secret_id", - "type": "TypeString", - "description": "The ID of the secret.", - "required": true + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "computed": true + }, + { + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", + "computed": true }, { "name": "created_by", @@ -81737,18 +81758,18 @@ "computed": true }, { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", + "name": "state_description", + "type": "TypeString", + "description": "A text representation of the secret state.", "computed": true }, { @@ -81756,36 +81777,34 @@ "type": "TypeString", "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true - }, + } + ], + "ibm_sm_private_certificate": [ { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "name": "issuer", + "type": "TypeString", + "description": "The distinguished name that identifies the entity that signed and issued the certificate.", "computed": true }, { - "name": "secret_type", + "name": "private_key", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "description": "(Optional) The PEM-encoded private key to associate with the certificate.", + "secure": true, "computed": true }, { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", - "computed": true + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true }, { - "name": "region", + "name": "created_at", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true - } - ], - "ibm_sm_private_certificate": [ + }, { "name": "secret_group_id", "type": "TypeString", @@ -81793,23 +81812,9 @@ "computed": true }, { - "name": "expiration_date", - "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "description", + "name": "state_description", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "description": "A text representation of the secret state.", "computed": true }, { @@ -81819,15 +81824,9 @@ "computed": true }, { - "name": "signing_algorithm", - "type": "TypeString", - "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", - "computed": true - }, - { - "name": "certificate_authority", + "name": "key_algorithm", "type": "TypeString", - "description": "The intermediate certificate authority that signed this certificate.", + "description": "The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.", "computed": true }, { @@ -81851,72 +81850,31 @@ } }, { - "name": "revocation_time_rfc3339", + "name": "issuing_ca", "type": "TypeString", - "description": "The date and time that the certificate was revoked. The date format follows RFC 3339.", + "description": "The PEM-encoded certificate of the certificate authority that signed and issued this certificate.", + "secure": true, "computed": true }, { - "name": "state_description", + "name": "secret_id", "type": "TypeString", - "description": "A text representation of the secret state.", + "description": "The ID of the secret.", + "optional": true, "computed": true }, { - "name": "alt_names", - "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "rotation", - "type": "TypeList", - "description": "Determines whether Secrets Manager rotates your secrets automatically.", - "computed": true, - "elem": { - "auto_rotate": { - "name": "auto_rotate", - "type": "TypeBool", - "description": "Determines whether Secrets Manager rotates your secret automatically.Default is `false`. If `auto_rotate` is set to `true` the service rotates your secret based on the defined interval.", - "computed": true - }, - "interval": { - "name": "interval", - "type": "TypeInt", - "description": "The length of the secret rotation time interval.", - "computed": true - }, - "rotate_keys": { - "name": "rotate_keys", - "type": "TypeBool", - "description": "Determines whether Secrets Manager rotates the private key for your public certificate automatically.Default is `false`. If it is set to `true`, the service generates and stores a new private key for your rotated certificate.", - "computed": true - }, - "unit": { - "name": "unit", - "type": "TypeString", - "description": "The units for the secret rotation time interval.", - "computed": true - } - } - }, - { - "name": "revocation_time_seconds", - "type": "TypeInt", - "description": "The timestamp of the certificate revocation.", + "name": "name", + "type": "TypeString", + "description": "The human-readable name of your secret.", + "optional": true, "computed": true }, { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "expiration_date", + "type": "TypeString", + "description": "The date a secret is expired. The date format follows RFC 3339.", + "computed": true }, { "name": "locks_total", @@ -81925,39 +81883,31 @@ "computed": true }, { - "name": "serial_number", + "name": "secret_group_name", "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", - "computed": true + "description": "The human-readable name of your secret group.", + "optional": true }, { - "name": "certificate", - "type": "TypeString", - "description": "The PEM-encoded contents of your certificate.", - "secure": true, + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { - "name": "region", + "name": "signing_algorithm", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", "computed": true }, { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, - { - "name": "issuing_ca", - "type": "TypeString", - "description": "The PEM-encoded certificate of the certificate authority that signed and issued this certificate.", - "secure": true, - "computed": true + "name": "alt_names", + "type": "TypeList", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "crn", @@ -81967,46 +81917,39 @@ "computed": true }, { - "name": "common_name", + "name": "description", "type": "TypeString", - "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", "computed": true }, { - "name": "secret_id", - "type": "TypeString", - "description": "The ID of the secret.", - "optional": true, + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true }, { - "name": "created_at", + "name": "common_name", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", "computed": true }, { - "name": "secret_group_name", + "name": "serial_number", "type": "TypeString", - "description": "The human-readable name of your secret group.", - "optional": true - }, - { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", "computed": true }, { - "name": "updated_at", - "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "name": "revocation_time_seconds", + "type": "TypeInt", + "description": "The timestamp of the certificate revocation.", "computed": true }, { - "name": "issuer", + "name": "certificate_template", "type": "TypeString", - "description": "The distinguished name that identifies the entity that signed and issued the certificate.", + "description": "The name of the certificate template.", "computed": true }, { @@ -82016,20 +81959,35 @@ "computed": true }, { - "name": "private_key", - "type": "TypeString", - "description": "(Optional) The PEM-encoded private key to associate with the certificate.", - "secure": true, - "computed": true - }, - { - "name": "ca_chain", + "name": "rotation", "type": "TypeList", - "description": "The chain of certificate authorities that are associated with the certificate.", - "secure": true, + "description": "Determines whether Secrets Manager rotates your secrets automatically.", "computed": true, "elem": { - "type": "TypeString" + "auto_rotate": { + "name": "auto_rotate", + "type": "TypeBool", + "description": "Determines whether Secrets Manager rotates your secret automatically.Default is `false`. If `auto_rotate` is set to `true` the service rotates your secret based on the defined interval.", + "computed": true + }, + "interval": { + "name": "interval", + "type": "TypeInt", + "description": "The length of the secret rotation time interval.", + "computed": true + }, + "rotate_keys": { + "name": "rotate_keys", + "type": "TypeBool", + "description": "Determines whether Secrets Manager rotates the private key for your public certificate automatically.Default is `false`. If it is set to `true`, the service generates and stores a new private key for your rotated certificate.", + "computed": true + }, + "unit": { + "name": "unit", + "type": "TypeString", + "description": "The units for the secret rotation time interval.", + "computed": true + } } }, { @@ -82047,19 +82005,6 @@ "type": "TypeString" } }, - { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The human-readable name of your secret.", - "optional": true, - "computed": true - }, { "name": "versions_total", "type": "TypeInt", @@ -82067,80 +82012,72 @@ "computed": true }, { - "name": "certificate_template", - "type": "TypeString", - "description": "The name of the certificate template.", - "computed": true - }, - { - "name": "key_algorithm", - "type": "TypeString", - "description": "The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.", - "computed": true - } - ], - "ibm_sm_private_certificate_configuration_intermediate_ca": [ - { - "name": "crl_distribution_points_encoded", - "type": "TypeBool", - "description": "Determines whether to encode the certificate revocation list (CRL) distribution points in the certificates that are issued by this certificate authority.", - "computed": true - }, - { - "name": "ip_sans", - "type": "TypeString", - "description": "The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", - "computed": true - }, - { - "name": "organization", + "name": "ca_chain", "type": "TypeList", - "description": "The Organization (O) values to define in the subject field of the resulting certificate.", + "description": "The chain of certificate authorities that are associated with the certificate.", + "secure": true, "computed": true, "elem": { "type": "TypeString" } }, { - "name": "name", + "name": "instance_id", "type": "TypeString", - "description": "The name of the configuration.", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, "required": true }, { - "name": "alt_names", - "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "computed": true }, { - "name": "uri_sans", + "name": "certificate_authority", "type": "TypeString", - "description": "The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "description": "The intermediate certificate authority that signed this certificate.", "computed": true }, { - "name": "street_address", + "name": "revocation_time_rfc3339", + "type": "TypeString", + "description": "The date and time that the certificate was revoked. The date format follows RFC 3339.", + "computed": true + }, + { + "name": "labels", "type": "TypeList", - "description": "The street address values to define in the subject field of the resulting certificate.", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "issuer", + "name": "certificate", "type": "TypeString", - "description": "The distinguished name that identifies the entity that signed and issued the certificate.", + "description": "The PEM-encoded contents of your certificate.", + "secure": true, "computed": true }, { - "name": "crl_expiry_seconds", - "type": "TypeInt", - "description": "The time until the certificate revocation list (CRL) expires, in seconds.", + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, + "computed": true + } + ], + "ibm_sm_private_certificate_configuration_intermediate_ca": [ + { + "name": "issuing_certificates_urls_encoded", + "type": "TypeBool", + "description": "Determines whether to encode the URL of the issuing certificate in the certificates that are issued by this certificate authority.", "computed": true }, { @@ -82150,11 +82087,20 @@ "computed": true }, { - "name": "status", + "name": "private_key_format", "type": "TypeString", - "description": "The status of the certificate authority. The status of a root certificate authority is either `configured` or `expired`. For intermediate certificate authorities, possible statuses include `signing_required`,`signed_certificate_required`, `certificate_template_required`, `configured`, `expired` or `revoked`.", + "description": "The format of the generated private key.", "computed": true }, + { + "name": "postal_code", + "type": "TypeList", + "description": "The postal code values to define in the subject field of the resulting certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "instance_id", "type": "TypeString", @@ -82164,24 +82110,36 @@ "required": true }, { - "name": "issuing_certificates_urls_encoded", + "name": "crl_disable", "type": "TypeBool", - "description": "Determines whether to encode the URL of the issuing certificate in the certificates that are issued by this certificate authority.", + "description": "Disables or enables certificate revocation list (CRL) building.If CRL building is disabled, a signed but zero-length CRL is returned when downloading the CRL. If CRL building is enabled, it will rebuild the CRL.", "computed": true }, { - "name": "country", + "name": "key_type", + "type": "TypeString", + "description": "The type of private key to generate.", + "computed": true + }, + { + "name": "organization", "type": "TypeList", - "description": "The Country (C) values to define in the subject field of the resulting certificate.", + "description": "The Organization (O) values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "serial_number", + "name": "ip_sans", "type": "TypeString", - "description": "The serial number to assign to the generated certificate. To assign a random serial number, you can omit this field.", + "description": "The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The status of the certificate authority. The status of a root certificate authority is either `configured` or `expired`. For intermediate certificate authorities, possible statuses include `signing_required`,`signed_certificate_required`, `certificate_template_required`, `configured`, `expired` or `revoked`.", "computed": true }, { @@ -82191,15 +82149,21 @@ "optional": true }, { - "name": "signing_method", + "name": "name", "type": "TypeString", - "description": "The signing method to use with this certificate authority to generate private certificates.You can choose between internal or externally signed options. For more information, see the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-intermediate-certificate-authorities).", + "description": "The name of the configuration.", + "required": true + }, + { + "name": "config_type", + "type": "TypeString", + "description": "Th configuration type.", "computed": true }, { - "name": "crl_disable", - "type": "TypeBool", - "description": "Disables or enables certificate revocation list (CRL) building.If CRL building is disabled, a signed but zero-length CRL is returned when downloading the CRL. If CRL building is enabled, it will rebuild the CRL.", + "name": "signing_method", + "type": "TypeString", + "description": "The signing method to use with this certificate authority to generate private certificates.You can choose between internal or externally signed options. For more information, see the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-intermediate-certificate-authorities).", "computed": true }, { @@ -82212,95 +82176,101 @@ } }, { - "name": "key_bits", - "type": "TypeInt", - "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", - "computed": true - }, - { - "name": "exclude_cn_from_sans", - "type": "TypeBool", - "description": "Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to `true`, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address.", + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, { - "name": "province", + "name": "locality", "type": "TypeList", - "description": "The Province (ST) values to define in the subject field of the resulting certificate.", + "description": "The Locality (L) values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "expiration_date", + "name": "serial_number", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", + "description": "The serial number to assign to the generated certificate. To assign a random serial number, you can omit this field.", "computed": true }, { - "name": "secret_type", + "name": "max_ttl_seconds", + "type": "TypeInt", + "description": "The maximum time-to-live (TTL) for certificates that are created by this CA in seconds.", + "computed": true + }, + { + "name": "issuer", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "description": "The distinguished name that identifies the entity that signed and issued the certificate.", "computed": true }, { - "name": "max_ttl_seconds", - "type": "TypeInt", - "description": "The maximum time-to-live (TTL) for certificates that are created by this CA in seconds.", + "name": "format", + "type": "TypeString", + "description": "The format of the returned data.", "computed": true }, { - "name": "locality", + "name": "ou", "type": "TypeList", - "description": "The Locality (L) values to define in the subject field of the resulting certificate.", + "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "postal_code", + "name": "alt_names", "type": "TypeList", - "description": "The postal code values to define in the subject field of the resulting certificate.", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "config_type", - "type": "TypeString", - "description": "Th configuration type.", - "computed": true - }, - { - "name": "format", + "name": "uri_sans", "type": "TypeString", - "description": "The format of the returned data.", + "description": "The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", "computed": true }, { - "name": "private_key_format", - "type": "TypeString", - "description": "The format of the generated private key.", + "name": "key_bits", + "type": "TypeInt", + "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", "computed": true }, { - "name": "key_type", - "type": "TypeString", - "description": "The type of private key to generate.", - "computed": true + "name": "province", + "type": "TypeList", + "description": "The Province (ST) values to define in the subject field of the resulting certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "ou", + "name": "street_address", "type": "TypeList", - "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", + "description": "The street address values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, + { + "name": "expiration_date", + "type": "TypeString", + "description": "The date a secret is expired. The date format follows RFC 3339.", + "computed": true + }, { "name": "data", "type": "TypeList", @@ -82359,26 +82329,9 @@ } }, { - "name": "region", - "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, - "computed": true - } - ], - "ibm_sm_private_certificate_configuration_root_ca": [ - { - "name": "uri_sans", - "type": "TypeString", - "description": "The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", - "computed": true - }, - { - "name": "key_bits", + "name": "crl_expiry_seconds", "type": "TypeInt", - "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", + "description": "The time until the certificate revocation list (CRL) expires, in seconds.", "computed": true }, { @@ -82388,43 +82341,42 @@ "computed": true }, { - "name": "locality", + "name": "country", "type": "TypeList", - "description": "The Locality (L) values to define in the subject field of the resulting certificate.", + "description": "The Country (C) values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "expiration_date", - "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "created_at", + "name": "secret_type", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "issuing_certificates_urls_encoded", + "name": "crl_distribution_points_encoded", "type": "TypeBool", - "description": "Determines whether to encode the URL of the issuing certificate in the certificates that are issued by this certificate authority.", + "description": "Determines whether to encode the certificate revocation list (CRL) distribution points in the certificates that are issued by this certificate authority.", "computed": true - }, + } + ], + "ibm_sm_private_certificate_configuration_root_ca": [ { - "name": "common_name", + "name": "updated_at", "type": "TypeString", - "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "endpoint_type", + "name": "region", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, + "computed": true }, { "name": "permitted_dns_domains", @@ -82436,80 +82388,87 @@ } }, { - "name": "postal_code", + "name": "street_address", "type": "TypeList", - "description": "The postal code values to define in the subject field of the resulting certificate.", + "description": "The street address values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "status", + "name": "created_at", "type": "TypeString", - "description": "The status of the certificate authority. The status of a root certificate authority is either `configured` or `expired`. For intermediate certificate authorities, possible statuses include `signing_required`,`signed_certificate_required`, `certificate_template_required`, `configured`, `expired` or `revoked`.", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "crl_distribution_points_encoded", + "name": "crl_disable", "type": "TypeBool", - "description": "Determines whether to encode the certificate revocation list (CRL) distribution points in the certificates that are issued by this certificate authority.", + "description": "Disables or enables certificate revocation list (CRL) building.If CRL building is disabled, a signed but zero-length CRL is returned when downloading the CRL. If CRL building is enabled, it will rebuild the CRL.", "computed": true }, { - "name": "ip_sans", - "type": "TypeString", - "description": "The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "name": "crl_distribution_points_encoded", + "type": "TypeBool", + "description": "Determines whether to encode the certificate revocation list (CRL) distribution points in the certificates that are issued by this certificate authority.", "computed": true }, { - "name": "max_path_length", - "type": "TypeInt", - "description": "The maximum path length to encode in the generated certificate. `-1` means no limit.If the signing certificate has a maximum path length set, the path length is set to one less than that of the signing certificate. A limit of `0` means a literal path length of zero.", - "computed": true + "name": "alt_names", + "type": "TypeList", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "created_by", + "name": "ip_sans", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", "computed": true }, { - "name": "updated_at", - "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "name": "ttl_seconds", + "type": "TypeInt", + "description": "The requested time-to-live (TTL) for certificates that are created by this CA. This field's value cannot be longer than the `max_ttl` limit.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).", "computed": true }, { - "name": "other_sans", + "name": "locality", "type": "TypeList", - "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The alternative names must match the values that are specified in the `allowed_other_sans` field in the associated certificate template. The format is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`.", + "description": "The Locality (L) values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "country", + "name": "postal_code", "type": "TypeList", - "description": "The Country (C) values to define in the subject field of the resulting certificate.", + "description": "The postal code values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "instance_id", + "name": "status", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "description": "The status of the certificate authority. The status of a root certificate authority is either `configured` or `expired`. For intermediate certificate authorities, possible statuses include `signing_required`,`signed_certificate_required`, `certificate_template_required`, `configured`, `expired` or `revoked`.", + "computed": true }, { - "name": "format", + "name": "endpoint_type", "type": "TypeString", - "description": "The format of the returned data.", + "description": "public or private.", + "optional": true + }, + { + "name": "secret_type", + "type": "TypeString", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { @@ -82518,12 +82477,38 @@ "description": "The type of private key to generate.", "computed": true }, + { + "name": "country", + "type": "TypeList", + "description": "The Country (C) values to define in the subject field of the resulting certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "province", + "type": "TypeList", + "description": "The Province (ST) values to define in the subject field of the resulting certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "serial_number", "type": "TypeString", "description": "The serial number to assign to the generated certificate. To assign a random serial number, you can omit this field.", "computed": true }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, { "name": "name", "type": "TypeString", @@ -82537,30 +82522,36 @@ "computed": true }, { - "name": "crl_disable", - "type": "TypeBool", - "description": "Disables or enables certificate revocation list (CRL) building.If CRL building is disabled, a signed but zero-length CRL is returned when downloading the CRL. If CRL building is enabled, it will rebuild the CRL.", + "name": "crl_expiry_seconds", + "type": "TypeInt", + "description": "The time until the certificate revocation list (CRL) expires, in seconds.", "computed": true }, { - "name": "province", + "name": "uri_sans", + "type": "TypeString", + "description": "The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "computed": true + }, + { + "name": "other_sans", "type": "TypeList", - "description": "The Province (ST) values to define in the subject field of the resulting certificate.", + "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The alternative names must match the values that are specified in the `allowed_other_sans` field in the associated certificate template. The format is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "secret_type", + "name": "format", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "description": "The format of the returned data.", "computed": true }, { - "name": "crl_expiry_seconds", - "type": "TypeInt", - "description": "The time until the certificate revocation list (CRL) expires, in seconds.", + "name": "exclude_cn_from_sans", + "type": "TypeBool", + "description": "Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to `true`, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address.", "computed": true }, { @@ -82573,33 +82564,9 @@ } }, { - "name": "region", - "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "alt_names", - "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "private_key_format", - "type": "TypeString", - "description": "The format of the generated private key.", - "computed": true - }, - { - "name": "street_address", + "name": "organization", "type": "TypeList", - "description": "The street address values to define in the subject field of the resulting certificate.", + "description": "The Organization (O) values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" @@ -82664,67 +82631,61 @@ } }, { - "name": "max_ttl_seconds", - "type": "TypeInt", - "description": "The maximum time-to-live (TTL) for certificates that are created by this CA in seconds.", + "name": "common_name", + "type": "TypeString", + "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", "computed": true }, { - "name": "ttl_seconds", - "type": "TypeInt", - "description": "The requested time-to-live (TTL) for certificates that are created by this CA. This field's value cannot be longer than the `max_ttl` limit.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).", + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "organization", - "type": "TypeList", - "description": "The Organization (O) values to define in the subject field of the resulting certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } - } - ], - "ibm_sm_private_certificate_configuration_template": [ + "name": "private_key_format", + "type": "TypeString", + "description": "The format of the generated private key.", + "computed": true + }, { - "name": "client_flag", - "type": "TypeBool", - "description": "Determines whether private certificates are flagged for client use.", + "name": "key_bits", + "type": "TypeInt", + "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", "computed": true }, { - "name": "use_csr_common_name", + "name": "max_ttl_seconds", + "type": "TypeInt", + "description": "The maximum time-to-live (TTL) for certificates that are created by this CA in seconds.", + "computed": true + }, + { + "name": "issuing_certificates_urls_encoded", "type": "TypeBool", - "description": "When used with the `private_cert_configuration_action_sign_csr` action, this field determines whether to use the common name (CN) from a certificate signing request (CSR) instead of the CN that's included in the data of the certificate.Does not include any requested Subject Alternative Names (SANs) in the CSR. To use the alternative names, include the `use_csr_sans` property.", + "description": "Determines whether to encode the URL of the issuing certificate in the certificates that are issued by this certificate authority.", "computed": true }, { - "name": "config_type", - "type": "TypeString", - "description": "Th configuration type.", + "name": "max_path_length", + "type": "TypeInt", + "description": "The maximum path length to encode in the generated certificate. `-1` means no limit.If the signing certificate has a maximum path length set, the path length is set to one less than that of the signing certificate. A limit of `0` means a literal path length of zero.", "computed": true }, { - "name": "created_by", + "name": "expiration_date", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true - }, + } + ], + "ibm_sm_private_certificate_configuration_template": [ { - "name": "allow_localhost", + "name": "use_csr_common_name", "type": "TypeBool", - "description": "Determines whether to allow `localhost` to be included as one of the requested common names.", + "description": "When used with the `private_cert_configuration_action_sign_csr` action, this field determines whether to use the common name (CN) from a certificate signing request (CSR) instead of the CN that's included in the data of the certificate.Does not include any requested Subject Alternative Names (SANs) in the CSR. To use the alternative names, include the `use_csr_sans` property.", "computed": true }, - { - "name": "allowed_domains", - "type": "TypeList", - "description": "The domains to define for the certificate template. This property is used along with the `allow_bare_domains` and `allow_subdomains` options.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "ou", "type": "TypeList", @@ -82735,66 +82696,60 @@ } }, { - "name": "country", - "type": "TypeList", - "description": "The Country (C) values to define in the subject field of the resulting certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "serial_number", + "type": "TypeString", + "description": "The serial number to assign to the generated certificate. To assign a random serial number, you can omit this field.", + "computed": true }, { - "name": "use_csr_sans", + "name": "allow_localhost", "type": "TypeBool", - "description": "When used with the `private_cert_configuration_action_sign_csr` action, this field determines whether to use the Subject Alternative Names(SANs) from a certificate signing request (CSR) instead of the SANs that are included in the data of the certificate.Does not include the common name in the CSR. To use the common name, include the `use_csr_common_name` property.", + "description": "Determines whether to allow `localhost` to be included as one of the requested common names.", "computed": true }, { - "name": "street_address", - "type": "TypeList", - "description": "The street address values to define in the subject field of the resulting certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "not_before_duration_seconds", - "type": "TypeInt", - "description": "The duration in seconds by which to backdate the `not_before` property of an issued private certificate.", + "name": "allowed_domains_template", + "type": "TypeBool", + "description": "Determines whether to allow the domains that are supplied in the `allowed_domains` field to contain access control list (ACL) templates.", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The name of the configuration.", - "required": true + "name": "allow_any_name", + "type": "TypeBool", + "description": "Determines whether to allow clients to request a private certificate that matches any common name.", + "computed": true }, { - "name": "allowed_secret_groups", - "type": "TypeString", - "description": "Scopes the creation of private certificates to only the secret groups that you specify.This field can be supplied as a comma-delimited list of secret group IDs.", + "name": "key_bits", + "type": "TypeInt", + "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", "computed": true }, { - "name": "ext_key_usage_oids", + "name": "key_usage", "type": "TypeList", - "description": "A list of extended key usage Object Identifiers (OIDs).", + "description": "The allowed key usage constraint to define for private certificates.You can find valid values in the [Go x509 package documentation](https://pkg.go.dev/crypto/x509#KeyUsage). Omit the `KeyUsage` part of the value. Values are not case-sensitive. To specify no key usage constraints, set this field to an empty list.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "allow_ip_sans", + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true + }, + { + "name": "enforce_hostnames", "type": "TypeBool", - "description": "Determines whether to allow clients to request a private certificate with IP Subject Alternative Names.", + "description": "Determines whether to enforce only valid host names for common names, DNS Subject Alternative Names, and the host section of email addresses.", "computed": true }, { - "name": "email_protection_flag", + "name": "use_csr_sans", "type": "TypeBool", - "description": "Determines whether private certificates are flagged for email protection use.", + "description": "When used with the `private_cert_configuration_action_sign_csr` action, this field determines whether to use the Subject Alternative Names(SANs) from a certificate signing request (CSR) instead of the SANs that are included in the data of the certificate.Does not include the common name in the CSR. To use the common name, include the `use_csr_common_name` property.", "computed": true }, { @@ -82807,69 +82762,77 @@ } }, { - "name": "postal_code", + "name": "policy_identifiers", "type": "TypeList", - "description": "The postal code values to define in the subject field of the resulting certificate.", + "description": "A list of policy Object Identifiers (OIDs).", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "policy_identifiers", + "name": "postal_code", "type": "TypeList", - "description": "A list of policy Object Identifiers (OIDs).", + "description": "The postal code values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "secret_type", + "name": "instance_id", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", - "computed": true + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { - "name": "updated_at", + "name": "certificate_authority", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "The name of the intermediate certificate authority.", "computed": true }, { - "name": "max_ttl_seconds", - "type": "TypeInt", - "description": "The maximum time-to-live (TTL) for certificates that are created by this CA in seconds.", + "name": "allow_bare_domains", + "type": "TypeBool", + "description": "Determines whether to allow clients to request private certificates that match the value of the actual domains on the final certificate.For example, if you specify `example.com` in the `allowed_domains` field, you grant clients the ability to request a certificate that contains the name `example.com` as one of the DNS values on the final certificate.**Important:** In some scenarios, allowing bare domains can be considered a security risk.", "computed": true }, { - "name": "region", - "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "name": "allow_glob_domains", + "type": "TypeBool", + "description": "Determines whether to allow glob patterns, for example, `ftp*.example.com`, in the names that are specified in the `allowed_domains` field.If set to `true`, clients are allowed to request private certificates with names that match the glob patterns.", "computed": true }, { - "name": "enforce_hostnames", - "type": "TypeBool", - "description": "Determines whether to enforce only valid host names for common names, DNS Subject Alternative Names, and the host section of email addresses.", - "computed": true + "name": "ext_key_usage_oids", + "type": "TypeList", + "description": "A list of extended key usage Object Identifiers (OIDs).", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "allowed_uri_sans", + "name": "organization", "type": "TypeList", - "description": "The URI Subject Alternative Names to allow for private certificates.Values can contain glob patterns, for example `spiffe://hostname/_*`.", + "description": "The Organization (O) values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "key_type", + "name": "config_type", "type": "TypeString", - "description": "The type of private key to generate.", + "description": "Th configuration type.", + "computed": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { @@ -82882,10 +82845,13 @@ } }, { - "name": "serial_number", - "type": "TypeString", - "description": "The serial number to assign to the generated certificate. To assign a random serial number, you can omit this field.", - "computed": true + "name": "country", + "type": "TypeList", + "description": "The Country (C) values to define in the subject field of the resulting certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "created_at", @@ -82894,48 +82860,54 @@ "computed": true }, { - "name": "allow_bare_domains", + "name": "client_flag", "type": "TypeBool", - "description": "Determines whether to allow clients to request private certificates that match the value of the actual domains on the final certificate.For example, if you specify `example.com` in the `allowed_domains` field, you grant clients the ability to request a certificate that contains the name `example.com` as one of the DNS values on the final certificate.**Important:** In some scenarios, allowing bare domains can be considered a security risk.", + "description": "Determines whether private certificates are flagged for client use.", "computed": true }, { - "name": "allow_glob_domains", + "name": "email_protection_flag", "type": "TypeBool", - "description": "Determines whether to allow glob patterns, for example, `ftp*.example.com`, in the names that are specified in the `allowed_domains` field.If set to `true`, clients are allowed to request private certificates with names that match the glob patterns.", + "description": "Determines whether private certificates are flagged for email protection use.", "computed": true }, { - "name": "province", - "type": "TypeList", - "description": "The Province (ST) values to define in the subject field of the resulting certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "key_type", + "type": "TypeString", + "description": "The type of private key to generate.", + "computed": true }, { - "name": "basic_constraints_valid_for_non_ca", - "type": "TypeBool", - "description": "Determines whether to mark the Basic Constraints extension of an issued private certificate as valid for non-CA certificates.", + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, { - "name": "allowed_domains_template", - "type": "TypeBool", - "description": "Determines whether to allow the domains that are supplied in the `allowed_domains` field to contain access control list (ACL) templates.", + "name": "name", + "type": "TypeString", + "description": "The name of the configuration.", + "required": true + }, + { + "name": "max_ttl_seconds", + "type": "TypeInt", + "description": "The maximum time-to-live (TTL) for certificates that are created by this CA in seconds.", "computed": true }, { - "name": "allow_subdomains", - "type": "TypeBool", - "description": "Determines whether to allow clients to request private certificates with common names (CN) that are subdomains of the CNs that are allowed by the other certificate template options. This includes wildcard subdomains.For example, if `allowed_domains` has a value of `example.com` and `allow_subdomains`is set to `true`, then the following subdomains are allowed: `foo.example.com`, `bar.example.com`, `*.example.com`.**Note:** This field is redundant if you use the `allow_any_name` option.", + "name": "ttl_seconds", + "type": "TypeInt", + "description": "The requested Time To Live, after which the certificate will be expired.", "computed": true }, { - "name": "key_usage", + "name": "allowed_uri_sans", "type": "TypeList", - "description": "The allowed key usage constraint to define for private certificates.You can find valid values in the [Go x509 package documentation](https://pkg.go.dev/crypto/x509#KeyUsage). Omit the `KeyUsage` part of the value. Values are not case-sensitive. To specify no key usage constraints, set this field to an empty list.", + "description": "The URI Subject Alternative Names to allow for private certificates.Values can contain glob patterns, for example `spiffe://hostname/_*`.", "computed": true, "elem": { "type": "TypeString" @@ -82948,28 +82920,44 @@ "computed": true }, { - "name": "instance_id", + "name": "basic_constraints_valid_for_non_ca", + "type": "TypeBool", + "description": "Determines whether to mark the Basic Constraints extension of an issued private certificate as valid for non-CA certificates.", + "computed": true + }, + { + "name": "not_before_duration_seconds", + "type": "TypeInt", + "description": "The duration in seconds by which to backdate the `not_before` property of an issued private certificate.", + "computed": true + }, + { + "name": "secret_type", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "computed": true }, { - "name": "endpoint_type", + "name": "updated_at", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "computed": true }, { - "name": "allowed_other_sans", + "name": "allowed_domains", "type": "TypeList", - "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names (SANs) to allow for private certificates.The format for each element in the list is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`. To allow any value for an OID, use `*` as its value. Alternatively, specify a single `*` to allow any `other_sans` input.", + "description": "The domains to define for the certificate template. This property is used along with the `allow_bare_domains` and `allow_subdomains` options.", "computed": true, "elem": { "type": "TypeString" } }, + { + "name": "allow_ip_sans", + "type": "TypeBool", + "description": "Determines whether to allow clients to request a private certificate with IP Subject Alternative Names.", + "computed": true + }, { "name": "server_flag", "type": "TypeBool", @@ -82977,11 +82965,35 @@ "computed": true }, { - "name": "key_bits", - "type": "TypeInt", - "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", + "name": "street_address", + "type": "TypeList", + "description": "The street address values to define in the subject field of the resulting certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "allowed_secret_groups", + "type": "TypeString", + "description": "Scopes the creation of private certificates to only the secret groups that you specify.This field can be supplied as a comma-delimited list of secret group IDs.", + "computed": true + }, + { + "name": "allow_subdomains", + "type": "TypeBool", + "description": "Determines whether to allow clients to request private certificates with common names (CN) that are subdomains of the CNs that are allowed by the other certificate template options. This includes wildcard subdomains.For example, if `allowed_domains` has a value of `example.com` and `allow_subdomains`is set to `true`, then the following subdomains are allowed: `foo.example.com`, `bar.example.com`, `*.example.com`.**Note:** This field is redundant if you use the `allow_any_name` option.", "computed": true }, + { + "name": "allowed_other_sans", + "type": "TypeList", + "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names (SANs) to allow for private certificates.The format for each element in the list is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`. To allow any value for an OID, use `*` as its value. Alternatively, specify a single `*` to allow any `other_sans` input.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "code_signing_flag", "type": "TypeBool", @@ -82989,39 +83001,47 @@ "computed": true }, { - "name": "organization", + "name": "province", "type": "TypeList", - "description": "The Organization (O) values to define in the subject field of the resulting certificate.", + "description": "The Province (ST) values to define in the subject field of the resulting certificate.", "computed": true, "elem": { "type": "TypeString" } + } + ], + "ibm_sm_private_certificate_metadata": [ + { + "name": "signing_algorithm", + "type": "TypeString", + "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", + "computed": true }, { - "name": "certificate_authority", + "name": "key_algorithm", "type": "TypeString", - "description": "The name of the intermediate certificate authority.", + "description": "The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.", "computed": true }, { - "name": "ttl_seconds", - "type": "TypeInt", - "description": "The requested Time To Live, after which the certificate will be expired.", + "name": "serial_number", + "type": "TypeString", + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", "computed": true }, { - "name": "allow_any_name", - "type": "TypeBool", - "description": "Determines whether to allow clients to request a private certificate that matches any common name.", + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true - } - ], - "ibm_sm_private_certificate_metadata": [ + }, { - "name": "crn", + "name": "created_at", "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { @@ -83031,84 +83051,148 @@ "computed": true }, { - "name": "updated_at", + "name": "secret_group_id", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "A v4 UUID identifier, or `default` secret group.", "computed": true }, { - "name": "certificate_authority", + "name": "issuer", "type": "TypeString", - "description": "The intermediate certificate authority that signed this certificate.", + "description": "The distinguished name that identifies the entity that signed and issued the certificate.", "computed": true }, { - "name": "next_rotation_date", + "name": "validity", + "type": "TypeList", + "description": "The date and time that the certificate validity period begins and ends.", + "computed": true, + "elem": { + "not_after": { + "name": "not_after", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + }, + "not_before": { + "name": "not_before", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + } + } + }, + { + "name": "revocation_time_rfc3339", "type": "TypeString", - "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", + "description": "The date and time that the certificate was revoked. The date format follows RFC 3339.", "computed": true }, { - "name": "endpoint_type", + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "secret_type", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "computed": true }, { - "name": "created_at", + "name": "state_description", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "A text representation of the secret state.", "computed": true }, { - "name": "description", + "name": "alt_names", + "type": "TypeList", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "updated_at", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "name": "certificate_authority", + "type": "TypeString", + "description": "The intermediate certificate authority that signed this certificate.", "computed": true }, { - "name": "signing_algorithm", + "name": "instance_id", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "revocation_time_rfc3339", - "type": "TypeString", - "description": "The date and time that the certificate was revoked. The date format follows RFC 3339.", + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true }, { - "name": "secret_type", + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", + "computed": true + }, + { + "name": "secret_id", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "description": "The ID of the secret.", + "required": true + }, + { + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { - "name": "issuer", + "name": "certificate_template", "type": "TypeString", - "description": "The distinguished name that identifies the entity that signed and issued the certificate.", + "description": "The name of the certificate template.", "computed": true }, { - "name": "key_algorithm", + "name": "revocation_time_seconds", + "type": "TypeInt", + "description": "The timestamp of the certificate revocation.", + "computed": true + }, + { + "name": "next_rotation_date", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.", + "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", "computed": true }, { @@ -83144,15 +83228,16 @@ } }, { - "name": "created_by", + "name": "crn", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", "computed": true }, { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", + "name": "description", + "type": "TypeString", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", "computed": true }, { @@ -83168,13 +83253,24 @@ "computed": true }, { - "name": "alt_names", - "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "name", + "type": "TypeString", + "description": "The human-readable name of your secret.", + "computed": true + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true + } + ], + "ibm_sm_public_certificate": [ + { + "name": "key_algorithm", + "type": "TypeString", + "description": "The identifier for the cryptographic algorithm to be used to generate the public key that is associated with the certificate.The algorithm that you select determines the encryption algorithm (`RSA` or `ECDSA`) and key size to be used to generate keys and sign certificates. For longer living certificates, it is recommended to use longer keys to provide more encryption protection. Allowed values: RSA2048, RSA4096, EC256, EC384.", + "computed": true }, { "name": "region", @@ -83186,150 +83282,194 @@ "computed": true }, { - "name": "serial_number", + "name": "description", "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", "computed": true }, { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", + "computed": true }, { - "name": "downloaded", + "name": "bundle_certs", "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "description": "Indicates whether the issued certificate is bundled with intermediate certificates.", "computed": true }, { - "name": "name", + "name": "crn", "type": "TypeString", - "description": "The human-readable name of your secret.", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", "computed": true }, { - "name": "state_description", + "name": "private_key", "type": "TypeString", - "description": "A text representation of the secret state.", + "description": "(Optional) The PEM-encoded private key to associate with the certificate.", + "secure": true, "computed": true }, { - "name": "revocation_time_seconds", - "type": "TypeInt", - "description": "The timestamp of the certificate revocation.", + "name": "secret_id", + "type": "TypeString", + "description": "The ID of the secret.", + "optional": true, "computed": true }, { - "name": "instance_id", + "name": "serial_number", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", + "computed": true }, { - "name": "secret_id", + "name": "secret_group_id", "type": "TypeString", - "description": "The ID of the secret.", - "required": true + "description": "A v4 UUID identifier, or `default` secret group.", + "computed": true }, { - "name": "secret_group_id", + "name": "secret_type", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "certificate_template", + "name": "updated_at", "type": "TypeString", - "description": "The name of the certificate template.", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "validity", + "name": "common_name", + "type": "TypeString", + "description": "The Common Name (AKA CN) represents the server name protected by the SSL certificate.", + "computed": true + }, + { + "name": "expiration_date", + "type": "TypeString", + "description": "The date a secret is expired. The date format follows RFC 3339.", + "computed": true + }, + { + "name": "issuer", + "type": "TypeString", + "description": "The distinguished name that identifies the entity that signed and issued the certificate.", + "computed": true + }, + { + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The human-readable name of your secret.", + "optional": true, + "computed": true + }, + { + "name": "rotation", "type": "TypeList", - "description": "The date and time that the certificate validity period begins and ends.", + "description": "Determines whether Secrets Manager rotates your secrets automatically.", "computed": true, "elem": { - "not_after": { - "name": "not_after", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", + "auto_rotate": { + "name": "auto_rotate", + "type": "TypeBool", + "description": "Determines whether Secrets Manager rotates your secret automatically.Default is `false`. If `auto_rotate` is set to `true` the service rotates your secret based on the defined interval.", "computed": true }, - "not_before": { - "name": "not_before", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", + "rotate_keys": { + "name": "rotate_keys", + "type": "TypeBool", + "description": "Determines whether Secrets Manager rotates the private key for your public certificate automatically.Default is `false`. If it is set to `true`, the service generates and stores a new private key for your rotated certificate.", "computed": true } } - } - ], - "ibm_sm_public_certificate": [ + }, { - "name": "name", + "name": "intermediate", "type": "TypeString", - "description": "The human-readable name of your secret.", - "optional": true, + "description": "(Optional) The PEM-encoded intermediate certificate to associate with the root certificate.", + "secure": true, "computed": true }, { - "name": "signing_algorithm", + "name": "created_by", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "certificate", + "name": "created_at", "type": "TypeString", - "description": "The PEM-encoded contents of your certificate.", - "secure": true, + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "validity", + "name": "signing_algorithm", + "type": "TypeString", + "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", + "computed": true + }, + { + "name": "alt_names", "type": "TypeList", - "description": "The date and time that the certificate validity period begins and ends.", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", "computed": true, "elem": { - "not_after": { - "name": "not_after", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - }, - "not_before": { - "name": "not_before", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - } + "type": "TypeString" } }, { - "name": "secret_id", + "name": "ca", "type": "TypeString", - "description": "The ID of the secret.", - "optional": true, + "description": "The name of the certificate authority configuration.", "computed": true }, { - "name": "crn", + "name": "dns", "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", + "description": "The name of the DNS provider configuration.", "computed": true }, { - "name": "secret_type", + "name": "certificate", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "description": "The PEM-encoded contents of your certificate.", + "secure": true, + "computed": true + }, + { + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", + "computed": true + }, + { + "name": "secret_group_name", + "type": "TypeString", + "description": "The human-readable name of your secret group.", + "optional": true + }, + { + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "computed": true + }, + { + "name": "state_description", + "type": "TypeString", + "description": "A text representation of the secret state.", "computed": true }, { @@ -83421,40 +83561,38 @@ } }, { - "name": "rotation", + "name": "validity", "type": "TypeList", - "description": "Determines whether Secrets Manager rotates your secrets automatically.", + "description": "The date and time that the certificate validity period begins and ends.", "computed": true, "elem": { - "auto_rotate": { - "name": "auto_rotate", - "type": "TypeBool", - "description": "Determines whether Secrets Manager rotates your secret automatically.Default is `false`. If `auto_rotate` is set to `true` the service rotates your secret based on the defined interval.", + "not_after": { + "name": "not_after", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", "computed": true }, - "rotate_keys": { - "name": "rotate_keys", - "type": "TypeBool", - "description": "Determines whether Secrets Manager rotates the private key for your public certificate automatically.Default is `false`. If it is set to `true`, the service generates and stores a new private key for your rotated certificate.", + "not_before": { + "name": "not_before", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", "computed": true } } }, { - "name": "intermediate", + "name": "instance_id", "type": "TypeString", - "description": "(Optional) The PEM-encoded intermediate certificate to associate with the root certificate.", - "secure": true, - "computed": true + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { - "name": "region", + "name": "endpoint_type", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, - "computed": true + "description": "public or private.", + "optional": true }, { "name": "custom_metadata", @@ -83465,72 +83603,6 @@ "type": "TypeString" } }, - { - "name": "state_description", - "type": "TypeString", - "description": "A text representation of the secret state.", - "computed": true - }, - { - "name": "key_algorithm", - "type": "TypeString", - "description": "The identifier for the cryptographic algorithm to be used to generate the public key that is associated with the certificate.The algorithm that you select determines the encryption algorithm (`RSA` or `ECDSA`) and key size to be used to generate keys and sign certificates. For longer living certificates, it is recommended to use longer keys to provide more encryption protection. Allowed values: RSA2048, RSA4096, EC256, EC384.", - "computed": true - }, - { - "name": "serial_number", - "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", - "computed": true - }, - { - "name": "secret_group_name", - "type": "TypeString", - "description": "The human-readable name of your secret group.", - "optional": true - }, - { - "name": "ca", - "type": "TypeString", - "description": "The name of the certificate authority configuration.", - "computed": true - }, - { - "name": "dns", - "type": "TypeString", - "description": "The name of the DNS provider configuration.", - "computed": true - }, - { - "name": "issuer", - "type": "TypeString", - "description": "The distinguished name that identifies the entity that signed and issued the certificate.", - "computed": true - }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", - "computed": true - }, - { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", - "computed": true - }, { "name": "labels", "type": "TypeList", @@ -83539,75 +83611,50 @@ "elem": { "type": "TypeString" } - }, - { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", - "computed": true - }, + } + ], + "ibm_sm_public_certificate_configuration_ca_lets_encrypt": [ { - "name": "updated_at", + "name": "name", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true + "description": "The name of the configuration.", + "required": true }, { - "name": "expiration_date", + "name": "created_by", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "bundle_certs", - "type": "TypeBool", - "description": "Indicates whether the issued certificate is bundled with intermediate certificates.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "secret_group_id", + "name": "created_at", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", - "computed": true - }, - { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", + "name": "lets_encrypt_environment", + "type": "TypeString", + "description": "The configuration of the Let's Encrypt CA environment.", "computed": true }, { - "name": "alt_names", - "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "created_by", + "name": "lets_encrypt_private_key", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The PEM encoded private key of your Lets Encrypt account.", + "secure": true, "computed": true }, { - "name": "common_name", + "name": "lets_encrypt_preferred_chain", "type": "TypeString", - "description": "The Common Name (AKA CN) represents the server name protected by the SSL certificate.", + "description": "Prefer the chain with an issuer matching this Subject Common Name.", "computed": true }, { - "name": "private_key", + "name": "updated_at", "type": "TypeString", - "description": "(Optional) The PEM-encoded private key to associate with the certificate.", - "secure": true, + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { @@ -83617,19 +83664,14 @@ "cloud_data_type": "resource_instance", "immutable": true, "required": true - } - ], - "ibm_sm_public_certificate_configuration_ca_lets_encrypt": [ - { - "name": "created_at", - "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", - "computed": true }, { - "name": "lets_encrypt_environment", + "name": "region", "type": "TypeString", - "description": "The configuration of the Let's Encrypt CA environment.", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, { @@ -83637,28 +83679,21 @@ "type": "TypeString", "description": "public or private.", "optional": true - }, + } + ], + "ibm_sm_public_certificate_configuration_dns_cis": [ { - "name": "lets_encrypt_private_key", + "name": "cloud_internet_services_apikey", "type": "TypeString", - "description": "The PEM encoded private key of your Lets Encrypt account.", - "secure": true, + "description": "An IBM Cloud API key that can to list domains in your Cloud Internet Services instance.To grant Secrets Manager the ability to view the Cloud Internet Services instance and all of its domains, the API key must be assigned the Reader service role on Internet Services (`internet-svcs`).If you need to manage specific domains, you can assign the Manager role. For production environments, it is recommended that you assign the Reader access role, and then use the[IAM Policy Management API](https://cloud.ibm.com/apidocs/iam-policy-management#create-policy) to control specific domains. For more information, see the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-prepare-order-certificates#authorize-specific-domains).", "computed": true }, { - "name": "lets_encrypt_preferred_chain", + "name": "cloud_internet_services_crn", "type": "TypeString", - "description": "Prefer the chain with an issuer matching this Subject Common Name.", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", "computed": true }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, { "name": "region", "type": "TypeString", @@ -83669,30 +83704,22 @@ "computed": true }, { - "name": "name", + "name": "endpoint_type", "type": "TypeString", - "description": "The name of the configuration.", - "required": true + "description": "public or private.", + "optional": true }, { - "name": "created_by", + "name": "name", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true + "description": "The name of the configuration.", + "required": true }, { - "name": "updated_at", + "name": "config_type", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "The configuration type.", "computed": true - } - ], - "ibm_sm_public_certificate_configuration_dns_cis": [ - { - "name": "name", - "type": "TypeString", - "description": "The name of the configuration.", - "required": true }, { "name": "secret_type", @@ -83706,6 +83733,12 @@ "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date when a resource was created. The date format follows RFC 3339.", + "computed": true + }, { "name": "updated_at", "type": "TypeString", @@ -83713,33 +83746,46 @@ "computed": true }, { - "name": "cloud_internet_services_apikey", + "name": "instance_id", "type": "TypeString", - "description": "An IBM Cloud API key that can to list domains in your Cloud Internet Services instance.To grant Secrets Manager the ability to view the Cloud Internet Services instance and all of its domains, the API key must be assigned the Reader service role on Internet Services (`internet-svcs`).If you need to manage specific domains, you can assign the Manager role. For production environments, it is recommended that you assign the Reader access role, and then use the[IAM Policy Management API](https://cloud.ibm.com/apidocs/iam-policy-management#create-policy) to control specific domains. For more information, see the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-prepare-order-certificates#authorize-specific-domains).", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + } + ], + "ibm_sm_public_certificate_configuration_dns_classic_infrastructure": [ + { + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "endpoint_type", + "name": "updated_at", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "computed": true }, { - "name": "config_type", + "name": "region", "type": "TypeString", - "description": "The configuration type.", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, { - "name": "created_at", + "name": "endpoint_type", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", - "computed": true + "description": "public or private.", + "optional": true }, { - "name": "cloud_internet_services_crn", + "name": "classic_infrastructure_password", "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "description": "Your classic infrastructure API key.For information about viewing and accessing your classic infrastructure API key, see the [docs](https://cloud.ibm.com/docs/account?topic=account-classic_keys).", "computed": true }, { @@ -83751,21 +83797,10 @@ "required": true }, { - "name": "region", - "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, - "computed": true - } - ], - "ibm_sm_public_certificate_configuration_dns_classic_infrastructure": [ - { - "name": "endpoint_type", + "name": "name", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The name of the configuration.", + "required": true }, { "name": "config_type", @@ -83786,33 +83821,47 @@ "computed": true }, { - "name": "updated_at", + "name": "classic_infrastructure_username", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "The username that is associated with your classic infrastructure account.In most cases, your classic infrastructure username is your `\u003caccount_id\u003e_\u003cemail_address\u003e`. For more information, see the [docs](https://cloud.ibm.com/docs/account?topic=account-classic_keys).", + "computed": true + } + ], + "ibm_sm_public_certificate_metadata": [ + { + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true }, { - "name": "classic_infrastructure_username", - "type": "TypeString", - "description": "The username that is associated with your classic infrastructure account.In most cases, your classic infrastructure username is your `\u003caccount_id\u003e_\u003cemail_address\u003e`. For more information, see the [docs](https://cloud.ibm.com/docs/account?topic=account-classic_keys).", + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", "computed": true }, { - "name": "classic_infrastructure_password", - "type": "TypeString", - "description": "Your classic infrastructure API key.For information about viewing and accessing your classic infrastructure API key, see the [docs](https://cloud.ibm.com/docs/account?topic=account-classic_keys).", + "name": "bundle_certs", + "type": "TypeBool", + "description": "Indicates whether the issued certificate is bundled with intermediate certificates.", "computed": true }, { - "name": "name", + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", + "computed": true + }, + { + "name": "secret_group_id", "type": "TypeString", - "description": "The name of the configuration.", - "required": true + "description": "A v4 UUID identifier, or `default` secret group.", + "computed": true }, { - "name": "created_by", + "name": "dns", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The name of the DNS provider configuration.", "computed": true }, { @@ -83823,6 +83872,12 @@ "immutable": true, "required": true }, + { + "name": "ca", + "type": "TypeString", + "description": "The name of the certificate authority configuration.", + "computed": true + }, { "name": "region", "type": "TypeString", @@ -83831,67 +83886,23 @@ "immutable": true, "optional": true, "computed": true - } - ], - "ibm_sm_public_certificate_metadata": [ - { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", - "computed": true - }, - { - "name": "signing_algorithm", - "type": "TypeString", - "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", - "computed": true - }, - { - "name": "common_name", - "type": "TypeString", - "description": "The Common Name (AKA CN) represents the server name protected by the SSL certificate.", - "computed": true }, { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, - { - "name": "name", + "name": "secret_id", "type": "TypeString", - "description": "The human-readable name of your secret.", - "computed": true + "description": "The ID of the secret.", + "required": true }, { - "name": "secret_group_id", + "name": "created_by", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "alt_names", - "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "serial_number", + "name": "key_algorithm", "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", + "description": "The identifier for the cryptographic algorithm to be used to generate the public key that is associated with the certificate.The algorithm that you select determines the encryption algorithm (`RSA` or `ECDSA`) and key size to be used to generate keys and sign certificates. For longer living certificates, it is recommended to use longer keys to provide more encryption protection. Allowed values: RSA2048, RSA4096, EC256, EC384.", "computed": true }, { @@ -83904,38 +83915,39 @@ } }, { - "name": "bundle_certs", - "type": "TypeBool", - "description": "Indicates whether the issued certificate is bundled with intermediate certificates.", + "name": "description", + "type": "TypeString", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", "computed": true }, { - "name": "instance_id", + "name": "name", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "description": "The human-readable name of your secret.", + "computed": true }, { - "name": "region", + "name": "secret_type", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "created_at", + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "computed": true + }, + { + "name": "updated_at", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "issuer", + "name": "common_name", "type": "TypeString", - "description": "The distinguished name that identifies the entity that signed and issued the certificate.", + "description": "The Common Name (AKA CN) represents the server name protected by the SSL certificate.", "computed": true }, { @@ -84027,29 +84039,9 @@ } }, { - "name": "validity", - "type": "TypeList", - "description": "The date and time that the certificate validity period begins and ends.", - "computed": true, - "elem": { - "not_after": { - "name": "not_after", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - }, - "not_before": { - "name": "not_before", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - } - } - }, - { - "name": "ca", + "name": "issuer", "type": "TypeString", - "description": "The name of the certificate authority configuration.", + "description": "The distinguished name that identifies the entity that signed and issued the certificate.", "computed": true }, { @@ -84060,10 +84052,13 @@ "computed": true }, { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", - "computed": true + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "state_description", @@ -84072,87 +84067,92 @@ "computed": true }, { - "name": "updated_at", - "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "expiration_date", - "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", - "computed": true + "name": "rotation", + "type": "TypeList", + "description": "Determines whether Secrets Manager rotates your secrets automatically.", + "computed": true, + "elem": { + "auto_rotate": { + "name": "auto_rotate", + "type": "TypeBool", + "description": "Determines whether Secrets Manager rotates your secret automatically.Default is `false`. If `auto_rotate` is set to `true` the service rotates your secret based on the defined interval.", + "computed": true + }, + "rotate_keys": { + "name": "rotate_keys", + "type": "TypeBool", + "description": "Determines whether Secrets Manager rotates the private key for your public certificate automatically.Default is `false`. If it is set to `true`, the service generates and stores a new private key for your rotated certificate.", + "computed": true + } + } }, { - "name": "secret_id", + "name": "endpoint_type", "type": "TypeString", - "description": "The ID of the secret.", - "required": true + "description": "public or private.", + "optional": true }, { - "name": "key_algorithm", + "name": "created_at", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm to be used to generate the public key that is associated with the certificate.The algorithm that you select determines the encryption algorithm (`RSA` or `ECDSA`) and key size to be used to generate keys and sign certificates. For longer living certificates, it is recommended to use longer keys to provide more encryption protection. Allowed values: RSA2048, RSA4096, EC256, EC384.", - "computed": true - }, - { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "dns", + "name": "signing_algorithm", "type": "TypeString", - "description": "The name of the DNS provider configuration.", + "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", "computed": true }, { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true + "name": "alt_names", + "type": "TypeList", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "description", + "name": "expiration_date", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", - "computed": true - }, - { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true }, { - "name": "secret_type", + "name": "serial_number", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", "computed": true }, { - "name": "rotation", + "name": "validity", "type": "TypeList", - "description": "Determines whether Secrets Manager rotates your secrets automatically.", + "description": "The date and time that the certificate validity period begins and ends.", "computed": true, "elem": { - "auto_rotate": { - "name": "auto_rotate", - "type": "TypeBool", - "description": "Determines whether Secrets Manager rotates your secret automatically.Default is `false`. If `auto_rotate` is set to `true` the service rotates your secret based on the defined interval.", + "not_after": { + "name": "not_after", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", "computed": true }, - "rotate_keys": { - "name": "rotate_keys", - "type": "TypeBool", - "description": "Determines whether Secrets Manager rotates the private key for your public certificate automatically.Default is `false`. If it is set to `true`, the service generates and stores a new private key for your rotated certificate.", + "not_before": { + "name": "not_before", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", "computed": true } } } ], "ibm_sm_secret_group": [ + { + "name": "created_at", + "type": "TypeString", + "description": "The date that a resource was created. The date format follows RFC 3339.", + "computed": true + }, { "name": "updated_at", "type": "TypeString", @@ -84199,23 +84199,9 @@ "type": "TypeString", "description": "An extended description of your secret group.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date that a resource was created. The date format follows RFC 3339.", - "computed": true } ], "ibm_sm_secret_groups": [ - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, { "name": "region", "type": "TypeString", @@ -84274,9 +84260,23 @@ "type": "TypeInt", "description": "The total number of resources in a collection.", "computed": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true } ], "ibm_sm_secrets": [ + { + "name": "groups", + "type": "TypeString", + "description": "Filter secrets by groups. You can apply multiple filters by using a comma-separated list of secret group IDs. If you need to filter secrets that are in the default secret group, use the `default` keyword.", + "optional": true + }, { "name": "total_count", "type": "TypeInt", @@ -84711,34 +84711,20 @@ "type": "TypeString", "description": "Obtain a collection of secrets that contain the specified string in one or more of the fields: `id`, `name`, `description`,\n `labels`, `secret_type`.", "optional": true - }, - { - "name": "groups", - "type": "TypeString", - "description": "Filter secrets by groups. You can apply multiple filters by using a comma-separated list of secret group IDs. If you need to filter secrets that are in the default secret group, use the `default` keyword.", - "optional": true } ], "ibm_sm_username_password_secret": [ { - "name": "description", - "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true }, { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "secret_group_id", + "name": "name", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", + "description": "The human-readable name of your secret.", + "optional": true, "computed": true }, { @@ -84754,31 +84740,60 @@ "computed": true }, { - "name": "updated_at", + "name": "endpoint_type", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "public or private.", + "optional": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, + { + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, "computed": true }, { - "name": "username", + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", + "computed": true + }, + { + "name": "state_description", "type": "TypeString", - "description": "The username that is assigned to the secret.", + "description": "A text representation of the secret state.", "computed": true }, { - "name": "password", + "name": "expiration_date", "type": "TypeString", - "description": "The password that is assigned to the secret.", - "secure": true, + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true }, { - "name": "instance_id", + "name": "username", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "description": "The username that is assigned to the secret.", + "computed": true }, { "name": "secret_id", @@ -84787,6 +84802,27 @@ "optional": true, "computed": true }, + { + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "secret_group_id", + "type": "TypeString", + "description": "A v4 UUID identifier, or `default` secret group.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "computed": true + }, { "name": "rotation", "type": "TypeList", @@ -84820,71 +84856,36 @@ } }, { - "name": "region", - "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", "computed": true }, { - "name": "created_at", + "name": "next_rotation_date", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", "computed": true }, { - "name": "secret_type", + "name": "password", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "description": "The password that is assigned to the secret.", + "secure": true, "computed": true }, { - "name": "state_description", + "name": "created_by", "type": "TypeString", - "description": "A text representation of the secret state.", - "computed": true - }, - { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "expiration_date", + "name": "created_at", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, { "name": "crn", "type": "TypeString", @@ -84893,51 +84894,29 @@ "computed": true }, { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The human-readable name of your secret.", - "optional": true, - "computed": true - }, - { - "name": "next_rotation_date", + "name": "description", "type": "TypeString", - "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", - "computed": true - } - ], - "ibm_sm_username_password_secret_metadata": [ - { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", - "computed": true, - "elem": { - "type": "TypeString" - } + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "computed": true }, { "name": "secret_type", "type": "TypeString", "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true - }, + } + ], + "ibm_sm_username_password_secret_metadata": [ { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "name": "expiration_date", + "type": "TypeString", + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true }, { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", + "name": "next_rotation_date", + "type": "TypeString", + "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", "computed": true }, { @@ -84956,9 +84935,33 @@ "optional": true }, { - "name": "created_at", + "name": "secret_id", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The ID of the secret.", + "required": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier that is associated with the entity that created the secret.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The human-readable name of your secret.", + "computed": true + }, + { + "name": "secret_group_id", + "type": "TypeString", + "description": "A v4 UUID identifier, or `default` secret group.", + "computed": true + }, + { + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", "computed": true }, { @@ -84968,15 +84971,30 @@ "computed": true }, { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { - "name": "name", + "name": "updated_at", "type": "TypeString", - "description": "The human-readable name of your secret.", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "computed": true + }, + { + "name": "secret_type", + "type": "TypeString", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { @@ -85012,9 +85030,15 @@ } }, { - "name": "expiration_date", + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", + "computed": true + }, + { + "name": "state_description", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", + "description": "A text representation of the secret state.", "computed": true }, { @@ -85026,10 +85050,10 @@ "required": true }, { - "name": "secret_id", + "name": "created_at", "type": "TypeString", - "description": "The ID of the secret.", - "required": true + "description": "The date when a resource was created. The date format follows RFC 3339.", + "computed": true }, { "name": "crn", @@ -85048,43 +85072,31 @@ } }, { - "name": "next_rotation_date", - "type": "TypeString", - "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", - "computed": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true - }, - { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true - }, + } + ], + "ibm_space": [ { - "name": "secret_group_id", - "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", - "computed": true + "name": "auditors", + "type": "TypeSet", + "description": "The IBMID of the users who have auditor role in this space, ex - user@example.com", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "state_description", - "type": "TypeString", - "description": "A text representation of the secret state.", - "computed": true + "name": "managers", + "type": "TypeSet", + "description": "The IBMID of the users who have manager role in this space, ex - user@example.com", + "computed": true, + "elem": { + "type": "TypeString" + } }, - { - "name": "updated_at", - "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true - } - ], - "ibm_space": [ { "name": "developers", "type": "TypeSet", @@ -85112,39 +85124,9 @@ "type": "TypeString", "description": "The org this space belongs to", "required": true - }, - { - "name": "auditors", - "type": "TypeSet", - "description": "The IBMID of the users who have auditor role in this space, ex - user@example.com", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "managers", - "type": "TypeSet", - "description": "The IBMID of the users who have manager role in this space, ex - user@example.com", - "computed": true, - "elem": { - "type": "TypeString" - } } ], "ibm_tg_connection_prefix_filter": [ - { - "name": "le", - "type": "TypeInt", - "description": "IP Prefix LE", - "computed": true - }, - { - "name": "gateway", - "type": "TypeString", - "description": "The Transit Gateway identifier", - "required": true - }, { "name": "connection_id", "type": "TypeString", @@ -85152,9 +85134,9 @@ "required": true }, { - "name": "before", + "name": "action", "type": "TypeString", - "description": "Identifier of prefix filter that handles ordering", + "description": "Whether to permit or deny the prefix filter", "computed": true }, { @@ -85163,12 +85145,30 @@ "description": "IP Prefix GE", "computed": true }, + { + "name": "le", + "type": "TypeInt", + "description": "IP Prefix LE", + "computed": true + }, + { + "name": "prefix", + "type": "TypeString", + "description": "IP Prefix", + "computed": true + }, { "name": "updated_at", "type": "TypeString", "description": "The date and time that this prefix filter was last updated", "computed": true }, + { + "name": "gateway", + "type": "TypeString", + "description": "The Transit Gateway identifier", + "required": true + }, { "name": "filter_id", "type": "TypeString", @@ -85176,9 +85176,9 @@ "required": true }, { - "name": "action", + "name": "before", "type": "TypeString", - "description": "Whether to permit or deny the prefix filter", + "description": "Identifier of prefix filter that handles ordering", "computed": true }, { @@ -85186,21 +85186,9 @@ "type": "TypeString", "description": "The date and time that this prefix filter was created", "computed": true - }, - { - "name": "prefix", - "type": "TypeString", - "description": "IP Prefix", - "computed": true } ], "ibm_tg_connection_prefix_filters": [ - { - "name": "gateway", - "type": "TypeString", - "description": "The Transit Gateway identifier", - "required": true - }, { "name": "connection_id", "type": "TypeString", @@ -85261,15 +85249,15 @@ "computed": true } } - } - ], - "ibm_tg_gateway": [ + }, { - "name": "name", + "name": "gateway", "type": "TypeString", "description": "The Transit Gateway identifier", "required": true - }, + } + ], + "ibm_tg_gateway": [ { "name": "crn", "type": "TypeString", @@ -85282,11 +85270,38 @@ "cloud_data_type": "region", "computed": true }, + { + "name": "global", + "type": "TypeBool", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The Transit Gateway identifier", + "required": true + }, + { + "name": "created_at", + "type": "TypeString", + "computed": true + }, { "name": "status", "type": "TypeString", "computed": true }, + { + "name": "updated_at", + "type": "TypeString", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "cloud_data_type": "resource_group", + "computed": true + }, { "name": "connections", "type": "TypeList", @@ -85385,27 +85400,6 @@ "computed": true } } - }, - { - "name": "created_at", - "type": "TypeString", - "computed": true - }, - { - "name": "global", - "type": "TypeBool", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "computed": true - }, - { - "name": "resource_group", - "type": "TypeString", - "cloud_data_type": "resource_group", - "computed": true } ], "ibm_tg_gateways": [ @@ -85464,18 +85458,6 @@ } ], "ibm_tg_location": [ - { - "name": "type", - "type": "TypeString", - "description": "The type of the location, determining is this a multi-zone region, a single data center, or a point of presence.", - "computed": true - }, - { - "name": "billing_location", - "type": "TypeString", - "description": "The geographical location of this location, used for billing purposes.", - "computed": true - }, { "name": "local_connection_locations", "type": "TypeList", @@ -85507,6 +85489,18 @@ "type": "TypeString", "description": "Name of the Location.", "required": true + }, + { + "name": "type", + "type": "TypeString", + "description": "The type of the location, determining is this a multi-zone region, a single data center, or a point of presence.", + "computed": true + }, + { + "name": "billing_location", + "type": "TypeString", + "description": "The geographical location of this location, used for billing purposes.", + "computed": true } ], "ibm_tg_locations": [ @@ -85538,54 +85532,6 @@ } ], "ibm_tg_route_report": [ - { - "name": "overlapping_routes", - "type": "TypeList", - "description": "Collection of transit gateway overlapping routes", - "computed": true, - "elem": { - "routes": { - "name": "routes", - "type": "TypeList", - "description": "Collection of transit gateway overlapping route's details", - "computed": true, - "elem": { - "connection_id": { - "name": "connection_id", - "type": "TypeString", - "computed": true - }, - "prefix": { - "name": "prefix", - "type": "TypeString", - "computed": true - } - } - } - } - }, - { - "name": "status", - "type": "TypeString", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "computed": true - }, - { - "name": "gateway", - "type": "TypeString", - "description": "The Transit Gateway identifier", - "required": true - }, - { - "name": "route_report", - "type": "TypeString", - "description": "The Transit Gateway Route Report identifier", - "required": true - }, { "name": "connections", "type": "TypeList", @@ -85654,6 +85600,54 @@ "name": "created_at", "type": "TypeString", "computed": true + }, + { + "name": "overlapping_routes", + "type": "TypeList", + "description": "Collection of transit gateway overlapping routes", + "computed": true, + "elem": { + "routes": { + "name": "routes", + "type": "TypeList", + "description": "Collection of transit gateway overlapping route's details", + "computed": true, + "elem": { + "connection_id": { + "name": "connection_id", + "type": "TypeString", + "computed": true + }, + "prefix": { + "name": "prefix", + "type": "TypeString", + "computed": true + } + } + } + } + }, + { + "name": "status", + "type": "TypeString", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "computed": true + }, + { + "name": "gateway", + "type": "TypeString", + "description": "The Transit Gateway identifier", + "required": true + }, + { + "name": "route_report", + "type": "TypeString", + "description": "The Transit Gateway Route Report identifier", + "required": true } ], "ibm_tg_route_reports": [ @@ -85786,31 +85780,16 @@ "Resources": { "ibm_api_gateway_endpoint": [ { - "name": "base_path", + "name": "endpoint_id", "type": "TypeString", - "description": "Base path of an endpoint", + "description": "Endpoint ID", "computed": true }, { - "name": "provider_id", - "type": "TypeString", - "description": "Provider ID of an endpoint allowable values user-defined and whisk", - "default_value": "user-defined", - "optional": true - }, - { - "name": "type", - "type": "TypeString", - "description": "Action type of Endpoint ALoowable values are share, unshare, manage, unmanage", - "default_value": "unshare", - "optional": true - }, - { - "name": "service_instance_crn", + "name": "base_path", "type": "TypeString", - "description": "Api Gateway Service Instance Crn", - "immutable": true, - "required": true + "description": "Base path of an endpoint", + "computed": true }, { "name": "open_api_doc_name", @@ -85818,19 +85797,6 @@ "description": "Json File path", "required": true }, - { - "name": "managed", - "type": "TypeBool", - "description": "Managed indicates if endpoint is online or offline.", - "default_value": false, - "optional": true - }, - { - "name": "endpoint_id", - "type": "TypeString", - "description": "Endpoint ID", - "computed": true - }, { "name": "name", "type": "TypeString", @@ -85846,33 +85812,42 @@ "type": "TypeString" } }, + { + "name": "managed", + "type": "TypeBool", + "description": "Managed indicates if endpoint is online or offline.", + "default_value": false, + "optional": true + }, { "name": "shared", "type": "TypeBool", "description": "The Shared status of an endpoint", "computed": true - } - ], - "ibm_api_gateway_endpoint_subscription": [ + }, { - "name": "client_id", + "name": "provider_id", "type": "TypeString", - "description": "Subscription Id, API key that is used to create subscription", - "optional": true, - "computed": true + "description": "Provider ID of an endpoint allowable values user-defined and whisk", + "default_value": "user-defined", + "optional": true }, { - "name": "name", + "name": "type", "type": "TypeString", - "description": "Subscription name", - "required": true + "description": "Action type of Endpoint ALoowable values are share, unshare, manage, unmanage", + "default_value": "unshare", + "optional": true }, { - "name": "type", + "name": "service_instance_crn", "type": "TypeString", - "description": "Subscription type. Allowable values are external, internal", + "description": "Api Gateway Service Instance Crn", + "immutable": true, "required": true - }, + } + ], + "ibm_api_gateway_endpoint_subscription": [ { "name": "client_secret", "type": "TypeString", @@ -85898,6 +85873,25 @@ "description": "Endpoint ID", "immutable": true, "required": true + }, + { + "name": "client_id", + "type": "TypeString", + "description": "Subscription Id, API key that is used to create subscription", + "optional": true, + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Subscription name", + "required": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Subscription type. Allowable values are external, internal", + "required": true } ], "ibm_app": [ @@ -85908,13 +85902,10 @@ "optional": true }, { - "name": "service_instance_guid", - "type": "TypeSet", - "description": "Define the service instance guids that should be bound to this application.", - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "app_version", + "type": "TypeString", + "description": "Version of the application", + "optional": true }, { "name": "health_check_timeout", @@ -85922,13 +85913,6 @@ "description": "Timeout in seconds for health checking of an staged app when starting up.", "optional": true }, - { - "name": "instances", - "type": "TypeInt", - "description": "The number of instances", - "default_value": 1, - "optional": true - }, { "name": "space_guid", "type": "TypeString", @@ -85937,14 +85921,47 @@ "required": true }, { - "name": "route_guid", + "name": "service_instance_guid", "type": "TypeSet", - "description": "Define the route guids which should be bound to the application.", + "description": "Define the service instance guids that should be bound to this application.", "optional": true, "elem": { "type": "TypeString" } }, + { + "name": "command", + "type": "TypeString", + "description": "The initial command for the app", + "optional": true + }, + { + "name": "health_check_http_endpoint", + "type": "TypeString", + "description": "Endpoint called to determine if the app is healthy.", + "optional": true + }, + { + "name": "health_check_type", + "type": "TypeString", + "description": "Type of health check to perform.", + "default_value": "port", + "optional": true + }, + { + "name": "disk_quota", + "type": "TypeInt", + "description": "The maximum amount of disk available to an instance of an app. In megabytes.", + "optional": true, + "computed": true + }, + { + "name": "wait_time_minutes", + "type": "TypeInt", + "description": "Define timeout to wait for the app instances to start/update/restage etc.", + "default_value": 20, + "optional": true + }, { "name": "tags", "type": "TypeSet", @@ -85968,10 +85985,10 @@ "computed": true }, { - "name": "health_check_type", - "type": "TypeString", - "description": "Type of health check to perform.", - "default_value": "port", + "name": "instances", + "type": "TypeInt", + "description": "The number of instances", + "default_value": 1, "optional": true }, { @@ -85981,36 +85998,13 @@ "optional": true }, { - "name": "wait_time_minutes", - "type": "TypeInt", - "description": "Define timeout to wait for the app instances to start/update/restage etc.", - "default_value": 20, - "optional": true - }, - { - "name": "app_version", - "type": "TypeString", - "description": "Version of the application", - "optional": true - }, - { - "name": "command", - "type": "TypeString", - "description": "The initial command for the app", - "optional": true - }, - { - "name": "health_check_http_endpoint", - "type": "TypeString", - "description": "Endpoint called to determine if the app is healthy.", - "optional": true - }, - { - "name": "disk_quota", - "type": "TypeInt", - "description": "The maximum amount of disk available to an instance of an app. In megabytes.", + "name": "route_guid", + "type": "TypeSet", + "description": "Define the route guids which should be bound to the application.", "optional": true, - "computed": true + "elem": { + "type": "TypeString" + } }, { "name": "app_path", @@ -86021,18 +86015,11 @@ ], "ibm_app_config_collection": [ { - "name": "guid", + "name": "collection_id", "type": "TypeString", - "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", - "immutable": true, + "description": "Collection Id.", "required": true }, - { - "name": "description", - "type": "TypeString", - "description": "Collection description", - "optional": true - }, { "name": "tags", "type": "TypeString", @@ -86053,48 +86040,49 @@ "computed": true }, { - "name": "properties_count", + "name": "href", "type": "TypeString", - "description": "Number of properties associated with the collection.", + "description": "Collection URL.", "computed": true }, { - "name": "name", + "name": "properties_count", "type": "TypeString", - "description": "Collection name.", - "required": true + "description": "Number of properties associated with the collection.", + "computed": true }, { - "name": "collection_id", + "name": "guid", "type": "TypeString", - "description": "Collection Id.", + "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", + "immutable": true, "required": true }, { - "name": "href", + "name": "description", "type": "TypeString", - "description": "Collection URL.", - "computed": true + "description": "Collection description", + "optional": true }, { "name": "features_count", "type": "TypeString", "description": "Number of features associated with the collection.", "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Collection name.", + "required": true } ], "ibm_app_config_environment": [ { - "name": "created_time", - "type": "TypeString", - "description": "Creation time of the environment.", - "computed": true - }, - { - "name": "href", + "name": "environment_id", "type": "TypeString", - "description": "Environment URL.", - "computed": true + "description": "Environment Id.", + "required": true }, { "name": "description", @@ -86116,9 +86104,9 @@ "optional": true }, { - "name": "updated_time", + "name": "created_time", "type": "TypeString", - "description": "Last modified time of the environment data.", + "description": "Creation time of the environment.", "computed": true }, { @@ -86129,31 +86117,101 @@ "required": true }, { - "name": "name", + "name": "updated_time", "type": "TypeString", - "description": "Environment name.", - "required": true + "description": "Last modified time of the environment data.", + "computed": true }, { - "name": "environment_id", + "name": "href", "type": "TypeString", - "description": "Environment Id.", + "description": "Environment URL.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Environment name.", "required": true } ], "ibm_app_config_feature": [ { - "name": "disabled_value", + "name": "environment_id", "type": "TypeString", - "description": "Value of the feature when it is disabled. The value can be BOOLEAN, STRING or a NUMERIC value as per the `type` attribute.", + "description": "Environment Id.", "required": true }, { - "name": "description", + "name": "tags", "type": "TypeString", - "description": "Feature description.", + "description": "Tags associated with the feature.", + "cloud_data_type": "tags", + "optional": true + }, + { + "name": "rollout_percentage", + "type": "TypeInt", + "description": "Rollout percentage of the feature.", "optional": true }, + { + "name": "name", + "type": "TypeString", + "description": "Feature name.", + "required": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Type of the feature (BOOLEAN, STRING, NUMERIC).", + "required": true, + "options": "BOOLEAN, NUMERIC, STRING" + }, + { + "name": "created_time", + "type": "TypeString", + "description": "Creation time of the feature flag.", + "computed": true + }, + { + "name": "updated_time", + "type": "TypeString", + "description": "Last modified time of the feature flag data.", + "computed": true + }, + { + "name": "feature_id", + "type": "TypeString", + "description": "Feature id.", + "required": true + }, + { + "name": "collections", + "type": "TypeList", + "description": "List of collection id representing the collections that are associated with the specified feature flag.", + "optional": true, + "elem": { + "collection_id": { + "name": "collection_id", + "type": "TypeString", + "description": "Collection id.", + "required": true + } + } + }, + { + "name": "segment_exists", + "type": "TypeBool", + "description": "Denotes if the targeting rules are specified for the feature flag.", + "computed": true + }, + { + "name": "enabled", + "type": "TypeBool", + "description": "The state of the feature flag.", + "computed": true + }, { "name": "segment_rules", "type": "TypeList", @@ -86198,18 +86256,10 @@ } }, { - "name": "collections", - "type": "TypeList", - "description": "List of collection id representing the collections that are associated with the specified feature flag.", - "optional": true, - "elem": { - "collection_id": { - "name": "collection_id", - "type": "TypeString", - "description": "Collection id.", - "required": true - } - } + "name": "href", + "type": "TypeString", + "description": "Feature flag URL.", + "computed": true }, { "name": "guid", @@ -86218,87 +86268,94 @@ "required": true }, { - "name": "environment_id", + "name": "enabled_value", "type": "TypeString", - "description": "Environment Id.", + "description": "Value of the feature when it is enabled. The value can be BOOLEAN, STRING or a NUMERIC value as per the `type` attribute.", "required": true }, { - "name": "type", + "name": "disabled_value", "type": "TypeString", - "description": "Type of the feature (BOOLEAN, STRING, NUMERIC).", - "required": true, - "options": "BOOLEAN, NUMERIC, STRING" + "description": "Value of the feature when it is disabled. The value can be BOOLEAN, STRING or a NUMERIC value as per the `type` attribute.", + "required": true }, { - "name": "rollout_percentage", - "type": "TypeInt", - "description": "Rollout percentage of the feature.", + "name": "description", + "type": "TypeString", + "description": "Feature description.", + "optional": true + } + ], + "ibm_app_config_property": [ + { + "name": "tags", + "type": "TypeString", + "description": "Tags associated with the property.", + "cloud_data_type": "tags", "optional": true }, { "name": "segment_exists", "type": "TypeBool", - "description": "Denotes if the targeting rules are specified for the feature flag.", + "description": "Denotes if the targeting rules are specified for the property.", "computed": true }, { - "name": "href", + "name": "created_time", "type": "TypeString", - "description": "Feature flag URL.", + "description": "Creation time of the property.", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "Feature name.", - "required": true - }, - { - "name": "feature_id", + "name": "href", "type": "TypeString", - "description": "Feature id.", - "required": true - }, - { - "name": "enabled", - "type": "TypeBool", - "description": "The state of the feature flag.", + "description": "Property URL.", "computed": true }, { - "name": "created_time", + "name": "environment_id", "type": "TypeString", - "description": "Creation time of the feature flag.", - "computed": true + "description": "Environment Id.", + "required": true }, { - "name": "enabled_value", + "name": "type", "type": "TypeString", - "description": "Value of the feature when it is enabled. The value can be BOOLEAN, STRING or a NUMERIC value as per the `type` attribute.", + "description": "Type of the Property (BOOLEAN, STRING, NUMERIC).", "required": true }, { - "name": "tags", + "name": "format", "type": "TypeString", - "description": "Tags associated with the feature.", - "cloud_data_type": "tags", + "description": "Format of the feature (TEXT, JSON, YAML).", "optional": true }, { - "name": "updated_time", - "type": "TypeString", - "description": "Last modified time of the feature flag data.", - "computed": true - } - ], - "ibm_app_config_property": [ + "name": "collections", + "type": "TypeList", + "description": "List of collection id representing the collections that are associated with the specified property.", + "optional": true, + "elem": { + "collection_id": { + "name": "collection_id", + "type": "TypeString", + "description": "Collection id.", + "required": true + } + } + }, { "name": "guid", "type": "TypeString", "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", "required": true }, + { + "name": "name", + "type": "TypeString", + "description": "Property name.", + "required": true + }, { "name": "property_id", "type": "TypeString", @@ -86306,22 +86363,21 @@ "required": true }, { - "name": "type", + "name": "updated_time", "type": "TypeString", - "description": "Type of the Property (BOOLEAN, STRING, NUMERIC).", - "required": true + "description": "Last modified time of the property data.", + "computed": true }, { - "name": "tags", + "name": "value", "type": "TypeString", - "description": "Tags associated with the property.", - "cloud_data_type": "tags", - "optional": true + "description": "Value of the Property. The value can be Boolean, String or a Numeric value as per the `type` attribute.", + "required": true }, { - "name": "format", + "name": "description", "type": "TypeString", - "description": "Format of the feature (TEXT, JSON, YAML).", + "description": "Property description.", "optional": true }, { @@ -86361,68 +86417,6 @@ } } }, - { - "name": "href", - "type": "TypeString", - "description": "Property URL.", - "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Property description.", - "optional": true - }, - { - "name": "collections", - "type": "TypeList", - "description": "List of collection id representing the collections that are associated with the specified property.", - "optional": true, - "elem": { - "collection_id": { - "name": "collection_id", - "type": "TypeString", - "description": "Collection id.", - "required": true - } - } - }, - { - "name": "segment_exists", - "type": "TypeBool", - "description": "Denotes if the targeting rules are specified for the property.", - "computed": true - }, - { - "name": "created_time", - "type": "TypeString", - "description": "Creation time of the property.", - "computed": true - }, - { - "name": "updated_time", - "type": "TypeString", - "description": "Last modified time of the property data.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Property name.", - "required": true - }, - { - "name": "value", - "type": "TypeString", - "description": "Value of the Property. The value can be Boolean, String or a Numeric value as per the `type` attribute.", - "required": true - }, - { - "name": "environment_id", - "type": "TypeString", - "description": "Environment Id.", - "required": true - }, { "name": "evaluation_time", "type": "TypeString", @@ -86431,49 +86425,12 @@ } ], "ibm_app_config_segment": [ - { - "name": "guid", - "type": "TypeString", - "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", - "required": true - }, - { - "name": "updated_time", - "type": "TypeString", - "description": "Last modified time of the segment data.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Segment name.", - "required": true - }, - { - "name": "segment_id", - "type": "TypeString", - "description": "Segment id.", - "required": true - }, { "name": "description", "type": "TypeString", "description": "Segment description.", "optional": true }, - { - "name": "tags", - "type": "TypeString", - "description": "Tags associated with the segments.", - "cloud_data_type": "tags", - "optional": true - }, - { - "name": "created_time", - "type": "TypeString", - "description": "Creation time of the segment.", - "computed": true - }, { "name": "href", "type": "TypeString", @@ -86508,94 +86465,56 @@ } } } - } - ], - "ibm_app_config_snapshot": [ - { - "name": "git_config_id", - "type": "TypeString", - "description": "Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only", - "required": true }, { - "name": "git_branch", + "name": "guid", "type": "TypeString", - "description": "Branch name to which you need to write or update the configuration.", + "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", "required": true }, { - "name": "href", - "type": "TypeString", - "description": "Git config URL.", - "computed": true - }, - { - "name": "collection", - "type": "TypeList", - "description": "Collection object.", - "computed": true, - "elem": { - "collection_id": { - "name": "collection_id", - "type": "TypeString", - "description": "Collection id.", - "computed": true - }, - "collection_name": { - "name": "collection_name", - "type": "TypeString", - "description": "Collection name.", - "computed": true - } - } - }, - { - "name": "git_file_path", + "name": "name", "type": "TypeString", - "description": "Git file path, this is a path where your configuration file will be written.", + "description": "Segment name.", "required": true }, { - "name": "collection_id", + "name": "segment_id", "type": "TypeString", - "description": "Collection id.", + "description": "Segment id.", "required": true }, { - "name": "action", + "name": "tags", "type": "TypeString", - "description": "action promote", + "description": "Tags associated with the segments.", + "cloud_data_type": "tags", "optional": true }, { - "name": "environment_id", - "type": "TypeString", - "description": "Environment id.", - "required": true - }, - { - "name": "guid", + "name": "created_time", "type": "TypeString", - "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", - "required": true + "description": "Creation time of the segment.", + "computed": true }, { - "name": "git_url", + "name": "updated_time", "type": "TypeString", - "description": "Git url which will be used to connect to the github account.", - "required": true - }, + "description": "Last modified time of the segment data.", + "computed": true + } + ], + "ibm_app_config_snapshot": [ { - "name": "git_config_name", + "name": "git_branch", "type": "TypeString", - "description": "Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only", + "description": "Branch name to which you need to write or update the configuration.", "required": true }, { - "name": "git_token", + "name": "git_file_path", "type": "TypeString", - "description": "Git token, this needs to be provided with enough permission to write and update the file.", - "secure": true, + "description": "Git file path, this is a path where your configuration file will be written.", "required": true }, { @@ -86605,9 +86524,9 @@ "computed": true }, { - "name": "updated_time", + "name": "href", "type": "TypeString", - "description": "Last modified time of the git config data.", + "description": "Git config URL.", "computed": true }, { @@ -86635,6 +86554,81 @@ "computed": true } } + }, + { + "name": "guid", + "type": "TypeString", + "description": "GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.", + "required": true + }, + { + "name": "git_config_id", + "type": "TypeString", + "description": "Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only", + "required": true + }, + { + "name": "git_config_name", + "type": "TypeString", + "description": "Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only", + "required": true + }, + { + "name": "git_url", + "type": "TypeString", + "description": "Git url which will be used to connect to the github account.", + "required": true + }, + { + "name": "git_token", + "type": "TypeString", + "description": "Git token, this needs to be provided with enough permission to write and update the file.", + "secure": true, + "required": true + }, + { + "name": "updated_time", + "type": "TypeString", + "description": "Last modified time of the git config data.", + "computed": true + }, + { + "name": "collection_id", + "type": "TypeString", + "description": "Collection id.", + "required": true + }, + { + "name": "action", + "type": "TypeString", + "description": "action promote", + "optional": true + }, + { + "name": "environment_id", + "type": "TypeString", + "description": "Environment id.", + "required": true + }, + { + "name": "collection", + "type": "TypeList", + "description": "Collection object.", + "computed": true, + "elem": { + "collection_id": { + "name": "collection_id", + "type": "TypeString", + "description": "Collection id.", + "computed": true + }, + "collection_name": { + "name": "collection_name", + "type": "TypeString", + "description": "Collection name.", + "computed": true + } + } } ], "ibm_app_domain_private": [ @@ -86663,6 +86657,15 @@ } ], "ibm_app_domain_shared": [ + { + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, { "name": "name", "type": "TypeString", @@ -86676,7 +86679,9 @@ "description": "The guid of the router group.", "immutable": true, "optional": true - }, + } + ], + "ibm_app_route": [ { "name": "tags", "type": "TypeSet", @@ -86685,9 +86690,7 @@ "elem": { "type": "TypeString" } - } - ], - "ibm_app_route": [ + }, { "name": "host", "type": "TypeString", @@ -86719,15 +86722,6 @@ "type": "TypeString", "description": "The path for a route as raw text.Paths must be between 2 and 128 characters.Paths must start with a forward slash '/'.Paths must not contain a '?'", "optional": true - }, - { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } } ], "ibm_appid_action_url": [ @@ -86753,19 +86747,6 @@ } ], "ibm_appid_apm": [ - { - "name": "tenant_id", - "type": "TypeString", - "description": "The AppID instance GUID", - "immutable": true, - "required": true - }, - { - "name": "enabled", - "type": "TypeBool", - "description": "`true` if APM is enabled", - "required": true - }, { "name": "prevent_password_with_username", "type": "TypeBool", @@ -86853,9 +86834,34 @@ } }, "max_items": 1 + }, + { + "name": "tenant_id", + "type": "TypeString", + "description": "The AppID instance GUID", + "immutable": true, + "required": true + }, + { + "name": "enabled", + "type": "TypeBool", + "description": "`true` if APM is enabled", + "required": true } ], "ibm_appid_application": [ + { + "name": "client_id", + "type": "TypeString", + "description": "The `client_id` is a public identifier for applications", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The application name to be registered. Application name cannot exceed 50 characters.", + "required": true + }, { "name": "type", "type": "TypeString", @@ -86894,21 +86900,16 @@ "description": "The service `tenantId`", "immutable": true, "required": true - }, - { - "name": "client_id", - "type": "TypeString", - "description": "The `client_id` is a public identifier for applications", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The application name to be registered. Application name cannot exceed 50 characters.", - "required": true } ], "ibm_appid_application_roles": [ + { + "name": "tenant_id", + "type": "TypeString", + "description": "The service `tenantId`", + "immutable": true, + "required": true + }, { "name": "client_id", "type": "TypeString", @@ -86924,13 +86925,6 @@ "elem": { "type": "TypeString" } - }, - { - "name": "tenant_id", - "type": "TypeString", - "description": "The service `tenantId`", - "immutable": true, - "required": true } ], "ibm_appid_application_scopes": [ @@ -86959,21 +86953,27 @@ } ], "ibm_appid_audit_status": [ + { + "name": "is_active", + "type": "TypeBool", + "description": "The auditing status of the tenant.", + "required": true + }, { "name": "tenant_id", "type": "TypeString", "description": "The AppID instance GUID", "immutable": true, "required": true - }, - { - "name": "is_active", - "type": "TypeBool", - "description": "The auditing status of the tenant.", - "required": true } ], "ibm_appid_cloud_directory_template": [ + { + "name": "html_body", + "type": "TypeString", + "description": "The HTML body of the email", + "optional": true + }, { "name": "base64_encoded_html_body", "type": "TypeString", @@ -87013,15 +87013,29 @@ "type": "TypeString", "description": "The subject of the email", "required": true + } + ], + "ibm_appid_cloud_directory_user": [ + { + "name": "display_name", + "type": "TypeString", + "description": "Cloud Directory user display name", + "optional": true, + "computed": true }, { - "name": "html_body", + "name": "user_name", "type": "TypeString", - "description": "The HTML body of the email", + "description": "Optional username", "optional": true - } - ], - "ibm_appid_cloud_directory_user": [ + }, + { + "name": "password", + "type": "TypeString", + "description": "User password", + "secure": true, + "required": true + }, { "name": "email", "type": "TypeSet", @@ -87063,25 +87077,17 @@ } }, { - "name": "create_profile", - "type": "TypeBool", - "description": "A boolean indication if a profile should be created for the Cloud Directory user", - "default_value": true, - "immutable": true, - "optional": true - }, - { - "name": "subject", + "name": "tenant_id", "type": "TypeString", - "description": "The user's identifier ('subject' in identity token)", - "computed": true + "description": "The AppID instance GUID", + "immutable": true, + "required": true }, { - "name": "password", - "type": "TypeString", - "description": "User password", - "secure": true, - "required": true + "name": "locked_until", + "type": "TypeInt", + "description": "Integer (epoch time in milliseconds), determines till when the user account will be locked", + "optional": true }, { "name": "user_id", @@ -87090,18 +87096,11 @@ "computed": true }, { - "name": "display_name", + "name": "subject", "type": "TypeString", - "description": "Cloud Directory user display name", - "optional": true, + "description": "The user's identifier ('subject' in identity token)", "computed": true }, - { - "name": "user_name", - "type": "TypeString", - "description": "Optional username", - "optional": true - }, { "name": "status", "type": "TypeString", @@ -87109,13 +87108,6 @@ "default_value": "PENDING", "optional": true }, - { - "name": "tenant_id", - "type": "TypeString", - "description": "The AppID instance GUID", - "immutable": true, - "required": true - }, { "name": "active", "type": "TypeBool", @@ -87124,21 +87116,34 @@ "optional": true }, { - "name": "locked_until", - "type": "TypeInt", - "description": "Integer (epoch time in milliseconds), determines till when the user account will be locked", + "name": "create_profile", + "type": "TypeBool", + "description": "A boolean indication if a profile should be created for the Cloud Directory user", + "default_value": true, + "immutable": true, "optional": true } ], "ibm_appid_idp_cloud_directory": [ { - "name": "self_service_enabled", + "name": "tenant_id", + "type": "TypeString", + "immutable": true, + "required": true + }, + { + "name": "is_active", + "type": "TypeBool", + "required": true + }, + { + "name": "signup_enabled", "type": "TypeBool", "default_value": true, "optional": true }, { - "name": "signup_enabled", + "name": "self_service_enabled", "type": "TypeBool", "default_value": true, "optional": true @@ -87150,21 +87155,22 @@ "optional": true }, { - "name": "identity_confirm_access_mode", - "type": "TypeString", - "default_value": "FULL", + "name": "reset_password_enabled", + "type": "TypeBool", + "default_value": true, "optional": true }, { - "name": "tenant_id", - "type": "TypeString", - "immutable": true, - "required": true + "name": "reset_password_notification_enabled", + "type": "TypeBool", + "default_value": true, + "optional": true }, { - "name": "is_active", - "type": "TypeBool", - "required": true + "name": "identity_confirm_access_mode", + "type": "TypeString", + "default_value": "FULL", + "optional": true }, { "name": "identity_confirm_methods", @@ -87178,18 +87184,6 @@ "name": "identity_field", "type": "TypeString", "optional": true - }, - { - "name": "reset_password_enabled", - "type": "TypeBool", - "default_value": true, - "optional": true - }, - { - "name": "reset_password_notification_enabled", - "type": "TypeBool", - "default_value": true, - "optional": true } ], "ibm_appid_idp_custom": [ @@ -87299,6 +87293,12 @@ } ], "ibm_appid_idp_saml": [ + { + "name": "is_active", + "type": "TypeBool", + "description": "SAML IDP activation", + "required": true + }, { "name": "config", "type": "TypeList", @@ -87386,15 +87386,16 @@ "description": "The AppID instance GUID", "immutable": true, "required": true - }, - { - "name": "is_active", - "type": "TypeBool", - "description": "SAML IDP activation", - "required": true } ], "ibm_appid_languages": [ + { + "name": "tenant_id", + "type": "TypeString", + "description": "The service `tenantId`", + "immutable": true, + "required": true + }, { "name": "languages", "type": "TypeList", @@ -87403,13 +87404,6 @@ "elem": { "type": "TypeString" } - }, - { - "name": "tenant_id", - "type": "TypeString", - "description": "The service `tenantId`", - "immutable": true, - "required": true } ], "ibm_appid_mfa": [ @@ -87472,6 +87466,12 @@ } ], "ibm_appid_password_regex": [ + { + "name": "regex", + "type": "TypeString", + "description": "The escaped regex expression rule for acceptable password", + "required": true + }, { "name": "tenant_id", "type": "TypeString", @@ -87490,12 +87490,6 @@ "type": "TypeString", "description": "Custom error message", "optional": true - }, - { - "name": "regex", - "type": "TypeString", - "description": "The escaped regex expression rule for acceptable password", - "required": true } ], "ibm_appid_redirect_urls": [ @@ -87579,13 +87573,6 @@ } ], "ibm_appid_theme_text": [ - { - "name": "tenant_id", - "type": "TypeString", - "description": "The AppID instance GUID", - "immutable": true, - "required": true - }, { "name": "tab_title", "type": "TypeString", @@ -87595,41 +87582,16 @@ "name": "footnote", "type": "TypeString", "optional": true + }, + { + "name": "tenant_id", + "type": "TypeString", + "description": "The AppID instance GUID", + "immutable": true, + "required": true } ], "ibm_appid_token_config": [ - { - "name": "refresh_token_enabled", - "type": "TypeBool", - "optional": true, - "computed": true - }, - { - "name": "access_token_claim", - "type": "TypeSet", - "description": "A set of objects that are created when claims that are related to access tokens are mapped", - "optional": true, - "elem": { - "destination_claim": { - "name": "destination_claim", - "type": "TypeString", - "description": "Optional: Defines the custom attribute that can override the current claim in token.", - "optional": true - }, - "source": { - "name": "source", - "type": "TypeString", - "description": "Defines the source of the claim. Options include: `saml`, `cloud_directory`, `facebook`, `google`, `appid_custom`, and `attributes`.", - "required": true - }, - "source_claim": { - "name": "source_claim", - "type": "TypeString", - "description": "Defines the claim as provided by the source. It can refer to the identity provider's user information or the user's App ID custom attributes.", - "optional": true - } - } - }, { "name": "id_token_claim", "type": "TypeSet", @@ -87686,6 +87648,38 @@ "description": "The length of time for which an anonymous token is valid in seconds", "optional": true, "computed": true + }, + { + "name": "refresh_token_enabled", + "type": "TypeBool", + "optional": true, + "computed": true + }, + { + "name": "access_token_claim", + "type": "TypeSet", + "description": "A set of objects that are created when claims that are related to access tokens are mapped", + "optional": true, + "elem": { + "destination_claim": { + "name": "destination_claim", + "type": "TypeString", + "description": "Optional: Defines the custom attribute that can override the current claim in token.", + "optional": true + }, + "source": { + "name": "source", + "type": "TypeString", + "description": "Defines the source of the claim. Options include: `saml`, `cloud_directory`, `facebook`, `google`, `appid_custom`, and `attributes`.", + "required": true + }, + "source_claim": { + "name": "source_claim", + "type": "TypeString", + "description": "Defines the claim as provided by the source. It can refer to the identity provider's user information or the user's App ID custom attributes.", + "optional": true + } + } } ], "ibm_appid_user_roles": [ @@ -87715,16 +87709,11 @@ ], "ibm_atracker_route": [ { - "name": "created_at", - "type": "TypeString", - "description": "The timestamp of the route creation time.", - "computed": true - }, - { - "name": "updated_at", + "name": "updated", "type": "TypeString", "description": "The timestamp of the route last updated time.", - "computed": true + "computed": true, + "deprecated": "use updated_at instead" }, { "name": "api_version", @@ -87732,33 +87721,6 @@ "description": "The API version of the route.", "computed": true }, - { - "name": "crn", - "type": "TypeString", - "description": "The crn of the route resource.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "version", - "type": "TypeInt", - "description": "The version of the route.", - "computed": true - }, - { - "name": "created", - "type": "TypeString", - "description": "The timestamp of the route creation time.", - "computed": true, - "deprecated": "use created_at instead" - }, - { - "name": "updated", - "type": "TypeString", - "description": "The timestamp of the route last updated time.", - "computed": true, - "deprecated": "use updated_at instead" - }, { "name": "name", "type": "TypeString", @@ -87768,13 +87730,6 @@ "max_length": 1000, "matches": "^[a-zA-Z0-9 -._:]+$" }, - { - "name": "receive_global_events", - "type": "TypeBool", - "description": "Indicates whether or not all global events should be forwarded to this region.", - "optional": true, - "deprecated": "use rules.locations instead" - }, { "name": "rules", "type": "TypeList", @@ -87800,6 +87755,45 @@ } } } + }, + { + "name": "crn", + "type": "TypeString", + "description": "The crn of the route resource.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "version", + "type": "TypeInt", + "description": "The version of the route.", + "computed": true + }, + { + "name": "created", + "type": "TypeString", + "description": "The timestamp of the route creation time.", + "computed": true, + "deprecated": "use created_at instead" + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The timestamp of the route creation time.", + "computed": true + }, + { + "name": "receive_global_events", + "type": "TypeBool", + "description": "Indicates whether or not all global events should be forwarded to this region.", + "optional": true, + "deprecated": "use rules.locations instead" + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The timestamp of the route last updated time.", + "computed": true } ], "ibm_atracker_settings": [ @@ -87852,6 +87846,55 @@ } ], "ibm_atracker_target": [ + { + "name": "eventstreams_endpoint", + "type": "TypeList", + "description": "Property values for an Event Streams Endpoint in requests.", + "optional": true, + "elem": { + "api_key": { + "name": "api_key", + "type": "TypeString", + "description": "The user password (api key) for the message hub topic in the Event Streams instance.", + "secure": true, + "required": true + }, + "brokers": { + "name": "brokers", + "type": "TypeList", + "description": "List of broker endpoints.", + "required": true, + "elem": { + "type": "TypeString" + } + }, + "target_crn": { + "name": "target_crn", + "type": "TypeString", + "description": "The CRN of the Event Streams instance.", + "required": true + }, + "topic": { + "name": "topic", + "type": "TypeString", + "description": "The messsage hub topic defined in the Event Streams instance.", + "required": true + } + }, + "max_items": 1 + }, + { + "name": "encryption_key", + "type": "TypeString", + "description": "The encryption key that is used to encrypt events before Activity Tracker services buffer them on storage. This credential is masked in the response.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The timestamp of the target creation time.", + "computed": true + }, { "name": "logdna_endpoint", "type": "TypeList", @@ -87875,14 +87918,11 @@ "max_items": 1 }, { - "name": "region", + "name": "encrypt_key", "type": "TypeString", - "description": "Include this optional field if you want to create a target in a different region other than the one you are connected.", - "immutable": true, - "min_length": 3, - "max_length": 1000, - "matches": "^[a-zA-Z0-9 -._:]+$", - "optional": true + "description": "The encryption key that is used to encrypt events before Activity Tracker services buffer them on storage. This credential is masked in the response.", + "computed": true, + "deprecated": "use encryption_key instead" }, { "name": "updated_at", @@ -87890,12 +87930,6 @@ "description": "The timestamp of the target last updated time.", "computed": true }, - { - "name": "api_version", - "type": "TypeInt", - "description": "The API version of the target.", - "computed": true - }, { "name": "name", "type": "TypeString", @@ -87913,12 +87947,6 @@ "required": true, "options": "cloud_object_storage, logdna, event_streams" }, - { - "name": "created_at", - "type": "TypeString", - "description": "The timestamp of the target creation time.", - "computed": true - }, { "name": "cos_endpoint", "type": "TypeList", @@ -87950,63 +87978,29 @@ "description": "ATracker service is enabled to support service to service authentication. If service to service is enabled then set this flag is true and do not supply apikey.", "optional": true }, - "target_crn": { - "name": "target_crn", - "type": "TypeString", - "description": "The CRN of the Cloud Object Storage instance.", - "required": true - } - }, - "max_items": 1 - }, - { - "name": "eventstreams_endpoint", - "type": "TypeList", - "description": "Property values for an Event Streams Endpoint in requests.", - "optional": true, - "elem": { - "api_key": { - "name": "api_key", - "type": "TypeString", - "description": "The user password (api key) for the message hub topic in the Event Streams instance.", - "secure": true, - "required": true - }, - "brokers": { - "name": "brokers", - "type": "TypeList", - "description": "List of broker endpoints.", - "required": true, - "elem": { - "type": "TypeString" - } - }, - "target_crn": { - "name": "target_crn", - "type": "TypeString", - "description": "The CRN of the Event Streams instance.", - "required": true - }, - "topic": { - "name": "topic", + "target_crn": { + "name": "target_crn", "type": "TypeString", - "description": "The messsage hub topic defined in the Event Streams instance.", + "description": "The CRN of the Cloud Object Storage instance.", "required": true } }, "max_items": 1 }, { - "name": "encrypt_key", + "name": "region", "type": "TypeString", - "description": "The encryption key that is used to encrypt events before Activity Tracker services buffer them on storage. This credential is masked in the response.", - "computed": true, - "deprecated": "use encryption_key instead" + "description": "Include this optional field if you want to create a target in a different region other than the one you are connected.", + "immutable": true, + "min_length": 3, + "max_length": 1000, + "matches": "^[a-zA-Z0-9 -._:]+$", + "optional": true }, { - "name": "cos_write_status", + "name": "write_status", "type": "TypeList", - "description": "The status of the write attempt with the provided cos_endpoint parameters.", + "description": "The status of the write attempt to the target with the provided endpoint parameters.", "computed": true, "elem": { "last_failure": { @@ -88025,15 +88019,34 @@ "name": "status", "type": "TypeString", "description": "The status such as failed or success.", - "optional": true + "required": true } - }, - "deprecated": "use write_status instead" + } }, { - "name": "write_status", + "name": "updated", + "type": "TypeString", + "description": "The timestamp of the target last updated time.", + "computed": true, + "deprecated": "use updated_at instead" + }, + { + "name": "api_version", + "type": "TypeInt", + "description": "The API version of the target.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The crn of the target resource.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "cos_write_status", "type": "TypeList", - "description": "The status of the write attempt to the target with the provided endpoint parameters.", + "description": "The status of the write attempt with the provided cos_endpoint parameters.", "computed": true, "elem": { "last_failure": { @@ -88052,9 +88065,10 @@ "name": "status", "type": "TypeString", "description": "The status such as failed or success.", - "required": true + "optional": true } - } + }, + "deprecated": "use write_status instead" }, { "name": "created", @@ -88062,35 +88076,48 @@ "description": "The timestamp of the target creation time.", "computed": true, "deprecated": "use created_at instead" + } + ], + "ibm_billing_report_snapshot": [ + { + "name": "versioning", + "type": "TypeString", + "description": "A new version of report is created or the existing report version is overwritten with every update.", + "default_value": "new", + "options": "new, overwrite", + "optional": true }, { - "name": "crn", + "name": "cos_bucket", "type": "TypeString", - "description": "The crn of the target resource.", - "cloud_data_type": "crn", - "computed": true + "description": "The name of the COS bucket to store the snapshot of the billing reports.", + "required": true }, { - "name": "encryption_key", + "name": "compression", "type": "TypeString", - "description": "The encryption key that is used to encrypt events before Activity Tracker services buffer them on storage. This credential is masked in the response.", + "description": "Compression format of the snapshot report.", "computed": true }, { - "name": "updated", + "name": "interval", "type": "TypeString", - "description": "The timestamp of the target last updated time.", - "computed": true, - "deprecated": "use updated_at instead" - } - ], - "ibm_billing_report_snapshot": [ + "description": "Frequency of taking the snapshot of the billing reports.", + "required": true, + "options": "daily" + }, { - "name": "compression", + "name": "content_type", "type": "TypeString", - "description": "Compression format of the snapshot report.", + "description": "Type of content stored in snapshot report.", "computed": true }, + { + "name": "cos_location", + "type": "TypeString", + "description": "Region of the COS instance.", + "required": true + }, { "name": "history", "type": "TypeList", @@ -88192,20 +88219,6 @@ } } }, - { - "name": "versioning", - "type": "TypeString", - "description": "A new version of report is created or the existing report version is overwritten with every update.", - "default_value": "new", - "options": "new, overwrite", - "optional": true - }, - { - "name": "cos_bucket", - "type": "TypeString", - "description": "The name of the COS bucket to store the snapshot of the billing reports.", - "required": true - }, { "name": "cos_endpoint", "type": "TypeString", @@ -88213,13 +88226,11 @@ "computed": true }, { - "name": "report_types", - "type": "TypeList", - "description": "The type of billing reports to take snapshot of. Possible values are [account_summary, enterprise_summary, account_resource_instance_usage].", - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "cos_reports_folder", + "type": "TypeString", + "description": "The billing reports root folder to store the billing reports snapshots. Defaults to \"IBMCloud-Billing-Reports\".", + "default_value": "IBMCloud-Billing-Reports", + "optional": true }, { "name": "state", @@ -88228,10 +88239,10 @@ "computed": true }, { - "name": "cos_location", + "name": "account_type", "type": "TypeString", - "description": "Region of the COS instance.", - "required": true + "description": "Type of account. Possible values are [enterprise, account].", + "computed": true }, { "name": "created_at", @@ -88240,39 +88251,53 @@ "computed": true }, { - "name": "interval", - "type": "TypeString", - "description": "Frequency of taking the snapshot of the billing reports.", - "required": true, - "options": "daily" + "name": "last_updated_at", + "type": "TypeInt", + "description": "Timestamp in milliseconds when the snapshot configuration was last updated.", + "computed": true }, { - "name": "cos_reports_folder", + "name": "report_types", + "type": "TypeList", + "description": "The type of billing reports to take snapshot of. Possible values are [account_summary, enterprise_summary, account_resource_instance_usage].", + "optional": true, + "elem": { + "type": "TypeString" + } + } + ], + "ibm_cbr_rule": [ + { + "name": "enforcement_mode", "type": "TypeString", - "description": "The billing reports root folder to store the billing reports snapshots. Defaults to \"IBMCloud-Billing-Reports\".", - "default_value": "IBMCloud-Billing-Reports", + "description": "The rule enforcement mode: * `enabled` - The restrictions are enforced and reported. This is the default. * `disabled` - The restrictions are disabled. Nothing is enforced or reported. * `report` - The restrictions are evaluated and reported, but not enforced.", + "default_value": "enabled", + "options": "disabled, enabled, report", "optional": true }, { - "name": "last_updated_at", - "type": "TypeInt", - "description": "Timestamp in milliseconds when the snapshot configuration was last updated.", - "computed": true + "name": "transaction_id", + "type": "TypeString", + "description": "The `Transaction-Id` header behaves as the `X-Correlation-Id` header. It is supported for backward compatibility with other IBM platform services that support the `Transaction-Id` header only. If both `X-Correlation-Id` and `Transaction-Id` are provided, `X-Correlation-Id` has the precedence over `Transaction-Id`.", + "min_length": 1, + "max_length": 1024, + "matches": "^[a-zA-Z0-9 ,\\-_]+$", + "optional": true }, { - "name": "account_type", + "name": "created_by_id", "type": "TypeString", - "description": "Type of account. Possible values are [enterprise, account].", + "description": "IAM ID of the user or service which created the resource.", "computed": true }, { - "name": "content_type", + "name": "description", "type": "TypeString", - "description": "Type of content stored in snapshot report.", - "computed": true - } - ], - "ibm_cbr_rule": [ + "description": "The description of the rule.", + "max_length": 300, + "matches": "^[\\x20-\\xFE]*$", + "optional": true + }, { "name": "created_at", "type": "TypeString", @@ -88280,9 +88305,36 @@ "computed": true }, { - "name": "transaction_id", + "name": "version", "type": "TypeString", - "description": "The `Transaction-Id` header behaves as the `X-Correlation-Id` header. It is supported for backward compatibility with other IBM platform services that support the `Transaction-Id` header only. If both `X-Correlation-Id` and `Transaction-Id` are provided, `X-Correlation-Id` has the precedence over `Transaction-Id`.", + "computed": true + }, + { + "name": "operations", + "type": "TypeList", + "description": "The operations this rule applies to.", + "optional": true, + "elem": { + "api_types": { + "name": "api_types", + "type": "TypeList", + "description": "The API types this rule applies to.", + "required": true, + "elem": { + "api_type_id": { + "name": "api_type_id", + "type": "TypeString", + "required": true + } + } + } + }, + "max_items": 1 + }, + { + "name": "x_correlation_id", + "type": "TypeString", + "description": "The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests and retries of those requests. If a value of this headers is not supplied in a request, the service generates a random (version 4) UUID.", "min_length": 1, "max_length": 1024, "matches": "^[a-zA-Z0-9 ,\\-_]+$", @@ -88294,6 +88346,53 @@ "description": "The href link to the resource.", "computed": true }, + { + "name": "last_modified_at", + "type": "TypeString", + "description": "The last time the resource was modified.", + "computed": true + }, + { + "name": "last_modified_by_id", + "type": "TypeString", + "description": "IAM ID of the user or service which modified the resource.", + "computed": true + }, + { + "name": "contexts", + "type": "TypeList", + "description": "The contexts this rule applies to.", + "required": true, + "elem": { + "attributes": { + "name": "attributes", + "type": "TypeList", + "description": "The attributes.", + "required": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "The attribute name.", + "required": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "The attribute value.", + "required": true + } + } + } + } + }, + { + "name": "crn", + "type": "TypeString", + "description": "The rule CRN.", + "cloud_data_type": "crn", + "computed": true + }, { "name": "resources", "type": "TypeList", @@ -88353,14 +88452,9 @@ } } } - }, - { - "name": "crn", - "type": "TypeString", - "description": "The rule CRN.", - "cloud_data_type": "crn", - "computed": true - }, + } + ], + "ibm_cbr_zone": [ { "name": "created_by_id", "type": "TypeString", @@ -88368,106 +88462,29 @@ "computed": true }, { - "name": "last_modified_at", - "type": "TypeString", - "description": "The last time the resource was modified.", - "computed": true - }, - { - "name": "last_modified_by_id", + "name": "version", "type": "TypeString", - "description": "IAM ID of the user or service which modified the resource.", "computed": true }, { - "name": "description", - "type": "TypeString", - "description": "The description of the rule.", - "max_length": 300, - "matches": "^[\\x20-\\xFE]*$", - "optional": true - }, - { - "name": "contexts", - "type": "TypeList", - "description": "The contexts this rule applies to.", - "required": true, - "elem": { - "attributes": { - "name": "attributes", - "type": "TypeList", - "description": "The attributes.", - "required": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "The attribute name.", - "required": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "The attribute value.", - "required": true - } - } - } - } - }, - { - "name": "operations", + "name": "excluded", "type": "TypeList", - "description": "The operations this rule applies to.", + "description": "The list of excluded addresses in the zone. Only addresses of type `ipAddress`, `ipRange`, and `subnet` can be excluded.", "optional": true, "elem": { - "api_types": { - "name": "api_types", - "type": "TypeList", - "description": "The API types this rule applies to.", - "required": true, - "elem": { - "api_type_id": { - "name": "api_type_id", - "type": "TypeString", - "required": true - } - } + "type": { + "name": "type", + "type": "TypeString", + "description": "The type of address.", + "required": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "The IP address.", + "optional": true } - }, - "max_items": 1 - }, - { - "name": "enforcement_mode", - "type": "TypeString", - "description": "The rule enforcement mode: * `enabled` - The restrictions are enforced and reported. This is the default. * `disabled` - The restrictions are disabled. Nothing is enforced or reported. * `report` - The restrictions are evaluated and reported, but not enforced.", - "default_value": "enabled", - "options": "disabled, enabled, report", - "optional": true - }, - { - "name": "x_correlation_id", - "type": "TypeString", - "description": "The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests and retries of those requests. If a value of this headers is not supplied in a request, the service generates a random (version 4) UUID.", - "min_length": 1, - "max_length": 1024, - "matches": "^[a-zA-Z0-9 ,\\-_]+$", - "optional": true - }, - { - "name": "version", - "type": "TypeString", - "computed": true - } - ], - "ibm_cbr_zone": [ - { - "name": "description", - "type": "TypeString", - "description": "The description of the zone.", - "max_length": 300, - "matches": "^[\\x20-\\xFE]*$", - "optional": true + } }, { "name": "transaction_id", @@ -88479,21 +88496,19 @@ "optional": true }, { - "name": "excluded_count", - "type": "TypeInt", - "description": "The number of excluded addresses in the zone.", - "computed": true - }, - { - "name": "version", + "name": "last_modified_at", "type": "TypeString", + "description": "The last time the resource was modified.", "computed": true }, { - "name": "last_modified_by_id", + "name": "name", "type": "TypeString", - "description": "IAM ID of the user or service which modified the resource.", - "computed": true + "description": "The name of the zone.", + "required": true, + "min_length": 1, + "max_length": 128, + "matches": "^[a-zA-Z0-9 \\-_]+$" }, { "name": "account_id", @@ -88505,48 +88520,13 @@ "matches": "^[a-zA-Z0-9\\-]+$" }, { - "name": "x_correlation_id", + "name": "description", "type": "TypeString", - "description": "The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests and retries of those requests. If a value of this headers is not supplied in a request, the service generates a random (version 4) UUID.", - "min_length": 1, - "max_length": 1024, - "matches": "^[a-zA-Z0-9 ,\\-_]+$", + "description": "The description of the zone.", + "max_length": 300, + "matches": "^[\\x20-\\xFE]*$", "optional": true }, - { - "name": "crn", - "type": "TypeString", - "description": "The zone CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "address_count", - "type": "TypeInt", - "description": "The number of addresses in the zone.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The href link to the resource.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The time the resource was created.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the zone.", - "required": true, - "min_length": 1, - "max_length": 128, - "matches": "^[a-zA-Z0-9 \\-_]+$" - }, { "name": "addresses", "type": "TypeList", @@ -88607,142 +88587,53 @@ } }, { - "name": "excluded", - "type": "TypeList", - "description": "The list of excluded addresses in the zone. Only addresses of type `ipAddress`, `ipRange`, and `subnet` can be excluded.", - "optional": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "The type of address.", - "required": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "The IP address.", - "optional": true - } - } + "name": "x_correlation_id", + "type": "TypeString", + "description": "The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests and retries of those requests. If a value of this headers is not supplied in a request, the service generates a random (version 4) UUID.", + "min_length": 1, + "max_length": 1024, + "matches": "^[a-zA-Z0-9 ,\\-_]+$", + "optional": true }, { - "name": "created_by_id", + "name": "crn", "type": "TypeString", - "description": "IAM ID of the user or service which created the resource.", + "description": "The zone CRN.", + "cloud_data_type": "crn", "computed": true }, { - "name": "last_modified_at", + "name": "href", "type": "TypeString", - "description": "The last time the resource was modified.", + "description": "The href link to the resource.", "computed": true - } - ], - "ibm_cd_tekton_pipeline": [ + }, { - "name": "build_number", + "name": "address_count", "type": "TypeInt", - "description": "The latest pipeline run build number. If this property is absent, the pipeline hasn't had any pipeline runs.", + "description": "The number of addresses in the zone.", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "String.", + "name": "excluded_count", + "type": "TypeInt", + "description": "The number of excluded addresses in the zone.", "computed": true }, { - "name": "definitions", - "type": "TypeList", - "description": "Definition list.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "API URL for interacting with the definition.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The aggregated definition ID.", - "computed": true - }, - "source": { - "name": "source", - "type": "TypeList", - "description": "Source repository containing the Tekton pipeline definition.", - "required": true, - "elem": { - "properties": { - "name": "properties", - "type": "TypeList", - "description": "Properties of the source, which define the URL of the repository and a branch or tag.", - "required": true, - "elem": { - "branch": { - "name": "branch", - "type": "TypeString", - "description": "A branch from the repo, specify one of branch or tag only.", - "optional": true - }, - "path": { - "name": "path", - "type": "TypeString", - "description": "The path to the definition's YAML files.", - "required": true - }, - "tag": { - "name": "tag", - "type": "TypeString", - "description": "A tag from the repo, specify one of branch or tag only.", - "optional": true - }, - "tool": { - "name": "tool", - "type": "TypeList", - "description": "Reference to the repository tool in the parent toolchain.", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "ID of the repository tool instance in the parent toolchain.", - "computed": true - } - } - }, - "url": { - "name": "url", - "type": "TypeString", - "description": "URL of the definition repository.", - "immutable": true, - "required": true - } - }, - "max_items": 1, - "min_items": 1 - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The only supported source type is \"git\", indicating that the source is a git repository.", - "required": true - } - }, - "max_items": 1, - "min_items": 1 - } - } + "name": "created_at", + "type": "TypeString", + "description": "The time the resource was created.", + "computed": true }, { - "name": "href", + "name": "last_modified_by_id", "type": "TypeString", - "description": "API URL for interacting with the pipeline.", + "description": "IAM ID of the user or service which modified the resource.", "computed": true - }, + } + ], + "ibm_cd_tekton_pipeline": [ { "name": "enabled", "type": "TypeBool", @@ -88750,33 +88641,7 @@ "computed": true }, { - "name": "status", - "type": "TypeString", - "description": "Pipeline status.", - "computed": true - }, - { - "name": "toolchain", - "type": "TypeList", - "description": "Toolchain object containing references to the parent toolchain.", - "computed": true, - "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for the toolchain that contains the Tekton pipeline.", - "required": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "UUID.", - "required": true - } - } - }, - { - "name": "created_at", + "name": "updated_at", "type": "TypeString", "description": "Standard RFC 3339 Date Time String.", "computed": true @@ -89061,10 +88926,29 @@ } }, { - "name": "next_build_number", - "type": "TypeInt", - "description": "The build number that will be used for the next pipeline run.", - "optional": true + "name": "status", + "type": "TypeString", + "description": "Pipeline status.", + "computed": true + }, + { + "name": "runs_url", + "type": "TypeString", + "description": "URL for this pipeline showing the list of pipeline runs.", + "computed": true + }, + { + "name": "pipeline_id", + "type": "TypeString", + "description": "String.", + "immutable": true, + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "String.", + "computed": true }, { "name": "enable_partial_cloning", @@ -89073,6 +88957,80 @@ "default_value": false, "optional": true }, + { + "name": "resource_group", + "type": "TypeList", + "description": "The resource group in which the pipeline was created.", + "cloud_data_type": "resource_group", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "ID.", + "optional": true + } + } + }, + { + "name": "toolchain", + "type": "TypeList", + "description": "Toolchain object containing references to the parent toolchain.", + "computed": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for the toolchain that contains the Tekton pipeline.", + "required": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "UUID.", + "required": true + } + } + }, + { + "name": "build_number", + "type": "TypeInt", + "description": "The latest pipeline run build number. If this property is absent, the pipeline hasn't had any pipeline runs.", + "computed": true + }, + { + "name": "worker", + "type": "TypeList", + "description": "Details of the worker used to run the pipeline.", + "optional": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "ID of the worker.", + "required": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the worker. Computed based on the worker ID.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of the worker. Computed based on the worker ID.", + "computed": true + } + }, + "max_items": 1 + }, + { + "name": "next_build_number", + "type": "TypeInt", + "description": "The build number that will be used for the next pipeline run.", + "optional": true + }, { "name": "properties", "type": "TypeList", @@ -89123,87 +89081,111 @@ } }, { - "name": "resource_group", - "type": "TypeList", - "description": "The resource group in which the pipeline was created.", - "cloud_data_type": "resource_group", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "ID.", - "optional": true - } - } - }, - { - "name": "updated_at", + "name": "created_at", "type": "TypeString", "description": "Standard RFC 3339 Date Time String.", "computed": true }, { - "name": "runs_url", + "name": "href", "type": "TypeString", - "description": "URL for this pipeline showing the list of pipeline runs.", + "description": "API URL for interacting with the pipeline.", "computed": true }, { - "name": "worker", + "name": "enable_notifications", + "type": "TypeBool", + "description": "Flag whether to enable notifications for this pipeline. When enabled, pipeline run events will be published on all slack integration specified channels in the parent toolchain. If omitted, this feature is disabled by default.", + "default_value": false, + "optional": true + }, + { + "name": "definitions", "type": "TypeList", - "description": "Details of the worker used to run the pipeline.", - "optional": true, + "description": "Definition list.", + "computed": true, "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "ID of the worker.", - "required": true - }, - "name": { - "name": "name", + "href": { + "name": "href", "type": "TypeString", - "description": "Name of the worker. Computed based on the worker ID.", + "description": "API URL for interacting with the definition.", "computed": true }, - "type": { - "name": "type", + "id": { + "name": "id", "type": "TypeString", - "description": "Type of the worker. Computed based on the worker ID.", + "description": "The aggregated definition ID.", "computed": true + }, + "source": { + "name": "source", + "type": "TypeList", + "description": "Source repository containing the Tekton pipeline definition.", + "required": true, + "elem": { + "properties": { + "name": "properties", + "type": "TypeList", + "description": "Properties of the source, which define the URL of the repository and a branch or tag.", + "required": true, + "elem": { + "branch": { + "name": "branch", + "type": "TypeString", + "description": "A branch from the repo, specify one of branch or tag only.", + "optional": true + }, + "path": { + "name": "path", + "type": "TypeString", + "description": "The path to the definition's YAML files.", + "required": true + }, + "tag": { + "name": "tag", + "type": "TypeString", + "description": "A tag from the repo, specify one of branch or tag only.", + "optional": true + }, + "tool": { + "name": "tool", + "type": "TypeList", + "description": "Reference to the repository tool in the parent toolchain.", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "ID of the repository tool instance in the parent toolchain.", + "computed": true + } + } + }, + "url": { + "name": "url", + "type": "TypeString", + "description": "URL of the definition repository.", + "immutable": true, + "required": true + } + }, + "max_items": 1, + "min_items": 1 + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The only supported source type is \"git\", indicating that the source is a git repository.", + "required": true + } + }, + "max_items": 1, + "min_items": 1 } - }, - "max_items": 1 - }, - { - "name": "enable_notifications", - "type": "TypeBool", - "description": "Flag whether to enable notifications for this pipeline. When enabled, pipeline run events will be published on all slack integration specified channels in the parent toolchain. If omitted, this feature is disabled by default.", - "default_value": false, - "optional": true - }, - { - "name": "pipeline_id", - "type": "TypeString", - "description": "String.", - "immutable": true, - "required": true + } } ], "ibm_cd_tekton_pipeline_definition": [ - { - "name": "href", - "type": "TypeString", - "description": "API URL for interacting with the definition.", - "computed": true - }, - { - "name": "definition_id", - "type": "TypeString", - "description": "The aggregated definition ID.", - "computed": true - }, { "name": "pipeline_id", "type": "TypeString", @@ -89278,9 +89260,31 @@ }, "max_items": 1, "min_items": 1 + }, + { + "name": "href", + "type": "TypeString", + "description": "API URL for interacting with the definition.", + "computed": true + }, + { + "name": "definition_id", + "type": "TypeString", + "description": "The aggregated definition ID.", + "computed": true } ], "ibm_cd_tekton_pipeline_property": [ + { + "name": "name", + "type": "TypeString", + "description": "Property name.", + "immutable": true, + "required": true, + "min_length": 1, + "max_length": 253, + "matches": "^[-0-9a-zA-Z_.]{1,253}$" + }, { "name": "value", "type": "TypeString", @@ -89329,102 +89333,43 @@ "min_length": 36, "max_length": 36, "matches": "^[-0-9a-z]+$" - }, - { - "name": "name", - "type": "TypeString", - "description": "Property name.", - "immutable": true, - "required": true, - "min_length": 1, - "max_length": 253, - "matches": "^[-0-9a-zA-Z_.]{1,253}$" } ], "ibm_cd_tekton_pipeline_trigger": [ { - "name": "pipeline_id", + "name": "type", "type": "TypeString", - "description": "The Tekton pipeline ID.", - "immutable": true, + "description": "Trigger type.", "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[-0-9a-z]+$" - }, - { - "name": "favorite", - "type": "TypeBool", - "description": "Mark the trigger as a favorite.", - "default_value": false, - "optional": true - }, - { - "name": "events", - "type": "TypeList", - "description": "Only needed for Git triggers. List of events to which a Git trigger listens. Choose one or more from: 'push', 'pull_request' and 'pull_request_closed'. For SCM repositories that use 'merge request' events, such events map to the equivalent 'pull request' events.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "cron", - "type": "TypeString", - "description": "Only needed for timer triggers. Cron expression that indicates when this trigger will activate. Maximum frequency is every 5 minutes. The string is based on UNIX crontab syntax: minute, hour, day of month, month, day of week. Example: 0 *_/2 * * * - every 2 hours.", - "min_length": 5, - "max_length": 253, - "matches": "^[-0-9a-zA-Z,\\*\\/ ]{5,253}$", - "optional": true + "options": "generic, manual, scm, timer" }, { - "name": "secret", + "name": "worker", "type": "TypeList", - "description": "Only needed for generic webhook trigger type. Secret used to start generic webhook trigger.", + "description": "Details of the worker used to run the trigger.", "optional": true, "elem": { - "algorithm": { - "name": "algorithm", - "type": "TypeString", - "description": "Algorithm used for `digest_matches` secret type. Only needed for `digest_matches` secret type.", - "optional": true - }, - "key_name": { - "name": "key_name", + "id": { + "name": "id", "type": "TypeString", - "description": "Secret name, not needed if type is `internal_validation`.", - "optional": true + "description": "ID of the worker.", + "required": true }, - "source": { - "name": "source", + "name": { + "name": "name", "type": "TypeString", - "description": "Secret location, not needed if secret type is `internal_validation`.", - "optional": true + "description": "Name of the worker. Computed based on the worker ID.", + "computed": true }, "type": { "name": "type", "type": "TypeString", - "description": "Secret type.", - "required": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Secret value, not needed if secret type is `internal_validation`.", - "optional": true + "description": "Type of the worker. Computed based on the worker ID.", + "computed": true } }, "max_items": 1 }, - { - "name": "event_listener", - "type": "TypeString", - "description": "Event listener name. The name of the event listener to which the trigger is associated. The event listeners are defined in the definition repositories of the Tekton pipeline.", - "required": true, - "min_length": 1, - "max_length": 253, - "matches": "^[-0-9a-zA-Z_.]{1,253}$" - }, { "name": "max_concurrent_runs", "type": "TypeInt", @@ -89432,43 +89377,65 @@ "optional": true }, { - "name": "href", - "type": "TypeString", - "description": "API URL for interacting with the trigger. Only included when fetching the list of pipeline triggers.", - "computed": true - }, - { - "name": "worker", + "name": "properties", "type": "TypeList", - "description": "Details of the worker used to run the trigger.", - "optional": true, + "description": "Optional trigger properties used to override or supplement the pipeline properties when triggering a pipeline run.", + "computed": true, "elem": { - "id": { - "name": "id", + "enum": { + "name": "enum", + "type": "TypeList", + "description": "Options for `single_select` property type. Only needed for `single_select` property type.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + "href": { + "name": "href", "type": "TypeString", - "description": "ID of the worker.", - "required": true + "description": "API URL for interacting with the trigger property.", + "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "Name of the worker. Computed based on the worker ID.", - "computed": true + "description": "Property name.", + "immutable": true, + "required": true + }, + "path": { + "name": "path", + "type": "TypeString", + "description": "A dot notation path for `integration` type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.", + "optional": true }, "type": { "name": "type", "type": "TypeString", - "description": "Type of the worker. Computed based on the worker ID.", - "computed": true - } - }, - "max_items": 1 + "description": "Property type.", + "immutable": true, + "required": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Property value. Any string value is valid.", + "optional": true + } + } }, { - "name": "enabled", + "name": "webhook_url", + "type": "TypeString", + "description": "Webhook URL that can be used to trigger pipeline runs.", + "computed": true + }, + { + "name": "favorite", "type": "TypeBool", - "description": "Flag whether the trigger is enabled.", - "default_value": true, + "description": "Mark the trigger as a favorite.", + "default_value": false, "optional": true }, { @@ -89542,32 +89509,28 @@ "max_items": 1 }, { - "name": "trigger_id", - "type": "TypeString", - "description": "The Trigger ID.", - "computed": true - }, - { - "name": "webhook_url", - "type": "TypeString", - "description": "Webhook URL that can be used to trigger pipeline runs.", - "computed": true + "name": "events", + "type": "TypeList", + "description": "Only needed for Git triggers. List of events to which a Git trigger listens. Choose one or more from: 'push', 'pull_request' and 'pull_request_closed'. For SCM repositories that use 'merge request' events, such events map to the equivalent 'pull request' events.", + "optional": true, + "elem": { + "type": "TypeString" + } }, { - "name": "type", + "name": "cron", "type": "TypeString", - "description": "Trigger type.", - "required": true, - "options": "generic, manual, scm, timer" + "description": "Only needed for timer triggers. Cron expression that indicates when this trigger will activate. Maximum frequency is every 5 minutes. The string is based on UNIX crontab syntax: minute, hour, day of month, month, day of week. Example: 0 *_/2 * * * - every 2 hours.", + "min_length": 5, + "max_length": 253, + "matches": "^[-0-9a-zA-Z,\\*\\/ ]{5,253}$", + "optional": true }, { - "name": "name", + "name": "href", "type": "TypeString", - "description": "Trigger name.", - "required": true, - "min_length": 1, - "max_length": 253, - "matches": "^([a-zA-Z0-9]{1,2}|[a-zA-Z0-9][0-9a-zA-Z-_.: \\/\\(\\)\\[\\]]{1,251}[a-zA-Z0-9])$" + "description": "API URL for interacting with the trigger. Only included when fetching the list of pipeline triggers.", + "computed": true }, { "name": "tags", @@ -89589,56 +89552,101 @@ "optional": true }, { - "name": "properties", + "name": "secret", "type": "TypeList", - "description": "Optional trigger properties used to override or supplement the pipeline properties when triggering a pipeline run.", - "computed": true, + "description": "Only needed for generic webhook trigger type. Secret used to start generic webhook trigger.", + "optional": true, "elem": { - "enum": { - "name": "enum", - "type": "TypeList", - "description": "Options for `single_select` property type. Only needed for `single_select` property type.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - "href": { - "name": "href", + "algorithm": { + "name": "algorithm", "type": "TypeString", - "description": "API URL for interacting with the trigger property.", - "computed": true + "description": "Algorithm used for `digest_matches` secret type. Only needed for `digest_matches` secret type.", + "optional": true }, - "name": { - "name": "name", + "key_name": { + "name": "key_name", "type": "TypeString", - "description": "Property name.", - "immutable": true, - "required": true + "description": "Secret name, not needed if type is `internal_validation`.", + "optional": true }, - "path": { - "name": "path", + "source": { + "name": "source", "type": "TypeString", - "description": "A dot notation path for `integration` type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.", + "description": "Secret location, not needed if secret type is `internal_validation`.", "optional": true }, "type": { "name": "type", "type": "TypeString", - "description": "Property type.", - "immutable": true, + "description": "Secret type.", "required": true }, "value": { "name": "value", "type": "TypeString", - "description": "Property value. Any string value is valid.", + "description": "Secret value, not needed if secret type is `internal_validation`.", "optional": true } - } + }, + "max_items": 1 + }, + { + "name": "trigger_id", + "type": "TypeString", + "description": "The Trigger ID.", + "computed": true + }, + { + "name": "pipeline_id", + "type": "TypeString", + "description": "The Tekton pipeline ID.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[-0-9a-z]+$" + }, + { + "name": "name", + "type": "TypeString", + "description": "Trigger name.", + "required": true, + "min_length": 1, + "max_length": 253, + "matches": "^([a-zA-Z0-9]{1,2}|[a-zA-Z0-9][0-9a-zA-Z-_.: \\/\\(\\)\\[\\]]{1,251}[a-zA-Z0-9])$" + }, + { + "name": "event_listener", + "type": "TypeString", + "description": "Event listener name. The name of the event listener to which the trigger is associated. The event listeners are defined in the definition repositories of the Tekton pipeline.", + "required": true, + "min_length": 1, + "max_length": 253, + "matches": "^[-0-9a-zA-Z_.]{1,253}$" + }, + { + "name": "enabled", + "type": "TypeBool", + "description": "Flag whether the trigger is enabled.", + "default_value": true, + "optional": true } ], "ibm_cd_tekton_pipeline_trigger_property": [ + { + "name": "path", + "type": "TypeString", + "description": "A dot notation path for `integration` type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.", + "max_length": 4096, + "matches": "^[-0-9a-zA-Z_.]*$", + "optional": true + }, + { + "name": "href", + "type": "TypeString", + "description": "API URL for interacting with the trigger property.", + "computed": true + }, { "name": "pipeline_id", "type": "TypeString", @@ -89693,34 +89701,36 @@ "immutable": true, "required": true, "options": "appconfig, integration, secure, single_select, text" - }, + } + ], + "ibm_cd_toolchain": [ { - "name": "path", + "name": "name", "type": "TypeString", - "description": "A dot notation path for `integration` type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.", - "max_length": 4096, - "matches": "^[-0-9a-zA-Z_.]*$", - "optional": true + "description": "Toolchain name.", + "required": true, + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$" }, { - "name": "href", + "name": "description", "type": "TypeString", - "description": "API URL for interacting with the trigger property.", - "computed": true - } - ], - "ibm_cd_toolchain": [ + "description": "Describes the toolchain.", + "max_length": 500, + "matches": "^(.*?)$", + "optional": true + }, { - "name": "location", + "name": "crn", "type": "TypeString", - "description": "Toolchain region.", - "cloud_data_type": "region", + "description": "Toolchain CRN.", + "cloud_data_type": "crn", "computed": true }, { - "name": "ui_href", + "name": "created_at", "type": "TypeString", - "description": "URL of a user-facing user interface for this toolchain.", + "description": "Toolchain creation timestamp.", "computed": true }, { @@ -89750,14 +89760,6 @@ "max_length": 32, "matches": "^[0-9a-f]{32}$" }, - { - "name": "description", - "type": "TypeString", - "description": "Describes the toolchain.", - "max_length": 500, - "matches": "^(.*?)$", - "optional": true - }, { "name": "account_id", "type": "TypeString", @@ -89765,10 +89767,10 @@ "computed": true }, { - "name": "crn", + "name": "location", "type": "TypeString", - "description": "Toolchain CRN.", - "cloud_data_type": "crn", + "description": "Toolchain region.", + "cloud_data_type": "region", "computed": true }, { @@ -89778,9 +89780,9 @@ "computed": true }, { - "name": "created_at", + "name": "ui_href", "type": "TypeString", - "description": "Toolchain creation timestamp.", + "description": "URL of a user-facing user interface for this toolchain.", "computed": true }, { @@ -89788,17 +89790,39 @@ "type": "TypeString", "description": "Identity that created the toolchain.", "computed": true + } + ], + "ibm_cd_toolchain_tool_appconfig": [ + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true }, { - "name": "name", + "name": "tool_id", "type": "TypeString", - "description": "Toolchain name.", + "description": "Tool ID.", + "computed": true + }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$" - } - ], - "ibm_cd_toolchain_tool_appconfig": [ + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true + }, { "name": "parameters", "type": "TypeList", @@ -89845,63 +89869,6 @@ "max_items": 1, "min_items": 1 }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "optional": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "optional": true - } - } - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "Tool ID.", - "computed": true - }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true - }, { "name": "resource_group_id", "type": "TypeString", @@ -89909,12 +89876,6 @@ "cloud_data_type": "resource_group", "computed": true }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, { "name": "href", "type": "TypeString", @@ -89922,18 +89883,9 @@ "computed": true }, { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - } - ], - "ibm_cd_toolchain_tool_artifactory": [ - { - "name": "resource_group_id", + "name": "updated_at", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", + "description": "Latest tool update timestamp.", "computed": true }, { @@ -89949,12 +89901,6 @@ "description": "CRN of toolchain which the tool is bound to.", "computed": true }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, { "name": "referent", "type": "TypeList", @@ -89974,17 +89920,30 @@ "optional": true } } + } + ], + "ibm_cd_toolchain_tool_artifactory": [ + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" }, { - "name": "updated_at", + "name": "resource_group_id", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "state", + "name": "updated_at", "type": "TypeString", - "description": "Current configuration state of the tool.", + "description": "Latest tool update timestamp.", "computed": true }, { @@ -89993,16 +89952,6 @@ "description": "Tool ID.", "computed": true }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, { "name": "name", "type": "TypeString", @@ -90081,80 +90030,18 @@ }, "max_items": 1, "min_items": 1 - } - ], - "ibm_cd_toolchain_tool_bitbucketgit": [ - { - "name": "initialization", - "type": "TypeList", - "required": true, - "elem": { - "git_id": { - "name": "git_id", - "type": "TypeString", - "description": "Set this value to 'bitbucketgit' for bitbucket.org, or to the GUID of a custom Bitbucket server.", - "immutable": true, - "optional": true - }, - "owner_id": { - "name": "owner_id", - "type": "TypeString", - "description": "The Bitbucket user or group that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.", - "immutable": true, - "optional": true - }, - "private_repo": { - "name": "private_repo", - "type": "TypeBool", - "description": "Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.", - "default_value": false, - "immutable": true, - "optional": true - }, - "repo_name": { - "name": "repo_name", - "type": "TypeString", - "description": "The name of the new Bitbucket repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.", - "immutable": true, - "optional": true - }, - "repo_url": { - "name": "repo_url", - "type": "TypeString", - "description": "The URL of the bitbucket repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.", - "immutable": true, - "optional": true - }, - "source_repo_url": { - "name": "source_repo_url", - "type": "TypeString", - "description": "The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.", - "immutable": true, - "optional": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.", - "immutable": true, - "required": true - } - }, - "max_items": 1, - "min_items": 1 }, { - "name": "resource_group_id", + "name": "crn", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true }, { - "name": "crn", + "name": "toolchain_crn", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { @@ -90183,6 +90070,26 @@ } } }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + } + ], + "ibm_cd_toolchain_tool_bitbucketgit": [ + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, { "name": "updated_at", "type": "TypeString", @@ -90190,15 +90097,36 @@ "computed": true }, { - "name": "state", + "name": "crn", "type": "TypeString", - "description": "Current configuration state of the tool.", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true }, { - "name": "tool_id", + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "optional": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "optional": true + } + } + }, + { + "name": "state", "type": "TypeString", - "description": "Tool ID.", + "description": "Current configuration state of the tool.", "computed": true }, { @@ -90316,50 +90244,69 @@ "min_items": 1 }, { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - } - ], - "ibm_cd_toolchain_tool_custom": [ - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, - { - "name": "referent", + "name": "initialization", "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, + "required": true, "elem": { - "api_href": { - "name": "api_href", + "git_id": { + "name": "git_id", "type": "TypeString", - "description": "URI representing this resource through an API.", + "description": "Set this value to 'bitbucketgit' for bitbucket.org, or to the GUID of a custom Bitbucket server.", + "immutable": true, "optional": true }, - "ui_href": { - "name": "ui_href", + "owner_id": { + "name": "owner_id", "type": "TypeString", - "description": "URI representing this resource through the UI.", + "description": "The Bitbucket user or group that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.", + "immutable": true, + "optional": true + }, + "private_repo": { + "name": "private_repo", + "type": "TypeBool", + "description": "Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.", + "default_value": false, + "immutable": true, + "optional": true + }, + "repo_name": { + "name": "repo_name", + "type": "TypeString", + "description": "The name of the new Bitbucket repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.", + "immutable": true, "optional": true + }, + "repo_url": { + "name": "repo_url", + "type": "TypeString", + "description": "The URL of the bitbucket repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.", + "immutable": true, + "optional": true + }, + "source_repo_url": { + "name": "source_repo_url", + "type": "TypeString", + "description": "The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.", + "immutable": true, + "optional": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.", + "immutable": true, + "required": true } - } + }, + "max_items": 1, + "min_items": 1 }, { - "name": "state", + "name": "resource_group_id", "type": "TypeString", - "description": "Current configuration state of the tool.", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, { @@ -90367,7 +90314,9 @@ "type": "TypeString", "description": "Tool ID.", "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_custom": [ { "name": "toolchain_id", "type": "TypeString", @@ -90458,36 +90407,22 @@ "computed": true }, { - "name": "updated_at", + "name": "tool_id", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "Tool ID.", "computed": true - } - ], - "ibm_cd_toolchain_tool_devopsinsights": [ - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" }, { - "name": "name", + "name": "resource_group_id", "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true }, { - "name": "crn", + "name": "href", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", + "description": "URI representing the tool.", "computed": true }, { @@ -90517,12 +90452,13 @@ "computed": true }, { - "name": "resource_group_id", + "name": "state", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", + "description": "Current configuration state of the tool.", "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_devopsinsights": [ { "name": "toolchain_crn", "type": "TypeString", @@ -90530,9 +90466,9 @@ "computed": true }, { - "name": "href", + "name": "updated_at", "type": "TypeString", - "description": "URI representing the tool.", + "description": "Latest tool update timestamp.", "computed": true }, { @@ -90546,9 +90482,7 @@ "type": "TypeString", "description": "Tool ID.", "computed": true - } - ], - "ibm_cd_toolchain_tool_eventnotifications": [ + }, { "name": "toolchain_id", "type": "TypeString", @@ -90560,16 +90494,25 @@ "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" }, { - "name": "resource_group_id", + "name": "name", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true }, { - "name": "toolchain_crn", + "name": "resource_group_id", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, { @@ -90597,6 +90540,18 @@ "optional": true } } + } + ], + "ibm_cd_toolchain_tool_eventnotifications": [ + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" }, { "name": "name", @@ -90606,6 +90561,32 @@ "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", "optional": true }, + { + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "optional": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "optional": true + } + } + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "Tool ID.", + "computed": true + }, { "name": "parameters", "type": "TypeList", @@ -90628,6 +90609,13 @@ "max_items": 1, "min_items": 1 }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true + }, { "name": "crn", "type": "TypeString", @@ -90635,6 +90623,18 @@ "cloud_data_type": "crn", "computed": true }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, { "name": "updated_at", "type": "TypeString", @@ -90646,109 +90646,44 @@ "type": "TypeString", "description": "Current configuration state of the tool.", "computed": true + } + ], + "ibm_cd_toolchain_tool_githubconsolidated": [ + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true }, { - "name": "tool_id", + "name": "state", "type": "TypeString", - "description": "Tool ID.", + "description": "Current configuration state of the tool.", "computed": true - } - ], - "ibm_cd_toolchain_tool_githubconsolidated": [ + }, { - "name": "initialization", - "type": "TypeList", + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, "required": true, - "elem": { - "auto_init": { - "name": "auto_init", - "type": "TypeBool", - "description": "Setting this value to true will initialize this repository with a README. This parameter is only used when creating a new repository.", - "default_value": false, - "immutable": true, - "optional": true - }, - "blind_connection": { - "name": "blind_connection", - "type": "TypeBool", - "description": "Setting this value to true means the server is not addressable on the public internet. IBM Cloud will not be able to validate the connection details you provide. Certain functionality that requires API access to the git server will be disabled. Delivery pipeline will only work using a private worker that has network access to the git server.", - "default_value": false, - "immutable": true, - "optional": true - }, - "git_id": { - "name": "git_id", - "type": "TypeString", - "description": "Set this value to 'github' for github.com, or 'githubcustom' for a custom GitHub Enterprise server.", - "immutable": true, - "optional": true - }, - "owner_id": { - "name": "owner_id", - "type": "TypeString", - "description": "The GitHub user or organization that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.", - "immutable": true, - "optional": true - }, - "private_repo": { - "name": "private_repo", - "type": "TypeBool", - "description": "Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.", - "default_value": false, - "immutable": true, - "optional": true - }, - "repo_name": { - "name": "repo_name", - "type": "TypeString", - "description": "The name of the new GitHub repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.", - "immutable": true, - "optional": true - }, - "repo_url": { - "name": "repo_url", - "type": "TypeString", - "description": "The URL of the GitHub repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.", - "immutable": true, - "optional": true - }, - "root_url": { - "name": "root_url", - "type": "TypeString", - "description": "The Root URL of the server. e.g. https://github.example.com.", - "immutable": true, - "optional": true - }, - "source_repo_url": { - "name": "source_repo_url", - "type": "TypeString", - "description": "The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.", - "immutable": true, - "optional": true - }, - "title": { - "name": "title", - "type": "TypeString", - "description": "The title of the server. e.g. My GitHub Enterprise Server.", - "immutable": true, - "optional": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.", - "immutable": true, - "required": true - } - }, - "max_items": 1, - "min_items": 1 + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" }, { - "name": "resource_group_id", + "name": "name", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true }, { @@ -90758,9 +90693,9 @@ "computed": true }, { - "name": "tool_id", + "name": "href", "type": "TypeString", - "description": "Tool ID.", + "description": "URI representing the tool.", "computed": true }, { @@ -90784,35 +90719,11 @@ } }, { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, - { - "name": "state", + "name": "tool_id", "type": "TypeString", - "description": "Current configuration state of the tool.", + "description": "Tool ID.", "computed": true }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true - }, { "name": "parameters", "type": "TypeList", @@ -90923,44 +90834,250 @@ "description": "The title of the server. e.g. My GitHub Enterprise Server.", "computed": true }, - "token_url": { - "name": "token_url", + "token_url": { + "name": "token_url", + "type": "TypeString", + "description": "The token URL used for authorizing with the GitHub server.", + "computed": true + }, + "toolchain_issues_enabled": { + "name": "toolchain_issues_enabled", + "type": "TypeBool", + "description": "Setting this value to true will enable issues on the GitHub repository and add an issues tool card to the toolchain. Setting the value to false will remove the tool card from the toolchain, but will not impact whether or not issues are enabled on the GitHub repository itself.", + "default_value": true, + "optional": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.", + "computed": true + } + }, + "max_items": 1, + "min_items": 1 + }, + { + "name": "initialization", + "type": "TypeList", + "required": true, + "elem": { + "auto_init": { + "name": "auto_init", + "type": "TypeBool", + "description": "Setting this value to true will initialize this repository with a README. This parameter is only used when creating a new repository.", + "default_value": false, + "immutable": true, + "optional": true + }, + "blind_connection": { + "name": "blind_connection", + "type": "TypeBool", + "description": "Setting this value to true means the server is not addressable on the public internet. IBM Cloud will not be able to validate the connection details you provide. Certain functionality that requires API access to the git server will be disabled. Delivery pipeline will only work using a private worker that has network access to the git server.", + "default_value": false, + "immutable": true, + "optional": true + }, + "git_id": { + "name": "git_id", + "type": "TypeString", + "description": "Set this value to 'github' for github.com, or 'githubcustom' for a custom GitHub Enterprise server.", + "immutable": true, + "optional": true + }, + "owner_id": { + "name": "owner_id", + "type": "TypeString", + "description": "The GitHub user or organization that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.", + "immutable": true, + "optional": true + }, + "private_repo": { + "name": "private_repo", + "type": "TypeBool", + "description": "Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.", + "default_value": false, + "immutable": true, + "optional": true + }, + "repo_name": { + "name": "repo_name", + "type": "TypeString", + "description": "The name of the new GitHub repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.", + "immutable": true, + "optional": true + }, + "repo_url": { + "name": "repo_url", + "type": "TypeString", + "description": "The URL of the GitHub repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.", + "immutable": true, + "optional": true + }, + "root_url": { + "name": "root_url", + "type": "TypeString", + "description": "The Root URL of the server. e.g. https://github.example.com.", + "immutable": true, + "optional": true + }, + "source_repo_url": { + "name": "source_repo_url", + "type": "TypeString", + "description": "The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.", + "immutable": true, + "optional": true + }, + "title": { + "name": "title", + "type": "TypeString", + "description": "The title of the server. e.g. My GitHub Enterprise Server.", + "immutable": true, + "optional": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.", + "immutable": true, + "required": true + } + }, + "max_items": 1, + "min_items": 1 + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true + } + ], + "ibm_cd_toolchain_tool_gitlab": [ + { + "name": "initialization", + "type": "TypeList", + "required": true, + "elem": { + "blind_connection": { + "name": "blind_connection", + "type": "TypeBool", + "description": "Setting this value to true means the server is not addressable on the public internet. IBM Cloud will not be able to validate the connection details you provide. Certain functionality that requires API access to the git server will be disabled. Delivery pipeline will only work using a private worker that has network access to the git server.", + "default_value": false, + "immutable": true, + "optional": true + }, + "git_id": { + "name": "git_id", + "type": "TypeString", + "description": "Set this value to 'gitlab' for gitlab.com, or 'gitlabcustom' for a custom GitLab server.", + "immutable": true, + "optional": true + }, + "owner_id": { + "name": "owner_id", + "type": "TypeString", + "description": "The GitLab user or group that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.", + "immutable": true, + "optional": true + }, + "private_repo": { + "name": "private_repo", + "type": "TypeBool", + "description": "Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.", + "default_value": true, + "immutable": true, + "optional": true + }, + "repo_name": { + "name": "repo_name", + "type": "TypeString", + "description": "The name of the new GitLab repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.", + "immutable": true, + "optional": true + }, + "repo_url": { + "name": "repo_url", + "type": "TypeString", + "description": "The URL of the GitLab repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.", + "immutable": true, + "optional": true + }, + "root_url": { + "name": "root_url", + "type": "TypeString", + "description": "The Root URL of the server. e.g. https://gitlab.example.com.", + "immutable": true, + "optional": true + }, + "source_repo_url": { + "name": "source_repo_url", + "type": "TypeString", + "description": "The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.", + "immutable": true, + "optional": true + }, + "title": { + "name": "title", "type": "TypeString", - "description": "The token URL used for authorizing with the GitHub server.", - "computed": true - }, - "toolchain_issues_enabled": { - "name": "toolchain_issues_enabled", - "type": "TypeBool", - "description": "Setting this value to true will enable issues on the GitHub repository and add an issues tool card to the toolchain. Setting the value to false will remove the tool card from the toolchain, but will not impact whether or not issues are enabled on the GitHub repository itself.", - "default_value": true, + "description": "The title of the server. e.g. My GitLab Enterprise Server.", + "immutable": true, "optional": true }, "type": { "name": "type", "type": "TypeString", "description": "The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.", - "computed": true + "immutable": true, + "required": true } }, "max_items": 1, "min_items": 1 }, { - "name": "crn", + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "optional": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "optional": true + } + } + }, + { + "name": "updated_at", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", + "description": "Latest tool update timestamp.", "computed": true }, { - "name": "href", + "name": "state", "type": "TypeString", - "description": "URI representing the tool.", + "description": "Current configuration state of the tool.", "computed": true - } - ], - "ibm_cd_toolchain_tool_gitlab": [ + }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + }, { "name": "parameters", "type": "TypeList", @@ -91088,94 +91205,6 @@ "max_items": 1, "min_items": 1 }, - { - "name": "initialization", - "type": "TypeList", - "required": true, - "elem": { - "blind_connection": { - "name": "blind_connection", - "type": "TypeBool", - "description": "Setting this value to true means the server is not addressable on the public internet. IBM Cloud will not be able to validate the connection details you provide. Certain functionality that requires API access to the git server will be disabled. Delivery pipeline will only work using a private worker that has network access to the git server.", - "default_value": false, - "immutable": true, - "optional": true - }, - "git_id": { - "name": "git_id", - "type": "TypeString", - "description": "Set this value to 'gitlab' for gitlab.com, or 'gitlabcustom' for a custom GitLab server.", - "immutable": true, - "optional": true - }, - "owner_id": { - "name": "owner_id", - "type": "TypeString", - "description": "The GitLab user or group that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.", - "immutable": true, - "optional": true - }, - "private_repo": { - "name": "private_repo", - "type": "TypeBool", - "description": "Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.", - "default_value": true, - "immutable": true, - "optional": true - }, - "repo_name": { - "name": "repo_name", - "type": "TypeString", - "description": "The name of the new GitLab repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.", - "immutable": true, - "optional": true - }, - "repo_url": { - "name": "repo_url", - "type": "TypeString", - "description": "The URL of the GitLab repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.", - "immutable": true, - "optional": true - }, - "root_url": { - "name": "root_url", - "type": "TypeString", - "description": "The Root URL of the server. e.g. https://gitlab.example.com.", - "immutable": true, - "optional": true - }, - "source_repo_url": { - "name": "source_repo_url", - "type": "TypeString", - "description": "The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.", - "immutable": true, - "optional": true - }, - "title": { - "name": "title", - "type": "TypeString", - "description": "The title of the server. e.g. My GitLab Enterprise Server.", - "immutable": true, - "optional": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.", - "immutable": true, - "required": true - } - }, - "max_items": 1, - "min_items": 1 - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, { "name": "crn", "type": "TypeString", @@ -91184,26 +91213,22 @@ "computed": true }, { - "name": "updated_at", + "name": "toolchain_crn", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { - "name": "tool_id", + "name": "href", "type": "TypeString", - "description": "Tool ID.", + "description": "URI representing the tool.", "computed": true }, { - "name": "toolchain_id", + "name": "tool_id", "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + "description": "Tool ID.", + "computed": true }, { "name": "name", @@ -91214,11 +91239,14 @@ "optional": true }, { - "name": "toolchain_crn", + "name": "resource_group_id", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_hashicorpvault": [ { "name": "href", "type": "TypeString", @@ -91226,33 +91254,27 @@ "computed": true }, { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "optional": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "optional": true - } - } + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true }, { "name": "state", "type": "TypeString", "description": "Current configuration state of the tool.", "computed": true - } - ], - "ibm_cd_toolchain_tool_hashicorpvault": [ + }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + }, { "name": "name", "type": "TypeString", @@ -91275,34 +91297,6 @@ "cloud_data_type": "crn", "computed": true }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "Tool ID.", - "computed": true - }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, { "name": "parameters", "type": "TypeList", @@ -91389,72 +91383,12 @@ "max_items": 1, "min_items": 1 }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, - { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "optional": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "optional": true - } - } - }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - } - ], - "ibm_cd_toolchain_tool_hostedgit": [ - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, { "name": "toolchain_crn", "type": "TypeString", "description": "CRN of toolchain which the tool is bound to.", "computed": true }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, { "name": "referent", "type": "TypeList", @@ -91480,25 +91414,9 @@ "type": "TypeString", "description": "Tool ID.", "computed": true - }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true - }, + } + ], + "ibm_cd_toolchain_tool_hostedgit": [ { "name": "parameters", "type": "TypeList", @@ -91608,6 +91526,56 @@ "max_items": 1, "min_items": 1 }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "Tool ID.", + "computed": true + }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true + }, { "name": "initialization", "type": "TypeList", @@ -91672,6 +91640,32 @@ "type": "TypeString", "description": "URI representing the tool.", "computed": true + }, + { + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "optional": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "optional": true + } + } + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true } ], "ibm_cd_toolchain_tool_jenkins": [ @@ -91718,57 +91712,17 @@ "min_items": 1 }, { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "optional": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "optional": true - } - } - }, - { - "name": "updated_at", + "name": "resource_group_id", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true - }, - { - "name": "resource_group_id", + "name": "crn", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true }, { @@ -91798,9 +91752,21 @@ "min_length": 36, "max_length": 36, "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - } - ], - "ibm_cd_toolchain_tool_jira": [ + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, { "name": "referent", "type": "TypeList", @@ -91822,18 +91788,22 @@ } }, { - "name": "tool_id", + "name": "updated_at", "type": "TypeString", - "description": "Tool ID.", + "description": "Latest tool update timestamp.", "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_jira": [ { - "name": "name", + "name": "toolchain_id", "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" }, { "name": "parameters", @@ -91878,17 +91848,9 @@ "min_items": 1 }, { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "crn", + "name": "toolchain_crn", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { @@ -91898,20 +91860,24 @@ "computed": true }, { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "optional": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "optional": true + } + } }, { "name": "updated_at", @@ -91924,18 +91890,20 @@ "type": "TypeString", "description": "Current configuration state of the tool.", "computed": true - } - ], - "ibm_cd_toolchain_tool_keyprotect": [ + }, { - "name": "toolchain_id", + "name": "tool_id", "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + "description": "Tool ID.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true }, { "name": "resource_group_id", @@ -91950,33 +91918,9 @@ "description": "Tool CRN.", "cloud_data_type": "crn", "computed": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "optional": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "optional": true - } - } - }, + } + ], + "ibm_cd_toolchain_tool_keyprotect": [ { "name": "updated_at", "type": "TypeString", @@ -91990,12 +91934,20 @@ "computed": true }, { - "name": "name", + "name": "tool_id", "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true + "description": "Tool ID.", + "computed": true + }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" }, { "name": "parameters", @@ -92032,48 +91984,10 @@ "min_items": 1 }, { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "Tool ID.", - "computed": true - } - ], - "ibm_cd_toolchain_tool_nexus": [ - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "toolchain_crn", + "name": "crn", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "Tool CRN.", + "cloud_data_type": "crn", "computed": true }, { @@ -92103,16 +92017,45 @@ } }, { - "name": "updated_at", + "name": "name", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "tool_id", + "name": "toolchain_crn", "type": "TypeString", - "description": "Tool ID.", + "description": "CRN of toolchain which the tool is bound to.", "computed": true + } + ], + "ibm_cd_toolchain_tool_nexus": [ + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true }, { "name": "parameters", @@ -92174,36 +92117,17 @@ "min_items": 1 }, { - "name": "crn", + "name": "toolchain_crn", "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - } - ], - "ibm_cd_toolchain_tool_pagerduty": [ - { - "name": "tool_id", + "name": "href", "type": "TypeString", - "description": "Tool ID.", + "description": "URI representing the tool.", "computed": true }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, { "name": "referent", "type": "TypeList", @@ -92230,6 +92154,19 @@ "description": "Current configuration state of the tool.", "computed": true }, + { + "name": "tool_id", + "type": "TypeString", + "description": "Tool ID.", + "computed": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true + }, { "name": "crn", "type": "TypeString", @@ -92237,6 +92174,21 @@ "cloud_data_type": "crn", "computed": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + } + ], + "ibm_cd_toolchain_tool_pagerduty": [ + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", + "computed": true + }, { "name": "toolchain_crn", "type": "TypeString", @@ -92249,12 +92201,48 @@ "description": "URI representing the tool.", "computed": true }, + { + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "optional": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "optional": true + } + } + }, { "name": "updated_at", "type": "TypeString", "description": "Latest tool update timestamp.", "computed": true }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + }, { "name": "name", "type": "TypeString", @@ -92293,10 +92281,16 @@ "min_items": 1 }, { - "name": "resource_group_id", + "name": "crn", "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "Tool ID.", "computed": true } ], @@ -92311,14 +92305,6 @@ "max_length": 36, "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true - }, { "name": "resource_group_id", "type": "TypeString", @@ -92327,29 +92313,16 @@ "computed": true }, { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "optional": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "optional": true - } - } + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true }, { - "name": "updated_at", + "name": "href", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "URI representing the tool.", "computed": true }, { @@ -92358,6 +92331,14 @@ "description": "Tool ID.", "computed": true }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true + }, { "name": "parameters", "type": "TypeList", @@ -92374,13 +92355,6 @@ "max_items": 1, "min_items": 1 }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, { "name": "toolchain_crn", "type": "TypeString", @@ -92388,9 +92362,29 @@ "computed": true }, { - "name": "href", + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "optional": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "optional": true + } + } + }, + { + "name": "updated_at", "type": "TypeString", - "description": "URI representing the tool.", + "description": "Latest tool update timestamp.", "computed": true }, { @@ -92401,6 +92395,32 @@ } ], "ibm_cd_toolchain_tool_privateworker": [ + { + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "optional": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "optional": true + } + } + }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, { "name": "toolchain_id", "type": "TypeString", @@ -92411,14 +92431,6 @@ "max_length": 36, "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true - }, { "name": "parameters", "type": "TypeList", @@ -92456,15 +92468,21 @@ "computed": true }, { - "name": "updated_at", + "name": "toolchain_crn", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { - "name": "state", + "name": "href", "type": "TypeString", - "description": "Current configuration state of the tool.", + "description": "URI representing the tool.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", "computed": true }, { @@ -92473,23 +92491,62 @@ "description": "Tool ID.", "computed": true }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true + }, { "name": "resource_group_id", "type": "TypeString", "description": "Resource group where the tool is located.", "cloud_data_type": "resource_group", "computed": true + } + ], + "ibm_cd_toolchain_tool_saucelabs": [ + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true }, { - "name": "toolchain_crn", + "name": "tool_id", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "Tool ID.", "computed": true }, { - "name": "href", + "name": "parameters", + "type": "TypeList", + "description": "Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the \u003ca href=\"https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations\"\u003eConfiguring tool integrations page\u003c/a\u003e.", + "required": true, + "elem": { + "access_key": { + "name": "access_key", + "type": "TypeString", + "description": "The access key for the Sauce Labs account. You can use a toolchain secret reference for this parameter. For more information, see [Protecting your sensitive data in Continuous Delivery](https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-cd_data_security#cd_secure_credentials).", + "secure": true, + "required": true + }, + "username": { + "name": "username", + "type": "TypeString", + "description": "The user name for the Sauce Labs account.", + "required": true + } + }, + "max_items": 1, + "min_items": 1 + }, + { + "name": "toolchain_crn", "type": "TypeString", - "description": "URI representing the tool.", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { @@ -92511,9 +92568,26 @@ "optional": true } } - } - ], - "ibm_cd_toolchain_tool_saucelabs": [ + }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, { "name": "toolchain_id", "type": "TypeString", @@ -92524,13 +92598,23 @@ "max_length": 36, "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true + }, { "name": "resource_group_id", "type": "TypeString", "description": "Resource group where the tool is located.", "cloud_data_type": "resource_group", "computed": true - }, + } + ], + "ibm_cd_toolchain_tool_secretsmanager": [ { "name": "crn", "type": "TypeString", @@ -92539,46 +92623,15 @@ "computed": true }, { - "name": "updated_at", + "name": "toolchain_crn", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "CRN of toolchain which the tool is bound to.", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true - }, - { - "name": "parameters", - "type": "TypeList", - "description": "Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the \u003ca href=\"https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations\"\u003eConfiguring tool integrations page\u003c/a\u003e.", - "required": true, - "elem": { - "access_key": { - "name": "access_key", - "type": "TypeString", - "description": "The access key for the Sauce Labs account. You can use a toolchain secret reference for this parameter. For more information, see [Protecting your sensitive data in Continuous Delivery](https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-cd_data_security#cd_secure_credentials).", - "secure": true, - "required": true - }, - "username": { - "name": "username", - "type": "TypeString", - "description": "The user name for the Sauce Labs account.", - "required": true - } - }, - "max_items": 1, - "min_items": 1 - }, - { - "name": "toolchain_crn", + "name": "state", "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", + "description": "Current configuration state of the tool.", "computed": true }, { @@ -92608,9 +92661,9 @@ } }, { - "name": "state", + "name": "updated_at", "type": "TypeString", - "description": "Current configuration state of the tool.", + "description": "Latest tool update timestamp.", "computed": true }, { @@ -92618,9 +92671,25 @@ "type": "TypeString", "description": "Tool ID.", "computed": true - } - ], - "ibm_cd_toolchain_tool_secretsmanager": [ + }, + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true + }, { "name": "parameters", "type": "TypeList", @@ -92673,129 +92742,15 @@ "description": "Resource group where the tool is located.", "cloud_data_type": "resource_group", "computed": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, - { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "optional": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "optional": true - } - } - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true - }, - { - "name": "tool_id", - "type": "TypeString", - "description": "Tool ID.", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" } ], "ibm_cd_toolchain_tool_securitycompliance": [ - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group where the tool is located.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, - { - "name": "referent", - "type": "TypeList", - "description": "Information on URIs to access this resource through the UI or API.", - "computed": true, - "elem": { - "api_href": { - "name": "api_href", - "type": "TypeString", - "description": "URI representing this resource through an API.", - "optional": true - }, - "ui_href": { - "name": "ui_href", - "type": "TypeString", - "description": "URI representing this resource through the UI.", - "optional": true - } - } - }, { "name": "toolchain_crn", "type": "TypeString", "description": "CRN of toolchain which the tool is bound to.", "computed": true }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Latest tool update timestamp.", - "computed": true - }, { "name": "state", "type": "TypeString", @@ -92818,14 +92773,6 @@ "max_length": 36, "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the tool.", - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", - "optional": true - }, { "name": "parameters", "type": "TypeList", @@ -92921,47 +92868,10 @@ "min_items": 1 }, { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - } - ], - "ibm_cd_toolchain_tool_slack": [ - { - "name": "tool_id", - "type": "TypeString", - "description": "Tool ID.", - "computed": true - }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, - { - "name": "href", + "name": "resource_group_id", "type": "TypeString", - "description": "URI representing the tool.", + "description": "Resource group where the tool is located.", + "cloud_data_type": "resource_group", "computed": true }, { @@ -92990,12 +92900,6 @@ "description": "Latest tool update timestamp.", "computed": true }, - { - "name": "state", - "type": "TypeString", - "description": "Current configuration state of the tool.", - "computed": true - }, { "name": "name", "type": "TypeString", @@ -93004,6 +92908,31 @@ "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", "optional": true }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + } + ], + "ibm_cd_toolchain_tool_slack": [ + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + }, { "name": "parameters", "type": "TypeList", @@ -93068,15 +92997,90 @@ "max_items": 1, "min_items": 1 }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Latest tool update timestamp.", + "computed": true + }, + { + "name": "state", + "type": "TypeString", + "description": "Current configuration state of the tool.", + "computed": true + }, + { + "name": "tool_id", + "type": "TypeString", + "description": "Tool ID.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the tool.", + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$", + "optional": true + }, { "name": "resource_group_id", "type": "TypeString", "description": "Resource group where the tool is located.", "cloud_data_type": "resource_group", "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "toolchain_crn", + "type": "TypeString", + "description": "CRN of toolchain which the tool is bound to.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "URI representing the tool.", + "computed": true + }, + { + "name": "referent", + "type": "TypeList", + "description": "Information on URIs to access this resource through the UI or API.", + "computed": true, + "elem": { + "api_href": { + "name": "api_href", + "type": "TypeString", + "description": "URI representing this resource through an API.", + "optional": true + }, + "ui_href": { + "name": "ui_href", + "type": "TypeString", + "description": "URI representing this resource through the UI.", + "optional": true + } + } } ], "ibm_cd_toolchain_tool_sonarqube": [ + { + "name": "toolchain_id", + "type": "TypeString", + "description": "ID of the toolchain to bind the tool to.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" + }, { "name": "name", "type": "TypeString", @@ -93127,35 +93131,6 @@ "max_items": 1, "min_items": 1 }, - { - "name": "href", - "type": "TypeString", - "description": "URI representing the tool.", - "computed": true - }, - { - "name": "toolchain_id", - "type": "TypeString", - "description": "ID of the toolchain to bind the tool to.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" - }, - { - "name": "crn", - "type": "TypeString", - "description": "Tool CRN.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "toolchain_crn", - "type": "TypeString", - "description": "CRN of toolchain which the tool is bound to.", - "computed": true - }, { "name": "referent", "type": "TypeList", @@ -93177,9 +93152,9 @@ } }, { - "name": "updated_at", + "name": "tool_id", "type": "TypeString", - "description": "Latest tool update timestamp.", + "description": "Tool ID.", "computed": true }, { @@ -93188,61 +93163,55 @@ "description": "Current configuration state of the tool.", "computed": true }, - { - "name": "tool_id", - "type": "TypeString", - "description": "Tool ID.", - "computed": true - }, { "name": "resource_group_id", "type": "TypeString", "description": "Resource group where the tool is located.", "cloud_data_type": "resource_group", "computed": true - } - ], - "ibm_cdn": [ + }, { - "name": "origin_type", + "name": "crn", "type": "TypeString", - "description": "Origin type info", - "default_value": "HOST_SERVER", - "immutable": true, - "optional": true + "description": "Tool CRN.", + "cloud_data_type": "crn", + "computed": true }, { - "name": "origin_address", + "name": "toolchain_crn", "type": "TypeString", - "description": "origin address info", - "required": true + "description": "CRN of toolchain which the tool is bound to.", + "computed": true }, { - "name": "cache_key_query_rule", + "name": "href", "type": "TypeString", - "description": "query rule info", - "default_value": "include-all", - "optional": true + "description": "URI representing the tool.", + "computed": true }, { - "name": "host_name", + "name": "updated_at", "type": "TypeString", - "description": "Host name", - "immutable": true, - "required": true - }, + "description": "Latest tool update timestamp.", + "computed": true + } + ], + "ibm_cdn": [ { - "name": "http_port", - "type": "TypeInt", - "description": "HTTP port number", - "default_value": 80, + "name": "vendor_name", + "type": "TypeString", + "description": "Vendor name", + "default_value": "akamai", + "immutable": true, "optional": true }, { - "name": "status", + "name": "protocol", "type": "TypeString", - "description": "Status info of the CDN instance", - "computed": true + "description": "Protocol name", + "default_value": "HTTP", + "immutable": true, + "optional": true }, { "name": "respect_headers", @@ -93265,19 +93234,46 @@ "optional": true }, { - "name": "path", + "name": "performance_configuration", "type": "TypeString", - "description": "Path details", - "default_value": "/*", + "description": "performance configuration info", + "default_value": "General web delivery", "immutable": true, "optional": true }, { - "name": "vendor_name", + "name": "host_name", "type": "TypeString", - "description": "Vendor name", - "default_value": "akamai", + "description": "Host name", "immutable": true, + "required": true + }, + { + "name": "http_port", + "type": "TypeInt", + "description": "HTTP port number", + "default_value": 80, + "optional": true + }, + { + "name": "https_port", + "type": "TypeInt", + "description": "HTTPS port number", + "default_value": 443, + "optional": true + }, + { + "name": "header", + "type": "TypeString", + "description": "Header info", + "optional": true, + "computed": true + }, + { + "name": "cache_key_query_rule", + "type": "TypeString", + "description": "query rule info", + "default_value": "include-all", "optional": true }, { @@ -93287,80 +93283,65 @@ "optional": true }, { - "name": "protocol", + "name": "origin_type", "type": "TypeString", - "description": "Protocol name", - "default_value": "HTTP", + "description": "Origin type info", + "default_value": "HOST_SERVER", "immutable": true, "optional": true }, { - "name": "https_port", - "type": "TypeInt", - "description": "HTTPS port number", - "default_value": 443, - "optional": true + "name": "origin_address", + "type": "TypeString", + "description": "origin address info", + "required": true }, { - "name": "cname", + "name": "status", "type": "TypeString", - "description": "cname info", - "immutable": true, - "optional": true, + "description": "Status info of the CDN instance", "computed": true }, { - "name": "header", + "name": "cname", "type": "TypeString", - "description": "Header info", + "description": "cname info", + "immutable": true, "optional": true, "computed": true }, { - "name": "performance_configuration", + "name": "path", "type": "TypeString", - "description": "performance configuration info", - "default_value": "General web delivery", + "description": "Path details", + "default_value": "/*", "immutable": true, "optional": true } ], "ibm_cis": [ { - "name": "parameters", - "type": "TypeMap", - "description": "Arbitrary parameters to pass. Must be a JSON object", - "immutable": true, - "optional": true - }, - { - "name": "tags", - "type": "TypeSet", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "plan", + "type": "TypeString", + "description": "The plan type of the service", + "required": true }, { - "name": "resource_controller_url", + "name": "status", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", + "description": "Status of resource instance", "computed": true }, { - "name": "plan", + "name": "resource_group_name", "type": "TypeString", - "description": "The plan type of the service", - "required": true + "description": "The resource group name in which resource is provisioned", + "computed": true }, { - "name": "guid", + "name": "service", "type": "TypeString", - "description": "Unique identifier of resource instance", + "description": "The name of the Cloud Internet Services offering", "computed": true }, { @@ -93373,9 +93354,16 @@ "computed": true }, { - "name": "resource_group_name", + "name": "parameters", + "type": "TypeMap", + "description": "Arbitrary parameters to pass. Must be a JSON object", + "immutable": true, + "optional": true + }, + { + "name": "resource_status", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "The status of the resource", "computed": true }, { @@ -93385,10 +93373,24 @@ "required": true }, { - "name": "service", + "name": "location", "type": "TypeString", - "description": "The name of the Cloud Internet Services offering", - "computed": true + "description": "The location where the instance available", + "cloud_data_type": "region", + "immutable": true, + "required": true + }, + { + "name": "tags", + "type": "TypeSet", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "resource_name", @@ -93403,27 +93405,53 @@ "computed": true }, { - "name": "resource_status", + "name": "resource_controller_url", "type": "TypeString", - "description": "The status of the resource", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", "computed": true }, { - "name": "location", - "type": "TypeString", - "description": "The location where the instance available", - "cloud_data_type": "region", - "immutable": true, - "required": true - }, - { - "name": "status", + "name": "guid", "type": "TypeString", - "description": "Status of resource instance", + "description": "Unique identifier of resource instance", "computed": true } ], "ibm_cis_alert": [ + { + "name": "filters", + "type": "TypeString", + "description": "Filters based on filter type", + "optional": true + }, + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, + { + "name": "policy_id", + "type": "TypeString", + "description": "Identifier of the Alert Policy", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Policy Description", + "optional": true + }, + { + "name": "enabled", + "type": "TypeBool", + "description": "Is the alert policy active", + "required": true + }, { "name": "alert_type", "type": "TypeString", @@ -93454,40 +93482,6 @@ } } }, - { - "name": "filters", - "type": "TypeString", - "description": "Filters based on filter type", - "optional": true - }, - { - "name": "conditions", - "type": "TypeString", - "description": "Conditions based on filter type", - "optional": true - }, - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "policy_id", - "type": "TypeString", - "description": "Identifier of the Alert Policy", - "computed": true - }, - { - "name": "enabled", - "type": "TypeBool", - "description": "Is the alert policy active", - "required": true - }, { "name": "name", "type": "TypeString", @@ -93495,9 +93489,9 @@ "required": true }, { - "name": "description", + "name": "conditions", "type": "TypeString", - "description": "Policy Description", + "description": "Conditions based on filter type", "optional": true } ], @@ -93551,21 +93545,46 @@ ], "ibm_cis_cache_settings": [ { - "name": "development_mode", + "name": "caching_level", "type": "TypeString", - "description": "Development mode setting", + "description": "Cache level setting", + "options": "basic, simplified, aggressive", + "optional": true, + "computed": true + }, + { + "name": "serve_stale_content", + "type": "TypeString", + "description": "Serve Stale Content", + "default_value": "on", "options": "on, off", + "optional": true + }, + { + "name": "browser_expiration", + "type": "TypeInt", + "description": "Browser Expiration setting", + "options": "0, 30, 60, 300, 1200, 1800, 3600, 7200, 10800, 14400,18000, 28800, 43200, 57600, 72000, 86400, 172800, 259200, 345600, 432000,691200, 1382400, 2073600, 2678400, 5356800, 16070400, 31536000", "optional": true, "computed": true }, { - "name": "query_string_sort", + "name": "development_mode", "type": "TypeString", - "description": "Query String sort setting", + "description": "Development mode setting", "options": "on, off", "optional": true, "computed": true }, + { + "name": "purge_by_urls", + "type": "TypeList", + "description": "Purge by URLs", + "optional": true, + "elem": { + "type": "TypeString" + } + }, { "name": "purge_by_tags", "type": "TypeList", @@ -93592,38 +93611,13 @@ "required": true }, { - "name": "caching_level", - "type": "TypeString", - "description": "Cache level setting", - "options": "basic, simplified, aggressive", - "optional": true, - "computed": true - }, - { - "name": "serve_stale_content", + "name": "query_string_sort", "type": "TypeString", - "description": "Serve Stale Content", - "default_value": "on", + "description": "Query String sort setting", "options": "on, off", - "optional": true - }, - { - "name": "browser_expiration", - "type": "TypeInt", - "description": "Browser Expiration setting", - "options": "0, 30, 60, 300, 1200, 1800, 3600, 7200, 10800, 14400,18000, 28800, 43200, 57600, 72000, 86400, 172800, 259200, 345600, 432000,691200, 1382400, 2073600, 2678400, 5356800, 16070400, 31536000", "optional": true, "computed": true }, - { - "name": "purge_by_hosts", - "type": "TypeList", - "description": "Purge by hosts", - "optional": true, - "elem": { - "type": "TypeString" - } - }, { "name": "purge_all", "type": "TypeBool", @@ -93631,9 +93625,9 @@ "optional": true }, { - "name": "purge_by_urls", + "name": "purge_by_hosts", "type": "TypeList", - "description": "Purge by URLs", + "description": "Purge by hosts", "optional": true, "elem": { "type": "TypeString" @@ -93641,6 +93635,12 @@ } ], "ibm_cis_certificate_order": [ + { + "name": "certificate_id", + "type": "TypeString", + "description": "certificate id", + "computed": true + }, { "name": "type", "type": "TypeString", @@ -93679,50 +93679,33 @@ "type": "TypeString", "description": "Associated CIS domain", "required": true - }, - { - "name": "certificate_id", - "type": "TypeString", - "description": "certificate id", - "computed": true } ], "ibm_cis_certificate_upload": [ { - "name": "uploaded_on", - "type": "TypeString", - "description": "certificate uploaded date", - "computed": true - }, - { - "name": "expires_on", + "name": "domain_id", "type": "TypeString", - "description": "certificate expires date", - "computed": true - }, - { - "name": "priority", - "type": "TypeInt", - "description": "Certificate priority", - "optional": true, - "computed": true + "description": "Associated CIS domain", + "required": true }, { - "name": "issuer", + "name": "custom_cert_id", "type": "TypeString", - "description": "certificate issuer", "computed": true }, { - "name": "signature", + "name": "certificate", "type": "TypeString", - "description": "certificate signature", - "computed": true + "description": "Certificate key", + "secure": true, + "required": true }, { - "name": "custom_cert_id", + "name": "private_key", "type": "TypeString", - "computed": true + "description": "Certificate private key", + "secure": true, + "required": true }, { "name": "bundle_method", @@ -93741,12 +93724,36 @@ "type": "TypeString" } }, + { + "name": "uploaded_on", + "type": "TypeString", + "description": "certificate uploaded date", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "certificate status", + "computed": true + }, + { + "name": "signature", + "type": "TypeString", + "description": "certificate signature", + "computed": true + }, { "name": "modified_on", "type": "TypeString", "description": "certificate modified date", "computed": true }, + { + "name": "expires_on", + "type": "TypeString", + "description": "certificate expires date", + "computed": true + }, { "name": "cis_id", "type": "TypeString", @@ -93758,44 +93765,35 @@ ] }, { - "name": "domain_id", - "type": "TypeString", - "description": "Associated CIS domain", - "required": true - }, - { - "name": "certificate", - "type": "TypeString", - "description": "Certificate key", - "secure": true, - "required": true - }, - { - "name": "private_key", - "type": "TypeString", - "description": "Certificate private key", - "secure": true, - "required": true + "name": "priority", + "type": "TypeInt", + "description": "Certificate priority", + "optional": true, + "computed": true }, { - "name": "status", + "name": "issuer", "type": "TypeString", - "description": "certificate status", + "description": "certificate issuer", "computed": true } ], "ibm_cis_custom_page": [ { - "name": "preview_target", + "name": "cis_id", "type": "TypeString", - "description": "Custom page preview target", - "computed": true + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] }, { - "name": "created_on", + "name": "url", "type": "TypeString", - "description": "Custom page created date", - "computed": true + "description": "Custom page url", + "required": true }, { "name": "description", @@ -93813,23 +93811,15 @@ } }, { - "name": "page_id", - "type": "TypeString", - "description": "Custom page identifier", - "immutable": true, - "required": true, - "options": "basic_challenge, waf_challenge, waf_block, ratelimit_block,country_challenge, ip_block, under_attack, 500_errors, 1000_errors, always_online" - }, - { - "name": "url", + "name": "preview_target", "type": "TypeString", - "description": "Custom page url", - "required": true + "description": "Custom page preview target", + "computed": true }, { - "name": "state", + "name": "created_on", "type": "TypeString", - "description": "Custom page state", + "description": "Custom page created date", "computed": true }, { @@ -93838,29 +93828,6 @@ "description": "Custom page modified date", "computed": true }, - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "domain_id", - "type": "TypeString", - "description": "Associated CIS domain", - "required": true - } - ], - "ibm_cis_dns_record": [ - { - "name": "data", - "type": "TypeMap", - "optional": true - }, { "name": "domain_id", "type": "TypeString", @@ -93868,33 +93835,21 @@ "required": true }, { - "name": "name", - "type": "TypeString", - "description": "DNS record name", - "optional": true - }, - { - "name": "created_on", - "type": "TypeString", - "computed": true - }, - { - "name": "proxied", - "type": "TypeBool", - "description": "Boolean value true if proxied else flase", - "default_value": false, - "optional": true - }, - { - "name": "modified_on", + "name": "page_id", "type": "TypeString", - "computed": true + "description": "Custom page identifier", + "immutable": true, + "required": true, + "options": "basic_challenge, waf_challenge, waf_block, ratelimit_block,country_challenge, ip_block, under_attack, 500_errors, 1000_errors, always_online" }, { - "name": "record_id", + "name": "state", "type": "TypeString", + "description": "Custom page state", "computed": true - }, + } + ], + "ibm_cis_dns_record": [ { "name": "cis_id", "type": "TypeString", @@ -93905,12 +93860,6 @@ "service:internet-svcs" ] }, - { - "name": "content", - "type": "TypeString", - "description": "DNS record content", - "optional": true - }, { "name": "priority", "type": "TypeInt", @@ -93918,11 +93867,9 @@ "optional": true }, { - "name": "ttl", - "type": "TypeInt", - "description": "TTL value", - "default_value": 1, - "optional": true + "name": "modified_on", + "type": "TypeString", + "computed": true }, { "name": "proxiable", @@ -93940,21 +93887,56 @@ "type": "TypeString", "description": "Record type", "required": true - } - ], - "ibm_cis_dns_records_import": [ + }, { - "name": "total_records_parsed", + "name": "ttl", "type": "TypeInt", - "description": "total records parsed", + "description": "TTL value", + "default_value": 1, + "optional": true + }, + { + "name": "proxied", + "type": "TypeBool", + "description": "Boolean value true if proxied else flase", + "default_value": false, + "optional": true + }, + { + "name": "data", + "type": "TypeMap", + "optional": true + }, + { + "name": "created_on", + "type": "TypeString", "computed": true }, { - "name": "records_added", - "type": "TypeInt", - "description": "added records count", + "name": "record_id", + "type": "TypeString", "computed": true }, + { + "name": "domain_id", + "type": "TypeString", + "description": "Associated CIS domain", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "DNS record name", + "optional": true + }, + { + "name": "content", + "type": "TypeString", + "description": "DNS record content", + "optional": true + } + ], + "ibm_cis_dns_records_import": [ { "name": "cis_id", "type": "TypeString", @@ -93977,6 +93959,18 @@ "description": "File to import", "immutable": true, "required": true + }, + { + "name": "total_records_parsed", + "type": "TypeInt", + "description": "total records parsed", + "computed": true + }, + { + "name": "records_added", + "type": "TypeInt", + "description": "added records count", + "computed": true } ], "ibm_cis_domain": [ @@ -93990,37 +93984,14 @@ "type": "TypeString", "computed": true }, - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "type", - "type": "TypeString", - "description": "CISzone - Domain Type", - "default_value": "full", - "options": "full, partial", - "optional": true - }, - { - "name": "paused", - "type": "TypeBool", - "computed": true - }, { "name": "verification_key", "type": "TypeString", "computed": true }, { - "name": "cname_suffix", - "type": "TypeString", + "name": "paused", + "type": "TypeBool", "computed": true }, { @@ -94029,6 +94000,14 @@ "description": "CISzone - Domain", "required": true }, + { + "name": "type", + "type": "TypeString", + "description": "CISzone - Domain Type", + "default_value": "full", + "options": "full, partial", + "optional": true + }, { "name": "name_servers", "type": "TypeList", @@ -94044,62 +94023,51 @@ "elem": { "type": "TypeString" } - } - ], - "ibm_cis_domain_settings": [ - { - "name": "prefetch_preload", - "type": "TypeString", - "description": "prefetch_preload setting", - "options": "on, off", - "optional": true, - "computed": true }, { - "name": "tls_client_auth", + "name": "cname_suffix", "type": "TypeString", - "description": "tls_client_auth setting", - "options": "on, off", - "optional": true, "computed": true }, { - "name": "waf", + "name": "cis_id", "type": "TypeString", - "description": "WAF setting", - "options": "on, off", - "optional": true, - "computed": true - }, + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + } + ], + "ibm_cis_domain_settings": [ { - "name": "opportunistic_encryption", + "name": "domain_id", "type": "TypeString", - "description": "opportunistic_encryption setting", - "options": "on, off", - "optional": true, - "computed": true + "description": "Associated CIS domain", + "required": true }, { - "name": "always_use_https", + "name": "opportunistic_encryption", "type": "TypeString", - "description": "always_use_https setting", + "description": "opportunistic_encryption setting", "options": "on, off", "optional": true, "computed": true }, { - "name": "response_buffering", + "name": "hotlink_protection", "type": "TypeString", - "description": "response_buffering setting", + "description": "hotlink_protection setting", "options": "on, off", "optional": true, "computed": true }, { - "name": "script_load_optimization", - "type": "TypeString", - "description": "script_load_optimization setting", - "options": "on, off", + "name": "max_upload", + "type": "TypeInt", + "description": "Maximum upload", + "options": "100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500", "optional": true, "computed": true }, @@ -94132,12 +94100,6 @@ "max_items": 1, "min_items": 1 }, - { - "name": "domain_id", - "type": "TypeString", - "description": "Associated CIS domain", - "required": true - }, { "name": "automatic_https_rewrites", "type": "TypeString", @@ -94147,57 +94109,9 @@ "computed": true }, { - "name": "http2", - "type": "TypeString", - "description": "http2 setting", - "options": "on, off", - "optional": true, - "computed": true - }, - { - "name": "origin_error_page_pass_thru", - "type": "TypeString", - "description": "origin_error_page_pass_thru setting", - "options": "on, off", - "optional": true, - "computed": true - }, - { - "name": "server_side_exclude", - "type": "TypeString", - "description": "server_side_exclude setting", - "options": "on, off", - "optional": true, - "computed": true - }, - { - "name": "challenge_ttl", - "type": "TypeInt", - "description": "Challenge TTL setting", - "options": "300, 900, 1800, 2700, 3600, 7200, 10800, 14400, 28800, 57600, 86400, 604800, 2592000, 31536000", - "optional": true, - "computed": true - }, - { - "name": "ipv6", - "type": "TypeString", - "description": "ipv6 setting", - "options": "on, off", - "optional": true, - "computed": true - }, - { - "name": "browser_check", - "type": "TypeString", - "description": "browser_check setting", - "options": "on, off", - "optional": true, - "computed": true - }, - { - "name": "image_load_optimization", + "name": "script_load_optimization", "type": "TypeString", - "description": "image_load_optimization setting", + "description": "script_load_optimization setting", "options": "on, off", "optional": true, "computed": true @@ -94233,41 +94147,30 @@ "min_items": 1 }, { - "name": "certificate_status", - "type": "TypeString", - "description": "Certificate status", - "computed": true, - "deprecated": "This field is deprecated" - }, - { - "name": "min_tls_version", - "type": "TypeString", - "description": "Minimum version of TLS required", - "default_value": "1.1", - "optional": true - }, - { - "name": "cname_flattening", + "name": "image_size_optimization", "type": "TypeString", - "description": "cname_flattening setting", + "description": "image_size_optimization setting", "optional": true, "computed": true }, { - "name": "ip_geolocation", + "name": "tls_client_auth", "type": "TypeString", - "description": "ip_geolocation setting", + "description": "tls_client_auth setting", "options": "on, off", "optional": true, "computed": true }, { - "name": "max_upload", - "type": "TypeInt", - "description": "Maximum upload", - "options": "100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500", + "name": "cipher", + "type": "TypeSet", + "description": "Cipher settings", + "options": "ECDHE-ECDSA-AES128-GCM-SHA256,ECDHE-ECDSA-CHACHA20-POLY1305, ECDHE-RSA-AES128-GCM-SHA256,ECDHE-RSA-CHACHA20-POLY1305, ECDHE-ECDSA-AES128-SHA256, ECDHE-ECDSA-AES128-SHA, ECDHE-RSA-AES128-SHA256, ECDHE-RSA-AES128-SHA, AES128-GCM-SHA256, AES128-SHA256, AES128-SHA, ECDHE-ECDSA-AES256-GCM-SHA384, ECDHE-ECDSA-AES256-SHA384, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-RSA-AES256-SHA384, ECDHE-RSA-AES256-SHA, AES256-GCM-SHA384, AES256-SHA256, AES256-SHA, DES-CBC3-SHA, AEAD-AES128-GCM-SHA256, AEAD-AES256-GCM-SHA384, AEAD-CHACHA20-POLY1305-SHA256", "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "security_header", @@ -94321,6 +94224,44 @@ "service:internet-svcs" ] }, + { + "name": "waf", + "type": "TypeString", + "description": "WAF setting", + "options": "on, off", + "optional": true, + "computed": true + }, + { + "name": "certificate_status", + "type": "TypeString", + "description": "Certificate status", + "computed": true, + "deprecated": "This field is deprecated" + }, + { + "name": "ip_geolocation", + "type": "TypeString", + "description": "ip_geolocation setting", + "options": "on, off", + "optional": true, + "computed": true + }, + { + "name": "pseudo_ipv4", + "type": "TypeString", + "description": "pseudo_ipv4 setting", + "optional": true, + "computed": true + }, + { + "name": "websockets", + "type": "TypeString", + "description": "websockets setting", + "options": "on, off", + "optional": true, + "computed": true + }, { "name": "dnssec", "type": "TypeString", @@ -94329,6 +94270,38 @@ "optional": true, "computed": true }, + { + "name": "image_load_optimization", + "type": "TypeString", + "description": "image_load_optimization setting", + "options": "on, off", + "optional": true, + "computed": true + }, + { + "name": "origin_error_page_pass_thru", + "type": "TypeString", + "description": "origin_error_page_pass_thru setting", + "options": "on, off", + "optional": true, + "computed": true + }, + { + "name": "true_client_ip_header", + "type": "TypeString", + "description": "true_client_ip_header setting", + "options": "on, off", + "optional": true, + "computed": true + }, + { + "name": "challenge_ttl", + "type": "TypeInt", + "description": "Challenge TTL setting", + "options": "300, 900, 1800, 2700, 3600, 7200, 10800, 14400, 28800, 57600, 86400, 604800, 2592000, 31536000", + "optional": true, + "computed": true + }, { "name": "ssl", "type": "TypeString", @@ -94336,6 +94309,21 @@ "optional": true, "computed": true }, + { + "name": "cname_flattening", + "type": "TypeString", + "description": "cname_flattening setting", + "optional": true, + "computed": true + }, + { + "name": "always_use_https", + "type": "TypeString", + "description": "always_use_https setting", + "options": "on, off", + "optional": true, + "computed": true + }, { "name": "brotli", "type": "TypeString", @@ -94345,51 +94333,57 @@ "computed": true }, { - "name": "websockets", + "name": "prefetch_preload", "type": "TypeString", - "description": "websockets setting", + "description": "prefetch_preload setting", "options": "on, off", "optional": true, "computed": true }, { - "name": "cipher", - "type": "TypeSet", - "description": "Cipher settings", - "options": "ECDHE-ECDSA-AES128-GCM-SHA256,ECDHE-ECDSA-CHACHA20-POLY1305, ECDHE-RSA-AES128-GCM-SHA256,ECDHE-RSA-CHACHA20-POLY1305, ECDHE-ECDSA-AES128-SHA256, ECDHE-ECDSA-AES128-SHA, ECDHE-RSA-AES128-SHA256, ECDHE-RSA-AES128-SHA, AES128-GCM-SHA256, AES128-SHA256, AES128-SHA, ECDHE-ECDSA-AES256-GCM-SHA384, ECDHE-ECDSA-AES256-SHA384, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-RSA-AES256-SHA384, ECDHE-RSA-AES256-SHA, AES256-GCM-SHA384, AES256-SHA256, AES256-SHA, DES-CBC3-SHA, AEAD-AES128-GCM-SHA256, AEAD-AES256-GCM-SHA384, AEAD-CHACHA20-POLY1305-SHA256", + "name": "response_buffering", + "type": "TypeString", + "description": "response_buffering setting", + "options": "on, off", "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "computed": true }, { - "name": "hotlink_protection", + "name": "server_side_exclude", "type": "TypeString", - "description": "hotlink_protection setting", + "description": "server_side_exclude setting", "options": "on, off", "optional": true, "computed": true }, { - "name": "image_size_optimization", + "name": "min_tls_version", "type": "TypeString", - "description": "image_size_optimization setting", + "description": "Minimum version of TLS required", + "default_value": "1.1", + "optional": true + }, + { + "name": "ipv6", + "type": "TypeString", + "description": "ipv6 setting", + "options": "on, off", "optional": true, "computed": true }, { - "name": "true_client_ip_header", + "name": "browser_check", "type": "TypeString", - "description": "true_client_ip_header setting", + "description": "browser_check setting", "options": "on, off", "optional": true, "computed": true }, { - "name": "pseudo_ipv4", + "name": "http2", "type": "TypeString", - "description": "pseudo_ipv4 setting", + "description": "http2 setting", + "options": "on, off", "optional": true, "computed": true } @@ -94426,12 +94420,6 @@ } ], "ibm_cis_edge_functions_trigger": [ - { - "name": "request_limit_fail_open", - "type": "TypeBool", - "description": "Edge function trigger request limit fail open", - "computed": true - }, { "name": "cis_id", "type": "TypeString", @@ -94465,9 +94453,22 @@ "type": "TypeString", "description": "Edge function trigger action name", "optional": true + }, + { + "name": "request_limit_fail_open", + "type": "TypeBool", + "description": "Edge function trigger request limit fail open", + "computed": true } ], "ibm_cis_filter": [ + { + "name": "description", + "type": "TypeString", + "description": "Filter Description", + "options": "Filter-creation", + "optional": true + }, { "name": "cis_id", "type": "TypeString", @@ -94501,34 +94502,9 @@ "type": "TypeString", "description": "Filter Expression", "required": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Filter Description", - "options": "Filter-creation", - "optional": true } ], "ibm_cis_firewall": [ - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS object id", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "domain_id", - "type": "TypeString", - "description": "Associated CIS domain", - "immutable": true, - "required": true - }, { "name": "firewall_type", "type": "TypeString", @@ -94702,33 +94678,27 @@ } }, "max_items": 1 - } - ], - "ibm_cis_firewall_rule": [ + }, { "name": "cis_id", "type": "TypeString", - "description": "CIS instance crn", - "required": true + "description": "CIS object id", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] }, { "name": "domain_id", "type": "TypeString", "description": "Associated CIS domain", + "immutable": true, "required": true - }, - { - "name": "filter_id", - "type": "TypeString", - "description": "Firewallrules Existing FilterID", - "required": true - }, - { - "name": "action", - "type": "TypeString", - "description": "Firewallrules Action", - "required": true - }, + } + ], + "ibm_cis_firewall_rule": [ { "name": "priority", "type": "TypeInt", @@ -94747,9 +94717,13 @@ "type": "TypeBool", "description": "Firewallrules Paused", "optional": true - } - ], - "ibm_cis_global_load_balancer": [ + }, + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS instance crn", + "required": true + }, { "name": "domain_id", "type": "TypeString", @@ -94757,38 +94731,24 @@ "required": true }, { - "name": "proxied", - "type": "TypeBool", - "description": "set to true if proxy needs to be enabled", - "default_value": false, - "optional": true + "name": "filter_id", + "type": "TypeString", + "description": "Firewallrules Existing FilterID", + "required": true }, { - "name": "session_affinity", + "name": "action", "type": "TypeString", - "description": "Session affinity info", - "default_value": "none", - "optional": true - }, + "description": "Firewallrules Action", + "required": true + } + ], + "ibm_cis_global_load_balancer": [ { - "name": "region_pools", - "type": "TypeSet", - "optional": true, - "elem": { - "pool_ids": { - "name": "pool_ids", - "type": "TypeList", - "required": true, - "elem": { - "type": "TypeString" - } - }, - "region": { - "name": "region", - "type": "TypeString", - "required": true - } - } + "name": "modified_on", + "type": "TypeString", + "description": "Load balancer modified date", + "computed": true }, { "name": "cis_id", @@ -94800,6 +94760,19 @@ "service:internet-svcs" ] }, + { + "name": "fallback_pool_id", + "type": "TypeString", + "description": "fallback pool ID", + "required": true + }, + { + "name": "ttl", + "type": "TypeInt", + "description": "TTL value", + "default_value": 60, + "optional": true + }, { "name": "enabled", "type": "TypeBool", @@ -94828,24 +94801,6 @@ } } }, - { - "name": "steering_policy", - "type": "TypeString", - "description": "Steering policy info", - "optional": true - }, - { - "name": "created_on", - "type": "TypeString", - "description": "Load balancer creation date", - "computed": true - }, - { - "name": "modified_on", - "type": "TypeString", - "description": "Load balancer modified date", - "computed": true - }, { "name": "glb_id", "type": "TypeString", @@ -94858,12 +94813,6 @@ "description": "name", "required": true }, - { - "name": "fallback_pool_id", - "type": "TypeString", - "description": "fallback pool ID", - "required": true - }, { "name": "description", "type": "TypeString", @@ -94871,12 +94820,17 @@ "optional": true }, { - "name": "ttl", - "type": "TypeInt", - "description": "TTL value", - "default_value": 60, + "name": "steering_policy", + "type": "TypeString", + "description": "Steering policy info", "optional": true }, + { + "name": "created_on", + "type": "TypeString", + "description": "Load balancer creation date", + "computed": true + }, { "name": "default_pool_ids", "type": "TypeSet", @@ -94885,16 +94839,63 @@ "elem": { "type": "TypeString" } + }, + { + "name": "proxied", + "type": "TypeBool", + "description": "set to true if proxy needs to be enabled", + "default_value": false, + "optional": true + }, + { + "name": "session_affinity", + "type": "TypeString", + "description": "Session affinity info", + "default_value": "none", + "optional": true + }, + { + "name": "region_pools", + "type": "TypeSet", + "optional": true, + "elem": { + "pool_ids": { + "name": "pool_ids", + "type": "TypeList", + "required": true, + "elem": { + "type": "TypeString" + } + }, + "region": { + "name": "region", + "type": "TypeString", + "required": true + } + } + }, + { + "name": "domain_id", + "type": "TypeString", + "description": "Associated CIS domain", + "required": true } ], "ibm_cis_healthcheck": [ { - "name": "allow_insecure", - "type": "TypeBool", - "description": "allow_insecure", - "default_value": false, + "name": "retries", + "type": "TypeInt", + "description": "retries", + "default_value": 2, + "min_value": "1", + "max_value": "3", "optional": true }, + { + "name": "modified_on", + "type": "TypeString", + "computed": true + }, { "name": "cis_id", "type": "TypeString", @@ -94906,63 +94907,52 @@ ] }, { - "name": "monitor_id", - "type": "TypeString", - "description": "GLB Monitor/Health check id", - "computed": true - }, - { - "name": "method", + "name": "path", "type": "TypeString", - "description": "method", - "default_value": "GET", - "options": "GET, HEAD", + "description": "path", + "default_value": "/", "optional": true }, { - "name": "interval", - "type": "TypeInt", - "description": "interval", - "default_value": 60, - "min_value": "5", - "max_value": "3600", + "name": "expected_body", + "type": "TypeString", + "description": "expected_body", "optional": true }, { - "name": "modified_on", + "name": "description", "type": "TypeString", - "computed": true + "description": "description", + "default_value": " ", + "optional": true }, { - "name": "expected_codes", - "type": "TypeString", - "description": "expected_codes", + "name": "follow_redirects", + "type": "TypeBool", + "description": "follow_redirects", + "default_value": false, "optional": true }, { - "name": "type", + "name": "monitor_id", "type": "TypeString", - "description": "type", - "default_value": "http", - "options": "http, https, tcp", - "optional": true + "description": "GLB Monitor/Health check id", + "computed": true }, { - "name": "timeout", + "name": "interval", "type": "TypeInt", - "description": "timeout", - "default_value": 5, - "min_value": "1", - "max_value": "10", + "description": "interval", + "default_value": 60, + "min_value": "5", + "max_value": "3600", "optional": true }, { - "name": "retries", - "type": "TypeInt", - "description": "retries", - "default_value": 2, - "min_value": "1", - "max_value": "3", + "name": "allow_insecure", + "type": "TypeBool", + "description": "allow_insecure", + "default_value": false, "optional": true }, { @@ -94995,39 +94985,49 @@ } }, { - "name": "path", - "type": "TypeString", - "description": "path", - "default_value": "/", - "optional": true - }, - { - "name": "expected_body", + "name": "type", "type": "TypeString", - "description": "expected_body", + "description": "type", + "default_value": "http", + "options": "http, https, tcp", "optional": true }, { - "name": "description", + "name": "method", "type": "TypeString", - "description": "description", - "default_value": " ", + "description": "method", + "default_value": "GET", + "options": "GET, HEAD", "optional": true }, { - "name": "follow_redirects", - "type": "TypeBool", - "description": "follow_redirects", - "default_value": false, + "name": "timeout", + "type": "TypeInt", + "description": "timeout", + "default_value": 5, + "min_value": "1", + "max_value": "10", "optional": true }, { "name": "create_on", "type": "TypeString", "computed": true + }, + { + "name": "expected_codes", + "type": "TypeString", + "description": "expected_codes", + "optional": true } ], "ibm_cis_logpush_job": [ + { + "name": "dataset", + "type": "TypeString", + "description": "Dataset to be pulled", + "required": true + }, { "name": "frequency", "type": "TypeString", @@ -95052,12 +95052,6 @@ "description": "Associated CIS domain", "required": true }, - { - "name": "enabled", - "type": "TypeBool", - "description": "Whether the logpush job enabled or not", - "optional": true - }, { "name": "name", "type": "TypeString", @@ -95065,17 +95059,11 @@ "optional": true }, { - "name": "logpull_options", - "type": "TypeString", - "description": "Configuration string", + "name": "enabled", + "type": "TypeBool", + "description": "Whether the logpush job enabled or not", "optional": true }, - { - "name": "dataset", - "type": "TypeString", - "description": "Dataset to be pulled", - "required": true - }, { "name": "cis_id", "type": "TypeString", @@ -95092,14 +95080,23 @@ "description": "Information to identify the LogDNA instance the data will be pushed.", "secure": true, "required": true + }, + { + "name": "logpull_options", + "type": "TypeString", + "description": "Configuration string", + "optional": true } ], "ibm_cis_mtls": [ { - "name": "created_at", - "type": "TypeString", - "description": "Certificate Created At", - "computed": true + "name": "associated_hostnames", + "type": "TypeList", + "description": "Host name list to be associated", + "required": true, + "elem": { + "type": "TypeString" + } }, { "name": "updated_at", @@ -95107,6 +95104,12 @@ "description": "Certificate Updated At", "computed": true }, + { + "name": "expires_on", + "type": "TypeString", + "description": "Certificate Expires on", + "computed": true + }, { "name": "id", "type": "TypeString", @@ -95114,17 +95117,27 @@ "computed": true }, { - "name": "mtls_id", + "name": "cis_id", "type": "TypeString", - "description": "Mtls transaction ID", - "computed": true + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] }, { - "name": "name", + "name": "domain_id", "type": "TypeString", - "description": "Certificate name", + "description": "Associated CIS domain", "required": true }, + { + "name": "mtls_id", + "type": "TypeString", + "description": "Mtls transaction ID", + "computed": true + }, { "name": "certificate", "type": "TypeString", @@ -95133,20 +95146,19 @@ "required": true }, { - "name": "associated_hostnames", - "type": "TypeList", - "description": "Host name list to be associated", - "required": true, - "elem": { - "type": "TypeString" - } + "name": "name", + "type": "TypeString", + "description": "Certificate name", + "required": true }, { - "name": "expires_on", + "name": "created_at", "type": "TypeString", - "description": "Certificate Expires on", + "description": "Certificate Created At", "computed": true - }, + } + ], + "ibm_cis_mtls_app": [ { "name": "cis_id", "type": "TypeString", @@ -95158,19 +95170,30 @@ ] }, { - "name": "domain_id", + "name": "app_id", "type": "TypeString", - "description": "Associated CIS domain", + "description": "APP ID", + "computed": true + }, + { + "name": "domain", + "type": "TypeString", + "description": "Associated host domain value", "required": true - } - ], - "ibm_cis_mtls_app": [ + }, { "name": "name", "type": "TypeString", "description": "App Name", "required": true }, + { + "name": "policy_decision", + "type": "TypeString", + "description": "Policy Action", + "default_value": "non_identity", + "optional": true + }, { "name": "app_created_at", "type": "TypeString", @@ -95184,14 +95207,29 @@ "computed": true }, { - "name": "cis_id", + "name": "cert_rule_val", "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] + "description": "Policy certificate rule value", + "default_value": "CA root certificate", + "optional": true + }, + { + "name": "app_updated_at", + "type": "TypeString", + "description": "Certificate Updated At", + "computed": true + }, + { + "name": "pol_created_at", + "type": "TypeString", + "description": "Policy Created At", + "computed": true + }, + { + "name": "pol_updated_at", + "type": "TypeString", + "description": "Policy updated At", + "computed": true }, { "name": "domain_id", @@ -95213,64 +95251,45 @@ "default_value": "mtls-policy", "optional": true }, - { - "name": "policy_decision", - "type": "TypeString", - "description": "Policy Action", - "default_value": "non_identity", - "optional": true - }, - { - "name": "pol_created_at", - "type": "TypeString", - "description": "Policy Created At", - "computed": true - }, { "name": "common_rule_val", "type": "TypeString", "description": "Policy common rule value", "optional": true - }, + } + ], + "ibm_cis_origin_auth": [ { - "name": "app_id", + "name": "uploaded_on", "type": "TypeString", - "description": "APP ID", + "description": "Certificate uploaded on", "computed": true }, { - "name": "domain", + "name": "domain_id", "type": "TypeString", - "description": "Associated host domain value", + "description": "Associated CIS domain", "required": true }, { - "name": "cert_rule_val", - "type": "TypeString", - "description": "Policy certificate rule value", - "default_value": "CA root certificate", + "name": "enabled", + "type": "TypeBool", + "description": "Enabel-disable origin auth for a zone or host", + "default_value": true, "optional": true }, { - "name": "app_updated_at", + "name": "hostname", "type": "TypeString", - "description": "Certificate Updated At", - "computed": true + "description": "Host name needed for host level authentication", + "optional": true }, { - "name": "pol_updated_at", + "name": "certificate", "type": "TypeString", - "description": "Policy updated At", - "computed": true - } - ], - "ibm_cis_origin_auth": [ - { - "name": "enabled", - "type": "TypeBool", - "description": "Enabel-disable origin auth for a zone or host", - "default_value": true, - "optional": true + "description": "Certificate content which needs to be uploaded", + "secure": true, + "required": true }, { "name": "private_key", @@ -95280,21 +95299,21 @@ "required": true }, { - "name": "expires_on", + "name": "status", "type": "TypeString", - "description": "Certificate expires on", + "description": "Authentication status whether active or not", "computed": true }, { - "name": "uploaded_on", + "name": "cert_id", "type": "TypeString", - "description": "Certificate uploaded on", + "description": "Certificate ID which is uploaded", "computed": true }, { - "name": "auth_id", + "name": "expires_on", "type": "TypeString", - "description": "Associated CIS auth pull job id", + "description": "Certificate expires on", "computed": true }, { @@ -95314,47 +95333,30 @@ "required": true }, { - "name": "certificate", - "type": "TypeString", - "description": "Certificate content which needs to be uploaded", - "secure": true, - "required": true - }, - { - "name": "status", + "name": "auth_id", "type": "TypeString", - "description": "Authentication status whether active or not", + "description": "Associated CIS auth pull job id", "computed": true - }, + } + ], + "ibm_cis_origin_pool": [ { - "name": "cert_id", + "name": "pool_id", "type": "TypeString", - "description": "Certificate ID which is uploaded", "computed": true }, { - "name": "domain_id", - "type": "TypeString", - "description": "Associated CIS domain", - "required": true - }, - { - "name": "hostname", - "type": "TypeString", - "description": "Host name needed for host level authentication", + "name": "minimum_origins", + "type": "TypeInt", + "description": "Minimum number of Origins", + "default_value": 1, "optional": true - } - ], - "ibm_cis_origin_pool": [ + }, { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] + "name": "healthy", + "type": "TypeBool", + "description": "Health status", + "computed": true }, { "name": "name", @@ -95363,10 +95365,10 @@ "required": true }, { - "name": "modified_on", + "name": "description", "type": "TypeString", - "description": "Modified date info", - "computed": true + "description": "Description of the CIS Origin Pool", + "optional": true }, { "name": "enabled", @@ -95374,12 +95376,6 @@ "description": "Boolean value set to true if cis origin pool needs to be enabled", "required": true }, - { - "name": "notification_email", - "type": "TypeString", - "description": "Email address configured to recieve the notifications", - "optional": true - }, { "name": "health", "type": "TypeString", @@ -95387,50 +95383,17 @@ "computed": true }, { - "name": "pool_id", + "name": "modified_on", "type": "TypeString", + "description": "Modified date info", "computed": true }, - { - "name": "check_regions", - "type": "TypeSet", - "description": "List of regions", - "required": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "description", - "type": "TypeString", - "description": "Description of the CIS Origin Pool", - "optional": true - }, { "name": "monitor", "type": "TypeString", "description": "Monitor value", "optional": true }, - { - "name": "healthy", - "type": "TypeBool", - "description": "Health status", - "computed": true - }, - { - "name": "created_on", - "type": "TypeString", - "description": "Creation date info", - "computed": true - }, - { - "name": "minimum_origins", - "type": "TypeInt", - "description": "Minimum number of Origins", - "default_value": 1, - "optional": true - }, { "name": "origins", "type": "TypeSet", @@ -95474,13 +95437,11 @@ "optional": true } } - } - ], - "ibm_cis_page_rule": [ + }, { - "name": "id", + "name": "created_on", "type": "TypeString", - "description": "Id of the ibm_cis_page_rule", + "description": "Creation date info", "computed": true }, { @@ -95494,14 +95455,26 @@ ] }, { - "name": "domain_id", - "type": "TypeString", - "description": "Associated CIS domain", - "required": true + "name": "check_regions", + "type": "TypeSet", + "description": "List of regions", + "required": true, + "elem": { + "type": "TypeString" + } }, { - "name": "rule_id", + "name": "notification_email", + "type": "TypeString", + "description": "Email address configured to recieve the notifications", + "optional": true + } + ], + "ibm_cis_page_rule": [ + { + "name": "id", "type": "TypeString", + "description": "Id of the ibm_cis_page_rule", "computed": true }, { @@ -95603,9 +95576,42 @@ "optional": true } } + }, + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, + { + "name": "domain_id", + "type": "TypeString", + "description": "Associated CIS domain", + "required": true + }, + { + "name": "rule_id", + "type": "TypeString", + "computed": true } ], "ibm_cis_range_app": [ + { + "name": "protocol", + "type": "TypeString", + "description": "Defines the protocol and port for this application", + "required": true + }, + { + "name": "origin_port", + "type": "TypeInt", + "description": "Port at the origin that listens to traffic", + "optional": true + }, { "name": "traffic_type", "type": "TypeString", @@ -95624,31 +95630,46 @@ } }, { - "name": "origin_dns", + "name": "edge_ips_connectivity", "type": "TypeString", - "description": "DNS record pointing to the origin for this Range application.", + "description": "Specifies the IP version.", + "default_value": "all", + "options": "ipv4, ipv6, all", "optional": true }, { - "name": "ip_firewall", - "type": "TypeBool", - "description": "Enables the IP Firewall for this application. Only available for TCP applications.", - "optional": true + "name": "created_on", + "type": "TypeString", + "description": "created on date", + "computed": true }, { - "name": "proxy_protocol", + "name": "cis_id", "type": "TypeString", - "description": "Allows for the true client IP to be passed to the service.", - "options": "off, v1, v2, simple", - "optional": true + "description": "CIS Intance CRN", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] }, { - "name": "tls", + "name": "app_id", "type": "TypeString", - "description": "Configure if and how TLS connections are terminated at the edge.", - "default_value": "off", - "options": "off, flexible, full, strict", - "optional": true + "description": "Application identifier", + "computed": true + }, + { + "name": "dns", + "type": "TypeString", + "description": "Name of the DNS record for this application", + "required": true + }, + { + "name": "modified_on", + "type": "TypeString", + "description": "modified on date", + "computed": true }, { "name": "domain_id", @@ -95657,10 +95678,27 @@ "required": true }, { - "name": "protocol", + "name": "edge_ips_type", "type": "TypeString", - "description": "Defines the protocol and port for this application", - "required": true + "description": "The type of edge IP configuration.", + "default_value": "dynamic", + "options": "dynamic", + "optional": true + }, + { + "name": "tls", + "type": "TypeString", + "description": "Configure if and how TLS connections are terminated at the edge.", + "default_value": "off", + "options": "off, flexible, full, strict", + "optional": true + }, + { + "name": "proxy_protocol", + "type": "TypeString", + "description": "Allows for the true client IP to be passed to the service.", + "options": "off, v1, v2, simple", + "optional": true }, { "name": "dns_type", @@ -95669,11 +95707,19 @@ "required": true }, { - "name": "modified_on", + "name": "origin_dns", "type": "TypeString", - "description": "modified on date", - "computed": true + "description": "DNS record pointing to the origin for this Range application.", + "optional": true }, + { + "name": "ip_firewall", + "type": "TypeBool", + "description": "Enables the IP Firewall for this application. Only available for TCP applications.", + "optional": true + } + ], + "ibm_cis_rate_limit": [ { "name": "cis_id", "type": "TypeString", @@ -95685,47 +95731,68 @@ ] }, { - "name": "app_id", - "type": "TypeString", - "description": "Application identifier", - "computed": true + "name": "bypass", + "type": "TypeList", + "description": "Bypass URL", + "optional": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "bypass URL name", + "default_value": "url", + "optional": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "bypass URL value", + "optional": true + } + } }, { - "name": "origin_port", + "name": "period", "type": "TypeInt", - "description": "Port at the origin that listens to traffic", - "optional": true + "description": "Rate Limiting Period", + "required": true, + "min_value": "1", + "max_value": "86400" }, { - "name": "created_on", + "name": "rule_id", "type": "TypeString", - "description": "created on date", + "description": "Rate Limit rule Id", "computed": true }, { - "name": "dns", + "name": "domain_id", "type": "TypeString", - "description": "Name of the DNS record for this application", + "description": "CIS Domain ID", "required": true }, { - "name": "edge_ips_type", - "type": "TypeString", - "description": "The type of edge IP configuration.", - "default_value": "dynamic", - "options": "dynamic", + "name": "disabled", + "type": "TypeBool", + "description": "Whether this rate limiting rule is currently disabled.", + "default_value": false, "optional": true }, { - "name": "edge_ips_connectivity", + "name": "description", "type": "TypeString", - "description": "Specifies the IP version.", - "default_value": "all", - "options": "ipv4, ipv6, all", + "description": "A note that you can use to describe the reason for a rate limiting rule.", + "max_length": 1024, "optional": true - } - ], - "ibm_cis_rate_limit": [ + }, + { + "name": "threshold", + "type": "TypeInt", + "description": "Rate Limiting Threshold", + "required": true, + "min_value": "1", + "max_value": "1000000" + }, { "name": "correlate", "type": "TypeList", @@ -95882,79 +95949,6 @@ } }, "max_items": 1 - }, - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS Intance CRN", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, - { - "name": "domain_id", - "type": "TypeString", - "description": "CIS Domain ID", - "required": true - }, - { - "name": "disabled", - "type": "TypeBool", - "description": "Whether this rate limiting rule is currently disabled.", - "default_value": false, - "optional": true - }, - { - "name": "bypass", - "type": "TypeList", - "description": "Bypass URL", - "optional": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "bypass URL name", - "default_value": "url", - "optional": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "bypass URL value", - "optional": true - } - } - }, - { - "name": "description", - "type": "TypeString", - "description": "A note that you can use to describe the reason for a rate limiting rule.", - "max_length": 1024, - "optional": true - }, - { - "name": "threshold", - "type": "TypeInt", - "description": "Rate Limiting Threshold", - "required": true, - "min_value": "1", - "max_value": "1000000" - }, - { - "name": "period", - "type": "TypeInt", - "description": "Rate Limiting Period", - "required": true, - "min_value": "1", - "max_value": "86400" - }, - { - "name": "rule_id", - "type": "TypeString", - "description": "Rate Limit rule Id", - "computed": true } ], "ibm_cis_routing": [ @@ -96026,9 +96020,15 @@ ], "ibm_cis_waf_group": [ { - "name": "modified_rules_count", + "name": "description", + "type": "TypeString", + "description": "WAF Rule group description", + "computed": true + }, + { + "name": "rules_count", "type": "TypeInt", - "description": "WAF Rule group modified rules count", + "description": "WAF Rule group rules count", "computed": true }, { @@ -96039,14 +96039,11 @@ "optional": true }, { - "name": "cis_id", + "name": "group_id", "type": "TypeString", - "description": "CIS Intance CRN", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] + "description": "WAF Rule group id", + "immutable": true, + "required": true }, { "name": "mode", @@ -96062,11 +96059,21 @@ "computed": true }, { - "name": "description", - "type": "TypeString", - "description": "WAF Rule group description", + "name": "modified_rules_count", + "type": "TypeInt", + "description": "WAF Rule group modified rules count", "computed": true }, + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS Intance CRN", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, { "name": "domain_id", "type": "TypeString", @@ -96078,19 +96085,6 @@ "type": "TypeString", "description": "WAF Rule package id", "required": true - }, - { - "name": "group_id", - "type": "TypeString", - "description": "WAF Rule group id", - "immutable": true, - "required": true - }, - { - "name": "rules_count", - "type": "TypeInt", - "description": "WAF Rule group rules count", - "computed": true } ], "ibm_cis_waf_package": [ @@ -96151,19 +96145,6 @@ } ], "ibm_cis_waf_rule": [ - { - "name": "domain_id", - "type": "TypeString", - "description": "CIS Domain ID", - "required": true - }, - { - "name": "rule_id", - "type": "TypeString", - "description": "CIS WAF Rule id", - "immutable": true, - "required": true - }, { "name": "package_id", "type": "TypeString", @@ -96178,22 +96159,6 @@ "required": true, "options": "on, off, default, disable, simulate, block, challenge" }, - { - "name": "priority", - "type": "TypeInt", - "description": "CIS WAF Rule Priority", - "computed": true - }, - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS Intance CRN", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] - }, { "name": "description", "type": "TypeString", @@ -96228,9 +96193,48 @@ "elem": { "type": "TypeString" } + }, + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS Intance CRN", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, + { + "name": "domain_id", + "type": "TypeString", + "description": "CIS Domain ID", + "required": true + }, + { + "name": "rule_id", + "type": "TypeString", + "description": "CIS WAF Rule id", + "immutable": true, + "required": true + }, + { + "name": "priority", + "type": "TypeInt", + "description": "CIS WAF Rule Priority", + "computed": true } ], "ibm_cis_webhook": [ + { + "name": "cis_id", + "type": "TypeString", + "description": "CIS instance crn", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:internet-svcs" + ] + }, { "name": "webhook_id", "type": "TypeString", @@ -96261,19 +96265,15 @@ "description": "API key needed to use the webhook", "secure": true, "optional": true - }, - { - "name": "cis_id", - "type": "TypeString", - "description": "CIS instance crn", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:internet-svcs" - ] } ], "ibm_cloud_shell_account_settings": [ + { + "name": "updated_by", + "type": "TypeString", + "description": "IAM ID of last updater.", + "computed": true + }, { "name": "account_id", "type": "TypeString", @@ -96288,184 +96288,92 @@ "optional": true }, { - "name": "features", + "name": "regions", "type": "TypeList", - "description": "List of Cloud Shell features.", + "description": "List of Cloud Shell region settings.", "optional": true, "computed": true, "elem": { "enabled": { "name": "enabled", "type": "TypeBool", - "description": "State of the feature.", + "description": "State of the region.", "optional": true }, "key": { "name": "key", "type": "TypeString", - "description": "Name of the feature.", + "description": "Name of the region.", "optional": true } } }, { - "name": "created_at", - "type": "TypeInt", - "description": "Creation timestamp in Unix epoch time.", - "computed": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "IAM ID of creator.", - "computed": true - }, - { - "name": "rev", - "type": "TypeString", - "description": "Unique revision number for the settings object.", - "optional": true, - "computed": true - }, - { - "name": "default_enable_new_features", - "type": "TypeBool", - "description": "You can choose which Cloud Shell features are available in the account and whether any new features are enabled as they become available. The feature settings apply only to the enabled Cloud Shell locations.", - "optional": true - }, - { - "name": "enabled", - "type": "TypeBool", - "description": "When enabled, Cloud Shell is available to all users in the account.", - "optional": true - }, - { - "name": "regions", + "name": "features", "type": "TypeList", - "description": "List of Cloud Shell region settings.", + "description": "List of Cloud Shell features.", "optional": true, "computed": true, "elem": { "enabled": { "name": "enabled", "type": "TypeBool", - "description": "State of the region.", + "description": "State of the feature.", "optional": true }, "key": { "name": "key", "type": "TypeString", - "description": "Name of the region.", + "description": "Name of the feature.", "optional": true } } }, { - "name": "type", - "type": "TypeString", - "description": "Type of api response object.", - "computed": true - }, - { - "name": "updated_at", + "name": "created_at", "type": "TypeInt", - "description": "Timestamp of last update in Unix epoch time.", + "description": "Creation timestamp in Unix epoch time.", "computed": true }, { - "name": "updated_by", - "type": "TypeString", - "description": "IAM ID of last updater.", - "computed": true - } - ], - "ibm_cloudant": [ - { - "name": "crn", + "name": "created_by", "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", + "description": "IAM ID of creator.", "computed": true }, { - "name": "resource_group_crn", + "name": "type", "type": "TypeString", - "description": "The long ID (full CRN) of the resource group", + "description": "Type of api response object.", "computed": true }, { - "name": "allow_cleanup", - "type": "TypeBool", - "description": "A boolean that dictates if the resource instance should be deleted (cleaned up) during the processing of a region instance delete call.", + "name": "updated_at", + "type": "TypeInt", + "description": "Timestamp of last update in Unix epoch time.", "computed": true }, { - "name": "resource_aliases_url", + "name": "rev", "type": "TypeString", - "description": "The relative path to the resource aliases for the instance.", - "computed": true - }, - { - "name": "cors_config", - "type": "TypeList", - "description": "Configuration for CORS.", + "description": "Unique revision number for the settings object.", "optional": true, - "elem": { - "allow_credentials": { - "name": "allow_credentials", - "type": "TypeBool", - "description": "Boolean value to allow authentication credentials. If set to true, browser requests must be done by using withCredentials = true.", - "default_value": true, - "optional": true - }, - "origins": { - "name": "origins", - "type": "TypeList", - "description": "An array of strings that contain allowed origin domains. You have to specify the full URL including the protocol. It is recommended that only the HTTPS protocol is used. Subdomains count as separate domains, so you have to specify all subdomains used.", - "required": true, - "elem": { - "type": "TypeString" - } - } - }, - "max_items": 1, - "min_items": 1 - }, - { - "name": "parameters", - "type": "TypeMap", - "description": "Arbitrary parameters to pass. Must be a JSON object", - "optional": true - }, - { - "name": "scheduled_reclaim_by", - "type": "TypeString", - "description": "The subject who initiated the instance reclamation.", "computed": true }, { - "name": "capacity", - "type": "TypeInt", - "description": "A number of blocks of throughput units. A block consists of 100 reads/sec, 50 writes/sec, and 5 global queries/sec of provisioned throughput capacity.", - "default_value": 1, + "name": "default_enable_new_features", + "type": "TypeBool", + "description": "You can choose which Cloud Shell features are available in the account and whether any new features are enabled as they become available. The feature settings apply only to the enabled Cloud Shell locations.", "optional": true }, { - "name": "enable_cors", + "name": "enabled", "type": "TypeBool", - "description": "Boolean value to turn CORS on and off.", - "default_value": true, + "description": "When enabled, Cloud Shell is available to all users in the account.", "optional": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "The resource group id", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true - }, + } + ], + "ibm_cloudant": [ { "name": "plan", "type": "TypeString", @@ -96473,33 +96381,33 @@ "required": true }, { - "name": "status", - "type": "TypeString", - "description": "Status of resource instance", + "name": "allow_cleanup", + "type": "TypeBool", + "description": "A boolean that dictates if the resource instance should be deleted (cleaned up) during the processing of a region instance delete call.", "computed": true }, { - "name": "resource_plan_id", - "type": "TypeString", - "description": "The unique ID of the plan associated with the offering", + "name": "locked", + "type": "TypeBool", + "description": "A boolean that dictates if the resource instance should be deleted (cleaned up) during the processing of a region instance delete call.", "computed": true }, { - "name": "deleted_at", + "name": "update_at", "type": "TypeString", - "description": "The date when the instance was deleted.", + "description": "The date when the instance was last updated.", "computed": true }, { - "name": "scheduled_reclaim_at", + "name": "update_by", "type": "TypeString", - "description": "The date when the instance was scheduled for reclamation.", + "description": "The subject who updated the instance.", "computed": true }, { - "name": "resource_crn", - "type": "TypeString", - "description": "The crn of the resource", + "name": "extensions", + "type": "TypeMap", + "description": "The extended metadata as a map associated with the resource instance.", "computed": true }, { @@ -96512,10 +96420,16 @@ } }, { - "name": "name", + "name": "dashboard_url", "type": "TypeString", - "description": "A name for the resource instance", - "required": true + "description": "Dashboard URL to access resource.", + "computed": true + }, + { + "name": "scheduled_reclaim_at", + "type": "TypeString", + "description": "The date when the instance was scheduled for reclamation.", + "computed": true }, { "name": "location", @@ -96526,57 +96440,89 @@ "required": true }, { - "name": "account_id", + "name": "guid", "type": "TypeString", - "description": "An alpha-numeric value identifying the account ID.", + "description": "Guid of resource instance", "computed": true }, { - "name": "state", + "name": "plan_history", + "type": "TypeList", + "description": "The plan history of the instance.", + "computed": true, + "elem": { + "resource_plan_id": { + "name": "resource_plan_id", + "type": "TypeString", + "computed": true + }, + "start_date": { + "name": "start_date", + "type": "TypeString", + "computed": true + } + } + }, + { + "name": "resource_id", "type": "TypeString", - "description": "The current state of the instance.", + "description": "The unique ID of the offering", "computed": true }, { - "name": "sub_type", + "name": "resource_keys_url", "type": "TypeString", - "description": "The sub-type of instance, e.g. cfaas .", + "description": "The relative path to the resource keys for the instance.", "computed": true }, { - "name": "last_operation", - "type": "TypeMap", - "description": "The status of the last operation requested on the instance", + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", "computed": true }, { - "name": "resource_keys_url", + "name": "environment_crn", "type": "TypeString", - "description": "The relative path to the resource keys for the instance.", - "computed": true + "description": "CRN of the IBM Cloudant Dedicated Hardware plan instance", + "immutable": true, + "optional": true }, { - "name": "deleted_by", + "name": "name", "type": "TypeString", - "description": "The subject who deleted the instance.", + "description": "A name for the resource instance", + "required": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Status of resource instance", "computed": true }, { - "name": "service", + "name": "created_by", "type": "TypeString", - "description": "The service type of the instance", + "description": "The subject who created the instance.", "computed": true }, { - "name": "restored_at", + "name": "resource_status", "type": "TypeString", - "description": "The date when the instance under reclamation was restored.", + "description": "The status of the resource", "computed": true }, { - "name": "dashboard_url", + "name": "capacity", + "type": "TypeInt", + "description": "A number of blocks of throughput units. A block consists of 100 reads/sec, 50 writes/sec, and 5 global queries/sec of provisioned throughput capacity.", + "default_value": 1, + "optional": true + }, + { + "name": "service", "type": "TypeString", - "description": "Dashboard URL to access resource.", + "description": "The service type of the instance", "computed": true }, { @@ -96592,15 +96538,21 @@ "computed": true }, { - "name": "locked", - "type": "TypeBool", - "description": "A boolean that dictates if the resource instance should be deleted (cleaned up) during the processing of a region instance delete call.", + "name": "last_operation", + "type": "TypeMap", + "description": "The status of the last operation requested on the instance", "computed": true }, { - "name": "resource_status", + "name": "created_at", "type": "TypeString", - "description": "The status of the resource", + "description": "The date when the instance was created.", + "computed": true + }, + { + "name": "deleted_at", + "type": "TypeString", + "description": "The date when the instance was deleted.", "computed": true }, { @@ -96612,12 +96564,33 @@ "optional": true }, { - "name": "service_endpoints", + "name": "include_data_events", + "type": "TypeBool", + "description": "Include data event types in events sent to IBM Cloud Activity Tracker with LogDNA for the IBM Cloudant instance. By default only emitted events are of \"management\" type.", + "default_value": false, + "optional": true + }, + { + "name": "resource_group_id", "type": "TypeString", - "description": "Types of the service endpoints. Possible values are 'public', 'private', 'public-and-private'.", + "description": "The resource group id", + "cloud_data_type": "resource_group", + "immutable": true, "optional": true, "computed": true }, + { + "name": "resource_aliases_url", + "type": "TypeString", + "description": "The relative path to the resource aliases for the instance.", + "computed": true + }, + { + "name": "deleted_by", + "type": "TypeString", + "description": "The subject who deleted the instance.", + "computed": true + }, { "name": "restored_by", "type": "TypeString", @@ -96631,115 +96604,144 @@ "computed": true }, { - "name": "plan_history", + "name": "cors_config", "type": "TypeList", - "description": "The plan history of the instance.", - "computed": true, + "description": "Configuration for CORS.", + "optional": true, "elem": { - "resource_plan_id": { - "name": "resource_plan_id", - "type": "TypeString", - "computed": true + "allow_credentials": { + "name": "allow_credentials", + "type": "TypeBool", + "description": "Boolean value to allow authentication credentials. If set to true, browser requests must be done by using withCredentials = true.", + "default_value": true, + "optional": true }, - "start_date": { - "name": "start_date", - "type": "TypeString", - "computed": true + "origins": { + "name": "origins", + "type": "TypeList", + "description": "An array of strings that contain allowed origin domains. You have to specify the full URL including the protocol. It is recommended that only the HTTPS protocol is used. Subdomains count as separate domains, so you have to specify all subdomains used.", + "required": true, + "elem": { + "type": "TypeString" + } } - } + }, + "max_items": 1, + "min_items": 1 }, { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "parameters_json", + "type": "TypeString", + "description": "Arbitrary parameters to pass in Json string format", + "optional": true }, { - "name": "resource_id", + "name": "crn", "type": "TypeString", - "description": "The unique ID of the offering", + "description": "CRN of resource instance", + "cloud_data_type": "crn", "computed": true }, { - "name": "resource_bindings_url", + "name": "service_endpoints", "type": "TypeString", - "description": "The relative path to the resource bindings for the instance.", + "description": "Types of the service endpoints. Possible values are 'public', 'private', 'public-and-private'.", + "optional": true, "computed": true }, { - "name": "created_by", + "name": "resource_group_crn", "type": "TypeString", - "description": "The subject who created the instance.", + "description": "The long ID (full CRN) of the resource group", "computed": true }, { - "name": "update_by", + "name": "state", "type": "TypeString", - "description": "The subject who updated the instance.", + "description": "The current state of the instance.", "computed": true }, { - "name": "resource_controller_url", + "name": "sub_type", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", + "description": "The sub-type of instance, e.g. cfaas .", "computed": true }, { - "name": "extensions", - "type": "TypeMap", - "description": "The extended metadata as a map associated with the resource instance.", + "name": "resource_bindings_url", + "type": "TypeString", + "description": "The relative path to the resource bindings for the instance.", "computed": true }, { - "name": "parameters_json", + "name": "restored_at", "type": "TypeString", - "description": "Arbitrary parameters to pass in Json string format", - "optional": true + "description": "The date when the instance under reclamation was restored.", + "computed": true }, { - "name": "include_data_events", + "name": "enable_cors", "type": "TypeBool", - "description": "Include data event types in events sent to IBM Cloud Activity Tracker with LogDNA for the IBM Cloudant instance. By default only emitted events are of \"management\" type.", - "default_value": false, + "description": "Boolean value to turn CORS on and off.", + "default_value": true, "optional": true }, { - "name": "created_at", + "name": "parameters", + "type": "TypeMap", + "description": "Arbitrary parameters to pass. Must be a JSON object", + "optional": true + }, + { + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "account_id", "type": "TypeString", - "description": "The date when the instance was created.", + "description": "An alpha-numeric value identifying the account ID.", "computed": true }, { - "name": "update_at", + "name": "resource_plan_id", "type": "TypeString", - "description": "The date when the instance was last updated.", + "description": "The unique ID of the plan associated with the offering", "computed": true }, { - "name": "resource_group_name", + "name": "scheduled_reclaim_by", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "The subject who initiated the instance reclamation.", "computed": true }, { - "name": "environment_crn", + "name": "resource_group_name", "type": "TypeString", - "description": "CRN of the IBM Cloudant Dedicated Hardware plan instance", - "immutable": true, - "optional": true + "description": "The resource group name in which resource is provisioned", + "computed": true }, { - "name": "guid", + "name": "resource_controller_url", "type": "TypeString", - "description": "Guid of resource instance", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", "computed": true } ], "ibm_cloudant_database": [ + { + "name": "shards", + "type": "TypeInt", + "description": "The number of shards in the database. Each shard is a partition of the hash value range. You are encouraged to talk to support about appropriate values before changing this.", + "immutable": true, + "optional": true, + "computed": true + }, { "name": "instance_crn", "type": "TypeString", @@ -96761,155 +96763,23 @@ "immutable": true, "optional": true, "computed": true - }, - { - "name": "shards", - "type": "TypeInt", - "description": "The number of shards in the database. Each shard is a partition of the hash value range. You are encouraged to talk to support about appropriate values before changing this.", - "immutable": true, - "optional": true, - "computed": true } ], "ibm_cm_catalog": [ { - "name": "features", - "type": "TypeList", - "description": "List of features associated with this catalog.", - "optional": true, - "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "Feature description.", - "optional": true - }, - "description_i18n": { - "name": "description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - "title": { - "name": "title", - "type": "TypeString", - "description": "Heading.", - "optional": true - }, - "title_i18n": { - "name": "title_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "optional": true, - "elem": { - "type": "TypeString" - } - } - } - }, - { - "name": "metadata", + "name": "short_description_i18n", "type": "TypeMap", - "description": "Catalog specific metadata.", + "description": "A map of translated strings, by language code.", "optional": true, "elem": { "type": "TypeString" } }, { - "name": "rev", - "type": "TypeString", - "description": "Cloudant revision.", - "computed": true - }, - { - "name": "offerings_url", - "type": "TypeString", - "description": "URL path to offerings.", - "computed": true - }, - { - "name": "owning_account", - "type": "TypeString", - "description": "Account that owns catalog.", - "computed": true - }, - { - "name": "catalog_filters", - "type": "TypeList", - "description": "Filters for account and catalog filters.", - "computed": true, - "elem": { - "category_filters": { - "name": "category_filters", - "type": "TypeMap", - "description": "Filter against offering properties.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - "id_filters": { - "name": "id_filters", - "type": "TypeList", - "description": "Filter on offering ID's. There is an include filter and an exclule filter. Both can be set.", - "optional": true, - "elem": { - "exclude": { - "name": "exclude", - "type": "TypeList", - "description": "Offering filter terms.", - "optional": true, - "elem": { - "filter_terms": { - "name": "filter_terms", - "type": "TypeList", - "description": "List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.", - "optional": true, - "elem": { - "type": "TypeString" - } - } - }, - "max_items": 1 - }, - "include": { - "name": "include", - "type": "TypeList", - "description": "Offering filter terms.", - "optional": true, - "elem": { - "filter_terms": { - "name": "filter_terms", - "type": "TypeList", - "description": "List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.", - "optional": true, - "elem": { - "type": "TypeString" - } - } - }, - "max_items": 1 - } - }, - "max_items": 1 - }, - "include_all": { - "name": "include_all", - "type": "TypeBool", - "description": "-\u003e true - Include all of the public catalog when filtering. Further settings will specifically exclude some offerings. false - Exclude all of the public catalog when filtering. Further settings will specifically include some offerings.", - "optional": true - } - } - }, - { - "name": "url", + "name": "catalog_icon_url", "type": "TypeString", - "description": "The url for this specific catalog.", - "computed": true + "description": "URL for an icon associated with this catalog.", + "optional": true }, { "name": "crn", @@ -96919,22 +96789,25 @@ "computed": true }, { - "name": "short_description", + "name": "offerings_url", "type": "TypeString", - "description": "Description in the requested language.", - "optional": true + "description": "URL path to offerings.", + "computed": true }, { - "name": "catalog_icon_url", + "name": "updated", "type": "TypeString", - "description": "URL for an icon associated with this catalog.", - "optional": true + "description": "The date-time this catalog was last updated.", + "computed": true }, { - "name": "catalog_banner_url", - "type": "TypeString", - "description": "URL for a banner image for this catalog.", - "optional": true + "name": "label_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "optional": true, + "elem": { + "type": "TypeString" + } }, { "name": "tags", @@ -96947,9 +96820,9 @@ } }, { - "name": "updated", + "name": "owning_account", "type": "TypeString", - "description": "The date-time this catalog was last updated.", + "description": "Account that owns catalog.", "computed": true }, { @@ -97117,57 +96990,6 @@ } } }, - { - "name": "kind", - "type": "TypeString", - "description": "Kind of catalog. Supported kinds are offering and vpe.", - "optional": true - }, - { - "name": "created", - "type": "TypeString", - "description": "The date-time this catalog was created.", - "computed": true - }, - { - "name": "label", - "type": "TypeString", - "description": "Display Name in the requested language.", - "optional": true - }, - { - "name": "short_description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "disabled", - "type": "TypeBool", - "description": "Denotes whether a catalog is disabled.", - "optional": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "Resource group id the catalog is owned by.", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "label_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, { "name": "target_account_contexts", "type": "TypeList", @@ -97234,57 +97056,224 @@ "max_items": 1 } } - } - ], - "ibm_cm_object": [ + }, + { + "name": "rev", + "type": "TypeString", + "description": "Cloudant revision.", + "computed": true + }, + { + "name": "short_description", + "type": "TypeString", + "description": "Description in the requested language.", + "optional": true + }, + { + "name": "catalog_banner_url", + "type": "TypeString", + "description": "URL for a banner image for this catalog.", + "optional": true + }, + { + "name": "features", + "type": "TypeList", + "description": "List of features associated with this catalog.", + "optional": true, + "elem": { + "description": { + "name": "description", + "type": "TypeString", + "description": "Feature description.", + "optional": true + }, + "description_i18n": { + "name": "description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + "title": { + "name": "title", + "type": "TypeString", + "description": "Heading.", + "optional": true + }, + "title_i18n": { + "name": "title_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "optional": true, + "elem": { + "type": "TypeString" + } + } + } + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "Resource group id the catalog is owned by.", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "catalog_filters", + "type": "TypeList", + "description": "Filters for account and catalog filters.", + "computed": true, + "elem": { + "category_filters": { + "name": "category_filters", + "type": "TypeMap", + "description": "Filter against offering properties.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + "id_filters": { + "name": "id_filters", + "type": "TypeList", + "description": "Filter on offering ID's. There is an include filter and an exclule filter. Both can be set.", + "optional": true, + "elem": { + "exclude": { + "name": "exclude", + "type": "TypeList", + "description": "Offering filter terms.", + "optional": true, + "elem": { + "filter_terms": { + "name": "filter_terms", + "type": "TypeList", + "description": "List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.", + "optional": true, + "elem": { + "type": "TypeString" + } + } + }, + "max_items": 1 + }, + "include": { + "name": "include", + "type": "TypeList", + "description": "Offering filter terms.", + "optional": true, + "elem": { + "filter_terms": { + "name": "filter_terms", + "type": "TypeList", + "description": "List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.", + "optional": true, + "elem": { + "type": "TypeString" + } + } + }, + "max_items": 1 + } + }, + "max_items": 1 + }, + "include_all": { + "name": "include_all", + "type": "TypeBool", + "description": "-\u003e true - Include all of the public catalog when filtering. Further settings will specifically exclude some offerings. false - Exclude all of the public catalog when filtering. Further settings will specifically include some offerings.", + "optional": true + } + } + }, { - "name": "object_id", + "name": "kind", "type": "TypeString", - "description": "The ID of the object.", + "description": "Kind of catalog. Supported kinds are offering and vpe.", + "optional": true + }, + { + "name": "metadata", + "type": "TypeMap", + "description": "Catalog specific metadata.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "url", + "type": "TypeString", + "description": "The url for this specific catalog.", "computed": true }, { - "name": "name", + "name": "created", "type": "TypeString", - "description": "The programmatic name of this object.", - "required": true + "description": "The date-time this catalog was created.", + "computed": true }, { "name": "label", "type": "TypeString", - "description": "Display name in the requested language.", + "description": "Display Name in the requested language.", "optional": true }, { - "name": "short_description", - "type": "TypeString", - "description": "Short description in the requested language.", + "name": "disabled", + "type": "TypeBool", + "description": "Denotes whether a catalog is disabled.", "optional": true - }, + } + ], + "ibm_cm_object": [ { - "name": "data", + "name": "catalog_id", "type": "TypeString", - "description": "Stringified map of data values for this object.", - "optional": true, - "computed": true - }, - { - "name": "label_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "optional": true, - "elem": { - "type": "TypeString" - } + "description": "Catalog identifier.", + "immutable": true, + "required": true }, { - "name": "tags", + "name": "publish", "type": "TypeList", - "description": "List of tags associated with this catalog.", - "cloud_data_type": "tags", - "optional": true, + "description": "Publish information.", + "computed": true, "elem": { - "type": "TypeString" + "ibm_approved": { + "name": "ibm_approved", + "type": "TypeBool", + "description": "Indicates if this offering has been approved for use by all IBMers.", + "computed": true + }, + "permit_ibm_public_publish": { + "name": "permit_ibm_public_publish", + "type": "TypeBool", + "description": "Is it permitted to request publishing to IBM or Public.", + "computed": true + }, + "portal_approval_record": { + "name": "portal_approval_record", + "type": "TypeString", + "description": "The portal's approval record ID.", + "computed": true + }, + "portal_url": { + "name": "portal_url", + "type": "TypeString", + "description": "The portal UI URL.", + "computed": true + }, + "public_approved": { + "name": "public_approved", + "type": "TypeBool", + "description": "Indicates if this offering has been approved for use by all IBM Cloud users.", + "computed": true + } } }, { @@ -97326,17 +97315,16 @@ } }, { - "name": "catalog_id", + "name": "catalog_name", "type": "TypeString", - "description": "Catalog identifier.", - "immutable": true, - "required": true + "description": "The name of the catalog.", + "computed": true }, { - "name": "url", + "name": "kind", "type": "TypeString", - "description": "The url for this specific object.", - "computed": true + "description": "Kind of object. Options are \"vpe\", \"preset_configuration\", or \"proxy_source\".", + "required": true }, { "name": "parent_id", @@ -97344,6 +97332,28 @@ "description": "The parent for this specific object.", "optional": true }, + { + "name": "tags", + "type": "TypeList", + "description": "List of tags associated with this catalog.", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "created", + "type": "TypeString", + "description": "The date and time this catalog was created.", + "computed": true + }, + { + "name": "short_description", + "type": "TypeString", + "description": "Short description in the requested language.", + "optional": true + }, { "name": "short_description_i18n", "type": "TypeMap", @@ -97354,47 +97364,56 @@ } }, { - "name": "publish", - "type": "TypeList", - "description": "Publish information.", - "computed": true, + "name": "name", + "type": "TypeString", + "description": "The programmatic name of this object.", + "required": true + }, + { + "name": "updated", + "type": "TypeString", + "description": "The date and time this catalog was last updated.", + "computed": true + }, + { + "name": "object_id", + "type": "TypeString", + "description": "The ID of the object.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The crn for this specific object.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "url", + "type": "TypeString", + "description": "The url for this specific object.", + "computed": true + }, + { + "name": "label_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "optional": true, "elem": { - "ibm_approved": { - "name": "ibm_approved", - "type": "TypeBool", - "description": "Indicates if this offering has been approved for use by all IBMers.", - "computed": true - }, - "permit_ibm_public_publish": { - "name": "permit_ibm_public_publish", - "type": "TypeBool", - "description": "Is it permitted to request publishing to IBM or Public.", - "computed": true - }, - "portal_approval_record": { - "name": "portal_approval_record", - "type": "TypeString", - "description": "The portal's approval record ID.", - "computed": true - }, - "portal_url": { - "name": "portal_url", - "type": "TypeString", - "description": "The portal UI URL.", - "computed": true - }, - "public_approved": { - "name": "public_approved", - "type": "TypeBool", - "description": "Indicates if this offering has been approved for use by all IBM Cloud users.", - "computed": true - } + "type": "TypeString" } }, { - "name": "catalog_name", + "name": "label", "type": "TypeString", - "description": "The name of the catalog.", + "description": "Display name in the requested language.", + "optional": true + }, + { + "name": "data", + "type": "TypeString", + "description": "Stringified map of data values for this object.", + "optional": true, "computed": true }, { @@ -97402,57 +97421,81 @@ "type": "TypeString", "description": "Cloudant revision.", "computed": true - }, + } + ], + "ibm_cm_offering": [ { - "name": "kind", + "name": "long_description", "type": "TypeString", - "description": "Kind of object. Options are \"vpe\", \"preset_configuration\", or \"proxy_source\".", - "required": true + "description": "Long description in the requested language.", + "optional": true, + "computed": true + }, + { + "name": "pc_managed", + "type": "TypeBool", + "description": "Offering is managed by Partner Center.", + "computed": true + }, + { + "name": "share_with_access_list", + "type": "TypeList", + "description": "A list of account IDs to add to this offering's access list.", + "optional": true, + "elem": { + "type": "TypeString" + } }, { "name": "crn", "type": "TypeString", - "description": "The crn for this specific object.", + "description": "The crn for this specific offering.", "cloud_data_type": "crn", "computed": true }, { - "name": "created", + "name": "label", "type": "TypeString", - "description": "The date and time this catalog was created.", + "description": "Display Name in the requested language.", + "optional": true, "computed": true }, { - "name": "updated", + "name": "offering_docs_url", "type": "TypeString", - "description": "The date and time this catalog was last updated.", + "description": "URL for an additional docs with this offering.", + "optional": true, "computed": true - } - ], - "ibm_cm_offering": [ + }, { - "name": "provider_info", + "name": "keywords", "type": "TypeList", - "description": "Information on the provider for this offering, or omitted if no provider information is given.", + "description": "List of keywords associated with offering, typically used to search for it.", "optional": true, "computed": true, "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "The id of this provider.", - "optional": true, - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The name of this provider.", - "optional": true, - "computed": true - } - }, - "max_items": 1 + "type": "TypeString" + } + }, + { + "name": "deprecate", + "type": "TypeBool", + "description": "Deprecate this offering.", + "optional": true + }, + { + "name": "disclaimer", + "type": "TypeString", + "description": "A disclaimer for this offering.", + "optional": true, + "computed": true + }, + { + "name": "hidden", + "type": "TypeBool", + "description": "Determine if this offering should be displayed in the Consumption UI.", + "optional": true, + "computed": true }, { "name": "image_pull_keys", @@ -97485,28 +97528,52 @@ } }, { - "name": "support", + "name": "product_kind", + "type": "TypeString", + "description": "The product kind. Valid values are module, solution, or empty string.", + "optional": true, + "computed": true + }, + { + "name": "badges", "type": "TypeList", - "description": "Offering Support information.", + "description": "A list of badges for this offering.", "computed": true, "elem": { - "locations": { - "name": "locations", + "authority": { + "name": "authority", + "type": "TypeString", + "description": "Authority for the current badge.", + "computed": true + }, + "constraints": { + "name": "constraints", "type": "TypeList", - "description": "A list of country codes indicating where support is provided.", + "description": "An optional set of constraints indicating which versions in an Offering have this particular badge.", "computed": true, "elem": { - "type": "TypeString" + "rule": { + "name": "rule", + "type": "TypeString", + "description": "Rule for the current constraint.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of the current constraint.", + "computed": true + } } }, - "process": { - "name": "process", + "description": { + "name": "description", "type": "TypeString", - "description": "Support process as provided by an ISV.", + "description": "Description of the current badge.", "computed": true }, - "process_i18n": { - "name": "process_i18n", + "description_i18n": { + "name": "description_i18n", "type": "TypeMap", "description": "A map of translated strings, by language code.", "computed": true, @@ -97514,201 +97581,61 @@ "type": "TypeString" } }, - "support_details": { - "name": "support_details", - "type": "TypeList", - "description": "A list of support options (e.g. email, phone, slack, other).", + "icon": { + "name": "icon", + "type": "TypeString", + "description": "Icon for the current badge.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "ID of the current badge.", + "computed": true + }, + "label": { + "name": "label", + "type": "TypeString", + "description": "Display name for the current badge.", + "computed": true + }, + "label_i18n": { + "name": "label_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", "computed": true, "elem": { - "availability": { - "name": "availability", - "type": "TypeList", - "description": "Times when support is available.", - "computed": true, - "elem": { - "always_available": { - "name": "always_available", - "type": "TypeBool", - "description": "Is this support always available.", - "computed": true - }, - "times": { - "name": "times", - "type": "TypeList", - "description": "A list of support times.", - "computed": true, - "elem": { - "day": { - "name": "day", - "type": "TypeInt", - "description": "The day of the week, represented as an integer.", - "computed": true - }, - "end_time": { - "name": "end_time", - "type": "TypeString", - "description": "HOURS:MINUTES:SECONDS using 24 hour time (e.g. 8:15:00).", - "computed": true - }, - "start_time": { - "name": "start_time", - "type": "TypeString", - "description": "HOURS:MINUTES:SECONDS using 24 hour time (e.g. 8:15:00).", - "computed": true - } - } - }, - "timezone": { - "name": "timezone", - "type": "TypeString", - "description": "Timezone (e.g. America/New_York).", - "computed": true - } - } - }, - "contact": { - "name": "contact", - "type": "TypeString", - "description": "Contact for the current support detail.", - "computed": true - }, - "response_wait_time": { - "name": "response_wait_time", - "type": "TypeList", - "description": "Time descriptor.", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "Valid values are hour or day.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", - "description": "Amount of time to wait in unit 'type'.", - "computed": true - } - } - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of the current support detail.", - "computed": true - } + "type": "TypeString" } }, - "support_escalation": { - "name": "support_escalation", + "learn_more_links": { + "name": "learn_more_links", "type": "TypeList", - "description": "Support escalation policy.", + "description": "Learn more links for a badge.", "computed": true, "elem": { - "contact": { - "name": "contact", + "first_party": { + "name": "first_party", "type": "TypeString", - "description": "Escalation contact.", + "description": "First party link.", "computed": true }, - "escalation_wait_time": { - "name": "escalation_wait_time", - "type": "TypeList", - "description": "Time descriptor.", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "Valid values are hour or day.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", - "description": "Amount of time to wait in unit 'type'.", - "computed": true - } - } - }, - "response_wait_time": { - "name": "response_wait_time", - "type": "TypeList", - "description": "Time descriptor.", - "computed": true, - "elem": { - "type": { - "name": "type", - "type": "TypeString", - "description": "Valid values are hour or day.", - "computed": true - }, - "value": { - "name": "value", - "type": "TypeInt", - "description": "Amount of time to wait in unit 'type'.", - "computed": true - } - } + "third_party": { + "name": "third_party", + "type": "TypeString", + "description": "Third party link.", + "computed": true } } }, - "support_type": { - "name": "support_type", - "type": "TypeString", - "description": "Support type for this product.", - "computed": true - }, - "url": { - "name": "url", + "tag": { + "name": "tag", "type": "TypeString", - "description": "URL to be displayed in the Consumption UI for getting support on this offering.", + "description": "Tag for the current badge.", "computed": true } } }, - { - "name": "short_description", - "type": "TypeString", - "description": "Short description in the requested language.", - "optional": true, - "computed": true - }, - { - "name": "publish_approved", - "type": "TypeBool", - "description": "Offering has been approved to publish to permitted to IBM or Public Catalog.", - "computed": true - }, - { - "name": "share_with_ibm", - "type": "TypeBool", - "description": "Denotes IBM employee availability of an Offering - if share_enabled is true.", - "optional": true, - "computed": true - }, - { - "name": "portal_ui_url", - "type": "TypeString", - "description": "The portal UI URL.", - "optional": true, - "computed": true - }, - { - "name": "rev", - "type": "TypeString", - "description": "Cloudant revision.", - "computed": true - }, - { - "name": "offering_support_url", - "type": "TypeString", - "description": "[deprecated] - Use offering.support instead. URL to be displayed in the Consumption UI for getting support on this offering.", - "optional": true, - "computed": true, - "deprecated": "This argument is deprecated" - }, { "name": "features", "type": "TypeList", @@ -97753,56 +97680,90 @@ } }, { - "name": "repo_info", - "type": "TypeList", - "description": "Repository info for offerings.", + "name": "ibm_publish_approved", + "type": "TypeBool", + "description": "Indicates if this offering has been approved for use by all IBMers.", + "optional": true, "computed": true, - "elem": { - "token": { - "name": "token", - "type": "TypeString", - "description": "Token for private repos.", - "optional": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Public or enterprise GitHub.", - "optional": true - } - } + "deprecated": "This argument is deprecated" }, { - "name": "deprecate_pending", + "name": "public_publish_approved", + "type": "TypeBool", + "description": "Indicates if this offering has been approved for use by all IBM Cloud users.", + "optional": true, + "computed": true, + "deprecated": "This argument is deprecated" + }, + { + "name": "publish_public_crn", + "type": "TypeString", + "description": "The crn of the public catalog entry of this offering.", + "optional": true, + "computed": true + }, + { + "name": "portal_ui_url", + "type": "TypeString", + "description": "The portal UI URL.", + "optional": true, + "computed": true + }, + { + "name": "rev", + "type": "TypeString", + "description": "Cloudant revision.", + "computed": true + }, + { + "name": "offering_identifier", + "type": "TypeString", + "description": "Computed Offering ID.", + "computed": true + }, + { + "name": "catalog_id", + "type": "TypeString", + "description": "Catalog identifier.", + "immutable": true, + "required": true + }, + { + "name": "updated", + "type": "TypeString", + "description": "The date and time this catalog was last updated.", + "computed": true + }, + { + "name": "portal_approval_record", + "type": "TypeString", + "description": "The portal's approval record ID.", + "optional": true, + "computed": true + }, + { + "name": "provider_info", "type": "TypeList", - "description": "Deprecation information for an Offering.", + "description": "Information on the provider for this offering, or omitted if no provider information is given.", + "optional": true, "computed": true, "elem": { - "deprecate_date": { - "name": "deprecate_date", - "type": "TypeString", - "description": "Date of deprecation.", - "computed": true - }, - "deprecate_state": { - "name": "deprecate_state", + "id": { + "name": "id", "type": "TypeString", - "description": "Deprecation state.", + "description": "The id of this provider.", + "optional": true, "computed": true }, - "description": { - "name": "description", + "name": { + "name": "name", "type": "TypeString", + "description": "The name of this provider.", + "optional": true, "computed": true } - } - }, - { - "name": "disclaimer", - "type": "TypeString", - "description": "A disclaimer for this offering.", - "optional": true, - "computed": true + }, + "max_items": 1 }, { "name": "media", @@ -97883,9 +97844,9 @@ } }, { - "name": "label_i18n", + "name": "metadata", "type": "TypeMap", - "description": "A map of translated strings, by language code.", + "description": "Map of metadata values for this offering.", "optional": true, "computed": true, "elem": { @@ -97893,50 +97854,25 @@ } }, { - "name": "offering_docs_url", - "type": "TypeString", - "description": "URL for an additional docs with this offering.", - "optional": true, - "computed": true - }, - { - "name": "long_description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "optional": true, + "name": "repo_info", + "type": "TypeList", + "description": "Repository info for offerings.", "computed": true, "elem": { - "type": "TypeString" + "token": { + "name": "token", + "type": "TypeString", + "description": "Token for private repos.", + "optional": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Public or enterprise GitHub.", + "optional": true + } } }, - { - "name": "ibm_publish_approved", - "type": "TypeBool", - "description": "Indicates if this offering has been approved for use by all IBMers.", - "optional": true, - "computed": true, - "deprecated": "This argument is deprecated" - }, - { - "name": "publish_public_crn", - "type": "TypeString", - "description": "The crn of the public catalog entry of this offering.", - "optional": true, - "computed": true - }, - { - "name": "portal_approval_record", - "type": "TypeString", - "description": "The portal's approval record ID.", - "optional": true, - "computed": true - }, - { - "name": "offering_identifier", - "type": "TypeString", - "description": "Computed Offering ID.", - "computed": true - }, { "name": "offering_id", "type": "TypeString", @@ -97945,241 +97881,45 @@ "optional": true }, { - "name": "updated", - "type": "TypeString", - "description": "The date and time this catalog was last updated.", - "computed": true - }, - { - "name": "short_description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "public_publish_approved", - "type": "TypeBool", - "description": "Indicates if this offering has been approved for use by all IBM Cloud users.", - "optional": true, - "computed": true, - "deprecated": "This argument is deprecated" - }, - { - "name": "catalog_id", - "type": "TypeString", - "description": "Catalog identifier.", - "immutable": true, - "required": true - }, - { - "name": "keywords", - "type": "TypeList", - "description": "List of keywords associated with offering, typically used to search for it.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "permit_request_ibm_public_publish", - "type": "TypeBool", - "description": "Is it permitted to request publishing to IBM or Public.", - "optional": true, - "computed": true, - "deprecated": "This argument is deprecated" - }, - { - "name": "product_kind", + "name": "created", "type": "TypeString", - "description": "The product kind. Valid values are module, solution, or empty string.", - "optional": true, + "description": "The date and time this catalog was created.", "computed": true }, { - "name": "public_original_crn", + "name": "short_description", "type": "TypeString", - "description": "The original offering CRN that this publish entry came from.", + "description": "Short description in the requested language.", "optional": true, "computed": true }, { - "name": "hidden", - "type": "TypeBool", - "description": "Determine if this offering should be displayed in the Consumption UI.", + "name": "long_description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", "optional": true, - "computed": true - }, - { - "name": "badges", - "type": "TypeList", - "description": "A list of badges for this offering.", "computed": true, "elem": { - "authority": { - "name": "authority", - "type": "TypeString", - "description": "Authority for the current badge.", - "computed": true - }, - "constraints": { - "name": "constraints", - "type": "TypeList", - "description": "An optional set of constraints indicating which versions in an Offering have this particular badge.", - "computed": true, - "elem": { - "rule": { - "name": "rule", - "type": "TypeString", - "description": "Rule for the current constraint.", - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of the current constraint.", - "computed": true - } - } - }, - "description": { - "name": "description", - "type": "TypeString", - "description": "Description of the current badge.", - "computed": true - }, - "description_i18n": { - "name": "description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "icon": { - "name": "icon", - "type": "TypeString", - "description": "Icon for the current badge.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "ID of the current badge.", - "computed": true - }, - "label": { - "name": "label", - "type": "TypeString", - "description": "Display name for the current badge.", - "computed": true - }, - "label_i18n": { - "name": "label_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "learn_more_links": { - "name": "learn_more_links", - "type": "TypeList", - "description": "Learn more links for a badge.", - "computed": true, - "elem": { - "first_party": { - "name": "first_party", - "type": "TypeString", - "description": "First party link.", - "computed": true - }, - "third_party": { - "name": "third_party", - "type": "TypeString", - "description": "Third party link.", - "computed": true - } - } - }, - "tag": { - "name": "tag", - "type": "TypeString", - "description": "Tag for the current badge.", - "computed": true - } + "type": "TypeString" } }, { - "name": "offering_icon_url", - "type": "TypeString", - "description": "URL for an icon associated with this offering.", + "name": "share_with_ibm", + "type": "TypeBool", + "description": "Denotes IBM employee availability of an Offering - if share_enabled is true.", "optional": true, "computed": true }, { - "name": "tags", - "type": "TypeList", - "description": "List of tags associated with this catalog.", - "cloud_data_type": "tags", + "name": "label_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", "optional": true, "computed": true, "elem": { "type": "TypeString" } }, - { - "name": "deprecate", - "type": "TypeBool", - "description": "Deprecate this offering.", - "optional": true - }, - { - "name": "share_enabled", - "type": "TypeBool", - "description": "Denotes sharing including access list availability of an Offering is enabled.", - "optional": true, - "computed": true - }, - { - "name": "long_description", - "type": "TypeString", - "description": "Long description in the requested language.", - "optional": true, - "computed": true - }, - { - "name": "pc_managed", - "type": "TypeBool", - "description": "Offering is managed by Partner Center.", - "computed": true - }, - { - "name": "share_with_all", - "type": "TypeBool", - "description": "Denotes public availability of an Offering - if share_enabled is true.", - "optional": true, - "computed": true - }, - { - "name": "url", - "type": "TypeString", - "description": "The url for this specific offering.", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The crn for this specific offering.", - "cloud_data_type": "crn", - "computed": true - }, { "name": "name", "type": "TypeString", @@ -98188,65 +97928,20 @@ "computed": true }, { - "name": "created", - "type": "TypeString", - "description": "The date and time this catalog was created.", - "computed": true - }, - { - "name": "catalog_name", + "name": "offering_support_url", "type": "TypeString", - "description": "The name of the catalog.", - "computed": true - }, - { - "name": "metadata", - "type": "TypeMap", - "description": "Map of metadata values for this offering.", + "description": "[deprecated] - Use offering.support instead. URL to be displayed in the Consumption UI for getting support on this offering.", "optional": true, "computed": true, - "elem": { - "type": "TypeString" - } + "deprecated": "This argument is deprecated" }, { - "name": "label", - "type": "TypeString", - "description": "Display Name in the requested language.", + "name": "permit_request_ibm_public_publish", + "type": "TypeBool", + "description": "Is it permitted to request publishing to IBM or Public.", "optional": true, - "computed": true - }, - { - "name": "rating", - "type": "TypeList", - "description": "Repository info for offerings.", "computed": true, - "elem": { - "four_star_count": { - "name": "four_star_count", - "type": "TypeInt", - "description": "Four start rating.", - "computed": true - }, - "one_star_count": { - "name": "one_star_count", - "type": "TypeInt", - "description": "One start rating.", - "computed": true - }, - "three_star_count": { - "name": "three_star_count", - "type": "TypeInt", - "description": "Three start rating.", - "computed": true - }, - "two_star_count": { - "name": "two_star_count", - "type": "TypeInt", - "description": "Two start rating.", - "computed": true - } - } + "deprecated": "This argument is deprecated" }, { "name": "kinds", @@ -100333,73 +100028,320 @@ } }, { - "name": "share_with_access_list", - "type": "TypeList", - "description": "A list of account IDs to add to this offering's access list.", + "name": "public_original_crn", + "type": "TypeString", + "description": "The original offering CRN that this publish entry came from.", "optional": true, - "elem": { - "type": "TypeString" - } - } - ], - "ibm_cm_offering_instance": [ + "computed": true + }, { - "name": "catalog_id", + "name": "catalog_name", "type": "TypeString", - "description": "Catalog ID this instance was created from.", - "required": true + "description": "The name of the catalog.", + "computed": true }, { - "name": "offering_id", - "type": "TypeString", - "description": "Offering ID this instance was created from.", - "required": true + "name": "support", + "type": "TypeList", + "description": "Offering Support information.", + "computed": true, + "elem": { + "locations": { + "name": "locations", + "type": "TypeList", + "description": "A list of country codes indicating where support is provided.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "process": { + "name": "process", + "type": "TypeString", + "description": "Support process as provided by an ISV.", + "computed": true + }, + "process_i18n": { + "name": "process_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "support_details": { + "name": "support_details", + "type": "TypeList", + "description": "A list of support options (e.g. email, phone, slack, other).", + "computed": true, + "elem": { + "availability": { + "name": "availability", + "type": "TypeList", + "description": "Times when support is available.", + "computed": true, + "elem": { + "always_available": { + "name": "always_available", + "type": "TypeBool", + "description": "Is this support always available.", + "computed": true + }, + "times": { + "name": "times", + "type": "TypeList", + "description": "A list of support times.", + "computed": true, + "elem": { + "day": { + "name": "day", + "type": "TypeInt", + "description": "The day of the week, represented as an integer.", + "computed": true + }, + "end_time": { + "name": "end_time", + "type": "TypeString", + "description": "HOURS:MINUTES:SECONDS using 24 hour time (e.g. 8:15:00).", + "computed": true + }, + "start_time": { + "name": "start_time", + "type": "TypeString", + "description": "HOURS:MINUTES:SECONDS using 24 hour time (e.g. 8:15:00).", + "computed": true + } + } + }, + "timezone": { + "name": "timezone", + "type": "TypeString", + "description": "Timezone (e.g. America/New_York).", + "computed": true + } + } + }, + "contact": { + "name": "contact", + "type": "TypeString", + "description": "Contact for the current support detail.", + "computed": true + }, + "response_wait_time": { + "name": "response_wait_time", + "type": "TypeList", + "description": "Time descriptor.", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "Valid values are hour or day.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "Amount of time to wait in unit 'type'.", + "computed": true + } + } + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of the current support detail.", + "computed": true + } + } + }, + "support_escalation": { + "name": "support_escalation", + "type": "TypeList", + "description": "Support escalation policy.", + "computed": true, + "elem": { + "contact": { + "name": "contact", + "type": "TypeString", + "description": "Escalation contact.", + "computed": true + }, + "escalation_wait_time": { + "name": "escalation_wait_time", + "type": "TypeList", + "description": "Time descriptor.", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "Valid values are hour or day.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "Amount of time to wait in unit 'type'.", + "computed": true + } + } + }, + "response_wait_time": { + "name": "response_wait_time", + "type": "TypeList", + "description": "Time descriptor.", + "computed": true, + "elem": { + "type": { + "name": "type", + "type": "TypeString", + "description": "Valid values are hour or day.", + "computed": true + }, + "value": { + "name": "value", + "type": "TypeInt", + "description": "Amount of time to wait in unit 'type'.", + "computed": true + } + } + } + } + }, + "support_type": { + "name": "support_type", + "type": "TypeString", + "description": "Support type for this product.", + "computed": true + }, + "url": { + "name": "url", + "type": "TypeString", + "description": "URL to be displayed in the Consumption UI for getting support on this offering.", + "computed": true + } + } }, { - "name": "install_plan", - "type": "TypeString", - "description": "install plan for the subscription of the operator- can be either automatic or manual. Required for operator bundles", - "optional": true + "name": "share_enabled", + "type": "TypeBool", + "description": "Denotes sharing including access list availability of an Offering is enabled.", + "optional": true, + "computed": true }, { - "name": "channel", - "type": "TypeString", - "description": "channel to target for the operator subscription. Required for operator bundles", - "optional": true + "name": "deprecate_pending", + "type": "TypeList", + "description": "Deprecation information for an Offering.", + "computed": true, + "elem": { + "deprecate_date": { + "name": "deprecate_date", + "type": "TypeString", + "description": "Date of deprecation.", + "computed": true + }, + "deprecate_state": { + "name": "deprecate_state", + "type": "TypeString", + "description": "Deprecation state.", + "computed": true + }, + "description": { + "name": "description", + "type": "TypeString", + "computed": true + } + } }, { "name": "url", "type": "TypeString", - "description": "url reference to this object.", + "description": "The url for this specific offering.", "computed": true }, { - "name": "label", + "name": "offering_icon_url", "type": "TypeString", - "description": "the label for this instance.", - "required": true + "description": "URL for an icon associated with this offering.", + "optional": true, + "computed": true }, { - "name": "cluster_id", - "type": "TypeString", - "description": "Cluster ID.", - "required": true + "name": "tags", + "type": "TypeList", + "description": "List of tags associated with this catalog.", + "cloud_data_type": "tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "cluster_namespaces", - "type": "TypeList", - "description": "List of target namespaces to install into.", - "required": true, + "name": "short_description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "optional": true, + "computed": true, "elem": { "type": "TypeString" } }, { - "name": "resource_group_id", + "name": "share_with_all", + "type": "TypeBool", + "description": "Denotes public availability of an Offering - if share_enabled is true.", + "optional": true, + "computed": true + }, + { + "name": "rating", + "type": "TypeList", + "description": "Repository info for offerings.", + "computed": true, + "elem": { + "four_star_count": { + "name": "four_star_count", + "type": "TypeInt", + "description": "Four start rating.", + "computed": true + }, + "one_star_count": { + "name": "one_star_count", + "type": "TypeInt", + "description": "One start rating.", + "computed": true + }, + "three_star_count": { + "name": "three_star_count", + "type": "TypeInt", + "description": "Three start rating.", + "computed": true + }, + "two_star_count": { + "name": "two_star_count", + "type": "TypeInt", + "description": "Two start rating.", + "computed": true + } + } + }, + { + "name": "publish_approved", + "type": "TypeBool", + "description": "Offering has been approved to publish to permitted to IBM or Public Catalog.", + "computed": true + } + ], + "ibm_cm_offering_instance": [ + { + "name": "offering_id", "type": "TypeString", - "description": "id of the resource group", - "cloud_data_type": "resource_group", - "optional": true + "description": "Offering ID this instance was created from.", + "required": true }, { "name": "kind_format", @@ -100408,16 +100350,21 @@ "required": true }, { - "name": "cluster_region", - "type": "TypeString", - "description": "Cluster region (e.g., us-south).", + "name": "cluster_all_namespaces", + "type": "TypeBool", + "description": "designate to install into all namespaces.", "required": true }, { - "name": "wait_until_successful", - "type": "TypeBool", - "description": "Whether to wait until the offering instance successfully provisions, or to return when accepted", - "default_value": true, + "name": "schematics_workspace_id", + "type": "TypeString", + "description": "id of the schematics workspace, for offerings installed through schematics", + "computed": true + }, + { + "name": "channel", + "type": "TypeString", + "description": "channel to target for the operator subscription. Required for operator bundles", "optional": true }, { @@ -100427,6 +100374,12 @@ "cloud_data_type": "crn", "computed": true }, + { + "name": "catalog_id", + "type": "TypeString", + "description": "Catalog ID this instance was created from.", + "required": true + }, { "name": "version", "type": "TypeString", @@ -100434,49 +100387,60 @@ "required": true }, { - "name": "cluster_all_namespaces", - "type": "TypeBool", - "description": "designate to install into all namespaces.", - "required": true + "name": "cluster_namespaces", + "type": "TypeList", + "description": "List of target namespaces to install into.", + "required": true, + "elem": { + "type": "TypeString" + } }, { - "name": "schematics_workspace_id", + "name": "install_plan", "type": "TypeString", - "description": "id of the schematics workspace, for offerings installed through schematics", - "computed": true - } - ], - "ibm_cm_validation": [ + "description": "install plan for the subscription of the operator- can be either automatic or manual. Required for operator bundles", + "optional": true + }, { - "name": "validated", + "name": "url", "type": "TypeString", - "description": "Data and time of last successful validation.", + "description": "url reference to this object.", "computed": true }, { - "name": "state", + "name": "resource_group_id", "type": "TypeString", - "description": "Current validation state - \u003cempty\u003e, in_progress, valid, invalid, expired.", - "computed": true + "description": "id of the resource group", + "cloud_data_type": "resource_group", + "optional": true }, { - "name": "last_operation", + "name": "label", "type": "TypeString", - "description": "Last operation (e.g. submit_deployment, generate_installer, install_offering.", - "computed": true + "description": "the label for this instance.", + "required": true }, { - "name": "message", + "name": "cluster_id", "type": "TypeString", - "description": "Any message needing to be conveyed as part of the validation job.", - "computed": true + "description": "Cluster ID.", + "required": true }, { - "name": "mark_version_consumable", + "name": "cluster_region", + "type": "TypeString", + "description": "Cluster region (e.g., us-south).", + "required": true + }, + { + "name": "wait_until_successful", "type": "TypeBool", - "description": "If the version should be marked as consumable or \"ready to share\".", + "description": "Whether to wait until the offering instance successfully provisions, or to return when accepted", + "default_value": true, "optional": true - }, + } + ], + "ibm_cm_validation": [ { "name": "version_locator", "type": "TypeString", @@ -100502,21 +100466,6 @@ "type": "TypeString" } }, - { - "name": "x_auth_refresh_token", - "type": "TypeString", - "description": "Authentication token used to submit validation job.", - "secure": true, - "optional": true, - "deprecated": "This argument is deprecated because it is now retrieved automatically." - }, - { - "name": "revalidate_if_validated", - "type": "TypeBool", - "description": "If the version should be revalidated if it is already validated.", - "immutable": true, - "optional": true - }, { "name": "environment_variables", "type": "TypeList", @@ -100593,294 +100542,704 @@ }, "max_items": 1 }, + { + "name": "validated", + "type": "TypeString", + "description": "Data and time of last successful validation.", + "computed": true + }, { "name": "requested", "type": "TypeString", "description": "Data and time of last validation request.", "computed": true - } - ], - "ibm_cm_version": [ + }, { - "name": "single_instance", - "type": "TypeBool", - "description": "Denotes if single instance can be deployed to a given cluster.", + "name": "state", + "type": "TypeString", + "description": "Current validation state - \u003cempty\u003e, in_progress, valid, invalid, expired.", "computed": true }, { - "name": "terraform_version", + "name": "message", "type": "TypeString", - "description": "Provide a terraform version for this offering version to use.", + "description": "Any message needing to be conveyed as part of the validation job.", + "computed": true + }, + { + "name": "mark_version_consumable", + "type": "TypeBool", + "description": "If the version should be marked as consumable or \"ready to share\".", "optional": true }, { - "name": "x_auth_token", + "name": "last_operation", "type": "TypeString", - "description": "Authentication token used to access the specified zip file.", + "description": "Last operation (e.g. submit_deployment, generate_installer, install_offering.", + "computed": true + }, + { + "name": "x_auth_refresh_token", + "type": "TypeString", + "description": "Authentication token used to submit validation job.", + "secure": true, + "optional": true, + "deprecated": "This argument is deprecated because it is now retrieved automatically." + }, + { + "name": "revalidate_if_validated", + "type": "TypeBool", + "description": "If the version should be revalidated if it is already validated.", "immutable": true, "optional": true - }, + } + ], + "ibm_cm_version": [ { - "name": "long_description", + "name": "terraform_version", "type": "TypeString", - "description": "Long description for version.", - "computed": true + "description": "Provide a terraform version for this offering version to use.", + "optional": true }, { - "name": "target_kinds", + "name": "flavor", "type": "TypeList", - "description": "Deployment target of the content being onboarded. Current valid values are iks, roks, vcenter, power-iaas, terraform, and vpc-x86. Required for virtual server image for VPC.", - "immutable": true, + "description": "Version Flavor Information. Only supported for Product kind Solution.", "optional": true, "elem": { - "type": "TypeString" - } + "index": { + "name": "index", + "type": "TypeInt", + "description": "Order that this flavor should appear when listed for a single version.", + "optional": true + }, + "label": { + "name": "label", + "type": "TypeString", + "description": "Label for this flavor.", + "optional": true + }, + "label_i18n": { + "name": "label_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Programmatic name for this flavor.", + "optional": true + } + }, + "max_items": 1 }, { - "name": "created", + "name": "target_version", "type": "TypeString", - "description": "The date and time this version was created.", + "description": "The semver value for this new version, if not found in the zip url package content.", + "immutable": true, + "optional": true + }, + { + "name": "include_config", + "type": "TypeBool", + "description": "Add all possible configuration values to this version when importing.", + "immutable": true, + "optional": true + }, + { + "name": "tgz_url", + "type": "TypeString", + "description": "File used to on-board this version.", "computed": true }, { - "name": "configuration", + "name": "sha", + "type": "TypeString", + "description": "SHA256 fingerprint of the image file. Required for virtual server image for VPC.", + "computed": true + }, + { + "name": "metadata", "type": "TypeList", - "description": "List of user solicited overrides.", - "optional": true, + "description": "Generic data to be included with content being onboarded. Required for virtual server image for VPC.", "computed": true, "elem": { - "custom_config": { - "name": "custom_config", + "end_deploy_time": { + "name": "end_deploy_time", + "type": "TypeString", + "description": "The time validation ended.", + "computed": true + }, + "est_deploy_time": { + "name": "est_deploy_time", + "type": "TypeFloat", + "description": "The estimated time validation takes.", + "computed": true + }, + "example_name": { + "name": "example_name", + "type": "TypeString", + "description": "Working directory of source files.", + "computed": true + }, + "modules": { + "name": "modules", "type": "TypeList", - "description": "Render type.", - "optional": true, + "description": "Terraform modules.", "computed": true, "elem": { - "associations": { - "name": "associations", + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the module.", + "computed": true + }, + "offering_reference": { + "name": "offering_reference", "type": "TypeList", - "description": "List of parameters that are associated with this configuration.", - "optional": true, + "description": "Terraform modules.", "computed": true, "elem": { - "parameters": { - "name": "parameters", + "catalog_id": { + "name": "catalog_id", + "type": "TypeString", + "description": "Catalog ID of the module reference.", + "computed": true + }, + "flavor": { + "name": "flavor", + "type": "TypeString", + "description": "Flavor of the module.", + "computed": true + }, + "flavors": { + "name": "flavors", "type": "TypeList", - "description": "Parameters for this association.", - "optional": true, + "description": "Flavors of the module.", "computed": true, "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of this parameter.", - "optional": true, - "computed": true - }, - "options_refresh": { - "name": "options_refresh", - "type": "TypeBool", - "description": "Refresh options.", - "optional": true, - "computed": true - } + "type": "TypeString" } + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "ID of the offering module.", + "computed": true + }, + "kind": { + "name": "kind", + "type": "TypeString", + "description": "Kind of the offeringmodule.", + "computed": true + }, + "metadata": { + "name": "metadata", + "type": "TypeString", + "description": "Metadata of the module.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the offering module.", + "computed": true + }, + "version": { + "name": "version", + "type": "TypeString", + "description": "Version of the offering module.", + "computed": true } - }, - "max_items": 1 + } }, - "config_constraints": { - "name": "config_constraints", - "type": "TypeMap", - "description": "Map of constraint parameters that will be passed to the custom widget.", - "optional": true, + "source": { + "name": "source", + "type": "TypeString", + "description": "Source of the module.", + "computed": true + } + } + }, + "source_url": { + "name": "source_url", + "type": "TypeString", + "description": "Version source URL.", + "computed": true + }, + "start_deploy_time": { + "name": "start_deploy_time", + "type": "TypeString", + "description": "The time validation started.", + "computed": true + }, + "terraform_version": { + "name": "terraform_version", + "type": "TypeString", + "description": "Terraform version.", + "computed": true + }, + "usage": { + "name": "usage", + "type": "TypeString", + "description": "Usage text for the version.", + "computed": true + }, + "usage_template": { + "name": "usage_template", + "type": "TypeString", + "description": "Usage text for the version.", + "computed": true + }, + "validated_terraform_version": { + "name": "validated_terraform_version", + "type": "TypeString", + "description": "Validated terraform version.", + "computed": true + }, + "version_name": { + "name": "version_name", + "type": "TypeString", + "description": "Version name.", + "computed": true + }, + "vsi_vpc": { + "name": "vsi_vpc", + "type": "TypeList", + "description": "VSI VPC version information", + "computed": true, + "elem": { + "file": { + "name": "file", + "type": "TypeList", + "description": "Details for the stored image file. Required for virtual server image for VPC.", "computed": true, "elem": { - "type": "TypeString" + "size": { + "name": "size", + "type": "TypeInt", + "description": "Size of the stored image file rounded up to the next gigabyte. Required for virtual server image for VPC.", + "computed": true + } + } + }, + "images": { + "name": "images", + "type": "TypeList", + "description": "Image operating system. Required for virtual server image for VPC.", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "Programmatic ID of virtual server image. Required for virtual server image for VPC.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Programmatic name of virtual server image. Required for virtual server image for VPC.", + "computed": true + }, + "region": { + "name": "region", + "type": "TypeString", + "description": "Region the virtual server image is available in. Required for virtual server image for VPC.", + "computed": true + } + } + }, + "minimum_provisioned_size": { + "name": "minimum_provisioned_size", + "type": "TypeInt", + "description": "Minimum size (in gigabytes) of a volume onto which this image may be provisioned. Required for virtual server image for VPC.", + "computed": true + }, + "operating_system": { + "name": "operating_system", + "type": "TypeList", + "description": "Operating system included in this image. Required for virtual server image for VPC.", + "computed": true, + "elem": { + "architecture": { + "name": "architecture", + "type": "TypeString", + "description": "Operating system architecture. Required for virtual server image for VPC.", + "computed": true + }, + "dedicated_host_only": { + "name": "dedicated_host_only", + "type": "TypeBool", + "description": "Images with this operating system can only be used on dedicated hosts or dedicated host groups. Required for virtual server image for VPC.", + "computed": true + }, + "display_name": { + "name": "display_name", + "type": "TypeString", + "description": "Unique, display-friendly name for the operating system. Required for virtual server image for VPC.", + "computed": true + }, + "family": { + "name": "family", + "type": "TypeString", + "description": "Software family for this operating system. Required for virtual server image for VPC.", + "computed": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "URL for this operating system. Required for virtual server image for VPC.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Globally unique name for this operating system Required for virtual server image for VPC.", + "computed": true + }, + "vendor": { + "name": "vendor", + "type": "TypeString", + "description": "Vendor of the operating system. Required for virtual server image for VPC.", + "computed": true + }, + "version": { + "name": "version", + "type": "TypeString", + "description": "Major release version of this operating system. Required for virtual server image for VPC.", + "computed": true + } } - }, - "grouping": { - "name": "grouping", - "type": "TypeString", - "description": "Determines where this configuration type is rendered (3 sections today - Target, Resource, and Deployment).", - "optional": true, - "computed": true - }, - "grouping_index": { - "name": "grouping_index", - "type": "TypeInt", - "description": "Determines the order that this configuration item shows in that particular grouping.", - "optional": true, - "computed": true - }, - "original_grouping": { - "name": "original_grouping", - "type": "TypeString", - "description": "Original grouping type for this configuration (3 types - Target, Resource, and Deployment).", - "optional": true, - "computed": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "ID of the widget type.", - "optional": true, - "computed": true } - }, - "max_items": 1 - }, - "default_value": { - "name": "default_value", - "type": "TypeString", - "description": "The default value as a JSON encoded string. To use a secret when the type is password, specify a JSON encoded value of $ref:#/components/schemas/SecretInstance, prefixed with `cmsm_v1:`.", - "optional": true, - "computed": true + } }, - "description": { - "name": "description", + "working_directory": { + "name": "working_directory", "type": "TypeString", - "description": "Key description.", - "optional": true, + "description": "Working directory of source files.", "computed": true - }, - "display_name": { - "name": "display_name", + } + } + }, + { + "name": "install", + "type": "TypeList", + "description": "Script information.", + "optional": true, + "computed": true, + "elem": { + "delete_script": { + "name": "delete_script", "type": "TypeString", - "description": "Display name for configuration type.", - "optional": true, - "computed": true - }, - "hidden": { - "name": "hidden", - "type": "TypeBool", - "description": "Hide values.", + "description": "Optional script that if run will remove the installed version.", "optional": true, "computed": true }, - "key": { - "name": "key", + "instructions": { + "name": "instructions", "type": "TypeString", - "description": "Configuration key.", + "description": "Instruction on step and by whom (role) that are needed to take place to prepare the target for installing this version.", "optional": true, "computed": true }, - "options": { - "name": "options", - "type": "TypeList", - "description": "List of options of type.", + "instructions_i18n": { + "name": "instructions_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", "optional": true, "computed": true, "elem": { - "type": "TypeMap" + "type": "TypeString" } }, - "required": { - "name": "required", - "type": "TypeBool", - "description": "Is key required to install.", - "optional": true, - "computed": true - }, - "type": { - "name": "type", + "scope": { + "name": "scope", "type": "TypeString", - "description": "Value type (string, boolean, int).", + "description": "Optional value indicating if this script is scoped to a namespace or the entire cluster.", "optional": true, "computed": true }, - "type_metadata": { - "name": "type_metadata", + "script": { + "name": "script", "type": "TypeString", - "description": "The original type, as found in the source being onboarded.", + "description": "Optional script that needs to be run post any pre-condition script.", "optional": true, "computed": true }, - "value_constraint": { - "name": "value_constraint", + "script_permission": { + "name": "script_permission", "type": "TypeString", - "description": "Constraint associated with value, e.g., for string type - regx:[a-z].", + "description": "Optional iam permissions that are required on the target cluster to run this script.", "optional": true, "computed": true } - } + }, + "max_items": 1 }, { - "name": "required_resources", + "name": "entitlement", "type": "TypeList", - "description": "Resource requirments for installation.", + "description": "Entitlement license info.", "computed": true, "elem": { - "type": { - "name": "type", + "image_repo_name": { + "name": "image_repo_name", "type": "TypeString", - "description": "Type of requirement.", + "description": "Image repository name.", "optional": true }, - "value": { - "name": "value", + "part_numbers": { + "name": "part_numbers", + "type": "TypeList", + "description": "list of license entitlement part numbers, eg. D1YGZLL,D1ZXILL.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + "product_id": { + "name": "product_id", "type": "TypeString", - "description": "mem, disk, cores, and nodes can be parsed as an int. targetVersion will be a semver range value.", + "description": "Product ID.", + "optional": true + }, + "provider_id": { + "name": "provider_id", + "type": "TypeString", + "description": "Provider ID.", + "optional": true + }, + "provider_name": { + "name": "provider_name", + "type": "TypeString", + "description": "Provider name.", "optional": true } } }, { - "name": "deprecate_pending", + "name": "licenses", "type": "TypeList", - "description": "Deprecation information for a Version.", + "description": "List of licenses the product was built with.", + "optional": true, "computed": true, "elem": { - "deprecate_date": { - "name": "deprecate_date", + "description": { + "name": "description", "type": "TypeString", - "description": "Date of deprecation.", + "description": "License description.", + "optional": true, "computed": true }, - "deprecate_state": { - "name": "deprecate_state", + "id": { + "name": "id", "type": "TypeString", - "description": "Deprecation state.", + "description": "License ID.", + "optional": true, "computed": true }, - "description": { - "name": "description", + "name": { + "name": "name", "type": "TypeString", + "description": "license name.", + "optional": true, + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "type of license e.g., Apache xxx.", + "optional": true, + "computed": true + }, + "url": { + "name": "url", + "type": "TypeString", + "description": "URL for the license text.", + "optional": true, "computed": true } } }, { - "name": "content", + "name": "long_description", "type": "TypeString", - "description": "Byte array representing the content to be imported. Only supported for OVA images at this time.", - "immutable": true, - "optional": true + "description": "Long description for version.", + "computed": true }, { - "name": "install_kind", + "name": "offering_identifier", "type": "TypeString", - "description": "Install type. Example: instance. Required for virtual server image for VPC.", + "description": "Offering ID, in the format of \u003caccount_id\u003e:o:\u003coffering_id\u003e.", + "computed": true + }, + { + "name": "product_kind", + "type": "TypeString", + "description": "Optional product kind for the software being onboarded. Valid values are software, module, or solution. Default value is software.", "immutable": true, "optional": true }, { - "name": "version", + "name": "import_metadata", + "type": "TypeList", + "description": "Generic data to be included with content being onboarded. Required for virtual server image for VPC.", + "optional": true, + "elem": { + "file": { + "name": "file", + "type": "TypeList", + "description": "Details for the stored image file. Required for virtual server image for VPC.", + "optional": true, + "elem": { + "size": { + "name": "size", + "type": "TypeInt", + "description": "Size of the stored image file rounded up to the next gigabyte. Required for virtual server image for VPC.", + "optional": true + } + }, + "max_items": 1 + }, + "images": { + "name": "images", + "type": "TypeList", + "description": "Image operating system. Required for virtual server image for VPC.", + "optional": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "Programmatic ID of virtual server image. Required for virtual server image for VPC.", + "optional": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Programmatic name of virtual server image. Required for virtual server image for VPC.", + "optional": true + }, + "region": { + "name": "region", + "type": "TypeString", + "description": "Region the virtual server image is available in. Required for virtual server image for VPC.", + "optional": true + } + } + }, + "minimum_provisioned_size": { + "name": "minimum_provisioned_size", + "type": "TypeInt", + "description": "Minimum size (in gigabytes) of a volume onto which this image may be provisioned. Required for virtual server image for VPC.", + "optional": true + }, + "operating_system": { + "name": "operating_system", + "type": "TypeList", + "description": "Operating system included in this image. Required for virtual server image for VPC.", + "optional": true, + "elem": { + "architecture": { + "name": "architecture", + "type": "TypeString", + "description": "Operating system architecture. Required for virtual server image for VPC.", + "optional": true + }, + "dedicated_host_only": { + "name": "dedicated_host_only", + "type": "TypeBool", + "description": "Images with this operating system can only be used on dedicated hosts or dedicated host groups. Required for virtual server image for VPC.", + "optional": true + }, + "display_name": { + "name": "display_name", + "type": "TypeString", + "description": "Unique, display-friendly name for the operating system. Required for virtual server image for VPC.", + "optional": true + }, + "family": { + "name": "family", + "type": "TypeString", + "description": "Software family for this operating system. Required for virtual server image for VPC.", + "optional": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "URL for this operating system. Required for virtual server image for VPC.", + "optional": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Globally unique name for this operating system Required for virtual server image for VPC.", + "optional": true + }, + "vendor": { + "name": "vendor", + "type": "TypeString", + "description": "Vendor of the operating system. Required for virtual server image for VPC.", + "optional": true + }, + "version": { + "name": "version", + "type": "TypeString", + "description": "Major release version of this operating system. Required for virtual server image for VPC.", + "optional": true + } + }, + "max_items": 1 + } + }, + "max_items": 1 + }, + { + "name": "updated", "type": "TypeString", - "description": "Semantic version of the software being onboarded. Required for virtual server image for VPC.", + "description": "The date and time this version was last updated.", "computed": true }, { - "name": "is_vsi", + "name": "deprecated", "type": "TypeBool", - "description": "Indicates that the current terraform template is used to install a virtual server image.", + "description": "read only field, indicating if this version is deprecated.", + "computed": true + }, + { + "name": "version_locator", + "type": "TypeString", + "description": "A dotted value of `catalogID`.`versionID`.", + "computed": true + }, + { + "name": "format_kind", + "type": "TypeString", + "description": "Format of content being onboarded. Example: vsi-image. Required for virtual server image for VPC.", "immutable": true, "optional": true }, { - "name": "tgz_url", + "name": "repotype", "type": "TypeString", - "description": "File used to on-board this version.", + "description": "The type of repository containing this version. Valid values are 'public_git' or 'enterprise_git'.", + "immutable": true, + "optional": true + }, + { + "name": "single_instance", + "type": "TypeBool", + "description": "Denotes if single instance can be deployed to a given cluster.", + "computed": true + }, + { + "name": "package_version", + "type": "TypeString", + "description": "Version of the package used to create this version.", "computed": true }, { @@ -101577,299 +101936,18 @@ "max_items": 1 }, { - "name": "metadata", - "type": "TypeList", - "description": "Generic data to be included with content being onboarded. Required for virtual server image for VPC.", - "computed": true, - "elem": { - "end_deploy_time": { - "name": "end_deploy_time", - "type": "TypeString", - "description": "The time validation ended.", - "computed": true - }, - "est_deploy_time": { - "name": "est_deploy_time", - "type": "TypeFloat", - "description": "The estimated time validation takes.", - "computed": true - }, - "example_name": { - "name": "example_name", - "type": "TypeString", - "description": "Working directory of source files.", - "computed": true - }, - "modules": { - "name": "modules", - "type": "TypeList", - "description": "Terraform modules.", - "computed": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the module.", - "computed": true - }, - "offering_reference": { - "name": "offering_reference", - "type": "TypeList", - "description": "Terraform modules.", - "computed": true, - "elem": { - "catalog_id": { - "name": "catalog_id", - "type": "TypeString", - "description": "Catalog ID of the module reference.", - "computed": true - }, - "flavor": { - "name": "flavor", - "type": "TypeString", - "description": "Flavor of the module.", - "computed": true - }, - "flavors": { - "name": "flavors", - "type": "TypeList", - "description": "Flavors of the module.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "ID of the offering module.", - "computed": true - }, - "kind": { - "name": "kind", - "type": "TypeString", - "description": "Kind of the offeringmodule.", - "computed": true - }, - "metadata": { - "name": "metadata", - "type": "TypeString", - "description": "Metadata of the module.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the offering module.", - "computed": true - }, - "version": { - "name": "version", - "type": "TypeString", - "description": "Version of the offering module.", - "computed": true - } - } - }, - "source": { - "name": "source", - "type": "TypeString", - "description": "Source of the module.", - "computed": true - } - } - }, - "source_url": { - "name": "source_url", - "type": "TypeString", - "description": "Version source URL.", - "computed": true - }, - "start_deploy_time": { - "name": "start_deploy_time", - "type": "TypeString", - "description": "The time validation started.", - "computed": true - }, - "terraform_version": { - "name": "terraform_version", - "type": "TypeString", - "description": "Terraform version.", - "computed": true - }, - "usage": { - "name": "usage", - "type": "TypeString", - "description": "Usage text for the version.", - "computed": true - }, - "usage_template": { - "name": "usage_template", - "type": "TypeString", - "description": "Usage text for the version.", - "computed": true - }, - "validated_terraform_version": { - "name": "validated_terraform_version", - "type": "TypeString", - "description": "Validated terraform version.", - "computed": true - }, - "version_name": { - "name": "version_name", - "type": "TypeString", - "description": "Version name.", - "computed": true - }, - "vsi_vpc": { - "name": "vsi_vpc", - "type": "TypeList", - "description": "VSI VPC version information", - "computed": true, - "elem": { - "file": { - "name": "file", - "type": "TypeList", - "description": "Details for the stored image file. Required for virtual server image for VPC.", - "computed": true, - "elem": { - "size": { - "name": "size", - "type": "TypeInt", - "description": "Size of the stored image file rounded up to the next gigabyte. Required for virtual server image for VPC.", - "computed": true - } - } - }, - "images": { - "name": "images", - "type": "TypeList", - "description": "Image operating system. Required for virtual server image for VPC.", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "Programmatic ID of virtual server image. Required for virtual server image for VPC.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Programmatic name of virtual server image. Required for virtual server image for VPC.", - "computed": true - }, - "region": { - "name": "region", - "type": "TypeString", - "description": "Region the virtual server image is available in. Required for virtual server image for VPC.", - "computed": true - } - } - }, - "minimum_provisioned_size": { - "name": "minimum_provisioned_size", - "type": "TypeInt", - "description": "Minimum size (in gigabytes) of a volume onto which this image may be provisioned. Required for virtual server image for VPC.", - "computed": true - }, - "operating_system": { - "name": "operating_system", - "type": "TypeList", - "description": "Operating system included in this image. Required for virtual server image for VPC.", - "computed": true, - "elem": { - "architecture": { - "name": "architecture", - "type": "TypeString", - "description": "Operating system architecture. Required for virtual server image for VPC.", - "computed": true - }, - "dedicated_host_only": { - "name": "dedicated_host_only", - "type": "TypeBool", - "description": "Images with this operating system can only be used on dedicated hosts or dedicated host groups. Required for virtual server image for VPC.", - "computed": true - }, - "display_name": { - "name": "display_name", - "type": "TypeString", - "description": "Unique, display-friendly name for the operating system. Required for virtual server image for VPC.", - "computed": true - }, - "family": { - "name": "family", - "type": "TypeString", - "description": "Software family for this operating system. Required for virtual server image for VPC.", - "computed": true - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "URL for this operating system. Required for virtual server image for VPC.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Globally unique name for this operating system Required for virtual server image for VPC.", - "computed": true - }, - "vendor": { - "name": "vendor", - "type": "TypeString", - "description": "Vendor of the operating system. Required for virtual server image for VPC.", - "computed": true - }, - "version": { - "name": "version", - "type": "TypeString", - "description": "Major release version of this operating system. Required for virtual server image for VPC.", - "computed": true - } - } - } - } - }, - "working_directory": { - "name": "working_directory", - "type": "TypeString", - "description": "Working directory of source files.", - "computed": true - } - } - }, - { - "name": "zipurl", + "name": "content", "type": "TypeString", - "description": "URL path to zip location. If not specified, must provide content in the body of this call.", + "description": "Byte array representing the content to be imported. Only supported for OVA images at this time.", "immutable": true, "optional": true }, - { - "name": "rev", - "type": "TypeString", - "description": "Cloudant revision.", - "computed": true - }, - { - "name": "version_id", - "type": "TypeString", - "description": "Unique ID.", - "computed": true - }, { "name": "deprecate", "type": "TypeBool", "description": "Deprecate this version.", "optional": true }, - { - "name": "is_consumable", - "type": "TypeBool", - "description": "Is the version able to be shared.", - "computed": true - }, { "name": "usage", "type": "TypeString", @@ -101877,176 +101955,24 @@ "optional": true }, { - "name": "import_sha", + "name": "zipurl", "type": "TypeString", - "description": "SHA256 fingerprint of the image file. Required for virtual server image for VPC.", + "description": "URL path to zip location. If not specified, must provide content in the body of this call.", + "immutable": true, "optional": true }, { - "name": "import_metadata", - "type": "TypeList", - "description": "Generic data to be included with content being onboarded. Required for virtual server image for VPC.", - "optional": true, - "elem": { - "file": { - "name": "file", - "type": "TypeList", - "description": "Details for the stored image file. Required for virtual server image for VPC.", - "optional": true, - "elem": { - "size": { - "name": "size", - "type": "TypeInt", - "description": "Size of the stored image file rounded up to the next gigabyte. Required for virtual server image for VPC.", - "optional": true - } - }, - "max_items": 1 - }, - "images": { - "name": "images", - "type": "TypeList", - "description": "Image operating system. Required for virtual server image for VPC.", - "optional": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "Programmatic ID of virtual server image. Required for virtual server image for VPC.", - "optional": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Programmatic name of virtual server image. Required for virtual server image for VPC.", - "optional": true - }, - "region": { - "name": "region", - "type": "TypeString", - "description": "Region the virtual server image is available in. Required for virtual server image for VPC.", - "optional": true - } - } - }, - "minimum_provisioned_size": { - "name": "minimum_provisioned_size", - "type": "TypeInt", - "description": "Minimum size (in gigabytes) of a volume onto which this image may be provisioned. Required for virtual server image for VPC.", - "optional": true - }, - "operating_system": { - "name": "operating_system", - "type": "TypeList", - "description": "Operating system included in this image. Required for virtual server image for VPC.", - "optional": true, - "elem": { - "architecture": { - "name": "architecture", - "type": "TypeString", - "description": "Operating system architecture. Required for virtual server image for VPC.", - "optional": true - }, - "dedicated_host_only": { - "name": "dedicated_host_only", - "type": "TypeBool", - "description": "Images with this operating system can only be used on dedicated hosts or dedicated host groups. Required for virtual server image for VPC.", - "optional": true - }, - "display_name": { - "name": "display_name", - "type": "TypeString", - "description": "Unique, display-friendly name for the operating system. Required for virtual server image for VPC.", - "optional": true - }, - "family": { - "name": "family", - "type": "TypeString", - "description": "Software family for this operating system. Required for virtual server image for VPC.", - "optional": true - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "URL for this operating system. Required for virtual server image for VPC.", - "optional": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Globally unique name for this operating system Required for virtual server image for VPC.", - "optional": true - }, - "vendor": { - "name": "vendor", - "type": "TypeString", - "description": "Vendor of the operating system. Required for virtual server image for VPC.", - "optional": true - }, - "version": { - "name": "version", - "type": "TypeString", - "description": "Major release version of this operating system. Required for virtual server image for VPC.", - "optional": true - } - }, - "max_items": 1 - } - }, - "max_items": 1 - }, - { - "name": "kind_id", + "name": "image_manifest_url", "type": "TypeString", - "description": "Kind ID.", + "description": "If set, denotes a url to a YAML file with list of container images used by this version.", "computed": true }, { - "name": "validation", - "type": "TypeList", - "description": "Validation response.", - "computed": true, - "elem": { - "last_operation": { - "name": "last_operation", - "type": "TypeString", - "description": "Last operation (e.g. submit_deployment, generate_installer, install_offering.", - "optional": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "Any message needing to be conveyed as part of the validation job.", - "optional": true - }, - "requested": { - "name": "requested", - "type": "TypeString", - "description": "Date and time of last validation was requested.", - "optional": true - }, - "state": { - "name": "state", - "type": "TypeString", - "description": "Current validation state - \u003cempty\u003e, in_progress, valid, invalid, expired.", - "optional": true - }, - "target": { - "name": "target", - "type": "TypeMap", - "description": "Validation target information (e.g. cluster_id, region, namespace, etc). Values will vary by Content type.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - "validated": { - "name": "validated", - "type": "TypeString", - "description": "Date and time of last successful validation.", - "optional": true - } - } + "name": "is_vsi", + "type": "TypeBool", + "description": "Indicates that the current terraform template is used to install a virtual server image.", + "immutable": true, + "optional": true }, { "name": "pre_install", @@ -102095,47 +102021,6 @@ } } }, - { - "name": "image_pull_key_name", - "type": "TypeString", - "description": "ID of the image pull key to use from Offering.ImagePullKeys.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of version. Required for virtual server image for VPC.", - "immutable": true, - "optional": true - }, - { - "name": "product_kind", - "type": "TypeString", - "description": "Optional product kind for the software being onboarded. Valid values are software, module, or solution. Default value is software.", - "immutable": true, - "optional": true - }, - { - "name": "target_version", - "type": "TypeString", - "description": "The semver value for this new version, if not found in the zip url package content.", - "immutable": true, - "optional": true - }, - { - "name": "include_config", - "type": "TypeBool", - "description": "Add all possible configuration values to this version when importing.", - "immutable": true, - "optional": true - }, - { - "name": "catalog_id", - "type": "TypeString", - "description": "Catalog identifier.", - "immutable": true, - "required": true - }, { "name": "tags", "type": "TypeList", @@ -102147,105 +102032,19 @@ } }, { - "name": "sha", - "type": "TypeString", - "description": "SHA256 fingerprint of the image file. Required for virtual server image for VPC.", - "computed": true - }, - { - "name": "offering_id", - "type": "TypeString", - "description": "Offering identification.", - "immutable": true, - "required": true - }, - { - "name": "format_kind", + "name": "install_kind", "type": "TypeString", - "description": "Format of content being onboarded. Example: vsi-image. Required for virtual server image for VPC.", + "description": "Install type. Example: instance. Required for virtual server image for VPC.", "immutable": true, "optional": true }, { - "name": "repotype", + "name": "working_directory", "type": "TypeString", - "description": "The type of repository containing this version. Valid values are 'public_git' or 'enterprise_git'.", + "description": "Optional - The sub-folder within the specified tgz file that contains the software being onboarded.", "immutable": true, "optional": true }, - { - "name": "repo_url", - "type": "TypeString", - "description": "Content's repo URL.", - "computed": true - }, - { - "name": "install", - "type": "TypeList", - "description": "Script information.", - "optional": true, - "computed": true, - "elem": { - "delete_script": { - "name": "delete_script", - "type": "TypeString", - "description": "Optional script that if run will remove the installed version.", - "optional": true, - "computed": true - }, - "instructions": { - "name": "instructions", - "type": "TypeString", - "description": "Instruction on step and by whom (role) that are needed to take place to prepare the target for installing this version.", - "optional": true, - "computed": true - }, - "instructions_i18n": { - "name": "instructions_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "scope": { - "name": "scope", - "type": "TypeString", - "description": "Optional value indicating if this script is scoped to a namespace or the entire cluster.", - "optional": true, - "computed": true - }, - "script": { - "name": "script", - "type": "TypeString", - "description": "Optional script that needs to be run post any pre-condition script.", - "optional": true, - "computed": true - }, - "script_permission": { - "name": "script_permission", - "type": "TypeString", - "description": "Optional iam permissions that are required on the target cluster to run this script.", - "optional": true, - "computed": true - } - }, - "max_items": 1 - }, - { - "name": "image_manifest_url", - "type": "TypeString", - "description": "If set, denotes a url to a YAML file with list of container images used by this version.", - "computed": true - }, - { - "name": "offering_identifier", - "type": "TypeString", - "description": "Offering ID, in the format of \u003caccount_id\u003e:o:\u003coffering_id\u003e.", - "computed": true - }, { "name": "iam_permissions", "type": "TypeList", @@ -102281,202 +102080,433 @@ } } }, - "role_crns": { - "name": "role_crns", - "type": "TypeList", - "description": "Role CRNs for this permission.", + "role_crns": { + "name": "role_crns", + "type": "TypeList", + "description": "Role CRNs for this permission.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + "service_name": { + "name": "service_name", + "type": "TypeString", + "description": "Service name.", + "optional": true + } + } + }, + { + "name": "import_sha", + "type": "TypeString", + "description": "SHA256 fingerprint of the image file. Required for virtual server image for VPC.", + "optional": true + }, + { + "name": "version_id", + "type": "TypeString", + "description": "Unique ID.", + "computed": true + }, + { + "name": "rev", + "type": "TypeString", + "description": "Cloudant revision.", + "computed": true + }, + { + "name": "created", + "type": "TypeString", + "description": "The date and time this version was created.", + "computed": true + }, + { + "name": "kind_id", + "type": "TypeString", + "description": "Kind ID.", + "computed": true + }, + { + "name": "validation", + "type": "TypeList", + "description": "Validation response.", + "computed": true, + "elem": { + "last_operation": { + "name": "last_operation", + "type": "TypeString", + "description": "Last operation (e.g. submit_deployment, generate_installer, install_offering.", + "optional": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "Any message needing to be conveyed as part of the validation job.", + "optional": true + }, + "requested": { + "name": "requested", + "type": "TypeString", + "description": "Date and time of last validation was requested.", + "optional": true + }, + "state": { + "name": "state", + "type": "TypeString", + "description": "Current validation state - \u003cempty\u003e, in_progress, valid, invalid, expired.", + "optional": true + }, + "target": { + "name": "target", + "type": "TypeMap", + "description": "Validation target information (e.g. cluster_id, region, namespace, etc). Values will vary by Content type.", "optional": true, "elem": { "type": "TypeString" } }, - "service_name": { - "name": "service_name", + "validated": { + "name": "validated", "type": "TypeString", - "description": "Service name.", + "description": "Date and time of last successful validation.", "optional": true } } }, { - "name": "label", - "type": "TypeString", - "description": "Display name of version. Required for virtual server image for VPC.", - "optional": true - }, - { - "name": "entitlement", + "name": "state", "type": "TypeList", - "description": "Entitlement license info.", + "description": "Offering state.", "computed": true, "elem": { - "image_repo_name": { - "name": "image_repo_name", + "current": { + "name": "current", "type": "TypeString", - "description": "Image repository name.", - "optional": true + "description": "one of: new, validated, account-published, ibm-published, public-published.", + "computed": true }, - "part_numbers": { - "name": "part_numbers", - "type": "TypeList", - "description": "list of license entitlement part numbers, eg. D1YGZLL,D1ZXILL.", - "optional": true, - "elem": { - "type": "TypeString" - } + "current_entered": { + "name": "current_entered", + "type": "TypeString", + "description": "Date and time of current request.", + "computed": true }, - "product_id": { - "name": "product_id", + "pending": { + "name": "pending", "type": "TypeString", - "description": "Product ID.", - "optional": true + "description": "one of: new, validated, account-published, ibm-published, public-published.", + "computed": true }, - "provider_id": { - "name": "provider_id", + "pending_requested": { + "name": "pending_requested", "type": "TypeString", - "description": "Provider ID.", - "optional": true + "description": "Date and time of pending request.", + "computed": true }, - "provider_name": { - "name": "provider_name", + "previous": { + "name": "previous", "type": "TypeString", - "description": "Provider name.", - "optional": true + "description": "one of: new, validated, account-published, ibm-published, public-published.", + "computed": true } } }, { - "name": "licenses", + "name": "catalog_id", + "type": "TypeString", + "description": "Catalog identifier.", + "immutable": true, + "required": true + }, + { + "name": "offering_id", + "type": "TypeString", + "description": "Offering identification.", + "immutable": true, + "required": true + }, + { + "name": "x_auth_token", + "type": "TypeString", + "description": "Authentication token used to access the specified zip file.", + "immutable": true, + "optional": true + }, + { + "name": "repo_url", + "type": "TypeString", + "description": "Content's repo URL.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of version. Required for virtual server image for VPC.", + "immutable": true, + "optional": true + }, + { + "name": "configuration", "type": "TypeList", - "description": "List of licenses the product was built with.", + "description": "List of user solicited overrides.", "optional": true, "computed": true, "elem": { + "custom_config": { + "name": "custom_config", + "type": "TypeList", + "description": "Render type.", + "optional": true, + "computed": true, + "elem": { + "associations": { + "name": "associations", + "type": "TypeList", + "description": "List of parameters that are associated with this configuration.", + "optional": true, + "computed": true, + "elem": { + "parameters": { + "name": "parameters", + "type": "TypeList", + "description": "Parameters for this association.", + "optional": true, + "computed": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of this parameter.", + "optional": true, + "computed": true + }, + "options_refresh": { + "name": "options_refresh", + "type": "TypeBool", + "description": "Refresh options.", + "optional": true, + "computed": true + } + } + } + }, + "max_items": 1 + }, + "config_constraints": { + "name": "config_constraints", + "type": "TypeMap", + "description": "Map of constraint parameters that will be passed to the custom widget.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "grouping": { + "name": "grouping", + "type": "TypeString", + "description": "Determines where this configuration type is rendered (3 sections today - Target, Resource, and Deployment).", + "optional": true, + "computed": true + }, + "grouping_index": { + "name": "grouping_index", + "type": "TypeInt", + "description": "Determines the order that this configuration item shows in that particular grouping.", + "optional": true, + "computed": true + }, + "original_grouping": { + "name": "original_grouping", + "type": "TypeString", + "description": "Original grouping type for this configuration (3 types - Target, Resource, and Deployment).", + "optional": true, + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "ID of the widget type.", + "optional": true, + "computed": true + } + }, + "max_items": 1 + }, + "default_value": { + "name": "default_value", + "type": "TypeString", + "description": "The default value as a JSON encoded string. To use a secret when the type is password, specify a JSON encoded value of $ref:#/components/schemas/SecretInstance, prefixed with `cmsm_v1:`.", + "optional": true, + "computed": true + }, "description": { "name": "description", "type": "TypeString", - "description": "License description.", + "description": "Key description.", "optional": true, "computed": true }, - "id": { - "name": "id", + "display_name": { + "name": "display_name", "type": "TypeString", - "description": "License ID.", + "description": "Display name for configuration type.", "optional": true, "computed": true }, - "name": { - "name": "name", + "hidden": { + "name": "hidden", + "type": "TypeBool", + "description": "Hide values.", + "optional": true, + "computed": true + }, + "key": { + "name": "key", "type": "TypeString", - "description": "license name.", + "description": "Configuration key.", + "optional": true, + "computed": true + }, + "options": { + "name": "options", + "type": "TypeList", + "description": "List of options of type.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeMap" + } + }, + "required": { + "name": "required", + "type": "TypeBool", + "description": "Is key required to install.", "optional": true, "computed": true }, "type": { "name": "type", "type": "TypeString", - "description": "type of license e.g., Apache xxx.", + "description": "Value type (string, boolean, int).", "optional": true, "computed": true }, - "url": { - "name": "url", + "type_metadata": { + "name": "type_metadata", "type": "TypeString", - "description": "URL for the license text.", + "description": "The original type, as found in the source being onboarded.", + "optional": true, + "computed": true + }, + "value_constraint": { + "name": "value_constraint", + "type": "TypeString", + "description": "Constraint associated with value, e.g., for string type - regx:[a-z].", "optional": true, "computed": true } } }, { - "name": "state", + "name": "image_pull_key_name", + "type": "TypeString", + "description": "ID of the image pull key to use from Offering.ImagePullKeys.", + "computed": true + }, + { + "name": "deprecate_pending", "type": "TypeList", - "description": "Offering state.", + "description": "Deprecation information for a Version.", "computed": true, "elem": { - "current": { - "name": "current", - "type": "TypeString", - "description": "one of: new, validated, account-published, ibm-published, public-published.", - "computed": true - }, - "current_entered": { - "name": "current_entered", - "type": "TypeString", - "description": "Date and time of current request.", - "computed": true - }, - "pending": { - "name": "pending", + "deprecate_date": { + "name": "deprecate_date", "type": "TypeString", - "description": "one of: new, validated, account-published, ibm-published, public-published.", + "description": "Date of deprecation.", "computed": true }, - "pending_requested": { - "name": "pending_requested", + "deprecate_state": { + "name": "deprecate_state", "type": "TypeString", - "description": "Date and time of pending request.", + "description": "Deprecation state.", "computed": true }, - "previous": { - "name": "previous", + "description": { + "name": "description", "type": "TypeString", - "description": "one of: new, validated, account-published, ibm-published, public-published.", "computed": true } } }, { - "name": "version_locator", + "name": "is_consumable", + "type": "TypeBool", + "description": "Is the version able to be shared.", + "computed": true + }, + { + "name": "version", "type": "TypeString", - "description": "A dotted value of `catalogID`.`versionID`.", + "description": "Semantic version of the software being onboarded. Required for virtual server image for VPC.", "computed": true }, { - "name": "long_description_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", + "name": "outputs", + "type": "TypeList", + "description": "List of output values for this version.", "computed": true, "elem": { - "type": "TypeString" + "description": { + "name": "description", + "type": "TypeString", + "description": "Output description.", + "optional": true + }, + "key": { + "name": "key", + "type": "TypeString", + "description": "Output key.", + "optional": true + } } }, { - "name": "flavor", + "name": "required_resources", "type": "TypeList", - "description": "Version Flavor Information. Only supported for Product kind Solution.", - "optional": true, + "description": "Resource requirments for installation.", + "computed": true, "elem": { - "index": { - "name": "index", - "type": "TypeInt", - "description": "Order that this flavor should appear when listed for a single version.", - "optional": true - }, - "label": { - "name": "label", + "type": { + "name": "type", "type": "TypeString", - "description": "Label for this flavor.", + "description": "Type of requirement.", "optional": true }, - "label_i18n": { - "name": "label_i18n", - "type": "TypeMap", - "description": "A map of translated strings, by language code.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - "name": { - "name": "name", + "value": { + "name": "value", "type": "TypeString", - "description": "Programmatic name for this flavor.", + "description": "mem, disk, cores, and nodes can be parsed as an int. targetVersion will be a semver range value.", "optional": true } - }, - "max_items": 1 + } + }, + { + "name": "label", + "type": "TypeString", + "description": "Display name of version. Required for virtual server image for VPC.", + "optional": true + }, + { + "name": "target_kinds", + "type": "TypeList", + "description": "Deployment target of the content being onboarded. Current valid values are iks, roks, vcenter, power-iaas, terraform, and vpc-x86. Required for virtual server image for VPC.", + "immutable": true, + "optional": true, + "elem": { + "type": "TypeString" + } }, { "name": "crn", @@ -102486,58 +102516,159 @@ "computed": true }, { - "name": "updated", - "type": "TypeString", - "description": "The date and time this version was last updated.", - "computed": true + "name": "long_description_i18n", + "type": "TypeMap", + "description": "A map of translated strings, by language code.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "source_url", "type": "TypeString", "description": "Content's source URL (e.g git repo).", "computed": true + } + ], + "ibm_code_engine_app": [ + { + "name": "endpoint", + "type": "TypeString", + "description": "Optional URL to invoke app. Depending on visibility this is accessible publicly or in the private network only. Empty in case 'managed_domain_mappings' is set to 'local'.", + "computed": true }, { - "name": "outputs", + "name": "status_details", "type": "TypeList", - "description": "List of output values for this version.", + "description": "The detailed status of the application.", "computed": true, "elem": { - "description": { - "name": "description", + "latest_created_revision": { + "name": "latest_created_revision", "type": "TypeString", - "description": "Output description.", - "optional": true + "description": "Latest app revision that has been created.", + "computed": true }, - "key": { - "name": "key", + "latest_ready_revision": { + "name": "latest_ready_revision", "type": "TypeString", - "description": "Output key.", - "optional": true + "description": "Latest app revision that reached a ready state.", + "computed": true + }, + "reason": { + "name": "reason", + "type": "TypeString", + "description": "Optional information to provide more context in case of a 'failed' or 'warning' status.", + "computed": true } } }, { - "name": "deprecated", - "type": "TypeBool", - "description": "read only field, indicating if this version is deprecated.", + "name": "etag", + "type": "TypeString", "computed": true }, { - "name": "working_directory", + "name": "managed_domain_mappings", "type": "TypeString", - "description": "Optional - The sub-folder within the specified tgz file that contains the software being onboarded.", + "description": "Optional value controlling which of the system managed domain mappings will be setup for the application. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports application private visibility.", + "default_value": "local_public", + "options": "local, local_private, local_public", + "optional": true + }, + { + "name": "scale_request_timeout", + "type": "TypeInt", + "description": "Optional amount of time in seconds that is allowed for a running app to respond to a request.", + "default_value": 300, + "optional": true + }, + { + "name": "endpoint_internal", + "type": "TypeString", + "description": "URL to app that is only visible within the project.", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The type of the app.", + "computed": true + }, + { + "name": "run_arguments", + "type": "TypeList", + "description": "Optional arguments for the app that are passed to start the container. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "scale_concurrency", + "type": "TypeInt", + "description": "Optional maximum number of requests that can be processed concurrently per instance.", + "default_value": 100, + "optional": true + }, + { + "name": "image_port", + "type": "TypeInt", + "description": "Optional port the app listens on. While the app will always be exposed via port `443` for end users, this port is used to connect to the port that is exposed by the container image.", + "default_value": 8080, + "optional": true + }, + { + "name": "app_id", + "type": "TypeString", + "description": "The identifier of the resource.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "When you provision a new app, a URL is created identifying the location of the instance.", + "computed": true + }, + { + "name": "project_id", + "type": "TypeString", + "description": "The ID of the project.", "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$" + }, + { + "name": "scale_max_instances", + "type": "TypeInt", + "description": "Optional maximum number of instances for this app. If you set this value to `0`, this property does not set a upper scaling limit. However, the app scaling is still limited by the project quota for instances. See [Limits and quotas for Code Engine](https://cloud.ibm.com/docs/codeengine?topic=codeengine-limits).", + "default_value": 10, "optional": true }, { - "name": "package_version", + "name": "run_service_account", "type": "TypeString", - "description": "Version of the package used to create this version.", + "description": "Optional name of the service account. For built-in service accounts, you can use the shortened names `manager` , `none`, `reader`, and `writer`.", + "default_value": "default", + "options": "default, manager, none, reader, writer", + "matches": "^(manager|reader|writer|none|default)$", + "optional": true + }, + { + "name": "scale_concurrency_target", + "type": "TypeInt", + "description": "Optional threshold of concurrent requests per instance at which one or more additional instances are created. Use this value to scale up instances based on concurrent number of requests. This option defaults to the value of the `scale_concurrency` option, if not specified.", + "optional": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The current status of the app.", "computed": true - } - ], - "ibm_code_engine_app": [ + }, { "name": "name", "type": "TypeString", @@ -102549,35 +102680,58 @@ "matches": "^[a-z]([-a-z0-9]*[a-z0-9])?$" }, { - "name": "scale_ephemeral_storage_limit", + "name": "run_as_user", + "type": "TypeInt", + "description": "Optional user ID (UID) to run the app (e.g., `1001`).", + "optional": true + }, + { + "name": "image_reference", "type": "TypeString", - "description": "Optional amount of ephemeral storage to set for the instance of the app. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", - "default_value": "400M", + "description": "The name of the image that is used for this app. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.", + "required": true, + "min_length": 1, + "max_length": 256, + "matches": "^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\\/])?[a-z0-9][a-z0-9\\-_.\\/]+[a-z0-9](:[\\w][\\w.\\-]{0,127})?(@sha256:[a-fA-F0-9]{64})?$" + }, + { + "name": "entity_tag", + "type": "TypeString", + "description": "The version of the app instance, which is used to achieve optimistic locking.", + "computed": true + }, + { + "name": "scale_memory_limit", + "type": "TypeString", + "description": "Optional amount of memory set for the instance of the app. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo). The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", + "default_value": "4G", "max_length": 10, "matches": "^([0-9.]+)([eEinumkKMGTPB]*)$", "optional": true }, { - "name": "endpoint_internal", + "name": "created_at", "type": "TypeString", - "description": "URL to app that is only visible within the project.", + "description": "The timestamp when the resource was created.", "computed": true }, { - "name": "app_id", - "type": "TypeString", - "description": "The identifier of the resource.", - "computed": true + "name": "run_commands", + "type": "TypeList", + "description": "Optional commands for the app that are passed to start the container. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.", + "optional": true, + "elem": { + "type": "TypeString" + } }, { - "name": "project_id", + "name": "scale_cpu_limit", "type": "TypeString", - "description": "The ID of the project.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$" + "description": "Optional number of CPU set for the instance of the app. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo).", + "default_value": "1", + "max_length": 10, + "matches": "^([0-9.]+)([eEinumkKMGTPB]*)$", + "optional": true }, { "name": "run_volume_mounts", @@ -102611,6 +102765,22 @@ } } }, + { + "name": "scale_ephemeral_storage_limit", + "type": "TypeString", + "description": "Optional amount of ephemeral storage to set for the instance of the app. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", + "default_value": "400M", + "max_length": 10, + "matches": "^([0-9.]+)([eEinumkKMGTPB]*)$", + "optional": true + }, + { + "name": "scale_initial_instances", + "type": "TypeInt", + "description": "Optional initial number of instances that are created upon app creation or app update.", + "default_value": 1, + "optional": true + }, { "name": "scale_min_instances", "type": "TypeInt", @@ -102619,10 +102789,13 @@ "optional": true }, { - "name": "endpoint", + "name": "image_secret", "type": "TypeString", - "description": "Optional URL to invoke app. Depending on visibility this is accessible publicly or in the private network only. Empty in case 'managed_domain_mappings' is set to 'local'.", - "computed": true + "description": "Optional name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the app will be created but cannot reach the ready status, until this property is provided, too.", + "min_length": 1, + "max_length": 253, + "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$", + "optional": true }, { "name": "run_env_variables", @@ -102668,188 +102841,37 @@ "optional": true } } - }, - { - "name": "scale_max_instances", - "type": "TypeInt", - "description": "Optional maximum number of instances for this app. If you set this value to `0`, this property does not set a upper scaling limit. However, the app scaling is still limited by the project quota for instances. See [Limits and quotas for Code Engine](https://cloud.ibm.com/docs/codeengine?topic=codeengine-limits).", - "default_value": 10, - "optional": true - }, - { - "name": "etag", - "type": "TypeString", - "computed": true - }, + } + ], + "ibm_code_engine_binding": [ { - "name": "image_reference", + "name": "secret_name", "type": "TypeString", - "description": "The name of the image that is used for this app. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.", + "description": "The service access secret that is binding to a component.", + "immutable": true, "required": true, "min_length": 1, - "max_length": 256, - "matches": "^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\\/])?[a-z0-9][a-z0-9\\-_.\\/]+[a-z0-9](:[\\w][\\w.\\-]{0,127})?(@sha256:[a-fA-F0-9]{64})?$" - }, - { - "name": "run_arguments", - "type": "TypeList", - "description": "Optional arguments for the app that are passed to start the container. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "scale_concurrency", - "type": "TypeInt", - "description": "Optional maximum number of requests that can be processed concurrently per instance.", - "default_value": 100, - "optional": true - }, - { - "name": "scale_initial_instances", - "type": "TypeInt", - "description": "Optional initial number of instances that are created upon app creation or app update.", - "default_value": 1, - "optional": true + "max_length": 253, + "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$" }, { - "name": "created_at", + "name": "href", "type": "TypeString", - "description": "The timestamp when the resource was created.", + "description": "When you provision a new binding, a URL is created identifying the location of the instance.", "computed": true }, - { - "name": "image_port", - "type": "TypeInt", - "description": "Optional port the app listens on. While the app will always be exposed via port `443` for end users, this port is used to connect to the port that is exposed by the container image.", - "default_value": 8080, - "optional": true - }, - { - "name": "managed_domain_mappings", - "type": "TypeString", - "description": "Optional value controlling which of the system managed domain mappings will be setup for the application. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports application private visibility.", - "default_value": "local_public", - "options": "local, local_private, local_public", - "optional": true - }, - { - "name": "run_commands", - "type": "TypeList", - "description": "Optional commands for the app that are passed to start the container. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "scale_memory_limit", - "type": "TypeString", - "description": "Optional amount of memory set for the instance of the app. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo). The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", - "default_value": "4G", - "max_length": 10, - "matches": "^([0-9.]+)([eEinumkKMGTPB]*)$", - "optional": true - }, { "name": "resource_type", "type": "TypeString", - "description": "The type of the app.", + "description": "The type of the binding.", "computed": true }, { "name": "status", "type": "TypeString", - "description": "The current status of the app.", - "computed": true - }, - { - "name": "scale_cpu_limit", - "type": "TypeString", - "description": "Optional number of CPU set for the instance of the app. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo).", - "default_value": "1", - "max_length": 10, - "matches": "^([0-9.]+)([eEinumkKMGTPB]*)$", - "optional": true - }, - { - "name": "href", - "type": "TypeString", - "description": "When you provision a new app, a URL is created identifying the location of the instance.", - "computed": true - }, - { - "name": "scale_concurrency_target", - "type": "TypeInt", - "description": "Optional threshold of concurrent requests per instance at which one or more additional instances are created. Use this value to scale up instances based on concurrent number of requests. This option defaults to the value of the `scale_concurrency` option, if not specified.", - "optional": true - }, - { - "name": "image_secret", - "type": "TypeString", - "description": "Optional name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the app will be created but cannot reach the ready status, until this property is provided, too.", - "min_length": 1, - "max_length": 253, - "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$", - "optional": true - }, - { - "name": "run_as_user", - "type": "TypeInt", - "description": "Optional user ID (UID) to run the app (e.g., `1001`).", - "optional": true - }, - { - "name": "run_service_account", - "type": "TypeString", - "description": "Optional name of the service account. For built-in service accounts, you can use the shortened names `manager` , `none`, `reader`, and `writer`.", - "default_value": "default", - "options": "default, manager, none, reader, writer", - "matches": "^(manager|reader|writer|none|default)$", - "optional": true - }, - { - "name": "scale_request_timeout", - "type": "TypeInt", - "description": "Optional amount of time in seconds that is allowed for a running app to respond to a request.", - "default_value": 300, - "optional": true - }, - { - "name": "entity_tag", - "type": "TypeString", - "description": "The version of the app instance, which is used to achieve optimistic locking.", + "description": "The current status of the binding.", "computed": true }, - { - "name": "status_details", - "type": "TypeList", - "description": "The detailed status of the application.", - "computed": true, - "elem": { - "latest_created_revision": { - "name": "latest_created_revision", - "type": "TypeString", - "description": "Latest app revision that has been created.", - "computed": true - }, - "latest_ready_revision": { - "name": "latest_ready_revision", - "type": "TypeString", - "description": "Latest app revision that reached a ready state.", - "computed": true - }, - "reason": { - "name": "reason", - "type": "TypeString", - "description": "Optional information to provide more context in case of a 'failed' or 'warning' status.", - "computed": true - } - } - } - ], - "ibm_code_engine_binding": [ { "name": "binding_id", "type": "TypeString", @@ -102897,37 +102919,72 @@ "required": true, "max_length": 31, "matches": "^[A-Z]([_A-Z0-9]*[A-Z0-9])*$" + } + ], + "ibm_code_engine_build": [ + { + "name": "status", + "type": "TypeString", + "description": "The current status of the build.", + "computed": true }, { - "name": "secret_name", + "name": "source_context_dir", "type": "TypeString", - "description": "The service access secret that is binding to a component.", - "immutable": true, + "description": "Option directory in the repository that contains the buildpacks file or the Dockerfile.", + "max_length": 253, + "matches": "^(.*)+$", + "optional": true + }, + { + "name": "strategy_size", + "type": "TypeString", + "description": "Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`, `large`, `xlarge`.", + "default_value": "medium", + "min_length": 1, + "max_length": 253, + "matches": "[\\S]*", + "optional": true + }, + { + "name": "strategy_type", + "type": "TypeString", + "description": "The strategy to use for building the image.", "required": true, "min_length": 1, "max_length": 253, - "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$" + "matches": "[\\S]*" }, { "name": "href", "type": "TypeString", - "description": "When you provision a new binding, a URL is created identifying the location of the instance.", + "description": "When you provision a new build, a URL is created identifying the location of the instance.", "computed": true }, { - "name": "resource_type", + "name": "etag", "type": "TypeString", - "description": "The type of the binding.", "computed": true }, { - "name": "status", + "name": "name", "type": "TypeString", - "description": "The current status of the binding.", - "computed": true - } - ], - "ibm_code_engine_build": [ + "description": "The name of the build. Use a name that is unique within the project.", + "immutable": true, + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?$" + }, + { + "name": "output_image", + "type": "TypeString", + "description": "The name of the image.", + "required": true, + "min_length": 1, + "max_length": 256, + "matches": "^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\\/])?[a-z0-9][a-z0-9\\-_.\\/]+[a-z0-9](:[\\w][\\w.\\-]{0,127})?(@sha256:[a-fA-F0-9]{64})?$" + }, { "name": "source_type", "type": "TypeString", @@ -102956,51 +103013,17 @@ "optional": true }, { - "name": "href", + "name": "build_id", "type": "TypeString", - "description": "When you provision a new build, a URL is created identifying the location of the instance.", + "description": "The identifier of the resource.", "computed": true }, { - "name": "status", + "name": "resource_type", "type": "TypeString", - "description": "The current status of the build.", + "description": "The type of the build.", "computed": true }, - { - "name": "source_context_dir", - "type": "TypeString", - "description": "Option directory in the repository that contains the buildpacks file or the Dockerfile.", - "max_length": 253, - "matches": "^(.*)+$", - "optional": true - }, - { - "name": "output_secret", - "type": "TypeString", - "description": "The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.", - "required": true, - "min_length": 1, - "max_length": 253, - "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$" - }, - { - "name": "strategy_type", - "type": "TypeString", - "description": "The strategy to use for building the image.", - "required": true, - "min_length": 1, - "max_length": 253, - "matches": "[\\S]*" - }, - { - "name": "source_revision", - "type": "TypeString", - "description": "Commit, tag, or branch in the source repository to pull. This field is optional if the `source_type` is `git` and uses the HEAD of default branch if not specified. If the `source_type` value is `local`, this field must be omitted.", - "max_length": 253, - "matches": "^[\\S]*$", - "optional": true - }, { "name": "status_details", "type": "TypeList", @@ -103016,34 +103039,12 @@ } }, { - "name": "etag", - "type": "TypeString", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the build. Use a name that is unique within the project.", - "immutable": true, - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?$" - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The type of the build.", - "computed": true - }, - { - "name": "output_image", + "name": "source_revision", "type": "TypeString", - "description": "The name of the image.", - "required": true, - "min_length": 1, - "max_length": 256, - "matches": "^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\\/])?[a-z0-9][a-z0-9\\-_.\\/]+[a-z0-9](:[\\w][\\w.\\-]{0,127})?(@sha256:[a-fA-F0-9]{64})?$" + "description": "Commit, tag, or branch in the source repository to pull. This field is optional if the `source_type` is `git` and uses the HEAD of default branch if not specified. If the `source_type` value is `local`, this field must be omitted.", + "max_length": 253, + "matches": "^[\\S]*$", + "optional": true }, { "name": "source_secret", @@ -103054,16 +103055,6 @@ "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$", "optional": true }, - { - "name": "strategy_size", - "type": "TypeString", - "description": "Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`, `large`, `xlarge`.", - "default_value": "medium", - "min_length": 1, - "max_length": 253, - "matches": "[\\S]*", - "optional": true - }, { "name": "timeout", "type": "TypeInt", @@ -103085,12 +103076,6 @@ "description": "The version of the build instance, which is used to achieve optimistic locking.", "computed": true }, - { - "name": "build_id", - "type": "TypeString", - "description": "The identifier of the resource.", - "computed": true - }, { "name": "project_id", "type": "TypeString", @@ -103100,62 +103085,62 @@ "min_length": 36, "max_length": 36, "matches": "^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$" + }, + { + "name": "output_secret", + "type": "TypeString", + "description": "The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.", + "required": true, + "min_length": 1, + "max_length": 253, + "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$" } ], "ibm_code_engine_config_map": [ { - "name": "entity_tag", + "name": "resource_type", "type": "TypeString", - "description": "The version of the config map instance, which is used to achieve optimistic locking.", + "description": "The type of the config map.", "computed": true }, { - "name": "href", + "name": "etag", "type": "TypeString", - "description": "When you provision a new config map, a URL is created identifying the location of the instance.", "computed": true }, { - "name": "config_map_id", + "name": "project_id", "type": "TypeString", - "description": "The identifier of the resource.", - "computed": true + "description": "The ID of the project.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$" }, { - "name": "etag", + "name": "created_at", "type": "TypeString", + "description": "The timestamp when the resource was created.", "computed": true }, { - "name": "data", - "type": "TypeMap", - "description": "The key-value pair for the config map. Values must be specified in `KEY=VALUE` format. Each `KEY` field must consist of alphanumeric characters, `-`, `_` or `.` and must not be exceed a max length of 253 characters. Each `VALUE` field can consists of any character and must not be exceed a max length of 1048576 characters.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "created_at", + "name": "entity_tag", "type": "TypeString", - "description": "The timestamp when the resource was created.", + "description": "The version of the config map instance, which is used to achieve optimistic locking.", "computed": true }, { - "name": "resource_type", + "name": "href", "type": "TypeString", - "description": "The type of the config map.", + "description": "When you provision a new config map, a URL is created identifying the location of the instance.", "computed": true }, { - "name": "project_id", + "name": "config_map_id", "type": "TypeString", - "description": "The ID of the project.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$" + "description": "The identifier of the resource.", + "computed": true }, { "name": "name", @@ -103166,42 +103151,29 @@ "min_length": 1, "max_length": 253, "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$" + }, + { + "name": "data", + "type": "TypeMap", + "description": "The key-value pair for the config map. Values must be specified in `KEY=VALUE` format. Each `KEY` field must consist of alphanumeric characters, `-`, `_` or `.` and must not be exceed a max length of 253 characters. Each `VALUE` field can consists of any character and must not be exceed a max length of 1048576 characters.", + "optional": true, + "elem": { + "type": "TypeString" + } } ], "ibm_code_engine_job": [ { - "name": "job_id", + "name": "href", "type": "TypeString", - "description": "The identifier of the resource.", + "description": "When you provision a new job, a URL is created identifying the location of the instance.", "computed": true }, { - "name": "project_id", - "type": "TypeString", - "description": "The ID of the project.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$" - }, - { - "name": "image_reference", - "type": "TypeString", - "description": "The name of the image that is used for this job. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.", - "required": true, - "min_length": 1, - "max_length": 256, - "matches": "^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\\/])?[a-z0-9][a-z0-9\\-_.\\/]+[a-z0-9](:[\\w][\\w.\\-]{0,127})?(@sha256:[a-fA-F0-9]{64})?$" - }, - { - "name": "image_secret", + "name": "resource_type", "type": "TypeString", - "description": "The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.", - "min_length": 1, - "max_length": 253, - "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$", - "optional": true + "description": "The type of the job.", + "computed": true }, { "name": "run_as_user", @@ -103256,41 +103228,62 @@ } }, { - "name": "run_service_account", - "type": "TypeString", - "description": "The name of the service account. For built-in service accounts, you can use the shortened names `manager`, `none`, `reader`, and `writer`. This property must not be set on a job run, which references a job template.", - "default_value": "default", - "options": "default, manager, none, reader, writer", - "matches": "^(manager|reader|writer|none|default)$", - "optional": true - }, - { - "name": "run_commands", + "name": "run_volume_mounts", "type": "TypeList", - "description": "Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.", + "description": "Optional mounts of config maps or a secrets.", "optional": true, "elem": { - "type": "TypeString" + "mount_path": { + "name": "mount_path", + "type": "TypeString", + "description": "The path that should be mounted.", + "required": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Optional name of the mount. If not set, it will be generated based on the `ref` and a random ID. In case the `ref` is longer than 58 characters, it will be cut off.", + "optional": true + }, + "reference": { + "name": "reference", + "type": "TypeString", + "description": "The name of the referenced secret or config map.", + "required": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Specify the type of the volume mount. Allowed types are: 'config_map', 'secret'.", + "required": true + } } }, { - "name": "scale_ephemeral_storage_limit", + "name": "scale_memory_limit", "type": "TypeString", - "description": "Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", - "default_value": "400M", + "description": "Optional amount of memory set for the instance of the job. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo). The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", + "default_value": "4G", "max_length": 10, "matches": "^([0-9.]+)([eEinumkKMGTPB]*)$", "optional": true }, { - "name": "scale_memory_limit", + "name": "scale_ephemeral_storage_limit", "type": "TypeString", - "description": "Optional amount of memory set for the instance of the job. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo). The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", - "default_value": "4G", + "description": "Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements).", + "default_value": "400M", "max_length": 10, "matches": "^([0-9.]+)([eEinumkKMGTPB]*)$", "optional": true }, + { + "name": "scale_max_execution_time", + "type": "TypeInt", + "description": "The maximum execution time in seconds for runs of the job. This property can only be specified if `run_mode` is `task`.", + "default_value": 7200, + "optional": true + }, { "name": "scale_retry_limit", "type": "TypeInt", @@ -103299,14 +103292,9 @@ "optional": true }, { - "name": "href", - "type": "TypeString", - "description": "When you provision a new job, a URL is created identifying the location of the instance.", - "computed": true - }, - { - "name": "etag", + "name": "created_at", "type": "TypeString", + "description": "The timestamp when the resource was created.", "computed": true }, { @@ -103319,6 +103307,24 @@ "max_length": 63, "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?$" }, + { + "name": "image_secret", + "type": "TypeString", + "description": "The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.", + "min_length": 1, + "max_length": 253, + "matches": "^[a-z0-9]([\\-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([\\-a-z0-9]*[a-z0-9])?)*$", + "optional": true + }, + { + "name": "run_arguments", + "type": "TypeList", + "description": "Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, { "name": "scale_cpu_limit", "type": "TypeString", @@ -103329,21 +103335,48 @@ "optional": true }, { - "name": "created_at", + "name": "etag", "type": "TypeString", - "description": "The timestamp when the resource was created.", "computed": true }, { - "name": "resource_type", + "name": "project_id", "type": "TypeString", - "description": "The type of the job.", + "description": "The ID of the project.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$" + }, + { + "name": "image_reference", + "type": "TypeString", + "description": "The name of the image that is used for this job. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.", + "required": true, + "min_length": 1, + "max_length": 256, + "matches": "^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\\/])?[a-z0-9][a-z0-9\\-_.\\/]+[a-z0-9](:[\\w][\\w.\\-]{0,127})?(@sha256:[a-fA-F0-9]{64})?$" + }, + { + "name": "run_service_account", + "type": "TypeString", + "description": "The name of the service account. For built-in service accounts, you can use the shortened names `manager`, `none`, `reader`, and `writer`. This property must not be set on a job run, which references a job template.", + "default_value": "default", + "options": "default, manager, none, reader, writer", + "matches": "^(manager|reader|writer|none|default)$", + "optional": true + }, + { + "name": "job_id", + "type": "TypeString", + "description": "The identifier of the resource.", "computed": true }, { - "name": "run_arguments", + "name": "run_commands", "type": "TypeList", - "description": "Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.", + "description": "Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.", "optional": true, "elem": { "type": "TypeString" @@ -103358,38 +103391,6 @@ "matches": "^(task|daemon)$", "optional": true }, - { - "name": "run_volume_mounts", - "type": "TypeList", - "description": "Optional mounts of config maps or a secrets.", - "optional": true, - "elem": { - "mount_path": { - "name": "mount_path", - "type": "TypeString", - "description": "The path that should be mounted.", - "required": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Optional name of the mount. If not set, it will be generated based on the `ref` and a random ID. In case the `ref` is longer than 58 characters, it will be cut off.", - "optional": true - }, - "reference": { - "name": "reference", - "type": "TypeString", - "description": "The name of the referenced secret or config map.", - "required": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Specify the type of the volume mount. Allowed types are: 'config_map', 'secret'.", - "required": true - } - } - }, { "name": "scale_array_spec", "type": "TypeString", @@ -103400,13 +103401,6 @@ "matches": "^(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?(?:,(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?)*$", "optional": true }, - { - "name": "scale_max_execution_time", - "type": "TypeInt", - "description": "The maximum execution time in seconds for runs of the job. This property can only be specified if `run_mode` is `task`.", - "default_value": 7200, - "optional": true - }, { "name": "entity_tag", "type": "TypeString", @@ -103416,19 +103410,10 @@ ], "ibm_code_engine_project": [ { - "name": "name", - "type": "TypeString", - "description": "The name of the project.", - "immutable": true, - "required": true, - "min_length": 1, - "max_length": 128, - "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9\\-._: ])+$" - }, - { - "name": "project_id", + "name": "crn", "type": "TypeString", - "description": "The ID of the project.", + "description": "The CRN of the project.", + "cloud_data_type": "crn", "computed": true }, { @@ -103438,6 +103423,12 @@ "cloud_data_type": "region", "computed": true }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The type of the project.", + "computed": true + }, { "name": "resource_group_id", "type": "TypeString", @@ -103449,22 +103440,21 @@ "optional": true }, { - "name": "account_id", + "name": "project_id", "type": "TypeString", - "description": "An alphanumeric value identifying the account ID.", + "description": "The ID of the project.", "computed": true }, { - "name": "created_at", + "name": "account_id", "type": "TypeString", - "description": "The timestamp when the project was created.", + "description": "An alphanumeric value identifying the account ID.", "computed": true }, { - "name": "crn", + "name": "created_at", "type": "TypeString", - "description": "The CRN of the project.", - "cloud_data_type": "crn", + "description": "The timestamp when the project was created.", "computed": true }, { @@ -103474,46 +103464,57 @@ "computed": true }, { - "name": "resource_type", + "name": "status", "type": "TypeString", - "description": "The type of the project.", + "description": "The current state of the project. For example, if the project is created and ready to get used, it will return active.", "computed": true }, { - "name": "status", + "name": "name", "type": "TypeString", - "description": "The current state of the project. For example, if the project is created and ready to get used, it will return active.", - "computed": true + "description": "The name of the project.", + "immutable": true, + "required": true, + "min_length": 1, + "max_length": 128, + "matches": "^([^\\x00-\\x7F]|[a-zA-Z0-9\\-._: ])+$" } ], "ibm_code_engine_secret": [ { - "name": "created_at", + "name": "project_id", "type": "TypeString", - "description": "The timestamp when the resource was created.", - "computed": true + "description": "The ID of the project.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$" }, { - "name": "id", + "name": "format", "type": "TypeString", - "description": "The identifier of the resource.", - "computed": true + "description": "Specify the format of the secret.", + "immutable": true, + "required": true, + "options": "basic_auth, generic, registry, service_access, ssh_auth, tls", + "matches": "^(generic|ssh_auth|basic_auth|tls|service_access|registry)$" }, { - "name": "etag", + "name": "entity_tag", "type": "TypeString", + "description": "The version of the secret instance, which is used to achieve optimistic locking.", "computed": true }, { - "name": "entity_tag", + "name": "secret_id", "type": "TypeString", - "description": "The version of the secret instance, which is used to achieve optimistic locking.", + "description": "The identifier of the resource.", "computed": true }, { - "name": "href", + "name": "etag", "type": "TypeString", - "description": "When you provision a new secret, a URL is created identifying the location of the instance.", "computed": true }, { @@ -103522,25 +103523,6 @@ "description": "The type of the secret.", "computed": true }, - { - "name": "project_id", - "type": "TypeString", - "description": "The ID of the project.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$" - }, - { - "name": "format", - "type": "TypeString", - "description": "Specify the format of the secret.", - "immutable": true, - "required": true, - "options": "basic_auth, generic, registry, service_access, ssh_auth, tls", - "matches": "^(generic|ssh_auth|basic_auth|tls|service_access|registry)$" - }, { "name": "name", "type": "TypeString", @@ -103637,7 +103619,19 @@ "max_items": 1 }, { - "name": "secret_id", + "name": "created_at", + "type": "TypeString", + "description": "The timestamp when the resource was created.", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "When you provision a new secret, a URL is created identifying the location of the instance.", + "computed": true + }, + { + "name": "id", "type": "TypeString", "description": "The identifier of the resource.", "computed": true @@ -103651,20 +103645,21 @@ "required": true }, { - "name": "maximum_member_count", + "name": "minimum_member_count", "type": "TypeInt", - "description": "Maximum member count", + "description": "Minimum member count", "required": true }, { - "name": "virtual_server_id", - "type": "TypeInt", - "description": "virtual server ID", - "optional": true + "name": "termination_policy", + "type": "TypeString", + "description": "Termination policy", + "required": true }, { - "name": "health_check", - "type": "TypeMap", + "name": "port", + "type": "TypeInt", + "description": "Port number", "optional": true }, { @@ -103685,9 +103680,9 @@ "required": true }, { - "name": "minimum_member_count", + "name": "maximum_member_count", "type": "TypeInt", - "description": "Minimum member count", + "description": "Maximum member count", "required": true }, { @@ -103697,15 +103692,14 @@ "required": true }, { - "name": "termination_policy", - "type": "TypeString", - "description": "Termination policy", - "required": true + "name": "virtual_server_id", + "type": "TypeInt", + "description": "virtual server ID", + "optional": true }, { - "name": "port", - "type": "TypeInt", - "description": "Port number", + "name": "health_check", + "type": "TypeMap", "optional": true }, { @@ -104085,22 +104079,6 @@ } ], "ibm_compute_autoscale_policy": [ - { - "name": "tags", - "type": "TypeSet", - "description": "List of tags", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "name", - "type": "TypeString", - "description": "Name", - "required": true - }, { "name": "scale_type", "type": "TypeString", @@ -104184,39 +104162,83 @@ } } } + }, + { + "name": "tags", + "type": "TypeSet", + "description": "List of tags", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "name", + "type": "TypeString", + "description": "Name", + "required": true } ], "ibm_compute_bare_metal": [ { - "name": "fixed_config_preset", - "type": "TypeString", - "description": "Fixed config preset value", + "name": "private_vlan_id", + "type": "TypeInt", "immutable": true, - "optional": true + "optional": true, + "computed": true }, { - "name": "software_guard_extensions", - "type": "TypeBool", - "default_value": false, + "name": "secondary_ip_count", + "type": "TypeInt", + "description": "Secondary IP addresses count", "immutable": true, "optional": true }, { - "name": "disk_key_names", - "type": "TypeList", - "immutable": true, + "name": "global_identifier", + "type": "TypeString", + "description": "The unique global identifier of the bare metal server", + "computed": true + }, + { + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", "optional": true, "elem": { "type": "TypeString" } }, { - "name": "memory", + "name": "private_network_only", + "type": "TypeBool", + "description": "only private network configured if is true", + "default_value": false, + "immutable": true, + "optional": true + }, + { + "name": "public_bandwidth", "type": "TypeInt", "immutable": true, "optional": true, "computed": true }, + { + "name": "private_ipv4_address_id", + "type": "TypeInt", + "computed": true + }, + { + "name": "block_storage_ids", + "type": "TypeSet", + "optional": true, + "computed": true, + "elem": { + "type": "TypeInt" + } + }, { "name": "storage_groups", "type": "TypeList", @@ -104253,105 +104275,84 @@ } }, { - "name": "private_ipv4_address_id", - "type": "TypeInt", - "computed": true - }, - { - "name": "ipv6_enabled", - "type": "TypeBool", - "description": "Boolean value true if IPV6 ia enabled or false", - "default_value": false, - "immutable": true, - "optional": true - }, - { - "name": "user_metadata", + "name": "public_subnet", "type": "TypeString", - "description": "User metadata info", "immutable": true, - "optional": true + "optional": true, + "computed": true }, { - "name": "notes", + "name": "package_key_name", "type": "TypeString", - "description": "Optional notes info", + "immutable": true, "optional": true }, { - "name": "datacenter", + "name": "gpu_key_name", "type": "TypeString", "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "private_network_only", - "type": "TypeBool", - "description": "only private network configured if is true", - "default_value": false, - "immutable": true, "optional": true }, { - "name": "private_vlan_id", + "name": "memory", "type": "TypeInt", "immutable": true, "optional": true, "computed": true }, { - "name": "public_ipv4_address", + "name": "private_ipv4_address", "type": "TypeString", "computed": true }, { - "name": "secondary_ip_addresses", + "name": "ssh_key_ids", "type": "TypeList", - "computed": true, + "description": "SSH KEY IDS list", + "immutable": true, + "optional": true, "elem": { - "type": "TypeString" + "type": "TypeInt" } }, { - "name": "domain", + "name": "os_reference_code", "type": "TypeString", - "description": "Domain name", + "description": "OS refernece code value", "immutable": true, - "required": true + "optional": true, + "computed": true }, { - "name": "os_reference_code", + "name": "datacenter", "type": "TypeString", - "description": "OS refernece code value", "immutable": true, "optional": true, "computed": true }, { - "name": "image_template_id", - "type": "TypeInt", - "description": "OS image template ID", - "immutable": true, - "optional": true + "name": "ipv6_address", + "type": "TypeString", + "computed": true }, { - "name": "quote_id", - "type": "TypeInt", - "description": "Quote ID for Quote based provisioning", + "name": "hostname", + "type": "TypeString", + "description": "Host name", "immutable": true, "optional": true }, { - "name": "public_vlan_id", - "type": "TypeInt", + "name": "hourly_billing", + "type": "TypeBool", + "description": "Enables hourly billing", + "default_value": true, "immutable": true, - "optional": true, - "computed": true + "optional": true }, { - "name": "private_subnet", - "type": "TypeString", + "name": "redundant_power_supply", + "type": "TypeBool", "immutable": true, "optional": true, "computed": true @@ -104366,21 +104367,14 @@ } }, { - "name": "network_speed", - "type": "TypeInt", - "description": "Network speed in MBPS", - "default_value": 100, - "immutable": true, - "optional": true - }, - { - "name": "process_key_name", + "name": "fixed_config_preset", "type": "TypeString", + "description": "Fixed config preset value", "immutable": true, "optional": true }, { - "name": "unbonded_network", + "name": "redundant_network", "type": "TypeBool", "default_value": false, "immutable": true, @@ -104394,121 +104388,93 @@ "optional": true }, { - "name": "extended_hardware_testing", - "type": "TypeBool", - "default_value": false, + "name": "quote_id", + "type": "TypeInt", + "description": "Quote ID for Quote based provisioning", "immutable": true, "optional": true }, { - "name": "private_ipv4_address", - "type": "TypeString", - "computed": true - }, - { - "name": "ssh_key_ids", + "name": "secondary_ip_addresses", "type": "TypeList", - "description": "SSH KEY IDS list", - "immutable": true, - "optional": true, + "computed": true, "elem": { - "type": "TypeInt" + "type": "TypeString" } }, { - "name": "hourly_billing", + "name": "ipv6_enabled", "type": "TypeBool", - "description": "Enables hourly billing", - "default_value": true, + "description": "Boolean value true if IPV6 ia enabled or false", + "default_value": false, "immutable": true, "optional": true }, { - "name": "gpu_key_name", - "type": "TypeString", - "immutable": true, - "optional": true + "name": "ipv6_address_id", + "type": "TypeInt", + "computed": true }, { - "name": "gpu_secondary_key_name", - "type": "TypeString", + "name": "network_speed", + "type": "TypeInt", + "description": "Network speed in MBPS", + "default_value": 100, "immutable": true, "optional": true }, { - "name": "public_subnet", + "name": "process_key_name", "type": "TypeString", "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "public_ipv4_address_id", - "type": "TypeInt", - "computed": true + "optional": true }, { - "name": "secondary_ip_count", - "type": "TypeInt", - "description": "Secondary IP addresses count", + "name": "os_key_name", + "type": "TypeString", "immutable": true, "optional": true }, { - "name": "ipv6_address", + "name": "gpu_secondary_key_name", "type": "TypeString", - "computed": true + "immutable": true, + "optional": true }, { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", + "name": "disk_key_names", + "type": "TypeList", + "immutable": true, "optional": true, "elem": { "type": "TypeString" } }, { - "name": "tcp_monitoring", + "name": "unbonded_network", "type": "TypeBool", - "description": "TCP monitoring enabled if set as true", "default_value": false, "immutable": true, "optional": true }, { - "name": "redundant_power_supply", - "type": "TypeBool", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "redundant_network", + "name": "extended_hardware_testing", "type": "TypeBool", "default_value": false, "immutable": true, "optional": true }, { - "name": "block_storage_ids", - "type": "TypeSet", - "optional": true, - "computed": true, - "elem": { - "type": "TypeInt" - } - }, - { - "name": "os_key_name", + "name": "private_subnet", "type": "TypeString", "immutable": true, - "optional": true + "optional": true, + "computed": true }, { - "name": "package_key_name", + "name": "notes", "type": "TypeString", - "immutable": true, + "description": "Optional notes info", "optional": true }, { @@ -104518,16 +104484,11 @@ "optional": true }, { - "name": "public_bandwidth", + "name": "image_template_id", "type": "TypeInt", + "description": "OS image template ID", "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "ipv6_address_id", - "type": "TypeInt", - "computed": true + "optional": true }, { "name": "ipv6_static_enabled", @@ -104538,47 +104499,59 @@ "optional": true }, { - "name": "global_identifier", + "name": "software_guard_extensions", + "type": "TypeBool", + "default_value": false, + "immutable": true, + "optional": true + }, + { + "name": "public_vlan_id", + "type": "TypeInt", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "public_ipv4_address", "type": "TypeString", - "description": "The unique global identifier of the bare metal server", "computed": true }, { - "name": "hostname", + "name": "public_ipv4_address_id", + "type": "TypeInt", + "computed": true + }, + { + "name": "domain", "type": "TypeString", - "description": "Host name", + "description": "Domain name", "immutable": true, - "optional": true - } - ], - "ibm_compute_dedicated_host": [ + "required": true + }, { - "name": "datacenter", + "name": "user_metadata", "type": "TypeString", - "description": "The data center in which the dedicatated host is to be provisioned.", + "description": "User metadata info", "immutable": true, - "required": true + "optional": true }, { - "name": "hourly_billing", + "name": "tcp_monitoring", "type": "TypeBool", - "description": "The billing type for the dedicatated host.", - "default_value": true, + "description": "TCP monitoring enabled if set as true", + "default_value": false, "immutable": true, "optional": true - }, + } + ], + "ibm_compute_dedicated_host": [ { "name": "cpu_count", "type": "TypeInt", "description": "The capacity that the dedicated host's CPU allocation is restricted to.", "computed": true }, - { - "name": "disk_capacity", - "type": "TypeInt", - "description": "The capacity that the dedicated host's disk allocation is restricted to.", - "computed": true - }, { "name": "wait_time_minutes", "type": "TypeInt", @@ -104599,10 +104572,17 @@ "required": true }, { - "name": "flavor", + "name": "datacenter", "type": "TypeString", - "description": "The flavor of the dedicatated host.", - "default_value": "56_CORES_X_242_RAM_X_1_4_TB", + "description": "The data center in which the dedicatated host is to be provisioned.", + "immutable": true, + "required": true + }, + { + "name": "hourly_billing", + "type": "TypeBool", + "description": "The billing type for the dedicatated host.", + "default_value": true, "immutable": true, "optional": true }, @@ -104613,6 +104593,20 @@ "immutable": true, "required": true }, + { + "name": "flavor", + "type": "TypeString", + "description": "The flavor of the dedicatated host.", + "default_value": "56_CORES_X_242_RAM_X_1_4_TB", + "immutable": true, + "optional": true + }, + { + "name": "disk_capacity", + "type": "TypeInt", + "description": "The capacity that the dedicated host's disk allocation is restricted to.", + "computed": true + }, { "name": "memory_capacity", "type": "TypeInt", @@ -104630,31 +104624,6 @@ } ], "ibm_compute_monitor": [ - { - "name": "guest_id", - "type": "TypeInt", - "description": "Guest ID", - "immutable": true, - "required": true - }, - { - "name": "ip_address", - "type": "TypeString", - "description": "IP Address", - "optional": true - }, - { - "name": "query_type_id", - "type": "TypeInt", - "description": "Query Type ID", - "required": true - }, - { - "name": "response_action_id", - "type": "TypeInt", - "description": "Response action ID", - "required": true - }, { "name": "wait_cycles", "type": "TypeInt", @@ -104680,6 +104649,31 @@ "elem": { "type": "TypeString" } + }, + { + "name": "guest_id", + "type": "TypeInt", + "description": "Guest ID", + "immutable": true, + "required": true + }, + { + "name": "ip_address", + "type": "TypeString", + "description": "IP Address", + "optional": true + }, + { + "name": "query_type_id", + "type": "TypeInt", + "description": "Query Type ID", + "required": true + }, + { + "name": "response_action_id", + "type": "TypeInt", + "description": "Response action ID", + "required": true } ], "ibm_compute_placement_group": [ @@ -104723,16 +104717,6 @@ } ], "ibm_compute_provisioning_hook": [ - { - "name": "tags", - "type": "TypeSet", - "description": "Tags associated with resource", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - }, { "name": "name", "type": "TypeString", @@ -104744,21 +104728,19 @@ "type": "TypeString", "description": "URI of the hook", "required": true + }, + { + "name": "tags", + "type": "TypeSet", + "description": "Tags associated with resource", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } } ], "ibm_compute_reserved_capacity": [ - { - "name": "name", - "type": "TypeString", - "description": "Name", - "required": true - }, - { - "name": "instances", - "type": "TypeInt", - "description": "no of the instances", - "required": true - }, { "name": "flavor", "type": "TypeString", @@ -104794,9 +104776,31 @@ "description": "Pod name", "immutable": true, "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name", + "required": true + }, + { + "name": "instances", + "type": "TypeInt", + "description": "no of the instances", + "required": true } ], "ibm_compute_ssh_key": [ + { + "name": "tags", + "type": "TypeSet", + "description": "List of tags for the resource", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, { "name": "label", "type": "TypeString", @@ -104821,37 +104825,23 @@ "type": "TypeString", "description": "Additional notes", "optional": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "List of tags for the resource", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } } ], "ibm_compute_ssl_certificate": [ { - "name": "key_size", - "type": "TypeInt", - "description": "SSL key size", - "computed": true - }, - { - "name": "certificate", + "name": "intermediate_certificate", "type": "TypeString", - "description": "SSL Certifcate", + "description": "Intermediate certificate value", "immutable": true, - "required": true + "optional": true }, { - "name": "validity_begin", + "name": "private_key", "type": "TypeString", - "description": "Validity begins from", - "computed": true + "description": "SSL Private Key", + "secure": true, + "immutable": true, + "required": true }, { "name": "common_name", @@ -104865,6 +104855,25 @@ "description": "Organization name", "computed": true }, + { + "name": "validity_end", + "type": "TypeString", + "description": "Validity ends before", + "computed": true + }, + { + "name": "certificate", + "type": "TypeString", + "description": "SSL Certifcate", + "immutable": true, + "required": true + }, + { + "name": "validity_begin", + "type": "TypeString", + "description": "Validity begins from", + "computed": true + }, { "name": "validity_days", "type": "TypeInt", @@ -104872,9 +104881,9 @@ "computed": true }, { - "name": "validity_end", - "type": "TypeString", - "description": "Validity ends before", + "name": "key_size", + "type": "TypeInt", + "description": "SSL key size", "computed": true }, { @@ -104889,21 +104898,6 @@ "description": "certificate modificatiob date", "computed": true }, - { - "name": "intermediate_certificate", - "type": "TypeString", - "description": "Intermediate certificate value", - "immutable": true, - "optional": true - }, - { - "name": "private_key", - "type": "TypeString", - "description": "SSL Private Key", - "secure": true, - "immutable": true, - "required": true - }, { "name": "tags", "type": "TypeSet", @@ -104917,16 +104911,10 @@ ], "ibm_compute_user": [ { - "name": "address2", - "type": "TypeString", - "description": "Address info of the user", - "optional": true - }, - { - "name": "ibm_id", + "name": "company_name", "type": "TypeString", - "description": "IBM ID of the user", - "computed": true + "description": "comapany name", + "required": true }, { "name": "address1", @@ -104935,44 +104923,11 @@ "required": true }, { - "name": "city", - "type": "TypeString", - "description": "City name", - "required": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "Tags set for the resources", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "first_name", - "type": "TypeString", - "description": "First name of the user", - "required": true - }, - { - "name": "email", - "type": "TypeString", - "description": "email address of the user", - "required": true - }, - { - "name": "country", - "type": "TypeString", - "description": "Country name", - "required": true - }, - { - "name": "timezone", + "name": "user_status", "type": "TypeString", - "description": "time zone info", - "required": true + "description": "user status info", + "default_value": "ACTIVE", + "optional": true }, { "name": "permissions", @@ -104983,13 +104938,6 @@ "type": "TypeString" } }, - { - "name": "password", - "type": "TypeString", - "description": "password for the user", - "secure": true, - "optional": true - }, { "name": "has_api_key", "type": "TypeBool", @@ -104998,30 +104946,21 @@ "optional": true }, { - "name": "api_key", - "type": "TypeString", - "description": "API key for the user", - "secure": true, - "optional": true, - "computed": true - }, - { - "name": "username", + "name": "ibm_id", "type": "TypeString", - "description": "user name", - "optional": true, + "description": "IBM ID of the user", "computed": true }, { - "name": "last_name", + "name": "first_name", "type": "TypeString", - "description": "Last name of the user", + "description": "First name of the user", "required": true }, { - "name": "company_name", + "name": "email", "type": "TypeString", - "description": "comapany name", + "description": "email address of the user", "required": true }, { @@ -105031,167 +104970,107 @@ "required": true }, { - "name": "user_status", - "type": "TypeString", - "description": "user status info", - "default_value": "ACTIVE", - "optional": true - } - ], - "ibm_compute_vm_instance": [ - { - "name": "secondary_ip_addresses", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "flavor_key_name", - "type": "TypeString", - "description": "Flavor key name used to provision vm.", - "optional": true, - "computed": true - }, - { - "name": "ip_address_id_private", - "type": "TypeInt", - "computed": true - }, - { - "name": "private_vlan_id", - "type": "TypeInt", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "disks", - "type": "TypeList", - "optional": true, - "computed": true, - "elem": { - "type": "TypeInt" - } - }, - { - "name": "domain", + "name": "country", "type": "TypeString", - "optional": true + "description": "Country name", + "required": true }, { - "name": "reserved_capacity_name", + "name": "timezone", "type": "TypeString", - "description": "The reserved group id", - "immutable": true, - "optional": true - }, - { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } + "description": "time zone info", + "required": true }, { - "name": "hostname", + "name": "username", "type": "TypeString", - "optional": true - }, - { - "name": "ssh_key_ids", - "type": "TypeSet", - "optional": true, - "elem": { - "type": "TypeInt" - } - }, - { - "name": "cores", - "type": "TypeInt", - "optional": true, - "computed": true - }, - { - "name": "memory", - "type": "TypeInt", + "description": "user name", "optional": true, "computed": true }, { - "name": "private_interface_id", - "type": "TypeInt", - "computed": true - }, - { - "name": "private_subnet", + "name": "city", "type": "TypeString", - "immutable": true, - "optional": true, - "computed": true + "description": "City name", + "required": true }, { - "name": "datacenter", + "name": "api_key", "type": "TypeString", - "immutable": true, + "description": "API key for the user", + "secure": true, "optional": true, "computed": true }, { - "name": "placement_group_id", - "type": "TypeInt", - "description": "The placement group id", - "immutable": true, - "optional": true - }, - { - "name": "public_security_group_ids", + "name": "tags", "type": "TypeSet", - "immutable": true, + "description": "Tags set for the resources", + "cloud_data_type": "tags", "optional": true, - "computed": true, "elem": { - "type": "TypeInt" - }, - "max_items": 5 + "type": "TypeString" + } }, { - "name": "ipv6_address", + "name": "last_name", "type": "TypeString", - "computed": true + "description": "Last name of the user", + "required": true }, { - "name": "secondary_ip_count", - "type": "TypeInt", + "name": "address2", + "type": "TypeString", + "description": "Address info of the user", + "optional": true + }, + { + "name": "password", + "type": "TypeString", + "description": "password for the user", + "secure": true, + "optional": true + } + ], + "ibm_compute_vm_instance": [ + { + "name": "reserved_capacity_name", + "type": "TypeString", + "description": "The reserved group id", "immutable": true, "optional": true }, { - "name": "public_bandwidth_limited", + "name": "dedicated_host_id", "type": "TypeInt", "immutable": true, - "optional": true, - "computed": true + "optional": true }, { - "name": "datacenter_choice", + "name": "disks", "type": "TypeList", - "description": "The user provided datacenter options", "optional": true, + "computed": true, "elem": { - "type": "TypeMap" + "type": "TypeInt" } }, { - "name": "ipv6_static_enabled", + "name": "ipv6_enabled", "type": "TypeBool", "default_value": false, "immutable": true, "optional": true }, + { + "name": "file_storage_ids", + "type": "TypeSet", + "optional": true, + "computed": true, + "elem": { + "type": "TypeInt" + } + }, { "name": "bulk_vms", "type": "TypeSet", @@ -105214,29 +105093,15 @@ "min_items": 2 }, { - "name": "reserved_instance_primary_disk", - "type": "TypeInt", - "description": "The primary disk of reserved instance", - "immutable": true, - "optional": true - }, - { - "name": "ipv6_address_id", - "type": "TypeInt", - "computed": true - }, - { - "name": "evault", - "type": "TypeInt", - "immutable": true, - "optional": true - }, - { - "name": "public_subnet", - "type": "TypeString", + "name": "private_security_group_ids", + "type": "TypeSet", "immutable": true, "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeInt" + }, + "max_items": 5 }, { "name": "public_subnet_id", @@ -105244,17 +105109,12 @@ "computed": true }, { - "name": "ip_address_id", + "name": "private_interface_id", "type": "TypeInt", "computed": true }, { - "name": "public_ipv6_subnet", - "type": "TypeString", - "computed": true - }, - { - "name": "file_storage_ids", + "name": "block_storage_ids", "type": "TypeSet", "optional": true, "computed": true, @@ -105263,30 +105123,41 @@ } }, { - "name": "image_id", - "type": "TypeInt", - "immutable": true, + "name": "notes", + "type": "TypeString", "optional": true }, { - "name": "private_network_only", + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true + }, + { + "name": "transient", "type": "TypeBool", - "default_value": false, "immutable": true, "optional": true }, { - "name": "public_vlan_id", + "name": "user_metadata", + "type": "TypeString", + "immutable": true, + "optional": true + }, + { + "name": "private_vlan_id", "type": "TypeInt", "immutable": true, "optional": true, "computed": true }, { - "name": "post_install_script_uri", + "name": "datacenter", "type": "TypeString", "immutable": true, - "optional": true + "optional": true, + "computed": true }, { "name": "ipv4_address", @@ -105294,40 +105165,43 @@ "computed": true }, { - "name": "block_storage_ids", + "name": "ssh_key_ids", "type": "TypeSet", "optional": true, - "computed": true, "elem": { "type": "TypeInt" } }, { - "name": "resource_status", - "type": "TypeString", - "description": "The status of the resource", - "computed": true - }, - { - "name": "reserved_capacity_id", + "name": "evault", "type": "TypeInt", - "description": "The reserved group id", "immutable": true, "optional": true }, { - "name": "notes", + "name": "hostname", "type": "TypeString", "optional": true }, { - "name": "transient", - "type": "TypeBool", - "immutable": true, - "optional": true + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true }, { - "name": "public_interface_id", + "name": "cores", + "type": "TypeInt", + "optional": true, + "computed": true + }, + { + "name": "private_subnet_id", + "type": "TypeInt", + "computed": true + }, + { + "name": "ipv6_address_id", "type": "TypeInt", "computed": true }, @@ -105339,43 +105213,58 @@ "optional": true }, { - "name": "os_reference_code", - "type": "TypeString", + "name": "image_id", + "type": "TypeInt", "immutable": true, "optional": true }, { - "name": "dedicated_host_id", + "name": "placement_group_id", "type": "TypeInt", + "description": "The placement group id", "immutable": true, "optional": true }, { - "name": "public_bandwidth_unlimited", + "name": "memory", + "type": "TypeInt", + "optional": true, + "computed": true + }, + { + "name": "ip_address_id", + "type": "TypeInt", + "computed": true + }, + { + "name": "ipv6_static_enabled", "type": "TypeBool", "default_value": false, "immutable": true, "optional": true }, { - "name": "resource_name", + "name": "flavor_key_name", "type": "TypeString", - "description": "The name of the resource", + "description": "Flavor key name used to provision vm.", + "optional": true, "computed": true }, { - "name": "dedicated_host_name", - "type": "TypeString", + "name": "private_network_only", + "type": "TypeBool", + "default_value": false, "immutable": true, "optional": true }, { - "name": "ipv4_address_private", - "type": "TypeString", - "computed": true + "name": "dedicated_acct_host_only", + "type": "TypeBool", + "immutable": true, + "optional": true }, { - "name": "private_security_group_ids", + "name": "public_security_group_ids", "type": "TypeSet", "immutable": true, "optional": true, @@ -105386,111 +105275,181 @@ "max_items": 5 }, { - "name": "network_speed", + "name": "resource_status", + "type": "TypeString", + "description": "The status of the resource", + "computed": true + }, + { + "name": "hourly_billing", + "type": "TypeBool", + "default_value": true, + "immutable": true, + "optional": true + }, + { + "name": "public_interface_id", "type": "TypeInt", - "default_value": 100, + "computed": true + }, + { + "name": "ipv4_address_private", + "type": "TypeString", + "computed": true + }, + { + "name": "domain", + "type": "TypeString", "optional": true }, { - "name": "user_metadata", + "name": "dedicated_host_name", "type": "TypeString", "immutable": true, "optional": true }, { - "name": "wait_time_minutes", + "name": "reserved_capacity_id", "type": "TypeInt", - "default_value": 90, - "optional": true, - "deprecated": "This field is deprecated. Use timeouts block instead" + "description": "The reserved group id", + "immutable": true, + "optional": true }, { - "name": "resource_controller_url", + "name": "public_subnet", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "immutable": true, + "optional": true, "computed": true }, { - "name": "hourly_billing", - "type": "TypeBool", - "default_value": true, - "immutable": true, - "optional": true + "name": "secondary_ip_addresses", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "placement_group_name", + "name": "post_install_script_uri", "type": "TypeString", - "description": "The placement group name", "immutable": true, "optional": true }, { - "name": "ipv6_enabled", - "type": "TypeBool", - "default_value": false, + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "public_bandwidth_limited", + "type": "TypeInt", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "datacenter_choice", + "type": "TypeList", + "description": "The user provided datacenter options", + "optional": true, + "elem": { + "type": "TypeMap" + } + }, + { + "name": "secondary_ip_count", + "type": "TypeInt", "immutable": true, "optional": true }, { - "name": "public_ipv6_subnet_id", + "name": "ipv6_address", + "type": "TypeString", + "computed": true + }, + { + "name": "public_vlan_id", "type": "TypeInt", + "immutable": true, + "optional": true, "computed": true }, { - "name": "quote_id", + "name": "wait_time_minutes", "type": "TypeInt", - "description": "Quote ID for Quote based provisioning", + "default_value": 90, + "optional": true, + "deprecated": "This field is deprecated. Use timeouts block instead" + }, + { + "name": "placement_group_name", + "type": "TypeString", + "description": "The placement group name", "immutable": true, "optional": true }, { - "name": "dedicated_acct_host_only", - "type": "TypeBool", + "name": "reserved_instance_primary_disk", + "type": "TypeInt", + "description": "The primary disk of reserved instance", "immutable": true, "optional": true }, { - "name": "private_subnet_id", + "name": "private_subnet", + "type": "TypeString", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "network_speed", + "type": "TypeInt", + "default_value": 100, + "optional": true + }, + { + "name": "ip_address_id_private", "type": "TypeInt", "computed": true - } - ], - "ibm_container_addons": [ + }, { - "name": "cluster", + "name": "public_ipv6_subnet", "type": "TypeString", - "description": "Cluster Name or ID", - "cloud_data_type": "cluster", - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "computed": true }, { - "name": "resource_group_id", - "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, + "name": "public_ipv6_subnet_id", + "type": "TypeInt", "computed": true }, { - "name": "manage_all_addons", + "name": "public_bandwidth_unlimited", "type": "TypeBool", - "description": "To manage all add-ons installed in the cluster using terraform by importing it into the state file", - "default_value": true, + "default_value": false, + "immutable": true, "optional": true }, { - "name": "managed_addons", - "type": "TypeList", - "description": "Used to keep track of the add-on names", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "os_reference_code", + "type": "TypeString", + "immutable": true, + "optional": true }, + { + "name": "quote_id", + "type": "TypeInt", + "description": "Quote ID for Quote based provisioning", + "immutable": true, + "optional": true + } + ], + "ibm_container_addons": [ { "name": "addons", "type": "TypeSet", @@ -105580,6 +105539,41 @@ "computed": true } } + }, + { + "name": "cluster", + "type": "TypeString", + "description": "Cluster Name or ID", + "cloud_data_type": "cluster", + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "manage_all_addons", + "type": "TypeBool", + "description": "To manage all add-ons installed in the cluster using terraform by importing it into the state file", + "default_value": true, + "optional": true + }, + { + "name": "managed_addons", + "type": "TypeList", + "description": "Used to keep track of the add-on names", + "computed": true, + "elem": { + "type": "TypeString" + } } ], "ibm_container_alb": [ @@ -105590,11 +105584,10 @@ "computed": true }, { - "name": "region", + "name": "alb_type", "type": "TypeString", - "cloud_data_type": "region", - "optional": true, - "deprecated": "This field is deprecated" + "description": "ALB type", + "computed": true }, { "name": "user_ip", @@ -105605,10 +105598,9 @@ "computed": true }, { - "name": "enable", + "name": "resize", "type": "TypeBool", - "description": "set to true if ALB needs to be enabled", - "optional": true, + "description": "Indicate whether resizing should be done", "computed": true }, { @@ -105631,6 +105623,13 @@ "description": "Desired number of ALB replicas.", "computed": true }, + { + "name": "region", + "type": "TypeString", + "cloud_data_type": "region", + "optional": true, + "deprecated": "This field is deprecated" + }, { "name": "alb_id", "type": "TypeString", @@ -105638,12 +105637,6 @@ "immutable": true, "required": true }, - { - "name": "alb_type", - "type": "TypeString", - "description": "ALB type", - "computed": true - }, { "name": "cluster", "type": "TypeString", @@ -105651,35 +105644,14 @@ "computed": true }, { - "name": "resize", + "name": "enable", "type": "TypeBool", - "description": "Indicate whether resizing should be done", + "description": "set to true if ALB needs to be enabled", + "optional": true, "computed": true } ], "ibm_container_alb_cert": [ - { - "name": "expires_on", - "type": "TypeString", - "description": "Certificate expaire on date", - "computed": true - }, - { - "name": "issuer_name", - "type": "TypeString", - "description": "certificate issuer name", - "computed": true, - "deprecated": "This field is depricated and is not available in v2 version of ingress api" - }, - { - "name": "region", - "type": "TypeString", - "description": "region name", - "cloud_data_type": "region", - "optional": true, - "computed": true, - "deprecated": "This field is deprecated" - }, { "name": "cluster_id", "type": "TypeString", @@ -105692,17 +105664,11 @@ ] }, { - "name": "secret_name", - "type": "TypeString", - "description": "Secret name", - "immutable": true, - "required": true - }, - { - "name": "domain_name", + "name": "issuer_name", "type": "TypeString", - "description": "Domain name", - "computed": true + "description": "certificate issuer name", + "computed": true, + "deprecated": "This field is depricated and is not available in v2 version of ingress api" }, { "name": "status", @@ -105716,12 +105682,34 @@ "description": "cloud cert instance ID", "computed": true }, + { + "name": "expires_on", + "type": "TypeString", + "description": "Certificate expaire on date", + "computed": true + }, + { + "name": "region", + "type": "TypeString", + "description": "region name", + "cloud_data_type": "region", + "optional": true, + "computed": true, + "deprecated": "This field is deprecated" + }, { "name": "cert_crn", "type": "TypeString", "description": "Certificate CRN id", "required": true }, + { + "name": "secret_name", + "type": "TypeString", + "description": "Secret name", + "immutable": true, + "required": true + }, { "name": "namespace", "type": "TypeString", @@ -105735,54 +105723,21 @@ "type": "TypeBool", "description": "Persistence of secret", "optional": true - } - ], - "ibm_container_alb_create": [ - { - "name": "enable", - "type": "TypeBool", - "description": "If set to true, the ALB is enabled by default.", - "default_value": true, - "optional": true - }, - { - "name": "ingress_image", - "type": "TypeString", - "description": "The type of Ingress image that you want to use for your ALB deployment.", - "immutable": true, - "optional": true - }, - { - "name": "ip", - "type": "TypeString", - "description": "The IP address that you want to assign to the ALB.", - "optional": true - }, - { - "name": "zone", - "type": "TypeString", - "description": "The zone where you want to deploy the ALB.", - "immutable": true, - "required": true }, { - "name": "name", + "name": "domain_name", "type": "TypeString", - "description": "ALB name", + "description": "Domain name", "computed": true - }, + } + ], + "ibm_container_alb_create": [ { - "name": "user_ip", + "name": "replicas", "type": "TypeString", - "description": "IP assigned by the user", + "description": "number of instances", "computed": true }, - { - "name": "alb_type", - "type": "TypeString", - "description": "The type of ALB that you want to create.", - "required": true - }, { "name": "resize", "type": "TypeBool", @@ -105790,16 +105745,23 @@ "computed": true }, { - "name": "nlb_version", + "name": "name", "type": "TypeString", - "description": "The version of the network load balancer that you want to use for the ALB.", + "description": "ALB name", + "computed": true + }, + { + "name": "ingress_image", + "type": "TypeString", + "description": "The type of Ingress image that you want to use for your ALB deployment.", "immutable": true, "optional": true }, { - "name": "vlan_id", + "name": "zone", "type": "TypeString", - "description": "The VLAN ID that you want to use for your ALBs.", + "description": "The zone where you want to deploy the ALB.", + "immutable": true, "required": true }, { @@ -105819,6 +105781,19 @@ "description": "The ID of the application load balancer (ALB).", "computed": true }, + { + "name": "enable", + "type": "TypeBool", + "description": "If set to true, the ALB is enabled by default.", + "default_value": true, + "optional": true + }, + { + "name": "vlan_id", + "type": "TypeString", + "description": "The VLAN ID that you want to use for your ALBs.", + "required": true + }, { "name": "disable_deployment", "type": "TypeBool", @@ -105826,10 +105801,29 @@ "computed": true }, { - "name": "replicas", + "name": "user_ip", "type": "TypeString", - "description": "number of instances", + "description": "IP assigned by the user", "computed": true + }, + { + "name": "nlb_version", + "type": "TypeString", + "description": "The version of the network load balancer that you want to use for the ALB.", + "immutable": true, + "optional": true + }, + { + "name": "alb_type", + "type": "TypeString", + "description": "The type of ALB that you want to create.", + "required": true + }, + { + "name": "ip", + "type": "TypeString", + "description": "The IP address that you want to assign to the ALB.", + "optional": true } ], "ibm_container_api_key_reset": [ @@ -105858,6 +105852,51 @@ } ], "ibm_container_bind_service": [ + { + "name": "region", + "type": "TypeString", + "description": "The cluster region", + "cloud_data_type": "region", + "optional": true, + "deprecated": "This field is deprecated" + }, + { + "name": "service_instance_name", + "type": "TypeString", + "description": "serivice instance name", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "service_instance_id", + "type": "TypeString", + "description": "Service instance ID", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "namespace_id", + "type": "TypeString", + "description": "namespace ID", + "immutable": true, + "required": true + }, + { + "name": "space_guid", + "type": "TypeString", + "description": "The bluemix space guid this cluster belongs to", + "optional": true, + "deprecated": "This field is deprecated" + }, + { + "name": "role", + "type": "TypeString", + "description": "Role info", + "immutable": true, + "optional": true + }, { "name": "resource_group_id", "type": "TypeString", @@ -105877,12 +105916,15 @@ } }, { - "name": "service_instance_id", + "name": "cluster_name_id", "type": "TypeString", - "description": "Service instance ID", + "description": "Cluster name or ID", + "cloud_data_type": "cluster", "immutable": true, - "optional": true, - "computed": true + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] }, { "name": "org_guid", @@ -105891,20 +105933,6 @@ "optional": true, "deprecated": "This field is deprecated" }, - { - "name": "namespace_id", - "type": "TypeString", - "description": "namespace ID", - "immutable": true, - "required": true - }, - { - "name": "space_guid", - "type": "TypeString", - "description": "The bluemix space guid this cluster belongs to", - "optional": true, - "deprecated": "This field is deprecated" - }, { "name": "account_guid", "type": "TypeString", @@ -105918,55 +105946,118 @@ "description": "Key info", "immutable": true, "optional": true + } + ], + "ibm_container_cluster": [ + { + "name": "labels", + "type": "TypeMap", + "description": "list of labels to the default worker pool", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "role", + "name": "kube_version", "type": "TypeString", - "description": "Role info", - "immutable": true, + "description": "Kubernetes version info", + "optional": true, + "computed": true + }, + { + "name": "entitlement", + "type": "TypeString", + "description": "Entitlement option reduces additional OCP Licence cost in Openshift Clusters", "optional": true }, + { + "name": "subnet_id", + "type": "TypeSet", + "description": "List of subnet IDs", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true + }, { "name": "region", "type": "TypeString", "description": "The cluster region", "cloud_data_type": "region", "optional": true, + "computed": true, "deprecated": "This field is deprecated" }, { - "name": "cluster_name_id", - "type": "TypeString", - "description": "Cluster name or ID", - "cloud_data_type": "cluster", - "immutable": true, - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "name": "default_pool_size", + "type": "TypeInt", + "description": "The size of the default worker pool", + "default_value": 1, + "optional": true }, { - "name": "service_instance_name", + "name": "service_subnet", "type": "TypeString", - "description": "serivice instance name", + "description": "Custom subnet CIDR to provide private IP addresses for services", "immutable": true, "optional": true, "computed": true - } - ], - "ibm_container_cluster": [ + }, { - "name": "server_url", + "name": "no_subnet", + "type": "TypeBool", + "description": "Boolean value set to true when subnet creation is not required.", + "default_value": false, + "immutable": true, + "optional": true + }, + { + "name": "resource_controller_url", "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", "computed": true }, { - "name": "wait_for_worker_update", - "type": "TypeBool", - "description": "Wait for worker node to update during kube version update.", - "default_value": true, + "name": "datacenter", + "type": "TypeString", + "description": "The datacenter where this cluster will be deployed", + "immutable": true, + "required": true + }, + { + "name": "machine_type", + "type": "TypeString", + "description": "Machine type", + "immutable": true, "optional": true }, + { + "name": "server_url", + "type": "TypeString", + "computed": true + }, + { + "name": "space_guid", + "type": "TypeString", + "description": "The bluemix space guid this cluster belongs to", + "optional": true, + "deprecated": "This field is deprecated" + }, + { + "name": "crn", + "type": "TypeString", + "description": "CRN of resource instance", + "cloud_data_type": "crn", + "computed": true + }, { "name": "workers_info", "type": "TypeList", @@ -105994,99 +106085,76 @@ } }, { - "name": "space_guid", + "name": "wait_till", "type": "TypeString", - "description": "The bluemix space guid this cluster belongs to", - "optional": true, - "deprecated": "This field is deprecated" - }, - { - "name": "wait_time_minutes", - "type": "TypeInt", - "optional": true, - "deprecated": "This field is deprecated" + "description": "wait_till can be configured for Master Ready, One worker Ready, Ingress Ready or Normal", + "default_value": "IngressReady", + "optional": true }, { - "name": "image_security_enforcement", - "type": "TypeBool", - "description": "Set true to enable image security enforcement policies", - "default_value": false, - "optional": true + "name": "ingress_hostname", + "type": "TypeString", + "computed": true }, { - "name": "resource_status", + "name": "private_service_endpoint_url", "type": "TypeString", - "description": "The status of the resource", "computed": true }, { - "name": "taints", - "type": "TypeSet", - "description": "WorkerPool Taints", + "name": "webhook", + "type": "TypeList", "optional": true, "elem": { - "effect": { - "name": "effect", + "level": { + "name": "level", "type": "TypeString", - "description": "Effect for taint. Accepted values are NoSchedule, PreferNoSchedule and NoExecute.", "required": true }, - "key": { - "name": "key", + "type": { + "name": "type", "type": "TypeString", - "description": "Key for taint", "required": true }, - "value": { - "name": "value", + "url": { + "name": "url", "type": "TypeString", - "description": "Value for taint.", "required": true } } }, { - "name": "gateway_enabled", + "name": "private_service_endpoint", "type": "TypeBool", - "description": "Set true for gateway enabled clusters", - "default_value": false, - "optional": true - }, - { - "name": "kube_version", - "type": "TypeString", - "description": "Kubernetes version info", + "immutable": true, "optional": true, "computed": true }, { - "name": "resource_group_id", + "name": "resource_crn", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "optional": true, + "description": "The crn of the resource", "computed": true }, { - "name": "default_pool_size", + "name": "worker_num", "type": "TypeInt", - "description": "The size of the default worker pool", - "default_value": 1, - "optional": true + "description": "Number of worker nodes", + "default_value": 0, + "optional": true, + "deprecated": "This field is deprecated" }, { - "name": "wait_till", + "name": "account_guid", "type": "TypeString", - "description": "wait_till can be configured for Master Ready, One worker Ready, Ingress Ready or Normal", - "default_value": "IngressReady", - "optional": true + "description": "The bluemix account guid this cluster belongs to", + "optional": true, + "deprecated": "This field is deprecated" }, { - "name": "name", + "name": "public_service_endpoint_url", "type": "TypeString", - "description": "The cluster name", - "immutable": true, - "required": true + "computed": true }, { "name": "kms_config", @@ -106116,6 +106184,47 @@ }, "max_items": 1 }, + { + "name": "image_security_enforcement", + "type": "TypeBool", + "description": "Set true to enable image security enforcement policies", + "default_value": false, + "optional": true + }, + { + "name": "disk_encryption", + "type": "TypeBool", + "description": "disc encryption done, if set to true.", + "default_value": true, + "immutable": true, + "optional": true + }, + { + "name": "retry_patch_version", + "type": "TypeInt", + "description": "Argument which helps to retry the patch version updates on worker nodes. Increment the value to retry the patch updates if the previous apply fails", + "optional": true + }, + { + "name": "hardware", + "type": "TypeString", + "description": "Hardware type", + "immutable": true, + "required": true + }, + { + "name": "tags", + "type": "TypeSet", + "description": "Tags for the resource", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "worker_pools", "type": "TypeList", @@ -106186,147 +106295,88 @@ } }, { - "name": "albs", - "type": "TypeList", - "computed": true, - "elem": { - "alb_ip": { - "name": "alb_ip", - "type": "TypeString", - "computed": true - }, - "alb_type": { - "name": "alb_type", - "type": "TypeString", - "computed": true - }, - "disable_deployment": { - "name": "disable_deployment", - "type": "TypeBool", - "computed": true - }, - "enable": { - "name": "enable", - "type": "TypeBool", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "computed": true - }, - "num_of_instances": { - "name": "num_of_instances", - "type": "TypeString", - "computed": true - }, - "resize": { - "name": "resize", - "type": "TypeBool", - "computed": true - }, - "state": { - "name": "state", - "type": "TypeString", - "computed": true - } - } - }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, - { - "name": "region", + "name": "org_guid", "type": "TypeString", - "description": "The cluster region", - "cloud_data_type": "region", + "description": "The bluemix organization guid this cluster belongs to", "optional": true, - "computed": true, "deprecated": "This field is deprecated" }, { - "name": "private_service_endpoint_url", - "type": "TypeString", - "computed": true - }, - { - "name": "labels", - "type": "TypeMap", - "description": "list of labels to the default worker pool", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "ingress_hostname", - "type": "TypeString", - "computed": true - }, - { - "name": "public_service_endpoint_url", - "type": "TypeString", - "computed": true - }, - { - "name": "operating_system", - "type": "TypeString", - "description": "The operating system of the workers in the default worker pool.", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "Tags for the resource", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "service_subnet", - "type": "TypeString", - "description": "Custom subnet CIDR to provide private IP addresses for services", - "immutable": true, - "optional": true, - "computed": true + "name": "wait_for_worker_update", + "type": "TypeBool", + "description": "Wait for worker node to update during kube version update.", + "default_value": true, + "optional": true }, { - "name": "subnet_id", - "type": "TypeSet", - "description": "List of subnet IDs", + "name": "wait_time_minutes", + "type": "TypeInt", "optional": true, + "deprecated": "This field is deprecated" + }, + { + "name": "albs", + "type": "TypeList", + "computed": true, "elem": { - "type": "TypeString" + "alb_ip": { + "name": "alb_ip", + "type": "TypeString", + "computed": true + }, + "alb_type": { + "name": "alb_type", + "type": "TypeString", + "computed": true + }, + "disable_deployment": { + "name": "disable_deployment", + "type": "TypeBool", + "computed": true + }, + "enable": { + "name": "enable", + "type": "TypeBool", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "computed": true + }, + "num_of_instances": { + "name": "num_of_instances", + "type": "TypeString", + "computed": true + }, + "resize": { + "name": "resize", + "type": "TypeBool", + "computed": true + }, + "state": { + "name": "state", + "type": "TypeString", + "computed": true + } } }, { - "name": "account_guid", - "type": "TypeString", - "description": "The bluemix account guid this cluster belongs to", - "optional": true, - "deprecated": "This field is deprecated" + "name": "gateway_enabled", + "type": "TypeBool", + "description": "Set true for gateway enabled clusters", + "default_value": false, + "optional": true }, { - "name": "public_service_endpoint", - "type": "TypeBool", - "immutable": true, - "optional": true, + "name": "resource_status", + "type": "TypeString", + "description": "The status of the resource", "computed": true }, { @@ -106337,58 +106387,65 @@ "optional": true }, { - "name": "resource_name", + "name": "resource_group_id", "type": "TypeString", - "description": "The name of the resource", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "optional": true, "computed": true }, { - "name": "hardware", - "type": "TypeString", - "description": "Hardware type", - "immutable": true, - "required": true - }, - { - "name": "webhook", - "type": "TypeList", + "name": "taints", + "type": "TypeSet", + "description": "WorkerPool Taints", "optional": true, "elem": { - "level": { - "name": "level", + "effect": { + "name": "effect", "type": "TypeString", + "description": "Effect for taint. Accepted values are NoSchedule, PreferNoSchedule and NoExecute.", "required": true }, - "type": { - "name": "type", + "key": { + "name": "key", "type": "TypeString", + "description": "Key for taint", "required": true }, - "url": { - "name": "url", + "value": { + "name": "value", "type": "TypeString", + "description": "Value for taint.", "required": true } } }, { - "name": "crn", - "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", - "computed": true + "name": "update_all_workers", + "type": "TypeBool", + "description": "Updates all the woker nodes if sets to true", + "default_value": false, + "optional": true }, { - "name": "resource_crn", + "name": "private_vlan_id", "type": "TypeString", - "description": "The crn of the resource", + "description": "Private VLAN ID", + "immutable": true, + "optional": true + }, + { + "name": "public_service_endpoint", + "type": "TypeBool", + "immutable": true, + "optional": true, "computed": true }, { - "name": "entitlement", + "name": "resource_name", "type": "TypeString", - "description": "Entitlement option reduces additional OCP Licence cost in Openshift Clusters", - "optional": true + "description": "The name of the resource", + "computed": true }, { "name": "billing", @@ -106397,24 +106454,10 @@ "deprecated": "This field is deprecated" }, { - "name": "disk_encryption", + "name": "is_trusted", "type": "TypeBool", - "description": "disc encryption done, if set to true.", - "default_value": true, - "immutable": true, - "optional": true - }, - { - "name": "patch_version", - "type": "TypeString", - "description": "Kubernetes patch version", - "optional": true - }, - { - "name": "ingress_secret", - "type": "TypeString", - "secure": true, - "computed": true + "optional": true, + "deprecated": "This field is deprecated" }, { "name": "force_delete_storage", @@ -106424,39 +106467,25 @@ "optional": true }, { - "name": "resource_controller_url", + "name": "name", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", - "computed": true - }, - { - "name": "worker_num", - "type": "TypeInt", - "description": "Number of worker nodes", - "default_value": 0, - "optional": true, - "deprecated": "This field is deprecated" - }, - { - "name": "update_all_workers", - "type": "TypeBool", - "description": "Updates all the woker nodes if sets to true", - "default_value": false, - "optional": true + "description": "The cluster name", + "immutable": true, + "required": true }, { - "name": "machine_type", + "name": "patch_version", "type": "TypeString", - "description": "Machine type", - "immutable": true, + "description": "Kubernetes patch version", "optional": true }, { - "name": "private_vlan_id", + "name": "operating_system", "type": "TypeString", - "description": "Private VLAN ID", + "description": "The operating system of the workers in the default worker pool.", "immutable": true, - "optional": true + "optional": true, + "computed": true }, { "name": "pod_subnet", @@ -106467,48 +106496,24 @@ "computed": true }, { - "name": "no_subnet", - "type": "TypeBool", - "description": "Boolean value set to true when subnet creation is not required.", - "default_value": false, - "immutable": true, - "optional": true - }, - { - "name": "is_trusted", - "type": "TypeBool", - "optional": true, - "deprecated": "This field is deprecated" - }, + "name": "ingress_secret", + "type": "TypeString", + "secure": true, + "computed": true + } + ], + "ibm_container_cluster_feature": [ { "name": "private_service_endpoint", "type": "TypeBool", - "immutable": true, "optional": true, "computed": true }, { - "name": "retry_patch_version", - "type": "TypeInt", - "description": "Argument which helps to retry the patch version updates on worker nodes. Increment the value to retry the patch updates if the previous apply fails", - "optional": true - }, - { - "name": "org_guid", + "name": "public_service_endpoint_url", "type": "TypeString", - "description": "The bluemix organization guid this cluster belongs to", - "optional": true, - "deprecated": "This field is deprecated" + "computed": true }, - { - "name": "datacenter", - "type": "TypeString", - "description": "The datacenter where this cluster will be deployed", - "immutable": true, - "required": true - } - ], - "ibm_container_cluster_feature": [ { "name": "refresh_api_servers", "type": "TypeBool", @@ -106552,20 +106557,23 @@ "type": "TypeBool", "optional": true, "computed": true - }, + } + ], + "ibm_container_dedicated_host": [ { - "name": "private_service_endpoint", - "type": "TypeBool", - "optional": true, - "computed": true + "name": "flavor", + "type": "TypeString", + "description": "The flavor of the dedicated host", + "immutable": true, + "required": true }, { - "name": "public_service_endpoint_url", + "name": "host_pool_id", "type": "TypeString", - "computed": true - } - ], - "ibm_container_dedicated_host": [ + "description": "The id of the dedicated host pool the dedicated host is associated with", + "immutable": true, + "required": true + }, { "name": "zone", "type": "TypeString", @@ -106692,45 +106700,9 @@ "computed": true } } - }, - { - "name": "flavor", - "type": "TypeString", - "description": "The flavor of the dedicated host", - "immutable": true, - "required": true - }, - { - "name": "host_pool_id", - "type": "TypeString", - "description": "The id of the dedicated host pool the dedicated host is associated with", - "immutable": true, - "required": true } ], "ibm_container_dedicated_host_pool": [ - { - "name": "metro", - "type": "TypeString", - "description": "The metro to create the dedicated host pool in", - "immutable": true, - "required": true - }, - { - "name": "flavor_class", - "type": "TypeString", - "description": "The flavor class of the dedicated host pool", - "immutable": true, - "required": true - }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true - }, { "name": "host_count", "type": "TypeInt", @@ -106802,40 +106774,31 @@ "description": "The name of the dedicated host pool", "immutable": true, "required": true - } - ], - "ibm_container_ingress_instance": [ + }, { - "name": "instance_crn", + "name": "metro", "type": "TypeString", - "description": "Instance CRN id", + "description": "The metro to create the dedicated host pool in", "immutable": true, "required": true }, { - "name": "secret_group_name", - "type": "TypeString", - "description": "Name of the secret group for the instance", - "computed": true - }, - { - "name": "status", + "name": "flavor_class", "type": "TypeString", - "description": "Instance registration status", - "computed": true + "description": "The flavor class of the dedicated host pool", + "immutable": true, + "required": true }, { - "name": "instance_type", + "name": "resource_group_id", "type": "TypeString", - "description": "Instance type", - "computed": true - }, - { - "name": "user_managed", - "type": "TypeBool", - "description": "If the instance was created by the user", - "computed": true - }, + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true + } + ], + "ibm_container_ingress_instance": [ { "name": "cluster", "type": "TypeString", @@ -106847,12 +106810,6 @@ "resolved_to:id" ] }, - { - "name": "instance_name", - "type": "TypeString", - "description": "Instance registration name", - "computed": true - }, { "name": "secret_group_id", "type": "TypeString", @@ -106866,19 +106823,55 @@ "description": "Designates if the instance is the default for the cluster", "default_value": false, "optional": true + }, + { + "name": "instance_crn", + "type": "TypeString", + "description": "Instance CRN id", + "immutable": true, + "required": true + }, + { + "name": "instance_name", + "type": "TypeString", + "description": "Instance registration name", + "computed": true + }, + { + "name": "secret_group_name", + "type": "TypeString", + "description": "Name of the secret group for the instance", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Instance registration status", + "computed": true + }, + { + "name": "instance_type", + "type": "TypeString", + "description": "Instance type", + "computed": true + }, + { + "name": "user_managed", + "type": "TypeBool", + "description": "If the instance was created by the user", + "computed": true } ], "ibm_container_ingress_secret_opaque": [ { - "name": "cluster", + "name": "secret_name", "type": "TypeString", - "description": "Cluster ID or name", - "cloud_data_type": "cluster", + "description": "Secret name", "immutable": true, "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "min_length": 1, + "max_length": 63, + "matches": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)$" }, { "name": "secret_namespace", @@ -106895,9 +106888,9 @@ "optional": true }, { - "name": "user_managed", - "type": "TypeBool", - "description": "If the secret was created by the user", + "name": "last_updated_timestamp", + "type": "TypeString", + "description": "Timestamp secret was last updated", "computed": true }, { @@ -106939,19 +106932,20 @@ } }, { - "name": "secret_name", + "name": "cluster", "type": "TypeString", - "description": "Secret name", + "description": "Cluster ID or name", + "cloud_data_type": "cluster", "immutable": true, "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)$" + "cloud_data_range": [ + "resolved_to:id" + ] }, { - "name": "type", - "type": "TypeString", - "description": "Opaque secret type", + "name": "user_managed", + "type": "TypeBool", + "description": "If the secret was created by the user", "computed": true }, { @@ -106967,49 +106961,25 @@ "optional": true }, { - "name": "last_updated_timestamp", + "name": "type", "type": "TypeString", - "description": "Timestamp secret was last updated", + "description": "Opaque secret type", "computed": true } ], "ibm_container_ingress_secret_tls": [ - { - "name": "type", - "type": "TypeString", - "description": "TLS secret type", - "computed": true - }, - { - "name": "cert_crn", - "type": "TypeString", - "description": "Certificate CRN", - "required": true - }, { "name": "expires_on", "type": "TypeString", "description": "Certificate expires on date", "computed": true }, - { - "name": "status", - "type": "TypeString", - "description": "Secret Status", - "computed": true - }, { "name": "update_secret", "type": "TypeInt", "description": "Updates secret from secrets manager if value is changed (increment each usage)", "optional": true }, - { - "name": "last_updated_timestamp", - "type": "TypeString", - "description": "Timestamp secret was last updated", - "computed": true - }, { "name": "cluster", "type": "TypeString", @@ -107032,49 +107002,56 @@ "matches": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)$" }, { - "name": "secret_namespace", + "name": "cert_crn", "type": "TypeString", - "description": "Secret namespace", - "immutable": true, + "description": "Certificate CRN", "required": true }, - { - "name": "persistence", - "type": "TypeBool", - "description": "Persistence of secret", - "optional": true - }, { "name": "domain_name", "type": "TypeString", "description": "Domain name", "computed": true }, + { + "name": "status", + "type": "TypeString", + "description": "Secret Status", + "computed": true + }, { "name": "user_managed", "type": "TypeBool", "description": "If the secret was created by the user", "computed": true - } - ], - "ibm_container_nlb_dns": [ + }, { - "name": "nlb_dns_type", + "name": "last_updated_timestamp", "type": "TypeString", + "description": "Timestamp secret was last updated", "computed": true }, { - "name": "nlb_ssl_secret_name", + "name": "secret_namespace", "type": "TypeString", - "computed": true + "description": "Secret namespace", + "immutable": true, + "required": true }, { - "name": "resource_group_id", + "name": "type", "type": "TypeString", - "description": "The ID of the resource group that the cluster is in. To check the resource group ID of the cluster, use the GET /v1/clusters/idOrName API. To list available resource group IDs, run ibmcloud resource groups.", - "cloud_data_type": "resource_group", - "optional": true + "description": "TLS secret type", + "computed": true }, + { + "name": "persistence", + "type": "TypeBool", + "description": "Persistence of secret", + "optional": true + } + ], + "ibm_container_nlb_dns": [ { "name": "nlb_ips", "type": "TypeSet", @@ -107084,10 +107061,9 @@ } }, { - "name": "nlb_host", + "name": "nlb_dns_type", "type": "TypeString", - "immutable": true, - "required": true + "computed": true }, { "name": "nlb_monitor_state", @@ -107095,17 +107071,17 @@ "computed": true }, { - "name": "nlb_ssl_secret_status", + "name": "nlb_ssl_secret_name", "type": "TypeString", "computed": true }, { - "name": "nlb_type", + "name": "nlb_ssl_secret_status", "type": "TypeString", "computed": true }, { - "name": "secret_namespace", + "name": "nlb_type", "type": "TypeString", "computed": true }, @@ -107119,22 +107095,27 @@ "cloud_data_range": [ "resolved_to:id" ] - } - ], - "ibm_container_storage_attachment": [ + }, { - "name": "worker", + "name": "nlb_host", "type": "TypeString", - "description": "worker node ID", "immutable": true, "required": true }, { - "name": "volume_attachment_name", + "name": "secret_namespace", "type": "TypeString", - "description": "Volume attachment name", "computed": true }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "The ID of the resource group that the cluster is in. To check the resource group ID of the cluster, use the GET /v1/clusters/idOrName API. To list available resource group IDs, run ibmcloud resource groups.", + "cloud_data_type": "resource_group", + "optional": true + } + ], + "ibm_container_storage_attachment": [ { "name": "resource_group_id", "type": "TypeString", @@ -107178,9 +107159,42 @@ "cloud_data_range": [ "resolved_to:id" ] + }, + { + "name": "worker", + "type": "TypeString", + "description": "worker node ID", + "immutable": true, + "required": true + }, + { + "name": "volume_attachment_name", + "type": "TypeString", + "description": "Volume attachment name", + "computed": true } ], "ibm_container_vpc_alb": [ + { + "name": "disable_deployment", + "type": "TypeBool", + "description": "Disable the ALB instance in the cluster", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "ALB name", + "computed": true + }, + { + "name": "load_balancer_hostname", + "type": "TypeString", + "description": "Load balancer host name", + "computed": true + }, { "name": "zone", "type": "TypeString", @@ -107207,9 +107221,15 @@ "computed": true }, { - "name": "load_balancer_hostname", - "type": "TypeString", - "description": "Load balancer host name", + "name": "enable", + "type": "TypeBool", + "description": "Enable the ALB instance in the cluster", + "optional": true + }, + { + "name": "resize", + "type": "TypeBool", + "description": "boolean value to resize the albs", "computed": true }, { @@ -107218,12 +107238,6 @@ "description": "ALB state", "computed": true }, - { - "name": "resize", - "type": "TypeBool", - "description": "boolean value to resize the albs", - "computed": true - }, { "name": "status", "type": "TypeString", @@ -107236,19 +107250,43 @@ "description": "ALB ID", "immutable": true, "required": true + } + ], + "ibm_container_vpc_alb_create": [ + { + "name": "state", + "type": "TypeString", + "description": "ALB state", + "computed": true }, { - "name": "enable", - "type": "TypeBool", - "description": "Enable the ALB instance in the cluster", - "optional": true + "name": "status", + "type": "TypeString", + "description": "Status of the ALB", + "computed": true }, { - "name": "disable_deployment", - "type": "TypeBool", - "description": "Disable the ALB instance in the cluster", + "name": "cluster", + "type": "TypeString", + "description": "The ID of the cluster that the ALB belongs to.", + "cloud_data_type": "cluster", "immutable": true, - "optional": true, + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "optional": true + }, + { + "name": "alb_type", + "type": "TypeString", + "description": "Type of the ALB", "computed": true }, { @@ -107256,9 +107294,33 @@ "type": "TypeString", "description": "ALB name", "computed": true - } - ], - "ibm_container_vpc_alb_create": [ + }, + { + "name": "load_balancer_hostname", + "type": "TypeString", + "description": "Load balancer host name", + "computed": true + }, + { + "name": "resize", + "type": "TypeBool", + "description": "boolean value to resize the albs", + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "The type of ALB that you want to create.", + "immutable": true, + "required": true + }, + { + "name": "zone", + "type": "TypeString", + "description": "The zone where you want to deploy the ALB.", + "immutable": true, + "required": true + }, { "name": "enable", "type": "TypeBool", @@ -107266,9 +107328,10 @@ "optional": true }, { - "name": "alb_type", + "name": "alb_id", "type": "TypeString", - "description": "Type of the ALB", + "description": "The ID of the application load balancer (ALB).", + "immutable": true, "computed": true }, { @@ -107276,124 +107339,178 @@ "type": "TypeBool", "description": "Disable the ALB instance in the cluster", "computed": true + } + ], + "ibm_container_vpc_cluster": [ + { + "name": "tags", + "type": "TypeSet", + "description": "List of tags for the resources", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "name", + "name": "worker_labels", + "type": "TypeMap", + "description": "Labels for default worker pool", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "patch_version", "type": "TypeString", - "description": "ALB name", - "computed": true + "description": "Kubernetes patch version", + "optional": true }, { - "name": "resize", - "type": "TypeBool", - "description": "boolean value to resize the albs", - "computed": true + "name": "worker_count", + "type": "TypeInt", + "description": "Number of worker nodes in the cluster", + "default_value": 1, + "optional": true }, { - "name": "state", + "name": "secondary_storage", "type": "TypeString", - "description": "ALB state", + "description": "The secondary storage option for the default worker pool.", + "immutable": true, + "optional": true, "computed": true }, { - "name": "status", + "name": "wait_till", "type": "TypeString", - "description": "Status of the ALB", - "computed": true + "description": "wait_till can be configured for Master Ready, One worker Ready or Ingress Ready or Normal", + "default_value": "IngressReady", + "optional": true }, { - "name": "type", + "name": "crk", "type": "TypeString", - "description": "The type of ALB that you want to create.", - "immutable": true, - "required": true + "description": "Root Key ID for boot volume encryption", + "optional": true }, { - "name": "zone", + "name": "host_pool_id", "type": "TypeString", - "description": "The zone where you want to deploy the ALB.", + "description": "The ID of the cluster's associated host pool", "immutable": true, - "required": true + "optional": true }, { - "name": "cluster", + "name": "resource_name", "type": "TypeString", - "description": "The ID of the cluster that the ALB belongs to.", - "cloud_data_type": "cluster", - "immutable": true, - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "description": "The name of the resource", + "computed": true }, { - "name": "resource_group_id", + "name": "kube_version", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "optional": true + "description": "Kubernetes version", + "optional": true, + "computed": true }, { - "name": "alb_id", + "name": "operating_system", "type": "TypeString", - "description": "The ID of the application load balancer (ALB).", + "description": "The operating system of the workers in the default worker pool.", "immutable": true, + "optional": true, "computed": true }, { - "name": "load_balancer_hostname", + "name": "entitlement", "type": "TypeString", - "description": "Load balancer host name", + "description": "Entitlement option reduces additional OCP Licence cost in Openshift Clusters", + "optional": true + }, + { + "name": "cos_instance_crn", + "type": "TypeString", + "description": "A standard cloud object storage instance CRN to back up the internal registry in your OpenShift on VPC Gen 2 cluster", + "optional": true + }, + { + "name": "force_delete_storage", + "type": "TypeBool", + "description": "Force the removal of a cluster and its persistent storage. Deleted data cannot be recovered", + "default_value": false, + "optional": true + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", "computed": true - } - ], - "ibm_container_vpc_cluster": [ + }, { - "name": "flavor", + "name": "kms_instance_id", "type": "TypeString", - "description": "Cluster nodes flavour", - "immutable": true, - "required": true + "description": "Instance ID for boot volume encryption", + "optional": true }, { - "name": "name", + "name": "resource_crn", "type": "TypeString", - "description": "The cluster name", + "description": "The crn of the resource", + "computed": true + }, + { + "name": "update_all_workers", + "type": "TypeBool", + "description": "Updates all the woker nodes if sets to true", + "default_value": false, + "optional": true + }, + { + "name": "vpc_id", + "type": "TypeString", + "description": "The vpc id where the cluster is", "immutable": true, "required": true }, { - "name": "zones", - "type": "TypeSet", - "description": "Zone info", - "required": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "Zone for the worker pool in a multizone cluster", - "required": true - }, - "subnet_id": { - "name": "subnet_id", - "type": "TypeString", - "description": "The VPC subnet to assign the cluster", - "required": true - } - } + "name": "wait_for_worker_update", + "type": "TypeBool", + "description": "Wait for worker node to update during kube version update.", + "default_value": true, + "optional": true }, { - "name": "retry_patch_version", - "type": "TypeInt", - "description": "Argument which helps to retry the patch version updates on worker nodes. Increment the value to retry the patch updates if the previous apply fails", + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "image_security_enforcement", + "type": "TypeBool", + "description": "Set true to enable image security enforcement policies", + "default_value": false, "optional": true }, { - "name": "secondary_storage", + "name": "name", "type": "TypeString", - "description": "The secondary storage option for the default worker pool.", + "description": "The cluster name", "immutable": true, - "optional": true, + "required": true + }, + { + "name": "state", + "type": "TypeString", "computed": true }, { @@ -107444,139 +107561,106 @@ } }, { - "name": "pod_subnet", + "name": "private_service_endpoint_url", "type": "TypeString", - "description": "Custom subnet CIDR to provide private IP addresses for pods", - "immutable": true, - "optional": true, "computed": true }, { - "name": "worker_count", - "type": "TypeInt", - "description": "Number of worker nodes in the cluster", - "default_value": 1, + "name": "disable_public_service_endpoint", + "type": "TypeBool", + "description": "Boolean value true if Public service endpoint to be disabled", + "default_value": false, "optional": true }, { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", - "computed": true + "name": "zones", + "type": "TypeSet", + "description": "Zone info", + "required": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "Zone for the worker pool in a multizone cluster", + "required": true + }, + "subnet_id": { + "name": "subnet_id", + "type": "TypeString", + "description": "The VPC subnet to assign the cluster", + "required": true + } + } }, { - "name": "kms_account_id", - "type": "TypeString", - "description": "Account ID of kms instance holder - if not provided, defaults to the account in use", + "name": "retry_patch_version", + "type": "TypeInt", + "description": "Argument which helps to retry the patch version updates on worker nodes. Increment the value to retry the patch updates if the previous apply fails", "optional": true }, { - "name": "private_service_endpoint_url", + "name": "pod_subnet", "type": "TypeString", + "description": "Custom subnet CIDR to provide private IP addresses for pods", + "immutable": true, + "optional": true, "computed": true }, { - "name": "ingress_secret", + "name": "master_url", "type": "TypeString", - "secure": true, "computed": true }, { - "name": "resource_crn", + "name": "crn", "type": "TypeString", - "description": "The crn of the resource", + "description": "CRN of resource instance", + "cloud_data_type": "crn", "computed": true }, { - "name": "resource_status", + "name": "ingress_hostname", "type": "TypeString", - "description": "The status of the resource", "computed": true }, { - "name": "vpc_id", - "type": "TypeString", - "description": "The vpc id where the cluster is", - "immutable": true, - "required": true - }, - { - "name": "kube_version", + "name": "ingress_secret", "type": "TypeString", - "description": "Kubernetes version", - "optional": true, + "secure": true, "computed": true }, { - "name": "patch_version", - "type": "TypeString", - "description": "Kubernetes patch version", - "optional": true - }, - { - "name": "wait_till", - "type": "TypeString", - "description": "wait_till can be configured for Master Ready, One worker Ready or Ingress Ready or Normal", - "default_value": "IngressReady", - "optional": true - }, - { - "name": "cos_instance_crn", + "name": "flavor", "type": "TypeString", - "description": "A standard cloud object storage instance CRN to back up the internal registry in your OpenShift on VPC Gen 2 cluster", - "optional": true - }, - { - "name": "force_delete_storage", - "type": "TypeBool", - "description": "Force the removal of a cluster and its persistent storage. Deleted data cannot be recovered", - "default_value": false, - "optional": true + "description": "Cluster nodes flavour", + "immutable": true, + "required": true }, { - "name": "resource_group_id", + "name": "service_subnet", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", + "description": "Custom subnet CIDR to provide private IP addresses for services", "immutable": true, "optional": true, "computed": true }, { - "name": "host_pool_id", + "name": "kms_account_id", "type": "TypeString", - "description": "The ID of the cluster's associated host pool", - "immutable": true, + "description": "Account ID of kms instance holder - if not provided, defaults to the account in use", "optional": true }, { - "name": "resource_name", + "name": "master_status", "type": "TypeString", - "description": "The name of the resource", "computed": true }, { - "name": "worker_labels", - "type": "TypeMap", - "description": "Labels for default worker pool", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "state", + "name": "resource_status", "type": "TypeString", + "description": "The status of the resource", "computed": true }, - { - "name": "image_security_enforcement", - "type": "TypeBool", - "description": "Set true to enable image security enforcement policies", - "default_value": false, - "optional": true - }, { "name": "kms_config", "type": "TypeList", @@ -107606,33 +107690,14 @@ "max_items": 1 }, { - "name": "update_all_workers", - "type": "TypeBool", - "description": "Updates all the woker nodes if sets to true", - "default_value": false, - "optional": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "List of tags for the resources", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "master_status", + "name": "public_service_endpoint_url", "type": "TypeString", "computed": true }, { - "name": "public_service_endpoint_url", + "name": "resource_group_name", "type": "TypeString", + "description": "The resource group name in which resource is provisioned", "computed": true }, { @@ -107660,84 +107725,64 @@ "required": true } } - }, - { - "name": "crn", - "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "ingress_hostname", - "type": "TypeString", - "computed": true - }, - { - "name": "wait_for_worker_update", - "type": "TypeBool", - "description": "Wait for worker node to update during kube version update.", - "default_value": true, - "optional": true - }, - { - "name": "service_subnet", - "type": "TypeString", - "description": "Custom subnet CIDR to provide private IP addresses for services", - "immutable": true, - "optional": true, - "computed": true - }, + } + ], + "ibm_container_vpc_worker": [ { - "name": "operating_system", + "name": "replace_worker", "type": "TypeString", - "description": "The operating system of the workers in the default worker pool.", + "description": "Worker name/id that needs to be replaced", "immutable": true, - "optional": true, - "computed": true + "required": true }, { - "name": "disable_public_service_endpoint", + "name": "check_ptx_status", "type": "TypeBool", - "description": "Boolean value true if Public service endpoint to be disabled", + "description": "Check portworx status after worker replace", "default_value": false, + "immutable": true, "optional": true }, { - "name": "entitlement", + "name": "ptx_timeout", "type": "TypeString", - "description": "Entitlement option reduces additional OCP Licence cost in Openshift Clusters", + "description": "Timeout for checking ptx pods/status", + "default_value": "15m", + "immutable": true, "optional": true }, { - "name": "resource_group_name", + "name": "ip", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "IP of the replaced worker", "computed": true }, { - "name": "kms_instance_id", + "name": "cluster_name", "type": "TypeString", - "description": "Instance ID for boot volume encryption", - "optional": true + "description": "Cluster name", + "immutable": true, + "required": true }, { - "name": "crk", + "name": "sds", "type": "TypeString", - "description": "Root Key ID for boot volume encryption", + "description": "Name of Software Defined Storage", + "immutable": true, "optional": true }, { - "name": "master_url", + "name": "kube_config_path", "type": "TypeString", - "computed": true - } - ], - "ibm_container_vpc_worker": [ + "description": "Path of downloaded cluster config", + "immutable": true, + "optional": true + }, { - "name": "sds", + "name": "sds_timeout", "type": "TypeString", - "description": "Name of Software Defined Storage", + "description": "Timeout for checking sds deployment/status", + "default_value": "15m", "immutable": true, "optional": true }, @@ -107748,92 +107793,96 @@ "cloud_data_type": "resource_group", "immutable": true, "optional": true + } + ], + "ibm_container_vpc_worker_pool": [ + { + "name": "entitlement", + "type": "TypeString", + "description": "Entitlement option reduces additional OCP Licence cost in Openshift Clusters", + "optional": true }, { - "name": "ip", + "name": "operating_system", "type": "TypeString", - "description": "IP of the replaced worker", + "description": "The operating system of the workers in the worker pool.", + "immutable": true, + "optional": true, "computed": true }, { - "name": "cluster_name", + "name": "vpc_id", "type": "TypeString", - "description": "Cluster name", + "description": "The vpc id where the cluster is", "immutable": true, "required": true }, { - "name": "replace_worker", + "name": "resource_controller_url", "type": "TypeString", - "description": "Worker name/id that needs to be replaced", - "immutable": true, - "required": true + "description": "Resource Controller URL", + "computed": true }, { - "name": "kube_config_path", + "name": "worker_pool_name", "type": "TypeString", - "description": "Path of downloaded cluster config", + "description": "worker pool name", "immutable": true, - "optional": true + "required": true }, { - "name": "check_ptx_status", - "type": "TypeBool", - "description": "Check portworx status after worker replace", - "default_value": false, - "immutable": true, - "optional": true + "name": "labels", + "type": "TypeMap", + "description": "Labels", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "ptx_timeout", + "name": "secondary_storage", "type": "TypeString", - "description": "Timeout for checking ptx pods/status", - "default_value": "15m", + "description": "The secondary storage option for the workers in the worker pool.", "immutable": true, - "optional": true + "optional": true, + "computed": true }, { - "name": "sds_timeout", + "name": "host_pool_id", "type": "TypeString", - "description": "Timeout for checking sds deployment/status", - "default_value": "15m", + "description": "The ID of the dedicated host pool associated with the worker pool", "immutable": true, "optional": true - } - ], - "ibm_container_vpc_worker_pool": [ - { - "name": "worker_count", - "type": "TypeInt", - "description": "The number of workers", - "required": true }, { - "name": "host_pool_id", + "name": "kms_instance_id", "type": "TypeString", - "description": "The ID of the dedicated host pool associated with the worker pool", - "immutable": true, + "description": "Instance ID for boot volume encryption", "optional": true }, { - "name": "resource_controller_url", + "name": "crk", "type": "TypeString", - "description": "Resource Controller URL", - "computed": true + "description": "Root Key ID for boot volume encryption", + "optional": true }, { - "name": "flavor", + "name": "kms_account_id", "type": "TypeString", - "description": "cluster node falvor", - "immutable": true, - "required": true + "description": "Account ID of kms instance holder - if not provided, defaults to the account in use", + "optional": true }, { - "name": "worker_pool_name", + "name": "cluster", "type": "TypeString", - "description": "worker pool name", + "description": "Cluster name", + "cloud_data_type": "cluster", "immutable": true, - "required": true + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] }, { "name": "resource_group_id", @@ -107845,11 +107894,9 @@ "computed": true }, { - "name": "vpc_id", + "name": "worker_pool_id", "type": "TypeString", - "description": "The vpc id where the cluster is", - "immutable": true, - "required": true + "computed": true }, { "name": "taints", @@ -107878,27 +107925,23 @@ } }, { - "name": "crk", - "type": "TypeString", - "description": "Root Key ID for boot volume encryption", - "optional": true + "name": "worker_count", + "type": "TypeInt", + "description": "The number of workers", + "required": true }, { - "name": "kms_account_id", - "type": "TypeString", - "description": "Account ID of kms instance holder - if not provided, defaults to the account in use", - "optional": true + "name": "autoscale_enabled", + "type": "TypeBool", + "description": "Autoscaling is enabled on the workerpool", + "computed": true }, { - "name": "cluster", + "name": "flavor", "type": "TypeString", - "description": "Cluster name", - "cloud_data_type": "cluster", + "description": "cluster node falvor", "immutable": true, - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "required": true }, { "name": "zones", @@ -107919,58 +107962,78 @@ "required": true } } - }, + } + ], + "ibm_container_worker_pool": [ { - "name": "worker_pool_id", + "name": "cluster", "type": "TypeString", - "computed": true + "description": "Cluster name", + "cloud_data_type": "cluster", + "immutable": true, + "required": true, + "cloud_data_range": [ + "resolved_to:id" + ] }, { - "name": "kms_instance_id", + "name": "entitlement", "type": "TypeString", - "description": "Instance ID for boot volume encryption", + "description": "Entitlement option reduces additional OCP Licence cost in Openshift Clusters", "optional": true }, { - "name": "autoscale_enabled", - "type": "TypeBool", - "description": "Autoscaling is enabled on the workerpool", + "name": "worker_pool_id", + "type": "TypeString", "computed": true }, { - "name": "labels", - "type": "TypeMap", - "description": "Labels", + "name": "taints", + "type": "TypeSet", + "description": "WorkerPool Taints", "optional": true, - "computed": true, "elem": { - "type": "TypeString" + "effect": { + "name": "effect", + "type": "TypeString", + "description": "Effect for taint. Accepted values are NoSchedule, PreferNoSchedule and NoExecute.", + "required": true + }, + "key": { + "name": "key", + "type": "TypeString", + "description": "Key for taint", + "required": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Value for taint.", + "required": true + } } }, { - "name": "entitlement", - "type": "TypeString", - "description": "Entitlement option reduces additional OCP Licence cost in Openshift Clusters", - "optional": true + "name": "autoscale_enabled", + "type": "TypeBool", + "description": "Autoscaling is enabled on the workerpool", + "computed": true }, { - "name": "operating_system", + "name": "machine_type", "type": "TypeString", - "description": "The operating system of the workers in the worker pool.", + "description": "worker nodes machine type", "immutable": true, - "optional": true, - "computed": true + "required": true }, { - "name": "secondary_storage", + "name": "hardware", "type": "TypeString", - "description": "The secondary storage option for the workers in the worker pool.", + "description": "Hardware type", + "default_value": "shared", "immutable": true, - "optional": true, - "computed": true - } - ], - "ibm_container_worker_pool": [ + "optional": true + }, { "name": "state", "type": "TypeString", @@ -107978,57 +108041,56 @@ "computed": true }, { - "name": "resource_group_id", + "name": "region", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true + "description": "The worker pool region", + "cloud_data_type": "region", + "optional": true, + "computed": true, + "deprecated": "This field is deprecated" }, { - "name": "autoscale_enabled", - "type": "TypeBool", - "description": "Autoscaling is enabled on the workerpool", - "computed": true + "name": "size_per_zone", + "type": "TypeInt", + "description": "Number of nodes per zone", + "required": true }, { - "name": "cluster", + "name": "operating_system", "type": "TypeString", - "description": "Cluster name", - "cloud_data_type": "cluster", + "description": "The operating system of the workers in the worker pool.", "immutable": true, - "required": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "optional": true, + "computed": true }, { - "name": "machine_type", - "type": "TypeString", - "description": "worker nodes machine type", + "name": "disk_encryption", + "type": "TypeBool", + "description": "worker node disk encrypted if set to true", + "default_value": true, "immutable": true, - "required": true + "optional": true }, { - "name": "size_per_zone", - "type": "TypeInt", - "description": "Number of nodes per zone", - "required": true + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true }, { - "name": "entitlement", + "name": "resource_controller_url", "type": "TypeString", - "description": "Entitlement option reduces additional OCP Licence cost in Openshift Clusters", - "optional": true + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", + "computed": true }, { - "name": "region", + "name": "worker_pool_name", "type": "TypeString", - "description": "The worker pool region", - "cloud_data_type": "region", - "optional": true, - "computed": true, - "deprecated": "This field is deprecated" + "description": "worker pool name", + "immutable": true, + "required": true }, { "name": "zones", @@ -108057,11 +108119,6 @@ } } }, - { - "name": "worker_pool_id", - "type": "TypeString", - "computed": true - }, { "name": "labels", "type": "TypeMap", @@ -108071,72 +108128,23 @@ "elem": { "type": "TypeString" } - }, - { - "name": "taints", - "type": "TypeSet", - "description": "WorkerPool Taints", - "optional": true, - "elem": { - "effect": { - "name": "effect", - "type": "TypeString", - "description": "Effect for taint. Accepted values are NoSchedule, PreferNoSchedule and NoExecute.", - "required": true - }, - "key": { - "name": "key", - "type": "TypeString", - "description": "Key for taint", - "required": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Value for taint.", - "required": true - } - } - }, + } + ], + "ibm_container_worker_pool_zone_attachment": [ { - "name": "hardware", - "type": "TypeString", - "description": "Hardware type", - "default_value": "shared", - "immutable": true, + "name": "wait_till_albs", + "type": "TypeBool", + "description": "wait_till_albs can be configured to wait for albs during the worker pool zone attachment.", + "default_value": true, "optional": true }, { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster", - "computed": true - }, - { - "name": "worker_pool_name", + "name": "zone", "type": "TypeString", - "description": "worker pool name", + "description": "Zone name", "immutable": true, "required": true }, - { - "name": "operating_system", - "type": "TypeString", - "description": "The operating system of the workers in the worker pool.", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "disk_encryption", - "type": "TypeBool", - "description": "worker node disk encrypted if set to true", - "default_value": true, - "immutable": true, - "optional": true - } - ], - "ibm_container_worker_pool_zone_attachment": [ { "name": "cluster", "type": "TypeString", @@ -108149,39 +108157,22 @@ ] }, { - "name": "public_vlan_id", + "name": "private_vlan_id", "type": "TypeString", "optional": true, "computed": true }, { - "name": "region", + "name": "public_vlan_id", "type": "TypeString", - "description": "The zone region", - "cloud_data_type": "region", "optional": true, - "computed": true, - "deprecated": "This field is deprecated" + "computed": true }, { "name": "worker_count", "type": "TypeInt", "computed": true }, - { - "name": "wait_till_albs", - "type": "TypeBool", - "description": "wait_till_albs can be configured to wait for albs during the worker pool zone attachment.", - "default_value": true, - "optional": true - }, - { - "name": "zone", - "type": "TypeString", - "description": "Zone name", - "immutable": true, - "required": true - }, { "name": "worker_pool", "type": "TypeString", @@ -108189,12 +108180,6 @@ "immutable": true, "required": true }, - { - "name": "private_vlan_id", - "type": "TypeString", - "optional": true, - "computed": true - }, { "name": "resource_group_id", "type": "TypeString", @@ -108202,87 +108187,20 @@ "cloud_data_type": "resource_group", "immutable": true, "optional": true - } - ], - "ibm_cos_bucket": [ - { - "name": "s3_endpoint_direct", - "type": "TypeString", - "description": "Direct endpoint for the COS bucket", - "computed": true - }, - { - "name": "retention_rule", - "type": "TypeList", - "description": "A retention policy is enabled at the IBM Cloud Object Storage bucket level. Minimum, maximum and default retention period are defined by this policy and apply to all objects in the bucket.", - "immutable": true, - "optional": true, - "elem": { - "default": { - "name": "default", - "type": "TypeInt", - "description": "If an object is stored in the bucket without specifying a custom retention period.", - "required": true - }, - "maximum": { - "name": "maximum", - "type": "TypeInt", - "description": "Maximum duration of time an object can be kept unmodified in the bucket.", - "required": true - }, - "minimum": { - "name": "minimum", - "type": "TypeInt", - "description": "Minimum duration of time an object must be kept unmodified in the bucket", - "required": true - }, - "permanent": { - "name": "permanent", - "type": "TypeBool", - "description": "Enable or disable the permanent retention policy on the bucket", - "default_value": false, - "optional": true - } - }, - "max_items": 1 }, { - "name": "noncurrent_version_expiration", - "type": "TypeList", - "description": "Enable configuration expire_rule to COS Bucket after a defined period of time", + "name": "region", + "type": "TypeString", + "description": "The zone region", + "cloud_data_type": "region", "optional": true, - "elem": { - "enable": { - "name": "enable", - "type": "TypeBool", - "description": "Enable or disable an expire rule for a bucket", - "required": true - }, - "noncurrent_days": { - "name": "noncurrent_days", - "type": "TypeInt", - "description": "Specifies the number of days when the specific rule action takes effect.", - "optional": true - }, - "prefix": { - "name": "prefix", - "type": "TypeString", - "description": "The rule applies to any objects with keys that match this prefix", - "optional": true, - "computed": true - }, - "rule_id": { - "name": "rule_id", - "type": "TypeString", - "description": "Unique identifier for the rule.Expire rules allow you to set a specific time frame after which objects are deleted. Set Rule ID for cos bucket", - "optional": true, - "computed": true - } - }, - "max_items": 1 - }, + "computed": true, + "deprecated": "This field is deprecated" + } + ], + "ibm_cos_bucket": [ { - "name": "key_protect", + "name": "kms_key_crn", "type": "TypeString", "description": "CRN of the key you want to use data at rest encryption", "immutable": true, @@ -108296,23 +108214,6 @@ "options": "ams03,che01,hkg02,mel01,mex01,mil01,mon01,osl01,par01,sjc04,sao01,seo01,sng01,tor01", "optional": true }, - { - "name": "storage_class", - "type": "TypeString", - "description": "Storage class info", - "immutable": true, - "options": "standard,vault,cold,smart,flex,onerate_active", - "optional": true, - "computed": true - }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private", - "default_value": "public", - "options": "public,private,direct", - "optional": true - }, { "name": "s3_endpoint_public", "type": "TypeString", @@ -108320,22 +108221,33 @@ "computed": true }, { - "name": "object_lock", - "type": "TypeBool", - "description": "Enable objectlock for the bucket. When enabled, buckets within the container vault can have Object Lock Configuration applied to the bucket.", - "optional": true - }, - { - "name": "resource_instance_id", - "type": "TypeString", - "description": "resource instance ID", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true, - "matches": "^crn:.+:.+:.+:.+:.+:a\\/[0-9a-f]{32}:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\:\\:$", - "cloud_data_range": [ - "service:cloud-object-storage" - ] + "name": "metrics_monitoring", + "type": "TypeList", + "description": "Enables sending metrics to IBM Cloud Monitoring.", + "optional": true, + "elem": { + "metrics_monitoring_crn": { + "name": "metrics_monitoring_crn", + "type": "TypeString", + "description": "Instance of IBM Cloud Monitoring that will receive the bucket metrics.", + "required": true + }, + "request_metrics_enabled": { + "name": "request_metrics_enabled", + "type": "TypeBool", + "description": "Request metrics will be sent to the monitoring service.", + "default_value": false, + "optional": true + }, + "usage_metrics_enabled": { + "name": "usage_metrics_enabled", + "type": "TypeBool", + "description": "Usage metrics will be sent to the monitoring service.", + "default_value": false, + "optional": true + } + }, + "max_items": 1 }, { "name": "abort_incomplete_multipart_upload_days", @@ -108372,6 +108284,41 @@ }, "max_items": 1 }, + { + "name": "retention_rule", + "type": "TypeList", + "description": "A retention policy is enabled at the IBM Cloud Object Storage bucket level. Minimum, maximum and default retention period are defined by this policy and apply to all objects in the bucket.", + "immutable": true, + "optional": true, + "elem": { + "default": { + "name": "default", + "type": "TypeInt", + "description": "If an object is stored in the bucket without specifying a custom retention period.", + "required": true + }, + "maximum": { + "name": "maximum", + "type": "TypeInt", + "description": "Maximum duration of time an object can be kept unmodified in the bucket.", + "required": true + }, + "minimum": { + "name": "minimum", + "type": "TypeInt", + "description": "Minimum duration of time an object must be kept unmodified in the bucket", + "required": true + }, + "permanent": { + "name": "permanent", + "type": "TypeBool", + "description": "Enable or disable the permanent retention policy on the bucket", + "default_value": false, + "optional": true + } + }, + "max_items": 1 + }, { "name": "object_versioning", "type": "TypeList", @@ -108389,29 +108336,28 @@ "max_items": 1 }, { - "name": "hard_quota", - "type": "TypeInt", - "description": "sets a maximum amount of storage (in bytes) available for a bucket", - "optional": true - }, - { - "name": "force_delete", - "type": "TypeBool", - "description": "COS buckets need to be empty before they can be deleted. force_delete option empty the bucket and delete it.", - "default_value": true, - "optional": true + "name": "resource_instance_id", + "type": "TypeString", + "description": "resource instance ID", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true, + "matches": "^crn:.+:.+:.+:.+:.+:a\\/[0-9a-f]{32}:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\:\\:$", + "cloud_data_range": [ + "service:cloud-object-storage" + ] }, { - "name": "satellite_location_id", + "name": "key_protect", "type": "TypeString", - "description": "Provide satellite location info.", + "description": "CRN of the key you want to use data at rest encryption", "immutable": true, "optional": true }, { - "name": "region_location", + "name": "satellite_location_id", "type": "TypeString", - "description": "Region Location info.", + "description": "Provide satellite location info.", "immutable": true, "optional": true }, @@ -108424,35 +108370,6 @@ "type": "TypeString" } }, - { - "name": "activity_tracking", - "type": "TypeList", - "description": "Enables sending log data to Activity Tracker and LogDNA to provide visibility into object read and write events", - "optional": true, - "elem": { - "activity_tracker_crn": { - "name": "activity_tracker_crn", - "type": "TypeString", - "description": "The instance of Activity Tracker that will receive object event data", - "required": true - }, - "read_data_events": { - "name": "read_data_events", - "type": "TypeBool", - "description": "If set to true, all object read events will be sent to Activity Tracker.", - "default_value": false, - "optional": true - }, - "write_data_events": { - "name": "write_data_events", - "type": "TypeBool", - "description": "If set to true, all object write events will be sent to Activity Tracker.", - "default_value": false, - "optional": true - } - }, - "max_items": 1 - }, { "name": "archive_rule", "type": "TypeList", @@ -108487,35 +108404,6 @@ }, "max_items": 1 }, - { - "name": "metrics_monitoring", - "type": "TypeList", - "description": "Enables sending metrics to IBM Cloud Monitoring.", - "optional": true, - "elem": { - "metrics_monitoring_crn": { - "name": "metrics_monitoring_crn", - "type": "TypeString", - "description": "Instance of IBM Cloud Monitoring that will receive the bucket metrics.", - "required": true - }, - "request_metrics_enabled": { - "name": "request_metrics_enabled", - "type": "TypeBool", - "description": "Request metrics will be sent to the monitoring service.", - "default_value": false, - "optional": true - }, - "usage_metrics_enabled": { - "name": "usage_metrics_enabled", - "type": "TypeBool", - "description": "Usage metrics will be sent to the monitoring service.", - "default_value": false, - "optional": true - } - }, - "max_items": 1 - }, { "name": "expire_rule", "type": "TypeList", @@ -108563,6 +108451,54 @@ }, "max_items": 1000 }, + { + "name": "noncurrent_version_expiration", + "type": "TypeList", + "description": "Enable configuration expire_rule to COS Bucket after a defined period of time", + "optional": true, + "elem": { + "enable": { + "name": "enable", + "type": "TypeBool", + "description": "Enable or disable an expire rule for a bucket", + "required": true + }, + "noncurrent_days": { + "name": "noncurrent_days", + "type": "TypeInt", + "description": "Specifies the number of days when the specific rule action takes effect.", + "optional": true + }, + "prefix": { + "name": "prefix", + "type": "TypeString", + "description": "The rule applies to any objects with keys that match this prefix", + "optional": true, + "computed": true + }, + "rule_id": { + "name": "rule_id", + "type": "TypeString", + "description": "Unique identifier for the rule.Expire rules allow you to set a specific time frame after which objects are deleted. Set Rule ID for cos bucket", + "optional": true, + "computed": true + } + }, + "max_items": 1 + }, + { + "name": "force_delete", + "type": "TypeBool", + "description": "COS buckets need to be empty before they can be deleted. force_delete option empty the bucket and delete it.", + "default_value": true, + "optional": true + }, + { + "name": "object_lock", + "type": "TypeBool", + "description": "Enable objectlock for the bucket. When enabled, buckets within the container vault can have Object Lock Configuration applied to the bucket.", + "optional": true + }, { "name": "bucket_name", "type": "TypeString", @@ -108578,18 +108514,19 @@ "computed": true }, { - "name": "kms_key_crn", + "name": "cross_region_location", "type": "TypeString", - "description": "CRN of the key you want to use data at rest encryption", + "description": "Cros region location info", "immutable": true, + "options": "us,eu,ap", "optional": true }, { - "name": "cross_region_location", + "name": "endpoint_type", "type": "TypeString", - "description": "Cros region location info", - "immutable": true, - "options": "us,eu,ap", + "description": "public or private", + "default_value": "public", + "options": "public,private,direct", "optional": true }, { @@ -108597,53 +108534,109 @@ "type": "TypeString", "description": "Private endpoint for the COS bucket", "computed": true + }, + { + "name": "region_location", + "type": "TypeString", + "description": "Region Location info.", + "immutable": true, + "optional": true + }, + { + "name": "storage_class", + "type": "TypeString", + "description": "Storage class info", + "immutable": true, + "options": "standard,vault,cold,smart,flex,onerate_active", + "optional": true, + "computed": true + }, + { + "name": "s3_endpoint_direct", + "type": "TypeString", + "description": "Direct endpoint for the COS bucket", + "computed": true + }, + { + "name": "activity_tracking", + "type": "TypeList", + "description": "Enables sending log data to Activity Tracker and LogDNA to provide visibility into object read and write events", + "optional": true, + "elem": { + "activity_tracker_crn": { + "name": "activity_tracker_crn", + "type": "TypeString", + "description": "The instance of Activity Tracker that will receive object event data", + "required": true + }, + "read_data_events": { + "name": "read_data_events", + "type": "TypeBool", + "description": "If set to true, all object read events will be sent to Activity Tracker.", + "default_value": false, + "optional": true + }, + "write_data_events": { + "name": "write_data_events", + "type": "TypeBool", + "description": "If set to true, all object write events will be sent to Activity Tracker.", + "default_value": false, + "optional": true + } + }, + "max_items": 1 + }, + { + "name": "hard_quota", + "type": "TypeInt", + "description": "sets a maximum amount of storage (in bytes) available for a bucket", + "optional": true } ], "ibm_cos_bucket_object": [ { - "name": "body", + "name": "content_length", + "type": "TypeInt", + "description": "COS object content length", + "computed": true + }, + { + "name": "object_sql_url", "type": "TypeString", - "description": "COS object body", + "description": "Access the object using an SQL Query instance.The reference url is used to perform queries against objects storing structured data.", "computed": true }, { - "name": "content", + "name": "object_lock_mode", "type": "TypeString", - "description": "COS object content", + "description": "Retention modes apply different levels of protection to the objects.", "optional": true }, { - "name": "content_file", + "name": "website_redirect", "type": "TypeString", - "description": "COS object content file path", + "description": "Redirect a request to another object or an URL", "optional": true }, { - "name": "content_type", + "name": "body", "type": "TypeString", - "description": "COS object content type", + "description": "COS object body", "computed": true }, { - "name": "bucket_location", + "name": "bucket_crn", "type": "TypeString", - "description": "COS bucket location", + "description": "COS bucket CRN", "immutable": true, "required": true }, { - "name": "content_base64", + "name": "content_file", "type": "TypeString", - "description": "COS object content in base64 encoding", + "description": "COS object content file path", "optional": true }, - { - "name": "key", - "type": "TypeString", - "description": "COS object key", - "immutable": true, - "required": true - }, { "name": "last_modified", "type": "TypeString", @@ -108651,10 +108644,11 @@ "computed": true }, { - "name": "object_sql_url", - "type": "TypeString", - "description": "Access the object using an SQL Query instance.The reference url is used to perform queries against objects storing structured data.", - "computed": true + "name": "force_delete", + "type": "TypeBool", + "description": "COS buckets need to be empty before they can be deleted. force_delete option empty the bucket and delete it.", + "default_value": true, + "optional": true }, { "name": "object_lock_retain_until_date", @@ -108663,16 +108657,17 @@ "optional": true }, { - "name": "website_redirect", + "name": "bucket_location", "type": "TypeString", - "description": "Redirect a request to another object or an URL", - "optional": true + "description": "COS bucket location", + "immutable": true, + "required": true }, { - "name": "content_length", - "type": "TypeInt", - "description": "COS object content length", - "computed": true + "name": "content_base64", + "type": "TypeString", + "description": "COS object content in base64 encoding", + "optional": true }, { "name": "etag", @@ -108686,13 +108681,6 @@ "type": "TypeString", "computed": true }, - { - "name": "force_delete", - "type": "TypeBool", - "description": "COS buckets need to be empty before they can be deleted. force_delete option empty the bucket and delete it.", - "default_value": true, - "optional": true - }, { "name": "object_lock_legal_hold_status", "type": "TypeString", @@ -108700,17 +108688,16 @@ "optional": true }, { - "name": "object_lock_mode", + "name": "content", "type": "TypeString", - "description": "Retention modes apply different levels of protection to the objects.", + "description": "COS object content", "optional": true }, { - "name": "bucket_crn", + "name": "content_type", "type": "TypeString", - "description": "COS bucket CRN", - "immutable": true, - "required": true + "description": "COS object content type", + "computed": true }, { "name": "endpoint_type", @@ -108718,9 +108705,23 @@ "description": "COS endpoint type: public, private, direct", "default_value": "public", "optional": true + }, + { + "name": "key", + "type": "TypeString", + "description": "COS object key", + "immutable": true, + "required": true } ], "ibm_cos_bucket_object_lock_configuration": [ + { + "name": "bucket_crn", + "type": "TypeString", + "description": "COS bucket CRN", + "immutable": true, + "required": true + }, { "name": "bucket_location", "type": "TypeString", @@ -108784,13 +108785,6 @@ } }, "max_items": 1 - }, - { - "name": "bucket_crn", - "type": "TypeString", - "description": "COS bucket CRN", - "immutable": true, - "required": true } ], "ibm_cos_bucket_replication_rule": [ @@ -109025,42 +109019,41 @@ ], "ibm_cr_namespace": [ { - "name": "name", + "name": "crn", "type": "TypeString", - "description": "The name of the namespace.", - "immutable": true, - "required": true, - "min_length": 4, - "max_length": 30, - "matches": "^[a-z0-9]+[a-z0-9_-]+[a-z0-9]+$" + "description": "If the namespace has been assigned to a resource group, this is the IBM Cloud CRN representing the namespace.", + "cloud_data_type": "crn", + "computed": true }, { - "name": "resource_group_id", + "name": "resource_created_date", "type": "TypeString", - "description": "The ID of the resource group that the namespace will be created within.", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, + "description": "When the namespace was assigned to a resource group.", "computed": true }, { - "name": "account", + "name": "created_on", "type": "TypeString", - "description": "The IBM Cloud account that owns the namespace.", - "computed": true + "description": "When the namespace was created.", + "computed": true, + "deprecated": "This field is deprecated" }, { - "name": "crn", + "name": "updated_on", "type": "TypeString", - "description": "If the namespace has been assigned to a resource group, this is the IBM Cloud CRN representing the namespace.", - "cloud_data_type": "crn", - "computed": true + "description": "When the namespace was last updated.", + "computed": true, + "deprecated": "This field is deprecated" }, { - "name": "resource_created_date", + "name": "name", "type": "TypeString", - "description": "When the namespace was assigned to a resource group.", - "computed": true + "description": "The name of the namespace.", + "immutable": true, + "required": true, + "min_length": 4, + "max_length": 30, + "matches": "^[a-z0-9]+[a-z0-9_-]+[a-z0-9]+$" }, { "name": "tags", @@ -109073,30 +109066,31 @@ } }, { - "name": "created_date", + "name": "account", "type": "TypeString", - "description": "When the namespace was created.", + "description": "The IBM Cloud account that owns the namespace.", "computed": true }, { - "name": "updated_date", + "name": "created_date", "type": "TypeString", - "description": "When the namespace was last updated.", + "description": "When the namespace was created.", "computed": true }, { - "name": "created_on", + "name": "resource_group_id", "type": "TypeString", - "description": "When the namespace was created.", - "computed": true, - "deprecated": "This field is deprecated" + "description": "The ID of the resource group that the namespace will be created within.", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true }, { - "name": "updated_on", + "name": "updated_date", "type": "TypeString", "description": "When the namespace was last updated.", - "computed": true, - "deprecated": "This field is deprecated" + "computed": true } ], "ibm_cr_retention_policy": [ @@ -109122,97 +109116,43 @@ ], "ibm_database": [ { - "name": "connectionstrings", - "type": "TypeList", - "computed": true, - "elem": { - "bundlebase64": { - "name": "bundlebase64", - "type": "TypeString", - "description": "Cassandra base64 encoding", - "computed": true - }, - "bundlename": { - "name": "bundlename", - "type": "TypeString", - "description": "Cassandra Bundle Name", - "computed": true - }, - "certbase64": { - "name": "certbase64", - "type": "TypeString", - "description": "Certificate in base64 encoding", - "computed": true - }, - "certname": { - "name": "certname", - "type": "TypeString", - "description": "Certificate Name", - "computed": true - }, - "composed": { - "name": "composed", - "type": "TypeString", - "description": "Connection string", - "computed": true - }, - "database": { - "name": "database", - "type": "TypeString", - "description": "DB name", - "computed": true - }, - "hosts": { - "name": "hosts", - "type": "TypeList", - "optional": true, - "elem": { - "hostname": { - "name": "hostname", - "type": "TypeString", - "description": "DB host name", - "computed": true - }, - "port": { - "name": "port", - "type": "TypeString", - "description": "DB port", - "computed": true - } - } - }, + "name": "point_in_time_recovery_deployment_id", + "type": "TypeString", + "description": "The CRN of source instance", + "optional": true + }, + { + "name": "users", + "type": "TypeSet", + "optional": true, + "elem": { "name": { "name": "name", "type": "TypeString", "description": "User name", - "computed": true + "required": true }, "password": { "name": "password", "type": "TypeString", - "description": "Password", - "computed": true - }, - "path": { - "name": "path", - "type": "TypeString", - "description": "DB path", - "computed": true + "description": "User password", + "secure": true, + "required": true }, - "queryoptions": { - "name": "queryoptions", + "role": { + "name": "role", "type": "TypeString", - "description": "DB query options", - "computed": true + "description": "User role. Only available for ops_manager user type.", + "optional": true }, - "scheme": { - "name": "scheme", + "type": { + "name": "type", "type": "TypeString", - "description": "DB scheme", - "computed": true + "description": "User type", + "default_value": "database", + "optional": true } - }, - "deprecated": "This field is deprecated, please use ibm_database_connection instead" + } }, { "name": "group", @@ -109279,11 +109219,29 @@ } }, { - "name": "location", + "name": "resource_crn", "type": "TypeString", - "description": "The location or the region in which Database instance exists", - "cloud_data_type": "region", - "required": true + "description": "The crn of the resource", + "computed": true + }, + { + "name": "guid", + "type": "TypeString", + "description": "Unique identifier of resource instance", + "computed": true + }, + { + "name": "adminuser", + "type": "TypeString", + "description": "The admin user id for the instance", + "computed": true + }, + { + "name": "key_protect_instance", + "type": "TypeString", + "description": "The CRN of Key protect instance", + "immutable": true, + "optional": true }, { "name": "backup_id", @@ -109298,18 +109256,160 @@ "optional": true }, { - "name": "point_in_time_recovery_time", - "type": "TypeString", - "description": "The point in time recovery time stamp of the deployed instance", - "optional": true + "name": "groups", + "type": "TypeList", + "computed": true, + "elem": { + "count": { + "name": "count", + "type": "TypeInt", + "description": "Count of scaling groups for the instance", + "computed": true + }, + "cpu": { + "name": "cpu", + "type": "TypeList", + "computed": true, + "elem": { + "allocation_count": { + "name": "allocation_count", + "type": "TypeInt", + "description": "The current cpu allocation count", + "computed": true + }, + "can_scale_down": { + "name": "can_scale_down", + "type": "TypeBool", + "description": "Can the number of CPUs be scaled down as well as up", + "computed": true + }, + "is_adjustable": { + "name": "is_adjustable", + "type": "TypeBool", + "description": "Are the number of CPUs adjustable", + "computed": true + }, + "minimum_count": { + "name": "minimum_count", + "type": "TypeInt", + "description": "The minimum number of cpus allowed", + "computed": true + }, + "step_size_count": { + "name": "step_size_count", + "type": "TypeInt", + "description": "The number of CPUs allowed to step up or down by", + "computed": true + }, + "units": { + "name": "units", + "type": "TypeString", + "description": "The .", + "computed": true + } + } + }, + "disk": { + "name": "disk", + "type": "TypeList", + "computed": true, + "elem": { + "allocation_mb": { + "name": "allocation_mb", + "type": "TypeInt", + "description": "The current disk allocation", + "computed": true + }, + "can_scale_down": { + "name": "can_scale_down", + "type": "TypeBool", + "description": "Can the disk size be scaled down as well as up", + "computed": true + }, + "is_adjustable": { + "name": "is_adjustable", + "type": "TypeBool", + "description": "Is the disk size adjustable", + "computed": true + }, + "minimum_mb": { + "name": "minimum_mb", + "type": "TypeInt", + "description": "The minimum disk size allowed", + "computed": true + }, + "step_size_mb": { + "name": "step_size_mb", + "type": "TypeInt", + "description": "The step size disk increases or decreases in", + "computed": true + }, + "units": { + "name": "units", + "type": "TypeString", + "description": "The units disk is allocated in", + "computed": true + } + } + }, + "group_id": { + "name": "group_id", + "type": "TypeString", + "description": "Scaling group name", + "computed": true + }, + "memory": { + "name": "memory", + "type": "TypeList", + "computed": true, + "elem": { + "allocation_mb": { + "name": "allocation_mb", + "type": "TypeInt", + "description": "The current memory allocation for a group instance", + "computed": true + }, + "can_scale_down": { + "name": "can_scale_down", + "type": "TypeBool", + "description": "Can memory scale down as well as up.", + "computed": true + }, + "is_adjustable": { + "name": "is_adjustable", + "type": "TypeBool", + "description": "Is the memory size adjustable.", + "computed": true + }, + "minimum_mb": { + "name": "minimum_mb", + "type": "TypeInt", + "description": "The minimum memory size for a group instance", + "computed": true + }, + "step_size_mb": { + "name": "step_size_mb", + "type": "TypeInt", + "description": "The step size memory increases or decreases in.", + "computed": true + }, + "units": { + "name": "units", + "type": "TypeString", + "description": "The units memory is allocated in.", + "computed": true + } + } + } + } }, { - "name": "node_cpu_allocation_count", - "type": "TypeInt", - "description": "CPU allocation per node", - "optional": true, - "computed": true, - "deprecated": "use group instead" + "name": "service", + "type": "TypeString", + "description": "The name of the Cloud Internet database service", + "immutable": true, + "required": true, + "options": "databases-for-etcd, databases-for-postgresql, databases-for-redis, databases-for-elasticsearch, databases-for-mongodb, messages-for-rabbitmq, databases-for-mysql, databases-for-cassandra, databases-for-enterprisedb" }, { "name": "tags", @@ -109324,88 +109424,48 @@ } }, { - "name": "service", + "name": "location", "type": "TypeString", - "description": "The name of the Cloud Internet database service", - "immutable": true, - "required": true, - "options": "databases-for-etcd, databases-for-postgresql, databases-for-redis, databases-for-elasticsearch, databases-for-mongodb, messages-for-rabbitmq, databases-for-mysql, databases-for-cassandra, databases-for-enterprisedb" + "description": "The location or the region in which Database instance exists", + "cloud_data_type": "region", + "required": true }, { - "name": "plan", + "name": "configuration_schema", "type": "TypeString", - "description": "The plan type of the Database instance", - "immutable": true, - "required": true, - "options": "standard, enterprise, enterprise-sharding" + "description": "The configuration schema in JSON format", + "computed": true }, { - "name": "members_cpu_allocation_count", - "type": "TypeInt", - "description": "CPU allocation required for cluster", - "optional": true, - "computed": true, - "deprecated": "use group instead" + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", + "computed": true }, { - "name": "node_count", - "type": "TypeInt", - "description": "Total number of nodes in the cluster", + "name": "resource_group_id", + "type": "TypeString", + "description": "The id of the resource group in which the Database instance is present", + "cloud_data_type": "resource_group", + "immutable": true, "optional": true, "computed": true, - "deprecated": "use group instead" + "cloud_data_range": [ + "resolved_to:id" + ] }, { - "name": "users", - "type": "TypeSet", - "optional": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "User name", - "required": true - }, - "password": { - "name": "password", - "type": "TypeString", - "description": "User password", - "secure": true, - "required": true - }, - "role": { - "name": "role", - "type": "TypeString", - "description": "User role. Only available for ops_manager user type.", - "optional": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "User type", - "default_value": "database", - "optional": true - } - } + "name": "adminpassword", + "type": "TypeString", + "description": "The admin user password for the instance", + "secure": true, + "optional": true }, { - "name": "allowlist", - "type": "TypeSet", - "optional": true, - "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "Allowlist IP address in CIDR notation", - "optional": true - }, - "description": { - "name": "description", - "type": "TypeString", - "description": "Unique allow list description", - "optional": true - } - } + "name": "point_in_time_recovery_time", + "type": "TypeString", + "description": "The point in time recovery time stamp of the deployed instance", + "optional": true }, { "name": "logical_replication_slot", @@ -109432,60 +109492,6 @@ } } }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The resource instance status", - "computed": true - }, - { - "name": "configuration_schema", - "type": "TypeString", - "description": "The configuration schema in JSON format", - "computed": true - }, - { - "name": "node_disk_allocation_mb", - "type": "TypeInt", - "description": "Disk allocation per node", - "optional": true, - "computed": true, - "deprecated": "use group instead" - }, - { - "name": "service_endpoints", - "type": "TypeString", - "description": "Types of the service endpoints. Possible values are 'public', 'private', 'public-and-private'.", - "default_value": "public", - "options": "public, private, public-and-private", - "optional": true - }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, - { - "name": "guid", - "type": "TypeString", - "description": "Unique identifier of resource instance", - "computed": true - }, - { - "name": "members_disk_allocation_mb", - "type": "TypeInt", - "description": "Disk allocation required for cluster", - "optional": true, - "computed": true, - "deprecated": "use group instead" - }, { "name": "auto_scaling", "type": "TypeList", @@ -109668,68 +109674,55 @@ "max_items": 1 }, { - "name": "version", + "name": "resource_name", "type": "TypeString", - "description": "The database version to provision if specified", - "immutable": true, - "optional": true, + "description": "The name of the resource", "computed": true }, { - "name": "adminuser", + "name": "resource_group_name", "type": "TypeString", - "description": "The admin user id for the instance", + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "members_memory_allocation_mb", - "type": "TypeInt", - "description": "Memory allocation required for cluster", - "optional": true, - "computed": true, - "deprecated": "use group instead" - }, - { - "name": "backup_encryption_key_crn", + "name": "configuration", "type": "TypeString", - "description": "The Backup Encryption Key CRN", - "immutable": true, + "description": "The configuration in JSON format", "optional": true }, { - "name": "resource_controller_url", + "name": "version", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", + "description": "The database version to provision if specified", + "immutable": true, + "optional": true, "computed": true }, { - "name": "node_memory_allocation_mb", - "type": "TypeInt", - "description": "Memory allocation per node", + "name": "allowlist", + "type": "TypeSet", "optional": true, - "computed": true, - "deprecated": "use group instead" - }, - { - "name": "plan_validation", - "type": "TypeBool", - "description": "For elasticsearch and postgres perform database parameter validation during the plan phase. Otherwise, database parameter validation happens in apply phase.", - "default_value": true, - "optional": true - }, - { - "name": "key_protect_instance", - "type": "TypeString", - "description": "The CRN of Key protect instance", - "immutable": true, - "optional": true + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "Allowlist IP address in CIDR notation", + "optional": true + }, + "description": { + "name": "description", + "type": "TypeString", + "description": "Unique allow list description", + "optional": true + } + } }, { - "name": "key_protect_key", + "name": "resource_status", "type": "TypeString", - "description": "The CRN of Key protect key", - "immutable": true, - "optional": true + "description": "The status of the resource", + "computed": true }, { "name": "name", @@ -109738,198 +109731,143 @@ "required": true }, { - "name": "resource_group_id", + "name": "service_endpoints", "type": "TypeString", - "description": "The id of the resource group in which the Database instance is present", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "description": "Types of the service endpoints. Possible values are 'public', 'private', 'public-and-private'.", + "default_value": "public", + "options": "public, private, public-and-private", + "optional": true }, { - "name": "adminpassword", + "name": "key_protect_key", "type": "TypeString", - "description": "The admin user password for the instance", - "secure": true, + "description": "The CRN of Key protect key", + "immutable": true, "optional": true }, { - "name": "configuration", + "name": "backup_encryption_key_crn", "type": "TypeString", - "description": "The configuration in JSON format", + "description": "The Backup Encryption Key CRN", + "immutable": true, "optional": true }, { - "name": "groups", + "name": "connectionstrings", "type": "TypeList", "computed": true, "elem": { - "count": { - "name": "count", - "type": "TypeInt", - "description": "Count of scaling groups for the instance", + "bundlebase64": { + "name": "bundlebase64", + "type": "TypeString", + "description": "Cassandra base64 encoding", "computed": true }, - "cpu": { - "name": "cpu", - "type": "TypeList", - "computed": true, - "elem": { - "allocation_count": { - "name": "allocation_count", - "type": "TypeInt", - "description": "The current cpu allocation count", - "computed": true - }, - "can_scale_down": { - "name": "can_scale_down", - "type": "TypeBool", - "description": "Can the number of CPUs be scaled down as well as up", - "computed": true - }, - "is_adjustable": { - "name": "is_adjustable", - "type": "TypeBool", - "description": "Are the number of CPUs adjustable", - "computed": true - }, - "minimum_count": { - "name": "minimum_count", - "type": "TypeInt", - "description": "The minimum number of cpus allowed", - "computed": true - }, - "step_size_count": { - "name": "step_size_count", - "type": "TypeInt", - "description": "The number of CPUs allowed to step up or down by", - "computed": true - }, - "units": { - "name": "units", - "type": "TypeString", - "description": "The .", - "computed": true - } - } + "bundlename": { + "name": "bundlename", + "type": "TypeString", + "description": "Cassandra Bundle Name", + "computed": true }, - "disk": { - "name": "disk", - "type": "TypeList", - "computed": true, - "elem": { - "allocation_mb": { - "name": "allocation_mb", - "type": "TypeInt", - "description": "The current disk allocation", - "computed": true - }, - "can_scale_down": { - "name": "can_scale_down", - "type": "TypeBool", - "description": "Can the disk size be scaled down as well as up", - "computed": true - }, - "is_adjustable": { - "name": "is_adjustable", - "type": "TypeBool", - "description": "Is the disk size adjustable", - "computed": true - }, - "minimum_mb": { - "name": "minimum_mb", - "type": "TypeInt", - "description": "The minimum disk size allowed", - "computed": true - }, - "step_size_mb": { - "name": "step_size_mb", - "type": "TypeInt", - "description": "The step size disk increases or decreases in", - "computed": true - }, - "units": { - "name": "units", - "type": "TypeString", - "description": "The units disk is allocated in", - "computed": true - } - } + "certbase64": { + "name": "certbase64", + "type": "TypeString", + "description": "Certificate in base64 encoding", + "computed": true }, - "group_id": { - "name": "group_id", + "certname": { + "name": "certname", "type": "TypeString", - "description": "Scaling group name", + "description": "Certificate Name", "computed": true }, - "memory": { - "name": "memory", + "composed": { + "name": "composed", + "type": "TypeString", + "description": "Connection string", + "computed": true + }, + "database": { + "name": "database", + "type": "TypeString", + "description": "DB name", + "computed": true + }, + "hosts": { + "name": "hosts", "type": "TypeList", - "computed": true, + "optional": true, "elem": { - "allocation_mb": { - "name": "allocation_mb", - "type": "TypeInt", - "description": "The current memory allocation for a group instance", - "computed": true - }, - "can_scale_down": { - "name": "can_scale_down", - "type": "TypeBool", - "description": "Can memory scale down as well as up.", - "computed": true - }, - "is_adjustable": { - "name": "is_adjustable", - "type": "TypeBool", - "description": "Is the memory size adjustable.", - "computed": true - }, - "minimum_mb": { - "name": "minimum_mb", - "type": "TypeInt", - "description": "The minimum memory size for a group instance", - "computed": true - }, - "step_size_mb": { - "name": "step_size_mb", - "type": "TypeInt", - "description": "The step size memory increases or decreases in.", + "hostname": { + "name": "hostname", + "type": "TypeString", + "description": "DB host name", "computed": true }, - "units": { - "name": "units", + "port": { + "name": "port", "type": "TypeString", - "description": "The units memory is allocated in.", + "description": "DB port", "computed": true } } + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "User name", + "computed": true + }, + "password": { + "name": "password", + "type": "TypeString", + "description": "Password", + "computed": true + }, + "path": { + "name": "path", + "type": "TypeString", + "description": "DB path", + "computed": true + }, + "queryoptions": { + "name": "queryoptions", + "type": "TypeString", + "description": "DB query options", + "computed": true + }, + "scheme": { + "name": "scheme", + "type": "TypeString", + "description": "DB scheme", + "computed": true } - } - }, - { - "name": "point_in_time_recovery_deployment_id", - "type": "TypeString", - "description": "The CRN of source instance", - "optional": true + }, + "deprecated": "This field is deprecated, please use ibm_database_connection instead" }, { - "name": "resource_crn", + "name": "plan", "type": "TypeString", - "description": "The crn of the resource", - "computed": true + "description": "The plan type of the Database instance", + "immutable": true, + "required": true, + "options": "standard, enterprise, enterprise-sharding, platinum" }, { - "name": "resource_status", + "name": "status", "type": "TypeString", - "description": "The status of the resource", + "description": "The resource instance status", "computed": true } ], "ibm_dl_gateway": [ + { + "name": "bgp_ibm_cidr", + "type": "TypeString", + "description": "BGP IBM CIDR", + "optional": true, + "computed": true + }, { "name": "resource_group", "type": "TypeString", @@ -109940,57 +109878,129 @@ "computed": true }, { - "name": "resource_controller_url", + "name": "created_at", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "The date and time resource was created", "computed": true }, { - "name": "bfd_multiplier", - "type": "TypeInt", - "description": "BFD Multiplier", - "min_value": "1", - "max_value": "255", + "name": "link_status_updated_at", + "type": "TypeString", + "description": "Date and time Link status was updated", + "computed": true + }, + { + "name": "authentication_key", + "type": "TypeString", + "description": "BGP MD5 authentication key", "optional": true }, { - "name": "speed_mbps", + "name": "as_prepends", + "type": "TypeList", + "description": "List of AS Prepend configuration information", + "optional": true, + "elem": { + "created_at": { + "name": "created_at", + "type": "TypeString", + "description": "The date and time AS Prepend was created", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this AS Prepend", + "optional": true, + "computed": true + }, + "length": { + "name": "length", + "type": "TypeInt", + "description": "Number of times the ASN to appended to the AS Path", + "required": true + }, + "policy": { + "name": "policy", + "type": "TypeString", + "description": "Route type this AS Prepend applies to", + "required": true + }, + "prefix": { + "name": "prefix", + "type": "TypeString", + "description": "Comma separated list of prefixes this AS Prepend applies to. Maximum of 10 prefixes. If not specified, this AS Prepend applies to all prefixes", + "optional": true, + "deprecated": "prefix will be deprecated and support will be removed. Use specific_prefixes instead" + }, + "specific_prefixes": { + "name": "specific_prefixes", + "type": "TypeList", + "description": "Array of prefixes this AS Prepend applies to", + "optional": true, + "elem": { + "type": "TypeString" + }, + "max_items": 10, + "min_items": 1 + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "The date and time AS Prepend was updated", + "computed": true + } + } + }, + { + "name": "bgp_asn", "type": "TypeInt", - "description": "Gateway speed in megabits per second", + "description": "BGP ASN", "required": true }, { - "name": "crn", + "name": "resource_name", "type": "TypeString", - "description": "The CRN (Cloud Resource Name) of this gateway", - "cloud_data_type": "crn", + "description": "The name of the resource", "computed": true }, { - "name": "connection_mode", + "name": "bfd_status", "type": "TypeString", - "description": "Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection", - "options": "direct, transit", + "description": "Gateway BFD status", "optional": true, "computed": true }, { - "name": "customer_name", + "name": "metered", + "type": "TypeBool", + "description": "Metered billing option", + "required": true + }, + { + "name": "operational_status", "type": "TypeString", - "description": "Customer name", - "immutable": true, - "optional": true + "description": "Gateway operational status", + "computed": true }, { - "name": "provider_api_managed", - "type": "TypeBool", - "description": "Indicates whether gateway was created through a provider portal", + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { - "name": "resource_crn", + "name": "bgp_base_cidr", "type": "TypeString", - "description": "The crn of the resource", + "description": "BGP base CIDR", + "optional": true + }, + { + "name": "port", + "type": "TypeString", + "description": "Gateway port", + "immutable": true, + "optional": true, "computed": true }, { @@ -110001,76 +110011,268 @@ "computed": true }, { - "name": "completion_notice_reject_reason", - "type": "TypeString", - "description": "Reason for completion notice rejection", + "name": "macsec_config", + "type": "TypeList", + "description": "MACsec configuration information", + "optional": true, + "elem": { + "active": { + "name": "active", + "type": "TypeBool", + "description": "Indicate whether MACsec protection should be active (true) or inactive (false) for this MACsec enabled gateway", + "required": true + }, + "active_cak": { + "name": "active_cak", + "type": "TypeString", + "description": "Active connectivity association key.", + "computed": true + }, + "cipher_suite": { + "name": "cipher_suite", + "type": "TypeString", + "description": "SAK cipher suite", + "computed": true + }, + "confidentiality_offset": { + "name": "confidentiality_offset", + "type": "TypeInt", + "description": "Confidentiality Offset", + "computed": true + }, + "cryptographic_algorithm": { + "name": "cryptographic_algorithm", + "type": "TypeString", + "description": "Cryptographic Algorithm", + "computed": true + }, + "fallback_cak": { + "name": "fallback_cak", + "type": "TypeString", + "description": "Fallback connectivity association key. Keys used for MACsec configuration must have names with an even number of characters from [0-9a-fA-F]", + "optional": true + }, + "key_server_priority": { + "name": "key_server_priority", + "type": "TypeInt", + "description": "Key Server Priority", + "computed": true + }, + "primary_cak": { + "name": "primary_cak", + "type": "TypeString", + "description": "Desired primary connectivity association key. Keys for a MACsec configuration must have names with an even number of characters from [0-9a-fA-F]", + "required": true + }, + "sak_expiry_time": { + "name": "sak_expiry_time", + "type": "TypeInt", + "description": "Secure Association Key (SAK) expiry time in seconds", + "computed": true + }, + "security_policy": { + "name": "security_policy", + "type": "TypeString", + "description": "Packets without MACsec headers are not dropped when security_policy is should_secure.", + "computed": true + }, + "status": { + "name": "status", + "type": "TypeString", + "description": "The current status of MACsec on the device for this gateway", + "computed": true + }, + "window_size": { + "name": "window_size", + "type": "TypeInt", + "description": "Replay protection window size", + "default_value": 148809600, + "optional": true + } + }, + "max_items": 1 + }, + { + "name": "bgp_ibm_asn", + "type": "TypeInt", + "description": "IBM BGP ASN", "computed": true }, { - "name": "created_at", + "name": "tags", + "type": "TypeSet", + "description": "Tags for the direct link gateway", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "resource_group_name", "type": "TypeString", - "description": "The date and time resource was created", + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "default_export_route_filter", + "name": "cross_connect_router", "type": "TypeString", - "description": "The default directional route filter action that applies to routes that do not match any directional route filters", - "options": "permit, deny", + "description": "Cross connect router", + "immutable": true, + "optional": true + }, + { + "name": "carrier_name", + "type": "TypeString", + "description": "Carrier name", + "immutable": true, + "optional": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Gateway type", + "immutable": true, + "required": true, + "options": "dedicated, connect" + }, + { + "name": "location_name", + "type": "TypeString", + "description": "Gateway location", + "immutable": true, "optional": true, "computed": true }, { - "name": "bfd_interval", - "type": "TypeInt", - "description": "BFD Interval", - "min_value": "300", - "max_value": "255000", + "name": "customer_name", + "type": "TypeString", + "description": "Customer name", + "immutable": true, "optional": true }, { - "name": "bfd_status", + "name": "bgp_cer_cidr", "type": "TypeString", - "description": "Gateway BFD status", + "description": "BGP customer edge router CIDR", "optional": true, "computed": true }, { - "name": "bgp_base_cidr", + "name": "vlan", + "type": "TypeInt", + "description": "VLAN allocated for this gateway", + "computed": true + }, + { + "name": "location_display_name", "type": "TypeString", - "description": "BGP base CIDR", + "description": "Gateway location long name", + "computed": true + }, + { + "name": "import_route_filters", + "type": "TypeList", + "description": "List Import Route Filters for a Direct Link gateway", + "optional": true, + "elem": { + "action": { + "name": "action", + "type": "TypeString", + "description": "Determines whether the routes that match the prefix-set will be permit or deny", + "required": true + }, + "before": { + "name": "before", + "type": "TypeString", + "description": "Identifier of the next route filter to be considered", + "optional": true, + "computed": true + }, + "created_at": { + "name": "created_at", + "type": "TypeString", + "description": "The date and time of the export route filter was created", + "computed": true + }, + "ge": { + "name": "ge", + "type": "TypeInt", + "description": "The minimum matching length of the prefix-set", + "optional": true + }, + "im_filter_id": { + "name": "im_filter_id", + "type": "TypeString", + "description": "Import route Filter identifier", + "computed": true + }, + "le": { + "name": "le", + "type": "TypeInt", + "description": "The maximum matching length of the prefix-set", + "optional": true + }, + "prefix": { + "name": "prefix", + "type": "TypeString", + "description": "IP prefix representing an address and mask length of the prefix-set", + "required": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "The date and time of the export route filter was last updated", + "computed": true + } + } + }, + { + "name": "bfd_interval", + "type": "TypeInt", + "description": "BFD Interval", + "min_value": "300", + "max_value": "255000", "optional": true }, { - "name": "location_name", + "name": "bfd_status_updated_at", "type": "TypeString", - "description": "Gateway location", - "immutable": true, + "description": "Date and time BFD status was updated", "optional": true, "computed": true }, { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "name": "speed_mbps", + "type": "TypeInt", + "description": "Gateway speed in megabits per second", + "required": true + }, + { + "name": "provider_api_managed", + "type": "TypeBool", + "description": "Indicates whether gateway was created through a provider portal", "computed": true }, { - "name": "vlan", - "type": "TypeInt", - "description": "VLAN allocated for this gateway", + "name": "bgp_status_updated_at", + "type": "TypeString", + "description": "Date and time BGP status was updated", "computed": true }, { - "name": "bgp_ibm_asn", - "type": "TypeInt", - "description": "IBM BGP ASN", + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", "computed": true }, { - "name": "change_request", + "name": "resource_status", "type": "TypeString", - "description": "Changes pending approval for provider managed Direct Link Connect gateways", + "description": "The status of the resource", "computed": true }, { @@ -110139,10 +110341,57 @@ "computed": true }, { - "name": "port", + "name": "bfd_multiplier", + "type": "TypeInt", + "description": "BFD Multiplier", + "min_value": "1", + "max_value": "255", + "optional": true + }, + { + "name": "link_status", "type": "TypeString", - "description": "Gateway port", - "immutable": true, + "description": "Gateway link status", + "computed": true + }, + { + "name": "default_export_route_filter", + "type": "TypeString", + "description": "The default directional route filter action that applies to routes that do not match any directional route filters", + "options": "permit, deny", + "optional": true, + "computed": true + }, + { + "name": "global", + "type": "TypeBool", + "description": "Gateways with global routing (true) can connect to networks outside their associated region", + "required": true + }, + { + "name": "completion_notice_reject_reason", + "type": "TypeString", + "description": "Reason for completion notice rejection", + "computed": true + }, + { + "name": "change_request", + "type": "TypeString", + "description": "Changes pending approval for provider managed Direct Link Connect gateways", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN (Cloud Resource Name) of this gateway", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "connection_mode", + "type": "TypeString", + "description": "Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection", + "options": "direct, transit", "optional": true, "computed": true }, @@ -110156,56 +110405,65 @@ "matches": "^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$" }, { - "name": "type", + "name": "bgp_status", "type": "TypeString", - "description": "Gateway type", - "immutable": true, - "required": true, - "options": "dedicated, connect" + "description": "Gateway BGP status", + "computed": true + } + ], + "ibm_dl_gateway_action": [ + { + "name": "bgp_asn", + "type": "TypeInt", + "description": "BGP ASN", + "optional": true }, { - "name": "location_display_name", + "name": "location_name", "type": "TypeString", - "description": "Gateway location long name", + "description": "Gateway location", + "immutable": true, + "optional": true, "computed": true }, { - "name": "carrier_name", + "name": "resource_group", "type": "TypeString", - "description": "Carrier name", + "description": "Gateway resource group", + "cloud_data_type": "resource_group", "immutable": true, - "optional": true + "optional": true, + "computed": true }, { - "name": "bgp_ibm_cidr", + "name": "vlan", + "type": "TypeInt", + "description": "VLAN allocated for this gateway", + "computed": true + }, + { + "name": "location_display_name", "type": "TypeString", - "description": "BGP IBM CIDR", - "optional": true, + "description": "Gateway location long name", "computed": true }, { - "name": "tags", - "type": "TypeSet", - "description": "Tags for the direct link gateway", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", + "name": "bgp_ibm_cidr", + "type": "TypeString", + "description": "BGP IBM CIDR", "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "computed": true }, { - "name": "resource_status", + "name": "created_at", "type": "TypeString", - "description": "The status of the resource", + "description": "The date and time resource was created", "computed": true }, { - "name": "bgp_status", + "name": "resource_crn", "type": "TypeString", - "description": "Gateway BGP status", + "description": "The crn of the resource", "computed": true }, { @@ -110266,199 +110524,44 @@ } }, { - "name": "bgp_asn", - "type": "TypeInt", - "description": "BGP ASN", - "required": true + "name": "connection_mode", + "type": "TypeString", + "description": "Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection", + "options": "direct, transit", + "optional": true, + "computed": true }, { - "name": "cross_connect_router", + "name": "customer_name", "type": "TypeString", - "description": "Cross connect router", + "description": "Customer name", "immutable": true, "optional": true }, { - "name": "global", - "type": "TypeBool", - "description": "Gateways with global routing (true) can connect to networks outside their associated region", - "required": true - }, - { - "name": "metered", - "type": "TypeBool", - "description": "Metered billing option", - "required": true - }, - { - "name": "operational_status", - "type": "TypeString", - "description": "Gateway operational status", - "computed": true - }, - { - "name": "bgp_status_updated_at", + "name": "loa_reject_reason", "type": "TypeString", - "description": "Date and time BGP status was updated", + "description": "Loa reject reason", + "optional": true, "computed": true }, { - "name": "link_status", + "name": "change_request", "type": "TypeString", - "description": "Gateway link status", + "description": "Changes pending approval for provider managed Direct Link Connect gateways", "computed": true }, { - "name": "authentication_key", - "type": "TypeString", - "description": "BGP MD5 authentication key", + "name": "metered", + "type": "TypeBool", + "description": "Metered billing option", "optional": true }, { - "name": "import_route_filters", - "type": "TypeList", - "description": "List Import Route Filters for a Direct Link gateway", - "optional": true, - "elem": { - "action": { - "name": "action", - "type": "TypeString", - "description": "Determines whether the routes that match the prefix-set will be permit or deny", - "required": true - }, - "before": { - "name": "before", - "type": "TypeString", - "description": "Identifier of the next route filter to be considered", - "optional": true, - "computed": true - }, - "created_at": { - "name": "created_at", - "type": "TypeString", - "description": "The date and time of the export route filter was created", - "computed": true - }, - "ge": { - "name": "ge", - "type": "TypeInt", - "description": "The minimum matching length of the prefix-set", - "optional": true - }, - "im_filter_id": { - "name": "im_filter_id", - "type": "TypeString", - "description": "Import route Filter identifier", - "computed": true - }, - "le": { - "name": "le", - "type": "TypeInt", - "description": "The maximum matching length of the prefix-set", - "optional": true - }, - "prefix": { - "name": "prefix", - "type": "TypeString", - "description": "IP prefix representing an address and mask length of the prefix-set", - "required": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "The date and time of the export route filter was last updated", - "computed": true - } - } - }, - { - "name": "bfd_status_updated_at", - "type": "TypeString", - "description": "Date and time BFD status was updated", - "optional": true, - "computed": true - }, - { - "name": "macsec_config", - "type": "TypeList", - "description": "MACsec configuration information", - "optional": true, - "elem": { - "active": { - "name": "active", - "type": "TypeBool", - "description": "Indicate whether MACsec protection should be active (true) or inactive (false) for this MACsec enabled gateway", - "required": true - }, - "active_cak": { - "name": "active_cak", - "type": "TypeString", - "description": "Active connectivity association key.", - "computed": true - }, - "cipher_suite": { - "name": "cipher_suite", - "type": "TypeString", - "description": "SAK cipher suite", - "computed": true - }, - "confidentiality_offset": { - "name": "confidentiality_offset", - "type": "TypeInt", - "description": "Confidentiality Offset", - "computed": true - }, - "cryptographic_algorithm": { - "name": "cryptographic_algorithm", - "type": "TypeString", - "description": "Cryptographic Algorithm", - "computed": true - }, - "fallback_cak": { - "name": "fallback_cak", - "type": "TypeString", - "description": "Fallback connectivity association key. Keys used for MACsec configuration must have names with an even number of characters from [0-9a-fA-F]", - "optional": true - }, - "key_server_priority": { - "name": "key_server_priority", - "type": "TypeInt", - "description": "Key Server Priority", - "computed": true - }, - "primary_cak": { - "name": "primary_cak", - "type": "TypeString", - "description": "Desired primary connectivity association key. Keys for a MACsec configuration must have names with an even number of characters from [0-9a-fA-F]", - "required": true - }, - "sak_expiry_time": { - "name": "sak_expiry_time", - "type": "TypeInt", - "description": "Secure Association Key (SAK) expiry time in seconds", - "computed": true - }, - "security_policy": { - "name": "security_policy", - "type": "TypeString", - "description": "Packets without MACsec headers are not dropped when security_policy is should_secure.", - "computed": true - }, - "status": { - "name": "status", - "type": "TypeString", - "description": "The current status of MACsec on the device for this gateway", - "computed": true - }, - "window_size": { - "name": "window_size", - "type": "TypeInt", - "description": "Replay protection window size", - "default_value": 148809600, - "optional": true - } - }, - "max_items": 1 + "name": "speed_mbps", + "type": "TypeInt", + "description": "Gateway speed in megabits per second", + "optional": true }, { "name": "bgp_cer_cidr", @@ -110468,32 +110571,10 @@ "computed": true }, { - "name": "link_status_updated_at", - "type": "TypeString", - "description": "Date and time Link status was updated", - "computed": true - }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - } - ], - "ibm_dl_gateway_action": [ - { - "name": "type", - "type": "TypeString", - "description": "Gateway type", - "options": "dedicated, connect", - "optional": true, - "computed": true - }, - { - "name": "resource_name", + "name": "gateway", "type": "TypeString", - "description": "The name of the resource", - "computed": true + "description": "The Direct Link gateway identifier", + "required": true }, { "name": "export_route_filters", @@ -110552,75 +110633,61 @@ } }, { - "name": "default_export_route_filter", - "type": "TypeString", - "description": "The default directional route filter action that applies to routes that do not match any directional route filters", - "options": "permit, deny", + "name": "bfd_interval", + "type": "TypeInt", + "description": "BFD Interval", + "min_value": "300", + "max_value": "255000", "optional": true }, { - "name": "default_import_route_filter", + "name": "bgp_base_cidr", "type": "TypeString", - "description": "The default directional route filter action that applies to routes that do not match any directional route filters", - "options": "permit, deny", + "description": "BGP base CIDR", "optional": true }, { - "name": "operational_status", + "name": "cross_connect_router", "type": "TypeString", - "description": "Gateway operational status", - "computed": true - }, - { - "name": "vlan", - "type": "TypeInt", - "description": "VLAN allocated for this gateway", - "computed": true + "description": "Cross connect router", + "immutable": true, + "optional": true }, { - "name": "change_request", + "name": "bgp_status_updated_at", "type": "TypeString", - "description": "Changes pending approval for provider managed Direct Link Connect gateways", + "description": "Date and time BGP status was updated", "computed": true }, { - "name": "bfd_interval", - "type": "TypeInt", - "description": "BFD Interval", - "min_value": "300", - "max_value": "255000", - "optional": true - }, - { - "name": "bfd_status_updated_at", + "name": "crn", "type": "TypeString", - "description": "Date and time BFD status was updated", + "description": "The CRN (Cloud Resource Name) of this gateway", + "cloud_data_type": "crn", "computed": true }, { - "name": "cross_connect_router", + "name": "link_status", "type": "TypeString", - "description": "Cross connect router", - "immutable": true, - "optional": true + "description": "Gateway link status", + "computed": true }, { - "name": "bgp_ibm_cidr", + "name": "resource_name", "type": "TypeString", - "description": "BGP IBM CIDR", - "optional": true, + "description": "The name of the resource", "computed": true }, { - "name": "bgp_status", + "name": "link_status_updated_at", "type": "TypeString", - "description": "Gateway BGP status", + "description": "Date and time Link status was updated", "computed": true }, { - "name": "completion_notice_reject_reason", + "name": "resource_group_name", "type": "TypeString", - "description": "Reason for completion notice rejection", + "description": "The resource group name in which resource is provisioned", "computed": true }, { @@ -110680,95 +110747,22 @@ } }, { - "name": "as_prepends", - "type": "TypeList", - "description": "List of AS Prepend configuration information", - "optional": true, - "elem": { - "created_at": { - "name": "created_at", - "type": "TypeString", - "description": "The date and time AS Prepend was created", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this AS Prepend", - "optional": true, - "computed": true - }, - "length": { - "name": "length", - "type": "TypeInt", - "description": "Number of times the ASN to appended to the AS Path", - "required": true - }, - "policy": { - "name": "policy", - "type": "TypeString", - "description": "Route type this AS Prepend applies to", - "required": true - }, - "prefix": { - "name": "prefix", - "type": "TypeString", - "description": "Comma separated list of prefixes this AS Prepend applies to. Maximum of 10 prefixes. If not specified, this AS Prepend applies to all prefixes", - "optional": true, - "deprecated": "prefix will be deprecated and support will be removed. Use specific_prefixes instead" - }, - "specific_prefixes": { - "name": "specific_prefixes", - "type": "TypeList", - "description": "Array of prefixes this AS Prepend applies to", - "optional": true, - "elem": { - "type": "TypeString" - }, - "max_items": 10, - "min_items": 1 - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "The date and time AS Prepend was updated", - "computed": true - } - } - }, - { - "name": "port", + "name": "name", "type": "TypeString", - "description": "Gateway port", - "immutable": true, + "description": "The unique user-defined name for this gateway", + "min_length": 1, + "max_length": 63, + "matches": "^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$", "optional": true, "computed": true }, { - "name": "location_display_name", - "type": "TypeString", - "description": "Gateway location long name", - "computed": true - }, - { - "name": "resource_group_name", + "name": "carrier_name", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, - { - "name": "global", - "type": "TypeBool", - "description": "Gateways with global routing (true) can connect to networks outside their associated region", + "description": "Carrier name", + "immutable": true, "optional": true }, - { - "name": "bgp_cer_cidr", - "type": "TypeString", - "description": "BGP customer edge router CIDR", - "optional": true, - "computed": true - }, { "name": "provider_api_managed", "type": "TypeBool", @@ -110776,60 +110770,9 @@ "computed": true }, { - "name": "speed_mbps", - "type": "TypeInt", - "description": "Gateway speed in megabits per second", - "optional": true - }, - { - "name": "bgp_status_updated_at", - "type": "TypeString", - "description": "Date and time BGP status was updated", - "computed": true - }, - { - "name": "link_status_updated_at", - "type": "TypeString", - "description": "Date and time Link status was updated", - "computed": true - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - }, - { - "name": "bfd_multiplier", - "type": "TypeInt", - "description": "BFD Multiplier", - "min_value": "1", - "max_value": "255", - "optional": true - }, - { - "name": "bgp_asn", - "type": "TypeInt", - "description": "BGP ASN", - "optional": true - }, - { - "name": "metered", - "type": "TypeBool", - "description": "Metered billing option", - "optional": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The CRN (Cloud Resource Name) of this gateway", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "link_status", + "name": "completion_notice_reject_reason", "type": "TypeString", - "description": "Gateway link status", + "description": "Reason for completion notice rejection", "computed": true }, { @@ -110845,6 +110788,12 @@ "type": "TypeString" } }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true + }, { "name": "action", "type": "TypeString", @@ -110853,40 +110802,31 @@ "options": "permit, deny" }, { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this gateway", - "min_length": 1, - "max_length": 63, - "matches": "^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$", - "optional": true, - "computed": true - }, - { - "name": "created_at", + "name": "default_export_route_filter", "type": "TypeString", - "description": "The date and time resource was created", - "computed": true + "description": "The default directional route filter action that applies to routes that do not match any directional route filters", + "options": "permit, deny", + "optional": true }, { - "name": "carrier_name", - "type": "TypeString", - "description": "Carrier name", - "immutable": true, + "name": "bfd_multiplier", + "type": "TypeInt", + "description": "BFD Multiplier", + "min_value": "1", + "max_value": "255", "optional": true }, { - "name": "loa_reject_reason", + "name": "bfd_status_updated_at", "type": "TypeString", - "description": "Loa reject reason", - "optional": true, + "description": "Date and time BFD status was updated", "computed": true }, { - "name": "gateway", - "type": "TypeString", - "description": "The Direct Link gateway identifier", - "required": true + "name": "global", + "type": "TypeBool", + "description": "Gateways with global routing (true) can connect to networks outside their associated region", + "optional": true }, { "name": "authentication_key", @@ -110896,29 +110836,46 @@ "optional": true }, { - "name": "location_name", + "name": "default_import_route_filter", "type": "TypeString", - "description": "Gateway location", + "description": "The default directional route filter action that applies to routes that do not match any directional route filters", + "options": "permit, deny", + "optional": true + }, + { + "name": "port", + "type": "TypeString", + "description": "Gateway port", "immutable": true, "optional": true, "computed": true }, { - "name": "customer_name", + "name": "resource_status", "type": "TypeString", - "description": "Customer name", - "immutable": true, - "optional": true + "description": "The status of the resource", + "computed": true }, { - "name": "resource_group", + "name": "bfd_status", "type": "TypeString", - "description": "Gateway resource group", - "cloud_data_type": "resource_group", - "immutable": true, + "description": "Gateway BFD status", + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Gateway type", + "options": "dedicated, connect", "optional": true, "computed": true }, + { + "name": "operational_status", + "type": "TypeString", + "description": "Gateway operational status", + "computed": true + }, { "name": "bgp_ibm_asn", "type": "TypeInt", @@ -110926,39 +110883,31 @@ "computed": true }, { - "name": "resource_crn", + "name": "bgp_status", "type": "TypeString", - "description": "The crn of the resource", + "description": "Gateway BGP status", "computed": true - }, + } + ], + "ibm_dl_provider_gateway": [ { - "name": "resource_status", + "name": "type", "type": "TypeString", - "description": "The status of the resource", + "description": "Gateway type", "computed": true }, { - "name": "bfd_status", + "name": "resource_crn", "type": "TypeString", - "description": "Gateway BFD status", + "description": "The crn of the resource", "computed": true }, { - "name": "bgp_base_cidr", - "type": "TypeString", - "description": "BGP base CIDR", - "optional": true - }, - { - "name": "connection_mode", + "name": "resource_status", "type": "TypeString", - "description": "Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection", - "options": "direct, transit", - "optional": true, + "description": "The status of the resource", "computed": true - } - ], - "ibm_dl_provider_gateway": [ + }, { "name": "bgp_asn", "type": "TypeInt", @@ -110966,21 +110915,22 @@ "required": true }, { - "name": "provider_api_managed", - "type": "TypeBool", - "description": "Indicates whether gateway was created through a provider portal", + "name": "bgp_ibm_asn", + "type": "TypeInt", + "description": "IBM BGP ASN", "computed": true }, { - "name": "resource_group_name", + "name": "bgp_ibm_cidr", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "BGP IBM CIDR", + "optional": true, "computed": true }, { - "name": "bgp_ibm_asn", - "type": "TypeInt", - "description": "IBM BGP ASN", + "name": "bgp_status", + "type": "TypeString", + "description": "Gateway BGP status", "computed": true }, { @@ -110990,6 +110940,12 @@ "immutable": true, "required": true }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time resource was created", + "computed": true + }, { "name": "name", "type": "TypeString", @@ -111000,28 +110956,28 @@ "matches": "^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$" }, { - "name": "vlan", - "type": "TypeInt", - "description": "VLAN allocated for this gateway", - "optional": true, + "name": "provider_api_managed", + "type": "TypeBool", + "description": "Indicates whether gateway was created through a provider portal", "computed": true }, { - "name": "resource_controller_url", + "name": "bgp_cer_cidr", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "BGP customer edge router CIDR", + "optional": true, "computed": true }, { - "name": "resource_status", + "name": "resource_controller_url", "type": "TypeString", - "description": "The status of the resource", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { - "name": "bgp_cer_cidr", - "type": "TypeString", - "description": "BGP customer edge router CIDR", + "name": "vlan", + "type": "TypeInt", + "description": "VLAN allocated for this gateway", "optional": true, "computed": true }, @@ -111032,9 +110988,10 @@ "computed": true }, { - "name": "type", + "name": "crn", "type": "TypeString", - "description": "Gateway type", + "description": "The CRN (Cloud Resource Name) of this gateway", + "cloud_data_type": "crn", "computed": true }, { @@ -111057,30 +111014,11 @@ "computed": true }, { - "name": "bgp_ibm_cidr", - "type": "TypeString", - "description": "BGP IBM CIDR", - "optional": true, - "computed": true - }, - { - "name": "bgp_status", - "type": "TypeString", - "description": "Gateway BGP status", - "computed": true - }, - { - "name": "created_at", + "name": "resource_group_name", "type": "TypeString", - "description": "The date and time resource was created", + "description": "The resource group name in which resource is provisioned", "computed": true }, - { - "name": "speed_mbps", - "type": "TypeInt", - "description": "Gateway speed in megabits per second", - "required": true - }, { "name": "customer_account_id", "type": "TypeString", @@ -111092,26 +111030,24 @@ "matches": "^[0-9a-f]+$" }, { - "name": "crn", + "name": "speed_mbps", + "type": "TypeInt", + "description": "Gateway speed in megabits per second", + "required": true + } + ], + "ibm_dl_route_report": [ + { + "name": "status", "type": "TypeString", - "description": "The CRN (Cloud Resource Name) of this gateway", - "cloud_data_type": "crn", + "description": "Route report status", "computed": true }, { - "name": "resource_crn", + "name": "created_at", "type": "TypeString", - "description": "The crn of the resource", + "description": "The date and time report was created", "computed": true - } - ], - "ibm_dl_route_report": [ - { - "name": "gateway", - "type": "TypeString", - "description": "The Direct Link gateway identifier", - "immutable": true, - "required": true }, { "name": "advertised_routes", @@ -111173,24 +111109,6 @@ } } }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time report was created", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "The date and time resource was created", - "computed": true - }, - { - "name": "route_report_id", - "type": "TypeString", - "description": "Id of the route report", - "computed": true - }, { "name": "overlapping_routes", "type": "TypeList", @@ -111278,13 +111196,48 @@ } }, { - "name": "status", + "name": "updated_at", "type": "TypeString", - "description": "Route report status", + "description": "The date and time resource was created", + "computed": true + }, + { + "name": "gateway", + "type": "TypeString", + "description": "The Direct Link gateway identifier", + "immutable": true, + "required": true + }, + { + "name": "route_report_id", + "type": "TypeString", + "description": "Id of the route report", "computed": true } ], "ibm_dl_virtual_connection": [ + { + "name": "network_id", + "type": "TypeString", + "description": "Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections.", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Status of the virtual connection.Possible values: [pending,attached,approval_pending,rejected,expired,deleting,detached_by_network_pending,detached_by_network]", + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "The type of virtual connection.Allowable values (classic,vpc)", + "immutable": true, + "required": true, + "options": "classic, vpc" + }, { "name": "name", "type": "TypeString", @@ -111295,11 +111248,9 @@ "matches": "^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$" }, { - "name": "network_id", + "name": "created_at", "type": "TypeString", - "description": "Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections.", - "immutable": true, - "optional": true, + "description": "The date and time resource was created", "computed": true }, { @@ -111308,6 +111259,12 @@ "description": "For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network.", "computed": true }, + { + "name": "virtual_connection_id", + "type": "TypeString", + "description": "The Direct Gateway virtual connection identifier", + "computed": true + }, { "name": "related_crn", "type": "TypeString", @@ -111320,35 +111277,53 @@ "description": "The Direct Link gateway identifier", "immutable": true, "required": true - }, + } + ], + "ibm_dns_custom_resolver": [ { - "name": "type", + "name": "created_on", "type": "TypeString", - "description": "The type of virtual connection.Allowable values (classic,vpc)", - "immutable": true, - "required": true, - "options": "classic, vpc" + "description": "Time when a custom resolver is created", + "computed": true }, { - "name": "virtual_connection_id", + "name": "modified_on", "type": "TypeString", - "description": "The Direct Gateway virtual connection identifier", + "description": "The recent time when a custom resolver is modified", "computed": true }, { - "name": "created_at", + "name": "custom_resolver_id", "type": "TypeString", - "description": "The date and time resource was created", + "description": "Identifier of the custom resolver", "computed": true }, { - "name": "status", + "name": "name", "type": "TypeString", - "description": "Status of the virtual connection.Possible values: [pending,attached,approval_pending,rejected,expired,deleting,detached_by_network_pending,detached_by_network]", + "description": "Name of the custom resolver", + "required": true + }, + { + "name": "enabled", + "type": "TypeBool", + "description": "Whether the custom resolver is enabled", + "default_value": true, + "optional": true + }, + { + "name": "high_availability", + "type": "TypeBool", + "description": "Whether High Availability is enabled in custom resolver", + "default_value": true, + "optional": true + }, + { + "name": "health", + "type": "TypeString", + "description": "Healthy state of the custom resolver", "computed": true - } - ], - "ibm_dns_custom_resolver": [ + }, { "name": "locations", "type": "TypeList", @@ -111389,66 +111364,6 @@ }, "max_items": 3 }, - { - "name": "created_on", - "type": "TypeString", - "description": "Time when a custom resolver is created", - "computed": true - }, - { - "name": "modified_on", - "type": "TypeString", - "description": "The recent time when a custom resolver is modified", - "computed": true - }, - { - "name": "custom_resolver_id", - "type": "TypeString", - "description": "Identifier of the custom resolver", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the custom resolver", - "required": true - }, - { - "name": "enabled", - "type": "TypeBool", - "description": "Whether the custom resolver is enabled", - "default_value": true, - "optional": true - }, - { - "name": "high_availability", - "type": "TypeBool", - "description": "Whether High Availability is enabled in custom resolver", - "default_value": true, - "optional": true - }, - { - "name": "health", - "type": "TypeString", - "description": "Healthy state of the custom resolver", - "computed": true - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "Instance ID", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:dns-svcs" - ] - }, - { - "name": "description", - "type": "TypeString", - "description": "Descriptive text of the custom resolver.", - "optional": true - }, { "name": "rules", "type": "TypeList", @@ -111488,9 +111403,61 @@ "computed": true } } + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "Instance ID", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:dns-svcs" + ] + }, + { + "name": "description", + "type": "TypeString", + "description": "Descriptive text of the custom resolver.", + "optional": true } ], "ibm_dns_custom_resolver_forwarding_rule": [ + { + "name": "instance_id", + "type": "TypeString", + "description": "The unique identifier of a service instance.", + "cloud_data_type": "resource_instance", + "required": true, + "cloud_data_range": [ + "service:dns-svcs" + ] + }, + { + "name": "resolver_id", + "type": "TypeString", + "description": "The unique identifier of a custom resolver.", + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Descriptive text of the forwarding rule.", + "optional": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Type of the forwarding rule.", + "options": "hostname, zone, Default", + "optional": true + }, + { + "name": "match", + "type": "TypeString", + "description": "The matching zone or hostname.", + "optional": true, + "computed": true + }, { "name": "forward_to", "type": "TypeList", @@ -111505,45 +111472,34 @@ "type": "TypeString", "description": "the time when a forwarding rule ID is created, RFC3339 format.", "computed": true - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The unique identifier of a service instance.", - "cloud_data_type": "resource_instance", - "required": true, - "cloud_data_range": [ - "service:dns-svcs" - ] - }, + } + ], + "ibm_dns_custom_resolver_location": [ { - "name": "resolver_id", + "name": "location_id", "type": "TypeString", - "description": "The unique identifier of a custom resolver.", - "required": true + "description": "CRLocation ID", + "computed": true }, { - "name": "description", + "name": "subnet_crn", "type": "TypeString", - "description": "Descriptive text of the forwarding rule.", - "optional": true + "description": "CRLocation Subnet CRN", + "required": true }, { - "name": "type", - "type": "TypeString", - "description": "Type of the forwarding rule.", - "options": "hostname, zone, Default", + "name": "enabled", + "type": "TypeBool", + "description": "CRLocation Enabled", + "default_value": false, "optional": true }, { - "name": "match", - "type": "TypeString", - "description": "The matching zone or hostname.", - "optional": true, + "name": "healthy", + "type": "TypeBool", + "description": "CRLocation Healthy", "computed": true - } - ], - "ibm_dns_custom_resolver_location": [ + }, { "name": "dns_server_ip", "type": "TypeString", @@ -111572,39 +111528,29 @@ "type": "TypeString", "description": "Custom Resolver ID", "required": true + } + ], + "ibm_dns_custom_resolver_secondary_zone": [ + { + "name": "transfer_from", + "type": "TypeList", + "description": "The addresses of DNS servers where the secondary zone data should be transferred from", + "required": true, + "elem": { + "type": "TypeString" + } }, { - "name": "location_id", + "name": "created_on", "type": "TypeString", - "description": "CRLocation ID", + "description": "Secondary Zone Creation date", "computed": true }, { - "name": "subnet_crn", + "name": "modified_on", "type": "TypeString", - "description": "CRLocation Subnet CRN", - "required": true - }, - { - "name": "enabled", - "type": "TypeBool", - "description": "CRLocation Enabled", - "default_value": false, - "optional": true - }, - { - "name": "healthy", - "type": "TypeBool", - "description": "CRLocation Healthy", + "description": "Secondary Zone Modification date", "computed": true - } - ], - "ibm_dns_custom_resolver_secondary_zone": [ - { - "name": "description", - "type": "TypeString", - "description": "Descriptive text of the secondary zone", - "optional": true }, { "name": "instance_id", @@ -111641,28 +111587,23 @@ "required": true }, { - "name": "transfer_from", - "type": "TypeList", - "description": "The addresses of DNS servers where the secondary zone data should be transferred from", - "required": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "created_on", - "type": "TypeString", - "description": "Secondary Zone Creation date", - "computed": true - }, - { - "name": "modified_on", + "name": "description", "type": "TypeString", - "description": "Secondary Zone Modification date", - "computed": true + "description": "Descriptive text of the secondary zone", + "optional": true } ], "ibm_dns_domain": [ + { + "name": "tags", + "type": "TypeSet", + "description": "tags associated with reosurce.", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, { "name": "name", "type": "TypeString", @@ -111687,16 +111628,6 @@ "type": "TypeString", "description": "DNS target info", "optional": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "tags associated with reosurce.", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } } ], "ibm_dns_domain_registration_nameservers": [ @@ -111727,30 +111658,9 @@ ], "ibm_dns_glb": [ { - "name": "health", - "type": "TypeString", - "description": "Healthy state of the load balancer.", - "computed": true - }, - { - "name": "fallback_pool", - "type": "TypeString", - "description": "The pool ID to use when all other pools are detected as unhealthy", - "required": true - }, - { - "name": "default_pools", - "type": "TypeList", - "description": "A list of pool IDs ordered by their failover priority", - "required": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "created_on", + "name": "modified_on", "type": "TypeString", - "description": "GLB Load Balancer creation date", + "description": "GLB Load Balancer Modification date", "computed": true }, { @@ -111765,12 +111675,17 @@ ] }, { - "name": "zone_id", + "name": "fallback_pool", "type": "TypeString", - "description": "Zone Id", - "immutable": true, + "description": "The pool ID to use when all other pools are detected as unhealthy", "required": true }, + { + "name": "created_on", + "type": "TypeString", + "description": "GLB Load Balancer creation date", + "computed": true + }, { "name": "description", "type": "TypeString", @@ -111785,11 +111700,27 @@ "computed": true }, { - "name": "modified_on", + "name": "ttl", + "type": "TypeInt", + "description": "Time to live in second", + "default_value": 60, + "optional": true + }, + { + "name": "health", "type": "TypeString", - "description": "GLB Load Balancer Modification date", + "description": "Healthy state of the load balancer.", "computed": true }, + { + "name": "default_pools", + "type": "TypeList", + "description": "A list of pool IDs ordered by their failover priority", + "required": true, + "elem": { + "type": "TypeString" + } + }, { "name": "glb_id", "type": "TypeString", @@ -111797,17 +111728,17 @@ "computed": true }, { - "name": "name", + "name": "zone_id", "type": "TypeString", - "description": "Name of the load balancer", + "description": "Zone Id", + "immutable": true, "required": true }, { - "name": "ttl", - "type": "TypeInt", - "description": "Time to live in second", - "default_value": 60, - "optional": true + "name": "name", + "type": "TypeString", + "description": "Name of the load balancer", + "required": true }, { "name": "az_pools", @@ -111835,34 +111766,38 @@ ], "ibm_dns_glb_monitor": [ { - "name": "instance_id", + "name": "monitor_id", "type": "TypeString", - "description": "Instance Id", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true, - "cloud_data_range": [ - "service:dns-svcs" - ] + "description": "Monitor Id", + "computed": true }, { - "name": "name", + "name": "path", "type": "TypeString", - "description": "The unique identifier of a service instance.", - "required": true + "description": "The endpoint path to health check against", + "optional": true, + "computed": true }, { - "name": "port", - "type": "TypeInt", - "description": "Port number to connect to for the health check", + "name": "expected_codes", + "type": "TypeString", + "description": "The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS", + "options": "200,201,202,203,204,205,206,207,208,226,2xx", "optional": true, "computed": true }, { - "name": "interval", - "type": "TypeInt", - "description": "The interval between each health check", - "default_value": 60, + "name": "modified_on", + "type": "TypeString", + "description": "GLB Monitor Modification date", + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "The protocol to use for the health check", + "default_value": "HTTP", + "options": "HTTP, HTTPS, TCP", "optional": true }, { @@ -111873,6 +111808,19 @@ "optional": true, "computed": true }, + { + "name": "name", + "type": "TypeString", + "description": "The unique identifier of a service instance.", + "required": true + }, + { + "name": "interval", + "type": "TypeInt", + "description": "The interval between each health check", + "default_value": 60, + "optional": true + }, { "name": "headers", "type": "TypeSet", @@ -111896,33 +111844,6 @@ } } }, - { - "name": "monitor_id", - "type": "TypeString", - "description": "Monitor Id", - "computed": true - }, - { - "name": "timeout", - "type": "TypeInt", - "description": "The timeout (in seconds) before marking the health check as failed", - "default_value": 5, - "optional": true - }, - { - "name": "modified_on", - "type": "TypeString", - "description": "GLB Monitor Modification date", - "computed": true - }, - { - "name": "type", - "type": "TypeString", - "description": "The protocol to use for the health check", - "default_value": "HTTP", - "options": "HTTP, HTTPS, TCP", - "optional": true - }, { "name": "allow_insecure", "type": "TypeBool", @@ -111937,102 +111858,62 @@ "optional": true }, { - "name": "created_on", - "type": "TypeString", - "description": "GLB Monitor creation date", - "computed": true - }, - { - "name": "retries", - "type": "TypeInt", - "description": "The number of retries to attempt in case of a timeout before marking the origin as unhealthy", - "default_value": 1, - "optional": true - }, - { - "name": "path", - "type": "TypeString", - "description": "The endpoint path to health check against", - "optional": true, - "computed": true - }, - { - "name": "expected_codes", + "name": "instance_id", "type": "TypeString", - "description": "The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS", - "options": "200,201,202,203,204,205,206,207,208,226,2xx", - "optional": true, - "computed": true + "description": "Instance Id", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true, + "cloud_data_range": [ + "service:dns-svcs" + ] }, { "name": "description", "type": "TypeString", "description": "Descriptive text of the load balancer monitor", "optional": true - } - ], - "ibm_dns_glb_pool": [ - { - "name": "description", - "type": "TypeString", - "description": "Descriptive text of the load balancer pool", - "optional": true - }, - { - "name": "health", - "type": "TypeString", - "description": "Whether the load balancer pool is enabled", - "computed": true }, { - "name": "modified_on", - "type": "TypeString", - "description": "The recent time when a load balancer pool is modified.", + "name": "port", + "type": "TypeInt", + "description": "Port number to connect to for the health check", + "optional": true, "computed": true }, { - "name": "monitor", - "type": "TypeString", - "description": "The ID of the load balancer monitor to be associated to this pool", + "name": "retries", + "type": "TypeInt", + "description": "The number of retries to attempt in case of a timeout before marking the origin as unhealthy", + "default_value": 1, "optional": true }, { - "name": "notification_channel", - "type": "TypeString", - "description": "The notification channel,It is a webhook url", + "name": "timeout", + "type": "TypeInt", + "description": "The timeout (in seconds) before marking the health check as failed", + "default_value": 5, "optional": true }, - { - "name": "healthcheck_subnets", - "type": "TypeList", - "description": "Health check subnet crn of VSIs", - "optional": true, - "elem": { - "type": "TypeString" - } - }, { "name": "created_on", "type": "TypeString", - "description": "The time when a load balancer pool is created.", + "description": "GLB Monitor creation date", "computed": true - }, + } + ], + "ibm_dns_glb_pool": [ { - "name": "instance_id", + "name": "name", "type": "TypeString", - "description": "Instance Id", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true, - "cloud_data_range": [ - "service:dns-svcs" - ] + "description": "The unique identifier of a service instance.", + "required": true }, { - "name": "pool_id", + "name": "description", "type": "TypeString", - "description": "Pool Id", - "computed": true + "description": "Descriptive text of the load balancer pool", + "optional": true }, { "name": "enabled", @@ -112041,16 +111922,10 @@ "optional": true }, { - "name": "healthy_origins_threshold", - "type": "TypeInt", - "description": "The minimum number of origins that must be healthy for this pool to serve traffic", - "optional": true - }, - { - "name": "name", + "name": "health", "type": "TypeString", - "description": "The unique identifier of a service instance.", - "required": true + "description": "Whether the load balancer pool is enabled", + "computed": true }, { "name": "origins", @@ -112101,21 +111976,65 @@ "type": "TypeString", "description": "Health check region of VSIs", "optional": true - } - ], - "ibm_dns_linked_zone": [ + }, { - "name": "state", + "name": "pool_id", "type": "TypeString", - "description": "The state of the DNS Linked zone", + "description": "Pool Id", "computed": true }, { - "name": "approval_required_before", + "name": "created_on", "type": "TypeString", - "description": "DNS Linked Approval required before", + "description": "The time when a load balancer pool is created.", + "computed": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "Instance Id", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true, + "cloud_data_range": [ + "service:dns-svcs" + ] + }, + { + "name": "monitor", + "type": "TypeString", + "description": "The ID of the load balancer monitor to be associated to this pool", + "optional": true + }, + { + "name": "healthy_origins_threshold", + "type": "TypeInt", + "description": "The minimum number of origins that must be healthy for this pool to serve traffic", + "optional": true + }, + { + "name": "notification_channel", + "type": "TypeString", + "description": "The notification channel,It is a webhook url", "optional": true }, + { + "name": "healthcheck_subnets", + "type": "TypeList", + "description": "Health check subnet crn of VSIs", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "modified_on", + "type": "TypeString", + "description": "The recent time when a load balancer pool is modified.", + "computed": true + } + ], + "ibm_dns_linked_zone": [ { "name": "instance_id", "type": "TypeString", @@ -112126,6 +112045,12 @@ "service:dns-svcs" ] }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the DNS Linked zone.", + "required": true + }, { "name": "owner_instance_id", "type": "TypeString", @@ -112133,10 +112058,10 @@ "required": true }, { - "name": "linked_to", + "name": "state", "type": "TypeString", - "description": "The zone that is linked to the DNS Linked zone", - "optional": true + "description": "The state of the DNS Linked zone", + "computed": true }, { "name": "label", @@ -112145,10 +112070,10 @@ "optional": true }, { - "name": "created_on", + "name": "approval_required_before", "type": "TypeString", - "description": "DNS Linked Zone Creation date", - "computed": true + "description": "DNS Linked Approval required before", + "optional": true }, { "name": "modified_on", @@ -112156,12 +112081,6 @@ "description": "DNS Linked Zone Modification date", "computed": true }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the DNS Linked zone.", - "required": true - }, { "name": "description", "type": "TypeString", @@ -112173,9 +112092,48 @@ "type": "TypeString", "description": "The unique identifier of the owner DNS zone", "required": true + }, + { + "name": "linked_to", + "type": "TypeString", + "description": "The zone that is linked to the DNS Linked zone", + "optional": true + }, + { + "name": "created_on", + "type": "TypeString", + "description": "DNS Linked Zone Creation date", + "computed": true } ], "ibm_dns_permitted_network": [ + { + "name": "type", + "type": "TypeString", + "description": "Network Type", + "default_value": "vpc", + "immutable": true, + "optional": true + }, + { + "name": "vpc_crn", + "type": "TypeString", + "description": "VPC CRN id", + "immutable": true, + "required": true + }, + { + "name": "created_on", + "type": "TypeString", + "description": "Network creation date", + "computed": true + }, + { + "name": "modified_on", + "type": "TypeString", + "description": "Network Modification date", + "computed": true + }, { "name": "state", "type": "TypeString", @@ -112205,36 +112163,15 @@ "description": "Zone Id", "immutable": true, "required": true - }, + } + ], + "ibm_dns_record": [ { - "name": "type", + "name": "protocol", "type": "TypeString", - "description": "Network Type", - "default_value": "vpc", - "immutable": true, + "description": "protocol info", "optional": true }, - { - "name": "vpc_crn", - "type": "TypeString", - "description": "VPC CRN id", - "immutable": true, - "required": true - }, - { - "name": "created_on", - "type": "TypeString", - "description": "Network creation date", - "computed": true - }, - { - "name": "modified_on", - "type": "TypeString", - "description": "Network Modification date", - "computed": true - } - ], - "ibm_dns_record": [ { "name": "data", "type": "TypeString", @@ -112249,23 +112186,22 @@ "required": true }, { - "name": "mx_priority", - "type": "TypeInt", - "description": "Maximum priority", - "default_value": 0, - "optional": true - }, - { - "name": "minimum_ttl", + "name": "expire", "type": "TypeInt", - "description": "Minimun TTL configuration", + "description": "DNS record expiry info", "optional": true, "computed": true }, { - "name": "priority", + "name": "host", + "type": "TypeString", + "description": "Hostname", + "required": true + }, + { + "name": "mx_priority", "type": "TypeInt", - "description": "priority info", + "description": "Maximum priority", "default_value": 0, "optional": true }, @@ -112277,30 +112213,20 @@ "computed": true }, { - "name": "ttl", - "type": "TypeInt", - "description": "TTL configuration", - "required": true - }, - { - "name": "type", - "type": "TypeString", - "description": "DNS record type", - "immutable": true, - "required": true - }, - { - "name": "protocol", + "name": "service", "type": "TypeString", - "description": "protocol info", + "description": "service info", "optional": true }, { - "name": "weight", - "type": "TypeInt", - "description": "weight info", - "default_value": 0, - "optional": true + "name": "tags", + "type": "TypeSet", + "description": "tags set for the resource", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } }, { "name": "refresh", @@ -112310,10 +112236,10 @@ "computed": true }, { - "name": "service", - "type": "TypeString", - "description": "service info", - "optional": true + "name": "ttl", + "type": "TypeInt", + "description": "TTL configuration", + "required": true }, { "name": "port", @@ -112322,17 +112248,18 @@ "optional": true }, { - "name": "expire", + "name": "priority", "type": "TypeInt", - "description": "DNS record expiry info", - "optional": true, - "computed": true + "description": "priority info", + "default_value": 0, + "optional": true }, { - "name": "host", - "type": "TypeString", - "description": "Hostname", - "required": true + "name": "weight", + "type": "TypeInt", + "description": "weight info", + "default_value": 0, + "optional": true }, { "name": "retry", @@ -112342,35 +112269,26 @@ "computed": true }, { - "name": "tags", - "type": "TypeSet", - "description": "tags set for the resource", - "cloud_data_type": "tags", + "name": "minimum_ttl", + "type": "TypeInt", + "description": "Minimun TTL configuration", "optional": true, - "elem": { - "type": "TypeString" - } + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "DNS record type", + "immutable": true, + "required": true } ], "ibm_dns_resource_record": [ { - "name": "port", - "type": "TypeInt", - "description": "DNS server Port", - "optional": true - }, - { - "name": "priority", - "type": "TypeInt", - "description": "DNS server Priority", - "default_value": 0, - "optional": true - }, - { - "name": "service", + "name": "resource_record_id", "type": "TypeString", - "description": "Service info", - "optional": true + "description": "Resource record ID", + "computed": true }, { "name": "type", @@ -112380,16 +112298,10 @@ "required": true }, { - "name": "rdata", - "type": "TypeString", - "description": "DNS record Data", - "required": true - }, - { - "name": "ttl", + "name": "preference", "type": "TypeInt", - "description": "DNS record TTL", - "default_value": 900, + "description": "DNS maximum preference", + "default_value": 0, "optional": true }, { @@ -112399,10 +112311,10 @@ "computed": true }, { - "name": "resource_record_id", + "name": "protocol", "type": "TypeString", - "description": "Resource record ID", - "computed": true + "description": "Protocol", + "optional": true }, { "name": "zone_id", @@ -112412,10 +112324,22 @@ "required": true }, { - "name": "weight", + "name": "name", + "type": "TypeString", + "description": "DNS record name", + "required": true + }, + { + "name": "ttl", "type": "TypeInt", - "description": "DNS server weight", - "default_value": 0, + "description": "DNS record TTL", + "default_value": 900, + "optional": true + }, + { + "name": "port", + "type": "TypeInt", + "description": "DNS server Port", "optional": true }, { @@ -112430,9 +112354,9 @@ ] }, { - "name": "preference", + "name": "priority", "type": "TypeInt", - "description": "DNS maximum preference", + "description": "DNS server Priority", "default_value": 0, "optional": true }, @@ -112443,15 +112367,22 @@ "computed": true }, { - "name": "name", + "name": "rdata", "type": "TypeString", - "description": "DNS record name", + "description": "DNS record Data", "required": true }, { - "name": "protocol", + "name": "weight", + "type": "TypeInt", + "description": "DNS server weight", + "default_value": 0, + "optional": true + }, + { + "name": "service", "type": "TypeString", - "description": "Protocol", + "description": "Service info", "optional": true } ], @@ -112477,6 +112408,18 @@ } ], "ibm_dns_secondary": [ + { + "name": "master_ip_address", + "type": "TypeString", + "description": "Master IP Address", + "required": true + }, + { + "name": "transfer_frequency", + "type": "TypeInt", + "description": "Transfer frequency value", + "required": true + }, { "name": "zone_name", "type": "TypeString", @@ -112505,27 +112448,9 @@ "elem": { "type": "TypeString" } - }, - { - "name": "master_ip_address", - "type": "TypeString", - "description": "Master IP Address", - "required": true - }, - { - "name": "transfer_frequency", - "type": "TypeInt", - "description": "Transfer frequency value", - "required": true } ], "ibm_dns_zone": [ - { - "name": "state", - "type": "TypeString", - "description": "Zone state", - "computed": true - }, { "name": "label", "type": "TypeString", @@ -112573,20 +112498,27 @@ "type": "TypeString", "description": "Zone description", "optional": true + }, + { + "name": "state", + "type": "TypeString", + "description": "Zone state", + "computed": true } ], "ibm_en_destination_android": [ { - "name": "description", + "name": "instance_guid", "type": "TypeString", - "description": "The Destination description.", - "optional": true + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true }, { - "name": "destination_id", + "name": "name", "type": "TypeString", - "description": "Destination ID", - "computed": true + "description": "The Destintion name.", + "required": true }, { "name": "updated_at", @@ -112595,11 +112527,19 @@ "computed": true }, { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + }, + { + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "type", @@ -112607,6 +112547,12 @@ "description": "The type of Destination push_android.", "required": true }, + { + "name": "description", + "type": "TypeString", + "description": "The Destination description.", + "optional": true + }, { "name": "config", "type": "TypeList", @@ -112649,68 +112595,13 @@ "max_items": 1 }, { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, - { - "name": "subscription_names", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "name", + "name": "destination_id", "type": "TypeString", - "description": "The Destintion name.", - "required": true + "description": "Destination ID", + "computed": true } ], "ibm_en_destination_ce": [ - { - "name": "name", - "type": "TypeString", - "description": "The Destintion name.", - "required": true - }, - { - "name": "description", - "type": "TypeString", - "description": "The Destination description.", - "optional": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true - }, - { - "name": "subscription_names", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true - }, - { - "name": "type", - "type": "TypeString", - "description": "The type of Destination Webhook.", - "required": true - }, { "name": "config", "type": "TypeList", @@ -112759,9 +112650,9 @@ "max_items": 1 }, { - "name": "destination_id", + "name": "updated_at", "type": "TypeString", - "description": "Destination ID", + "description": "Last updated time.", "computed": true }, { @@ -112769,9 +112660,7 @@ "type": "TypeInt", "description": "Number of subscriptions.", "computed": true - } - ], - "ibm_en_destination_cf": [ + }, { "name": "subscription_names", "type": "TypeList", @@ -112788,6 +112677,45 @@ "immutable": true, "required": true }, + { + "name": "name", + "type": "TypeString", + "description": "The Destintion name.", + "required": true + }, + { + "name": "type", + "type": "TypeString", + "description": "The type of Destination Webhook.", + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The Destination description.", + "optional": true + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Destination ID", + "computed": true + } + ], + "ibm_en_destination_cf": [ + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The Destination description.", + "optional": true + }, { "name": "config", "type": "TypeList", @@ -112823,12 +112751,6 @@ "description": "Last updated time.", "computed": true }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Destination ID", - "computed": true - }, { "name": "subscription_count", "type": "TypeInt", @@ -112848,19 +112770,36 @@ "required": true }, { - "name": "description", + "name": "destination_id", "type": "TypeString", - "description": "The Destination description.", - "optional": true + "description": "Destination ID", + "computed": true + }, + { + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } } ], "ibm_en_destination_chrome": [ { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + }, + { + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "type", @@ -112881,11 +112820,18 @@ "computed": true }, { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", + "name": "destination_id", + "type": "TypeString", + "description": "Destination ID", "computed": true }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true + }, { "name": "name", "type": "TypeString", @@ -112927,11 +112873,26 @@ } }, "max_items": 1 + } + ], + "ibm_en_destination_cos": [ + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true }, { - "name": "destination_id", + "name": "type", "type": "TypeString", - "description": "Destination ID", + "description": "The type of Destination Webhook.", + "required": true + }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", "computed": true }, { @@ -112942,40 +112903,19 @@ "elem": { "type": "TypeString" } - } - ], - "ibm_en_destination_cos": [ + }, { "name": "name", "type": "TypeString", "description": "The Destintion name.", "required": true }, - { - "name": "type", - "type": "TypeString", - "description": "The type of Destination Webhook.", - "required": true - }, { "name": "description", "type": "TypeString", "description": "The Destination description.", "optional": true }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true - }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true - }, { "name": "config", "type": "TypeList", @@ -113018,19 +112958,10 @@ "computed": true }, { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", "computed": true - }, - { - "name": "subscription_names", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "type": "TypeString" - } } ], "ibm_en_destination_custom_email": [ @@ -113046,25 +112977,6 @@ "description": "The Destination description.", "optional": true }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true - }, - { - "name": "type", - "type": "TypeString", - "description": "The type of Destination type smtp_custom.", - "required": true - }, { "name": "config", "type": "TypeList", @@ -113088,6 +113000,34 @@ }, "max_items": 1 }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + }, + { + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true + }, + { + "name": "type", + "type": "TypeString", + "description": "The type of Destination type smtp_custom.", + "required": true + }, { "name": "destination_id", "type": "TypeString", @@ -113095,22 +113035,25 @@ "computed": true }, { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", "computed": true - }, - { - "name": "subscription_names", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "type": "TypeString" - } } ], "ibm_en_destination_firefox": [ + { + "name": "name", + "type": "TypeString", + "description": "The Destintion name.", + "required": true + }, + { + "name": "type", + "type": "TypeString", + "description": "The type of Destination type push_firefox.", + "required": true + }, { "name": "config", "type": "TypeList", @@ -113140,18 +113083,21 @@ }, "max_items": 1 }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true - }, { "name": "subscription_count", "type": "TypeInt", "description": "Number of subscriptions.", "computed": true }, + { + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "instance_guid", "type": "TypeString", @@ -113160,27 +113106,41 @@ "required": true }, { - "name": "name", + "name": "description", "type": "TypeString", - "description": "The Destintion name.", - "required": true + "description": "The Destination description.", + "optional": true + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Destination ID", + "computed": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + } + ], + "ibm_en_destination_huawei": [ { "name": "type", "type": "TypeString", - "description": "The type of Destination type push_firefox.", + "description": "The type of Destination push_huawei.", "required": true }, { - "name": "description", + "name": "updated_at", "type": "TypeString", - "description": "The Destination description.", - "optional": true + "description": "Last updated time.", + "computed": true }, { - "name": "destination_id", - "type": "TypeString", - "description": "Destination ID", + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", "computed": true }, { @@ -113191,9 +113151,7 @@ "elem": { "type": "TypeString" } - } - ], - "ibm_en_destination_huawei": [ + }, { "name": "instance_guid", "type": "TypeString", @@ -113202,11 +113160,17 @@ "required": true }, { - "name": "type", + "name": "name", "type": "TypeString", - "description": "The type of Destination push_huawei.", + "description": "The Destintion name.", "required": true }, + { + "name": "description", + "type": "TypeString", + "description": "The Destination description.", + "optional": true + }, { "name": "config", "type": "TypeList", @@ -113247,51 +113211,15 @@ "type": "TypeString", "description": "Destination ID", "computed": true - }, - { - "name": "subscription_names", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, + } + ], + "ibm_en_destination_ios": [ { "name": "name", "type": "TypeString", "description": "The Destintion name.", "required": true }, - { - "name": "description", - "type": "TypeString", - "description": "The Destination description.", - "optional": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true - }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - } - ], - "ibm_en_destination_ios": [ - { - "name": "subscription_names", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "type", "type": "TypeString", @@ -113364,6 +113292,22 @@ }, "max_items": 1 }, + { + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true + }, { "name": "certificate_content_type", "type": "TypeString", @@ -113388,19 +113332,6 @@ "description": "Number of subscriptions.", "computed": true }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The Destintion name.", - "required": true - }, { "name": "description", "type": "TypeString", @@ -113415,18 +113346,6 @@ "description": "The Destintion name.", "required": true }, - { - "name": "type", - "type": "TypeString", - "description": "The type of Destination msteams.", - "required": true - }, - { - "name": "description", - "type": "TypeString", - "description": "The Destination description.", - "optional": true - }, { "name": "config", "type": "TypeList", @@ -113468,6 +113387,25 @@ "description": "Number of subscriptions.", "computed": true }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true + }, + { + "name": "type", + "type": "TypeString", + "description": "The type of Destination msteams.", + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The Destination description.", + "optional": true + }, { "name": "subscription_names", "type": "TypeList", @@ -113476,22 +113414,55 @@ "elem": { "type": "TypeString" } - }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true } ], "ibm_en_destination_pagerduty": [ + { + "name": "name", + "type": "TypeString", + "description": "The Destintion name.", + "required": true + }, { "name": "type", "type": "TypeString", "description": "The type of Destination type push_chrome.", "required": true }, + { + "name": "description", + "type": "TypeString", + "description": "The Destination description.", + "optional": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + }, + { + "name": "subscription_names", + "type": "TypeList", + "description": "List of subscriptions.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true + }, { "name": "config", "type": "TypeList", @@ -113527,11 +113498,31 @@ "type": "TypeString", "description": "Destination ID", "computed": true + } + ], + "ibm_en_destination_safari": [ + { + "name": "description", + "type": "TypeString", + "description": "The Destination description.", + "optional": true }, { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", + "name": "icon_16x16_2x", + "type": "TypeString", + "description": "The Certificate File.", + "optional": true + }, + { + "name": "icon_32x32_2x_content_type", + "type": "TypeString", + "description": "The Certificate File.", + "optional": true + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Destination ID", "computed": true }, { @@ -113543,13 +113534,6 @@ "type": "TypeString" } }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true - }, { "name": "name", "type": "TypeString", @@ -113557,51 +113541,56 @@ "required": true }, { - "name": "description", + "name": "icon_128x128", "type": "TypeString", - "description": "The Destination description.", + "description": "The Certificate File.", "optional": true }, { - "name": "updated_at", + "name": "icon_128x128_2x", "type": "TypeString", - "description": "Last updated time.", - "computed": true - } - ], - "ibm_en_destination_safari": [ + "description": "The Certificate File.", + "optional": true + }, { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true + "name": "icon_16x16_content_type", + "type": "TypeString", + "description": "The Certificate File.", + "optional": true }, { - "name": "description", + "name": "icon_16x16_2x_content_type", "type": "TypeString", - "description": "The Destination description.", + "description": "The Certificate File.", "optional": true }, { - "name": "icon_16x16_2x", + "name": "icon_128x128_2x_content_type", "type": "TypeString", "description": "The Certificate File.", "optional": true }, { - "name": "icon_32x32_2x", + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true + }, + { + "name": "icon_16x16", "type": "TypeString", "description": "The Certificate File.", "optional": true }, { - "name": "icon_128x128", + "name": "icon_32x32_content_type", "type": "TypeString", "description": "The Certificate File.", "optional": true }, { - "name": "icon_128x128_2x", + "name": "icon_128x128_content_type", "type": "TypeString", "description": "The Certificate File.", "optional": true @@ -113672,55 +113661,12 @@ "description": "Last updated time.", "computed": true }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The Destintion name.", - "required": true - }, - { - "name": "icon_32x32_content_type", - "type": "TypeString", - "description": "The Certificate File.", - "optional": true - }, - { - "name": "icon_128x128_content_type", - "type": "TypeString", - "description": "The Certificate File.", - "optional": true - }, - { - "name": "icon_128x128_2x_content_type", - "type": "TypeString", - "description": "The Certificate File.", - "optional": true - }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Destination ID", - "computed": true - }, { "name": "certificate", "type": "TypeString", "description": "The Certificate File.", "required": true }, - { - "name": "icon_16x16", - "type": "TypeString", - "description": "The Certificate File.", - "optional": true - }, { "name": "icon_32x32", "type": "TypeString", @@ -113728,40 +113674,31 @@ "optional": true }, { - "name": "icon_16x16_content_type", - "type": "TypeString", - "description": "The Certificate File.", - "optional": true - }, - { - "name": "icon_32x32_2x_content_type", + "name": "icon_32x32_2x", "type": "TypeString", "description": "The Certificate File.", "optional": true }, { - "name": "subscription_names", - "type": "TypeList", - "description": "List of subscriptions.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true }, { "name": "type", "type": "TypeString", "description": "The type of Destination type push_ios.", "required": true - }, - { - "name": "icon_16x16_2x_content_type", - "type": "TypeString", - "description": "The Certificate File.", - "optional": true } ], "ibm_en_destination_slack": [ + { + "name": "name", + "type": "TypeString", + "description": "The Destintion name.", + "required": true + }, { "name": "description", "type": "TypeString", @@ -113769,9 +113706,9 @@ "optional": true }, { - "name": "updated_at", + "name": "destination_id", "type": "TypeString", - "description": "Last updated time.", + "description": "Destination ID", "computed": true }, { @@ -113796,24 +113733,6 @@ "description": "The type of Destination Webhook.", "required": true }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Destination ID", - "computed": true - }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The Destintion name.", - "required": true - }, { "name": "config", "type": "TypeList", @@ -113836,14 +113755,6 @@ } }, "max_items": 1 - } - ], - "ibm_en_destination_sn": [ - { - "name": "type", - "type": "TypeString", - "description": "The type of Destination type push_chrome.", - "required": true }, { "name": "updated_at", @@ -113856,19 +113767,15 @@ "type": "TypeInt", "description": "Number of subscriptions.", "computed": true - }, + } + ], + "ibm_en_destination_sn": [ { "name": "name", "type": "TypeString", "description": "The Destintion name.", "required": true }, - { - "name": "description", - "type": "TypeString", - "description": "The Destination description.", - "optional": true - }, { "name": "config", "type": "TypeList", @@ -113926,6 +113833,18 @@ "description": "Destination ID", "computed": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", + "computed": true + }, { "name": "subscription_names", "type": "TypeList", @@ -113941,19 +113860,37 @@ "description": "Unique identifier for IBM Cloud Event Notifications instance.", "immutable": true, "required": true + }, + { + "name": "type", + "type": "TypeString", + "description": "The type of Destination type push_chrome.", + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The Destination description.", + "optional": true } ], "ibm_en_destination_webhook": [ { - "name": "destination_id", + "name": "name", "type": "TypeString", - "description": "Destination ID", - "computed": true + "description": "The Destintion name.", + "required": true }, { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", + "name": "type", + "type": "TypeString", + "description": "The type of Destination Webhook.", + "required": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", "computed": true }, { @@ -113966,15 +113903,10 @@ } }, { - "name": "name", - "type": "TypeString", - "description": "The Destintion name.", - "required": true - }, - { - "name": "type", + "name": "instance_guid", "type": "TypeString", - "description": "The type of Destination Webhook.", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, "required": true }, { @@ -113983,13 +113915,6 @@ "description": "The Destination description.", "optional": true }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true - }, { "name": "config", "type": "TypeList", @@ -114038,19 +113963,46 @@ "max_items": 1 }, { - "name": "updated_at", + "name": "destination_id", "type": "TypeString", - "description": "Last updated time.", + "description": "Destination ID", + "computed": true + }, + { + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", "computed": true } ], "ibm_en_ibmsource": [ + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true + }, + { + "name": "enabled", + "type": "TypeBool", + "description": "The enabled flag for source", + "required": true + }, { "name": "source_id", "type": "TypeString", "description": "Destination ID", "required": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + } + ], + "ibm_en_integration": [ { "name": "updated_at", "type": "TypeString", @@ -114064,14 +114016,6 @@ "immutable": true, "required": true }, - { - "name": "enabled", - "type": "TypeBool", - "description": "The enabled flag for source", - "required": true - } - ], - "ibm_en_integration": [ { "name": "integration_id", "type": "TypeString", @@ -114109,22 +114053,16 @@ } }, "max_items": 1 - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true - }, + } + ], + "ibm_en_source": [ { "name": "instance_guid", "type": "TypeString", "description": "Unique identifier for IBM Cloud Event Notifications instance.", "immutable": true, "required": true - } - ], - "ibm_en_source": [ + }, { "name": "name", "type": "TypeString", @@ -114154,16 +114092,28 @@ "type": "TypeString", "description": "Last updated time.", "computed": true - }, + } + ], + "ibm_en_subscription_android": [ { "name": "instance_guid", "type": "TypeString", "description": "Unique identifier for IBM Cloud Event Notifications instance.", "immutable": true, "required": true - } - ], - "ibm_en_subscription_android": [ + }, + { + "name": "name", + "type": "TypeString", + "description": "Subscription name.", + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Subscription description.", + "optional": true + }, { "name": "subscription_id", "type": "TypeString", @@ -114171,9 +114121,9 @@ "computed": true }, { - "name": "topic_name", + "name": "destination_name", "type": "TypeString", - "description": "Name of the topic.", + "description": "The Destintion name.", "computed": true }, { @@ -114182,12 +114132,6 @@ "description": "Last updated time.", "computed": true }, - { - "name": "name", - "type": "TypeString", - "description": "Subscription name.", - "required": true - }, { "name": "destination_id", "type": "TypeString", @@ -114209,31 +114153,31 @@ "computed": true }, { - "name": "destination_name", + "name": "topic_name", "type": "TypeString", - "description": "The Destintion name.", + "description": "Name of the topic.", "computed": true - }, + } + ], + "ibm_en_subscription_ce": [ { - "name": "instance_guid", + "name": "subscription_id", "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true + "description": "Subscription ID.", + "computed": true }, { - "name": "description", + "name": "topic_name", "type": "TypeString", - "description": "Subscription description.", - "optional": true - } - ], - "ibm_en_subscription_ce": [ + "description": "Name of the topic.", + "computed": true + }, { - "name": "updated_at", + "name": "topic_id", "type": "TypeString", - "description": "Last updated time.", - "computed": true + "description": "Topic ID.", + "immutable": true, + "required": true }, { "name": "name", @@ -114254,19 +114198,6 @@ "immutable": true, "required": true }, - { - "name": "topic_id", - "type": "TypeString", - "description": "Topic ID.", - "immutable": true, - "required": true - }, - { - "name": "subscription_id", - "type": "TypeString", - "description": "Subscription ID.", - "computed": true - }, { "name": "destination_type", "type": "TypeString", @@ -114279,26 +114210,39 @@ "description": "The Destintion name.", "computed": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true + }, { "name": "instance_guid", "type": "TypeString", "description": "Unique identifier for IBM Cloud Event Notifications instance.", "immutable": true, "required": true + } + ], + "ibm_en_subscription_cf": [ + { + "name": "destination_name", + "type": "TypeString", + "description": "The Destintion name.", + "computed": true }, { "name": "topic_name", "type": "TypeString", "description": "Name of the topic.", "computed": true - } - ], - "ibm_en_subscription_cf": [ + }, { - "name": "description", + "name": "instance_guid", "type": "TypeString", - "description": "Subscription description.", - "optional": true + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true }, { "name": "destination_id", @@ -114308,24 +114252,22 @@ "required": true }, { - "name": "topic_id", + "name": "subscription_id", "type": "TypeString", - "description": "Topic ID.", - "immutable": true, - "required": true + "description": "Subscription ID.", + "computed": true }, { - "name": "updated_at", + "name": "destination_type", "type": "TypeString", - "description": "Last updated time.", + "description": "The type of Destination.", "computed": true }, { - "name": "instance_guid", + "name": "updated_at", "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true + "description": "Last updated time.", + "computed": true }, { "name": "name", @@ -114333,6 +114275,21 @@ "description": "Subscription name.", "required": true }, + { + "name": "description", + "type": "TypeString", + "description": "Subscription description.", + "optional": true + }, + { + "name": "topic_id", + "type": "TypeString", + "description": "Topic ID.", + "immutable": true, + "required": true + } + ], + "ibm_en_subscription_chrome": [ { "name": "subscription_id", "type": "TypeString", @@ -114345,20 +114302,12 @@ "description": "The type of Destination.", "computed": true }, - { - "name": "destination_name", - "type": "TypeString", - "description": "The Destintion name.", - "computed": true - }, { "name": "topic_name", "type": "TypeString", "description": "Name of the topic.", "computed": true - } - ], - "ibm_en_subscription_chrome": [ + }, { "name": "instance_guid", "type": "TypeString", @@ -114373,24 +114322,12 @@ "optional": true }, { - "name": "destination_id", + "name": "topic_id", "type": "TypeString", - "description": "Destination ID.", + "description": "Topic ID.", "immutable": true, "required": true }, - { - "name": "subscription_id", - "type": "TypeString", - "description": "Subscription ID.", - "computed": true - }, - { - "name": "destination_type", - "type": "TypeString", - "description": "The type of Destination.", - "computed": true - }, { "name": "destination_name", "type": "TypeString", @@ -114410,20 +114347,26 @@ "required": true }, { - "name": "topic_id", + "name": "destination_id", "type": "TypeString", - "description": "Topic ID.", + "description": "Destination ID.", "immutable": true, "required": true + } + ], + "ibm_en_subscription_cos": [ + { + "name": "destination_type", + "type": "TypeString", + "description": "The type of Destination.", + "computed": true }, { - "name": "topic_name", + "name": "destination_name", "type": "TypeString", - "description": "Name of the topic.", + "description": "The Destintion name.", "computed": true - } - ], - "ibm_en_subscription_cos": [ + }, { "name": "instance_guid", "type": "TypeString", @@ -114431,6 +114374,19 @@ "immutable": true, "required": true }, + { + "name": "name", + "type": "TypeString", + "description": "Subscription name.", + "required": true + }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Destination ID.", + "immutable": true, + "required": true + }, { "name": "subscription_id", "type": "TypeString", @@ -114438,16 +114394,17 @@ "computed": true }, { - "name": "destination_type", + "name": "description", "type": "TypeString", - "description": "The type of Destination.", - "computed": true + "description": "Subscription description.", + "optional": true }, { - "name": "destination_name", + "name": "topic_id", "type": "TypeString", - "description": "The Destintion name.", - "computed": true + "description": "Topic ID.", + "immutable": true, + "required": true }, { "name": "topic_name", @@ -114460,35 +114417,22 @@ "type": "TypeString", "description": "Last updated time.", "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Subscription name.", - "required": true - }, + } + ], + "ibm_en_subscription_custom_email": [ { "name": "description", "type": "TypeString", "description": "Subscription description.", "optional": true }, - { - "name": "destination_id", - "type": "TypeString", - "description": "Destination ID.", - "immutable": true, - "required": true - }, { "name": "topic_id", "type": "TypeString", "description": "Topic ID.", "immutable": true, "required": true - } - ], - "ibm_en_subscription_custom_email": [ + }, { "name": "attributes", "type": "TypeList", @@ -114566,12 +114510,6 @@ }, "max_items": 1 }, - { - "name": "destination_type", - "type": "TypeString", - "description": "The type of Destination.", - "computed": true - }, { "name": "subscription_id", "type": "TypeString", @@ -114590,25 +114528,12 @@ "description": "Name of the topic.", "computed": true }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true - }, { "name": "name", "type": "TypeString", "description": "Subscription name.", "required": true }, - { - "name": "description", - "type": "TypeString", - "description": "Subscription description.", - "optional": true - }, { "name": "destination_id", "type": "TypeString", @@ -114616,46 +114541,12 @@ "immutable": true, "required": true }, - { - "name": "topic_id", - "type": "TypeString", - "description": "Topic ID.", - "immutable": true, - "required": true - }, - { - "name": "from", - "type": "TypeString", - "description": "From Email ID (it will be displayed only in case of smtp_ibm destination type).", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true - } - ], - "ibm_en_subscription_email": [ - { - "name": "topic_id", - "type": "TypeString", - "description": "Topic ID.", - "immutable": true, - "required": true - }, { "name": "destination_type", "type": "TypeString", "description": "The type of Destination.", "computed": true }, - { - "name": "topic_name", - "type": "TypeString", - "description": "Name of the topic.", - "computed": true - }, { "name": "from", "type": "TypeString", @@ -114674,6 +114565,14 @@ "description": "Unique identifier for IBM Cloud Event Notifications instance.", "immutable": true, "required": true + } + ], + "ibm_en_subscription_email": [ + { + "name": "updated_at", + "type": "TypeString", + "description": "Last updated time.", + "computed": true }, { "name": "description", @@ -114689,15 +114588,10 @@ "required": true }, { - "name": "destination_name", - "type": "TypeString", - "description": "The Destintion name.", - "computed": true - }, - { - "name": "name", + "name": "topic_id", "type": "TypeString", - "description": "Subscription name.", + "description": "Topic ID.", + "immutable": true, "required": true }, { @@ -114759,11 +114653,48 @@ }, "max_items": 1 }, + { + "name": "destination_type", + "type": "TypeString", + "description": "The type of Destination.", + "computed": true + }, + { + "name": "topic_name", + "type": "TypeString", + "description": "Name of the topic.", + "computed": true + }, + { + "name": "from", + "type": "TypeString", + "description": "From Email ID (it will be displayed only in case of smtp_ibm destination type).", + "computed": true + }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Subscription name.", + "required": true + }, { "name": "subscription_id", "type": "TypeString", "description": "Subscription ID.", "computed": true + }, + { + "name": "destination_name", + "type": "TypeString", + "description": "The Destintion name.", + "computed": true } ], "ibm_en_subscription_firefox": [ @@ -114781,10 +114712,10 @@ "required": true }, { - "name": "description", + "name": "destination_type", "type": "TypeString", - "description": "Subscription description.", - "optional": true + "description": "The type of Destination.", + "computed": true }, { "name": "topic_name", @@ -114798,6 +114729,12 @@ "description": "Last updated time.", "computed": true }, + { + "name": "description", + "type": "TypeString", + "description": "Subscription description.", + "optional": true + }, { "name": "destination_id", "type": "TypeString", @@ -114818,12 +114755,6 @@ "description": "Subscription ID.", "computed": true }, - { - "name": "destination_type", - "type": "TypeString", - "description": "The type of Destination.", - "computed": true - }, { "name": "destination_name", "type": "TypeString", @@ -114833,15 +114764,21 @@ ], "ibm_en_subscription_huawei": [ { - "name": "destination_name", + "name": "subscription_id", "type": "TypeString", - "description": "The Destintion name.", + "description": "Subscription ID.", "computed": true }, { - "name": "topic_name", + "name": "destination_type", "type": "TypeString", - "description": "Name of the topic.", + "description": "The type of Destination.", + "computed": true + }, + { + "name": "destination_name", + "type": "TypeString", + "description": "The Destintion name.", "computed": true }, { @@ -114852,10 +114789,10 @@ "required": true }, { - "name": "name", + "name": "description", "type": "TypeString", - "description": "Subscription name.", - "required": true + "description": "Subscription description.", + "optional": true }, { "name": "topic_id", @@ -114865,22 +114802,22 @@ "required": true }, { - "name": "subscription_id", + "name": "topic_name", "type": "TypeString", - "description": "Subscription ID.", + "description": "Name of the topic.", "computed": true }, { - "name": "destination_type", + "name": "updated_at", "type": "TypeString", - "description": "The type of Destination.", + "description": "Last updated time.", "computed": true }, { - "name": "description", + "name": "name", "type": "TypeString", - "description": "Subscription description.", - "optional": true + "description": "Subscription name.", + "required": true }, { "name": "destination_id", @@ -114888,33 +114825,26 @@ "description": "Destination ID.", "immutable": true, "required": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true } ], "ibm_en_subscription_ios": [ { - "name": "instance_guid", + "name": "description", "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true + "description": "Subscription description.", + "optional": true }, { - "name": "name", + "name": "destination_type", "type": "TypeString", - "description": "Subscription name.", - "required": true + "description": "The type of Destination.", + "computed": true }, { - "name": "description", + "name": "name", "type": "TypeString", - "description": "Subscription description.", - "optional": true + "description": "Subscription name.", + "required": true }, { "name": "destination_id", @@ -114923,12 +114853,6 @@ "immutable": true, "required": true }, - { - "name": "topic_name", - "type": "TypeString", - "description": "Name of the topic.", - "computed": true - }, { "name": "topic_id", "type": "TypeString", @@ -114943,15 +114867,15 @@ "computed": true }, { - "name": "destination_type", + "name": "destination_name", "type": "TypeString", - "description": "The type of Destination.", + "description": "The Destintion name.", "computed": true }, { - "name": "destination_name", + "name": "topic_name", "type": "TypeString", - "description": "The Destintion name.", + "description": "Name of the topic.", "computed": true }, { @@ -114959,28 +114883,27 @@ "type": "TypeString", "description": "Last updated time.", "computed": true - } - ], - "ibm_en_subscription_msteams": [ + }, { "name": "instance_guid", "type": "TypeString", "description": "Unique identifier for IBM Cloud Event Notifications instance.", "immutable": true, "required": true - }, + } + ], + "ibm_en_subscription_msteams": [ { - "name": "name", + "name": "destination_name", "type": "TypeString", - "description": "Subscription name.", - "required": true + "description": "The Destintion name.", + "computed": true }, { - "name": "topic_id", + "name": "topic_name", "type": "TypeString", - "description": "Topic ID.", - "immutable": true, - "required": true + "description": "Name of the topic.", + "computed": true }, { "name": "updated_at", @@ -114989,10 +114912,18 @@ "computed": true }, { - "name": "description", + "name": "instance_guid", "type": "TypeString", - "description": "Subscription description.", - "optional": true + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true + }, + { + "name": "topic_id", + "type": "TypeString", + "description": "Topic ID.", + "immutable": true, + "required": true }, { "name": "destination_id", @@ -115014,31 +114945,32 @@ "computed": true }, { - "name": "destination_name", + "name": "name", "type": "TypeString", - "description": "The Destintion name.", - "computed": true + "description": "Subscription name.", + "required": true }, { - "name": "topic_name", + "name": "description", "type": "TypeString", - "description": "Name of the topic.", - "computed": true + "description": "Subscription description.", + "optional": true } ], "ibm_en_subscription_pagerduty": [ + { + "name": "topic_id", + "type": "TypeString", + "description": "Topic ID.", + "immutable": true, + "required": true + }, { "name": "subscription_id", "type": "TypeString", "description": "Subscription ID.", "computed": true }, - { - "name": "destination_type", - "type": "TypeString", - "description": "The type of Destination.", - "computed": true - }, { "name": "destination_name", "type": "TypeString", @@ -115052,12 +114984,6 @@ "immutable": true, "required": true }, - { - "name": "name", - "type": "TypeString", - "description": "Subscription name.", - "required": true - }, { "name": "description", "type": "TypeString", @@ -115065,18 +114991,10 @@ "optional": true }, { - "name": "destination_id", - "type": "TypeString", - "description": "Destination ID.", - "immutable": true, - "required": true - }, - { - "name": "topic_id", + "name": "destination_type", "type": "TypeString", - "description": "Topic ID.", - "immutable": true, - "required": true + "description": "The type of Destination.", + "computed": true }, { "name": "topic_name", @@ -115089,28 +115007,22 @@ "type": "TypeString", "description": "Last updated time.", "computed": true - } - ], - "ibm_en_subscription_safari": [ - { - "name": "topic_name", - "type": "TypeString", - "description": "Name of the topic.", - "computed": true }, { - "name": "updated_at", + "name": "name", "type": "TypeString", - "description": "Last updated time.", - "computed": true + "description": "Subscription name.", + "required": true }, { - "name": "topic_id", + "name": "destination_id", "type": "TypeString", - "description": "Topic ID.", + "description": "Destination ID.", "immutable": true, "required": true - }, + } + ], + "ibm_en_subscription_safari": [ { "name": "subscription_id", "type": "TypeString", @@ -115118,15 +115030,15 @@ "computed": true }, { - "name": "destination_type", + "name": "topic_name", "type": "TypeString", - "description": "The type of Destination.", + "description": "Name of the topic.", "computed": true }, { - "name": "destination_name", + "name": "updated_at", "type": "TypeString", - "description": "The Destintion name.", + "description": "Last updated time.", "computed": true }, { @@ -115154,14 +115066,13 @@ "description": "Destination ID.", "immutable": true, "required": true - } - ], - "ibm_en_subscription_slack": [ + }, { - "name": "subscription_id", + "name": "topic_id", "type": "TypeString", - "description": "Subscription ID.", - "computed": true + "description": "Topic ID.", + "immutable": true, + "required": true }, { "name": "destination_type", @@ -115174,11 +115085,13 @@ "type": "TypeString", "description": "The Destintion name.", "computed": true - }, + } + ], + "ibm_en_subscription_slack": [ { - "name": "topic_name", + "name": "updated_at", "type": "TypeString", - "description": "Name of the topic.", + "description": "Last updated time.", "computed": true }, { @@ -115187,6 +115100,12 @@ "description": "Subscription name.", "required": true }, + { + "name": "description", + "type": "TypeString", + "description": "Subscription description.", + "optional": true + }, { "name": "destination_id", "type": "TypeString", @@ -115194,6 +115113,13 @@ "immutable": true, "required": true }, + { + "name": "topic_id", + "type": "TypeString", + "description": "Topic ID.", + "immutable": true, + "required": true + }, { "name": "attributes", "type": "TypeList", @@ -115208,6 +115134,39 @@ }, "max_items": 1 }, + { + "name": "destination_name", + "type": "TypeString", + "description": "The Destintion name.", + "computed": true + }, + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true + }, + { + "name": "subscription_id", + "type": "TypeString", + "description": "Subscription ID.", + "computed": true + }, + { + "name": "destination_type", + "type": "TypeString", + "description": "The type of Destination.", + "computed": true + }, + { + "name": "topic_name", + "type": "TypeString", + "description": "Name of the topic.", + "computed": true + } + ], + "ibm_en_subscription_sms": [ { "name": "updated_at", "type": "TypeString", @@ -115221,21 +115180,44 @@ "immutable": true, "required": true }, + { + "name": "name", + "type": "TypeString", + "description": "Subscription name.", + "required": true + }, { "name": "description", "type": "TypeString", "description": "Subscription description.", "optional": true }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Destination ID.", + "immutable": true, + "required": true + }, + { + "name": "subscription_id", + "type": "TypeString", + "description": "Subscription ID.", + "computed": true + }, + { + "name": "destination_name", + "type": "TypeString", + "description": "The Destination name.", + "computed": true + }, { "name": "topic_id", "type": "TypeString", "description": "Topic ID.", "immutable": true, "required": true - } - ], - "ibm_en_subscription_sms": [ + }, { "name": "attributes", "type": "TypeList", @@ -115277,43 +115259,14 @@ "description": "The type of Destination.", "computed": true }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true - }, - { - "name": "destination_name", - "type": "TypeString", - "description": "The Destination name.", - "computed": true - }, { "name": "topic_name", "type": "TypeString", "description": "Name of the topic.", "computed": true - }, - { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Subscription name.", - "required": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Subscription description.", - "optional": true - }, + } + ], + "ibm_en_subscription_sn": [ { "name": "destination_id", "type": "TypeString", @@ -115321,39 +115274,22 @@ "immutable": true, "required": true }, - { - "name": "topic_id", - "type": "TypeString", - "description": "Topic ID.", - "immutable": true, - "required": true - }, { "name": "subscription_id", "type": "TypeString", "description": "Subscription ID.", "computed": true - } - ], - "ibm_en_subscription_sn": [ - { - "name": "destination_id", - "type": "TypeString", - "description": "Destination ID.", - "immutable": true, - "required": true }, { - "name": "topic_id", + "name": "destination_type", "type": "TypeString", - "description": "Topic ID.", - "immutable": true, - "required": true + "description": "The type of Destination.", + "computed": true }, { - "name": "subscription_id", + "name": "destination_name", "type": "TypeString", - "description": "Subscription ID.", + "description": "The Destintion name.", "computed": true }, { @@ -115376,16 +115312,11 @@ "optional": true }, { - "name": "destination_type", - "type": "TypeString", - "description": "The type of Destination.", - "computed": true - }, - { - "name": "destination_name", + "name": "topic_id", "type": "TypeString", - "description": "The Destintion name.", - "computed": true + "description": "Topic ID.", + "immutable": true, + "required": true }, { "name": "topic_name", @@ -115401,12 +115332,32 @@ } ], "ibm_en_subscription_webhook": [ + { + "name": "instance_guid", + "type": "TypeString", + "description": "Unique identifier for IBM Cloud Event Notifications instance.", + "immutable": true, + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Subscription name.", + "required": true + }, { "name": "description", "type": "TypeString", "description": "Subscription description.", "optional": true }, + { + "name": "destination_id", + "type": "TypeString", + "description": "Destination ID.", + "immutable": true, + "required": true + }, { "name": "attributes", "type": "TypeList", @@ -115422,12 +115373,6 @@ }, "max_items": 1 }, - { - "name": "subscription_id", - "type": "TypeString", - "description": "Subscription ID.", - "computed": true - }, { "name": "topic_name", "type": "TypeString", @@ -115435,31 +115380,23 @@ "computed": true }, { - "name": "instance_guid", - "type": "TypeString", - "description": "Unique identifier for IBM Cloud Event Notifications instance.", - "immutable": true, - "required": true - }, - { - "name": "name", + "name": "updated_at", "type": "TypeString", - "description": "Subscription name.", - "required": true + "description": "Last updated time.", + "computed": true }, { - "name": "destination_id", + "name": "topic_id", "type": "TypeString", - "description": "Destination ID.", + "description": "Topic ID.", "immutable": true, "required": true }, { - "name": "topic_id", + "name": "subscription_id", "type": "TypeString", - "description": "Topic ID.", - "immutable": true, - "required": true + "description": "Subscription ID.", + "computed": true }, { "name": "destination_type", @@ -115472,27 +115409,9 @@ "type": "TypeString", "description": "The Destintion name.", "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Last updated time.", - "computed": true } ], "ibm_en_topic": [ - { - "name": "source_count", - "type": "TypeInt", - "description": "Number of sources.", - "computed": true - }, - { - "name": "subscription_count", - "type": "TypeInt", - "description": "Number of subscriptions.", - "computed": true - }, { "name": "instance_guid", "type": "TypeString", @@ -115500,60 +115419,6 @@ "immutable": true, "required": true }, - { - "name": "description", - "type": "TypeString", - "description": "Description of the topic.", - "optional": true - }, - { - "name": "sources", - "type": "TypeList", - "description": "List of sources.", - "optional": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "ID of the source.", - "required": true - }, - "rules": { - "name": "rules", - "type": "TypeList", - "description": "List of rules.", - "optional": true, - "elem": { - "enabled": { - "name": "enabled", - "type": "TypeBool", - "description": "Whether the rule is enabled or not.", - "default_value": true, - "optional": true - }, - "event_type_filter": { - "name": "event_type_filter", - "type": "TypeString", - "description": "Event type filter.", - "required": true - }, - "notification_filter": { - "name": "notification_filter", - "type": "TypeString", - "description": "Notification filter.", - "default_value": "", - "optional": true - } - } - } - } - }, - { - "name": "topic_id", - "type": "TypeString", - "description": "Topic ID.", - "computed": true - }, { "name": "name", "type": "TypeString", @@ -115561,9 +115426,15 @@ "required": true }, { - "name": "updated_at", + "name": "description", "type": "TypeString", - "description": "Last time the topic was updated.", + "description": "Description of the topic.", + "optional": true + }, + { + "name": "source_count", + "type": "TypeInt", + "description": "Number of sources.", "computed": true }, { @@ -115615,38 +115486,74 @@ "computed": true } } - } - ], - "ibm_enterprise": [ + }, { - "name": "source_account_id", - "type": "TypeString", - "description": "The ID of the account that is used to create the enterprise.", - "immutable": true, - "required": true + "name": "sources", + "type": "TypeList", + "description": "List of sources.", + "optional": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "ID of the source.", + "required": true + }, + "rules": { + "name": "rules", + "type": "TypeList", + "description": "List of rules.", + "optional": true, + "elem": { + "enabled": { + "name": "enabled", + "type": "TypeBool", + "description": "Whether the rule is enabled or not.", + "default_value": true, + "optional": true + }, + "event_type_filter": { + "name": "event_type_filter", + "type": "TypeString", + "description": "Event type filter.", + "required": true + }, + "notification_filter": { + "name": "notification_filter", + "type": "TypeString", + "description": "Notification filter.", + "default_value": "", + "optional": true + } + } + } + } }, { - "name": "enterprise_account_id", + "name": "topic_id", "type": "TypeString", - "description": "The enterprise account ID.", + "description": "Topic ID.", "computed": true }, { - "name": "state", + "name": "updated_at", "type": "TypeString", - "description": "The state of the enterprise.", + "description": "Last time the topic was updated.", "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The time stamp at which the enterprise was created.", + "name": "subscription_count", + "type": "TypeInt", + "description": "Number of subscriptions.", "computed": true - }, + } + ], + "ibm_enterprise": [ { - "name": "updated_at", + "name": "crn", "type": "TypeString", - "description": "The time stamp at which the enterprise was last updated.", + "description": "The Cloud Resource Name (CRN) of the enterprise.", + "cloud_data_type": "crn", "computed": true }, { @@ -115656,9 +115563,9 @@ "computed": true }, { - "name": "created_by", + "name": "created_at", "type": "TypeString", - "description": "The IAM ID of the user or service that created the enterprise.", + "description": "The time stamp at which the enterprise was created.", "computed": true }, { @@ -115667,6 +115574,12 @@ "description": "The IAM ID of the user or service that updated the enterprise.", "computed": true }, + { + "name": "domain", + "type": "TypeString", + "description": "A domain or subdomain for the enterprise, such as `example.com` or `my.example.com`.", + "optional": true + }, { "name": "name", "type": "TypeString", @@ -115680,40 +115593,76 @@ "required": true }, { - "name": "domain", + "name": "url", "type": "TypeString", - "description": "A domain or subdomain for the enterprise, such as `example.com` or `my.example.com`.", - "optional": true + "description": "The URL of the enterprise.", + "computed": true }, { - "name": "url", + "name": "enterprise_account_id", "type": "TypeString", - "description": "The URL of the enterprise.", + "description": "The enterprise account ID.", "computed": true }, { - "name": "crn", + "name": "state", "type": "TypeString", - "description": "The Cloud Resource Name (CRN) of the enterprise.", - "cloud_data_type": "crn", + "description": "The state of the enterprise.", + "computed": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "The IAM ID of the user or service that created the enterprise.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The time stamp at which the enterprise was last updated.", "computed": true + }, + { + "name": "source_account_id", + "type": "TypeString", + "description": "The ID of the account that is used to create the enterprise.", + "immutable": true, + "required": true } ], "ibm_enterprise_account": [ { - "name": "parent", + "name": "crn", "type": "TypeString", - "description": "The CRN of the parent under which the account will be created. The parent can be an existing account group or the enterprise itself.", - "required": true + "description": "The Cloud Resource Name (CRN) of the account.", + "cloud_data_type": "crn", + "computed": true }, { - "name": "owner_iam_id", + "name": "account_id", "type": "TypeString", - "description": "The IAM ID of the account owner, such as `IBMid-0123ABC`. The IAM ID must already exist.", - "immutable": true, + "description": "The source account id of account to be imported", "optional": true, "computed": true }, + { + "name": "owner_email", + "type": "TypeString", + "description": "The email address of the owner of the account.", + "computed": true + }, + { + "name": "updated_by", + "type": "TypeString", + "description": "The IAM ID of the user or service that updated the account.", + "computed": true + }, + { + "name": "parent", + "type": "TypeString", + "description": "The CRN of the parent under which the account will be created. The parent can be an existing account group or the enterprise itself.", + "required": true + }, { "name": "traits", "type": "TypeSet", @@ -115735,41 +115684,17 @@ } }, { - "name": "enterprise_id", - "type": "TypeString", - "description": "The enterprise ID that the account is a part of.", - "optional": true, - "computed": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "The IAM ID of the user or service that created the account.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "The time stamp at which the account was last updated.", - "computed": true - }, - { - "name": "updated_by", - "type": "TypeString", - "description": "The IAM ID of the user or service that updated the account.", - "computed": true - }, - { - "name": "url", + "name": "state", "type": "TypeString", - "description": "The URL of the account.", + "description": "The state of the account.", "computed": true }, { - "name": "crn", + "name": "owner_iam_id", "type": "TypeString", - "description": "The Cloud Resource Name (CRN) of the account.", - "cloud_data_type": "crn", + "description": "The IAM ID of the account owner, such as `IBMid-0123ABC`. The IAM ID must already exist.", + "immutable": true, + "optional": true, "computed": true }, { @@ -115780,9 +115705,9 @@ "computed": true }, { - "name": "state", + "name": "enterprise_path", "type": "TypeString", - "description": "The state of the account.", + "description": "The path from the enterprise to this particular account.", "computed": true }, { @@ -115792,130 +115717,136 @@ "computed": true }, { - "name": "is_enterprise_account", - "type": "TypeBool", - "description": "The flag to indicate whether the account is an enterprise account or not.", + "name": "created_at", + "type": "TypeString", + "description": "The time stamp at which the account was created.", "computed": true }, { - "name": "created_at", + "name": "created_by", "type": "TypeString", - "description": "The time stamp at which the account was created.", + "description": "The IAM ID of the user or service that created the account.", "computed": true }, { - "name": "name", + "name": "updated_at", "type": "TypeString", - "description": "The name of the account. This field must have 3 - 60 characters.", - "immutable": true, - "optional": true, + "description": "The time stamp at which the account was last updated.", "computed": true }, { - "name": "enterprise_path", + "name": "url", "type": "TypeString", - "description": "The path from the enterprise to this particular account.", + "description": "The URL of the account.", "computed": true }, { - "name": "account_id", + "name": "enterprise_id", "type": "TypeString", - "description": "The source account id of account to be imported", + "description": "The enterprise ID that the account is a part of.", "optional": true, "computed": true }, { - "name": "owner_email", + "name": "name", "type": "TypeString", - "description": "The email address of the owner of the account.", + "description": "The name of the account. This field must have 3 - 60 characters.", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "is_enterprise_account", + "type": "TypeBool", + "description": "The flag to indicate whether the account is an enterprise account or not.", "computed": true } ], "ibm_enterprise_account_group": [ { - "name": "parent", + "name": "enterprise_account_id", "type": "TypeString", - "description": "The CRN of the parent under which the account group will be created. The parent can be an existing account group or the enterprise itself.", - "immutable": true, - "required": true + "description": "The enterprise account ID.", + "computed": true }, { - "name": "name", + "name": "state", "type": "TypeString", - "description": "The name of the account group. This field must have 3 - 60 characters.", - "required": true + "description": "The state of the account group.", + "computed": true }, { - "name": "primary_contact_iam_id", + "name": "updated_by", "type": "TypeString", - "description": "The IAM ID of the primary contact for this account group, such as `IBMid-0123ABC`. The IAM ID must already exist.", - "required": true + "description": "The IAM ID of the user or service that updated the account group.", + "computed": true }, { - "name": "enterprise_id", + "name": "created_at", "type": "TypeString", - "description": "The enterprise ID that the account group is a part of.", + "description": "The time stamp at which the account group was created.", "computed": true }, { - "name": "state", + "name": "created_by", "type": "TypeString", - "description": "The state of the account group.", + "description": "The IAM ID of the user or service that created the account group.", "computed": true }, { - "name": "updated_at", + "name": "name", "type": "TypeString", - "description": "The time stamp at which the account group was last updated.", - "computed": true + "description": "The name of the account group. This field must have 3 - 60 characters.", + "required": true }, { - "name": "crn", + "name": "url", "type": "TypeString", - "description": "The Cloud Resource Name (CRN) of the account group.", - "cloud_data_type": "crn", + "description": "The URL of the account group.", "computed": true }, { - "name": "primary_contact_email", + "name": "enterprise_path", "type": "TypeString", - "description": "The email address of the primary contact of the account group.", + "description": "The path from the enterprise to this particular account group.", "computed": true }, { - "name": "created_by", + "name": "updated_at", "type": "TypeString", - "description": "The IAM ID of the user or service that created the account group.", + "description": "The time stamp at which the account group was last updated.", "computed": true }, { - "name": "updated_by", + "name": "parent", "type": "TypeString", - "description": "The IAM ID of the user or service that updated the account group.", - "computed": true + "description": "The CRN of the parent under which the account group will be created. The parent can be an existing account group or the enterprise itself.", + "immutable": true, + "required": true }, { - "name": "created_at", + "name": "primary_contact_iam_id", "type": "TypeString", - "description": "The time stamp at which the account group was created.", - "computed": true + "description": "The IAM ID of the primary contact for this account group, such as `IBMid-0123ABC`. The IAM ID must already exist.", + "required": true }, { - "name": "url", + "name": "crn", "type": "TypeString", - "description": "The URL of the account group.", + "description": "The Cloud Resource Name (CRN) of the account group.", + "cloud_data_type": "crn", "computed": true }, { - "name": "enterprise_account_id", + "name": "enterprise_id", "type": "TypeString", - "description": "The enterprise account ID.", + "description": "The enterprise ID that the account group is a part of.", "computed": true }, { - "name": "enterprise_path", + "name": "primary_contact_email", "type": "TypeString", - "description": "The path from the enterprise to this particular account group.", + "description": "The email address of the primary contact of the account group.", "computed": true } ], @@ -115999,6 +115930,28 @@ } ], "ibm_firewall": [ + { + "name": "password", + "type": "TypeString", + "description": "Password for the given User", + "computed": true + }, + { + "name": "firewall_type", + "type": "TypeString", + "description": "Firewall type", + "default_value": "HARDWARE_FIREWALL_DEDICATED", + "immutable": true, + "optional": true + }, + { + "name": "ha_enabled", + "type": "TypeBool", + "description": "set to true if High availability is enabled", + "default_value": false, + "immutable": true, + "optional": true + }, { "name": "public_vlan_id", "type": "TypeInt", @@ -116034,38 +115987,9 @@ "type": "TypeString", "description": "User name", "computed": true - }, - { - "name": "password", - "type": "TypeString", - "description": "Password for the given User", - "computed": true - }, - { - "name": "firewall_type", - "type": "TypeString", - "description": "Firewall type", - "default_value": "HARDWARE_FIREWALL_DEDICATED", - "immutable": true, - "optional": true - }, - { - "name": "ha_enabled", - "type": "TypeBool", - "description": "set to true if High availability is enabled", - "default_value": false, - "immutable": true, - "optional": true } ], "ibm_firewall_policy": [ - { - "name": "firewall_id", - "type": "TypeInt", - "description": "Firewall ID", - "immutable": true, - "required": true - }, { "name": "rules", "type": "TypeList", @@ -116128,22 +116052,16 @@ "elem": { "type": "TypeString" } + }, + { + "name": "firewall_id", + "type": "TypeInt", + "description": "Firewall ID", + "immutable": true, + "required": true } ], "ibm_function_action": [ - { - "name": "user_defined_annotations", - "type": "TypeString", - "description": "Annotation values in KEY VALUE format.", - "default_value": "[]", - "optional": true - }, - { - "name": "annotations", - "type": "TypeString", - "description": "All annotations set on action by user and those set by the IBM Cloud Function backend/API.", - "computed": true - }, { "name": "name", "type": "TypeString", @@ -116152,13 +116070,6 @@ "required": true, "matches": "^[^/*][a-zA-Z0-9/_@.-]" }, - { - "name": "namespace", - "type": "TypeString", - "description": "IBM Cloud function namespace.", - "immutable": true, - "required": true - }, { "name": "exec", "type": "TypeList", @@ -116215,9 +116126,29 @@ "max_items": 1 }, { - "name": "version", + "name": "user_defined_annotations", "type": "TypeString", - "description": "Semantic version of the item.", + "description": "Annotation values in KEY VALUE format.", + "default_value": "[]", + "optional": true + }, + { + "name": "user_defined_parameters", + "type": "TypeString", + "description": "Parameters values in KEY VALUE format. Parameter bindings included in the context passed to the action.", + "default_value": "[]", + "optional": true + }, + { + "name": "annotations", + "type": "TypeString", + "description": "All annotations set on action by user and those set by the IBM Cloud Function backend/API.", + "computed": true + }, + { + "name": "parameters", + "type": "TypeString", + "description": "All paramters set on action by user and those set by the IBM Cloud Function backend/API.", "computed": true }, { @@ -116231,6 +116162,13 @@ "description": "Action target endpoint URL.", "computed": true }, + { + "name": "namespace", + "type": "TypeString", + "description": "IBM Cloud function namespace.", + "immutable": true, + "required": true + }, { "name": "limits", "type": "TypeList", @@ -116268,20 +116206,25 @@ "optional": true }, { - "name": "user_defined_parameters", - "type": "TypeString", - "description": "Parameters values in KEY VALUE format. Parameter bindings included in the context passed to the action.", - "default_value": "[]", - "optional": true - }, - { - "name": "parameters", + "name": "version", "type": "TypeString", - "description": "All paramters set on action by user and those set by the IBM Cloud Function backend/API.", + "description": "Semantic version of the item.", "computed": true } ], "ibm_function_namespace": [ + { + "name": "name", + "type": "TypeString", + "description": "Name of namespace.", + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Namespace Description.", + "optional": true + }, { "name": "resource_group_id", "type": "TypeString", @@ -116295,21 +116238,21 @@ "description": "Namespace Location.", "cloud_data_type": "region", "computed": true - }, + } + ], + "ibm_function_package": [ { - "name": "name", + "name": "bind_package_name", "type": "TypeString", - "description": "Name of namespace.", - "required": true + "description": "Name of package to be binded.", + "immutable": true, + "optional": true }, { - "name": "description", + "name": "package_id", "type": "TypeString", - "description": "Namespace Description.", - "optional": true - } - ], - "ibm_function_package": [ + "computed": true + }, { "name": "namespace", "type": "TypeString", @@ -116317,6 +116260,14 @@ "immutable": true, "required": true }, + { + "name": "name", + "type": "TypeString", + "description": "Name of package.", + "immutable": true, + "required": true, + "matches": "\\A([\\w]|[\\w][\\w@ .-]*[\\w@.-]+)\\z" + }, { "name": "version", "type": "TypeString", @@ -116335,26 +116286,6 @@ "description": "All parameters set on package by user and those set by the IBM Cloud Function backend/API.", "computed": true }, - { - "name": "bind_package_name", - "type": "TypeString", - "description": "Name of package to be binded.", - "immutable": true, - "optional": true - }, - { - "name": "package_id", - "type": "TypeString", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of package.", - "immutable": true, - "required": true, - "matches": "\\A([\\w]|[\\w][\\w@ .-]*[\\w@.-]+)\\z" - }, { "name": "publish", "type": "TypeBool", @@ -116378,6 +116309,12 @@ } ], "ibm_function_rule": [ + { + "name": "version", + "type": "TypeString", + "description": "Semantic version of the item.", + "computed": true + }, { "name": "rule_id", "type": "TypeString", @@ -116421,26 +116358,16 @@ "type": "TypeBool", "description": "Rule visbility.", "computed": true - }, - { - "name": "version", - "type": "TypeString", - "description": "Semantic version of the item.", - "computed": true } ], "ibm_function_trigger": [ { - "name": "trigger_id", - "type": "TypeString", - "computed": true - }, - { - "name": "namespace", + "name": "name", "type": "TypeString", - "description": "IBM Cloud function namespace.", + "description": "Name of Trigger.", "immutable": true, - "required": true + "required": true, + "matches": "\\A([\\w]|[\\w][\\w@ .-]*[\\w@.-]+)\\z" }, { "name": "feed", @@ -116467,31 +116394,29 @@ "max_items": 1 }, { - "name": "publish", - "type": "TypeBool", - "description": "Trigger visbility.", - "computed": true - }, - { - "name": "user_defined_annotations", + "name": "user_defined_parameters", "type": "TypeString", - "description": "Annotation values in KEY VALUE format.", + "description": "Parameters values in KEY VALUE format. Parameter bindings included in the context passed to the trigger.", "default_value": "[]", "optional": true }, { - "name": "parameters", + "name": "trigger_id", "type": "TypeString", - "description": "All parameters set on trigger by user and those set by the IBM Cloud Function backend/API.", "computed": true }, { - "name": "name", + "name": "namespace", "type": "TypeString", - "description": "Name of Trigger.", + "description": "IBM Cloud function namespace.", "immutable": true, - "required": true, - "matches": "\\A([\\w]|[\\w][\\w@ .-]*[\\w@.-]+)\\z" + "required": true + }, + { + "name": "publish", + "type": "TypeBool", + "description": "Trigger visbility.", + "computed": true }, { "name": "version", @@ -116500,9 +116425,9 @@ "computed": true }, { - "name": "user_defined_parameters", + "name": "user_defined_annotations", "type": "TypeString", - "description": "Parameters values in KEY VALUE format. Parameter bindings included in the context passed to the trigger.", + "description": "Annotation values in KEY VALUE format.", "default_value": "[]", "optional": true }, @@ -116511,6 +116436,12 @@ "type": "TypeString", "description": "All annotations set on trigger by user and those set by the IBM Cloud Function backend/API.", "computed": true + }, + { + "name": "parameters", + "type": "TypeString", + "description": "All parameters set on trigger by user and those set by the IBM Cloud Function backend/API.", + "computed": true } ], "ibm_hardware_firewall_shared": [ @@ -116544,175 +116475,52 @@ ], "ibm_hpcs": [ { - "name": "service", - "type": "TypeString", - "description": "The name of the service offering `hs-crypto`", - "default_value": "hs-crypto", - "optional": true - }, - { - "name": "tags", - "type": "TypeSet", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "update_at", + "name": "dashboard_url", "type": "TypeString", - "description": "The date when the instance was last updated.", + "description": "Dashboard URL to access resource.", "computed": true }, { - "name": "signature_threshold", - "type": "TypeInt", - "description": "Signature Threshold Value", - "required": true - }, - { - "name": "location", - "type": "TypeString", - "description": "The location where the HPCS instance available", - "cloud_data_type": "region", - "required": true - }, - { - "name": "failover_units", - "type": "TypeInt", - "description": "The number of failover crypto units for your service instance", - "optional": true - }, - { - "name": "resource_aliases_url", + "name": "deleted_by", "type": "TypeString", - "description": "The relative path to the resource aliases for the instance.", - "computed": true - }, - { - "name": "extensions", - "type": "TypeMap", - "description": "The extended metadata as a map associated with the HPCS instance.", - "computed": true - }, - { - "name": "revocation_threshold", - "type": "TypeInt", - "description": "Revocation Threshold Value", - "required": true - }, - { - "name": "hsm_info", - "type": "TypeList", - "description": "HSM Configuration", - "computed": true, - "elem": { - "admins": { - "name": "admins", - "type": "TypeSet", - "description": "Crypto Unit Administrators", - "computed": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "Admin Name", - "computed": true - }, - "ski": { - "name": "ski", - "type": "TypeString", - "computed": true - } - } - }, - "current_mk_status": { - "name": "current_mk_status", - "type": "TypeString", - "computed": true - }, - "current_mkvp": { - "name": "current_mkvp", - "type": "TypeString", - "computed": true - }, - "hsm_id": { - "name": "hsm_id", - "type": "TypeString", - "computed": true - }, - "hsm_location": { - "name": "hsm_location", - "type": "TypeString", - "computed": true - }, - "hsm_type": { - "name": "hsm_type", - "type": "TypeString", - "computed": true - }, - "new_mk_status": { - "name": "new_mk_status", - "type": "TypeString", - "computed": true - }, - "new_mkvp": { - "name": "new_mkvp", - "type": "TypeString", - "computed": true - }, - "revocation_threshold": { - "name": "revocation_threshold", - "type": "TypeInt", - "description": "Revocation Threshold Value", - "computed": true - }, - "signature_threshold": { - "name": "signature_threshold", - "type": "TypeInt", - "description": "Signature Threshold Value", - "computed": true - } - } + "description": "The subject who deleted the instance.", + "computed": true }, { - "name": "plan", + "name": "name", "type": "TypeString", - "description": "The plan type of the HPCS Instance", + "description": "A name for the HPCS instance", "required": true }, { - "name": "status", + "name": "service", "type": "TypeString", - "description": "Status of HPCS instance", - "computed": true + "description": "The name of the service offering `hs-crypto`", + "default_value": "hs-crypto", + "optional": true }, { - "name": "created_at", + "name": "status", "type": "TypeString", - "description": "The date when the instance was created.", + "description": "Status of HPCS instance", "computed": true }, { - "name": "deleted_at", + "name": "state", "type": "TypeString", - "description": "The date when the instance was deleted.", + "description": "The current state of the instance.", "computed": true }, { - "name": "scheduled_reclaim_by", + "name": "created_by", "type": "TypeString", - "description": "The subject who initiated the instance reclamation.", + "description": "The subject who created the instance.", "computed": true }, { - "name": "restored_at", + "name": "deleted_at", "type": "TypeString", - "description": "The date when the instance under reclamation was restored.", + "description": "The date when the instance was deleted.", "computed": true }, { @@ -116721,6 +116529,19 @@ "description": "The subject who restored the instance back from reclamation.", "computed": true }, + { + "name": "revocation_threshold", + "type": "TypeInt", + "description": "Revocation Threshold Value", + "required": true + }, + { + "name": "location", + "type": "TypeString", + "description": "The location where the HPCS instance available", + "cloud_data_type": "region", + "required": true + }, { "name": "units", "type": "TypeInt", @@ -116728,49 +116549,71 @@ "required": true }, { - "name": "resource_keys_url", + "name": "restored_at", "type": "TypeString", - "description": "The relative path to the resource keys for the instance.", + "description": "The date when the instance under reclamation was restored.", "computed": true }, { - "name": "name", + "name": "resource_bindings_url", "type": "TypeString", - "description": "A name for the HPCS instance", - "required": true + "description": "The relative path to the resource bindings for the instance.", + "computed": true }, { - "name": "guid", + "name": "created_at", "type": "TypeString", - "description": "Guid of HPCS instance", + "description": "The date when the instance was created.", "computed": true }, { - "name": "created_by", - "type": "TypeString", - "description": "The subject who created the instance.", + "name": "extensions", + "type": "TypeMap", + "description": "The extended metadata as a map associated with the HPCS instance.", "computed": true }, { - "name": "deleted_by", + "name": "failover_units", + "type": "TypeInt", + "description": "The number of failover crypto units for your service instance", + "optional": true + }, + { + "name": "tags", + "type": "TypeSet", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "guid", "type": "TypeString", - "description": "The subject who deleted the instance.", + "description": "Guid of HPCS instance", "computed": true }, { - "name": "scheduled_reclaim_at", + "name": "resource_keys_url", "type": "TypeString", - "description": "The date when the instance was scheduled for reclamation.", + "description": "The relative path to the resource keys for the instance.", "computed": true }, { - "name": "resource_group_id", + "name": "scheduled_reclaim_by", "type": "TypeString", - "description": "The resource group id", - "cloud_data_type": "resource_group", - "optional": true, + "description": "The subject who initiated the instance reclamation.", "computed": true }, + { + "name": "signature_threshold", + "type": "TypeInt", + "description": "Signature Threshold Value", + "required": true + }, { "name": "service_endpoints", "type": "TypeString", @@ -116779,11 +116622,30 @@ "computed": true }, { - "name": "update_by", + "name": "crn", "type": "TypeString", - "description": "The subject who updated the instance.", + "description": "CRN of HPCS instance", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "update_at", + "type": "TypeString", + "description": "The date when the instance was last updated.", + "computed": true + }, + { + "name": "scheduled_reclaim_at", + "type": "TypeString", + "description": "The date when the instance was scheduled for reclamation.", "computed": true }, + { + "name": "signature_server_url", + "type": "TypeString", + "description": "URL of signing service", + "optional": true + }, { "name": "admins", "type": "TypeSet", @@ -116812,94 +116674,111 @@ } }, { - "name": "dashboard_url", - "type": "TypeString", - "description": "Dashboard URL to access resource.", - "computed": true - }, - { - "name": "resource_bindings_url", - "type": "TypeString", - "description": "The relative path to the resource bindings for the instance.", - "computed": true - }, - { - "name": "signature_server_url", + "name": "plan", "type": "TypeString", - "description": "URL of signing service", - "optional": true + "description": "The plan type of the HPCS Instance", + "required": true }, { - "name": "crn", + "name": "resource_aliases_url", "type": "TypeString", - "description": "CRN of HPCS instance", - "cloud_data_type": "crn", + "description": "The relative path to the resource aliases for the instance.", "computed": true }, { - "name": "state", - "type": "TypeString", - "description": "The current state of the instance.", - "computed": true - } - ], - "ibm_hpcs_key_template": [ - { - "name": "key", + "name": "hsm_info", "type": "TypeList", - "description": "Properties describing the properties of the managed key.", - "required": true, + "description": "HSM Configuration", + "computed": true, "elem": { - "activation_date": { - "name": "activation_date", + "admins": { + "name": "admins", + "type": "TypeSet", + "description": "Crypto Unit Administrators", + "computed": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "Admin Name", + "computed": true + }, + "ski": { + "name": "ski", + "type": "TypeString", + "computed": true + } + } + }, + "current_mk_status": { + "name": "current_mk_status", "type": "TypeString", - "description": "Key activation date can be provided as a period definition (e.g. PY1 means 1 year).", - "required": true + "computed": true }, - "algorithm": { - "name": "algorithm", + "current_mkvp": { + "name": "current_mkvp", "type": "TypeString", - "description": "The algorithm of the key.", - "required": true + "computed": true }, - "expiration_date": { - "name": "expiration_date", + "hsm_id": { + "name": "hsm_id", "type": "TypeString", - "description": "Key expiration date can be provided as a period definition (e.g. PY1 means 1 year).", - "required": true + "computed": true }, - "size": { - "name": "size", + "hsm_location": { + "name": "hsm_location", "type": "TypeString", - "description": "The size of the underlying cryptographic key or key pair. E.g. \"256\" for AES keys, or \"2048\" for RSA.", - "required": true + "computed": true }, - "state": { - "name": "state", + "hsm_type": { + "name": "hsm_type", "type": "TypeString", - "description": "The state that the key will be in after generation.", - "required": true + "computed": true + }, + "new_mk_status": { + "name": "new_mk_status", + "type": "TypeString", + "computed": true + }, + "new_mkvp": { + "name": "new_mkvp", + "type": "TypeString", + "computed": true + }, + "revocation_threshold": { + "name": "revocation_threshold", + "type": "TypeInt", + "description": "Revocation Threshold Value", + "computed": true + }, + "signature_threshold": { + "name": "signature_threshold", + "type": "TypeInt", + "description": "Signature Threshold Value", + "computed": true } - }, - "max_items": 1, - "min_items": 1 + } }, { - "name": "version", + "name": "resource_group_id", "type": "TypeString", - "description": "Version of the key template. Every time the key template is updated, the version will be updated automatically.", + "description": "The resource group id", + "cloud_data_type": "resource_group", + "optional": true, "computed": true }, { - "name": "created_at", + "name": "update_by", "type": "TypeString", - "description": "Date and time when the key template was created.", + "description": "The subject who updated the instance.", "computed": true - }, + } + ], + "ibm_hpcs_key_template": [ { - "name": "updated_at", + "name": "created_by", "type": "TypeString", - "description": "Date and time when the key template was updated.", + "description": "ID of the user that created the key template.", "computed": true }, { @@ -116926,27 +116805,9 @@ "min_items": 1 }, { - "name": "name", - "type": "TypeString", - "description": "Name of the template, it will be referenced when creating managed keys.", - "immutable": true, - "required": true, - "min_length": 1, - "max_length": 30, - "matches": "^[A-Za-z][A-Za-z0-9-]*$" - }, - { - "name": "description", - "type": "TypeString", - "description": "Description of the key template.", - "max_length": 200, - "matches": "(.|\\\\n)*", - "optional": true - }, - { - "name": "created_by", + "name": "updated_at", "type": "TypeString", - "description": "ID of the user that created the key template.", + "description": "Date and time when the key template was updated.", "computed": true }, { @@ -116966,20 +116827,6 @@ "service:hs-crypto" ] }, - { - "name": "href", - "type": "TypeString", - "description": "A URL that uniquely identifies your cloud resource.", - "computed": true - }, - { - "name": "region", - "type": "TypeString", - "description": "The region of the UKO instance this resource exists in.", - "immutable": true, - "required": true, - "options": "au-syd, in-che, jp-osa, jp-tok, kr-seo, eu-de, eu-gb, ca-tor, us-south, us-south-test, us-east, br-sao" - }, { "name": "keystores", "type": "TypeList", @@ -117014,80 +116861,131 @@ "required": true } } - } - ], - "ibm_hpcs_keystore": [ + }, { - "name": "uko_vault", + "name": "version", "type": "TypeString", - "description": "The UUID of the Vault in which the update is to take place.", - "immutable": true, - "required": true + "description": "Version of the key template. Every time the key template is updated, the version will be updated automatically.", + "computed": true }, { - "name": "ibm_api_endpoint", + "name": "region", "type": "TypeString", - "description": "API endpoint of the IBM Cloud keystore.", - "optional": true + "description": "The region of the UKO instance this resource exists in.", + "immutable": true, + "required": true, + "options": "au-syd, in-che, jp-osa, jp-tok, kr-seo, eu-de, eu-gb, ca-tor, us-south, us-south-test, us-east, br-sao" }, { - "name": "ibm_iam_endpoint", + "name": "description", "type": "TypeString", - "description": "Endpoint of the IAM service for this IBM Cloud keystore.", + "description": "Description of the key template.", + "max_length": 200, + "matches": "(.|\\\\n)*", "optional": true }, { - "name": "created_at", + "name": "href", "type": "TypeString", - "description": "Date and time when the target keystore was created.", + "description": "A URL that uniquely identifies your cloud resource.", "computed": true }, { - "name": "etag", + "name": "name", "type": "TypeString", - "computed": true + "description": "Name of the template, it will be referenced when creating managed keys.", + "immutable": true, + "required": true, + "min_length": 1, + "max_length": 30, + "matches": "^[A-Za-z][A-Za-z0-9-]*$" }, { - "name": "google_key_ring", - "type": "TypeString", - "description": "A key ring organizes keys in a specific Google Cloud location and allows you to manage access control on groups of keys.", - "optional": true + "name": "key", + "type": "TypeList", + "description": "Properties describing the properties of the managed key.", + "required": true, + "elem": { + "activation_date": { + "name": "activation_date", + "type": "TypeString", + "description": "Key activation date can be provided as a period definition (e.g. PY1 means 1 year).", + "required": true + }, + "algorithm": { + "name": "algorithm", + "type": "TypeString", + "description": "The algorithm of the key.", + "required": true + }, + "expiration_date": { + "name": "expiration_date", + "type": "TypeString", + "description": "Key expiration date can be provided as a period definition (e.g. PY1 means 1 year).", + "required": true + }, + "size": { + "name": "size", + "type": "TypeString", + "description": "The size of the underlying cryptographic key or key pair. E.g. \"256\" for AES keys, or \"2048\" for RSA.", + "required": true + }, + "state": { + "name": "state", + "type": "TypeString", + "description": "The state that the key will be in after generation.", + "required": true + } + }, + "max_items": 1, + "min_items": 1 }, { - "name": "azure_subscription_id", + "name": "created_at", "type": "TypeString", - "description": "Subscription ID in Azure.", - "optional": true - }, + "description": "Date and time when the key template was created.", + "computed": true + } + ], + "ibm_hpcs_keystore": [ { - "name": "google_project_id", + "name": "region", "type": "TypeString", - "description": "The project id associated with this keystore.", + "description": "The region of the UKO instance this resource exists in.", + "immutable": true, + "required": true, + "options": "au-syd, in-che, jp-osa, jp-tok, kr-seo, eu-de, eu-gb, ca-tor, us-south, us-south-test, us-east, br-sao" + }, + { + "name": "dry_run", + "type": "TypeBool", + "description": "Do not create a keystore, only verify if keystore created with given parameters can be communciated with successfully.", + "default_value": false, "optional": true }, { - "name": "google_private_key_id", + "name": "ibm_variant", "type": "TypeString", - "description": "The private key id associated with this keystore.", + "description": "Possible IBM Cloud KMS variants.", "optional": true }, { - "name": "aws_region", + "name": "ibm_api_endpoint", "type": "TypeString", - "description": "AWS Region.", + "description": "API endpoint of the IBM Cloud keystore.", "optional": true }, { - "name": "azure_service_principal_password", + "name": "ibm_api_key", "type": "TypeString", - "description": "Azure service principal password.", + "description": "The IBM Cloud API key to be used for connecting to this IBM Cloud keystore.", "secure": true, "optional": true }, { - "name": "azure_tenant", + "name": "ibm_instance_id", "type": "TypeString", - "description": "Azure tenant that the Key Vault is associated with,.", + "description": "The instance ID of the IBM Cloud keystore.", "optional": true }, { @@ -117117,28 +117015,21 @@ } }, { - "name": "location", + "name": "updated_at", "type": "TypeString", - "description": "Geographic location of the keystore, if available.", - "cloud_data_type": "region", + "description": "Date and time when the target keystore was last updated.", "computed": true }, { - "name": "groups", - "type": "TypeList", - "description": "List of groups that this keystore belongs to.", - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "created_by", + "type": "TypeString", + "description": "ID of the user that created the key.", + "computed": true }, { - "name": "region", + "name": "etag", "type": "TypeString", - "description": "The region of the UKO instance this resource exists in.", - "immutable": true, - "required": true, - "options": "au-syd, in-che, jp-osa, jp-tok, kr-seo, eu-de, eu-gb, ca-tor, us-south, us-south-test, us-east, br-sao" + "computed": true }, { "name": "google_location", @@ -117147,108 +117038,123 @@ "optional": true }, { - "name": "azure_service_name", + "name": "azure_service_principal_password", "type": "TypeString", - "description": "Service name of the key vault instance from the Azure portal.", + "description": "Azure service principal password.", + "secure": true, "optional": true }, { - "name": "azure_location", + "name": "ibm_iam_endpoint", "type": "TypeString", - "description": "Location of the Azure Key Vault.", + "description": "Endpoint of the IAM service for this IBM Cloud keystore.", "optional": true }, { - "name": "ibm_api_key", + "name": "ibm_key_ring", "type": "TypeString", - "description": "The IBM Cloud API key to be used for connecting to this IBM Cloud keystore.", - "secure": true, + "description": "The key ring of an IBM Cloud KMS Keystore.", "optional": true }, { - "name": "created_by", + "name": "description", "type": "TypeString", - "description": "ID of the user that created the key.", - "computed": true + "description": "Description of the keystore.", + "optional": true }, { - "name": "href", + "name": "created_at", "type": "TypeString", - "description": "A URL that uniquely identifies your cloud resource.", + "description": "Date and time when the target keystore was created.", "computed": true }, { - "name": "dry_run", - "type": "TypeBool", - "description": "Do not create a keystore, only verify if keystore created with given parameters can be communciated with successfully.", - "default_value": false, - "optional": true + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the UKO instance this resource exists in.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true, + "cloud_data_range": [ + "service:hs-crypto" + ] }, { - "name": "aws_secret_access_key", + "name": "uko_vault", "type": "TypeString", - "description": "The secret access key used for connecting to this instance of AWS KMS.", - "secure": true, - "optional": true + "description": "The UUID of the Vault in which the update is to take place.", + "immutable": true, + "required": true }, { - "name": "ibm_key_ring", + "name": "updated_by", "type": "TypeString", - "description": "The key ring of an IBM Cloud KMS Keystore.", - "optional": true + "description": "ID of the user that last updated the key.", + "computed": true }, { - "name": "type", + "name": "google_project_id", "type": "TypeString", - "description": "Type of keystore.", - "required": true + "description": "The project id associated with this keystore.", + "optional": true }, { - "name": "updated_at", + "name": "location", "type": "TypeString", - "description": "Date and time when the target keystore was last updated.", + "description": "Geographic location of the keystore, if available.", + "cloud_data_type": "region", "computed": true }, { - "name": "ibm_variant", + "name": "groups", + "type": "TypeList", + "description": "List of groups that this keystore belongs to.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "google_private_key_id", "type": "TypeString", - "description": "Possible IBM Cloud KMS variants.", + "description": "The private key id associated with this keystore.", "optional": true }, { - "name": "ibm_instance_id", + "name": "aws_region", "type": "TypeString", - "description": "The instance ID of the IBM Cloud keystore.", + "description": "AWS Region.", "optional": true }, { - "name": "description", + "name": "aws_access_key_id", "type": "TypeString", - "description": "Description of the keystore.", + "description": "The access key id used for connecting to this instance of AWS KMS.", + "secure": true, "optional": true }, { - "name": "instance_id", + "name": "azure_subscription_id", "type": "TypeString", - "description": "The ID of the UKO instance this resource exists in.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true, - "cloud_data_range": [ - "service:hs-crypto" - ] + "description": "Subscription ID in Azure.", + "optional": true }, { - "name": "aws_access_key_id", + "name": "google_key_ring", "type": "TypeString", - "description": "The access key id used for connecting to this instance of AWS KMS.", - "secure": true, + "description": "A key ring organizes keys in a specific Google Cloud location and allows you to manage access control on groups of keys.", "optional": true }, { - "name": "azure_resource_group", + "name": "azure_service_name", "type": "TypeString", - "description": "Resource group in Azure.", + "description": "Service name of the key vault instance from the Azure portal.", + "optional": true + }, + { + "name": "azure_location", + "type": "TypeString", + "description": "Location of the Azure Key Vault.", "optional": true }, { @@ -117264,9 +117170,15 @@ "optional": true }, { - "name": "updated_by", + "name": "name", "type": "TypeString", - "description": "ID of the user that last updated the key.", + "description": "Name of the target keystore. It can be changed in the future.", + "optional": true + }, + { + "name": "href", + "type": "TypeString", + "description": "A URL that uniquely identifies your cloud resource.", "computed": true }, { @@ -117277,47 +117189,32 @@ "optional": true }, { - "name": "name", + "name": "aws_secret_access_key", "type": "TypeString", - "description": "Name of the target keystore. It can be changed in the future.", + "description": "The secret access key used for connecting to this instance of AWS KMS.", + "secure": true, "optional": true - } - ], - "ibm_hpcs_managed_key": [ - { - "name": "region", - "type": "TypeString", - "description": "The region of the UKO instance this resource exists in.", - "immutable": true, - "required": true, - "options": "au-syd, in-che, jp-osa, jp-tok, kr-seo, eu-de, eu-gb, ca-tor, us-south, us-south-test, us-east, br-sao" }, { - "name": "description", + "name": "azure_resource_group", "type": "TypeString", - "description": "Description of the managed key.", - "max_length": 200, - "matches": "(.|\\n)*", + "description": "Resource group in Azure.", "optional": true }, { - "name": "algorithm", - "type": "TypeString", - "description": "The algorithm of the key.", - "computed": true - }, - { - "name": "expiration_date", + "name": "azure_tenant", "type": "TypeString", - "description": "Last day when the key is active.", - "computed": true + "description": "Azure tenant that the Key Vault is associated with,.", + "optional": true }, { - "name": "updated_at", + "name": "type", "type": "TypeString", - "description": "Date and time when the key was last updated.", - "computed": true - }, + "description": "Type of keystore.", + "required": true + } + ], + "ibm_hpcs_managed_key": [ { "name": "updated_by", "type": "TypeString", @@ -117331,20 +117228,28 @@ "computed": true }, { - "name": "instance_id", + "name": "region", "type": "TypeString", - "description": "The ID of the UKO instance this resource exists in.", - "cloud_data_type": "resource_instance", + "description": "The region of the UKO instance this resource exists in.", "immutable": true, "required": true, - "cloud_data_range": [ - "service:hs-crypto" - ] + "options": "au-syd, in-che, jp-osa, jp-tok, kr-seo, eu-de, eu-gb, ca-tor, us-south, us-south-test, us-east, br-sao" }, { - "name": "etag", + "name": "uko_vault", "type": "TypeString", - "computed": true + "description": "The UUID of the Vault in which the update is to take place.", + "immutable": true, + "required": true + }, + { + "name": "label", + "type": "TypeString", + "description": "The label of the key.", + "required": true, + "min_length": 1, + "max_length": 255, + "matches": "^[A-Za-z0-9._ \\/-]+$" }, { "name": "state", @@ -117354,33 +117259,104 @@ "computed": true }, { - "name": "verification_patterns", + "name": "expiration_date", + "type": "TypeString", + "description": "Last day when the key is active.", + "computed": true + }, + { + "name": "vault", "type": "TypeList", - "description": "A list of verification patterns of the key (e.g. public key hash for RSA keys).", - "computed": true, + "description": "ID of the Vault where the entity is to be created in.", + "required": true, "elem": { - "method": { - "name": "method", + "id": { + "name": "id", "type": "TypeString", - "description": "The method used for calculating the verification pattern.", + "description": "The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.", + "required": true + } + }, + "max_items": 1, + "min_items": 1 + }, + { + "name": "tags", + "type": "TypeList", + "description": "Key-value pairs associated with the key.", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of a tag.", "required": true }, "value": { "name": "value", "type": "TypeString", - "description": "The calculated value.", + "description": "Value of a tag.", "required": true } } }, { - "name": "label", + "name": "template", + "type": "TypeList", + "description": "Reference to a key template.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "A URL that uniquely identifies your cloud resource.", + "optional": true, + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.", + "optional": true, + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the key template.", + "optional": true, + "computed": true + } + } + }, + { + "name": "updated_at", "type": "TypeString", - "description": "The label of the key.", + "description": "Date and time when the key was last updated.", + "computed": true + }, + { + "name": "etag", + "type": "TypeString", + "computed": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the UKO instance this resource exists in.", + "cloud_data_type": "resource_instance", + "immutable": true, "required": true, - "min_length": 1, - "max_length": 255, - "matches": "^[A-Za-z0-9._ \\/-]+$" + "cloud_data_range": [ + "service:hs-crypto" + ] + }, + { + "name": "key_id", + "type": "TypeString", + "description": "The UUID of the key.", + "computed": true }, { "name": "template_name", @@ -117392,15 +117368,9 @@ "matches": "^[A-Za-z][A-Za-z0-9-]+$" }, { - "name": "activation_date", - "type": "TypeString", - "description": "First day when the key is active.", - "computed": true - }, - { - "name": "created_by", + "name": "created_at", "type": "TypeString", - "description": "ID of the user that created the key.", + "description": "Date and time when the key was created.", "computed": true }, { @@ -117438,6 +117408,12 @@ } } }, + { + "name": "created_by", + "type": "TypeString", + "description": "ID of the user that created the key.", + "computed": true + }, { "name": "instances", "type": "TypeList", @@ -117502,98 +117478,69 @@ } }, { - "name": "uko_vault", + "name": "description", "type": "TypeString", - "description": "The UUID of the Vault in which the update is to take place.", - "immutable": true, - "required": true + "description": "Description of the managed key.", + "max_length": 200, + "matches": "(.|\\n)*", + "optional": true }, { - "name": "vault", - "type": "TypeList", - "description": "ID of the Vault where the entity is to be created in.", - "required": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.", - "required": true - } - }, - "max_items": 1, - "min_items": 1 + "name": "size", + "type": "TypeString", + "description": "The size of the underlying cryptographic key or key pair. E.g. \"256\" for AES keys, or \"2048\" for RSA.", + "computed": true }, { - "name": "tags", + "name": "algorithm", + "type": "TypeString", + "description": "The algorithm of the key.", + "computed": true + }, + { + "name": "verification_patterns", "type": "TypeList", - "description": "Key-value pairs associated with the key.", - "cloud_data_type": "tags", - "optional": true, + "description": "A list of verification patterns of the key (e.g. public key hash for RSA keys).", + "computed": true, "elem": { - "name": { - "name": "name", + "method": { + "name": "method", "type": "TypeString", - "description": "Name of a tag.", + "description": "The method used for calculating the verification pattern.", "required": true }, "value": { "name": "value", "type": "TypeString", - "description": "Value of a tag.", + "description": "The calculated value.", "required": true } } }, { - "name": "template", - "type": "TypeList", - "description": "Reference to a key template.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "A URL that uniquely identifies your cloud resource.", - "optional": true, - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.", - "optional": true, - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the key template.", - "optional": true, - "computed": true - } - } - }, - { - "name": "size", + "name": "activation_date", "type": "TypeString", - "description": "The size of the underlying cryptographic key or key pair. E.g. \"256\" for AES keys, or \"2048\" for RSA.", + "description": "First day when the key is active.", "computed": true - }, + } + ], + "ibm_hpcs_vault": [ { - "name": "created_at", + "name": "etag", "type": "TypeString", - "description": "Date and time when the key was created.", "computed": true }, { - "name": "key_id", + "name": "instance_id", "type": "TypeString", - "description": "The UUID of the key.", - "computed": true - } - ], - "ibm_hpcs_vault": [ + "description": "The ID of the UKO instance this resource exists in.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true, + "cloud_data_range": [ + "service:hs-crypto" + ] + }, { "name": "region", "type": "TypeString", @@ -117603,72 +117550,56 @@ "options": "au-syd, in-che, jp-osa, jp-tok, kr-seo, eu-de, eu-gb, ca-tor, us-south, us-south-test, us-east, br-sao" }, { - "name": "name", - "type": "TypeString", - "description": "A human-readable name to assign to your vault. To protect your privacy, do not use personal data, such as your name or location.", - "required": true, - "min_length": 1, - "max_length": 100, - "matches": "^[A-Za-z0-9#@!$%'_-][A-Za-z0-9#@!$% '_-]*$" - }, - { - "name": "created_by", + "name": "vault_id", "type": "TypeString", - "description": "ID of the user that created the vault.", + "description": "The ID of the vault.", "computed": true }, { - "name": "href", + "name": "description", "type": "TypeString", - "description": "A URL that uniquely identifies your cloud resource.", - "computed": true + "description": "Description of the vault.", + "max_length": 200, + "matches": "(.|\\n)*", + "optional": true }, { - "name": "updated_at", + "name": "created_at", "type": "TypeString", - "description": "Date and time when the vault was last updated.", + "description": "Date and time when the vault was created.", "computed": true }, { - "name": "updated_by", + "name": "name", "type": "TypeString", - "description": "ID of the user that last updated the vault.", - "computed": true + "description": "A human-readable name to assign to your vault. To protect your privacy, do not use personal data, such as your name or location.", + "required": true, + "min_length": 1, + "max_length": 100, + "matches": "^[A-Za-z0-9#@!$%'_-][A-Za-z0-9#@!$% '_-]*$" }, { - "name": "etag", + "name": "updated_at", "type": "TypeString", + "description": "Date and time when the vault was last updated.", "computed": true }, { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the UKO instance this resource exists in.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true, - "cloud_data_range": [ - "service:hs-crypto" - ] - }, - { - "name": "vault_id", + "name": "created_by", "type": "TypeString", - "description": "The ID of the vault.", + "description": "ID of the user that created the vault.", "computed": true }, { - "name": "description", + "name": "updated_by", "type": "TypeString", - "description": "Description of the vault.", - "max_length": 200, - "matches": "(.|\\n)*", - "optional": true + "description": "ID of the user that last updated the vault.", + "computed": true }, { - "name": "created_at", + "name": "href", "type": "TypeString", - "description": "Date and time when the vault was created.", + "description": "A URL that uniquely identifies your cloud resource.", "computed": true } ], @@ -117715,12 +117646,6 @@ } ], "ibm_iam_access_group_dynamic_rule": [ - { - "name": "rule_id", - "type": "TypeString", - "description": "id of the rule", - "computed": true - }, { "name": "access_group_id", "type": "TypeString", @@ -117772,6 +117697,12 @@ "required": true } } + }, + { + "name": "rule_id", + "type": "TypeString", + "description": "id of the rule", + "computed": true } ], "ibm_iam_access_group_members": [ @@ -117830,39 +117761,6 @@ } ], "ibm_iam_access_group_policy": [ - { - "name": "rule_operator", - "type": "TypeString", - "description": "Operator that multiple rule conditions are evaluated over", - "optional": true - }, - { - "name": "pattern", - "type": "TypeString", - "description": "Pattern rule follows for time-based condition", - "optional": true - }, - { - "name": "access_group_id", - "type": "TypeString", - "description": "ID of access group", - "cloud_data_type": "iam", - "immutable": true, - "required": true, - "cloud_data_range": [ - "service:access_group", - "resolved_to:id" - ] - }, - { - "name": "roles", - "type": "TypeList", - "description": "Role names of the policy definition", - "required": true, - "elem": { - "type": "TypeString" - } - }, { "name": "resources", "type": "TypeList", @@ -117926,6 +117824,15 @@ }, "max_items": 1 }, + { + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, { "name": "transaction_id", "type": "TypeString", @@ -117934,43 +117841,41 @@ "computed": true }, { - "name": "description", + "name": "version", "type": "TypeString", - "description": "Description of the Policy", + "computed": true + }, + { + "name": "rule_operator", + "type": "TypeString", + "description": "Operator that multiple rule conditions are evaluated over", "optional": true }, { - "name": "version", + "name": "pattern", "type": "TypeString", - "computed": true + "description": "Pattern rule follows for time-based condition", + "optional": true }, { - "name": "rule_conditions", - "type": "TypeSet", - "description": "Rule conditions enforced by the policy", - "optional": true, + "name": "access_group_id", + "type": "TypeString", + "description": "ID of access group", + "cloud_data_type": "iam", + "immutable": true, + "required": true, + "cloud_data_range": [ + "service:access_group", + "resolved_to:id" + ] + }, + { + "name": "roles", + "type": "TypeList", + "description": "Role names of the policy definition", + "required": true, "elem": { - "key": { - "name": "key", - "type": "TypeString", - "description": "Key of the condition", - "required": true - }, - "operator": { - "name": "operator", - "type": "TypeString", - "description": "Operator of the condition", - "required": true - }, - "value": { - "name": "value", - "type": "TypeList", - "description": "Value of the condition", - "required": true, - "elem": { - "type": "TypeString" - } - } + "type": "TypeString" } }, { @@ -118003,18 +117908,9 @@ { "name": "account_management", "type": "TypeBool", - "description": "Give access to all account management services", - "default_value": false, - "optional": true - }, - { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } + "description": "Give access to all account management services", + "default_value": false, + "optional": true }, { "name": "resource_tags", @@ -118042,9 +117938,56 @@ "required": true } } + }, + { + "name": "description", + "type": "TypeString", + "description": "Description of the Policy", + "optional": true + }, + { + "name": "rule_conditions", + "type": "TypeSet", + "description": "Rule conditions enforced by the policy", + "optional": true, + "elem": { + "key": { + "name": "key", + "type": "TypeString", + "description": "Key of the condition", + "required": true + }, + "operator": { + "name": "operator", + "type": "TypeString", + "description": "Operator of the condition", + "required": true + }, + "value": { + "name": "value", + "type": "TypeList", + "description": "Value of the condition", + "required": true, + "elem": { + "type": "TypeString" + } + } + } } ], "ibm_iam_access_group_template": [ + { + "name": "created_by_id", + "type": "TypeString", + "description": "The ID of the user who created the access group template.", + "computed": true + }, + { + "name": "last_modified_at", + "type": "TypeString", + "description": "The date and time when the access group template was last modified.", + "computed": true + }, { "name": "template_id", "type": "TypeString", @@ -118052,17 +117995,56 @@ "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The date and time when the access group template was created.", + "name": "committed", + "type": "TypeBool", + "description": "A boolean indicating whether the access group template is committed. You must commit a template before you can assign it to child accounts.", + "optional": true, "computed": true }, + { + "name": "description", + "type": "TypeString", + "description": "The description of the access group template.", + "max_length": 250, + "matches": "^[a-zA-Z0-9!@#$%^\u0026*()_+{}:;\"'\u003c\u003e,.?\\/|\\-\\s]+$", + "optional": true + }, { "name": "last_modified_by_id", "type": "TypeString", "description": "The ID of the user who last modified the access group template.", "computed": true }, + { + "name": "transaction_id", + "type": "TypeString", + "description": "An optional transaction id for the request.", + "min_length": 1, + "max_length": 50, + "matches": "^[a-zA-Z0-9_-]+$", + "optional": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL of the access group template resource.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time when the access group template was created.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the access group template.", + "required": true, + "min_length": 1, + "max_length": 100, + "matches": "^[a-zA-Z0-9!@#$%^\u0026*()_+{}:;\"'\u003c\u003e,.?\\/|\\-\\s]+$" + }, { "name": "group", "type": "TypeList", @@ -118256,69 +118238,6 @@ }, "max_items": 1 }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the access group template.", - "required": true, - "min_length": 1, - "max_length": 100, - "matches": "^[a-zA-Z0-9!@#$%^\u0026*()_+{}:;\"'\u003c\u003e,.?\\/|\\-\\s]+$" - }, - { - "name": "description", - "type": "TypeString", - "description": "The description of the access group template.", - "max_length": 250, - "matches": "^[a-zA-Z0-9!@#$%^\u0026*()_+{}:;\"'\u003c\u003e,.?\\/|\\-\\s]+$", - "optional": true - }, - { - "name": "transaction_id", - "type": "TypeString", - "description": "An optional transaction id for the request.", - "min_length": 1, - "max_length": 50, - "matches": "^[a-zA-Z0-9_-]+$", - "optional": true - }, - { - "name": "committed", - "type": "TypeBool", - "description": "A boolean indicating whether the access group template is committed. You must commit a template before you can assign it to child accounts.", - "optional": true, - "computed": true - }, - { - "name": "version", - "type": "TypeString", - "description": "The version of the access group template.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL of the access group template resource.", - "computed": true - }, - { - "name": "created_by_id", - "type": "TypeString", - "description": "The ID of the user who created the access group template.", - "computed": true - }, - { - "name": "last_modified_at", - "type": "TypeString", - "description": "The date and time when the access group template was last modified.", - "computed": true - }, - { - "name": "account_id", - "type": "TypeString", - "description": "The ID of the account to which the access group template is assigned.", - "computed": true - }, { "name": "policy_template_references", "type": "TypeList", @@ -118339,24 +118258,21 @@ "optional": true } } - } - ], - "ibm_iam_access_group_template_assignment": [ + }, { - "name": "last_modified_at", + "name": "version", "type": "TypeString", - "description": "The date and time when the assignment was last updated.", + "description": "The version of the access group template.", "computed": true }, { - "name": "target", + "name": "account_id", "type": "TypeString", - "description": "The ID of the entity that the assignment applies to.", - "required": true, - "min_length": 1, - "max_length": 50, - "matches": "^[a-zA-Z0-9_-]+$" - }, + "description": "The ID of the account to which the access group template is assigned.", + "computed": true + } + ], + "ibm_iam_access_group_template_assignment": [ { "name": "account_id", "type": "TypeString", @@ -118370,9 +118286,8 @@ "computed": true }, { - "name": "href", + "name": "etag", "type": "TypeString", - "description": "The URL of the assignment resource.", "computed": true }, { @@ -118381,6 +118296,21 @@ "description": "The user or system that created the assignment.", "computed": true }, + { + "name": "last_modified_at", + "type": "TypeString", + "description": "The date and time when the assignment was last updated.", + "computed": true + }, + { + "name": "transaction_id", + "type": "TypeString", + "description": "An optional transaction id for the request.", + "min_length": 1, + "max_length": 50, + "matches": "^[a-zA-Z0-9_-]+$", + "optional": true + }, { "name": "template_id", "type": "TypeString", @@ -118391,79 +118321,71 @@ "matches": "^[a-zA-Z0-9_-]+$" }, { - "name": "template_version", + "name": "target", "type": "TypeString", - "description": "The version of the template that the assignment is based on.", + "description": "The ID of the entity that the assignment applies to.", "required": true, "min_length": 1, - "max_length": 2, - "matches": "^[0-9]+$" + "max_length": 50, + "matches": "^[a-zA-Z0-9_-]+$" }, { - "name": "target_type", + "name": "href", "type": "TypeString", - "description": "The type of the entity that the assignment applies to.", - "required": true, - "options": "Account, AccountGroup", - "min_length": 7, - "max_length": 12, - "matches": "^[a-zA-Z-]+$" + "description": "The URL of the assignment resource.", + "computed": true }, { - "name": "etag", + "name": "created_at", "type": "TypeString", + "description": "The date and time when the assignment was created.", "computed": true }, { - "name": "transaction_id", + "name": "last_modified_by_id", "type": "TypeString", - "description": "An optional transaction id for the request.", - "min_length": 1, - "max_length": 50, - "matches": "^[a-zA-Z0-9_-]+$", - "optional": true + "description": "The user or system that last updated the assignment.", + "computed": true }, { - "name": "created_at", + "name": "template_version", "type": "TypeString", - "description": "The date and time when the assignment was created.", - "computed": true + "description": "The version of the template that the assignment is based on.", + "required": true, + "min_length": 1, + "max_length": 2, + "matches": "^[0-9]+$" }, { - "name": "operation", + "name": "target_type", "type": "TypeString", - "description": "The operation that the assignment applies to (e.g. 'assign', 'update', 'remove').", - "computed": true + "description": "The type of the entity that the assignment applies to.", + "required": true, + "options": "Account, AccountGroup", + "min_length": 7, + "max_length": 12, + "matches": "^[a-zA-Z-]+$" }, { - "name": "last_modified_by_id", + "name": "operation", "type": "TypeString", - "description": "The user or system that last updated the assignment.", + "description": "The operation that the assignment applies to (e.g. 'assign', 'update', 'remove').", "computed": true } ], "ibm_iam_access_group_template_version": [ { - "name": "template_id", - "type": "TypeString", - "description": "ID of the template that you want to create a new version of.", - "immutable": true, - "required": true, - "min_length": 1, - "max_length": 100, - "matches": "^[a-zA-Z0-9_-]+$" - }, - { - "name": "account_id", + "name": "created_at", "type": "TypeString", - "description": "The ID of the account to which the access group template is assigned.", + "description": "The date and time when the access group template was created.", "computed": true }, { - "name": "description", + "name": "name", "type": "TypeString", - "description": "The description of the access group template.", - "max_length": 250, + "description": "The name of the access group template.", + "min_length": 1, + "max_length": 100, "matches": "^[a-zA-Z0-9!@#$%^\u0026*()_+{}:;\"'\u003c\u003e,.?\\/|\\-\\s]+$", "optional": true }, @@ -118488,18 +118410,33 @@ } }, { - "name": "committed", - "type": "TypeBool", - "description": "A boolean indicating whether the access group template is committed. You must commit a template before you can assign it to child accounts.", - "optional": true, + "name": "created_by_id", + "type": "TypeString", + "description": "The ID of the user who created the access group template.", "computed": true }, { - "name": "created_at", + "name": "last_modified_at", "type": "TypeString", - "description": "The date and time when the access group template was created.", + "description": "The date and time when the access group template was last modified.", + "computed": true + }, + { + "name": "last_modified_by_id", + "type": "TypeString", + "description": "The ID of the user who last modified the access group template.", "computed": true }, + { + "name": "template_id", + "type": "TypeString", + "description": "ID of the template that you want to create a new version of.", + "immutable": true, + "required": true, + "min_length": 1, + "max_length": 100, + "matches": "^[a-zA-Z0-9_-]+$" + }, { "name": "transaction_id", "type": "TypeString", @@ -118510,17 +118447,10 @@ "optional": true }, { - "name": "last_modified_by_id", - "type": "TypeString", - "description": "The ID of the user who last modified the access group template.", - "computed": true - }, - { - "name": "name", + "name": "description", "type": "TypeString", - "description": "The name of the access group template.", - "min_length": 1, - "max_length": 100, + "description": "The description of the access group template.", + "max_length": 250, "matches": "^[a-zA-Z0-9!@#$%^\u0026*()_+{}:;\"'\u003c\u003e,.?\\/|\\-\\s]+$", "optional": true }, @@ -118720,96 +118650,58 @@ "max_items": 1 }, { - "name": "version", + "name": "account_id", "type": "TypeString", - "description": "The version of the access group template.", + "description": "The ID of the account to which the access group template is assigned.", "computed": true }, { - "name": "href", + "name": "version", "type": "TypeString", - "description": "The URL of the access group template resource.", + "description": "The version of the access group template.", "computed": true }, { - "name": "created_by_id", - "type": "TypeString", - "description": "The ID of the user who created the access group template.", + "name": "committed", + "type": "TypeBool", + "description": "A boolean indicating whether the access group template is committed. You must commit a template before you can assign it to child accounts.", + "optional": true, "computed": true }, { - "name": "last_modified_at", + "name": "href", "type": "TypeString", - "description": "The date and time when the access group template was last modified.", + "description": "The URL of the access group template resource.", "computed": true } ], "ibm_iam_account_settings": [ { - "name": "history", - "type": "TypeList", - "description": "History of the Account Settings.", - "computed": true, - "elem": { - "action": { - "name": "action", - "type": "TypeString", - "description": "Action of the history entry.", - "required": true - }, - "iam_id": { - "name": "iam_id", - "type": "TypeString", - "description": "IAM ID of the identity which triggered the action.", - "required": true - }, - "iam_id_account": { - "name": "iam_id_account", - "type": "TypeString", - "description": "Account of the identity which triggered the action.", - "required": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "Message which summarizes the executed action.", - "required": true - }, - "params": { - "name": "params", - "type": "TypeList", - "description": "Params of the history entry.", - "required": true, - "elem": { - "type": "TypeString" - } - }, - "timestamp": { - "name": "timestamp", - "type": "TypeString", - "description": "Timestamp when the action was triggered.", - "required": true - } - } + "name": "system_access_token_expiration_in_seconds", + "type": "TypeString", + "description": "Defines the access token expiration in seconds. Valid values: * Any whole number between '900' and '3600' * NOT_SET - To unset account setting and use service default.", + "optional": true, + "computed": true }, { - "name": "session_expiration_in_seconds", + "name": "restrict_create_service_id", "type": "TypeString", - "description": "Defines the session expiration in seconds for the account. Valid values: * Any whole number between between '900' and '86400' * NOT_SET - To unset account setting and use service default.", + "description": "Defines whether or not creating a Service Id is access controlled. Valid values: * RESTRICTED - to apply access control * NOT_RESTRICTED - to remove access control * NOT_SET - to 'unset' a previous set value.", + "options": "RESTRICTED, NOT_RESTRICTED, NOT_SET", "optional": true, "computed": true }, { - "name": "session_invalidation_in_seconds", + "name": "session_expiration_in_seconds", "type": "TypeString", - "description": "Defines the period of time in seconds in which a session will be invalidated due to inactivity. Valid values: * Any whole number between '900' and '7200' * NOT_SET - To unset account setting and use service default.", + "description": "Defines the session expiration in seconds for the account. Valid values: * Any whole number between between '900' and '86400' * NOT_SET - To unset account setting and use service default.", "optional": true, "computed": true }, { - "name": "system_access_token_expiration_in_seconds", + "name": "session_invalidation_in_seconds", "type": "TypeString", - "description": "Defines the access token expiration in seconds. Valid values: * Any whole number between '900' and '3600' * NOT_SET - To unset account setting and use service default.", + "description": "Defines the period of time in seconds in which a session will be invalidated due to inactivity. Valid values: * Any whole number between '900' and '7200' * NOT_SET - To unset account setting and use service default.", "optional": true, "computed": true }, @@ -118820,6 +118712,35 @@ "default_value": false, "optional": true }, + { + "name": "mfa", + "type": "TypeString", + "description": "Defines the MFA trait for the account. Valid values: * NONE - No MFA trait set * TOTP - For all non-federated IBMId users * TOTP4ALL - For all users * LEVEL1 - Email-based MFA for all users * LEVEL2 - TOTP-based MFA for all users * LEVEL3 - U2F MFA for all users.", + "options": "NONE, TOTP, TOTP4ALL, LEVEL1, LEVEL2, LEVEL3", + "optional": true, + "computed": true + }, + { + "name": "max_sessions_per_identity", + "type": "TypeString", + "description": "Defines the max allowed sessions per identity required by the account. Value values: * Any whole number greater than 0 * NOT_SET - To unset account setting and use service default.", + "optional": true, + "computed": true + }, + { + "name": "restrict_create_platform_apikey", + "type": "TypeString", + "description": "Defines whether or not creating platform API keys is access controlled. Valid values: * RESTRICTED - to apply access control * NOT_RESTRICTED - to remove access control * NOT_SET - to 'unset' a previous set value.", + "options": "RESTRICTED, NOT_RESTRICTED, NOT_SET", + "optional": true, + "computed": true + }, + { + "name": "allowed_ip_addresses", + "type": "TypeString", + "description": "Defines the IP addresses and subnets from which IAM tokens can be created for the account.", + "optional": true + }, { "name": "user_mfa", "type": "TypeList", @@ -118841,9 +118762,9 @@ } }, { - "name": "max_sessions_per_identity", + "name": "system_refresh_token_expiration_in_seconds", "type": "TypeString", - "description": "Defines the max allowed sessions per identity required by the account. Value values: * Any whole number greater than 0 * NOT_SET - To unset account setting and use service default.", + "description": "Defines the refresh token expiration in seconds. Valid values: * Any whole number between '900' and '2592000' * NOT_SET - To unset account setting and use service default.", "optional": true, "computed": true }, @@ -118862,48 +118783,58 @@ "optional": true }, { - "name": "restrict_create_platform_apikey", - "type": "TypeString", - "description": "Defines whether or not creating platform API keys is access controlled. Valid values: * RESTRICTED - to apply access control * NOT_RESTRICTED - to remove access control * NOT_SET - to 'unset' a previous set value.", - "options": "RESTRICTED, NOT_RESTRICTED, NOT_SET", - "optional": true, - "computed": true - }, - { - "name": "allowed_ip_addresses", - "type": "TypeString", - "description": "Defines the IP addresses and subnets from which IAM tokens can be created for the account.", - "optional": true - }, - { - "name": "mfa", - "type": "TypeString", - "description": "Defines the MFA trait for the account. Valid values: * NONE - No MFA trait set * TOTP - For all non-federated IBMId users * TOTP4ALL - For all users * LEVEL1 - Email-based MFA for all users * LEVEL2 - TOTP-based MFA for all users * LEVEL3 - U2F MFA for all users.", - "options": "NONE, TOTP, TOTP4ALL, LEVEL1, LEVEL2, LEVEL3", - "optional": true, - "computed": true - }, - { - "name": "system_refresh_token_expiration_in_seconds", - "type": "TypeString", - "description": "Defines the refresh token expiration in seconds. Valid values: * Any whole number between '900' and '2592000' * NOT_SET - To unset account setting and use service default.", - "optional": true, - "computed": true - }, - { - "name": "restrict_create_service_id", - "type": "TypeString", - "description": "Defines whether or not creating a Service Id is access controlled. Valid values: * RESTRICTED - to apply access control * NOT_RESTRICTED - to remove access control * NOT_SET - to 'unset' a previous set value.", - "options": "RESTRICTED, NOT_RESTRICTED, NOT_SET", - "optional": true, - "computed": true + "name": "history", + "type": "TypeList", + "description": "History of the Account Settings.", + "computed": true, + "elem": { + "action": { + "name": "action", + "type": "TypeString", + "description": "Action of the history entry.", + "required": true + }, + "iam_id": { + "name": "iam_id", + "type": "TypeString", + "description": "IAM ID of the identity which triggered the action.", + "required": true + }, + "iam_id_account": { + "name": "iam_id_account", + "type": "TypeString", + "description": "Account of the identity which triggered the action.", + "required": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "Message which summarizes the executed action.", + "required": true + }, + "params": { + "name": "params", + "type": "TypeList", + "description": "Params of the history entry.", + "required": true, + "elem": { + "type": "TypeString" + } + }, + "timestamp": { + "name": "timestamp", + "type": "TypeString", + "description": "Timestamp when the action was triggered.", + "required": true + } + } } ], "ibm_iam_account_settings_template": [ { - "name": "created_by_id", + "name": "account_id", "type": "TypeString", - "description": "IAMid of the creator.", + "description": "ID of the account where the template resides.", "computed": true }, { @@ -118912,42 +118843,6 @@ "description": "Version of the the template.", "computed": true }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the trusted profile template. This is visible only in the enterprise account.", - "optional": true - }, - { - "name": "description", - "type": "TypeString", - "description": "The description of the trusted profile template. Describe the template for enterprise account users.", - "optional": true - }, - { - "name": "template_id", - "type": "TypeString", - "description": "ID of the the template.", - "optional": true - }, - { - "name": "last_modified_at", - "type": "TypeString", - "description": "Template last modified at.", - "computed": true - }, - { - "name": "last_modified_by_id", - "type": "TypeString", - "description": "IAMid of the identity that made the latest modification.", - "computed": true - }, - { - "name": "account_id", - "type": "TypeString", - "description": "ID of the account where the template resides.", - "computed": true - }, { "name": "history", "type": "TypeList", @@ -118995,6 +118890,36 @@ } } }, + { + "name": "created_by_id", + "type": "TypeString", + "description": "IAMid of the creator.", + "computed": true + }, + { + "name": "last_modified_at", + "type": "TypeString", + "description": "Template last modified at.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the trusted profile template. This is visible only in the enterprise account.", + "optional": true + }, + { + "name": "id", + "type": "TypeString", + "description": "ID of the the template resource.", + "computed": true + }, + { + "name": "entity_tag", + "type": "TypeString", + "description": "Entity tag for this templateId-version combination.", + "computed": true + }, { "name": "crn", "type": "TypeString", @@ -119003,9 +118928,9 @@ "computed": true }, { - "name": "created_at", + "name": "last_modified_by_id", "type": "TypeString", - "description": "Template Created At.", + "description": "IAMid of the identity that made the latest modification.", "computed": true }, { @@ -119090,6 +119015,18 @@ }, "max_items": 1 }, + { + "name": "description", + "type": "TypeString", + "description": "The description of the trusted profile template. Describe the template for enterprise account users.", + "optional": true + }, + { + "name": "template_id", + "type": "TypeString", + "description": "ID of the the template.", + "optional": true + }, { "name": "committed", "type": "TypeBool", @@ -119098,19 +119035,19 @@ "computed": true }, { - "name": "entity_tag", - "type": "TypeString", - "description": "Entity tag for this templateId-version combination.", - "computed": true - }, - { - "name": "id", + "name": "created_at", "type": "TypeString", - "description": "ID of the the template resource.", + "description": "Template Created At.", "computed": true } ], "ibm_iam_account_settings_template_assignment": [ + { + "name": "template_id", + "type": "TypeString", + "description": "Template Id.", + "required": true + }, { "name": "target", "type": "TypeString", @@ -119124,34 +119061,77 @@ "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "Assignment created at.", - "computed": true - }, - { - "name": "created_by_id", - "type": "TypeString", - "description": "IAMid of the identity that created the assignment.", - "computed": true - }, - { - "name": "entity_tag", - "type": "TypeString", - "description": "Entity tag for this assignment record.", - "computed": true - }, - { - "name": "template_id", - "type": "TypeString", - "description": "Template Id.", - "required": true - }, - { - "name": "template_version", - "type": "TypeInt", - "description": "Template version.", - "required": true + "name": "resources", + "type": "TypeList", + "description": "Status breakdown per target account of IAM resources created or errors encountered in attempting to create those IAM resources. IAM resources are only included in the response providing the assignment is not in progress. IAM resources are also only included when getting a single assignment, and excluded by list APIs.", + "computed": true, + "elem": { + "account_settings": { + "name": "account_settings", + "type": "TypeList", + "computed": true, + "elem": { + "error_message": { + "name": "error_message", + "type": "TypeList", + "description": "Body parameters for assignment error.", + "computed": true, + "elem": { + "error_code": { + "name": "error_code", + "type": "TypeString", + "description": "Internal error code.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "Error message detailing the nature of the error.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the error.", + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Internal status code for the error.", + "computed": true + } + } + }, + "resource_created": { + "name": "resource_created", + "type": "TypeList", + "description": "Body parameters for created resource.", + "computed": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "Id of the created resource.", + "computed": true + } + } + }, + "status": { + "name": "status", + "type": "TypeString", + "description": "Status for the target account's assignment.", + "computed": true + } + } + }, + "target": { + "name": "target", + "type": "TypeString", + "description": "Target account where the IAM resource is created.", + "required": true + } + } }, { "name": "target_type", @@ -119160,12 +119140,6 @@ "required": true, "options": "Account, AccountGroup" }, - { - "name": "status", - "type": "TypeString", - "description": "Assignment status.", - "computed": true - }, { "name": "history", "type": "TypeList", @@ -119214,9 +119188,9 @@ } }, { - "name": "href", + "name": "created_by_id", "type": "TypeString", - "description": "Href.", + "description": "IAMid of the identity that created the assignment.", "computed": true }, { @@ -119225,6 +119199,12 @@ "description": "Assignment modified at.", "computed": true }, + { + "name": "entity_tag", + "type": "TypeString", + "description": "Entity tag for this assignment record.", + "computed": true + }, { "name": "context", "type": "TypeList", @@ -119300,77 +119280,28 @@ } }, { - "name": "resources", - "type": "TypeList", - "description": "Status breakdown per target account of IAM resources created or errors encountered in attempting to create those IAM resources. IAM resources are only included in the response providing the assignment is not in progress. IAM resources are also only included when getting a single assignment, and excluded by list APIs.", - "computed": true, - "elem": { - "account_settings": { - "name": "account_settings", - "type": "TypeList", - "computed": true, - "elem": { - "error_message": { - "name": "error_message", - "type": "TypeList", - "description": "Body parameters for assignment error.", - "computed": true, - "elem": { - "error_code": { - "name": "error_code", - "type": "TypeString", - "description": "Internal error code.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "Error message detailing the nature of the error.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the error.", - "computed": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Internal status code for the error.", - "computed": true - } - } - }, - "resource_created": { - "name": "resource_created", - "type": "TypeList", - "description": "Body parameters for created resource.", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "Id of the created resource.", - "computed": true - } - } - }, - "status": { - "name": "status", - "type": "TypeString", - "description": "Status for the target account's assignment.", - "computed": true - } - } - }, - "target": { - "name": "target", - "type": "TypeString", - "description": "Target account where the IAM resource is created.", - "required": true - } - } + "name": "status", + "type": "TypeString", + "description": "Assignment status.", + "computed": true + }, + { + "name": "template_version", + "type": "TypeInt", + "description": "Template version.", + "required": true + }, + { + "name": "href", + "type": "TypeString", + "description": "Href.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "Assignment created at.", + "computed": true }, { "name": "last_modified_by_id", @@ -119381,10 +119312,10 @@ ], "ibm_iam_api_key": [ { - "name": "account_id", + "name": "file", "type": "TypeString", - "description": "The account ID of the API key.", - "computed": true + "description": "File where api key is to be stored", + "optional": true }, { "name": "entity_lock", @@ -119393,12 +119324,6 @@ "default_value": "false", "optional": true }, - { - "name": "apikey_id", - "type": "TypeString", - "description": "Unique identifier of this API Key.", - "computed": true - }, { "name": "modified_at", "type": "TypeString", @@ -119411,12 +119336,6 @@ "description": "Name of the API key. The name is not checked for uniqueness. Therefore multiple names with the same value can exist. Access is done via the UUID of the API key.", "required": true }, - { - "name": "iam_id", - "type": "TypeString", - "description": "The iam_id that this API key authenticates.", - "computed": true - }, { "name": "description", "type": "TypeString", @@ -119424,48 +119343,39 @@ "optional": true }, { - "name": "file", - "type": "TypeString", - "description": "File where api key is to be stored", + "name": "store_value", + "type": "TypeBool", + "description": "Send true or false to set whether the API key value is retrievable in the future by using the Get details of an API key request. If you create an API key for a user, you must specify `false` or omit the value. We don't allow storing of API keys for users.", "optional": true }, { - "name": "crn", + "name": "entity_tag", "type": "TypeString", - "description": "Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::apikey:1234-9012-5678'.", - "cloud_data_type": "crn", + "description": "Version of the API Key details object. You need to specify this value when updating the API key to avoid stale updates.", "computed": true }, { - "name": "created_by", + "name": "created_at", "type": "TypeString", - "description": "IAM ID of the user or service which created the API key.", + "description": "If set contains a date time string of the creation date in ISO format.", "computed": true }, { - "name": "apikey", + "name": "iam_id", "type": "TypeString", - "description": "You can optionally passthrough the API key value for this API key. If passed, NO validation of that apiKey value is done, i.e. the value can be non-URL safe. If omitted, the API key management will create an URL safe opaque API key value. The value of the API key is checked for uniqueness. Please ensure enough variations when passing in this value.", - "secure": true, - "optional": true, + "description": "The iam_id that this API key authenticates.", "computed": true }, { - "name": "store_value", - "type": "TypeBool", - "description": "Send true or false to set whether the API key value is retrievable in the future by using the Get details of an API key request. If you create an API key for a user, you must specify `false` or omit the value. We don't allow storing of API keys for users.", - "optional": true - }, - { - "name": "created_at", + "name": "account_id", "type": "TypeString", - "description": "If set contains a date time string of the creation date in ISO format.", + "description": "The account ID of the API key.", "computed": true }, { - "name": "entity_tag", + "name": "apikey_id", "type": "TypeString", - "description": "Version of the API Key details object. You need to specify this value when updating the API key to avoid stale updates.", + "description": "Unique identifier of this API Key.", "computed": true }, { @@ -119473,25 +119383,30 @@ "type": "TypeBool", "description": "The API key cannot be changed if set to true.", "computed": true - } - ], - "ibm_iam_authorization_policy": [ + }, { - "name": "source_service_name", + "name": "created_by", "type": "TypeString", - "description": "The source service name", - "immutable": true, - "optional": true, + "description": "IAM ID of the user or service which created the API key.", "computed": true }, { - "name": "source_resource_instance_id", + "name": "apikey", "type": "TypeString", - "description": "The source resource instance Id", - "immutable": true, + "description": "You can optionally passthrough the API key value for this API key. If passed, NO validation of that apiKey value is done, i.e. the value can be non-URL safe. If omitted, the API key management will create an URL safe opaque API key value. The value of the API key is checked for uniqueness. Please ensure enough variations when passing in this value.", + "secure": true, "optional": true, "computed": true }, + { + "name": "crn", + "type": "TypeString", + "description": "Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::apikey:1234-9012-5678'.", + "cloud_data_type": "crn", + "computed": true + } + ], + "ibm_iam_authorization_policy": [ { "name": "target_resource_group_id", "type": "TypeString", @@ -119505,9 +119420,9 @@ ] }, { - "name": "target_resource_type", + "name": "source_resource_type", "type": "TypeString", - "description": "Resource type of target service", + "description": "Resource type of source service", "immutable": true, "optional": true, "computed": true @@ -119542,35 +119457,6 @@ } } }, - { - "name": "resource_attributes", - "type": "TypeSet", - "description": "Set resource attributes.", - "immutable": true, - "optional": true, - "computed": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of attribute.", - "required": true - }, - "operator": { - "name": "operator", - "type": "TypeString", - "description": "Operator of attribute.", - "default_value": "stringEquals", - "optional": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Value of attribute.", - "required": true - } - } - }, { "name": "transaction_id", "type": "TypeString", @@ -119586,6 +119472,20 @@ "optional": true, "computed": true }, + { + "name": "target_resource_type", + "type": "TypeString", + "description": "Resource type of target service", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Description of the Policy", + "optional": true + }, { "name": "roles", "type": "TypeList", @@ -119595,6 +119495,22 @@ "type": "TypeString" } }, + { + "name": "source_resource_instance_id", + "type": "TypeString", + "description": "The source resource instance Id", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "target_resource_instance_id", + "type": "TypeString", + "description": "The target resource instance Id", + "immutable": true, + "optional": true, + "computed": true + }, { "name": "source_resource_group_id", "type": "TypeString", @@ -119608,31 +119524,46 @@ ] }, { - "name": "version", - "type": "TypeString", - "computed": true - }, - { - "name": "target_resource_instance_id", - "type": "TypeString", - "description": "The target resource instance Id", + "name": "resource_attributes", + "type": "TypeSet", + "description": "Set resource attributes.", "immutable": true, "optional": true, - "computed": true + "computed": true, + "elem": { + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of attribute.", + "required": true + }, + "operator": { + "name": "operator", + "type": "TypeString", + "description": "Operator of attribute.", + "default_value": "stringEquals", + "optional": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Value of attribute.", + "required": true + } + } }, { - "name": "source_resource_type", + "name": "source_service_name", "type": "TypeString", - "description": "Resource type of source service", + "description": "The source service name", "immutable": true, "optional": true, "computed": true }, { - "name": "description", + "name": "version", "type": "TypeString", - "description": "Description of the Policy", - "optional": true + "computed": true } ], "ibm_iam_authorization_policy_detach": [ @@ -119679,12 +119610,24 @@ "type": "TypeString" } }, + { + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true + }, { "name": "resource_crn", "type": "TypeString", "description": "The crn of the resource", "computed": true }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", + "computed": true + }, { "name": "display_name", "type": "TypeString", @@ -119699,18 +119642,6 @@ "description": "crn of the Custom Role", "cloud_data_type": "crn", "computed": true - }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", - "computed": true } ], "ibm_iam_policy_template": [ @@ -119889,37 +119820,6 @@ } ], "ibm_iam_policy_template_version": [ - { - "name": "committed", - "type": "TypeBool", - "description": "Template version committed status.", - "optional": true - }, - { - "name": "name", - "type": "TypeString", - "optional": true, - "computed": true - }, - { - "name": "account_id", - "type": "TypeString", - "computed": true - }, - { - "name": "version", - "type": "TypeString", - "description": "Template Version.", - "computed": true - }, - { - "name": "template_id", - "type": "TypeString", - "description": "The policy template ID and Version.", - "required": true, - "min_length": 1, - "max_length": 51 - }, { "name": "policy", "type": "TypeList", @@ -120059,21 +119959,40 @@ "type": "TypeString", "description": "description of template purpose.", "optional": true - } - ], - "ibm_iam_service_api_key": [ + }, { - "name": "created_at", + "name": "committed", + "type": "TypeBool", + "description": "Template version committed status.", + "optional": true + }, + { + "name": "name", "type": "TypeString", - "description": "The date and time Service API Key was created", + "optional": true, "computed": true }, { - "name": "name", + "name": "account_id", "type": "TypeString", - "description": "Name of the Service API key", - "required": true + "computed": true + }, + { + "name": "version", + "type": "TypeString", + "description": "Template Version.", + "computed": true }, + { + "name": "template_id", + "type": "TypeString", + "description": "The policy template ID and Version.", + "required": true, + "min_length": 1, + "max_length": 51 + } + ], + "ibm_iam_service_api_key": [ { "name": "iam_service_id", "type": "TypeString", @@ -120096,9 +120015,9 @@ "computed": true }, { - "name": "locked", + "name": "store_value", "type": "TypeBool", - "description": "The API key cannot be changed if set to true", + "description": "Boolean value deciding whether API key value is retrievable in the future", "optional": true }, { @@ -120114,6 +120033,24 @@ "cloud_data_type": "crn", "computed": true }, + { + "name": "entity_tag", + "type": "TypeString", + "description": "Version of the API Key details object", + "computed": true + }, + { + "name": "modified_at", + "type": "TypeString", + "description": "The date and time Service API Key was modified", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the Service API key", + "required": true + }, { "name": "description", "type": "TypeString", @@ -120128,17 +120065,11 @@ "computed": true }, { - "name": "store_value", + "name": "locked", "type": "TypeBool", - "description": "Boolean value deciding whether API key value is retrievable in the future", + "description": "The API key cannot be changed if set to true", "optional": true }, - { - "name": "entity_tag", - "type": "TypeString", - "description": "Version of the API Key details object", - "computed": true - }, { "name": "created_by", "type": "TypeString", @@ -120146,13 +120077,19 @@ "computed": true }, { - "name": "modified_at", + "name": "created_at", "type": "TypeString", - "description": "The date and time Service API Key was modified", + "description": "The date and time Service API Key was created", "computed": true } ], "ibm_iam_service_id": [ + { + "name": "version", + "type": "TypeString", + "description": "version of the serviceID", + "computed": true + }, { "name": "crn", "type": "TypeString", @@ -120191,55 +120128,20 @@ "type": "TypeString", "description": "Description of the serviceID", "optional": true - }, - { - "name": "version", - "type": "TypeString", - "description": "version of the serviceID", - "computed": true } ], "ibm_iam_service_policy": [ { - "name": "rule_conditions", - "type": "TypeSet", - "description": "Rule conditions enforced by the policy", - "optional": true, - "elem": { - "key": { - "name": "key", - "type": "TypeString", - "description": "Key of the condition", - "required": true - }, - "operator": { - "name": "operator", - "type": "TypeString", - "description": "Operator of the condition", - "required": true - }, - "value": { - "name": "value", - "type": "TypeList", - "description": "Value of the condition", - "required": true, - "elem": { - "type": "TypeString" - } - } - } - }, - { - "name": "rule_operator", - "type": "TypeString", - "description": "Operator that multiple rule conditions are evaluated over", - "optional": true - }, - { - "name": "pattern", + "name": "iam_service_id", "type": "TypeString", - "description": "Pattern rule follows for time-based condition", - "optional": true + "description": "UUID of ServiceID", + "cloud_data_type": "iam", + "immutable": true, + "optional": true, + "cloud_data_range": [ + "service:service_id", + "resolved_to:id" + ] }, { "name": "roles", @@ -120314,9 +120216,9 @@ "max_items": 1 }, { - "name": "resource_tags", + "name": "resource_attributes", "type": "TypeSet", - "description": "Set access management tags.", + "description": "Set resource attributes.", "optional": true, "elem": { "name": { @@ -120340,13 +120242,6 @@ } } }, - { - "name": "transaction_id", - "type": "TypeString", - "description": "Set transactionID for debug", - "optional": true, - "computed": true - }, { "name": "tags", "type": "TypeSet", @@ -120363,16 +120258,10 @@ "optional": true }, { - "name": "iam_service_id", + "name": "pattern", "type": "TypeString", - "description": "UUID of ServiceID", - "cloud_data_type": "iam", - "immutable": true, - "optional": true, - "cloud_data_range": [ - "service:service_id", - "resolved_to:id" - ] + "description": "Pattern rule follows for time-based condition", + "optional": true }, { "name": "iam_id", @@ -120382,9 +120271,16 @@ "optional": true }, { - "name": "resource_attributes", + "name": "account_management", + "type": "TypeBool", + "description": "Give access to all account management services", + "default_value": false, + "optional": true + }, + { + "name": "resource_tags", "type": "TypeSet", - "description": "Set resource attributes.", + "description": "Set access management tags.", "optional": true, "elem": { "name": { @@ -120409,50 +120305,49 @@ } }, { - "name": "account_management", - "type": "TypeBool", - "description": "Give access to all account management services", - "default_value": false, - "optional": true - } - ], - "ibm_iam_trusted_profile": [ - { - "name": "entity_tag", - "type": "TypeString", - "description": "Version of the trusted profile details object. You need to specify this value when updating the trusted profile to avoid stale updates.", - "computed": true - }, - { - "name": "modified_at", + "name": "transaction_id", "type": "TypeString", - "description": "If set contains a date time string of the last modification date in ISO format.", - "computed": true - }, - { - "name": "ims_account_id", - "type": "TypeInt", - "description": "IMS acount ID of the trusted profile.", + "description": "Set transactionID for debug", + "optional": true, "computed": true }, { - "name": "assignment_id", - "type": "TypeString", - "description": "Id of assignment that assigned the template.", - "computed": true + "name": "rule_conditions", + "type": "TypeSet", + "description": "Rule conditions enforced by the policy", + "optional": true, + "elem": { + "key": { + "name": "key", + "type": "TypeString", + "description": "Key of the condition", + "required": true + }, + "operator": { + "name": "operator", + "type": "TypeString", + "description": "Operator of the condition", + "required": true + }, + "value": { + "name": "value", + "type": "TypeList", + "description": "Value of the condition", + "required": true, + "elem": { + "type": "TypeString" + } + } + } }, { - "name": "description", + "name": "rule_operator", "type": "TypeString", - "description": "The optional description of the trusted profile. The 'description' property is only available if a description was provided during creation of trusted profile.", + "description": "Operator that multiple rule conditions are evaluated over", "optional": true - }, - { - "name": "template_id", - "type": "TypeString", - "description": "Template id the profile was created from.", - "computed": true - }, + } + ], + "ibm_iam_trusted_profile": [ { "name": "crn", "type": "TypeString", @@ -120461,9 +120356,9 @@ "computed": true }, { - "name": "profile_id", + "name": "created_at", "type": "TypeString", - "description": "Unique identifier of this trusted profile.", + "description": "If set contains a date time string of the creation date in ISO format.", "computed": true }, { @@ -120472,18 +120367,6 @@ "description": "The iam_id of this trusted profile.", "computed": true }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the trusted profile. The name is checked for uniqueness. Therefore trusted profiles with the same names can not exist in the same account.", - "required": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "If set contains a date time string of the creation date in ISO format.", - "computed": true - }, { "name": "ims_user_id", "type": "TypeInt", @@ -120537,26 +120420,62 @@ } } }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the trusted profile. The name is checked for uniqueness. Therefore trusted profiles with the same names can not exist in the same account.", + "required": true + }, { "name": "account_id", "type": "TypeString", "description": "The account ID of the trusted profile.", "computed": true - } - ], - "ibm_iam_trusted_profile_claim_rule": [ + }, { - "name": "name", + "name": "profile_id", "type": "TypeString", - "description": "Name of the claim rule to be created or updated.", - "optional": true + "description": "Unique identifier of this trusted profile.", + "computed": true }, { - "name": "realm_name", + "name": "entity_tag", "type": "TypeString", - "description": "The realm name of the Idp this claim rule applies to. This field is required only if the type is specified as 'Profile-SAML'.", + "description": "Version of the trusted profile details object. You need to specify this value when updating the trusted profile to avoid stale updates.", + "computed": true + }, + { + "name": "ims_account_id", + "type": "TypeInt", + "description": "IMS acount ID of the trusted profile.", + "computed": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The optional description of the trusted profile. The 'description' property is only available if a description was provided during creation of trusted profile.", "optional": true }, + { + "name": "modified_at", + "type": "TypeString", + "description": "If set contains a date time string of the last modification date in ISO format.", + "computed": true + }, + { + "name": "template_id", + "type": "TypeString", + "description": "Template id the profile was created from.", + "computed": true + }, + { + "name": "assignment_id", + "type": "TypeString", + "description": "Id of assignment that assigned the template.", + "computed": true + } + ], + "ibm_iam_trusted_profile_claim_rule": [ { "name": "cr_type", "type": "TypeString", @@ -120564,9 +120483,15 @@ "optional": true }, { - "name": "modified_at", + "name": "expiration", + "type": "TypeInt", + "description": "Session expiration in seconds, only required if type is 'Profile-SAML'.", + "optional": true + }, + { + "name": "entity_tag", "type": "TypeString", - "description": "If set contains a date time string of the last modification date in ISO format.", + "description": "version of the claim rule.", "computed": true }, { @@ -120576,16 +120501,10 @@ "computed": true }, { - "name": "profile_id", + "name": "modified_at", "type": "TypeString", - "description": "ID of the trusted profile to create a claim rule.", - "cloud_data_type": "iam", - "immutable": true, - "required": true, - "cloud_data_range": [ - "service:trusted_profile", - "resolved_to:id" - ] + "description": "If set contains a date time string of the last modification date in ISO format.", + "computed": true }, { "name": "rule_id", @@ -120594,10 +120513,10 @@ "computed": true }, { - "name": "type", + "name": "name", "type": "TypeString", - "description": "Type of the calim rule, either 'Profile-SAML' or 'Profile-CR'.", - "required": true + "description": "Name of the claim rule to be created or updated.", + "optional": true }, { "name": "conditions", @@ -120626,19 +120545,46 @@ } }, { - "name": "expiration", - "type": "TypeInt", - "description": "Session expiration in seconds, only required if type is 'Profile-SAML'.", + "name": "realm_name", + "type": "TypeString", + "description": "The realm name of the Idp this claim rule applies to. This field is required only if the type is specified as 'Profile-SAML'.", "optional": true }, { - "name": "entity_tag", + "name": "profile_id", "type": "TypeString", - "description": "version of the claim rule.", - "computed": true + "description": "ID of the trusted profile to create a claim rule.", + "cloud_data_type": "iam", + "immutable": true, + "required": true, + "cloud_data_range": [ + "service:trusted_profile", + "resolved_to:id" + ] + }, + { + "name": "type", + "type": "TypeString", + "description": "Type of the calim rule, either 'Profile-SAML' or 'Profile-CR'.", + "required": true } ], "ibm_iam_trusted_profile_identity": [ + { + "name": "profile_id", + "type": "TypeString", + "description": "ID of the trusted profile.", + "immutable": true, + "required": true + }, + { + "name": "identity_type", + "type": "TypeString", + "description": "Type of the identity.", + "immutable": true, + "required": true, + "options": "crn, serviceid, user" + }, { "name": "identifier", "type": "TypeString", @@ -120670,21 +120616,6 @@ "description": "Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.", "immutable": true, "optional": true - }, - { - "name": "profile_id", - "type": "TypeString", - "description": "ID of the trusted profile.", - "immutable": true, - "required": true - }, - { - "name": "identity_type", - "type": "TypeString", - "description": "Type of the identity.", - "immutable": true, - "required": true, - "options": "crn, serviceid, user" } ], "ibm_iam_trusted_profile_link": [ @@ -120770,20 +120701,16 @@ ], "ibm_iam_trusted_profile_policy": [ { - "name": "iam_id", + "name": "profile_id", "type": "TypeString", - "description": "IAM ID of Trusted Profile", + "description": "UUID of Trusted Profile", + "cloud_data_type": "iam", "immutable": true, - "optional": true - }, - { - "name": "roles", - "type": "TypeList", - "description": "Role names of the policy definition", - "required": true, - "elem": { - "type": "TypeString" - } + "optional": true, + "cloud_data_range": [ + "service:trusted_profile", + "resolved_to:id" + ] }, { "name": "resources", @@ -120876,10 +120803,40 @@ } }, { - "name": "rule_operator", + "name": "transaction_id", "type": "TypeString", - "description": "Operator that multiple rule conditions are evaluated over", - "optional": true + "description": "Set transactionID for debug", + "optional": true, + "computed": true + }, + { + "name": "rule_conditions", + "type": "TypeSet", + "description": "Rule conditions enforced by the policy", + "optional": true, + "elem": { + "key": { + "name": "key", + "type": "TypeString", + "description": "Key of the condition", + "required": true + }, + "operator": { + "name": "operator", + "type": "TypeString", + "description": "Operator of the condition", + "required": true + }, + "value": { + "name": "value", + "type": "TypeList", + "description": "Value of the condition", + "required": true, + "elem": { + "type": "TypeString" + } + } + } }, { "name": "pattern", @@ -120888,16 +120845,27 @@ "optional": true }, { - "name": "profile_id", + "name": "iam_id", "type": "TypeString", - "description": "UUID of Trusted Profile", - "cloud_data_type": "iam", + "description": "IAM ID of Trusted Profile", "immutable": true, - "optional": true, - "cloud_data_range": [ - "service:trusted_profile", - "resolved_to:id" - ] + "optional": true + }, + { + "name": "roles", + "type": "TypeList", + "description": "Role names of the policy definition", + "required": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "account_management", + "type": "TypeBool", + "description": "Give access to all account management services", + "default_value": false, + "optional": true }, { "name": "tags", @@ -120942,55 +120910,100 @@ "optional": true }, { - "name": "transaction_id", + "name": "rule_operator", "type": "TypeString", - "description": "Set transactionID for debug", - "optional": true, + "description": "Operator that multiple rule conditions are evaluated over", + "optional": true + } + ], + "ibm_iam_trusted_profile_template": [ + { + "name": "last_modified_at", + "type": "TypeString", + "description": "Timestamp of when the template was last modified.", "computed": true }, { - "name": "rule_conditions", - "type": "TypeSet", - "description": "Rule conditions enforced by the policy", + "name": "description", + "type": "TypeString", + "description": "The description of the trusted profile template. Describe the template for enterprise account users.", + "optional": true + }, + { + "name": "template_id", + "type": "TypeString", + "description": "ID of the the template.", + "optional": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Cloud resource name.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "last_modified_by_id", + "type": "TypeString", + "description": "IAMid of the identity that made the latest modification.", + "computed": true + }, + { + "name": "account_id", + "type": "TypeString", + "description": "ID of the account where the template resides.", + "computed": true + }, + { + "name": "version", + "type": "TypeInt", + "description": "Version of the the template.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "Timestamp of when the template was created.", + "computed": true + }, + { + "name": "policy_template_references", + "type": "TypeList", + "description": "Existing policy templates that you can reference to assign access in the trusted profile component.", "optional": true, "elem": { - "key": { - "name": "key", + "id": { + "name": "id", "type": "TypeString", - "description": "Key of the condition", + "description": "ID of Access Policy Template.", "required": true }, - "operator": { - "name": "operator", + "version": { + "name": "version", "type": "TypeString", - "description": "Operator of the condition", + "description": "Version of Access Policy Template.", "required": true - }, - "value": { - "name": "value", - "type": "TypeList", - "description": "Value of the condition", - "required": true, - "elem": { - "type": "TypeString" - } } } }, { - "name": "account_management", - "type": "TypeBool", - "description": "Give access to all account management services", - "default_value": false, - "optional": true - } - ], - "ibm_iam_trusted_profile_template": [ + "name": "entity_tag", + "type": "TypeString", + "description": "Entity tag for this templateId-version combination.", + "computed": true + }, { - "name": "name", + "name": "created_by_id", "type": "TypeString", - "description": "The name of the trusted profile template. This is visible only in the enterprise account.", - "optional": true + "description": "IAMid of the creator.", + "computed": true + }, + { + "name": "committed", + "type": "TypeBool", + "description": "Committed flag determines if the template is ready for assignment.", + "optional": true, + "computed": true }, { "name": "history", @@ -121040,55 +121053,10 @@ } }, { - "name": "created_at", - "type": "TypeString", - "description": "Timestamp of when the template was created.", - "computed": true - }, - { - "name": "account_id", - "type": "TypeString", - "description": "ID of the account where the template resides.", - "computed": true - }, - { - "name": "last_modified_by_id", - "type": "TypeString", - "description": "IAMid of the identity that made the latest modification.", - "computed": true - }, - { - "name": "id", - "type": "TypeString", - "description": "ID of the the template.", - "computed": true - }, - { - "name": "policy_template_references", - "type": "TypeList", - "description": "Existing policy templates that you can reference to assign access in the trusted profile component.", - "optional": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "ID of Access Policy Template.", - "required": true - }, - "version": { - "name": "version", - "type": "TypeString", - "description": "Version of Access Policy Template.", - "required": true - } - } - }, - { - "name": "crn", + "name": "name", "type": "TypeString", - "description": "Cloud resource name.", - "cloud_data_type": "crn", - "computed": true + "description": "The name of the trusted profile template. This is visible only in the enterprise account.", + "optional": true }, { "name": "profile", @@ -121211,96 +121179,18 @@ "max_items": 1 }, { - "name": "template_id", + "name": "id", "type": "TypeString", "description": "ID of the the template.", - "optional": true - }, - { - "name": "version", - "type": "TypeInt", - "description": "Version of the the template.", - "computed": true - }, - { - "name": "committed", - "type": "TypeBool", - "description": "Committed flag determines if the template is ready for assignment.", - "optional": true, - "computed": true - }, - { - "name": "entity_tag", - "type": "TypeString", - "description": "Entity tag for this templateId-version combination.", "computed": true - }, - { - "name": "created_by_id", - "type": "TypeString", - "description": "IAMid of the creator.", - "computed": true - }, - { - "name": "last_modified_at", - "type": "TypeString", - "description": "Timestamp of when the template was last modified.", - "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "The description of the trusted profile template. Describe the template for enterprise account users.", - "optional": true } ], "ibm_iam_trusted_profile_template_assignment": [ { - "name": "history", - "type": "TypeList", - "description": "Assignment history.", - "computed": true, - "elem": { - "action": { - "name": "action", - "type": "TypeString", - "description": "Action of the history entry.", - "computed": true - }, - "iam_id": { - "name": "iam_id", - "type": "TypeString", - "description": "IAM ID of the identity which triggered the action.", - "computed": true - }, - "iam_id_account": { - "name": "iam_id_account", - "type": "TypeString", - "description": "Account of the identity which triggered the action.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "Message which summarizes the executed action.", - "computed": true - }, - "params": { - "name": "params", - "type": "TypeList", - "description": "Params of the history entry.", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "timestamp": { - "name": "timestamp", - "type": "TypeString", - "description": "Timestamp when the action was triggered.", - "computed": true - } - } + "name": "entity_tag", + "type": "TypeString", + "description": "Entity tag for this assignment record.", + "computed": true }, { "name": "template_version", @@ -121309,10 +121199,11 @@ "required": true }, { - "name": "target", + "name": "target_type", "type": "TypeString", - "description": "Assignment target.", - "required": true + "description": "Assignment target type.", + "required": true, + "options": "Account, AccountGroup" }, { "name": "context", @@ -121395,24 +121286,11 @@ "computed": true }, { - "name": "created_by_id", + "name": "status", "type": "TypeString", - "description": "IAMid of the identity that created the assignment.", + "description": "Assignment status.", "computed": true }, - { - "name": "template_id", - "type": "TypeString", - "description": "Template Id.", - "required": true - }, - { - "name": "target_type", - "type": "TypeString", - "description": "Assignment target type.", - "required": true, - "options": "Account, AccountGroup" - }, { "name": "resources", "type": "TypeList", @@ -121571,33 +121449,74 @@ } }, { - "name": "last_modified_by_id", - "type": "TypeString", - "description": "IAMid of the identity that last modified the assignment.", - "computed": true + "name": "history", + "type": "TypeList", + "description": "Assignment history.", + "computed": true, + "elem": { + "action": { + "name": "action", + "type": "TypeString", + "description": "Action of the history entry.", + "computed": true + }, + "iam_id": { + "name": "iam_id", + "type": "TypeString", + "description": "IAM ID of the identity which triggered the action.", + "computed": true + }, + "iam_id_account": { + "name": "iam_id_account", + "type": "TypeString", + "description": "Account of the identity which triggered the action.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "Message which summarizes the executed action.", + "computed": true + }, + "params": { + "name": "params", + "type": "TypeList", + "description": "Params of the history entry.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "timestamp": { + "name": "timestamp", + "type": "TypeString", + "description": "Timestamp when the action was triggered.", + "computed": true + } + } }, { - "name": "entity_tag", + "name": "href", "type": "TypeString", - "description": "Entity tag for this assignment record.", + "description": "Href.", "computed": true }, { - "name": "status", + "name": "created_at", "type": "TypeString", - "description": "Assignment status.", + "description": "Assignment created at.", "computed": true }, { - "name": "href", + "name": "last_modified_by_id", "type": "TypeString", - "description": "Href.", + "description": "IAMid of the identity that last modified the assignment.", "computed": true }, { - "name": "created_at", + "name": "created_by_id", "type": "TypeString", - "description": "Assignment created at.", + "description": "IAMid of the identity that created the assignment.", "computed": true }, { @@ -121605,9 +121524,119 @@ "type": "TypeString", "description": "Assignment modified at.", "computed": true + }, + { + "name": "template_id", + "type": "TypeString", + "description": "Template Id.", + "required": true + }, + { + "name": "target", + "type": "TypeString", + "description": "Assignment target.", + "required": true } ], "ibm_iam_user_invite": [ + { + "name": "users", + "type": "TypeSet", + "description": "List of ibm id or email of user", + "required": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "access_groups", + "type": "TypeList", + "description": "access group ids to associate the inviting user", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "iam_policy", + "type": "TypeList", + "optional": true, + "elem": { + "account_management": { + "name": "account_management", + "type": "TypeBool", + "description": "Give access to all account management services", + "default_value": false, + "optional": true + }, + "resources": { + "name": "resources", + "type": "TypeList", + "optional": true, + "computed": true, + "elem": { + "attributes": { + "name": "attributes", + "type": "TypeMap", + "description": "Set resource attributes in the form of 'name=value,name=value....", + "optional": true, + "elem": "schema.ValueType" + }, + "region": { + "name": "region", + "type": "TypeString", + "description": "Region of the policy definition", + "optional": true + }, + "resource": { + "name": "resource", + "type": "TypeString", + "description": "Resource of the policy definition", + "optional": true + }, + "resource_group_id": { + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group.", + "optional": true + }, + "resource_instance_id": { + "name": "resource_instance_id", + "type": "TypeString", + "description": "ID of resource instance of the policy definition", + "optional": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "Resource type of the policy definition", + "optional": true + }, + "service": { + "name": "service", + "type": "TypeString", + "description": "Service name of the policy definition", + "optional": true + } + } + }, + "roles": { + "name": "roles", + "type": "TypeList", + "description": "Role names of the policy definition", + "required": true, + "elem": { + "type": "TypeString" + } + } + } + }, + { + "name": "number_of_invited_users", + "type": "TypeInt", + "description": "Number of users invited to an account", + "computed": true + }, { "name": "invited_users", "type": "TypeList", @@ -121854,134 +121883,57 @@ } } } - }, - { - "name": "users", - "type": "TypeSet", - "description": "List of ibm id or email of user", - "required": true, - "elem": { - "type": "TypeString" - } - }, + } + ], + "ibm_iam_user_policy": [ { - "name": "access_groups", - "type": "TypeList", - "description": "access group ids to associate the inviting user", - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "account_management", + "type": "TypeBool", + "description": "Give access to all account management services", + "default_value": false, + "optional": true }, { - "name": "iam_policy", - "type": "TypeList", - "optional": true, - "elem": { - "account_management": { - "name": "account_management", - "type": "TypeBool", - "description": "Give access to all account management services", - "default_value": false, - "optional": true - }, - "resources": { - "name": "resources", - "type": "TypeList", - "optional": true, - "computed": true, - "elem": { - "attributes": { - "name": "attributes", - "type": "TypeMap", - "description": "Set resource attributes in the form of 'name=value,name=value....", - "optional": true, - "elem": "schema.ValueType" - }, - "region": { - "name": "region", - "type": "TypeString", - "description": "Region of the policy definition", - "optional": true - }, - "resource": { - "name": "resource", - "type": "TypeString", - "description": "Resource of the policy definition", - "optional": true - }, - "resource_group_id": { - "name": "resource_group_id", - "type": "TypeString", - "description": "ID of the resource group.", - "optional": true - }, - "resource_instance_id": { - "name": "resource_instance_id", - "type": "TypeString", - "description": "ID of resource instance of the policy definition", - "optional": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "Resource type of the policy definition", - "optional": true - }, - "service": { - "name": "service", - "type": "TypeString", - "description": "Service name of the policy definition", - "optional": true - } - } - }, - "roles": { - "name": "roles", - "type": "TypeList", - "description": "Role names of the policy definition", - "required": true, - "elem": { - "type": "TypeString" - } - } - } + "name": "description", + "type": "TypeString", + "description": "Description of the Policy", + "optional": true }, { - "name": "number_of_invited_users", - "type": "TypeInt", - "description": "Number of users invited to an account", - "computed": true - } - ], - "ibm_iam_user_policy": [ - { - "name": "resource_attributes", + "name": "rule_conditions", "type": "TypeSet", - "description": "Set resource attributes.", + "description": "Rule conditions enforced by the policy", "optional": true, "elem": { - "name": { - "name": "name", + "key": { + "name": "key", "type": "TypeString", - "description": "Name of attribute.", + "description": "Key of the condition", "required": true }, "operator": { "name": "operator", "type": "TypeString", - "description": "Operator of attribute.", - "default_value": "stringEquals", - "optional": true + "description": "Operator of the condition", + "required": true }, "value": { "name": "value", - "type": "TypeString", - "description": "Value of attribute.", - "required": true + "type": "TypeList", + "description": "Value of the condition", + "required": true, + "elem": { + "type": "TypeString" + } } } }, + { + "name": "pattern", + "type": "TypeString", + "description": "Pattern rule follows for time-based condition", + "optional": true + }, { "name": "tags", "type": "TypeSet", @@ -122018,12 +121970,6 @@ } } }, - { - "name": "description", - "type": "TypeString", - "description": "Description of the Policy", - "optional": true - }, { "name": "transaction_id", "type": "TypeString", @@ -122031,6 +121977,12 @@ "optional": true, "computed": true }, + { + "name": "rule_operator", + "type": "TypeString", + "description": "Operator that multiple rule conditions are evaluated over", + "optional": true + }, { "name": "ibm_id", "type": "TypeString", @@ -122038,6 +121990,15 @@ "immutable": true, "required": true }, + { + "name": "roles", + "type": "TypeList", + "description": "Role names of the policy definition", + "required": true, + "elem": { + "type": "TypeString" + } + }, { "name": "resources", "type": "TypeList", @@ -122102,61 +122063,31 @@ "max_items": 1 }, { - "name": "rule_conditions", + "name": "resource_attributes", "type": "TypeSet", - "description": "Rule conditions enforced by the policy", + "description": "Set resource attributes.", "optional": true, "elem": { - "key": { - "name": "key", + "name": { + "name": "name", "type": "TypeString", - "description": "Key of the condition", + "description": "Name of attribute.", "required": true }, "operator": { "name": "operator", "type": "TypeString", - "description": "Operator of the condition", - "required": true + "description": "Operator of attribute.", + "default_value": "stringEquals", + "optional": true }, "value": { "name": "value", - "type": "TypeList", - "description": "Value of the condition", - "required": true, - "elem": { - "type": "TypeString" - } + "type": "TypeString", + "description": "Value of attribute.", + "required": true } } - }, - { - "name": "rule_operator", - "type": "TypeString", - "description": "Operator that multiple rule conditions are evaluated over", - "optional": true - }, - { - "name": "pattern", - "type": "TypeString", - "description": "Pattern rule follows for time-based condition", - "optional": true - }, - { - "name": "roles", - "type": "TypeList", - "description": "Role names of the policy definition", - "required": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "account_management", - "type": "TypeBool", - "description": "Give access to all account management services", - "default_value": false, - "optional": true } ], "ibm_iam_user_settings": [ @@ -122178,56 +122109,12 @@ } ], "ibm_ipsec_vpn": [ - { - "name": "internal_peer_ip_address", - "type": "TypeString", - "computed": true - }, - { - "name": "phase_two", - "type": "TypeList", - "optional": true, - "elem": { - "authentication": { - "name": "authentication", - "type": "TypeString", - "default_value": "MD5", - "optional": true - }, - "diffie_hellman_group": { - "name": "diffie_hellman_group", - "type": "TypeInt", - "default_value": 2, - "optional": true - }, - "encryption": { - "name": "encryption", - "type": "TypeString", - "default_value": "3DES", - "optional": true - }, - "keylife": { - "name": "keylife", - "type": "TypeInt", - "default_value": 3600, - "optional": true - } - }, - "max_items": 1, - "min_items": 1 - }, { "name": "internal_subnet_id", "type": "TypeInt", "description": "Internal subnet ID value", "optional": true }, - { - "name": "remote_subnet_id", - "type": "TypeInt", - "description": "Remote subnet ID value", - "optional": true - }, { "name": "remote_subnet", "type": "TypeList", @@ -122252,6 +122139,12 @@ "max_items": 1, "min_items": 1 }, + { + "name": "service_subnet_id", + "type": "TypeInt", + "description": "Service subnet ID value", + "optional": true + }, { "name": "datacenter", "type": "TypeString", @@ -122292,6 +122185,39 @@ "max_items": 1, "min_items": 1 }, + { + "name": "phase_two", + "type": "TypeList", + "optional": true, + "elem": { + "authentication": { + "name": "authentication", + "type": "TypeString", + "default_value": "MD5", + "optional": true + }, + "diffie_hellman_group": { + "name": "diffie_hellman_group", + "type": "TypeInt", + "default_value": 2, + "optional": true + }, + "encryption": { + "name": "encryption", + "type": "TypeString", + "default_value": "3DES", + "optional": true + }, + "keylife": { + "name": "keylife", + "type": "TypeInt", + "default_value": 3600, + "optional": true + } + }, + "max_items": 1, + "min_items": 1 + }, { "name": "address_translation", "type": "TypeList", @@ -122329,11 +122255,16 @@ "optional": true }, { - "name": "service_subnet_id", + "name": "remote_subnet_id", "type": "TypeInt", - "description": "Service subnet ID value", + "description": "Remote subnet ID value", "optional": true }, + { + "name": "internal_peer_ip_address", + "type": "TypeString", + "computed": true + }, { "name": "name", "type": "TypeString", @@ -122341,6 +122272,17 @@ } ], "ibm_is_backup_policy": [ + { + "name": "match_resource_types", + "type": "TypeSet", + "description": "A resource type this backup policy applies to. Resources that have both a matching type and a matching user tag will be subject to the backup policy.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + }, + "deprecated": "match_resource_types is being deprecated. Use match_resource_type instead" + }, { "name": "created_at", "type": "TypeString", @@ -122355,29 +122297,17 @@ "computed": true }, { - "name": "lifecycle_state", + "name": "last_job_completed_at", "type": "TypeString", - "description": "The lifecycle state of the backup policy.", + "description": "The date and time that the most recent job for this backup policy completed.", "computed": true }, { - "name": "resource_type", + "name": "lifecycle_state", "type": "TypeString", - "description": "The resource type.", + "description": "The lifecycle state of the backup policy.", "computed": true }, - { - "name": "match_user_tags", - "type": "TypeSet", - "description": "The user tags this backup policy applies to. Resources that have both a matching user tag and a matching type will be subject to the backup policy.", - "required": true, - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "elem": { - "type": "TypeString" - } - }, { "name": "health_reasons", "type": "TypeList", @@ -122423,49 +122353,11 @@ "optional": true, "computed": true }, - { - "name": "last_job_completed_at", - "type": "TypeString", - "description": "The date and time that the most recent job for this backup policy completed.", - "computed": true - }, { "name": "version", "type": "TypeString", "computed": true }, - { - "name": "health_state", - "type": "TypeString", - "description": "The health of this resource", - "computed": true - }, - { - "name": "match_resource_types", - "type": "TypeSet", - "description": "A resource type this backup policy applies to. Resources that have both a matching type and a matching user tag will be subject to the backup policy.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - }, - "deprecated": "match_resource_types is being deprecated. Use match_resource_type instead" - }, - { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this backup policy. Names must be unique within the region this backup policy resides in. If unspecified, the name will be a hyphenated list of randomly-selected words.", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$" - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this backup policy.", - "computed": true - }, { "name": "scope", "type": "TypeList", @@ -122493,72 +122385,60 @@ } }, "max_items": 1 - } - ], - "ibm_is_backup_policy_plan": [ + }, { - "name": "cron_spec", + "name": "name", "type": "TypeString", - "description": "The cron specification for the backup schedule.", + "description": "The user-defined name for this backup policy. Names must be unique within the region this backup policy resides in. If unspecified, the name will be a hyphenated list of randomly-selected words.", "required": true, - "min_length": 9, + "min_length": 1, "max_length": 63, - "matches": "^((((\\d+,)+\\d+|([\\d\\*]+(\\/|-)\\d+)|\\d+|\\*) ?){5,7})$" + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$" }, { - "name": "active", - "type": "TypeBool", - "description": "Indicates whether the plan is active.", - "optional": true, + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", "computed": true }, { - "name": "attach_user_tags", + "name": "health_state", + "type": "TypeString", + "description": "The health of this resource", + "computed": true + }, + { + "name": "match_user_tags", "type": "TypeSet", - "description": "User tags to attach to each backup (snapshot) created by this plan. If unspecified, no user tags will be attached.", - "optional": true, + "description": "The user tags this backup policy applies to. Resources that have both a matching user tag and a matching type will be subject to the backup policy.", + "required": true, + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", "elem": { "type": "TypeString" } }, { - "name": "clone_policy", - "type": "TypeList", - "optional": true, - "computed": true, - "elem": { - "max_snapshots": { - "name": "max_snapshots", - "type": "TypeInt", - "description": "The maximum number of recent snapshots (per source) that will keep clones.", - "optional": true, - "computed": true - }, - "zones": { - "name": "zones", - "type": "TypeSet", - "description": "The zone this backup policy plan will create snapshot clones in.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - } - }, - "max_items": 1 - }, - { - "name": "lifecycle_state", + "name": "href", "type": "TypeString", - "description": "The lifecycle state of this backup policy plan.", + "description": "The URL for this backup policy.", "computed": true + } + ], + "ibm_is_backup_policy_plan": [ + { + "name": "copy_user_tags", + "type": "TypeBool", + "description": "Indicates whether to copy the source's user tags to the created backups (snapshots).", + "default_value": true, + "optional": true }, { - "name": "backup_policy_id", + "name": "resource_type", "type": "TypeString", - "description": "The backup policy identifier.", - "immutable": true, - "required": true + "description": "The resource type.", + "computed": true }, { "name": "version", @@ -122567,17 +122447,13 @@ "computed": true }, { - "name": "backup_policy_plan_id", + "name": "cron_spec", "type": "TypeString", - "description": "The backup policy identifier.", - "computed": true - }, - { - "name": "copy_user_tags", - "type": "TypeBool", - "description": "Indicates whether to copy the source's user tags to the created backups (snapshots).", - "default_value": true, - "optional": true + "description": "The cron specification for the backup schedule.", + "required": true, + "min_length": 9, + "max_length": 63, + "matches": "^((((\\d+,)+\\d+|([\\d\\*]+(\\/|-)\\d+)|\\d+|\\*) ?){5,7})$" }, { "name": "deletion_trigger", @@ -122602,6 +122478,53 @@ }, "max_items": 1 }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of this backup policy plan.", + "computed": true + }, + { + "name": "clone_policy", + "type": "TypeList", + "optional": true, + "computed": true, + "elem": { + "max_snapshots": { + "name": "max_snapshots", + "type": "TypeInt", + "description": "The maximum number of recent snapshots (per source) that will keep clones.", + "optional": true, + "computed": true + }, + "zones": { + "name": "zones", + "type": "TypeSet", + "description": "The zone this backup policy plan will create snapshot clones in.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + } + }, + "max_items": 1 + }, + { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this backup policy plan. Names must be unique within the backup policy this plan resides in. If unspecified, the name will be a hyphenated list of randomly-selected words.", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$", + "optional": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this backup policy plan.", + "computed": true + }, { "name": "remote_region_policy", "type": "TypeList", @@ -122631,47 +122554,65 @@ } }, { - "name": "resource_type", + "name": "backup_policy_id", "type": "TypeString", - "description": "The resource type.", - "computed": true + "description": "The backup policy identifier.", + "immutable": true, + "required": true }, { - "name": "name", + "name": "backup_policy_plan_id", "type": "TypeString", - "description": "The user-defined name for this backup policy plan. Names must be unique within the backup policy this plan resides in. If unspecified, the name will be a hyphenated list of randomly-selected words.", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$", - "optional": true + "description": "The backup policy identifier.", + "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the backup policy plan was created.", + "name": "active", + "type": "TypeBool", + "description": "Indicates whether the plan is active.", + "optional": true, "computed": true }, { - "name": "href", + "name": "attach_user_tags", + "type": "TypeSet", + "description": "User tags to attach to each backup (snapshot) created by this plan. If unspecified, no user tags will be attached.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "created_at", "type": "TypeString", - "description": "The URL for this backup policy plan.", + "description": "The date and time that the backup policy plan was created.", "computed": true } ], "ibm_is_bare_metal_server": [ { - "name": "resource_group", + "name": "vpc", "type": "TypeString", - "description": "Resource group name", - "cloud_data_type": "resource_group", + "description": "The VPC the bare metal server is to be a part of", "immutable": true, "optional": true, "computed": true }, { - "name": "status", - "type": "TypeString", - "description": "Bare metal server status", + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "enable_secure_boot", + "type": "TypeBool", + "description": "Indicates whether secure boot is enabled. If enabled, the image must support secure boot or the server will fail to boot.", + "optional": true, "computed": true }, { @@ -122682,17 +122623,125 @@ "optional": true }, { - "name": "bandwidth", - "type": "TypeInt", - "description": "The total bandwidth (in megabits per second)", + "name": "crn", + "type": "TypeString", + "description": "The CRN for this bare metal server", + "cloud_data_type": "crn", "computed": true }, + { + "name": "disks", + "type": "TypeList", + "description": "The disks for this bare metal server, including any disks that are associated with the boot_target.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this bare metal server disk", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this bare metal server disk", + "computed": true + }, + "interface_type": { + "name": "interface_type", + "type": "TypeString", + "description": "The disk interface used for attaching the disk. Supported values are [ nvme, sata ]", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this disk", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type", + "computed": true + }, + "size": { + "name": "size", + "type": "TypeInt", + "description": "The size of the disk in GB (gigabytes)", + "computed": true + } + } + }, { "name": "href", "type": "TypeString", "description": "The URL for this bare metal server", "computed": true }, + { + "name": "memory", + "type": "TypeInt", + "description": "The amount of memory, truncated to whole gibibytes", + "computed": true + }, + { + "name": "status_reasons", + "type": "TypeList", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the status reason", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the status reason", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about this status reason", + "computed": true + } + } + }, + { + "name": "tags", + "type": "TypeSet", + "description": "Tags for the Bare metal server", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "Resource type name", + "computed": true + }, + { + "name": "boot_target", + "type": "TypeString", + "description": "The unique identifier for this bare metal server disk", + "computed": true + }, + { + "name": "delete_type", + "type": "TypeString", + "description": "Enables stopping type of the bare metal server before deleting", + "default_value": "hard", + "optional": true + }, { "name": "primary_network_interface", "type": "TypeList", @@ -122820,150 +122869,6 @@ "max_items": 1, "min_items": 1 }, - { - "name": "keys", - "type": "TypeSet", - "description": "SSH key Ids for the bare metal server", - "required": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "name", - "type": "TypeString", - "description": "Bare metal server name", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", - "optional": true - }, - { - "name": "boot_target", - "type": "TypeString", - "description": "The unique identifier for this bare metal server disk", - "computed": true - }, - { - "name": "disks", - "type": "TypeList", - "description": "The disks for this bare metal server, including any disks that are associated with the boot_target.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this bare metal server disk", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this bare metal server disk", - "computed": true - }, - "interface_type": { - "name": "interface_type", - "type": "TypeString", - "description": "The disk interface used for attaching the disk. Supported values are [ nvme, sata ]", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this disk", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type", - "computed": true - }, - "size": { - "name": "size", - "type": "TypeInt", - "description": "The size of the disk in GB (gigabytes)", - "computed": true - } - } - }, - { - "name": "user_data", - "type": "TypeString", - "description": "User data given for the bare metal server", - "immutable": true, - "optional": true - }, - { - "name": "zone", - "type": "TypeString", - "description": "Zone name", - "immutable": true, - "required": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "Tags for the Bare metal server", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "enable_secure_boot", - "type": "TypeBool", - "description": "Indicates whether secure boot is enabled. If enabled, the image must support secure boot or the server will fail to boot.", - "optional": true, - "computed": true - }, - { - "name": "cpu", - "type": "TypeList", - "description": "The bare metal server CPU configuration", - "computed": true, - "elem": { - "architecture": { - "name": "architecture", - "type": "TypeString", - "description": "The CPU architecture", - "computed": true - }, - "core_count": { - "name": "core_count", - "type": "TypeInt", - "description": "The total number of cores", - "computed": true - }, - "socket_count": { - "name": "socket_count", - "type": "TypeInt", - "description": "The total number of CPU sockets", - "computed": true - }, - "threads_per_core": { - "name": "threads_per_core", - "type": "TypeInt", - "description": "The total number of hardware threads per core", - "computed": true - } - } - }, { "name": "network_interfaces", "type": "TypeSet", @@ -123112,43 +123017,36 @@ "required": true }, { - "name": "vpc", + "name": "user_data", "type": "TypeString", - "description": "The VPC the bare metal server is to be a part of", + "description": "User data given for the bare metal server", "immutable": true, - "optional": true, - "computed": true + "optional": true }, { - "name": "resource_type", + "name": "zone", "type": "TypeString", - "description": "Resource type name", + "description": "Zone name", + "immutable": true, + "required": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource group name", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, "computed": true }, { - "name": "status_reasons", - "type": "TypeList", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the status reason", - "computed": true - }, - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about this status reason", - "computed": true - } - } + "name": "name", + "type": "TypeString", + "description": "Bare metal server name", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "optional": true }, { "name": "trusted_platform_module", @@ -123182,24 +123080,51 @@ "max_items": 1 }, { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this bare metal server", - "cloud_data_type": "crn", + "name": "bandwidth", + "type": "TypeInt", + "description": "The total bandwidth (in megabits per second)", "computed": true }, { - "name": "memory", - "type": "TypeInt", - "description": "The amount of memory, truncated to whole gibibytes", - "computed": true + "name": "cpu", + "type": "TypeList", + "description": "The bare metal server CPU configuration", + "computed": true, + "elem": { + "architecture": { + "name": "architecture", + "type": "TypeString", + "description": "The CPU architecture", + "computed": true + }, + "core_count": { + "name": "core_count", + "type": "TypeInt", + "description": "The total number of cores", + "computed": true + }, + "socket_count": { + "name": "socket_count", + "type": "TypeInt", + "description": "The total number of CPU sockets", + "computed": true + }, + "threads_per_core": { + "name": "threads_per_core", + "type": "TypeInt", + "description": "The total number of hardware threads per core", + "computed": true + } + } }, { - "name": "delete_type", - "type": "TypeString", - "description": "Enables stopping type of the bare metal server before deleting", - "default_value": "hard", - "optional": true + "name": "keys", + "type": "TypeSet", + "description": "SSH key Ids for the bare metal server", + "required": true, + "elem": { + "type": "TypeString" + } }, { "name": "image", @@ -123207,9 +123132,29 @@ "description": "image id", "immutable": true, "required": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Bare metal server status", + "computed": true } ], "ibm_is_bare_metal_server_action": [ + { + "name": "stop_type", + "type": "TypeString", + "description": "The type of stop operation", + "default_value": "hard", + "immutable": true, + "optional": true + }, + { + "name": "action", + "type": "TypeString", + "description": "This restart/start/stops a bare metal server.", + "required": true + }, { "name": "status", "type": "TypeString", @@ -123247,23 +123192,15 @@ "description": "Bare metal server identifier", "immutable": true, "required": true - }, - { - "name": "stop_type", - "type": "TypeString", - "description": "The type of stop operation", - "default_value": "hard", - "immutable": true, - "optional": true - }, - { - "name": "action", - "type": "TypeString", - "description": "This restart/start/stops a bare metal server.", - "required": true } ], "ibm_is_bare_metal_server_disk": [ + { + "name": "bare_metal_server", + "type": "TypeString", + "description": "Bare metal server identifier", + "required": true + }, { "name": "disk", "type": "TypeString", @@ -123279,32 +123216,20 @@ "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", "optional": true, "computed": true - }, - { - "name": "bare_metal_server", - "type": "TypeString", - "description": "Bare metal server identifier", - "required": true } ], "ibm_is_bare_metal_server_network_interface": [ { - "name": "bare_metal_server", - "type": "TypeString", - "description": "Bare metal server identifier", - "required": true + "name": "hard_stop", + "type": "TypeBool", + "description": "Only used for PCI network interfaces, whether to hard/immediately stop server", + "default_value": true, + "optional": true }, { - "name": "status", + "name": "mac_address", "type": "TypeString", - "description": "The status of the network interface : [ available, deleting, failed, pending ]", - "computed": true - }, - { - "name": "enable_infrastructure_nat", - "type": "TypeBool", - "description": "If true, the VPC infrastructure performs any needed NAT operations. If false, the packet is passed unmodified to/from the network interface, allowing the workload to perform any needed NAT operations.", - "optional": true, + "description": "The MAC address of the interface. If absent, the value is not known.", "computed": true }, { @@ -123318,54 +123243,23 @@ "computed": true }, { - "name": "subnet", - "type": "TypeString", - "description": "The id of the associated subnet", - "required": true - }, - { - "name": "allowed_vlans", - "type": "TypeSet", - "description": "Indicates what VLAN IDs (for VLAN type only) can use this physical (PCI type) interface. A given VLAN can only be in the allowed_vlans array for one PCI type adapter per bare metal server.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeInt" - } + "name": "port_speed", + "type": "TypeInt", + "description": "The network interface port speed in Mbps", + "computed": true }, { - "name": "allow_interface_to_float", - "type": "TypeBool", - "description": "Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.", + "name": "vlan", + "type": "TypeInt", + "description": "Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface", "optional": true, "computed": true }, { - "name": "hard_stop", - "type": "TypeBool", - "description": "Only used for PCI network interfaces, whether to hard/immediately stop server", - "default_value": true, - "optional": true - }, - { - "name": "floating_ips", - "type": "TypeList", - "description": "The floating IPs associated with this network interface.", - "computed": true, - "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "The globally unique IP address", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The globally unique IP identifier", - "computed": true - } - } + "name": "bare_metal_server", + "type": "TypeString", + "description": "Bare metal server identifier", + "required": true }, { "name": "href", @@ -123381,38 +123275,6 @@ "optional": true, "computed": true }, - { - "name": "mac_address", - "type": "TypeString", - "description": "The MAC address of the interface. If absent, the value is not known.", - "computed": true - }, - { - "name": "port_speed", - "type": "TypeInt", - "description": "The network interface port speed in Mbps", - "computed": true - }, - { - "name": "vlan", - "type": "TypeInt", - "description": "Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface", - "optional": true, - "computed": true - }, - { - "name": "network_interface", - "type": "TypeString", - "description": "The bare metal server network interface identifier", - "computed": true - }, - { - "name": "allow_ip_spoofing", - "type": "TypeBool", - "description": "Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface.", - "optional": true, - "computed": true - }, { "name": "primary_ip", "type": "TypeList", @@ -123463,12 +123325,6 @@ }, "max_items": 1 }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type : [ subnet_reserved_ip ]", - "computed": true - }, { "name": "security_groups", "type": "TypeSet", @@ -123480,44 +123336,24 @@ } }, { - "name": "type", + "name": "status", "type": "TypeString", - "description": "The type of this bare metal server network interface : [ primary, secondary ]", + "description": "The status of the network interface : [ available, deleting, failed, pending ]", "computed": true - } - ], - "ibm_is_bare_metal_server_network_interface_allow_float": [ - { - "name": "vlan", - "type": "TypeInt", - "description": "Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface", - "required": true }, { - "name": "href", + "name": "type", "type": "TypeString", - "description": "The URL for this network interface", + "description": "The type of this bare metal server network interface : [ primary, secondary ]", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this network interface", + "name": "allow_interface_to_float", + "type": "TypeBool", + "description": "Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.", "optional": true, "computed": true }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type : [ subnet_reserved_ip ]", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "The status of the network interface : [ available, deleting, failed, pending ]", - "computed": true - }, { "name": "network_interface", "type": "TypeString", @@ -123539,39 +123375,49 @@ "computed": true }, { - "name": "security_groups", - "type": "TypeSet", - "description": "Collection of security groups ids", - "optional": true, + "name": "floating_ips", + "type": "TypeList", + "description": "The floating IPs associated with this network interface.", "computed": true, "elem": { - "type": "TypeString" + "address": { + "name": "address", + "type": "TypeString", + "description": "The globally unique IP address", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The globally unique IP identifier", + "computed": true + } } }, { - "name": "allow_interface_to_float", - "type": "TypeBool", - "description": "Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.", - "computed": true - }, - { - "name": "floating_bare_metal_server", + "name": "resource_type", "type": "TypeString", - "description": "Bare metal server identifier of the server to which nic is floating to", + "description": "The resource type : [ subnet_reserved_ip ]", "computed": true }, { - "name": "interface_type", + "name": "subnet", "type": "TypeString", - "description": "The network interface type: [ pci, vlan ]", - "computed": true + "description": "The id of the associated subnet", + "required": true }, { - "name": "mac_address", - "type": "TypeString", - "description": "The MAC address of the interface. If absent, the value is not known.", - "computed": true - }, + "name": "allowed_vlans", + "type": "TypeSet", + "description": "Indicates what VLAN IDs (for VLAN type only) can use this physical (PCI type) interface. A given VLAN can only be in the allowed_vlans array for one PCI type adapter per bare metal server.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeInt" + } + } + ], + "ibm_is_bare_metal_server_network_interface_allow_float": [ { "name": "primary_ip", "type": "TypeList", @@ -123623,67 +123469,146 @@ "max_items": 1 }, { - "name": "subnet", + "name": "bare_metal_server", "type": "TypeString", - "description": "The id of the associated subnet", + "description": "Bare metal server identifier", + "required": true + }, + { + "name": "floating_bare_metal_server", + "type": "TypeString", + "description": "Bare metal server identifier of the server to which nic is floating to", + "computed": true + }, + { + "name": "enable_infrastructure_nat", + "type": "TypeBool", + "description": "If true, the VPC infrastructure performs any needed NAT operations. If false, the packet is passed unmodified to/from the network interface, allowing the workload to perform any needed NAT operations.", + "optional": true, + "computed": true + }, + { + "name": "floating_ips", + "type": "TypeList", + "description": "The floating IPs associated with this network interface.", + "computed": true, + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "The globally unique IP address", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The globally unique IP identifier", + "computed": true + } + } + }, + { + "name": "interface_type", + "type": "TypeString", + "description": "The network interface type: [ pci, vlan ]", + "computed": true + }, + { + "name": "allow_ip_spoofing", + "type": "TypeBool", + "description": "Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface.", + "optional": true, + "computed": true + }, + { + "name": "mac_address", + "type": "TypeString", + "description": "The MAC address of the interface. If absent, the value is not known.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this network interface", + "optional": true, + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type : [ subnet_reserved_ip ]", + "computed": true + }, + { + "name": "allow_interface_to_float", + "type": "TypeBool", + "description": "Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.", + "computed": true + }, + { + "name": "security_groups", + "type": "TypeSet", + "description": "Collection of security groups ids", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "status", + "type": "TypeString", + "description": "The status of the network interface : [ available, deleting, failed, pending ]", + "computed": true + }, + { + "name": "vlan", + "type": "TypeInt", + "description": "Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface", "required": true }, { - "name": "type", + "name": "network_interface", "type": "TypeString", - "description": "The type of this bare metal server network interface : [ primary, secondary ]", + "description": "The bare metal server network interface identifier", "computed": true }, { - "name": "bare_metal_server", + "name": "href", "type": "TypeString", - "description": "Bare metal server identifier", - "required": true - }, - { - "name": "floating_ips", - "type": "TypeList", - "description": "The floating IPs associated with this network interface.", - "computed": true, - "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "The globally unique IP address", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The globally unique IP identifier", - "computed": true - } - } + "description": "The URL for this network interface", + "computed": true }, { "name": "port_speed", "type": "TypeInt", "description": "The network interface port speed in Mbps", "computed": true - } - ], - "ibm_is_bare_metal_server_network_interface_floating_ip": [ + }, { - "name": "bare_metal_server", + "name": "subnet", "type": "TypeString", - "description": "Bare metal server identifier", + "description": "The id of the associated subnet", "required": true }, { - "name": "floating_ip", + "name": "type", "type": "TypeString", - "description": "The floating ip identifier of the network interface associated with the bare metal server", - "required": true + "description": "The type of this bare metal server network interface : [ primary, secondary ]", + "computed": true + } + ], + "ibm_is_bare_metal_server_network_interface_floating_ip": [ + { + "name": "name", + "type": "TypeString", + "description": "Name of the floating IP", + "computed": true }, { - "name": "status", + "name": "zone", "type": "TypeString", - "description": "Floating IP status", + "description": "Zone name", "computed": true }, { @@ -123694,10 +123619,10 @@ "computed": true }, { - "name": "target", + "name": "bare_metal_server", "type": "TypeString", - "description": "Target info", - "computed": true + "description": "Bare metal server identifier", + "required": true }, { "name": "network_interface", @@ -123706,10 +123631,10 @@ "required": true }, { - "name": "name", + "name": "floating_ip", "type": "TypeString", - "description": "Name of the floating IP", - "computed": true + "description": "The floating ip identifier of the network interface associated with the bare metal server", + "required": true }, { "name": "address", @@ -123718,13 +123643,26 @@ "computed": true }, { - "name": "zone", + "name": "status", "type": "TypeString", - "description": "Zone name", + "description": "Floating IP status", + "computed": true + }, + { + "name": "target", + "type": "TypeString", + "description": "Target info", "computed": true } ], "ibm_is_dedicated_host": [ + { + "name": "profile", + "type": "TypeString", + "description": "The Globally unique name of the dedicated host profile to use for this dedicated host.", + "immutable": true, + "required": true + }, { "name": "href", "type": "TypeString", @@ -123732,62 +123670,64 @@ "computed": true }, { - "name": "instances", + "name": "provisionable", + "type": "TypeBool", + "description": "Indicates whether this dedicated host is available for instance creation.", + "computed": true + }, + { + "name": "memory", + "type": "TypeInt", + "description": "The total amount of memory in gibibytes for this host.", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The type of resource referenced.", + "computed": true + }, + { + "name": "socket_count", + "type": "TypeInt", + "description": "The total number of sockets for this host.", + "computed": true + }, + { + "name": "state", + "type": "TypeString", + "description": "The administrative state of the dedicated host.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the dedicated host on which the unexpected property value was encountered.", + "computed": true + }, + { + "name": "supported_instance_profiles", "type": "TypeList", - "description": "Array of instances that are allocated to this dedicated host.", + "description": "Array of instance profiles that can be used by instances placed on this dedicated host.", "computed": true, "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this virtual server instance.", - "computed": true - }, - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, "href": { "name": "href", "type": "TypeString", - "description": "The URL for this virtual server instance.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this virtual server instance.", + "description": "The URL for this virtual server instance profile.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The user-defined name for this virtual server instance (and default system hostname).", + "description": "The globally unique name for this virtual server instance profile.", "computed": true } } }, { - "name": "lifecycle_state", - "type": "TypeString", - "description": "The lifecycle state of the dedicated host resource.", - "computed": true - }, - { - "name": "socket_count", - "type": "TypeInt", - "description": "The total number of sockets for this host.", - "computed": true + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "instance_placement_enabled", @@ -123796,6 +123736,25 @@ "default_value": true, "optional": true }, + { + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this dedicated host. If unspecified, the name will be a hyphenated list of randomly-selected words.", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "optional": true, + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "The unique identifier for the resource group to use. If unspecified, the account's [default resourcegroup](https://cloud.ibm.com/apidocs/resource-manager#introduction) is used.", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true + }, { "name": "available_memory", "type": "TypeInt", @@ -123822,28 +123781,6 @@ } } }, - { - "name": "memory", - "type": "TypeInt", - "description": "The total amount of memory in gibibytes for this host.", - "computed": true - }, - { - "name": "state", - "type": "TypeString", - "description": "The administrative state of the dedicated host.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the dedicated host on which the unexpected property value was encountered.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this dedicated host. If unspecified, the name will be a hyphenated list of randomly-selected words.", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", - "optional": true, - "computed": true - }, { "name": "created_at", "type": "TypeString", @@ -123974,15 +123911,63 @@ } }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "optional": true, + "name": "instances", + "type": "TypeList", + "description": "Array of instances that are allocated to this dedicated host.", "computed": true, "elem": { - "type": "TypeString" + "crn": { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this virtual server instance.", + "computed": true + }, + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this virtual server instance.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this virtual server instance.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this virtual server instance (and default system hostname).", + "computed": true + } } }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the dedicated host resource.", + "computed": true + }, + { + "name": "zone", + "type": "TypeString", + "description": "The globally unique name of the zone this dedicated host resides in.", + "computed": true + }, { "name": "numa", "type": "TypeList", @@ -124018,9 +124003,17 @@ } }, { - "name": "resource_type", + "name": "host_group", "type": "TypeString", - "description": "The type of resource referenced.", + "description": "The unique identifier of the dedicated host group for this dedicated host.", + "immutable": true, + "required": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this dedicated host.", + "cloud_data_type": "crn", "computed": true }, { @@ -124042,78 +124035,9 @@ "computed": true } } - }, - { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this dedicated host.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "provisionable", - "type": "TypeBool", - "description": "Indicates whether this dedicated host is available for instance creation.", - "computed": true - }, - { - "name": "supported_instance_profiles", - "type": "TypeList", - "description": "Array of instance profiles that can be used by instances placed on this dedicated host.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this virtual server instance profile.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The globally unique name for this virtual server instance profile.", - "computed": true - } - } - }, - { - "name": "zone", - "type": "TypeString", - "description": "The globally unique name of the zone this dedicated host resides in.", - "computed": true - }, - { - "name": "profile", - "type": "TypeString", - "description": "The Globally unique name of the dedicated host profile to use for this dedicated host.", - "immutable": true, - "required": true - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "The unique identifier for the resource group to use. If unspecified, the account's [default resourcegroup](https://cloud.ibm.com/apidocs/resource-manager#introduction) is used.", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "host_group", - "type": "TypeString", - "description": "The unique identifier of the dedicated host group for this dedicated host.", - "immutable": true, - "required": true } ], "ibm_is_dedicated_host_disk_management": [ - { - "name": "dedicated_host", - "type": "TypeString", - "description": "ID of the dedicated host for which disks has to be managed", - "immutable": true, - "required": true - }, { "name": "disks", "type": "TypeList", @@ -124133,29 +124057,16 @@ "required": true } } + }, + { + "name": "dedicated_host", + "type": "TypeString", + "description": "ID of the dedicated host for which disks has to be managed", + "immutable": true, + "required": true } ], "ibm_is_dedicated_host_group": [ - { - "name": "supported_instance_profiles", - "type": "TypeList", - "description": "Array of instance profiles that can be used by instances placed on this dedicated host group.", - "computed": true, - "elem": { - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this virtual server instance profile.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The globally unique name for this virtual server instance profile.", - "computed": true - } - } - }, { "name": "name", "type": "TypeString", @@ -124181,6 +124092,13 @@ "description": "The date and time that the dedicated host group was created.", "computed": true }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this dedicated host group.", + "cloud_data_type": "crn", + "computed": true + }, { "name": "dedicated_hosts", "type": "TypeList", @@ -124234,9 +124152,9 @@ } }, { - "name": "href", + "name": "resource_type", "type": "TypeString", - "description": "The URL for this dedicated host group.", + "description": "The type of resource referenced.", "computed": true }, { @@ -124261,21 +124179,47 @@ "immutable": true, "required": true }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this dedicated host group.", + "computed": true + }, + { + "name": "supported_instance_profiles", + "type": "TypeList", + "description": "Array of instance profiles that can be used by instances placed on this dedicated host group.", + "computed": true, + "elem": { + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this virtual server instance profile.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The globally unique name for this virtual server instance profile.", + "computed": true + } + } + } + ], + "ibm_is_floating_ip": [ { "name": "crn", "type": "TypeString", - "description": "The CRN for this dedicated host group.", + "description": "The crn of the resource", "cloud_data_type": "crn", "computed": true }, { - "name": "resource_type", + "name": "resource_status", "type": "TypeString", - "description": "The type of resource referenced.", + "description": "The status of the resource", "computed": true - } - ], - "ibm_is_floating_ip": [ + }, { "name": "name", "type": "TypeString", @@ -124285,6 +124229,21 @@ "max_length": 63, "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource group info", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true + }, { "name": "resource_name", "type": "TypeString", @@ -124292,31 +124251,43 @@ "computed": true }, { - "name": "status", + "name": "resource_crn", "type": "TypeString", - "description": "Floating IP status", + "description": "The crn of the resource", "computed": true }, { - "name": "target", + "name": "address", "type": "TypeString", - "description": "Target info", - "optional": true, + "description": "Floating IP address", "computed": true }, { - "name": "resource_group", + "name": "tags", + "type": "TypeSet", + "description": "Floating IP tags", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "zone", "type": "TypeString", - "description": "Resource group info", - "cloud_data_type": "resource_group", + "description": "Zone name", "immutable": true, "optional": true, "computed": true }, { - "name": "resource_group_name", + "name": "target", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "Target info", + "optional": true, "computed": true }, { @@ -124410,69 +124381,43 @@ } }, { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - }, - { - "name": "resource_crn", - "type": "TypeString", - "description": "The crn of the resource", - "computed": true + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "resource_status", + "name": "resource_group_name", "type": "TypeString", - "description": "The status of the resource", + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "address", + "name": "status", "type": "TypeString", - "description": "Floating IP address", + "description": "Floating IP status", "computed": true - }, + } + ], + "ibm_is_flow_log": [ { - "name": "zone", + "name": "target", "type": "TypeString", - "description": "Zone name", + "description": "The target id that the flow log collector is to collect flow logs", "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "description": "Floating IP tags", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "required": true }, { "name": "crn", "type": "TypeString", - "description": "The crn of the resource", + "description": "The CRN for this flow log collector", "cloud_data_type": "crn", "computed": true - } - ], - "ibm_is_flow_log": [ + }, { "name": "href", "type": "TypeString", @@ -124480,12 +124425,9 @@ "computed": true }, { - "name": "tags", + "name": "access_tags", "type": "TypeSet", - "description": "Tags for the VPC Flow logs", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", + "description": "List of access management tags", "optional": true, "computed": true, "elem": { @@ -124493,30 +124435,19 @@ } }, { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, - { - "name": "target", - "type": "TypeString", - "description": "The target id that the flow log collector is to collect flow logs", - "immutable": true, - "required": true - }, - { - "name": "vpc", + "name": "resource_status", "type": "TypeString", - "description": "The VPC this flow log collector is associated with", + "description": "The status of the resource", "computed": true }, { - "name": "storage_bucket", + "name": "name", "type": "TypeString", - "description": "The Cloud Object Storage bucket name where the collected flows will be logged", - "immutable": true, - "required": true + "description": "Flow Log Collector name", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, { "name": "resource_group", @@ -124528,10 +124459,9 @@ "computed": true }, { - "name": "crn", + "name": "created_at", "type": "TypeString", - "description": "The CRN for this flow log collector", - "cloud_data_type": "crn", + "description": "The date and time flow log was created", "computed": true }, { @@ -124541,9 +124471,25 @@ "computed": true }, { - "name": "access_tags", + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true + }, + { + "name": "storage_bucket", + "type": "TypeString", + "description": "The Cloud Object Storage bucket name where the collected flows will be logged", + "immutable": true, + "required": true + }, + { + "name": "tags", "type": "TypeSet", - "description": "List of access management tags", + "description": "Tags for the VPC Flow logs", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", "optional": true, "computed": true, "elem": { @@ -124551,9 +124497,9 @@ } }, { - "name": "resource_name", + "name": "resource_controller_url", "type": "TypeString", - "description": "The name of the resource", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { @@ -124563,20 +124509,11 @@ "computed": true }, { - "name": "resource_status", + "name": "resource_group_name", "type": "TypeString", - "description": "The status of the resource", + "description": "The resource group name in which resource is provisioned", "computed": true }, - { - "name": "name", - "type": "TypeString", - "description": "Flow Log Collector name", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" - }, { "name": "active", "type": "TypeBool", @@ -124584,12 +124521,6 @@ "default_value": true, "optional": true }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time flow log was created", - "computed": true - }, { "name": "lifecycle_state", "type": "TypeString", @@ -124597,27 +124528,25 @@ "computed": true }, { - "name": "resource_controller_url", + "name": "vpc", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "The VPC this flow log collector is associated with", "computed": true } ], "ibm_is_ike_policy": [ { - "name": "resource_group_name", + "name": "authentication_algorithm", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true + "description": "Authentication algorithm type", + "required": true, + "options": "md5, sha1, sha256, sha512, sha384" }, { - "name": "name", + "name": "negotiation_mode", "type": "TypeString", - "description": "IKE name", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + "description": "IKE negotiation mode", + "computed": true }, { "name": "href", @@ -124648,46 +124577,25 @@ } }, { - "name": "resource_group", - "type": "TypeString", - "description": "IKE resource group ID", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "key_lifetime", - "type": "TypeInt", - "description": "IKE Key lifetime", - "default_value": 28800, - "optional": true - }, - { - "name": "ike_version", - "type": "TypeInt", - "description": "IKE version", - "options": "1, 2", - "optional": true - }, - { - "name": "negotiation_mode", + "name": "resource_controller_url", "type": "TypeString", - "description": "IKE negotiation mode", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { - "name": "resource_controller_url", + "name": "resource_group_name", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "authentication_algorithm", + "name": "name", "type": "TypeString", - "description": "Authentication algorithm type", + "description": "IKE name", "required": true, - "options": "md5, sha1, sha256, sha512, sha384" + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, { "name": "encryption_algorithm", @@ -124703,6 +124611,29 @@ "required": true, "options": "2, 5, 14, 19, 15, 16, 17, 18, 20, 21, 22, 23, 24, 31" }, + { + "name": "resource_group", + "type": "TypeString", + "description": "IKE resource group ID", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "key_lifetime", + "type": "TypeInt", + "description": "IKE Key lifetime", + "default_value": 28800, + "optional": true + }, + { + "name": "ike_version", + "type": "TypeInt", + "description": "IKE version", + "options": "1, 2", + "optional": true + }, { "name": "resource_name", "type": "TypeString", @@ -124712,24 +124643,12 @@ ], "ibm_is_image": [ { - "name": "crn", - "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "checksum", + "name": "href", "type": "TypeString", - "description": "The SHA256 checksum of this image", + "description": "Image Href value", + "optional": true, "computed": true }, - { - "name": "deprecate", - "type": "TypeBool", - "description": "Set to deprecate. You can set an image to `deprecated` as a warning to transition away from soon-to-be obsolete images. Deprecated images can be used to provision resources.", - "optional": true - }, { "name": "operating_system", "type": "TypeString", @@ -124739,9 +124658,15 @@ "computed": true }, { - "name": "status", + "name": "encryption", "type": "TypeString", - "description": "The status of this image", + "description": "The type of encryption used on the image", + "computed": true + }, + { + "name": "size", + "type": "TypeInt", + "description": "The minimum size (in gigabytes) of a volume onto which this image may be provisioned", "computed": true }, { @@ -124758,51 +124683,37 @@ "computed": true }, { - "name": "resource_status", - "type": "TypeString", - "description": "The status of the resource", - "computed": true + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "href", + "name": "visibility", "type": "TypeString", - "description": "Image Href value", - "optional": true, + "description": "Whether the image is publicly visible or private to the account", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "Image name", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + "name": "file", + "type": "TypeInt", + "description": "Details for the stored image file", + "computed": true }, { - "name": "obsolescence_at", + "name": "resource_controller_url", "type": "TypeString", - "description": "The obsolescence date and time (UTC) for this image. If absent, no obsolescence date and time has been set.", - "optional": true, + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { - "name": "tags", - "type": "TypeSet", - "description": "Tags for the image", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_controller_url", + "name": "checksum", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "The SHA256 checksum of this image", "computed": true }, { @@ -124812,26 +124723,23 @@ "computed": true }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "obsolete", + "type": "TypeBool", + "description": "Set to obsolete. You can set an image to `obsolete` as a warning to transition away from soon-to-be deleted images. You can't use obsolete images to provision resources.", + "optional": true }, { - "name": "encrypted_data_key", + "name": "deprecation_at", "type": "TypeString", - "description": "A base64-encoded, encrypted representation of the key that was used to encrypt the data for this image", - "immutable": true, - "optional": true + "description": "The deprecation date and time (UTC) for this image. If absent, no deprecation date and time has been set.", + "optional": true, + "computed": true }, { - "name": "created_at", + "name": "obsolescence_at", "type": "TypeString", - "description": "The date and time that the image was created", + "description": "The obsolescence date and time (UTC) for this image. If absent, no obsolescence date and time has been set.", + "optional": true, "computed": true }, { @@ -124842,71 +124750,99 @@ "optional": true }, { - "name": "size", - "type": "TypeInt", - "description": "The minimum size (in gigabytes) of a volume onto which this image may be provisioned", + "name": "resource_group", + "type": "TypeString", + "description": "The resource group for this image", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, "computed": true }, { - "name": "file", - "type": "TypeInt", - "description": "Details for the stored image file", + "name": "crn", + "type": "TypeString", + "description": "The crn of the resource", + "cloud_data_type": "crn", "computed": true }, { - "name": "resource_group", + "name": "resource_status", "type": "TypeString", - "description": "The resource group for this image", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, + "description": "The status of the resource", "computed": true }, { - "name": "resource_name", + "name": "name", "type": "TypeString", - "description": "The name of the resource", + "description": "Image name", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + }, + { + "name": "encrypted_data_key", + "type": "TypeString", + "description": "A base64-encoded, encrypted representation of the key that was used to encrypt the data for this image", + "immutable": true, + "optional": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the image was created", "computed": true }, { - "name": "obsolete", + "name": "deprecate", "type": "TypeBool", - "description": "Set to obsolete. You can set an image to `obsolete` as a warning to transition away from soon-to-be deleted images. You can't use obsolete images to provision resources.", + "description": "Set to deprecate. You can set an image to `deprecated` as a warning to transition away from soon-to-be obsolete images. Deprecated images can be used to provision resources.", "optional": true }, { - "name": "deprecation_at", - "type": "TypeString", - "description": "The deprecation date and time (UTC) for this image. If absent, no deprecation date and time has been set.", + "name": "tags", + "type": "TypeSet", + "description": "Tags for the image", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "encryption", + "name": "status", "type": "TypeString", - "description": "The type of encryption used on the image", + "description": "The status of this image", "computed": true }, { - "name": "visibility", + "name": "resource_name", "type": "TypeString", - "description": "Whether the image is publicly visible or private to the account", + "description": "The name of the resource", "computed": true } ], "ibm_is_image_deprecate": [ { - "name": "name", + "name": "encryption", "type": "TypeString", - "description": "Image name", + "description": "The type of encryption used on the image", "computed": true }, { - "name": "image", + "name": "size", + "type": "TypeInt", + "description": "The minimum size (in gigabytes) of a volume onto which this image may be provisioned", + "computed": true + }, + { + "name": "source_volume", "type": "TypeString", - "description": "Image identifier", - "immutable": true, - "required": true + "description": "Image volume id", + "computed": true }, { "name": "created_at", @@ -124915,30 +124851,42 @@ "computed": true }, { - "name": "deprecation_at", + "name": "obsolescence_at", "type": "TypeString", - "description": "The deprecation date and time (UTC) for this image. If absent, no deprecation date and time has been set.", + "description": "The obsolescence date and time (UTC) for this image. If absent, no obsolescence date and time has been set.", "computed": true }, { - "name": "size", - "type": "TypeInt", - "description": "The minimum size (in gigabytes) of a volume onto which this image may be provisioned", + "name": "encryption_key", + "type": "TypeString", + "description": "The CRN of the Key Protect Root Key or Hyper Protect Crypto Service Root Key for this resource", "computed": true }, { - "name": "source_volume", + "name": "operating_system", "type": "TypeString", - "description": "Image volume id", + "description": "Image Operating system", "computed": true }, { - "name": "resource_group", + "name": "status", "type": "TypeString", - "description": "The resource group for this image", - "cloud_data_type": "resource_group", + "description": "The status of this image", + "computed": true + }, + { + "name": "href", + "type": "TypeString", + "description": "Image Href value", "computed": true }, + { + "name": "image", + "type": "TypeString", + "description": "Image identifier", + "immutable": true, + "required": true + }, { "name": "encrypted_data_key", "type": "TypeString", @@ -124946,31 +124894,25 @@ "computed": true }, { - "name": "obsolescence_at", + "name": "crn", "type": "TypeString", - "description": "The obsolescence date and time (UTC) for this image. If absent, no obsolescence date and time has been set.", + "description": "The crn of the resource", + "cloud_data_type": "crn", "computed": true }, { - "name": "tags", + "name": "access_tags", "type": "TypeSet", - "description": "Tags for the image", - "cloud_data_type": "tags", + "description": "List of access management tags", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "operating_system", - "type": "TypeString", - "description": "Image Operating system", - "computed": true - }, - { - "name": "status", + "name": "deprecation_at", "type": "TypeString", - "description": "The status of this image", + "description": "The deprecation date and time (UTC) for this image. If absent, no deprecation date and time has been set.", "computed": true }, { @@ -124980,61 +124922,87 @@ "computed": true }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "href", + "name": "checksum", "type": "TypeString", - "description": "Image Href value", + "description": "The SHA256 checksum of this image", "computed": true }, { - "name": "encryption_key", + "name": "resource_group", "type": "TypeString", - "description": "The CRN of the Key Protect Root Key or Hyper Protect Crypto Service Root Key for this resource", + "description": "The resource group for this image", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "encryption", + "name": "name", "type": "TypeString", - "description": "The type of encryption used on the image", + "description": "Image name", "computed": true }, + { + "name": "tags", + "type": "TypeSet", + "description": "Tags for the image", + "cloud_data_type": "tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "visibility", "type": "TypeString", "description": "Whether the image is publicly visible or private to the account", "computed": true - }, + } + ], + "ibm_is_image_export_job": [ { - "name": "crn", + "name": "started_at", "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", + "description": "The date and time that the image export job started running.If absent, the export job has not yet started.", "computed": true }, { - "name": "checksum", + "name": "status", "type": "TypeString", - "description": "The SHA256 checksum of this image", + "description": "The status of this image export job:- `deleting`: Export job is being deleted- `failed`: Export job could not be completed successfully- `queued`: Export job is queued- `running`: Export job is in progress- `succeeded`: Export job was completed successfullyThe exported image object is automatically deleted for `failed` jobs.", "computed": true - } - ], - "ibm_is_image_export_job": [ + }, { - "name": "format", + "name": "image", "type": "TypeString", - "description": "The format to use for the exported image. If the image is encrypted, only `qcow2` is supported.", - "default_value": "qcow2", + "description": "The image identifier.", "immutable": true, - "options": "qcow2, vhd", - "optional": true + "required": true + }, + { + "name": "storage_bucket", + "type": "TypeList", + "description": "The name of the Cloud Object Storage bucket to export the image to.", + "immutable": true, + "required": true, + "elem": { + "crn": { + "name": "crn", + "type": "TypeString", + "description": "CRN of this Cloud Object Storage bucket", + "immutable": true, + "optional": true, + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of this Cloud Object Storage bucket", + "immutable": true, + "optional": true, + "computed": true + } + }, + "max_items": 1, + "min_items": 1 }, { "name": "name", @@ -125046,6 +125014,24 @@ "optional": true, "computed": true }, + { + "name": "completed_at", + "type": "TypeString", + "description": "The date and time that the image export job was completed.If absent, the export job has not yet completed.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the image export job was created.", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The type of resource referenced.", + "computed": true + }, { "name": "status_reasons", "type": "TypeList", @@ -125087,11 +125073,13 @@ } }, { - "name": "image", + "name": "format", "type": "TypeString", - "description": "The image identifier.", + "description": "The format to use for the exported image. If the image is encrypted, only `qcow2` is supported.", + "default_value": "qcow2", "immutable": true, - "required": true + "options": "qcow2, vhd", + "optional": true }, { "name": "href", @@ -125099,69 +125087,12 @@ "description": "The URL for this image export job.", "computed": true }, - { - "name": "completed_at", - "type": "TypeString", - "description": "The date and time that the image export job was completed.If absent, the export job has not yet completed.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the image export job was created.", - "computed": true - }, { "name": "encrypted_data_key", "type": "TypeString", "description": "A base64-encoded, encrypted representation of the key that was used to encrypt the data for the exported image. This key can be unwrapped with the image's `encryption_key` root key using either Key Protect or Hyper Protect Crypto Service.If absent, the export job is for an unencrypted image.", "computed": true }, - { - "name": "status", - "type": "TypeString", - "description": "The status of this image export job:- `deleting`: Export job is being deleted- `failed`: Export job could not be completed successfully- `queued`: Export job is queued- `running`: Export job is in progress- `succeeded`: Export job was completed successfullyThe exported image object is automatically deleted for `failed` jobs.", - "computed": true - }, - { - "name": "storage_bucket", - "type": "TypeList", - "description": "The name of the Cloud Object Storage bucket to export the image to.", - "immutable": true, - "required": true, - "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "CRN of this Cloud Object Storage bucket", - "immutable": true, - "optional": true, - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of this Cloud Object Storage bucket", - "immutable": true, - "optional": true, - "computed": true - } - }, - "max_items": 1, - "min_items": 1 - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced.", - "computed": true - }, - { - "name": "started_at", - "type": "TypeString", - "description": "The date and time that the image export job started running.If absent, the export job has not yet started.", - "computed": true - }, { "name": "storage_href", "type": "TypeString", @@ -125176,12 +125107,6 @@ } ], "ibm_is_image_obsolete": [ - { - "name": "checksum", - "type": "TypeString", - "description": "The SHA256 checksum of this image", - "computed": true - }, { "name": "size", "type": "TypeInt", @@ -125189,61 +125114,79 @@ "computed": true }, { - "name": "visibility", + "name": "source_volume", "type": "TypeString", - "description": "Whether the image is publicly visible or private to the account", + "description": "Image volume id", "computed": true }, { - "name": "encryption_key", + "name": "resource_group", "type": "TypeString", - "description": "The CRN of the Key Protect Root Key or Hyper Protect Crypto Service Root Key for this resource", + "description": "The resource group for this image", + "cloud_data_type": "resource_group", "computed": true }, { - "name": "operating_system", + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "href", "type": "TypeString", - "description": "Image Operating system", + "description": "Image Href value", "computed": true }, { - "name": "crn", + "name": "name", "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", + "description": "Image name", "computed": true }, { - "name": "access_tags", + "name": "tags", "type": "TypeSet", - "description": "List of access management tags", + "description": "Tags for the image", + "cloud_data_type": "tags", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "name", + "name": "operating_system", "type": "TypeString", - "description": "Image name", + "description": "Image Operating system", "computed": true }, { - "name": "created_at", + "name": "image", "type": "TypeString", - "description": "The date and time that the image was created", + "description": "Image identifier", + "immutable": true, + "required": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The crn of the resource", + "cloud_data_type": "crn", "computed": true }, { - "name": "file", - "type": "TypeInt", - "description": "Details for the stored image file", + "name": "checksum", + "type": "TypeString", + "description": "The SHA256 checksum of this image", "computed": true }, { - "name": "href", + "name": "deprecation_at", "type": "TypeString", - "description": "Image Href value", + "description": "The deprecation date and time (UTC) for this image. If absent, no deprecation date and time has been set.", "computed": true }, { @@ -125253,129 +125196,116 @@ "computed": true }, { - "name": "deprecation_at", + "name": "status", "type": "TypeString", - "description": "The deprecation date and time (UTC) for this image. If absent, no deprecation date and time has been set.", + "description": "The status of this image", "computed": true }, { - "name": "obsolescence_at", + "name": "visibility", "type": "TypeString", - "description": "The obsolescence date and time (UTC) for this image. If absent, no obsolescence date and time has been set.", + "description": "Whether the image is publicly visible or private to the account", "computed": true }, { - "name": "tags", - "type": "TypeSet", - "description": "Tags for the image", - "cloud_data_type": "tags", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "status", - "type": "TypeString", - "description": "The status of this image", + "name": "file", + "type": "TypeInt", + "description": "Details for the stored image file", "computed": true }, { - "name": "source_volume", + "name": "encrypted_data_key", "type": "TypeString", - "description": "Image volume id", + "description": "A base64-encoded, encrypted representation of the key that was used to encrypt the data for this image", "computed": true }, { - "name": "resource_group", + "name": "created_at", "type": "TypeString", - "description": "The resource group for this image", - "cloud_data_type": "resource_group", + "description": "The date and time that the image was created", "computed": true }, { - "name": "image", + "name": "obsolescence_at", "type": "TypeString", - "description": "Image identifier", - "immutable": true, - "required": true + "description": "The obsolescence date and time (UTC) for this image. If absent, no obsolescence date and time has been set.", + "computed": true }, { - "name": "encrypted_data_key", + "name": "encryption_key", "type": "TypeString", - "description": "A base64-encoded, encrypted representation of the key that was used to encrypt the data for this image", + "description": "The CRN of the Key Protect Root Key or Hyper Protect Crypto Service Root Key for this resource", "computed": true } ], "ibm_is_instance": [ { - "name": "dedicated_host_group", + "name": "instance_template", "type": "TypeString", - "description": "Unique Identifier of the Dedicated Host Group where the instance will be placed", + "description": "Id of the instance template", + "immutable": true, "optional": true }, { - "name": "status", + "name": "profile", "type": "TypeString", - "description": "instance status", + "description": "Profile info", + "optional": true, "computed": true }, { - "name": "metadata_service", - "type": "TypeList", - "description": "The metadata service configuration", + "name": "tags", + "type": "TypeSet", + "description": "list of tags for the instance", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", "optional": true, "computed": true, "elem": { - "enabled": { - "name": "enabled", - "type": "TypeBool", - "description": "Indicates whether the metadata service endpoint will be available to the virtual server instance", - "optional": true, - "computed": true - }, - "protocol": { - "name": "protocol", - "type": "TypeString", - "description": "The communication protocol to use for the metadata service endpoint. Applies only when the metadata service is enabled.", - "optional": true, - "computed": true - }, - "response_hop_limit": { - "name": "response_hop_limit", - "type": "TypeInt", - "description": "The hop limit (IP time to live) for IP response packets from the metadata service", - "optional": true, - "computed": true - } - }, - "max_items": 1, - "min_items": 1 + "type": "TypeString" + } }, { - "name": "resource_controller_url", + "name": "wait_before_delete", + "type": "TypeBool", + "description": "Enables stopping of instance before deleting and waits till deletion is complete", + "default_value": true, + "optional": true + }, + { + "name": "force_recovery_time", + "type": "TypeInt", + "description": "Define timeout to force the instances to start/stop in minutes.", + "optional": true + }, + { + "name": "vpc", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "VPC id", + "immutable": true, + "optional": true, "computed": true }, { - "name": "resource_name", + "name": "zone", "type": "TypeString", - "description": "The name of the resource", + "description": "Zone name", + "immutable": true, + "optional": true, "computed": true }, { - "name": "force_recovery_time", - "type": "TypeInt", - "description": "Define timeout to force the instances to start/stop in minutes.", + "name": "dedicated_host", + "type": "TypeString", + "description": "Unique Identifier of the Dedicated Host where the instance will be placed", "optional": true }, { - "name": "force_action", - "type": "TypeBool", - "description": "If set to true, the action will be forced immediately, and all queued actions deleted. Ignored for the start action.", - "default_value": false, - "optional": true + "name": "bandwidth", + "type": "TypeInt", + "description": "The total bandwidth (in megabits per second) shared across the instance's network interfaces and storage volumes", + "computed": true }, { "name": "user_data", @@ -125385,77 +125315,110 @@ "optional": true }, { - "name": "volumes", - "type": "TypeList", - "description": "List of volumes", - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", + "computed": true }, { - "name": "auto_delete_volume", + "name": "name", + "type": "TypeString", + "description": "Instance name", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + }, + { + "name": "default_trusted_profile_auto_link", "type": "TypeBool", - "description": "Auto delete volume along with instance", - "optional": true + "description": "If set to `true`, the system will create a link to the specified `target` trusted profile during instance creation. Regardless of whether a link is created by the system or manually using the IAM Identity service, it will be automatically deleted when the instance is deleted.", + "immutable": true, + "optional": true, + "computed": true }, { - "name": "resource_status", - "type": "TypeString", - "description": "The status of the resource", + "name": "total_volume_bandwidth", + "type": "TypeInt", + "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes", + "min_value": "500", + "optional": true, "computed": true }, { - "name": "placement_target", + "name": "boot_volume", "type": "TypeList", - "description": "The placement restrictions for the virtual server instance.", + "optional": true, "computed": true, "elem": { - "crn": { - "name": "crn", + "auto_delete_volume": { + "name": "auto_delete_volume", + "type": "TypeBool", + "description": "Auto delete boot volume along with instance", + "default_value": true, + "optional": true + }, + "encryption": { + "name": "encryption", "type": "TypeString", - "description": "The CRN for this placement target.", + "optional": true, "computed": true }, - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } + "iops": { + "name": "iops", + "type": "TypeInt", + "computed": true }, - "href": { - "name": "href", + "name": { + "name": "name", "type": "TypeString", - "description": "The URL for this placement target.", + "optional": true, "computed": true }, - "id": { - "name": "id", + "profile": { + "name": "profile", "type": "TypeString", - "description": "The unique identifier for this placement target.", "computed": true }, - "name": { - "name": "name", + "size": { + "name": "size", + "type": "TypeInt", + "optional": true, + "computed": true + }, + "snapshot": { + "name": "snapshot", "type": "TypeString", - "description": "The unique user-defined name for this placement target.", + "immutable": true, + "optional": true, "computed": true }, - "resource_type": { - "name": "resource_type", + "tags": { + "name": "tags", + "type": "TypeSet", + "description": "UserTags for the volume instance", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "volume_id": { + "name": "volume_id", "type": "TypeString", - "description": "The type of resource referenced.", + "description": "The unique identifier for this volume", + "immutable": true, + "optional": true, "computed": true } - } + }, + "max_items": 1 + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true }, { "name": "placement_group", @@ -125473,6 +125436,13 @@ "type": "TypeString" } }, + { + "name": "force_action", + "type": "TypeBool", + "description": "If set to true, the action will be forced immediately, and all queued actions deleted. Ignored for the start action.", + "default_value": false, + "optional": true + }, { "name": "primary_network_interface", "type": "TypeList", @@ -125585,51 +125555,50 @@ "min_items": 1 }, { - "name": "lifecycle_reasons", + "name": "gpu", "type": "TypeList", - "description": "The reasons for the current lifecycle_state (if any).", + "description": "The virtual server instance GPU configuration", "computed": true, "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the reason for this lifecycle state.", + "count": { + "name": "count", + "type": "TypeInt", + "description": "The number of GPUs assigned to the instance", "computed": true }, - "message": { - "name": "message", + "manufacturer": { + "name": "manufacturer", "type": "TypeString", - "description": "An explanation of the reason for this lifecycle state.", + "description": "The GPU manufacturer", "computed": true }, - "more_info": { - "name": "more_info", + "memory": { + "name": "memory", + "type": "TypeInt", + "description": "The overall amount of GPU memory in GiB (gibibytes)", + "computed": true + }, + "model": { + "name": "model", "type": "TypeString", - "description": "Link to documentation about the reason for this lifecycle state.", + "description": "The GPU model", "computed": true } } }, { - "name": "crn", + "name": "resource_name", "type": "TypeString", - "description": "Crn for this Instance", - "cloud_data_type": "crn", + "description": "The name of the resource", "computed": true }, { - "name": "profile", + "name": "crn", "type": "TypeString", - "description": "Profile info", - "optional": true, + "description": "Crn for this Instance", + "cloud_data_type": "crn", "computed": true }, - { - "name": "dedicated_host", - "type": "TypeString", - "description": "Unique Identifier of the Dedicated Host where the instance will be placed", - "optional": true - }, { "name": "access_tags", "type": "TypeSet", @@ -125640,36 +125609,6 @@ "type": "TypeString" } }, - { - "name": "catalog_offering", - "type": "TypeList", - "description": "The catalog offering or offering version to use when provisioning this virtual server instance. If an offering is specified, the latest version of that offering will be used. The specified offering or offering version may be in a different account in the same enterprise, subject to IAM policies.", - "immutable": true, - "optional": true, - "elem": { - "offering_crn": { - "name": "offering_crn", - "type": "TypeString", - "description": "Identifies a catalog offering by a unique CRN property", - "immutable": true, - "optional": true - }, - "version_crn": { - "name": "version_crn", - "type": "TypeString", - "description": "Identifies a version of a catalog offering by a unique CRN property", - "immutable": true, - "optional": true - } - }, - "max_items": 1 - }, - { - "name": "lifecycle_state", - "type": "TypeString", - "description": "The lifecycle state of the virtual server instance.", - "computed": true - }, { "name": "volume_attachments", "type": "TypeList", @@ -125703,180 +125642,194 @@ } }, { - "name": "gpu", + "name": "volumes", + "type": "TypeList", + "description": "List of volumes", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "vcpu", "type": "TypeList", - "description": "The virtual server instance GPU configuration", "computed": true, "elem": { + "architecture": { + "name": "architecture", + "type": "TypeString", + "computed": true + }, "count": { "name": "count", "type": "TypeInt", - "description": "The number of GPUs assigned to the instance", "computed": true }, "manufacturer": { "name": "manufacturer", "type": "TypeString", - "description": "The GPU manufacturer", - "computed": true - }, - "memory": { - "name": "memory", - "type": "TypeInt", - "description": "The overall amount of GPU memory in GiB (gibibytes)", - "computed": true - }, - "model": { - "name": "model", - "type": "TypeString", - "description": "The GPU model", + "description": "The VCPU manufacturer", "computed": true } } }, { - "name": "availability_policy_host_failure", - "type": "TypeString", - "description": "The availability policy to use for this virtual server instance", - "options": "restart, stop", - "optional": true, - "computed": true - }, - { - "name": "zone", - "type": "TypeString", - "description": "Zone name", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "default_trusted_profile_auto_link", - "type": "TypeBool", - "description": "If set to `true`, the system will create a link to the specified `target` trusted profile during instance creation. Regardless of whether a link is created by the system or manually using the IAM Identity service, it will be automatically deleted when the instance is deleted.", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "total_volume_bandwidth", + "name": "numa_count", "type": "TypeInt", - "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes", - "min_value": "500", - "optional": true, + "description": "The number of NUMA nodes this virtual server instance is provisioned on. This property may be absent if the instance's `status` is not `running`.", "computed": true }, { - "name": "bandwidth", - "type": "TypeInt", - "description": "The total bandwidth (in megabits per second) shared across the instance's network interfaces and storage volumes", + "name": "status", + "type": "TypeString", + "description": "instance status", "computed": true }, { - "name": "action", + "name": "lifecycle_state", "type": "TypeString", - "description": "Enables stopping of instance before deleting and waits till deletion is complete", - "options": "stop, start, reboot", - "optional": true + "description": "The lifecycle state of the virtual server instance.", + "computed": true }, { - "name": "image", + "name": "resource_status", "type": "TypeString", - "description": "image id", - "immutable": true, - "optional": true, + "description": "The status of the resource", "computed": true }, { - "name": "vcpu", + "name": "disks", "type": "TypeList", + "description": "Collection of the instance's disks.", "computed": true, "elem": { - "architecture": { - "name": "architecture", + "created_at": { + "name": "created_at", "type": "TypeString", + "description": "The date and time that the disk was created.", "computed": true }, - "count": { - "name": "count", - "type": "TypeInt", + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this instance disk.", "computed": true }, - "manufacturer": { - "name": "manufacturer", + "id": { + "name": "id", "type": "TypeString", - "description": "The VCPU manufacturer", + "description": "The unique identifier for this instance disk.", + "computed": true + }, + "interface_type": { + "name": "interface_type", + "type": "TypeString", + "description": "The disk interface used for attaching the disk.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this disk.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + }, + "size": { + "name": "size", + "type": "TypeInt", + "description": "The size of the disk in GB (gigabytes).", "computed": true } } }, { - "name": "memory", - "type": "TypeInt", - "description": "Instance memory", - "computed": true - }, - { - "name": "status_reasons", + "name": "placement_target", "type": "TypeList", - "description": "The reasons for the current status (if any).", + "description": "The placement restrictions for the virtual server instance.", "computed": true, "elem": { - "code": { - "name": "code", + "crn": { + "name": "crn", "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason", + "description": "The CRN for this placement target.", "computed": true }, - "message": { - "name": "message", + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", "type": "TypeString", - "description": "An explanation of the status reason", + "description": "The URL for this placement target.", "computed": true }, - "more_info": { - "name": "more_info", + "id": { + "name": "id", "type": "TypeString", - "description": "Link to documentation about this status reason", + "description": "The unique identifier for this placement target.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this placement target.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The type of resource referenced.", "computed": true } } }, { - "name": "metadata_service_enabled", - "type": "TypeBool", - "description": "Indicates whether the metadata service endpoint is available to the virtual server instance", - "optional": true, - "computed": true, - "deprecated": "Use metadata_service instead" - }, - { - "name": "vpc", + "name": "default_trusted_profile_target", "type": "TypeString", - "description": "VPC id", + "description": "The unique identifier or CRN of the default IAM trusted profile to use for this virtual server instance.", "immutable": true, - "optional": true, - "computed": true + "optional": true }, { - "name": "instance_template", + "name": "dedicated_host_group", "type": "TypeString", - "description": "Id of the instance template", - "immutable": true, + "description": "Unique Identifier of the Dedicated Host Group where the instance will be placed", "optional": true }, { - "name": "default_trusted_profile_target", + "name": "total_network_bandwidth", + "type": "TypeInt", + "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance network interfaces.", + "computed": true + }, + { + "name": "action", "type": "TypeString", - "description": "The unique identifier or CRN of the default IAM trusted profile to use for this virtual server instance.", - "immutable": true, + "description": "Enables stopping of instance before deleting and waits till deletion is complete", + "options": "stop, start, reboot", "optional": true }, { - "name": "resource_crn", - "type": "TypeString", - "description": "The crn of the resource", - "computed": true + "name": "auto_delete_volume", + "type": "TypeBool", + "description": "Auto delete volume along with instance", + "optional": true }, { "name": "resource_group", @@ -125888,45 +125841,64 @@ "computed": true }, { - "name": "numa_count", - "type": "TypeInt", - "description": "The number of NUMA nodes this virtual server instance is provisioned on. This property may be absent if the instance's `status` is not `running`.", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Instance name", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" - }, - { - "name": "total_network_bandwidth", - "type": "TypeInt", - "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance network interfaces.", - "computed": true + "name": "status_reasons", + "type": "TypeList", + "description": "The reasons for the current status (if any).", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the status reason", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the status reason", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about this status reason", + "computed": true + } + } }, { - "name": "tags", - "type": "TypeSet", - "description": "list of tags for the instance", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, + "name": "lifecycle_reasons", + "type": "TypeList", + "description": "The reasons for the current lifecycle_state (if any).", "computed": true, "elem": { - "type": "TypeString" + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this lifecycle state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this lifecycle state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this lifecycle state.", + "computed": true + } } }, { - "name": "wait_before_delete", - "type": "TypeBool", - "description": "Enables stopping of instance before deleting and waits till deletion is complete", - "default_value": true, - "optional": true + "name": "availability_policy_host_failure", + "type": "TypeString", + "description": "The availability policy to use for this virtual server instance", + "options": "restart, stop", + "optional": true, + "computed": true }, { "name": "network_interfaces", @@ -126029,73 +126001,50 @@ } }, { - "name": "boot_volume", + "name": "memory", + "type": "TypeInt", + "description": "Instance memory", + "computed": true + }, + { + "name": "metadata_service_enabled", + "type": "TypeBool", + "description": "Indicates whether the metadata service endpoint is available to the virtual server instance", + "optional": true, + "computed": true, + "deprecated": "Use metadata_service instead" + }, + { + "name": "metadata_service", "type": "TypeList", + "description": "The metadata service configuration", "optional": true, "computed": true, "elem": { - "auto_delete_volume": { - "name": "auto_delete_volume", + "enabled": { + "name": "enabled", "type": "TypeBool", - "description": "Auto delete boot volume along with instance", - "default_value": true, - "optional": true - }, - "encryption": { - "name": "encryption", - "type": "TypeString", + "description": "Indicates whether the metadata service endpoint will be available to the virtual server instance", "optional": true, "computed": true }, - "iops": { - "name": "iops", - "type": "TypeInt", - "computed": true - }, - "name": { - "name": "name", + "protocol": { + "name": "protocol", "type": "TypeString", + "description": "The communication protocol to use for the metadata service endpoint. Applies only when the metadata service is enabled.", "optional": true, "computed": true }, - "profile": { - "name": "profile", - "type": "TypeString", - "computed": true - }, - "size": { - "name": "size", + "response_hop_limit": { + "name": "response_hop_limit", "type": "TypeInt", - "optional": true, - "computed": true - }, - "snapshot": { - "name": "snapshot", - "type": "TypeString", - "immutable": true, - "optional": true, - "computed": true - }, - "tags": { - "name": "tags", - "type": "TypeSet", - "description": "UserTags for the volume instance", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "volume_id": { - "name": "volume_id", - "type": "TypeString", - "description": "The unique identifier for this volume", - "immutable": true, + "description": "The hop limit (IP time to live) for IP response packets from the metadata service", "optional": true, "computed": true } }, - "max_items": 1 + "max_items": 1, + "min_items": 1 }, { "name": "resource_group_name", @@ -126104,54 +126053,36 @@ "computed": true }, { - "name": "disks", + "name": "catalog_offering", "type": "TypeList", - "description": "Collection of the instance's disks.", - "computed": true, + "description": "The catalog offering or offering version to use when provisioning this virtual server instance. If an offering is specified, the latest version of that offering will be used. The specified offering or offering version may be in a different account in the same enterprise, subject to IAM policies.", + "immutable": true, + "optional": true, "elem": { - "created_at": { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the disk was created.", - "computed": true - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this instance disk.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this instance disk.", - "computed": true - }, - "interface_type": { - "name": "interface_type", - "type": "TypeString", - "description": "The disk interface used for attaching the disk.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.", - "computed": true - }, - "name": { - "name": "name", + "offering_crn": { + "name": "offering_crn", "type": "TypeString", - "description": "The user-defined name for this disk.", - "computed": true + "description": "Identifies a catalog offering by a unique CRN property", + "immutable": true, + "optional": true }, - "resource_type": { - "name": "resource_type", + "version_crn": { + "name": "version_crn", "type": "TypeString", - "description": "The resource type.", - "computed": true - }, - "size": { - "name": "size", - "type": "TypeInt", - "description": "The size of the disk in GB (gigabytes).", - "computed": true + "description": "Identifies a version of a catalog offering by a unique CRN property", + "immutable": true, + "optional": true } - } + }, + "max_items": 1 + }, + { + "name": "image", + "type": "TypeString", + "description": "image id", + "immutable": true, + "optional": true, + "computed": true } ], "ibm_is_instance_action": [ @@ -126239,78 +126170,72 @@ ], "ibm_is_instance_group": [ { - "name": "instance_template", + "name": "name", "type": "TypeString", - "description": "instance template ID", - "required": true + "description": "The user-defined name for this instance group", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, { - "name": "resource_group", + "name": "load_balancer", "type": "TypeString", - "description": "Resource group ID", - "cloud_data_type": "resource_group", - "optional": true, - "computed": true + "description": "load balancer ID", + "optional": true }, { - "name": "application_port", - "type": "TypeInt", - "description": "Used by the instance group when scaling up instances to supply the port for the load balancer pool member.", - "min_value": "1", - "max_value": "65535", + "name": "load_balancer_pool", + "type": "TypeString", + "description": "load balancer pool ID", "optional": true }, { - "name": "subnets", - "type": "TypeList", - "description": "list of subnet IDs", - "required": true, - "elem": { - "type": "TypeString" - } + "name": "vpc", + "type": "TypeString", + "description": "vpc instance", + "computed": true }, { - "name": "load_balancer", + "name": "status", "type": "TypeString", - "description": "load balancer ID", - "optional": true + "description": "Instance group status - deleting, healthy, scaling, unhealthy", + "computed": true }, { - "name": "managers", - "type": "TypeList", - "description": "list of Managers associated with instancegroup", + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "optional": true, "computed": true, "elem": { "type": "TypeString" } }, { - "name": "instances", - "type": "TypeInt", - "description": "number of instances in the intances group", + "name": "resource_group", + "type": "TypeString", + "description": "Resource group ID", + "cloud_data_type": "resource_group", + "optional": true, "computed": true }, { - "name": "instance_count", + "name": "application_port", "type": "TypeInt", - "description": "The number of instances in the instance group", - "default_value": 0, - "min_value": "0", - "max_value": "1000", + "description": "Used by the instance group when scaling up instances to supply the port for the load balancer pool member.", + "min_value": "1", + "max_value": "65535", "optional": true }, { - "name": "crn", - "type": "TypeString", - "description": "The CRN of this instance group", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "description": "Instance group status - deleting, healthy, scaling, unhealthy", - "computed": true + "name": "managers", + "type": "TypeList", + "description": "list of Managers associated with instancegroup", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "tags", @@ -126323,57 +126248,60 @@ "computed": true, "elem": { "type": "TypeString" - } - }, - { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this instance group", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + } }, { - "name": "load_balancer_pool", - "type": "TypeString", - "description": "load balancer pool ID", + "name": "instance_count", + "type": "TypeInt", + "description": "The number of instances in the instance group", + "default_value": 0, + "min_value": "0", + "max_value": "1000", "optional": true }, { - "name": "vpc", + "name": "instance_template", "type": "TypeString", - "description": "vpc instance", + "description": "instance template ID", + "required": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN of this instance group", + "cloud_data_type": "crn", "computed": true }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "optional": true, - "computed": true, + "name": "subnets", + "type": "TypeList", + "description": "list of subnet IDs", + "required": true, "elem": { "type": "TypeString" } + }, + { + "name": "instances", + "type": "TypeInt", + "description": "number of instances in the intances group", + "computed": true } ], "ibm_is_instance_group_manager": [ { - "name": "manager_type", + "name": "instance_group", "type": "TypeString", - "description": "The type of instance group manager.", - "default_value": "autoscale", - "immutable": true, - "options": "autoscale, scheduled", - "optional": true + "description": "instance group ID", + "required": true }, { - "name": "cooldown", + "name": "aggregation_window", "type": "TypeInt", - "description": "The duration of time in seconds to pause further scale actions after scaling has taken place", - "default_value": 300, - "min_value": "120", - "max_value": "3600", + "description": "The time window in seconds to aggregate metrics prior to evaluation", + "default_value": 90, + "min_value": "90", + "max_value": "600", "optional": true }, { @@ -126386,18 +126314,25 @@ "optional": true }, { - "name": "manager_id", - "type": "TypeString", - "description": "instance group manager ID", - "computed": true - }, - { - "name": "policies", + "name": "actions", "type": "TypeList", - "description": "list of Policies associated with instancegroup manager", "computed": true, "elem": { - "type": "TypeString" + "instance_group_manager_action": { + "name": "instance_group_manager_action", + "type": "TypeString", + "computed": true + }, + "instance_group_manager_action_name": { + "name": "instance_group_manager_action_name", + "type": "TypeString", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "computed": true + } } }, { @@ -126417,18 +126352,21 @@ "optional": true }, { - "name": "instance_group", + "name": "manager_type", "type": "TypeString", - "description": "instance group ID", - "required": true + "description": "The type of instance group manager.", + "default_value": "autoscale", + "immutable": true, + "options": "autoscale, scheduled", + "optional": true }, { - "name": "aggregation_window", + "name": "cooldown", "type": "TypeInt", - "description": "The time window in seconds to aggregate metrics prior to evaluation", - "default_value": 90, - "min_value": "90", - "max_value": "600", + "description": "The duration of time in seconds to pause further scale actions after scaling has taken place", + "default_value": 300, + "min_value": "120", + "max_value": "3600", "optional": true }, { @@ -126440,25 +126378,18 @@ "optional": true }, { - "name": "actions", + "name": "manager_id", + "type": "TypeString", + "description": "instance group manager ID", + "computed": true + }, + { + "name": "policies", "type": "TypeList", + "description": "list of Policies associated with instancegroup manager", "computed": true, "elem": { - "instance_group_manager_action": { - "name": "instance_group_manager_action", - "type": "TypeString", - "computed": true - }, - "instance_group_manager_action_name": { - "name": "instance_group_manager_action_name", - "type": "TypeString", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "computed": true - } + "type": "TypeString" } } ], @@ -126473,22 +126404,12 @@ "optional": true }, { - "name": "action_type", - "type": "TypeString", - "description": "The type of action for the instance group.", - "computed": true - }, - { - "name": "next_run_at", - "type": "TypeString", - "description": "The date and time the scheduled action will next run. If empty the system is currently calculating the next run time.", - "computed": true - }, - { - "name": "action_id", - "type": "TypeString", - "description": "Instance group manager action ID", - "computed": true + "name": "max_membership_count", + "type": "TypeInt", + "description": "The maximum number of members in a managed instance group", + "min_value": "1", + "max_value": "1000", + "optional": true }, { "name": "updated_at", @@ -126497,8 +126418,9 @@ "computed": true }, { - "name": "auto_delete", - "type": "TypeBool", + "name": "last_applied_at", + "type": "TypeString", + "description": "The date and time the scheduled action was last applied. If empty the action has never been applied.", "computed": true }, { @@ -126506,18 +126428,6 @@ "type": "TypeInt", "computed": true }, - { - "name": "instance_group", - "type": "TypeString", - "description": "instance group ID", - "required": true - }, - { - "name": "instance_group_manager", - "type": "TypeString", - "description": "Instance group manager ID of type scheduled", - "required": true - }, { "name": "cron_spec", "type": "TypeString", @@ -126528,43 +126438,47 @@ "optional": true }, { - "name": "max_membership_count", + "name": "membership_count", "type": "TypeInt", - "description": "The maximum number of members in a managed instance group", - "min_value": "1", - "max_value": "1000", + "description": "The number of members the instance group should have at the scheduled time.", + "min_value": "0", + "max_value": "100", "optional": true }, { - "name": "target_manager", + "name": "status", "type": "TypeString", - "description": "The unique identifier for this instance group manager of type autoscale.", - "optional": true + "description": "The status of the instance group action- `active`: Action is ready to be run- `completed`: Action was completed successfully- `failed`: Action could not be completed successfully- `incompatible`: Action parameters are not compatible with the group or manager- `omitted`: Action was not applied because this action's manager was disabled.", + "computed": true }, { - "name": "status", + "name": "action_type", "type": "TypeString", - "description": "The status of the instance group action- `active`: Action is ready to be run- `completed`: Action was completed successfully- `failed`: Action could not be completed successfully- `incompatible`: Action parameters are not compatible with the group or manager- `omitted`: Action was not applied because this action's manager was disabled.", + "description": "The type of action for the instance group.", "computed": true }, { - "name": "last_applied_at", + "name": "created_at", "type": "TypeString", - "description": "The date and time the scheduled action was last applied. If empty the action has never been applied.", + "description": "The date and time that the instance group manager action was modified.", "computed": true }, { - "name": "run_at", + "name": "action_id", "type": "TypeString", - "description": "The date and time the scheduled action will run.", - "optional": true + "description": "Instance group manager action ID", + "computed": true }, { - "name": "membership_count", - "type": "TypeInt", - "description": "The number of members the instance group should have at the scheduled time.", - "min_value": "0", - "max_value": "100", + "name": "instance_group_manager", + "type": "TypeString", + "description": "Instance group manager ID of type scheduled", + "required": true + }, + { + "name": "run_at", + "type": "TypeString", + "description": "The date and time the scheduled action will run.", "optional": true }, { @@ -126583,41 +126497,36 @@ "computed": true }, { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", + "name": "auto_delete", + "type": "TypeBool", "computed": true }, { - "name": "created_at", + "name": "instance_group", "type": "TypeString", - "description": "The date and time that the instance group manager action was modified.", - "computed": true - } - ], - "ibm_is_instance_group_manager_policy": [ + "description": "instance group ID", + "required": true + }, { - "name": "policy_type", + "name": "target_manager", "type": "TypeString", - "description": "The type of Policy for the Instance Group", - "required": true, - "options": "target" + "description": "The unique identifier for this instance group manager of type autoscale.", + "optional": true }, { - "name": "policy_id", + "name": "resource_type", "type": "TypeString", - "description": "The Policy ID", + "description": "The resource type.", "computed": true }, { - "name": "name", + "name": "next_run_at", "type": "TypeString", - "description": "instance group manager policy name", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", - "optional": true - }, + "description": "The date and time the scheduled action will next run. If empty the system is currently calculating the next run time.", + "computed": true + } + ], + "ibm_is_instance_group_manager_policy": [ { "name": "instance_group", "type": "TypeString", @@ -126642,23 +126551,51 @@ "type": "TypeInt", "description": "The metric value to be evaluated", "required": true + }, + { + "name": "policy_type", + "type": "TypeString", + "description": "The type of Policy for the Instance Group", + "required": true, + "options": "target" + }, + { + "name": "policy_id", + "type": "TypeString", + "description": "The Policy ID", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "instance group manager policy name", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "optional": true } ], "ibm_is_instance_group_membership": [ { - "name": "instance_group", + "name": "instance_group_membership", "type": "TypeString", - "description": "The instance group identifier.", - "immutable": true, + "description": "The unique identifier for this instance group membership.", "required": true, "min_length": 1, "max_length": 64, "matches": "^[-0-9a-z_]+$" }, { - "name": "instance_group_membership", + "name": "load_balancer_pool_member", "type": "TypeString", - "description": "The unique identifier for this instance group membership.", + "description": "The unique identifier for this load balancer pool member.", + "computed": true + }, + { + "name": "instance_group", + "type": "TypeString", + "description": "The instance group identifier.", + "immutable": true, "required": true, "min_length": 1, "max_length": 64, @@ -126673,37 +126610,6 @@ "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", "optional": true }, - { - "name": "instance_template", - "type": "TypeList", - "computed": true, - "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this instance template.", - "computed": true - }, - "instance_template": { - "name": "instance_template", - "type": "TypeString", - "description": "The unique identifier for this instance template.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this instance template.", - "computed": true - } - } - }, - { - "name": "status", - "type": "TypeString", - "description": "The status of the instance group membership- `deleting`: Membership is deleting dependent resources- `failed`: Membership was unable to maintain dependent resources- `healthy`: Membership is active and serving in the group- `pending`: Membership is waiting for dependent resources- `unhealthy`: Membership has unhealthy dependent resources.", - "computed": true - }, { "name": "action_delete", "type": "TypeBool", @@ -126743,97 +126649,46 @@ } }, { - "name": "load_balancer_pool_member", - "type": "TypeString", - "description": "The unique identifier for this load balancer pool member.", - "computed": true - } - ], - "ibm_is_instance_network_interface": [ - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the network interface was created.", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this network interface.", - "computed": true - }, - { - "name": "subnet", - "type": "TypeString", - "description": "The unique identifier of the subnet.", - "immutable": true, - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this network interface. If unspecified, the name will be a hyphenated list of randomly-selected words.", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" - }, - { - "name": "primary_ip", + "name": "instance_template", "type": "TypeList", - "description": "The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.", - "optional": true, "computed": true, "elem": { - "address": { - "name": "address", + "crn": { + "name": "crn", "type": "TypeString", - "description": "The IP address to reserve, which must not already be reserved on the subnet.", - "immutable": true, - "optional": true, - "computed": true - }, - "auto_delete": { - "name": "auto_delete", - "type": "TypeBool", - "description": "Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.", - "optional": true, + "description": "The CRN for this instance template.", "computed": true }, - "href": { - "name": "href", + "instance_template": { + "name": "instance_template", "type": "TypeString", - "description": "The URL for this reserved IP", + "description": "The unique identifier for this instance template.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The user-defined name for this reserved IP. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the subnet the reserved IP resides in.", - "optional": true, - "computed": true - }, - "reserved_ip": { - "name": "reserved_ip", - "type": "TypeString", - "description": "Identifies a reserved IP by a unique property.", - "optional": true, - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type", + "description": "The unique user-defined name for this instance template.", "computed": true } - }, - "max_items": 1 + } }, { - "name": "network_interface", + "name": "status", "type": "TypeString", - "description": "The globally unique ID of this network interface", + "description": "The status of the instance group membership- `deleting`: Membership is deleting dependent resources- `failed`: Membership was unable to maintain dependent resources- `healthy`: Membership is active and serving in the group- `pending`: Membership is waiting for dependent resources- `unhealthy`: Membership has unhealthy dependent resources.", "computed": true + } + ], + "ibm_is_instance_network_interface": [ + { + "name": "security_groups", + "type": "TypeSet", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "status", @@ -126842,20 +126697,16 @@ "computed": true }, { - "name": "instance", + "name": "created_at", "type": "TypeString", - "description": "The unique identifier of the instance.", - "immutable": true, - "required": true + "description": "The date and time that the network interface was created.", + "computed": true }, { - "name": "security_groups", - "type": "TypeSet", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "floating_ip", + "type": "TypeString", + "description": "The ID of the floating IP to attach to this network interface", + "optional": true }, { "name": "floating_ips", @@ -126915,6 +126766,83 @@ "description": "The type of this network interface as it relates to an instance.", "computed": true }, + { + "name": "instance", + "type": "TypeString", + "description": "The unique identifier of the instance.", + "immutable": true, + "required": true + }, + { + "name": "subnet", + "type": "TypeString", + "description": "The unique identifier of the subnet.", + "immutable": true, + "required": true + }, + { + "name": "primary_ip", + "type": "TypeList", + "description": "The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.", + "optional": true, + "computed": true, + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "The IP address to reserve, which must not already be reserved on the subnet.", + "immutable": true, + "optional": true, + "computed": true + }, + "auto_delete": { + "name": "auto_delete", + "type": "TypeBool", + "description": "Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.", + "optional": true, + "computed": true + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this reserved IP", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this reserved IP. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the subnet the reserved IP resides in.", + "optional": true, + "computed": true + }, + "reserved_ip": { + "name": "reserved_ip", + "type": "TypeString", + "description": "Identifies a reserved IP by a unique property.", + "optional": true, + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type", + "computed": true + } + }, + "max_items": 1 + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this network interface.", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + }, { "name": "allow_ip_spoofing", "type": "TypeBool", @@ -126922,6 +126850,15 @@ "default_value": false, "optional": true }, + { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this network interface. If unspecified, the name will be a hyphenated list of randomly-selected words.", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + }, { "name": "primary_ipv4_address", "type": "TypeString", @@ -126933,54 +126870,42 @@ "deprecated": "primary_ipv4_address is deprecated and support will be removed. Use primary_ip instead" }, { - "name": "floating_ip", + "name": "network_interface", "type": "TypeString", - "description": "The ID of the floating IP to attach to this network interface", - "optional": true + "description": "The globally unique ID of this network interface", + "computed": true }, { "name": "port_speed", "type": "TypeInt", "description": "The network interface port speed in Mbps.", "computed": true - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", - "computed": true } ], "ibm_is_instance_network_interface_floating_ip": [ { - "name": "instance", - "type": "TypeString", - "description": "Instance identifier", - "immutable": true, - "required": true - }, - { - "name": "floating_ip", + "name": "address", "type": "TypeString", - "description": "The floating ip identifier of the network interface associated with the Instance", - "required": true + "description": "Floating IP address", + "computed": true }, { - "name": "name", + "name": "crn", "type": "TypeString", - "description": "Name of the floating IP", + "description": "Floating IP crn", + "cloud_data_type": "crn", "computed": true }, { - "name": "address", + "name": "status", "type": "TypeString", - "description": "Floating IP address", + "description": "Floating IP status", "computed": true }, { - "name": "status", + "name": "zone", "type": "TypeString", - "description": "Floating IP status", + "description": "Zone name", "computed": true }, { @@ -126990,11 +126915,11 @@ "computed": true }, { - "name": "crn", + "name": "instance", "type": "TypeString", - "description": "Floating IP crn", - "cloud_data_type": "crn", - "computed": true + "description": "Instance identifier", + "immutable": true, + "required": true }, { "name": "network_interface", @@ -127004,81 +126929,67 @@ "required": true }, { - "name": "zone", + "name": "floating_ip", "type": "TypeString", - "description": "Zone name", + "description": "The floating ip identifier of the network interface associated with the Instance", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Name of the floating IP", "computed": true } ], "ibm_is_instance_template": [ { - "name": "metadata_service", + "name": "dedicated_host", + "type": "TypeString", + "description": "Unique Identifier of the Dedicated Host where the instance will be placed", + "immutable": true, + "optional": true + }, + { + "name": "placement_group", + "type": "TypeString", + "description": "Unique Identifier of the Placement Group for restricting the placement of the instance", + "immutable": true, + "optional": true + }, + { + "name": "catalog_offering", "type": "TypeList", - "description": "The metadata service configuration", + "description": "The catalog offering or offering version to use when provisioning this virtual server instance template. If an offering is specified, the latest version of that offering will be used. The specified offering or offering version may be in a different account in the same enterprise, subject to IAM policies.", + "immutable": true, "optional": true, - "computed": true, "elem": { - "enabled": { - "name": "enabled", - "type": "TypeBool", - "description": "Indicates whether the metadata service endpoint will be available to the virtual server instance", - "immutable": true, - "optional": true, - "computed": true - }, - "protocol": { - "name": "protocol", + "offering_crn": { + "name": "offering_crn", "type": "TypeString", - "description": "The communication protocol to use for the metadata service endpoint. Applies only when the metadata service is enabled.", + "description": "Identifies a catalog offering by a unique CRN property", "immutable": true, - "optional": true, - "computed": true + "optional": true }, - "response_hop_limit": { - "name": "response_hop_limit", - "type": "TypeInt", - "description": "The hop limit (IP time to live) for IP response packets from the metadata service", + "version_crn": { + "name": "version_crn", + "type": "TypeString", + "description": "Identifies a version of a catalog offering by a unique CRN property", "immutable": true, - "optional": true, - "computed": true + "optional": true } }, - "max_items": 1, - "min_items": 1 - }, - { - "name": "zone", - "type": "TypeString", - "description": "Zone name", - "immutable": true, - "required": true - }, - { - "name": "keys", - "type": "TypeSet", - "description": "SSH key Ids for the instance template", - "required": true, - "elem": { - "type": "TypeString" - } + "max_items": 1 }, { - "name": "boot_volume", + "name": "network_interfaces", "type": "TypeList", "optional": true, - "computed": true, "elem": { - "delete_volume_on_instance_delete": { - "name": "delete_volume_on_instance_delete", + "allow_ip_spoofing": { + "name": "allow_ip_spoofing", "type": "TypeBool", - "optional": true, - "computed": true - }, - "encryption": { - "name": "encryption", - "type": "TypeString", - "optional": true, - "computed": true + "default_value": false, + "optional": true }, "name": { "name": "name", @@ -127086,43 +126997,110 @@ "optional": true, "computed": true }, - "profile": { - "name": "profile", - "type": "TypeString", - "computed": true + "primary_ip": { + "name": "primary_ip", + "type": "TypeList", + "description": "The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.", + "optional": true, + "computed": true, + "elem": { + "address": { + "name": "address", + "type": "TypeString", + "description": "The IP address to reserve, which must not already be reserved on the subnet.", + "immutable": true, + "optional": true, + "computed": true + }, + "auto_delete": { + "name": "auto_delete", + "type": "TypeBool", + "description": "Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.", + "immutable": true, + "optional": true, + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this reserved IP. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the subnet the reserved IP resides in.", + "immutable": true, + "optional": true, + "computed": true + }, + "reserved_ip": { + "name": "reserved_ip", + "type": "TypeString", + "description": "Identifies a reserved IP by a unique property.", + "immutable": true, + "optional": true, + "computed": true + } + }, + "max_items": 1 }, - "size": { - "name": "size", - "type": "TypeInt", - "computed": true + "primary_ipv4_address": { + "name": "primary_ipv4_address", + "type": "TypeString", + "optional": true, + "computed": true, + "deprecated": "primary_ipv4_address is deprecated and support will be removed. Use primary_ip instead" }, - "tags": { - "name": "tags", + "security_groups": { + "name": "security_groups", "type": "TypeSet", - "description": "UserTags for the volume instance", "optional": true, "computed": true, "elem": { "type": "TypeString" } + }, + "subnet": { + "name": "subnet", + "type": "TypeString", + "immutable": true, + "required": true } - }, - "max_items": 1 + } }, { - "name": "dedicated_host", + "name": "crn", "type": "TypeString", - "description": "Unique Identifier of the Dedicated Host where the instance will be placed", + "description": "The CRN for the instance", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "vpc", + "type": "TypeString", + "description": "VPC id", "immutable": true, - "optional": true + "required": true }, { - "name": "dedicated_host_group", + "name": "profile", "type": "TypeString", - "description": "Unique Identifier of the Dedicated Host Group where the instance will be placed", + "description": "Profile info", + "immutable": true, + "required": true + }, + { + "name": "total_volume_bandwidth", + "type": "TypeInt", + "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes", "immutable": true, + "min_value": "500", "optional": true }, + { + "name": "keys", + "type": "TypeSet", + "description": "SSH key Ids for the instance template", + "required": true, + "elem": { + "type": "TypeString" + } + }, { "name": "volume_attachments", "type": "TypeList", @@ -127199,107 +127177,92 @@ } }, { - "name": "availability_policy_host_failure", - "type": "TypeString", - "description": "The availability policy to use for this virtual server instance", - "immutable": true, - "options": "restart, stop", - "optional": true, - "computed": true - }, - { - "name": "vpc", - "type": "TypeString", - "description": "VPC id", - "immutable": true, - "required": true - }, - { - "name": "profile", - "type": "TypeString", - "description": "Profile info", - "immutable": true, - "required": true - }, - { - "name": "default_trusted_profile_target", + "name": "user_data", "type": "TypeString", - "description": "The unique identifier or CRN of the default IAM trusted profile to use for this virtual server instance.", - "immutable": true, - "optional": true - }, - { - "name": "total_volume_bandwidth", - "type": "TypeInt", - "description": "The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes", + "description": "User data given for the instance", "immutable": true, - "min_value": "500", "optional": true }, { - "name": "catalog_offering", + "name": "boot_volume", "type": "TypeList", - "description": "The catalog offering or offering version to use when provisioning this virtual server instance template. If an offering is specified, the latest version of that offering will be used. The specified offering or offering version may be in a different account in the same enterprise, subject to IAM policies.", - "immutable": true, "optional": true, + "computed": true, "elem": { - "offering_crn": { - "name": "offering_crn", + "delete_volume_on_instance_delete": { + "name": "delete_volume_on_instance_delete", + "type": "TypeBool", + "optional": true, + "computed": true + }, + "encryption": { + "name": "encryption", "type": "TypeString", - "description": "Identifies a catalog offering by a unique CRN property", - "immutable": true, - "optional": true + "optional": true, + "computed": true }, - "version_crn": { - "name": "version_crn", + "name": { + "name": "name", "type": "TypeString", - "description": "Identifies a version of a catalog offering by a unique CRN property", - "immutable": true, - "optional": true + "optional": true, + "computed": true + }, + "profile": { + "name": "profile", + "type": "TypeString", + "computed": true + }, + "size": { + "name": "size", + "type": "TypeInt", + "computed": true + }, + "tags": { + "name": "tags", + "type": "TypeSet", + "description": "UserTags for the volume instance", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } } }, "max_items": 1 }, { - "name": "user_data", + "name": "availability_policy_host_failure", "type": "TypeString", - "description": "User data given for the instance", + "description": "The availability policy to use for this virtual server instance", "immutable": true, - "optional": true + "options": "restart, stop", + "optional": true, + "computed": true }, { - "name": "placement_target", - "type": "TypeList", - "description": "The placement restrictions for the virtual server instance.", - "computed": true, - "elem": { - "crn": { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this placement target.", - "computed": true - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this placement target.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this placement target.", - "computed": true - } - } + "name": "name", + "type": "TypeString", + "description": "Instance Template name", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "optional": true }, { - "name": "default_trusted_profile_auto_link", + "name": "metadata_service_enabled", "type": "TypeBool", - "description": "If set to `true`, the system will create a link to the specified `target` trusted profile during instance creation. Regardless of whether a link is created by the system or manually using the IAM Identity service, it will be automatically deleted when the instance is deleted.", + "description": "Indicates whether the metadata service endpoint is available to the virtual server instance", "immutable": true, "optional": true, - "computed": true + "computed": true, + "deprecated": "Use metadata_service instead" + }, + { + "name": "zone", + "type": "TypeString", + "description": "Zone name", + "immutable": true, + "required": true }, { "name": "primary_network_interface", @@ -127388,213 +127351,179 @@ "min_items": 1 }, { - "name": "network_interfaces", - "type": "TypeList", + "name": "resource_group", + "type": "TypeString", + "description": "Instance template resource group", + "cloud_data_type": "resource_group", + "immutable": true, "optional": true, + "computed": true + }, + { + "name": "placement_target", + "type": "TypeList", + "description": "The placement restrictions for the virtual server instance.", + "computed": true, "elem": { - "allow_ip_spoofing": { - "name": "allow_ip_spoofing", - "type": "TypeBool", - "default_value": false, - "optional": true - }, - "name": { - "name": "name", + "crn": { + "name": "crn", "type": "TypeString", - "optional": true, + "description": "The CRN for this placement target.", "computed": true }, - "primary_ip": { - "name": "primary_ip", - "type": "TypeList", - "description": "The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.", - "optional": true, - "computed": true, - "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "The IP address to reserve, which must not already be reserved on the subnet.", - "immutable": true, - "optional": true, - "computed": true - }, - "auto_delete": { - "name": "auto_delete", - "type": "TypeBool", - "description": "Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.", - "immutable": true, - "optional": true, - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this reserved IP. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the subnet the reserved IP resides in.", - "immutable": true, - "optional": true, - "computed": true - }, - "reserved_ip": { - "name": "reserved_ip", - "type": "TypeString", - "description": "Identifies a reserved IP by a unique property.", - "immutable": true, - "optional": true, - "computed": true - } - }, - "max_items": 1 - }, - "primary_ipv4_address": { - "name": "primary_ipv4_address", + "href": { + "name": "href", "type": "TypeString", - "optional": true, - "computed": true, - "deprecated": "primary_ipv4_address is deprecated and support will be removed. Use primary_ip instead" - }, - "security_groups": { - "name": "security_groups", - "type": "TypeSet", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "description": "The URL for this placement target.", + "computed": true }, - "subnet": { - "name": "subnet", + "id": { + "name": "id", "type": "TypeString", - "immutable": true, - "required": true + "description": "The unique identifier for this placement target.", + "computed": true } } }, { - "name": "image", - "type": "TypeString", - "description": "image name", - "immutable": true, - "optional": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Instance Template name", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", - "optional": true + "name": "metadata_service", + "type": "TypeList", + "description": "The metadata service configuration", + "optional": true, + "computed": true, + "elem": { + "enabled": { + "name": "enabled", + "type": "TypeBool", + "description": "Indicates whether the metadata service endpoint will be available to the virtual server instance", + "immutable": true, + "optional": true, + "computed": true + }, + "protocol": { + "name": "protocol", + "type": "TypeString", + "description": "The communication protocol to use for the metadata service endpoint. Applies only when the metadata service is enabled.", + "immutable": true, + "optional": true, + "computed": true + }, + "response_hop_limit": { + "name": "response_hop_limit", + "type": "TypeInt", + "description": "The hop limit (IP time to live) for IP response packets from the metadata service", + "immutable": true, + "optional": true, + "computed": true + } + }, + "max_items": 1, + "min_items": 1 }, { - "name": "metadata_service_enabled", + "name": "default_trusted_profile_auto_link", "type": "TypeBool", - "description": "Indicates whether the metadata service endpoint is available to the virtual server instance", + "description": "If set to `true`, the system will create a link to the specified `target` trusted profile during instance creation. Regardless of whether a link is created by the system or manually using the IAM Identity service, it will be automatically deleted when the instance is deleted.", "immutable": true, "optional": true, - "computed": true, - "deprecated": "Use metadata_service instead" + "computed": true }, { - "name": "placement_group", + "name": "default_trusted_profile_target", "type": "TypeString", - "description": "Unique Identifier of the Placement Group for restricting the placement of the instance", + "description": "The unique identifier or CRN of the default IAM trusted profile to use for this virtual server instance.", "immutable": true, "optional": true }, { - "name": "crn", + "name": "dedicated_host_group", "type": "TypeString", - "description": "The CRN for the instance", - "cloud_data_type": "crn", - "computed": true + "description": "Unique Identifier of the Dedicated Host Group where the instance will be placed", + "immutable": true, + "optional": true }, { - "name": "resource_group", + "name": "image", "type": "TypeString", - "description": "Instance template resource group", - "cloud_data_type": "resource_group", + "description": "image name", "immutable": true, - "optional": true, - "computed": true + "optional": true } ], "ibm_is_instance_volume_attachment": [ { - "name": "volume_attachment_id", - "type": "TypeString", - "description": "The unique identifier for this volume attachment", + "name": "iops", + "type": "TypeInt", + "description": "The maximum I/O operations per second (IOPS) for the volume.", + "optional": true, "computed": true }, { - "name": "delete_volume_on_instance_delete", - "type": "TypeBool", - "description": "If set to true, when deleting the instance the volume will also be deleted.", + "name": "snapshot", + "type": "TypeString", + "description": "The snapshot of the volume to be attached", + "immutable": true, "optional": true, "computed": true }, { - "name": "delete_volume_on_attachment_delete", - "type": "TypeBool", - "description": "If set to true, when deleting the attachment, the volume will also be deleted. Default value for this true.", - "default_value": true, - "optional": true + "name": "version", + "type": "TypeString", + "computed": true }, { - "name": "volume_href", + "name": "instance", "type": "TypeString", - "description": "The URL for this volume", - "computed": true + "description": "Instance id", + "immutable": true, + "required": true }, { - "name": "href", + "name": "volume_attachment_id", "type": "TypeString", - "description": "The URL for this volume attachment", + "description": "The unique identifier for this volume attachment", "computed": true }, { - "name": "iops", + "name": "capacity", "type": "TypeInt", - "description": "The maximum I/O operations per second (IOPS) for the volume.", + "description": "The capacity of the volume in gigabytes. The specified minimum and maximum capacity values for creating or updating volumes may expand in the future.", + "min_value": "10", + "max_value": "16000", "optional": true, "computed": true }, { - "name": "volume_name", + "name": "encryption_key", "type": "TypeString", - "description": "The unique user-defined name for this volume", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "description": "The CRN of the [Key Protect Root Key](https://cloud.ibm.com/docs/key-protect?topic=key-protect-getting-started-tutorial) or [Hyper Protect Crypto Service Root Key](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started) for this resource.", + "immutable": true, "optional": true, "computed": true }, { - "name": "snapshot", + "name": "volume_crn", "type": "TypeString", - "description": "The snapshot of the volume to be attached", - "immutable": true, - "optional": true, + "description": "The CRN for this volume", "computed": true }, { - "name": "volume_deleted", + "name": "device", "type": "TypeString", - "description": "Link to documentation about deleted resources", + "description": "A unique identifier for the device which is exposed to the instance operating system", "computed": true }, { - "name": "type", + "name": "status", "type": "TypeString", - "description": "The type of volume attachment one of [ boot, data ]", + "description": "The status of this volume attachment, one of [ attached, attaching, deleting, detaching ]", "computed": true }, { - "name": "instance", + "name": "type", "type": "TypeString", - "description": "Instance id", - "immutable": true, - "required": true + "description": "The type of volume attachment one of [ boot, data ]", + "computed": true }, { "name": "name", @@ -127607,26 +127536,19 @@ "computed": true }, { - "name": "volume", - "type": "TypeString", - "description": "Instance id", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "profile", - "type": "TypeString", - "description": "The globally unique name for the volume profile to use for this volume.", - "options": "general-purpose, 5iops-tier, 10iops-tier, custom", + "name": "delete_volume_on_instance_delete", + "type": "TypeBool", + "description": "If set to true, when deleting the instance the volume will also be deleted.", "optional": true, "computed": true }, { - "name": "encryption_key", + "name": "volume_name", "type": "TypeString", - "description": "The CRN of the [Key Protect Root Key](https://cloud.ibm.com/docs/key-protect?topic=key-protect-getting-started-tutorial) or [Hyper Protect Crypto Service Root Key](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started) for this resource.", - "immutable": true, + "description": "The unique user-defined name for this volume", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", "optional": true, "computed": true }, @@ -127644,64 +127566,48 @@ } }, { - "name": "capacity", - "type": "TypeInt", - "description": "The capacity of the volume in gigabytes. The specified minimum and maximum capacity values for creating or updating volumes may expand in the future.", - "min_value": "10", - "max_value": "16000", - "optional": true, + "name": "volume_deleted", + "type": "TypeString", + "description": "Link to documentation about deleted resources", "computed": true }, { - "name": "volume_crn", + "name": "href", "type": "TypeString", - "description": "The CRN for this volume", + "description": "The URL for this volume attachment", "computed": true }, { - "name": "device", + "name": "delete_volume_on_attachment_delete", + "type": "TypeBool", + "description": "If set to true, when deleting the attachment, the volume will also be deleted. Default value for this true.", + "default_value": true, + "optional": true + }, + { + "name": "volume", "type": "TypeString", - "description": "A unique identifier for the device which is exposed to the instance operating system", + "description": "Instance id", + "immutable": true, + "optional": true, "computed": true }, { - "name": "status", + "name": "profile", "type": "TypeString", - "description": "The status of this volume attachment, one of [ attached, attaching, deleting, detaching ]", + "description": "The globally unique name for the volume profile to use for this volume.", + "options": "general-purpose, 5iops-tier, 10iops-tier, custom", + "optional": true, "computed": true }, { - "name": "version", + "name": "volume_href", "type": "TypeString", + "description": "The URL for this volume", "computed": true } ], "ibm_is_ipsec_policy": [ - { - "name": "name", - "type": "TypeString", - "description": "IPSEC name", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "Resource group info", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "key_lifetime", - "type": "TypeInt", - "description": "IPSEC key lifetime", - "default_value": 3600, - "optional": true - }, { "name": "vpn_connections", "type": "TypeList", @@ -127737,18 +127643,18 @@ "computed": true }, { - "name": "authentication_algorithm", + "name": "encryption_algorithm", "type": "TypeString", - "description": "Authentication alorothm", + "description": "Encryption algorithm", "required": true, - "options": "md5, sha1, sha256, sha512, sha384, disabled" + "options": "triple_des, aes128, aes256, aes128gcm16, aes192gcm16, aes256gcm16" }, { - "name": "encryption_algorithm", + "name": "authentication_algorithm", "type": "TypeString", - "description": "Encryption algorithm", + "description": "Authentication alorothm", "required": true, - "options": "triple_des, aes128, aes256, aes128gcm16, aes192gcm16, aes256gcm16" + "options": "md5, sha1, sha256, sha512, sha384, disabled" }, { "name": "pfs", @@ -127757,6 +127663,22 @@ "required": true, "options": "disabled, group_2, group_5, group_14, group_19, group_15, group_16, group_17, group_18, group_20, group_21, group_22, group_23, group_24, group_31" }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource group info", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "key_lifetime", + "type": "TypeInt", + "description": "IPSEC key lifetime", + "default_value": 3600, + "optional": true + }, { "name": "encapsulation_mode", "type": "TypeString", @@ -127775,6 +127697,15 @@ "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, + { + "name": "name", + "type": "TypeString", + "description": "IPSEC name", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + }, { "name": "resource_group_name", "type": "TypeString", @@ -127783,6 +127714,15 @@ } ], "ibm_is_lb": [ + { + "name": "profile", + "type": "TypeString", + "description": "The profile to use for this load balancer.", + "immutable": true, + "options": "network-fixed", + "optional": true, + "computed": true + }, { "name": "access_tags", "type": "TypeSet", @@ -127794,21 +127734,22 @@ } }, { - "name": "name", + "name": "route_mode", + "type": "TypeBool", + "description": "Indicates whether route mode is enabled for this load balancer", + "default_value": false, + "immutable": true, + "optional": true + }, + { + "name": "hostname", "type": "TypeString", - "description": "Load Balancer name", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + "computed": true }, { - "name": "public_ips", - "type": "TypeList", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "status", + "type": "TypeString", + "computed": true }, { "name": "private_ips", @@ -127857,9 +127798,26 @@ } }, { - "name": "security_groups", + "name": "security_group_supported", + "type": "TypeBool", + "description": "Security Group Supported for this Load Balancer", + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Load Balancer type", + "default_value": "public", + "immutable": true, + "options": "public, private", + "optional": true + }, + { + "name": "tags", "type": "TypeSet", - "description": "Load Balancer securitygroups list", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", "optional": true, "computed": true, "elem": { @@ -127873,41 +127831,39 @@ "computed": true }, { - "name": "status", - "type": "TypeString", - "computed": true - }, - { - "name": "operating_status", + "name": "resource_group_name", "type": "TypeString", + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "security_group_supported", - "type": "TypeBool", - "description": "Security Group Supported for this Load Balancer", - "computed": true + "name": "security_groups", + "type": "TypeSet", + "description": "Load Balancer securitygroups list", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "profile", + "name": "resource_group", "type": "TypeString", - "description": "The profile to use for this load balancer.", + "cloud_data_type": "resource_group", "immutable": true, - "options": "network-fixed", "optional": true, "computed": true }, { - "name": "route_mode", - "type": "TypeBool", - "description": "Indicates whether route mode is enabled for this load balancer", - "default_value": false, - "immutable": true, - "optional": true + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true }, { - "name": "version", + "name": "resource_name", "type": "TypeString", + "description": "The name of the resource", "computed": true }, { @@ -127932,52 +127888,6 @@ "max_items": 1, "min_items": 1 }, - { - "name": "tags", - "type": "TypeSet", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, - { - "name": "logging", - "type": "TypeBool", - "description": "Logging of Load Balancer", - "default_value": false, - "optional": true - }, - { - "name": "type", - "type": "TypeString", - "description": "Load Balancer type", - "default_value": "public", - "immutable": true, - "options": "public, private", - "optional": true - }, { "name": "crn", "type": "TypeString", @@ -127985,6 +127895,14 @@ "cloud_data_type": "crn", "computed": true }, + { + "name": "public_ips", + "type": "TypeList", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "subnets", "type": "TypeSet", @@ -127997,27 +127915,44 @@ "min_items": 1 }, { - "name": "resource_group", + "name": "version", "type": "TypeString", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, "computed": true }, { - "name": "hostname", + "name": "name", + "type": "TypeString", + "description": "Load Balancer name", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + }, + { + "name": "operating_status", "type": "TypeString", "computed": true + }, + { + "name": "logging", + "type": "TypeBool", + "description": "Logging of Load Balancer", + "default_value": false, + "optional": true } ], "ibm_is_lb_listener": [ { - "name": "idle_connection_timeout", - "type": "TypeInt", - "description": "idle connection timeout of listener", - "min_value": "50", - "max_value": "7200", - "optional": true, + "name": "lb", + "type": "TypeString", + "description": "Loadbalancer listener ID", + "immutable": true, + "required": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Loadbalancer listener status", "computed": true }, { @@ -128035,41 +127970,30 @@ "computed": true }, { - "name": "protocol", - "type": "TypeString", - "description": "Loadbalancer protocol", - "required": true, - "options": "https, http, tcp, udp" - }, - { - "name": "listener_id", - "type": "TypeString", - "computed": true - }, - { - "name": "lb", + "name": "certificate_instance", "type": "TypeString", - "description": "Loadbalancer listener ID", - "immutable": true, - "required": true + "description": "certificate instance for the Loadbalancer", + "optional": true }, { - "name": "connection_limit", + "name": "https_redirect_status_code", "type": "TypeInt", - "description": "Connection limit for Loadbalancer", + "description": "The HTTP status code to be returned in the redirect response", "optional": true }, { - "name": "related_crn", + "name": "default_pool", "type": "TypeString", - "description": "The crn of the LB resource", + "description": "Loadbalancer default pool info", + "optional": true, "computed": true }, { - "name": "certificate_instance", + "name": "protocol", "type": "TypeString", - "description": "certificate instance for the Loadbalancer", - "optional": true + "description": "Loadbalancer protocol", + "required": true, + "options": "https, http, tcp, udp" }, { "name": "accept_proxy_protocol", @@ -128079,22 +128003,29 @@ "computed": true }, { - "name": "https_redirect_listener", + "name": "https_redirect_uri", "type": "TypeString", - "description": "ID of the listener that will be set as http redirect target", + "description": "Target URI where traffic will be redirected", "optional": true }, { - "name": "default_pool", + "name": "listener_id", "type": "TypeString", - "description": "Loadbalancer default pool info", - "optional": true, "computed": true }, { - "name": "status", + "name": "related_crn", "type": "TypeString", - "description": "Loadbalancer listener status", + "description": "The crn of the LB resource", + "computed": true + }, + { + "name": "idle_connection_timeout", + "type": "TypeInt", + "description": "idle connection timeout of listener", + "min_value": "50", + "max_value": "7200", + "optional": true, "computed": true }, { @@ -128105,31 +128036,31 @@ "computed": true }, { - "name": "https_redirect_status_code", - "type": "TypeInt", - "description": "The HTTP status code to be returned in the redirect response", + "name": "https_redirect_listener", + "type": "TypeString", + "description": "ID of the listener that will be set as http redirect target", "optional": true }, { - "name": "https_redirect_uri", - "type": "TypeString", - "description": "Target URI where traffic will be redirected", + "name": "connection_limit", + "type": "TypeInt", + "description": "Connection limit for Loadbalancer", "optional": true } ], "ibm_is_lb_listener_policy": [ + { + "name": "provisioning_status", + "type": "TypeString", + "description": "Listner Policy status", + "computed": true + }, { "name": "target_https_redirect_uri", "type": "TypeString", "description": "Target URI where traffic will be redirected", "optional": true }, - { - "name": "priority", - "type": "TypeInt", - "description": "Listener Policy Priority", - "required": true - }, { "name": "name", "type": "TypeString", @@ -128140,20 +128071,6 @@ "optional": true, "computed": true }, - { - "name": "target_https_redirect_status_code", - "type": "TypeInt", - "description": "The HTTP status code to be returned in the redirect response", - "optional": true - }, - { - "name": "action", - "type": "TypeString", - "description": "Policy Action", - "immutable": true, - "required": true, - "options": "forward, redirect, reject, https_redirect" - }, { "name": "rules", "type": "TypeList", @@ -128194,9 +128111,36 @@ } }, { - "name": "target_id", + "name": "policy_id", "type": "TypeString", - "description": "Listener Policy Target ID", + "description": "Listener Policy ID", + "computed": true + }, + { + "name": "listener", + "type": "TypeString", + "description": "Listener ID", + "immutable": true, + "required": true + }, + { + "name": "action", + "type": "TypeString", + "description": "Policy Action", + "immutable": true, + "required": true, + "options": "forward, redirect, reject, https_redirect" + }, + { + "name": "priority", + "type": "TypeInt", + "description": "Listener Policy Priority", + "required": true + }, + { + "name": "target_url", + "type": "TypeString", + "description": "Policy Target URL", "optional": true }, { @@ -128218,12 +128162,6 @@ "description": "ID of the listener that will be set as http redirect target", "optional": true }, - { - "name": "policy_id", - "type": "TypeString", - "description": "Listener Policy ID", - "computed": true - }, { "name": "target_http_status_code", "type": "TypeInt", @@ -128231,38 +128169,19 @@ "optional": true }, { - "name": "provisioning_status", - "type": "TypeString", - "description": "Listner Policy status", - "computed": true - }, - { - "name": "listener", - "type": "TypeString", - "description": "Listener ID", - "immutable": true, - "required": true + "name": "target_https_redirect_status_code", + "type": "TypeInt", + "description": "The HTTP status code to be returned in the redirect response", + "optional": true }, { - "name": "target_url", + "name": "target_id", "type": "TypeString", - "description": "Policy Target URL", + "description": "Listener Policy Target ID", "optional": true } ], "ibm_is_lb_listener_policy_rule": [ - { - "name": "provisioning_status", - "type": "TypeString", - "computed": true - }, - { - "name": "listener", - "type": "TypeString", - "description": "Listener ID.", - "immutable": true, - "required": true - }, { "name": "policy", "type": "TypeString", @@ -128271,15 +128190,16 @@ "required": true }, { - "name": "field", + "name": "type", "type": "TypeString", - "optional": true + "description": "Policy rule type.", + "required": true, + "options": "header, hostname, path, body, query" }, { - "name": "value", + "name": "field", "type": "TypeString", - "description": "policy rule value info", - "required": true + "optional": true }, { "name": "rule", @@ -128287,9 +128207,8 @@ "computed": true }, { - "name": "related_crn", + "name": "provisioning_status", "type": "TypeString", - "description": "The crn of the LB resource", "computed": true }, { @@ -128299,6 +128218,13 @@ "immutable": true, "required": true }, + { + "name": "listener", + "type": "TypeString", + "description": "Listener ID.", + "immutable": true, + "required": true + }, { "name": "condition", "type": "TypeString", @@ -128307,83 +128233,83 @@ "options": "contains, equals, matches_regex" }, { - "name": "type", + "name": "value", "type": "TypeString", - "description": "Policy rule type.", - "required": true, - "options": "header, hostname, path, body, query" + "description": "policy rule value info", + "required": true + }, + { + "name": "related_crn", + "type": "TypeString", + "description": "The crn of the LB resource", + "computed": true } ], "ibm_is_lb_pool": [ { - "name": "protocol", + "name": "pool_id", "type": "TypeString", - "description": "Load Balancer Protocol", - "required": true, - "options": "http, tcp, https, udp" + "description": "The LB Pool id", + "computed": true }, { - "name": "session_persistence_type", + "name": "related_crn", "type": "TypeString", - "description": "Load Balancer Pool session persisence type.", - "options": "source_ip, app_cookie, http_cookie", - "optional": true + "description": "The crn of the LB resource", + "computed": true }, { - "name": "session_persistence_app_cookie_name", + "name": "name", "type": "TypeString", - "description": "Load Balancer Pool session persisence app cookie name.", + "description": "Load Balancer Pool name", + "required": true, "min_length": 1, "max_length": 63, - "matches": "^[-A-Za-z0-9!#$%\u0026'*+.^_`~|]+$", - "optional": true + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, { - "name": "session_persistence_http_cookie_name", + "name": "algorithm", "type": "TypeString", - "description": "Load Balancer Pool session persisence http cookie name.", - "computed": true - }, - { - "name": "health_retries", - "type": "TypeInt", - "description": "Load Balancer health retry count", - "required": true + "description": "Load Balancer Pool algorithm", + "required": true, + "options": "round_robin, weighted_round_robin, least_connections" }, { - "name": "health_type", + "name": "protocol", "type": "TypeString", - "description": "Load Balancer health type", + "description": "Load Balancer Protocol", "required": true, "options": "http, tcp, https, udp" }, { - "name": "provisioning_status", - "type": "TypeString", - "description": "Status of the LB Pool", - "computed": true + "name": "health_timeout", + "type": "TypeInt", + "description": "Load Balancer health timeout interval", + "required": true }, { - "name": "related_crn", + "name": "proxy_protocol", "type": "TypeString", - "description": "The crn of the LB resource", + "description": "PROXY protocol setting for this pool", + "options": "disabled, v1, v2", + "optional": true, "computed": true }, { - "name": "health_monitor_port", - "type": "TypeInt", - "description": "Health monitor Port the LB Pool", + "name": "health_monitor_url", + "type": "TypeString", + "description": "Health monitor URL of LB Pool", "optional": true, "computed": true }, { - "name": "name", + "name": "session_persistence_app_cookie_name", "type": "TypeString", - "description": "Load Balancer Pool name", - "required": true, + "description": "Load Balancer Pool session persisence app cookie name.", "min_length": 1, "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + "matches": "^[-A-Za-z0-9!#$%\u0026'*+.^_`~|]+$", + "optional": true }, { "name": "lb", @@ -128399,41 +128325,59 @@ "required": true }, { - "name": "health_timeout", + "name": "health_type", + "type": "TypeString", + "description": "Load Balancer health type", + "required": true, + "options": "http, tcp, https, udp" + }, + { + "name": "health_retries", "type": "TypeInt", - "description": "Load Balancer health timeout interval", + "description": "Load Balancer health retry count", "required": true }, { - "name": "health_monitor_url", - "type": "TypeString", - "description": "Health monitor URL of LB Pool", + "name": "health_monitor_port", + "type": "TypeInt", + "description": "Health monitor Port the LB Pool", "optional": true, "computed": true }, { - "name": "algorithm", + "name": "session_persistence_type", "type": "TypeString", - "description": "Load Balancer Pool algorithm", - "required": true, - "options": "round_robin, weighted_round_robin, least_connections" + "description": "Load Balancer Pool session persisence type.", + "options": "source_ip, app_cookie, http_cookie", + "optional": true }, { - "name": "proxy_protocol", + "name": "session_persistence_http_cookie_name", "type": "TypeString", - "description": "PROXY protocol setting for this pool", - "options": "disabled, v1, v2", - "optional": true, + "description": "Load Balancer Pool session persisence http cookie name.", "computed": true }, { - "name": "pool_id", + "name": "provisioning_status", "type": "TypeString", - "description": "The LB Pool id", + "description": "Status of the LB Pool", "computed": true } ], "ibm_is_lb_pool_member": [ + { + "name": "related_crn", + "type": "TypeString", + "description": "The crn of the LB resource", + "computed": true + }, + { + "name": "pool", + "type": "TypeString", + "description": "Loadblancer Poold ID", + "immutable": true, + "required": true + }, { "name": "port", "type": "TypeInt", @@ -128448,15 +128392,10 @@ "computed": true }, { - "name": "href", - "type": "TypeString", - "description": "LB pool member Href value", - "computed": true - }, - { - "name": "provisioning_status", + "name": "target_id", "type": "TypeString", - "description": "Load balancer Pool member provisioning status", + "description": "Load balancer pool member target id", + "optional": true, "computed": true }, { @@ -128465,19 +128404,6 @@ "description": "LB Pool member health", "computed": true }, - { - "name": "related_crn", - "type": "TypeString", - "description": "The crn of the LB resource", - "computed": true - }, - { - "name": "pool", - "type": "TypeString", - "description": "Loadblancer Poold ID", - "immutable": true, - "required": true - }, { "name": "lb", "type": "TypeString", @@ -128485,13 +128411,6 @@ "immutable": true, "required": true }, - { - "name": "target_id", - "type": "TypeString", - "description": "Load balancer pool member target id", - "optional": true, - "computed": true - }, { "name": "weight", "type": "TypeInt", @@ -128500,32 +128419,21 @@ "max_value": "100", "optional": true, "computed": true - } - ], - "ibm_is_network_acl": [ - { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } }, { - "name": "crn", + "name": "provisioning_status", "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", + "description": "Load balancer Pool member provisioning status", "computed": true }, { - "name": "resource_controller_url", + "name": "href", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "LB pool member Href value", "computed": true - }, + } + ], + "ibm_is_network_acl": [ { "name": "resource_crn", "type": "TypeString", @@ -128669,6 +128577,42 @@ } } }, + { + "name": "vpc", + "type": "TypeString", + "description": "Network ACL VPC name", + "immutable": true, + "optional": true + }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The crn of the resource", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true + }, { "name": "name", "type": "TypeString", @@ -128679,13 +128623,6 @@ "optional": true, "computed": true }, - { - "name": "vpc", - "type": "TypeString", - "description": "Network ACL VPC name", - "immutable": true, - "optional": true - }, { "name": "resource_group", "type": "TypeString", @@ -128707,28 +128644,9 @@ "elem": { "type": "TypeString" } - }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true } ], "ibm_is_network_acl_rule": [ - { - "name": "source", - "type": "TypeString", - "description": "The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.", - "required": true - }, - { - "name": "direction", - "type": "TypeString", - "description": "Direction of traffic to enforce, either inbound or outbound", - "required": true, - "options": "inbound, outbound" - }, { "name": "tcp", "type": "TypeList", @@ -128767,41 +128685,16 @@ "max_items": 1 }, { - "name": "udp", - "type": "TypeList", - "immutable": true, - "optional": true, - "elem": { - "port_max": { - "name": "port_max", - "type": "TypeInt", - "description": "The highest port in the range of ports to be matched", - "default_value": 65535, - "optional": true - }, - "port_min": { - "name": "port_min", - "type": "TypeInt", - "description": "The lowest port in the range of ports to be matched", - "default_value": 1, - "optional": true - }, - "source_port_max": { - "name": "source_port_max", - "type": "TypeInt", - "description": "The highest port in the range of ports to be matched", - "default_value": 65535, - "optional": true - }, - "source_port_min": { - "name": "source_port_min", - "type": "TypeInt", - "description": "The lowest port in the range of ports to be matched", - "default_value": 1, - "optional": true - } - }, - "max_items": 1 + "name": "source", + "type": "TypeString", + "description": "The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.", + "required": true + }, + { + "name": "destination", + "type": "TypeString", + "description": "The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.", + "required": true }, { "name": "network_acl", @@ -128813,6 +128706,19 @@ "max_length": 63, "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, + { + "name": "href", + "type": "TypeString", + "description": "The url of the rule.", + "computed": true + }, + { + "name": "action", + "type": "TypeString", + "description": "Whether to allow or deny matching traffic", + "required": true, + "options": "allow, deny" + }, { "name": "ip_version", "type": "TypeString", @@ -128820,10 +128726,11 @@ "computed": true }, { - "name": "destination", + "name": "direction", "type": "TypeString", - "description": "The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.", - "required": true + "description": "Direction of traffic to enforce, either inbound or outbound", + "required": true, + "options": "inbound, outbound" }, { "name": "icmp", @@ -128853,10 +128760,9 @@ "computed": true }, { - "name": "before", + "name": "protocol", "type": "TypeString", - "description": "The rule that this rule is immediately before. If absent, this is the last rule.", - "optional": true, + "description": "The protocol of the rule.", "computed": true }, { @@ -128869,22 +128775,47 @@ "optional": true }, { - "name": "action", - "type": "TypeString", - "description": "Whether to allow or deny matching traffic", - "required": true, - "options": "allow, deny" - }, - { - "name": "protocol", - "type": "TypeString", - "description": "The protocol of the rule.", - "computed": true + "name": "udp", + "type": "TypeList", + "immutable": true, + "optional": true, + "elem": { + "port_max": { + "name": "port_max", + "type": "TypeInt", + "description": "The highest port in the range of ports to be matched", + "default_value": 65535, + "optional": true + }, + "port_min": { + "name": "port_min", + "type": "TypeInt", + "description": "The lowest port in the range of ports to be matched", + "default_value": 1, + "optional": true + }, + "source_port_max": { + "name": "source_port_max", + "type": "TypeInt", + "description": "The highest port in the range of ports to be matched", + "default_value": 65535, + "optional": true + }, + "source_port_min": { + "name": "source_port_min", + "type": "TypeInt", + "description": "The lowest port in the range of ports to be matched", + "default_value": 1, + "optional": true + } + }, + "max_items": 1 }, { - "name": "href", + "name": "before", "type": "TypeString", - "description": "The url of the rule.", + "description": "The rule that this rule is immediately before. If absent, this is the last rule.", + "optional": true, "computed": true } ], @@ -128917,12 +128848,6 @@ "description": "The lifecycle state of the placement group.", "computed": true }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type.", - "computed": true - }, { "name": "strategy", "type": "TypeString", @@ -128958,64 +128883,8 @@ "type": "TypeSet", "description": "List of access management tags", "min_length": 1, - "max_length": 128, - "matches": "^([ ]*[A-Za-z0-9:_.-]+[ ]*)+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this placement group.", - "computed": true - } - ], - "ibm_is_public_gateway": [ - { - "name": "floating_ip", - "type": "TypeMap", - "optional": true, - "computed": true - }, - { - "name": "vpc", - "type": "TypeString", - "description": "Public gateway VPC info", - "immutable": true, - "required": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "resource_status", - "type": "TypeString", - "description": "The status of the resource", - "computed": true - }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, - { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", + "max_length": 128, + "matches": "^([ ]*[A-Za-z0-9:_.-]+[ ]*)+$", "optional": true, "computed": true, "elem": { @@ -129023,11 +128892,19 @@ } }, { - "name": "resource_crn", + "name": "href", "type": "TypeString", - "description": "The crn of the resource", + "description": "The URL for this placement group.", "computed": true }, + { + "name": "resource_type", + "type": "TypeString", + "description": "The resource type.", + "computed": true + } + ], + "ibm_is_public_gateway": [ { "name": "name", "type": "TypeString", @@ -129043,6 +128920,30 @@ "description": "Public gateway instance status", "computed": true }, + { + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true + }, + { + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", + "computed": true + }, + { + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true + }, + { + "name": "floating_ip", + "type": "TypeMap", + "optional": true, + "computed": true + }, { "name": "resource_group", "type": "TypeString", @@ -129059,6 +128960,32 @@ "immutable": true, "required": true }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true + }, + { + "name": "vpc", + "type": "TypeString", + "description": "Public gateway VPC info", + "immutable": true, + "required": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The crn of the resource", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "resource_status", + "type": "TypeString", + "description": "The status of the resource", + "computed": true + }, { "name": "tags", "type": "TypeSet", @@ -129073,13 +129000,23 @@ } }, { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } } ], "ibm_is_security_group": [ + { + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", + "computed": true + }, { "name": "name", "type": "TypeString", @@ -129090,13 +129027,6 @@ "optional": true, "computed": true }, - { - "name": "vpc", - "type": "TypeString", - "description": "Security group's resource group id", - "immutable": true, - "required": true - }, { "name": "tags", "type": "TypeSet", @@ -129161,12 +129091,34 @@ } } }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource Group ID", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true + }, { "name": "resource_name", "type": "TypeString", "description": "The name of the resource", "computed": true }, + { + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true + }, + { + "name": "vpc", + "type": "TypeString", + "description": "Security group's resource group id", + "immutable": true, + "required": true + }, { "name": "access_tags", "type": "TypeSet", @@ -129184,35 +129136,28 @@ "cloud_data_type": "crn", "computed": true }, - { - "name": "resource_group", - "type": "TypeString", - "description": "Resource Group ID", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true - }, { "name": "resource_controller_url", "type": "TypeString", "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true - }, + } + ], + "ibm_is_security_group_rule": [ { - "name": "resource_crn", + "name": "direction", "type": "TypeString", - "description": "The crn of the resource", - "computed": true + "description": "Direction of traffic to enforce, either inbound or outbound", + "required": true, + "options": "inbound, outbound" }, { - "name": "resource_group_name", + "name": "remote", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "Security group id: an IP address, a CIDR block, or a single security group identifier", + "optional": true, "computed": true - } - ], - "ibm_is_security_group_rule": [ + }, { "name": "tcp", "type": "TypeList", @@ -129236,55 +129181,6 @@ "max_items": 1, "min_items": 1 }, - { - "name": "udp", - "type": "TypeList", - "description": "protocol=udp", - "immutable": true, - "optional": true, - "elem": { - "port_max": { - "name": "port_max", - "type": "TypeInt", - "default_value": 65535, - "optional": true - }, - "port_min": { - "name": "port_min", - "type": "TypeInt", - "default_value": 1, - "optional": true - } - }, - "max_items": 1, - "min_items": 1 - }, - { - "name": "related_crn", - "type": "TypeString", - "description": "The crn of the Security Group", - "computed": true - }, - { - "name": "rule_id", - "type": "TypeString", - "description": "Rule id", - "computed": true - }, - { - "name": "direction", - "type": "TypeString", - "description": "Direction of traffic to enforce, either inbound or outbound", - "required": true, - "options": "inbound, outbound" - }, - { - "name": "remote", - "type": "TypeString", - "description": "Security group id: an IP address, a CIDR block, or a single security group identifier", - "optional": true, - "computed": true - }, { "name": "protocol", "type": "TypeString", @@ -129298,6 +129194,12 @@ "immutable": true, "required": true }, + { + "name": "rule_id", + "type": "TypeString", + "description": "Rule id", + "computed": true + }, { "name": "ip_version", "type": "TypeString", @@ -129326,9 +129228,51 @@ }, "max_items": 1, "min_items": 1 + }, + { + "name": "udp", + "type": "TypeList", + "description": "protocol=udp", + "immutable": true, + "optional": true, + "elem": { + "port_max": { + "name": "port_max", + "type": "TypeInt", + "default_value": 65535, + "optional": true + }, + "port_min": { + "name": "port_min", + "type": "TypeInt", + "default_value": 1, + "optional": true + } + }, + "max_items": 1, + "min_items": 1 + }, + { + "name": "related_crn", + "type": "TypeString", + "description": "The crn of the Security Group", + "computed": true } ], "ibm_is_security_group_target": [ + { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this Security group target", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "Resource Type", + "computed": true + }, { "name": "security_group", "type": "TypeString", @@ -129354,22 +129298,61 @@ "type": "TypeString", "description": "Security group target name", "computed": true + } + ], + "ibm_is_share": [ + { + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "crn", "type": "TypeString", - "description": "The CRN for this Security group target", + "description": "The CRN for this share.", "cloud_data_type": "crn", "computed": true }, { - "name": "resource_type", + "name": "href", "type": "TypeString", - "description": "Resource Type", + "description": "The URL for this share.", "computed": true - } - ], - "ibm_is_share": [ + }, + { + "name": "encryption_key", + "type": "TypeString", + "description": "The CRN of the key to use for encrypting this file share.If no encryption key is provided, the share will not be encrypted.", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "iops", + "type": "TypeInt", + "description": "The maximum input/output operation performance bandwidth per second for the file share.", + "min_value": "100", + "max_value": "96000", + "optional": true, + "computed": true + }, + { + "name": "replication_role", + "type": "TypeString", + "description": "The replication role of the file share.* `none`: This share is not participating in replication.* `replica`: This share is a replication target.* `source`: This share is a replication source.", + "computed": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "The lifecycle state of the file share.", + "computed": true + }, { "name": "zone", "type": "TypeString", @@ -129378,15 +129361,61 @@ "required": true }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "optional": true, + "name": "replication_status_reasons", + "type": "TypeList", + "description": "The reasons for the current replication status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", "computed": true, "elem": { - "type": "TypeString" + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the status reason.", + "required": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the status reason.", + "required": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about this status reason.", + "optional": true + } } }, + { + "name": "last_sync_at", + "type": "TypeString", + "description": "The date and time that the file share was last synchronized to its replica.This property will be present when the `replication_role` is `source`.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the file share is created.", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "The unique identifier of the resource group to use. If unspecified, the account's [default resourcegroup](https://cloud.ibm.com/apidocs/resource-manager#introduction) is used.", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "size", + "type": "TypeInt", + "description": "The size of the file share rounded up to the next gigabyte.", + "min_value": "10", + "max_value": "32000", + "optional": true, + "computed": true + }, { "name": "mount_targets", "type": "TypeList", @@ -129546,13 +129575,13 @@ } }, { - "name": "iops", - "type": "TypeInt", - "description": "The maximum input/output operation performance bandwidth per second for the file share.", - "min_value": "100", - "max_value": "96000", - "optional": true, - "computed": true + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this file share. If unspecified, the name will be a hyphenated list of randomly-selected words.", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$" }, { "name": "replication_cron_spec", @@ -129561,124 +129590,12 @@ "optional": true, "computed": true }, - { - "name": "replication_role", - "type": "TypeString", - "description": "The replication role of the file share.* `none`: This share is not participating in replication.* `replica`: This share is a replication target.* `source`: This share is a replication source.", - "computed": true - }, - { - "name": "latest_job", - "type": "TypeList", - "description": "The latest job associated with this file share.This property will be absent if no jobs have been created for this file share.", - "computed": true, - "elem": { - "status": { - "name": "status", - "type": "TypeString", - "description": "The status of the file share job.The enumerated values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the file share job on which the unexpected property value was encountered.* `cancelled`: This job has been cancelled.* `failed`: This job has failed.* `queued`: This job is queued.* `running`: This job is running.* `succeeded`: This job completed successfully.", - "computed": true - }, - "status_reasons": { - "name": "status_reasons", - "type": "TypeList", - "description": "The reasons for the file share job status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the status reason.", - "computed": true - }, - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about this status reason.", - "computed": true - } - } - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The type of the file share job.The enumerated values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the file share job on which the unexpected property value was encountered.* `replication_failover`: This is a share replication failover job.* `replication_init`: This is a share replication is initialization job.* `replication_split`: This is a share replication split job.* `replication_sync`: This is a share replication synchronization job.", - "computed": true - } - } - }, - { - "name": "profile", - "type": "TypeString", - "description": "The globally unique name for this share profile.", - "required": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the file share is created.", - "computed": true - }, - { - "name": "lifecycle_state", - "type": "TypeString", - "description": "The lifecycle state of the file share.", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this share.", - "cloud_data_type": "crn", - "computed": true - }, { "name": "encryption", "type": "TypeString", "description": "The type of encryption used for this file share.", "computed": true }, - { - "name": "resource_group", - "type": "TypeString", - "description": "The unique identifier of the resource group to use. If unspecified, the account's [default resourcegroup](https://cloud.ibm.com/apidocs/resource-manager#introduction) is used.", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "access_control_mode", - "type": "TypeString", - "description": "The access control mode for the share:", - "optional": true, - "computed": true - }, - { - "name": "source_share", - "type": "TypeString", - "description": "The ID of the source file share for this replica file share. The specified file share must not already have a replica, and must not be a replica.", - "immutable": true, - "optional": true - }, - { - "name": "replication_status", - "type": "TypeString", - "description": "The replication status of the file share.* `initializing`: This share is initializing replication.* `active`: This share is actively participating in replication.* `failover_pending`: This share is performing a replication failover.* `split_pending`: This share is performing a replication split.* `none`: This share is not participating in replication.* `degraded`: This share's replication sync is degraded.* `sync_pending`: This share is performing a replication sync.", - "computed": true - }, - { - "name": "last_sync_at", - "type": "TypeString", - "description": "The date and time that the file share was last synchronized to its replica.This property will be present when the `replication_role` is `source`.", - "computed": true - }, { "name": "resource_type", "type": "TypeString", @@ -129686,100 +129603,10 @@ "computed": true }, { - "name": "replication_status_reasons", - "type": "TypeList", - "description": "The reasons for the current replication status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason.", - "required": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the status reason.", - "required": true - }, - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about this status reason.", - "optional": true - } - } - }, - { - "name": "tags", - "type": "TypeSet", - "description": "User Tags for the file share", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "href", - "type": "TypeString", - "description": "The URL for this share.", - "computed": true - }, - { - "name": "encryption_key", - "type": "TypeString", - "description": "The CRN of the key to use for encrypting this file share.If no encryption key is provided, the share will not be encrypted.", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "initial_owner", - "type": "TypeList", - "description": "The owner assigned to the file share at creation.", - "immutable": true, - "optional": true, - "elem": { - "gid": { - "name": "gid", - "type": "TypeInt", - "description": "The initial group identifier for the file share.", - "immutable": true, - "optional": true - }, - "uid": { - "name": "uid", - "type": "TypeInt", - "description": "The initial user identifier for the file share.", - "immutable": true, - "optional": true - } - }, - "max_items": 1, - "min_items": 1 - }, - { - "name": "size", - "type": "TypeInt", - "description": "The size of the file share rounded up to the next gigabyte.", - "min_value": "10", - "max_value": "32000", - "optional": true, - "computed": true - }, - { - "name": "name", + "name": "profile", "type": "TypeString", - "description": "The unique user-defined name for this file share. If unspecified, the name will be a hyphenated list of randomly-selected words.", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$" + "description": "The globally unique name for this share profile.", + "required": true }, { "name": "replica_share", @@ -130048,15 +129875,126 @@ } }, "max_items": 1 + }, + { + "name": "replication_status", + "type": "TypeString", + "description": "The replication status of the file share.* `initializing`: This share is initializing replication.* `active`: This share is actively participating in replication.* `failover_pending`: This share is performing a replication failover.* `split_pending`: This share is performing a replication split.* `none`: This share is not participating in replication.* `degraded`: This share's replication sync is degraded.* `sync_pending`: This share is performing a replication sync.", + "computed": true + }, + { + "name": "latest_job", + "type": "TypeList", + "description": "The latest job associated with this file share.This property will be absent if no jobs have been created for this file share.", + "computed": true, + "elem": { + "status": { + "name": "status", + "type": "TypeString", + "description": "The status of the file share job.The enumerated values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the file share job on which the unexpected property value was encountered.* `cancelled`: This job has been cancelled.* `failed`: This job has failed.* `queued`: This job is queued.* `running`: This job is running.* `succeeded`: This job completed successfully.", + "computed": true + }, + "status_reasons": { + "name": "status_reasons", + "type": "TypeList", + "description": "The reasons for the file share job status (if any).The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the status reason.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the status reason.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about this status reason.", + "computed": true + } + } + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The type of the file share job.The enumerated values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the file share job on which the unexpected property value was encountered.* `replication_failover`: This is a share replication failover job.* `replication_init`: This is a share replication is initialization job.* `replication_split`: This is a share replication split job.* `replication_sync`: This is a share replication synchronization job.", + "computed": true + } + } + }, + { + "name": "tags", + "type": "TypeSet", + "description": "User Tags for the file share", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "initial_owner", + "type": "TypeList", + "description": "The owner assigned to the file share at creation.", + "immutable": true, + "optional": true, + "elem": { + "gid": { + "name": "gid", + "type": "TypeInt", + "description": "The initial group identifier for the file share.", + "immutable": true, + "optional": true + }, + "uid": { + "name": "uid", + "type": "TypeInt", + "description": "The initial user identifier for the file share.", + "immutable": true, + "optional": true + } + }, + "max_items": 1, + "min_items": 1 + }, + { + "name": "access_control_mode", + "type": "TypeString", + "description": "The access control mode for the share:", + "optional": true, + "computed": true + }, + { + "name": "source_share", + "type": "TypeString", + "description": "The ID of the source file share for this replica file share. The specified file share must not already have a replica, and must not be a replica.", + "immutable": true, + "optional": true } ], "ibm_is_share_mount_target": [ { - "name": "mount_path", + "name": "resource_type", "type": "TypeString", - "description": "The mount path for the share.The IP addresses used in the mount path are currently within the IBM services IP range, but are expected to change to be within one of the VPC's subnets in the future.", + "description": "The type of resource referenced.", "computed": true }, + { + "name": "share", + "type": "TypeString", + "description": "The file share identifier.", + "immutable": true, + "required": true + }, { "name": "name", "type": "TypeString", @@ -130067,17 +130005,9 @@ "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$" }, { - "name": "transit_encryption", - "type": "TypeString", - "description": "The transit encryption mode.", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "lifecycle_state", + "name": "access_control_mode", "type": "TypeString", - "description": "The lifecycle state of the mount target.", + "description": "The access control mode for the share", "computed": true }, { @@ -130093,12 +130023,6 @@ "description": "The unique identifier of this target", "computed": true }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the share target was created.", - "computed": true - }, { "name": "href", "type": "TypeString", @@ -130106,22 +130030,11 @@ "computed": true }, { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced.", - "computed": true - }, - { - "name": "share", + "name": "transit_encryption", "type": "TypeString", - "description": "The file share identifier.", + "description": "The transit encryption mode.", "immutable": true, - "required": true - }, - { - "name": "access_control_mode", - "type": "TypeString", - "description": "The access control mode for the share", + "optional": true, "computed": true }, { @@ -130239,25 +130152,27 @@ }, "max_items": 1, "min_items": 1 - } - ], - "ibm_is_share_replica_operations": [ + }, { - "name": "share_replica", + "name": "created_at", "type": "TypeString", - "description": "The file share identifier.", - "immutable": true, - "required": true + "description": "The date and time that the share target was created.", + "computed": true }, { - "name": "fallback_policy", + "name": "lifecycle_state", "type": "TypeString", - "description": "The action to take if the failover request is accepted but cannot be performed or times out", - "default_value": "fail", - "immutable": true, - "options": "fail, split", - "optional": true + "description": "The lifecycle state of the mount target.", + "computed": true }, + { + "name": "mount_path", + "type": "TypeString", + "description": "The mount path for the share.The IP addresses used in the mount path are currently within the IBM services IP range, but are expected to change to be within one of the VPC's subnets in the future.", + "computed": true + } + ], + "ibm_is_share_replica_operations": [ { "name": "timeout", "type": "TypeInt", @@ -130273,9 +130188,32 @@ "default_value": false, "immutable": true, "optional": true + }, + { + "name": "share_replica", + "type": "TypeString", + "description": "The file share identifier.", + "immutable": true, + "required": true + }, + { + "name": "fallback_policy", + "type": "TypeString", + "description": "The action to take if the failover request is accepted but cannot be performed or times out", + "default_value": "fail", + "immutable": true, + "options": "fail, split", + "optional": true } ], "ibm_is_snapshot": [ + { + "name": "source_snapshot_crn", + "type": "TypeString", + "description": "Source Snapshot CRN", + "immutable": true, + "optional": true + }, { "name": "copies", "type": "TypeList", @@ -130348,20 +130286,6 @@ } } }, - { - "name": "source_volume", - "type": "TypeString", - "description": "Snapshot source volume", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "lifecycle_state", - "type": "TypeString", - "description": "Snapshot lifecycle state", - "computed": true - }, { "name": "crn", "type": "TypeString", @@ -130370,26 +130294,69 @@ "computed": true }, { - "name": "minimum_capacity", - "type": "TypeInt", - "description": "Minimum capacity of the snapshot", - "computed": true - }, - { - "name": "size", - "type": "TypeInt", - "description": "The size of the snapshot", + "name": "href", + "type": "TypeString", + "description": "URL for the snapshot", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "Snapshot name", + "name": "tags", + "type": "TypeSet", + "description": "User Tags for the snapshot", "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "backup_policy_plan", + "type": "TypeList", + "description": "If present, the backup policy plan which created this snapshot.", + "computed": true, + "elem": { + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and provides some supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", + "type": "TypeString", + "description": "The URL for this backup policy plan.", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "The unique identifier for this backup policy plan.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this backup policy plan.", + "computed": true + }, + "resource_type": { + "name": "resource_type", + "type": "TypeString", + "description": "The type of resource referenced", + "computed": true + } + } }, { "name": "source_snapshot", @@ -130464,16 +130431,23 @@ } }, { - "name": "bootable", - "type": "TypeBool", - "description": "Indicates if a boot volume attachment can be created with a volume created from this snapshot", + "name": "source_volume", + "type": "TypeString", + "description": "Snapshot source volume", + "immutable": true, + "optional": true, "computed": true }, { - "name": "encryption_key", + "name": "lifecycle_state", "type": "TypeString", - "description": "A reference to the root key used to wrap the data encryption key for the source volume.", - "optional": true, + "description": "Snapshot lifecycle state", + "computed": true + }, + { + "name": "minimum_capacity", + "type": "TypeInt", + "description": "Minimum capacity of the snapshot", "computed": true }, { @@ -130483,78 +130457,41 @@ "computed": true }, { - "name": "clones", - "type": "TypeSet", - "description": "Zones for creating the snapshot clone", + "name": "name", + "type": "TypeString", + "description": "Snapshot name", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", "optional": true, - "elem": { - "type": "TypeString" - } + "computed": true }, { - "name": "source_snapshot_crn", + "name": "source_image", "type": "TypeString", - "description": "Source Snapshot CRN", - "immutable": true, - "optional": true + "description": "If present, the image id from which the data on this volume was most directly provisioned.", + "computed": true }, { - "name": "tags", - "type": "TypeSet", - "description": "User Tags for the snapshot", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", + "name": "encryption_key", + "type": "TypeString", + "description": "A reference to the root key used to wrap the data encryption key for the source volume.", "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "computed": true }, { - "name": "backup_policy_plan", - "type": "TypeList", - "description": "If present, the backup policy plan which created this snapshot.", - "computed": true, + "name": "size", + "type": "TypeInt", + "description": "The size of the snapshot", + "computed": true + }, + { + "name": "clones", + "type": "TypeSet", + "description": "Zones for creating the snapshot clone", + "optional": true, "elem": { - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and provides some supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this backup policy plan.", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "The unique identifier for this backup policy plan.", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The unique user-defined name for this backup policy plan.", - "computed": true - }, - "resource_type": { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced", - "computed": true - } + "type": "TypeString" } }, { @@ -130566,12 +130503,6 @@ "optional": true, "computed": true }, - { - "name": "source_image", - "type": "TypeString", - "description": "If present, the image id from which the data on this volume was most directly provisioned.", - "computed": true - }, { "name": "operating_system", "type": "TypeString", @@ -130579,15 +130510,15 @@ "computed": true }, { - "name": "encryption", - "type": "TypeString", - "description": "Encryption type of the snapshot", + "name": "bootable", + "type": "TypeBool", + "description": "Indicates if a boot volume attachment can be created with a volume created from this snapshot", "computed": true }, { - "name": "href", + "name": "encryption", "type": "TypeString", - "description": "URL for the snapshot", + "description": "Encryption type of the snapshot", "computed": true }, { @@ -130602,15 +130533,6 @@ } ], "ibm_is_ssh_key": [ - { - "name": "resource_group", - "type": "TypeString", - "description": "Resource group ID", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true - }, { "name": "resource_controller_url", "type": "TypeString", @@ -130623,12 +130545,6 @@ "description": "The name of the resource", "computed": true }, - { - "name": "resource_crn", - "type": "TypeString", - "description": "The crn of the resource", - "computed": true - }, { "name": "resource_group_name", "type": "TypeString", @@ -130646,42 +130562,44 @@ } }, { - "name": "tags", - "type": "TypeSet", - "description": "List of tags for SSH key", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", + "name": "type", + "type": "TypeString", + "description": "Key type", "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "computed": true }, { - "name": "public_key", + "name": "length", + "type": "TypeInt", + "description": "SSH key Length", + "computed": true + }, + { + "name": "resource_group", "type": "TypeString", - "description": "SSH Public key data", + "description": "Resource group ID", + "cloud_data_type": "resource_group", "immutable": true, - "required": true + "optional": true, + "computed": true }, { - "name": "type", - "type": "TypeString", - "description": "Key type", + "name": "tags", + "type": "TypeSet", + "description": "List of tags for SSH key", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "fingerprint", + "name": "resource_crn", "type": "TypeString", - "description": "SSH key Fingerprint info", - "computed": true - }, - { - "name": "length", - "type": "TypeInt", - "description": "SSH key Length", + "description": "The crn of the resource", "computed": true }, { @@ -130699,16 +130617,42 @@ "min_length": 1, "max_length": 63, "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + }, + { + "name": "public_key", + "type": "TypeString", + "description": "SSH Public key data", + "immutable": true, + "required": true + }, + { + "name": "fingerprint", + "type": "TypeString", + "description": "SSH key Fingerprint info", + "computed": true } ], "ibm_is_subnet": [ { - "name": "routing_table", + "name": "crn", "type": "TypeString", - "description": "routing table id that is associated with the subnet", + "description": "The crn of the resource", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "network_acl", + "type": "TypeString", + "description": "The network ACL for this subnet", "optional": true, "computed": true }, + { + "name": "status", + "type": "TypeString", + "description": "The status of the subnet", + "computed": true + }, { "name": "ipv4_cidr_block", "type": "TypeString", @@ -130717,6 +130661,12 @@ "optional": true, "computed": true }, + { + "name": "available_ipv4_address_count", + "type": "TypeInt", + "description": "The number of IPv4 addresses in this subnet that are not in-use, and have not been reserved by the user or the provider.", + "computed": true + }, { "name": "total_ipv4_address_count", "type": "TypeInt", @@ -130726,13 +130676,17 @@ "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "Subnet name", - "required": true, + "name": "tags", + "type": "TypeSet", + "description": "List of tags", "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "access_tags", @@ -130748,83 +130702,68 @@ } }, { - "name": "crn", - "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "network_acl", + "name": "resource_controller_url", "type": "TypeString", - "description": "The network ACL for this subnet", - "optional": true, + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { - "name": "vpc", + "name": "ip_version", "type": "TypeString", - "description": "VPC instance ID", + "description": "The IP version(s) to support for this subnet.", + "default_value": "ipv4", "immutable": true, - "required": true + "optional": true }, { - "name": "resource_group_name", + "name": "resource_name", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "The name of the resource", "computed": true }, { - "name": "tags", - "type": "TypeSet", - "description": "List of tags", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "zone", + "name": "vpc", "type": "TypeString", - "description": "Subnet zone info", + "description": "VPC instance ID", "immutable": true, "required": true }, { - "name": "resource_controller_url", + "name": "resource_group", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "The resource group for this subnet", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, "computed": true }, { - "name": "status", + "name": "routing_table", "type": "TypeString", - "description": "The status of the subnet", + "description": "routing table id that is associated with the subnet", + "optional": true, "computed": true }, { - "name": "resource_name", + "name": "resource_status", "type": "TypeString", - "description": "The name of the resource", + "description": "The status of the resource", "computed": true }, { - "name": "available_ipv4_address_count", - "type": "TypeInt", - "description": "The number of IPv4 addresses in this subnet that are not in-use, and have not been reserved by the user or the provider.", + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "ip_version", + "name": "name", "type": "TypeString", - "description": "The IP version(s) to support for this subnet.", - "default_value": "ipv4", - "immutable": true, - "optional": true + "description": "Subnet name", + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, { "name": "public_gateway", @@ -130834,28 +130773,45 @@ "computed": true }, { - "name": "resource_group", + "name": "zone", "type": "TypeString", - "description": "The resource group for this subnet", - "cloud_data_type": "resource_group", + "description": "Subnet zone info", "immutable": true, - "optional": true, - "computed": true + "required": true }, { "name": "resource_crn", "type": "TypeString", "description": "The crn of the resource", "computed": true + } + ], + "ibm_is_subnet_network_acl_attachment": [ + { + "name": "network_acl", + "type": "TypeString", + "description": "The unique identifier of network ACL", + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Network ACL name", + "computed": true }, { - "name": "resource_status", + "name": "crn", "type": "TypeString", - "description": "The status of the resource", + "description": "The crn for this Network ACL", + "cloud_data_type": "crn", "computed": true - } - ], - "ibm_is_subnet_network_acl_attachment": [ + }, + { + "name": "vpc", + "type": "TypeString", + "description": "Network ACL VPC", + "computed": true + }, { "name": "resource_group", "type": "TypeString", @@ -130999,40 +130955,40 @@ "description": "The subnet identifier", "immutable": true, "required": true + } + ], + "ibm_is_subnet_public_gateway_attachment": [ + { + "name": "name", + "type": "TypeString", + "description": "Name of the Public gateway instance", + "computed": true }, { - "name": "network_acl", + "name": "status", "type": "TypeString", - "description": "The unique identifier of network ACL", - "required": true + "description": "Public gateway instance status", + "computed": true }, { - "name": "name", + "name": "resource_group", "type": "TypeString", - "description": "Network ACL name", + "description": "Public gateway resource group info", + "cloud_data_type": "resource_group", "computed": true }, { "name": "crn", "type": "TypeString", - "description": "The crn for this Network ACL", + "description": "The crn of the resource", "cloud_data_type": "crn", "computed": true }, { - "name": "vpc", + "name": "resource_group_name", "type": "TypeString", - "description": "Network ACL VPC", + "description": "The resource group name in which resource is provisioned", "computed": true - } - ], - "ibm_is_subnet_public_gateway_attachment": [ - { - "name": "subnet", - "type": "TypeString", - "description": "The subnet identifier", - "immutable": true, - "required": true }, { "name": "public_gateway", @@ -131041,16 +130997,14 @@ "required": true }, { - "name": "status", - "type": "TypeString", - "description": "Public gateway instance status", + "name": "floating_ip", + "type": "TypeMap", "computed": true }, { - "name": "resource_group", + "name": "vpc", "type": "TypeString", - "description": "Public gateway resource group info", - "cloud_data_type": "resource_group", + "description": "Public gateway VPC info", "computed": true }, { @@ -131066,49 +131020,26 @@ "computed": true }, { - "name": "crn", - "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "Name of the Public gateway instance", - "computed": true - }, - { - "name": "floating_ip", - "type": "TypeMap", - "computed": true - }, - { - "name": "vpc", - "type": "TypeString", - "description": "Public gateway VPC info", - "computed": true - }, - { - "name": "resource_group_name", + "name": "subnet", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true + "description": "The subnet identifier", + "immutable": true, + "required": true } ], "ibm_is_subnet_reserved_ip": [ { - "name": "address", + "name": "target", "type": "TypeString", - "description": "The address for this reserved IP.", - "immutable": true, + "description": "The unique identifier for target.", "optional": true, "computed": true }, { - "name": "reserved_ip", + "name": "target_crn", "type": "TypeString", - "description": "The unique identifier of the reserved IP.", + "description": "The crn for target.", + "optional": true, "computed": true }, { @@ -131117,12 +131048,24 @@ "description": "The date and time that the reserved IP was created.", "computed": true }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this reserved IP.", + "computed": true + }, { "name": "resource_type", "type": "TypeString", "description": "The resource type.", "computed": true }, + { + "name": "owner", + "type": "TypeString", + "description": "The owner of a reserved IP, defining whether it is managed by the user or the provider.", + "computed": true + }, { "name": "subnet", "type": "TypeString", @@ -131130,6 +131073,13 @@ "immutable": true, "required": true }, + { + "name": "auto_delete", + "type": "TypeBool", + "description": "If set to true, this reserved IP will be automatically deleted", + "optional": true, + "computed": true + }, { "name": "name", "type": "TypeString", @@ -131140,27 +131090,6 @@ "optional": true, "computed": true }, - { - "name": "target", - "type": "TypeString", - "description": "The unique identifier for target.", - "optional": true, - "computed": true - }, - { - "name": "target_crn", - "type": "TypeString", - "description": "The crn for target.", - "optional": true, - "computed": true - }, - { - "name": "auto_delete", - "type": "TypeBool", - "description": "If set to true, this reserved IP will be automatically deleted", - "optional": true, - "computed": true - }, { "name": "lifecycle_state", "type": "TypeString", @@ -131168,29 +131097,25 @@ "computed": true }, { - "name": "href", + "name": "address", "type": "TypeString", - "description": "The URL for this reserved IP.", + "description": "The address for this reserved IP.", + "immutable": true, + "optional": true, "computed": true }, { - "name": "owner", + "name": "reserved_ip", "type": "TypeString", - "description": "The owner of a reserved IP, defining whether it is managed by the user or the provider.", + "description": "The unique identifier of the reserved IP.", "computed": true } ], "ibm_is_subnet_routing_table_attachment": [ { - "name": "route_direct_link_ingress", + "name": "route_vpc_zone_ingress", "type": "TypeBool", - "description": "If true, this routing table will be used to route traffic that originates from Direct Link to this VPC.", - "computed": true - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The resource type", + "description": "If true, this routing table will be used to route traffic that originates from subnets in other zones in this VPC.", "computed": true }, { @@ -131213,29 +131138,9 @@ } }, { - "name": "routes", - "type": "TypeList", - "computed": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "route ID", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "route name", - "computed": true - } - } - }, - { - "name": "subnet", + "name": "routing_table", "type": "TypeString", - "description": "The subnet identifier", - "immutable": true, + "description": "The unique identifier of routing table", "required": true }, { @@ -131245,9 +131150,9 @@ "computed": true }, { - "name": "lifecycle_state", + "name": "resource_type", "type": "TypeString", - "description": "he lifecycle state of the routing table [ deleting, failed, pending, stable, suspended, updating, waiting ]", + "description": "The resource type", "computed": true }, { @@ -131263,59 +131168,45 @@ "computed": true }, { - "name": "route_vpc_zone_ingress", - "type": "TypeBool", - "description": "If true, this routing table will be used to route traffic that originates from subnets in other zones in this VPC.", - "computed": true - }, - { - "name": "routing_table", - "type": "TypeString", - "description": "The unique identifier of routing table", - "required": true - } - ], - "ibm_is_virtual_endpoint_gateway": [ - { - "name": "name", - "type": "TypeString", - "description": "Endpoint gateway name", - "immutable": true, - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" - }, - { - "name": "service_endpoints", + "name": "routes", "type": "TypeList", - "description": "The fully qualified domain names for the target service. A fully qualified domain name for the target service", "computed": true, "elem": { - "type": "TypeString" + "id": { + "name": "id", + "type": "TypeString", + "description": "route ID", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "route name", + "computed": true + } } }, { - "name": "vpc", + "name": "subnet", "type": "TypeString", - "description": "The VPC id", + "description": "The subnet identifier", "immutable": true, "required": true }, { - "name": "resource_type", - "type": "TypeString", - "description": "Endpoint gateway resource type", - "options": "provider_cloud_service, provider_infrastructure_service", + "name": "route_direct_link_ingress", + "type": "TypeBool", + "description": "If true, this routing table will be used to route traffic that originates from Direct Link to this VPC.", "computed": true }, { - "name": "allow_dns_resolution_binding", - "type": "TypeBool", - "description": "Indicates whether to allow this endpoint gateway to participate in DNS resolution bindings with a VPC that has dns.enable_hub set to true.", - "optional": true, + "name": "lifecycle_state", + "type": "TypeString", + "description": "he lifecycle state of the routing table [ deleting, failed, pending, stable, suspended, updating, waiting ]", "computed": true - }, + } + ], + "ibm_is_virtual_endpoint_gateway": [ { "name": "tags", "type": "TypeSet", @@ -131330,11 +131221,14 @@ } }, { - "name": "crn", + "name": "name", "type": "TypeString", - "description": "The CRN for this Endpoint gateway", - "cloud_data_type": "crn", - "computed": true + "description": "Endpoint gateway name", + "immutable": true, + "required": true, + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, { "name": "health_state", @@ -131342,37 +131236,6 @@ "description": "Endpoint gateway health state", "computed": true }, - { - "name": "security_groups", - "type": "TypeSet", - "description": "Endpoint gateway securitygroups list", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "The resource group id", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "Endpoint gateway created date and time", - "computed": true - }, - { - "name": "lifecycle_state", - "type": "TypeString", - "description": "Endpoint gateway lifecycle state", - "computed": true - }, { "name": "ips", "type": "TypeList", @@ -131414,6 +131277,45 @@ } } }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this Endpoint gateway", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "security_groups", + "type": "TypeSet", + "description": "Endpoint gateway securitygroups list", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "allow_dns_resolution_binding", + "type": "TypeBool", + "description": "Indicates whether to allow this endpoint gateway to participate in DNS resolution bindings with a VPC that has dns.enable_hub set to true.", + "optional": true, + "computed": true + }, + { + "name": "service_endpoints", + "type": "TypeList", + "description": "The fully qualified domain names for the target service. A fully qualified domain name for the target service", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "Endpoint gateway lifecycle state", + "computed": true + }, { "name": "target", "type": "TypeList", @@ -131444,6 +131346,13 @@ "max_items": 1, "min_items": 1 }, + { + "name": "vpc", + "type": "TypeString", + "description": "The VPC id", + "immutable": true, + "required": true + }, { "name": "access_tags", "type": "TypeSet", @@ -131453,6 +131362,28 @@ "elem": { "type": "TypeString" } + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "Endpoint gateway resource type", + "options": "provider_cloud_service, provider_infrastructure_service", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "The resource group id", + "cloud_data_type": "resource_group", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "Endpoint gateway created date and time", + "computed": true } ], "ibm_is_virtual_endpoint_gateway_ip": [ @@ -131529,22 +131460,15 @@ ], "ibm_is_volume": [ { - "name": "profile", - "type": "TypeString", - "description": "Volume profile name", - "required": true, - "options": "general-purpose, 5iops-tier, 10iops-tier, custom" - }, - { - "name": "health_state", + "name": "status", "type": "TypeString", - "description": "The health of this resource.", + "description": "Volume status", "computed": true }, { - "name": "resource_group_name", + "name": "resource_controller_url", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { @@ -131610,6 +131534,65 @@ "immutable": true, "required": true }, + { + "name": "encryption_type", + "type": "TypeString", + "description": "Volume encryption type info", + "computed": true + }, + { + "name": "health_reasons", + "type": "TypeList", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this health state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this health state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this health state.", + "computed": true + } + } + }, + { + "name": "health_state", + "type": "TypeString", + "description": "The health of this resource.", + "computed": true + }, + { + "name": "access_tags", + "type": "TypeSet", + "description": "Access management tags for the volume instance", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", + "computed": true + }, + { + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true + }, { "name": "source_snapshot", "type": "TypeString", @@ -131621,6 +131604,22 @@ "optional": true, "computed": true }, + { + "name": "iops", + "type": "TypeInt", + "description": "IOPS value for the Volume", + "min_value": "100", + "max_value": "48000", + "optional": true, + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "CRN value for the volume instance", + "cloud_data_type": "crn", + "computed": true + }, { "name": "status_reasons", "type": "TypeList", @@ -131647,15 +131646,22 @@ } }, { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true + "name": "tags", + "type": "TypeSet", + "description": "UserTags for the volume instance", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "resource_crn", + "name": "resource_name", "type": "TypeString", - "description": "The crn of the resource", + "description": "The name of the resource", "computed": true }, { @@ -131674,11 +131680,13 @@ "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, { - "name": "encryption_key", + "name": "resource_group", "type": "TypeString", - "description": "Volume encryption key info", + "description": "Resource group name", + "cloud_data_type": "resource_group", "immutable": true, - "optional": true + "optional": true, + "computed": true }, { "name": "capacity", @@ -131690,18 +131698,48 @@ "computed": true }, { - "name": "iops", - "type": "TypeInt", - "description": "IOPS value for the Volume", - "min_value": "100", - "max_value": "48000", - "optional": true, + "name": "delete_all_snapshots", + "type": "TypeBool", + "description": "Deletes all snapshots created from this volume", + "optional": true + }, + { + "name": "resource_status", + "type": "TypeString", + "description": "The status of the resource", "computed": true }, + { + "name": "profile", + "type": "TypeString", + "description": "Volume profile name", + "required": true, + "options": "general-purpose, 5iops-tier, 10iops-tier, custom" + }, + { + "name": "encryption_key", + "type": "TypeString", + "description": "Volume encryption key info", + "immutable": true, + "optional": true + } + ], + "ibm_is_vpc": [ + { + "name": "id", + "type": "TypeString", + "description": "Id of the ibm_is_vpc", + "cloud_data_type": "is", + "computed": true, + "cloud_data_range": [ + "service:vpc", + "resolved_to:id" + ] + }, { "name": "tags", "type": "TypeSet", - "description": "UserTags for the volume instance", + "description": "List of tags", "min_length": 1, "max_length": 128, "matches": "^[A-Za-z0-9:_ .-]+$", @@ -131711,99 +131749,84 @@ "type": "TypeString" } }, + { + "name": "address_prefix_management", + "type": "TypeString", + "description": "Address Prefix management value", + "default_value": "auto", + "immutable": true, + "options": "auto, manual", + "optional": true + }, + { + "name": "no_sg_acl_rules", + "type": "TypeBool", + "description": "Delete all rules attached with default security group and default acl", + "default_value": false, + "optional": true + }, { "name": "access_tags", "type": "TypeSet", - "description": "Access management tags for the volume instance", + "description": "List of access management tags", "optional": true, "computed": true, "elem": { "type": "TypeString" } }, - { - "name": "resource_status", - "type": "TypeString", - "description": "The status of the resource", - "computed": true - }, - { - "name": "encryption_type", - "type": "TypeString", - "description": "Volume encryption type info", - "computed": true - }, { "name": "resource_group", "type": "TypeString", - "description": "Resource group name", + "description": "Resource group info", "cloud_data_type": "resource_group", "immutable": true, "optional": true, "computed": true }, { - "name": "crn", + "name": "status", "type": "TypeString", - "description": "CRN value for the volume instance", - "cloud_data_type": "crn", + "description": "VPC status", "computed": true }, { - "name": "status", + "name": "resource_controller_url", "type": "TypeString", - "description": "Volume status", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { - "name": "health_reasons", - "type": "TypeList", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the reason for this health state.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the reason for this health state.", - "computed": true - }, - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about the reason for this health state.", - "computed": true - } - } + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true }, { - "name": "delete_all_snapshots", - "type": "TypeBool", - "description": "Deletes all snapshots created from this volume", - "optional": true + "name": "default_network_acl_name", + "type": "TypeString", + "description": "Default Network ACL name", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "optional": true, + "computed": true }, { - "name": "resource_controller_url", + "name": "default_security_group_name", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "Default security group name", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "optional": true, "computed": true - } - ], - "ibm_is_vpc": [ + }, { - "name": "id", + "name": "resource_group_name", "type": "TypeString", - "description": "Id of the ibm_is_vpc", - "cloud_data_type": "is", - "computed": true, - "cloud_data_range": [ - "service:vpc", - "resolved_to:id" - ] + "description": "The resource group name in which resource is provisioned", + "computed": true }, { "name": "dns", @@ -131924,15 +131947,6 @@ }, "max_items": 1 }, - { - "name": "name", - "type": "TypeString", - "description": "VPC name", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" - }, { "name": "default_network_acl_crn", "type": "TypeString", @@ -131940,122 +131954,69 @@ "computed": true }, { - "name": "resource_group", - "type": "TypeString", - "description": "Resource group info", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - }, - { - "name": "no_sg_acl_rules", - "type": "TypeBool", - "description": "Delete all rules attached with default security group and default acl", - "default_value": false, - "optional": true - }, - { - "name": "default_security_group_crn", - "type": "TypeString", - "description": "Default security group CRN", - "computed": true - }, - { - "name": "default_security_group", - "type": "TypeString", - "description": "Security group associated with VPC", - "computed": true - }, - { - "name": "resource_group_name", + "name": "resource_crn", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "The crn of the resource", "computed": true }, { - "name": "subnets", + "name": "cse_source_addresses", "type": "TypeList", "computed": true, "elem": { - "available_ipv4_address_count": { - "name": "available_ipv4_address_count", - "type": "TypeInt", - "description": "Available IPv4 address count in the subnet", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeString", - "description": "subnet ID", - "computed": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "subent name", - "computed": true - }, - "status": { - "name": "status", + "address": { + "name": "address", "type": "TypeString", - "description": "subnet status", - "computed": true - }, - "total_ipv4_address_count": { - "name": "total_ipv4_address_count", - "type": "TypeInt", - "description": "Total IPv4 address count in the subnet", + "description": "Cloud service endpoint IP Address", "computed": true }, - "zone": { - "name": "zone", + "zone_name": { + "name": "zone_name", "type": "TypeString", - "description": "subnet location", + "description": "Location info of CSE Address", "computed": true } } }, { - "name": "default_routing_table", + "name": "health_state", "type": "TypeString", - "description": "Default routing table associated with VPC", + "description": "The health of this resource.- `ok`: No abnormal behavior detected- `degraded`: Experiencing compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", "computed": true }, { - "name": "status", + "name": "default_security_group_crn", "type": "TypeString", - "description": "VPC status", + "description": "Default security group CRN", "computed": true }, { - "name": "crn", + "name": "resource_status", "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", + "description": "The status of the resource", "computed": true }, { - "name": "resource_crn", + "name": "default_routing_table", "type": "TypeString", - "description": "The crn of the resource", + "description": "Default routing table associated with VPC", "computed": true }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", + "name": "default_security_group", + "type": "TypeString", + "description": "Security group associated with VPC", + "computed": true + }, + { + "name": "default_routing_table_name", + "type": "TypeString", + "description": "Default routing table name", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "computed": true }, { "name": "security_group", @@ -132133,50 +132094,12 @@ } } }, - { - "name": "default_routing_table_name", - "type": "TypeString", - "description": "Default routing table name", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", - "optional": true, - "computed": true - }, - { - "name": "cse_source_addresses", - "type": "TypeList", - "computed": true, - "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "Cloud service endpoint IP Address", - "computed": true - }, - "zone_name": { - "name": "zone_name", - "type": "TypeString", - "description": "Location info of CSE Address", - "computed": true - } - } - }, { "name": "default_network_acl", "type": "TypeString", "description": "Default network ACL ID", "computed": true }, - { - "name": "address_prefix_management", - "type": "TypeString", - "description": "Address Prefix management value", - "default_value": "auto", - "immutable": true, - "options": "auto, manual", - "optional": true - }, { "name": "health_reasons", "type": "TypeList", @@ -132204,29 +132127,54 @@ } }, { - "name": "tags", - "type": "TypeSet", - "description": "List of tags", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "resource_status", + "name": "crn", "type": "TypeString", - "description": "The status of the resource", + "description": "The crn of the resource", + "cloud_data_type": "crn", "computed": true }, { - "name": "health_state", - "type": "TypeString", - "description": "The health of this resource.- `ok`: No abnormal behavior detected- `degraded`: Experiencing compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", - "computed": true + "name": "subnets", + "type": "TypeList", + "computed": true, + "elem": { + "available_ipv4_address_count": { + "name": "available_ipv4_address_count", + "type": "TypeInt", + "description": "Available IPv4 address count in the subnet", + "computed": true + }, + "id": { + "name": "id", + "type": "TypeString", + "description": "subnet ID", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "subent name", + "computed": true + }, + "status": { + "name": "status", + "type": "TypeString", + "description": "subnet status", + "computed": true + }, + "total_ipv4_address_count": { + "name": "total_ipv4_address_count", + "type": "TypeInt", + "description": "Total IPv4 address count in the subnet", + "computed": true + }, + "zone": { + "name": "zone", + "type": "TypeString", + "description": "subnet location", + "computed": true + } + } }, { "name": "classic_access", @@ -132234,56 +132182,19 @@ "description": "Set to true if classic access needs to enabled to VPC", "default_value": false, "immutable": true, - "optional": true - }, - { - "name": "default_network_acl_name", - "type": "TypeString", - "description": "Default Network ACL name", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", - "optional": true, - "computed": true + "optional": true }, { - "name": "default_security_group_name", + "name": "name", "type": "TypeString", - "description": "Default security group name", + "description": "VPC name", + "required": true, "min_length": 1, "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", - "optional": true, - "computed": true - }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" } ], "ibm_is_vpc_address_prefix": [ - { - "name": "name", - "type": "TypeString", - "description": "Name", - "required": true - }, - { - "name": "zone", - "type": "TypeString", - "description": "Zone name", - "immutable": true, - "required": true - }, - { - "name": "cidr", - "type": "TypeString", - "description": "CIDIR address prefix", - "immutable": true, - "required": true - }, { "name": "is_default", "type": "TypeBool", @@ -132315,16 +132226,29 @@ "type": "TypeString", "description": "The unique identifier of the address prefix", "computed": true - } - ], - "ibm_is_vpc_dns_resolution_binding": [ + }, { "name": "name", "type": "TypeString", - "description": "The name for this DNS resolution binding. The name is unique across all DNS resolution bindings for the VPC.", - "optional": true, - "computed": true + "description": "Name", + "required": true + }, + { + "name": "zone", + "type": "TypeString", + "description": "Zone name", + "immutable": true, + "required": true }, + { + "name": "cidr", + "type": "TypeString", + "description": "CIDIR address prefix", + "immutable": true, + "required": true + } + ], + "ibm_is_vpc_dns_resolution_binding": [ { "name": "resource_type", "type": "TypeString", @@ -132532,44 +132456,16 @@ "type": "TypeString", "description": "The lifecycle state of the DNS resolution binding.", "computed": true - } - ], - "ibm_is_vpc_routing_table": [ - { - "name": "created_at", - "type": "TypeString", - "description": "Routing table Created At", - "computed": true - }, - { - "name": "vpc", - "type": "TypeString", - "description": "The VPC identifier.", - "immutable": true, - "required": true }, { "name": "name", "type": "TypeString", - "description": "The user-defined name for this routing table.", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "description": "The name for this DNS resolution binding. The name is unique across all DNS resolution bindings for the VPC.", "optional": true, "computed": true - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "Routing table Resource Type", - "computed": true - }, - { - "name": "href", - "type": "TypeString", - "description": "Routing table Href", - "computed": true - }, + } + ], + "ibm_is_vpc_routing_table": [ { "name": "accept_routes_from_resource_type", "type": "TypeSet", @@ -132581,16 +132477,19 @@ } }, { - "name": "route_internet_ingress", - "type": "TypeBool", - "description": "If set to true, this routing table will be used to route traffic that originates from the internet. For this to succeed, the VPC must not already have a routing table with this property set to true.", - "default_value": false, - "optional": true + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this routing table.", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "optional": true, + "computed": true }, { - "name": "routing_table", + "name": "created_at", "type": "TypeString", - "description": "The routing table identifier.", + "description": "Routing table Created At", "computed": true }, { @@ -132612,6 +132511,13 @@ } } }, + { + "name": "vpc", + "type": "TypeString", + "description": "The VPC identifier.", + "immutable": true, + "required": true + }, { "name": "route_direct_link_ingress", "type": "TypeBool", @@ -132619,6 +132525,13 @@ "default_value": false, "optional": true }, + { + "name": "route_transit_gateway_ingress", + "type": "TypeBool", + "description": "If set to true, this routing table will be used to route traffic that originates from Transit Gateway to this VPC.", + "default_value": false, + "optional": true + }, { "name": "route_vpc_zone_ingress", "type": "TypeBool", @@ -132627,42 +132540,44 @@ "optional": true }, { - "name": "lifecycle_state", + "name": "resource_type", "type": "TypeString", - "description": "Routing table Lifecycle State", + "description": "Routing table Resource Type", "computed": true }, { - "name": "route_transit_gateway_ingress", - "type": "TypeBool", - "description": "If set to true, this routing table will be used to route traffic that originates from Transit Gateway to this VPC.", - "default_value": false, - "optional": true + "name": "lifecycle_state", + "type": "TypeString", + "description": "Routing table Lifecycle State", + "computed": true }, { "name": "is_default", "type": "TypeBool", "description": "Indicates whether this is the default routing table for this VPC", "computed": true - } - ], - "ibm_is_vpc_routing_table_route": [ + }, + { + "name": "route_internet_ingress", + "type": "TypeBool", + "description": "If set to true, this routing table will be used to route traffic that originates from the internet. For this to succeed, the VPC must not already have a routing table with this property set to true.", + "default_value": false, + "optional": true + }, { "name": "routing_table", "type": "TypeString", "description": "The routing table identifier.", - "immutable": true, - "required": true + "computed": true }, { - "name": "action", + "name": "href", "type": "TypeString", - "description": "The action to perform with a packet matching the route.", - "default_value": "deliver", - "immutable": true, - "options": "delegate, delegate_vpc, deliver, drop", - "optional": true - }, + "description": "Routing table Href", + "computed": true + } + ], + "ibm_is_vpc_routing_table_route": [ { "name": "name", "type": "TypeString", @@ -132674,15 +132589,28 @@ "computed": true }, { - "name": "origin", + "name": "route_id", "type": "TypeString", - "description": "The origin of this route.", + "description": "The routing table route identifier.", "computed": true }, { - "name": "vpc", + "name": "created_at", "type": "TypeString", - "description": "The VPC identifier.", + "description": "Routing table route Created At", + "computed": true + }, + { + "name": "routing_table", + "type": "TypeString", + "description": "The routing table identifier.", + "immutable": true, + "required": true + }, + { + "name": "zone", + "type": "TypeString", + "description": "The zone to apply the route to. Traffic from subnets in this zone will be subject to this route.", "immutable": true, "required": true }, @@ -132693,11 +132621,49 @@ "required": true }, { - "name": "route_id", + "name": "vpc", "type": "TypeString", - "description": "The routing table route identifier.", + "description": "The VPC identifier.", + "immutable": true, + "required": true + }, + { + "name": "action", + "type": "TypeString", + "description": "The action to perform with a packet matching the route.", + "default_value": "deliver", + "immutable": true, + "options": "delegate, delegate_vpc, deliver, drop", + "optional": true + }, + { + "name": "priority", + "type": "TypeInt", + "description": "The route's priority. Smaller values have higher priority.", + "min_value": "0", + "max_value": "4", + "optional": true, + "computed": true + }, + { + "name": "lifecycle_state", + "type": "TypeString", + "description": "Routing table route Lifecycle State", + "computed": true + }, + { + "name": "origin", + "type": "TypeString", + "description": "The origin of this route.", "computed": true }, + { + "name": "destination", + "type": "TypeString", + "description": "The destination of the route.", + "immutable": true, + "required": true + }, { "name": "href", "type": "TypeString", @@ -132755,55 +132721,19 @@ "computed": true } } - }, - { - "name": "lifecycle_state", - "type": "TypeString", - "description": "Routing table route Lifecycle State", - "computed": true - }, - { - "name": "destination", - "type": "TypeString", - "description": "The destination of the route.", - "immutable": true, - "required": true - }, - { - "name": "priority", - "type": "TypeInt", - "description": "The route's priority. Smaller values have higher priority.", - "min_value": "0", - "max_value": "4", - "optional": true, - "computed": true - }, - { - "name": "zone", - "type": "TypeString", - "description": "The zone to apply the route to. Traffic from subnets in this zone will be subject to this route.", - "immutable": true, - "required": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "Routing table route Created At", - "computed": true } ], "ibm_is_vpn_gateway": [ { - "name": "crn", + "name": "private_ip_address2", "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", + "description": "The Second Private IP address assigned to the VPN gateway member.", "computed": true }, { - "name": "created_at", + "name": "resource_name", "type": "TypeString", - "description": "Created Time of the VPN Gateway", + "description": "The name of the resource", "computed": true }, { @@ -132813,70 +132743,84 @@ "computed": true }, { - "name": "resource_group", + "name": "subnet", "type": "TypeString", - "description": "The resource group for this VPN gateway", - "cloud_data_type": "resource_group", + "description": "VPNGateway subnet info", "immutable": true, - "optional": true, - "computed": true + "required": true }, { - "name": "status", + "name": "health_reasons", + "type": "TypeList", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this health state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this health state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this health state.", + "computed": true + } + } + }, + { + "name": "private_ip_address", "type": "TypeString", - "description": "The status of the VPN gateway", + "description": "The Private IP address assigned to the VPN gateway member.", "computed": true }, { - "name": "public_ip_address2", + "name": "crn", "type": "TypeString", - "description": "The second public IP address assigned to the VPN gateway member.", + "description": "The crn of the resource", + "cloud_data_type": "crn", "computed": true }, { - "name": "access_tags", - "type": "TypeSet", - "description": "List of access management tags", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", + "computed": true }, { - "name": "resource_name", + "name": "created_at", "type": "TypeString", - "description": "The name of the resource", + "description": "Created Time of the VPN Gateway", "computed": true }, { - "name": "members", + "name": "lifecycle_reasons", "type": "TypeList", - "description": "Collection of VPN gateway members", + "description": "The reasons for the current lifecycle_state (if any).", "computed": true, "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "The public IP address assigned to the VPN gateway member", - "computed": true - }, - "private_address": { - "name": "private_address", + "code": { + "name": "code", "type": "TypeString", - "description": "The private IP address assigned to the VPN gateway member", + "description": "A snake case string succinctly identifying the reason for this lifecycle state.", "computed": true }, - "role": { - "name": "role", + "message": { + "name": "message", "type": "TypeString", - "description": "The high availability role assigned to the VPN gateway member", + "description": "An explanation of the reason for this lifecycle state.", "computed": true }, - "status": { - "name": "status", + "more_info": { + "name": "more_info", "type": "TypeString", - "description": "The status of the VPN gateway member", + "description": "Link to documentation about the reason for this lifecycle state.", "computed": true } } @@ -132891,18 +132835,9 @@ "optional": true }, { - "name": "name", - "type": "TypeString", - "description": "VPN Gateway instance name", - "required": true, - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" - }, - { - "name": "public_ip_address", + "name": "public_ip_address2", "type": "TypeString", - "description": "The public IP address assigned to the VPN gateway member.", + "description": "The second public IP address assigned to the VPN gateway member.", "computed": true }, { @@ -132917,30 +132852,6 @@ "description": "The crn of the resource", "computed": true }, - { - "name": "resource_status", - "type": "TypeString", - "description": "The status of the resource", - "computed": true - }, - { - "name": "health_state", - "type": "TypeString", - "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", - "computed": true - }, - { - "name": "private_ip_address", - "type": "TypeString", - "description": "The Private IP address assigned to the VPN gateway member.", - "computed": true - }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, { "name": "vpc", "type": "TypeList", @@ -132988,96 +132899,203 @@ } }, { - "name": "subnet", - "type": "TypeString", - "description": "VPNGateway subnet info", - "immutable": true, - "required": true + "name": "tags", + "type": "TypeSet", + "description": "VPN Gateway tags list", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "health_reasons", + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "members", "type": "TypeList", + "description": "Collection of VPN gateway members", "computed": true, "elem": { - "code": { - "name": "code", + "address": { + "name": "address", "type": "TypeString", - "description": "A snake case string succinctly identifying the reason for this health state.", + "description": "The public IP address assigned to the VPN gateway member", "computed": true }, - "message": { - "name": "message", + "private_address": { + "name": "private_address", "type": "TypeString", - "description": "An explanation of the reason for this health state.", + "description": "The private IP address assigned to the VPN gateway member", "computed": true }, - "more_info": { - "name": "more_info", + "role": { + "name": "role", "type": "TypeString", - "description": "Link to documentation about the reason for this health state.", + "description": "The high availability role assigned to the VPN gateway member", + "computed": true + }, + "status": { + "name": "status", + "type": "TypeString", + "description": "The status of the VPN gateway member", "computed": true } } }, { - "name": "private_ip_address2", + "name": "status", "type": "TypeString", - "description": "The Second Private IP address assigned to the VPN gateway member.", + "description": "The status of the VPN gateway", "computed": true }, { - "name": "tags", - "type": "TypeSet", - "description": "VPN Gateway tags list", + "name": "health_state", + "type": "TypeString", + "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", + "computed": true + }, + { + "name": "public_ip_address", + "type": "TypeString", + "description": "The public IP address assigned to the VPN gateway member.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "VPN Gateway instance name", + "required": true, "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "The resource group for this VPN gateway", + "cloud_data_type": "resource_group", + "immutable": true, "optional": true, + "computed": true + }, + { + "name": "resource_status", + "type": "TypeString", + "description": "The status of the resource", + "computed": true + } + ], + "ibm_is_vpn_gateway_connection": [ + { + "name": "interval", + "type": "TypeInt", + "description": "Interval for dead peer detection interval", + "default_value": 2, + "min_value": "1", + "max_value": "86399", + "optional": true + }, + { + "name": "ipsec_policy", + "type": "TypeString", + "description": "IP security policy for vpn gateway connection", + "optional": true + }, + { + "name": "status", + "type": "TypeString", + "description": "VPN gateway connection status", + "computed": true + }, + { + "name": "tunnels", + "type": "TypeList", + "description": "The VPN tunnel configuration for this VPN gateway connection (in static route mode)", "computed": true, "elem": { - "type": "TypeString" + "address": { + "name": "address", + "type": "TypeString", + "description": "The IP address of the VPN gateway member in which the tunnel resides", + "computed": true + }, + "status": { + "name": "status", + "type": "TypeString", + "description": "The status of the VPN Tunnel", + "computed": true + } } }, { - "name": "lifecycle_reasons", + "name": "admin_state_up", + "type": "TypeBool", + "description": "VPN gateway connection admin state", + "default_value": false, + "optional": true + }, + { + "name": "action", + "type": "TypeString", + "description": "Action detection for dead peer detection action", + "default_value": "restart", + "options": "restart, clear, hold, none", + "optional": true + }, + { + "name": "status_reasons", "type": "TypeList", - "description": "The reasons for the current lifecycle_state (if any).", + "description": "The reasons for the current status (if any).", "computed": true, "elem": { "code": { "name": "code", "type": "TypeString", - "description": "A snake case string succinctly identifying the reason for this lifecycle state.", + "description": "A snake case string succinctly identifying the status reason.", "computed": true }, "message": { "name": "message", "type": "TypeString", - "description": "An explanation of the reason for this lifecycle state.", + "description": "An explanation of the status reason.", "computed": true }, "more_info": { "name": "more_info", "type": "TypeString", - "description": "Link to documentation about the reason for this lifecycle state.", + "description": "Link to documentation about this status reason.", "computed": true } } - } - ], - "ibm_is_vpn_gateway_connection": [ + }, { - "name": "peer_address", + "name": "authentication_mode", "type": "TypeString", - "description": "VPN gateway connection peer address", - "required": true + "description": "The authentication mode", + "computed": true }, { - "name": "admin_state_up", - "type": "TypeBool", - "description": "VPN gateway connection admin state", - "default_value": false, - "optional": true + "name": "resource_type", + "type": "TypeString", + "description": "The resource type", + "computed": true + }, + { + "name": "mode", + "type": "TypeString", + "description": "The mode of the VPN gateway", + "computed": true }, { "name": "peer_cidrs", @@ -133090,26 +133108,14 @@ } }, { - "name": "action", - "type": "TypeString", - "description": "Action detection for dead peer detection action", - "default_value": "restart", - "options": "restart, clear, hold, none", + "name": "timeout", + "type": "TypeInt", + "description": "Timeout for dead peer detection", + "default_value": 10, + "min_value": "2", + "max_value": "86399", "optional": true }, - { - "name": "status", - "type": "TypeString", - "description": "VPN gateway connection status", - "computed": true - }, - { - "name": "vpn_gateway", - "type": "TypeString", - "description": "VPN Gateway info", - "immutable": true, - "required": true - }, { "name": "local_cidrs", "type": "TypeSet", @@ -133121,58 +133127,41 @@ } }, { - "name": "ipsec_policy", + "name": "vpn_gateway", "type": "TypeString", - "description": "IP security policy for vpn gateway connection", - "optional": true + "description": "VPN Gateway info", + "immutable": true, + "required": true }, { - "name": "gateway_connection", + "name": "peer_address", "type": "TypeString", - "description": "The unique identifier for this VPN gateway connection", - "computed": true + "description": "VPN gateway connection peer address", + "required": true }, { - "name": "resource_type", + "name": "ike_policy", "type": "TypeString", - "description": "The resource type", - "computed": true + "description": "VPN gateway connection IKE Policy", + "optional": true }, { - "name": "mode", + "name": "gateway_connection", "type": "TypeString", - "description": "The mode of the VPN gateway", + "description": "The unique identifier for this VPN gateway connection", "computed": true }, { - "name": "preshared_key", + "name": "related_crn", "type": "TypeString", - "description": "vpn gateway", - "required": true - }, - { - "name": "interval", - "type": "TypeInt", - "description": "Interval for dead peer detection interval", - "default_value": 2, - "min_value": "1", - "max_value": "86399", - "optional": true - }, - { - "name": "timeout", - "type": "TypeInt", - "description": "Timeout for dead peer detection", - "default_value": 10, - "min_value": "2", - "max_value": "86399", - "optional": true + "description": "The crn of the VPN Gateway resource", + "computed": true }, { - "name": "ike_policy", + "name": "created_at", "type": "TypeString", - "description": "VPN gateway connection IKE Policy", - "optional": true + "description": "The date and time that this VPN gateway connection was created", + "computed": true }, { "name": "name", @@ -133184,85 +133173,93 @@ "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$" }, { - "name": "status_reasons", + "name": "preshared_key", + "type": "TypeString", + "description": "vpn gateway", + "required": true + } + ], + "ibm_is_vpn_server": [ + { + "name": "vpc", "type": "TypeList", - "description": "The reasons for the current status (if any).", + "description": "The VPC this VPN server resides in.", "computed": true, "elem": { - "code": { - "name": "code", + "crn": { + "name": "crn", "type": "TypeString", - "description": "A snake case string succinctly identifying the status reason.", + "description": "The CRN for this VPC.", "computed": true }, - "message": { - "name": "message", + "deleted": { + "name": "deleted", + "type": "TypeList", + "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", + "computed": true, + "elem": { + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about deleted resources.", + "computed": true + } + } + }, + "href": { + "name": "href", "type": "TypeString", - "description": "An explanation of the status reason.", + "description": "The URL for this VPC.", "computed": true }, - "more_info": { - "name": "more_info", + "id": { + "name": "id", "type": "TypeString", - "description": "Link to documentation about this status reason.", + "description": "The unique identifier for this VPC.", + "computed": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The unique user-defined name for this VPC.", "computed": true } } }, { - "name": "related_crn", - "type": "TypeString", - "description": "The crn of the VPN Gateway resource", - "computed": true + "name": "access_tags", + "type": "TypeSet", + "description": "List of access management tags", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "authentication_mode", + "name": "client_ip_pool", "type": "TypeString", - "description": "The authentication mode", - "computed": true + "description": "The VPN client IPv4 address pool, expressed in CIDR format. The request must not overlap with any existing address prefixes in the VPC or any of the following reserved address ranges: - `127.0.0.0/8` (IPv4 loopback addresses) - `161.26.0.0/16` (IBM services) - `166.8.0.0/14` (Cloud Service Endpoints) - `169.254.0.0/16` (IPv4 link-local addresses) - `224.0.0.0/4` (IPv4 multicast addresses)The prefix length of the client IP address pool's CIDR must be between`/9` (8,388,608 addresses) and `/22` (1024 addresses). A CIDR block that contains twice the number of IP addresses that are required to enable the maximum number of concurrent connections is recommended.", + "required": true, + "matches": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(3[0-2]|[1-2][0-9]|[0-9]))$" }, { - "name": "created_at", + "name": "hostname", "type": "TypeString", - "description": "The date and time that this VPN gateway connection was created", + "description": "Fully qualified domain name assigned to this VPN server.", "computed": true }, { - "name": "tunnels", - "type": "TypeList", - "description": "The VPN tunnel configuration for this VPN gateway connection (in static route mode)", - "computed": true, - "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "The IP address of the VPN gateway member in which the tunnel resides", - "computed": true - }, - "status": { - "name": "status", - "type": "TypeString", - "description": "The status of the VPN Tunnel", - "computed": true - } - } - } - ], - "ibm_is_vpn_server": [ - { - "name": "client_dns_server_ips", - "type": "TypeSet", - "description": "The DNS server addresses that will be provided to VPN clients connected to this VPN server. The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "resource_type", + "type": "TypeString", + "description": "The type of resource referenced.", + "default_value": "vpn_server", + "optional": true }, { - "name": "crn", - "type": "TypeString", - "description": "The CRN for this VPN server.", - "cloud_data_type": "crn", + "name": "client_auto_delete", + "type": "TypeBool", + "description": "If set to `true`, disconnected VPN clients will be automatically deleted after the `client_auto_delete_timeout` time has passed.", "computed": true }, { @@ -133272,18 +133269,21 @@ "default_value": false, "optional": true }, - { - "name": "vpn_server", - "type": "TypeString", - "description": "The unique identifier for this VPN server.", - "computed": true - }, { "name": "lifecycle_state", "type": "TypeString", "description": "The lifecycle state of the VPN server.", "computed": true }, + { + "name": "port", + "type": "TypeInt", + "description": "The port number to use for this VPN server.", + "default_value": 443, + "min_value": "1", + "max_value": "65535", + "optional": true + }, { "name": "resource_group", "type": "TypeString", @@ -133293,6 +133293,58 @@ "optional": true, "computed": true }, + { + "name": "subnets", + "type": "TypeSet", + "description": "The unique identifier for this subnet. The subnets to provision this VPN server in. Use subnets in different zones for high availability.", + "required": true, + "elem": { + "type": "TypeString" + }, + "max_items": 2, + "min_items": 1 + }, + { + "name": "certificate_crn", + "type": "TypeString", + "description": "The crn of certificate instance for this VPN server.", + "required": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that the VPN server was created.", + "computed": true + }, + { + "name": "vpn_server", + "type": "TypeString", + "description": "The unique identifier for this VPN server.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The user-defined name for this VPN server. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the VPC this VPN server is serving.", + "min_length": 1, + "max_length": 63, + "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", + "optional": true + }, + { + "name": "protocol", + "type": "TypeString", + "description": "The transport protocol to use for this VPN server.", + "default_value": "udp", + "options": "tcp, udp", + "optional": true + }, + { + "name": "href", + "type": "TypeString", + "description": "The URL for this VPN server.", + "computed": true + }, { "name": "client_authentication", "type": "TypeList", @@ -133320,21 +133372,6 @@ }, "max_items": 2 }, - { - "name": "client_auto_delete_timeout", - "type": "TypeInt", - "description": "Hours after which disconnected VPN clients will be automatically deleted. If `0`, disconnected VPN clients will be deleted immediately.", - "computed": true - }, - { - "name": "port", - "type": "TypeInt", - "description": "The port number to use for this VPN server.", - "default_value": 443, - "min_value": "1", - "max_value": "65535", - "optional": true - }, { "name": "client_idle_timeout", "type": "TypeInt", @@ -133344,18 +133381,6 @@ "max_value": "28800", "optional": true }, - { - "name": "health_state", - "type": "TypeString", - "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", - "computed": true - }, - { - "name": "client_auto_delete", - "type": "TypeBool", - "description": "If set to `true`, disconnected VPN clients will be automatically deleted after the `client_auto_delete_timeout` time has passed.", - "computed": true - }, { "name": "health_reasons", "type": "TypeList", @@ -133382,95 +133407,47 @@ } }, { - "name": "security_groups", - "type": "TypeSet", - "description": "The unique identifier for this security group. The security groups to use for this VPN server. If unspecified, the VPC's default security group is used.", - "immutable": true, - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "href", + "name": "health_state", "type": "TypeString", - "description": "The URL for this VPN server.", + "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", "computed": true }, { - "name": "private_ips", + "name": "lifecycle_reasons", "type": "TypeList", - "description": "The reserved IPs bound to this VPN server.", + "description": "The reasons for the current lifecycle_state (if any).", "computed": true, "elem": { - "address": { - "name": "address", - "type": "TypeString", - "description": "The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", - "computed": true - }, - "deleted": { - "name": "deleted", - "type": "TypeList", - "description": "If present, this property indicates the referenced resource has been deleted and providessome supplementary information.", - "computed": true, - "elem": { - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about deleted resources.", - "computed": true - } - } - }, - "href": { - "name": "href", - "type": "TypeString", - "description": "The URL for this reserved IP.", - "computed": true - }, - "id": { - "name": "id", + "code": { + "name": "code", "type": "TypeString", - "description": "The unique identifier for this reserved IP.", + "description": "A snake case string succinctly identifying the reason for this lifecycle state.", "computed": true }, - "name": { - "name": "name", + "message": { + "name": "message", "type": "TypeString", - "description": "The user-defined or system-provided name for this reserved IP.", + "description": "An explanation of the reason for this lifecycle state.", "computed": true }, - "resource_type": { - "name": "resource_type", + "more_info": { + "name": "more_info", "type": "TypeString", - "description": "The resource type.", + "description": "Link to documentation about the reason for this lifecycle state.", "computed": true } } }, { - "name": "subnets", - "type": "TypeSet", - "description": "The unique identifier for this subnet. The subnets to provision this VPN server in. Use subnets in different zones for high availability.", - "required": true, - "elem": { - "type": "TypeString" - }, - "max_items": 2, - "min_items": 1 - }, - { - "name": "vpc", + "name": "private_ips", "type": "TypeList", - "description": "The VPC this VPN server resides in.", + "description": "The reserved IPs bound to this VPN server.", "computed": true, "elem": { - "crn": { - "name": "crn", + "address": { + "name": "address", "type": "TypeString", - "description": "The CRN for this VPC.", + "description": "The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", "computed": true }, "deleted": { @@ -133490,107 +133467,61 @@ "href": { "name": "href", "type": "TypeString", - "description": "The URL for this VPC.", + "description": "The URL for this reserved IP.", "computed": true }, "id": { "name": "id", "type": "TypeString", - "description": "The unique identifier for this VPC.", + "description": "The unique identifier for this reserved IP.", "computed": true }, "name": { "name": "name", "type": "TypeString", - "description": "The unique user-defined name for this VPC.", - "computed": true - } - } - }, - { - "name": "resource_type", - "type": "TypeString", - "description": "The type of resource referenced.", - "default_value": "vpn_server", - "optional": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that the VPN server was created.", - "computed": true - }, - { - "name": "hostname", - "type": "TypeString", - "description": "Fully qualified domain name assigned to this VPN server.", - "computed": true - }, - { - "name": "lifecycle_reasons", - "type": "TypeList", - "description": "The reasons for the current lifecycle_state (if any).", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the reason for this lifecycle state.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the reason for this lifecycle state.", + "description": "The user-defined or system-provided name for this reserved IP.", "computed": true }, - "more_info": { - "name": "more_info", + "resource_type": { + "name": "resource_type", "type": "TypeString", - "description": "Link to documentation about the reason for this lifecycle state.", + "description": "The resource type.", "computed": true } } }, { - "name": "name", - "type": "TypeString", - "description": "The user-defined name for this VPN server. If unspecified, the name will be a hyphenated list of randomly-selected words. Names must be unique within the VPC this VPN server is serving.", - "min_length": 1, - "max_length": 63, - "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", - "optional": true - }, - { - "name": "protocol", - "type": "TypeString", - "description": "The transport protocol to use for this VPN server.", - "default_value": "udp", - "options": "tcp, udp", - "optional": true - }, - { - "name": "certificate_crn", - "type": "TypeString", - "description": "The crn of certificate instance for this VPN server.", - "required": true + "name": "security_groups", + "type": "TypeSet", + "description": "The unique identifier for this security group. The security groups to use for this VPN server. If unspecified, the VPC's default security group is used.", + "immutable": true, + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "client_ip_pool", - "type": "TypeString", - "description": "The VPN client IPv4 address pool, expressed in CIDR format. The request must not overlap with any existing address prefixes in the VPC or any of the following reserved address ranges: - `127.0.0.0/8` (IPv4 loopback addresses) - `161.26.0.0/16` (IBM services) - `166.8.0.0/14` (Cloud Service Endpoints) - `169.254.0.0/16` (IPv4 link-local addresses) - `224.0.0.0/4` (IPv4 multicast addresses)The prefix length of the client IP address pool's CIDR must be between`/9` (8,388,608 addresses) and `/22` (1024 addresses). A CIDR block that contains twice the number of IP addresses that are required to enable the maximum number of concurrent connections is recommended.", - "required": true, - "matches": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(3[0-2]|[1-2][0-9]|[0-9]))$" + "name": "client_auto_delete_timeout", + "type": "TypeInt", + "description": "Hours after which disconnected VPN clients will be automatically deleted. If `0`, disconnected VPN clients will be deleted immediately.", + "computed": true }, { - "name": "access_tags", + "name": "client_dns_server_ips", "type": "TypeSet", - "description": "List of access management tags", + "description": "The DNS server addresses that will be provided to VPN clients connected to this VPN server. The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.", "optional": true, - "computed": true, "elem": { "type": "TypeString" } + }, + { + "name": "crn", + "type": "TypeString", + "description": "The CRN for this VPN server.", + "cloud_data_type": "crn", + "computed": true } ], "ibm_is_vpn_server_client": [ @@ -133629,38 +133560,6 @@ } ], "ibm_is_vpn_server_route": [ - { - "name": "health_state", - "type": "TypeString", - "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", - "computed": true - }, - { - "name": "lifecycle_reasons", - "type": "TypeList", - "description": "The reasons for the current lifecycle_state (if any).", - "computed": true, - "elem": { - "code": { - "name": "code", - "type": "TypeString", - "description": "A snake case string succinctly identifying the reason for this lifecycle state.", - "computed": true - }, - "message": { - "name": "message", - "type": "TypeString", - "description": "An explanation of the reason for this lifecycle state.", - "computed": true - }, - "more_info": { - "name": "more_info", - "type": "TypeString", - "description": "Link to documentation about the reason for this lifecycle state.", - "computed": true - } - } - }, { "name": "destination", "type": "TypeString", @@ -133695,9 +133594,9 @@ "computed": true }, { - "name": "lifecycle_state", + "name": "href", "type": "TypeString", - "description": "The lifecycle state of the VPN route.", + "description": "The URL for this VPN route.", "computed": true }, { @@ -133719,6 +133618,12 @@ "description": "The VPN route identifier.", "computed": true }, + { + "name": "health_state", + "type": "TypeString", + "description": "The health of this resource.- `ok`: Healthy- `degraded`: Suffering from compromised performance, capacity, or connectivity- `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated- `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.", + "computed": true + }, { "name": "health_reasons", "type": "TypeList", @@ -133745,30 +133650,59 @@ } }, { - "name": "href", + "name": "lifecycle_state", "type": "TypeString", - "description": "The URL for this VPN route.", + "description": "The lifecycle state of the VPN route.", "computed": true + }, + { + "name": "lifecycle_reasons", + "type": "TypeList", + "description": "The reasons for the current lifecycle_state (if any).", + "computed": true, + "elem": { + "code": { + "name": "code", + "type": "TypeString", + "description": "A snake case string succinctly identifying the reason for this lifecycle state.", + "computed": true + }, + "message": { + "name": "message", + "type": "TypeString", + "description": "An explanation of the reason for this lifecycle state.", + "computed": true + }, + "more_info": { + "name": "more_info", + "type": "TypeString", + "description": "Link to documentation about the reason for this lifecycle state.", + "computed": true + } + } } ], "ibm_kms_instance_policies": [ { - "name": "instance_id", - "type": "TypeString", - "description": "Key protect or hpcs instance GUID or CRN", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true, - "cloud_data_range": [ - "service:kms|hs-crypto" - ] - }, - { - "name": "dual_auth_delete", + "name": "key_create_import_access", "type": "TypeList", - "description": "Data associated with the dual authorization delete policy for instance", + "description": "Data associated with the key create import access policy for the instance", "optional": true, "elem": { + "create_root_key": { + "name": "create_root_key", + "type": "TypeBool", + "description": "If set to true, Key Protect allows you or any authorized users to create root keys in the instance.", + "default_value": true, + "optional": true + }, + "create_standard_key": { + "name": "create_standard_key", + "type": "TypeBool", + "description": "If set to true, Key Protect allows you or any authorized users to create standard keys in the instance.", + "default_value": true, + "optional": true + }, "created_by": { "name": "created_by", "type": "TypeString", @@ -133784,9 +133718,30 @@ "enabled": { "name": "enabled", "type": "TypeBool", - "description": "If set to true, Key Protect enables a dual authorization policy for the instance.", + "description": "If set to true, Key Protect enables a KCIA policy for the instance.", "required": true }, + "enforce_token": { + "name": "enforce_token", + "type": "TypeBool", + "description": "If set to true, the service prevents you or any authorized users from importing key material into the specified service instance without using an import token.", + "default_value": false, + "optional": true + }, + "import_root_key": { + "name": "import_root_key", + "type": "TypeBool", + "description": "If set to true, Key Protect allows you or any authorized users to import root keys into the instance.", + "default_value": true, + "optional": true + }, + "import_standard_key": { + "name": "import_standard_key", + "type": "TypeBool", + "description": "If set to true, Key Protect allows you or any authorized users to import standard keys into the instance.", + "default_value": true, + "optional": true + }, "last_updated": { "name": "last_updated", "type": "TypeString", @@ -133803,9 +133758,9 @@ "max_items": 1 }, { - "name": "rotation", + "name": "metrics", "type": "TypeList", - "description": "Data associated with the rotation policy for instance", + "description": "Data associated with the metric policy for instance", "optional": true, "elem": { "created_by": { @@ -133823,15 +133778,9 @@ "enabled": { "name": "enabled", "type": "TypeBool", - "description": "If set to true, Key Protect enables a rotation policy for the instance.", + "description": "If set to true, Key Protect enables a metrics policy on the instance.", "required": true }, - "interval_month": { - "name": "interval_month", - "type": "TypeInt", - "description": "Specifies the rotation time interval in months for the instance.", - "optional": true - }, "last_updated": { "name": "last_updated", "type": "TypeString", @@ -133848,25 +133797,22 @@ "max_items": 1 }, { - "name": "key_create_import_access", + "name": "instance_id", + "type": "TypeString", + "description": "Key protect or hpcs instance GUID or CRN", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true, + "cloud_data_range": [ + "service:kms|hs-crypto" + ] + }, + { + "name": "dual_auth_delete", "type": "TypeList", - "description": "Data associated with the key create import access policy for the instance", + "description": "Data associated with the dual authorization delete policy for instance", "optional": true, "elem": { - "create_root_key": { - "name": "create_root_key", - "type": "TypeBool", - "description": "If set to true, Key Protect allows you or any authorized users to create root keys in the instance.", - "default_value": true, - "optional": true - }, - "create_standard_key": { - "name": "create_standard_key", - "type": "TypeBool", - "description": "If set to true, Key Protect allows you or any authorized users to create standard keys in the instance.", - "default_value": true, - "optional": true - }, "created_by": { "name": "created_by", "type": "TypeString", @@ -133882,30 +133828,9 @@ "enabled": { "name": "enabled", "type": "TypeBool", - "description": "If set to true, Key Protect enables a KCIA policy for the instance.", + "description": "If set to true, Key Protect enables a dual authorization policy for the instance.", "required": true }, - "enforce_token": { - "name": "enforce_token", - "type": "TypeBool", - "description": "If set to true, the service prevents you or any authorized users from importing key material into the specified service instance without using an import token.", - "default_value": false, - "optional": true - }, - "import_root_key": { - "name": "import_root_key", - "type": "TypeBool", - "description": "If set to true, Key Protect allows you or any authorized users to import root keys into the instance.", - "default_value": true, - "optional": true - }, - "import_standard_key": { - "name": "import_standard_key", - "type": "TypeBool", - "description": "If set to true, Key Protect allows you or any authorized users to import standard keys into the instance.", - "default_value": true, - "optional": true - }, "last_updated": { "name": "last_updated", "type": "TypeString", @@ -133922,9 +133847,9 @@ "max_items": 1 }, { - "name": "metrics", + "name": "rotation", "type": "TypeList", - "description": "Data associated with the metric policy for instance", + "description": "Data associated with the rotation policy for instance", "optional": true, "elem": { "created_by": { @@ -133942,9 +133867,15 @@ "enabled": { "name": "enabled", "type": "TypeBool", - "description": "If set to true, Key Protect enables a metrics policy on the instance.", + "description": "If set to true, Key Protect enables a rotation policy for the instance.", "required": true }, + "interval_month": { + "name": "interval_month", + "type": "TypeInt", + "description": "Specifies the rotation time interval in months for the instance.", + "optional": true + }, "last_updated": { "name": "last_updated", "type": "TypeString", @@ -133963,23 +133894,27 @@ ], "ibm_kms_key": [ { - "name": "resource_crn", + "name": "resource_status", "type": "TypeString", - "description": "The crn of the resource", + "description": "The status of the resource", "computed": true }, { - "name": "resource_group_name", + "name": "instance_id", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true + "description": "Key protect or hpcs instance GUID or CRN", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true, + "cloud_data_range": [ + "service:kms|hs-crypto" + ] }, { - "name": "description", + "name": "key_id", "type": "TypeString", - "description": "description of the key", - "immutable": true, - "optional": true + "description": "Key ID", + "computed": true }, { "name": "type", @@ -133988,7 +133923,7 @@ "computed": true }, { - "name": "encrypted_nonce", + "name": "iv_value", "type": "TypeString", "description": "Only for imported root key", "immutable": true, @@ -134002,18 +133937,17 @@ "optional": true }, { - "name": "instance_crn", + "name": "expiration_date", "type": "TypeString", - "description": "Key protect or hpcs instance CRN", - "computed": true + "description": "The date the key material expires. The date format follows RFC 3339. You can set an expiration date on any key on its creation. A key moves into the Deactivated state within one hour past its expiration date, if one is assigned. If you create a key without specifying an expiration date, the key does not expire", + "immutable": true, + "optional": true }, { - "name": "key_ring_id", + "name": "instance_crn", "type": "TypeString", - "description": "Key Ring for the Key", - "default_value": "default", - "immutable": true, - "optional": true + "description": "Key protect or hpcs instance CRN", + "computed": true }, { "name": "endpoint_type", @@ -134023,16 +133957,21 @@ "computed": true }, { - "name": "expiration_date", + "name": "resource_name", "type": "TypeString", - "description": "The date the key material expires. The date format follows RFC 3339. You can set an expiration date on any key on its creation. A key moves into the Deactivated state within one hour past its expiration date, if one is assigned. If you create a key without specifying an expiration date, the key does not expire", - "immutable": true, - "optional": true + "description": "The name of the resource", + "computed": true }, { - "name": "resource_controller_url", + "name": "resource_crn", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", + "description": "The crn of the resource", + "computed": true + }, + { + "name": "resource_group_name", + "type": "TypeString", + "description": "The resource group name in which resource is provisioned", "computed": true }, { @@ -134043,16 +133982,9 @@ "required": true }, { - "name": "key_id", + "name": "description", "type": "TypeString", - "description": "Key ID", - "computed": true - }, - { - "name": "standard_key", - "type": "TypeBool", - "description": "Standard key type", - "default_value": false, + "description": "description of the key", "immutable": true, "optional": true }, @@ -134064,13 +133996,6 @@ "optional": true, "computed": true }, - { - "name": "iv_value", - "type": "TypeString", - "description": "Only for imported root key", - "immutable": true, - "optional": true - }, { "name": "crn", "type": "TypeString", @@ -134079,27 +134004,33 @@ "computed": true }, { - "name": "resource_name", + "name": "key_ring_id", "type": "TypeString", - "description": "The name of the resource", - "computed": true + "description": "Key Ring for the Key", + "default_value": "default", + "immutable": true, + "optional": true }, { - "name": "resource_status", - "type": "TypeString", - "description": "The status of the resource", - "computed": true + "name": "standard_key", + "type": "TypeBool", + "description": "Standard key type", + "default_value": false, + "immutable": true, + "optional": true }, { - "name": "instance_id", + "name": "encrypted_nonce", "type": "TypeString", - "description": "Key protect or hpcs instance GUID or CRN", - "cloud_data_type": "resource_instance", + "description": "Only for imported root key", "immutable": true, - "required": true, - "cloud_data_range": [ - "service:kms|hs-crypto" - ] + "optional": true + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", + "computed": true } ], "ibm_kms_key_alias": [ @@ -134146,28 +134077,31 @@ ], "ibm_kms_key_policies": [ { - "name": "alias", + "name": "instance_id", "type": "TypeString", - "optional": true + "description": "Key protect or hpcs instance GUID", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true, + "cloud_data_range": [ + "service:kms|hs-crypto" + ] }, { - "name": "endpoint_type", + "name": "alias", "type": "TypeString", - "description": "public or private", - "default_value": "public", - "immutable": true, "optional": true }, { - "name": "resource_status", + "name": "resource_name", "type": "TypeString", - "description": "The status of the resource", + "description": "The name of the resource", "computed": true }, { - "name": "resource_crn", + "name": "resource_status", "type": "TypeString", - "description": "The crn of the resource", + "description": "The status of the resource", "computed": true }, { @@ -134177,20 +134111,17 @@ "computed": true }, { - "name": "instance_id", + "name": "key_id", "type": "TypeString", - "description": "Key protect or hpcs instance GUID", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true, - "cloud_data_range": [ - "service:kms|hs-crypto" - ] + "description": "Key ID", + "optional": true }, { - "name": "key_id", + "name": "endpoint_type", "type": "TypeString", - "description": "Key ID", + "description": "public or private", + "default_value": "public", + "immutable": true, "optional": true }, { @@ -134302,9 +134233,9 @@ } }, { - "name": "resource_name", + "name": "resource_crn", "type": "TypeString", - "description": "The name of the resource", + "description": "The crn of the resource", "computed": true } ], @@ -134347,6 +134278,68 @@ } ], "ibm_kms_key_with_policy_overrides": [ + { + "name": "rotation", + "type": "TypeList", + "description": "Data associated with the key rotation policy", + "optional": true, + "computed": true, + "elem": { + "enabled": { + "name": "enabled", + "type": "TypeBool", + "description": "If set to true, Key Protect enables a rotation policy on a single key.", + "required": true + }, + "interval_month": { + "name": "interval_month", + "type": "TypeInt", + "description": "Specifies the key rotation time interval in months, with a minimum of 1, and a maximum of 12", + "required": true + } + } + }, + { + "name": "description", + "type": "TypeString", + "description": "description of the key", + "immutable": true, + "optional": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Type of service hs-crypto or kms", + "computed": true + }, + { + "name": "standard_key", + "type": "TypeBool", + "description": "Standard key type", + "default_value": false, + "immutable": true, + "optional": true + }, + { + "name": "force_delete", + "type": "TypeBool", + "description": "set to true to force delete the key", + "default_value": false, + "optional": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Crn of the key", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "instance_crn", + "type": "TypeString", + "description": "Key protect or HPCS instance CRN", + "computed": true + }, { "name": "expiration_date", "type": "TypeString", @@ -134355,9 +134348,30 @@ "optional": true }, { - "name": "key_id", + "name": "dual_auth_delete", + "type": "TypeList", + "description": "Data associated with the dual authorization delete policy.", + "optional": true, + "computed": true, + "elem": { + "enabled": { + "name": "enabled", + "type": "TypeBool", + "description": "If set to true, Key Protect enables a dual authorization policy on a single key.", + "required": true + } + } + }, + { + "name": "resource_name", "type": "TypeString", - "description": "Key ID", + "description": "The name of the resource", + "computed": true + }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", "computed": true }, { @@ -134376,12 +134390,11 @@ "computed": true }, { - "name": "payload", + "name": "encrypted_nonce", "type": "TypeString", - "secure": true, + "description": "Only for imported root key", "immutable": true, - "optional": true, - "computed": true + "optional": true }, { "name": "iv_value", @@ -134391,22 +134404,9 @@ "optional": true }, { - "name": "crn", - "type": "TypeString", - "description": "Crn of the key", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "resource_crn", + "name": "resource_status", "type": "TypeString", - "description": "The crn of the resource", + "description": "The status of the resource", "computed": true }, { @@ -134429,102 +134429,71 @@ "optional": true }, { - "name": "standard_key", - "type": "TypeBool", - "description": "Standard key type", - "default_value": false, - "immutable": true, - "optional": true - }, - { - "name": "resource_status", + "name": "key_id", "type": "TypeString", - "description": "The status of the resource", + "description": "Key ID", "computed": true }, { - "name": "resource_group_name", + "name": "payload", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "secure": true, + "immutable": true, + "optional": true, "computed": true }, { - "name": "rotation", - "type": "TypeList", - "description": "Data associated with the key rotation policy", - "optional": true, - "computed": true, - "elem": { - "enabled": { - "name": "enabled", - "type": "TypeBool", - "description": "If set to true, Key Protect enables a rotation policy on a single key.", - "required": true - }, - "interval_month": { - "name": "interval_month", - "type": "TypeInt", - "description": "Specifies the key rotation time interval in months, with a minimum of 1, and a maximum of 12", - "required": true - } - } + "name": "resource_crn", + "type": "TypeString", + "description": "The crn of the resource", + "computed": true }, { - "name": "resource_controller_url", + "name": "resource_group_name", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", + "description": "The resource group name in which resource is provisioned", "computed": true - }, + } + ], + "ibm_kp_key": [ { - "name": "description", + "name": "iv_value", "type": "TypeString", - "description": "description of the key", + "description": "Only for imported root key", "immutable": true, "optional": true }, { - "name": "type", + "name": "crn", "type": "TypeString", - "description": "Type of service hs-crypto or kms", + "description": "Crn of the key", + "cloud_data_type": "crn", "computed": true }, { - "name": "force_delete", - "type": "TypeBool", - "description": "set to true to force delete the key", - "default_value": false, - "optional": true + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true }, { - "name": "encrypted_nonce", + "name": "resource_group_name", "type": "TypeString", - "description": "Only for imported root key", - "immutable": true, - "optional": true + "description": "The resource group name in which resource is provisioned", + "computed": true }, { - "name": "instance_crn", + "name": "resource_controller_url", "type": "TypeString", - "description": "Key protect or HPCS instance CRN", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", "computed": true }, { - "name": "dual_auth_delete", - "type": "TypeList", - "description": "Data associated with the dual authorization delete policy.", - "optional": true, - "computed": true, - "elem": { - "enabled": { - "name": "enabled", - "type": "TypeBool", - "description": "If set to true, Key Protect enables a dual authorization policy on a single key.", - "required": true - } - } - } - ], - "ibm_kp_key": [ + "name": "key_id", + "type": "TypeString", + "description": "Key ID", + "computed": true + }, { "name": "force_delete", "type": "TypeBool", @@ -134532,13 +134501,6 @@ "default_value": false, "optional": true }, - { - "name": "encrypted_nonce", - "type": "TypeString", - "description": "Only for imported root key", - "immutable": true, - "optional": true - }, { "name": "standard_key", "type": "TypeBool", @@ -134547,25 +134509,6 @@ "immutable": true, "optional": true }, - { - "name": "key_id", - "type": "TypeString", - "description": "Key ID", - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Crn of the key", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, { "name": "resource_status", "type": "TypeString", @@ -134586,7 +134529,7 @@ "computed": true }, { - "name": "iv_value", + "name": "encrypted_nonce", "type": "TypeString", "description": "Only for imported root key", "immutable": true, @@ -134604,33 +134547,9 @@ "description": "Key name", "immutable": true, "required": true - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", - "computed": true - }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true } ], "ibm_lb": [ - { - "name": "subnet_id", - "type": "TypeInt", - "computed": true - }, - { - "name": "ssl_offload", - "type": "TypeBool", - "description": "boolean value true if SSL offload is enabled", - "default_value": false, - "optional": true - }, { "name": "tags", "type": "TypeSet", @@ -134642,10 +134561,16 @@ } }, { - "name": "connections", - "type": "TypeInt", - "description": "Connections value", - "required": true + "name": "hostname", + "type": "TypeString", + "computed": true + }, + { + "name": "ssl_offload", + "type": "TypeBool", + "description": "boolean value true if SSL offload is enabled", + "default_value": false, + "optional": true }, { "name": "datacenter", @@ -134654,6 +134579,14 @@ "immutable": true, "required": true }, + { + "name": "ha_enabled", + "type": "TypeBool", + "description": "true if High availability is enabled", + "default_value": false, + "immutable": true, + "optional": true + }, { "name": "security_certificate_id", "type": "TypeInt", @@ -134661,35 +134594,33 @@ "optional": true }, { - "name": "ssl_enabled", - "type": "TypeBool", + "name": "ip_address", + "type": "TypeString", "computed": true }, { - "name": "hostname", - "type": "TypeString", + "name": "subnet_id", + "type": "TypeInt", "computed": true }, { - "name": "ha_enabled", + "name": "dedicated", "type": "TypeBool", - "description": "true if High availability is enabled", + "description": "Boolena value true if Load balncer is dedicated type", "default_value": false, "immutable": true, "optional": true }, { - "name": "ip_address", - "type": "TypeString", + "name": "ssl_enabled", + "type": "TypeBool", "computed": true }, { - "name": "dedicated", - "type": "TypeBool", - "description": "Boolena value true if Load balncer is dedicated type", - "default_value": false, - "immutable": true, - "optional": true + "name": "connections", + "type": "TypeInt", + "description": "Connections value", + "required": true } ], "ibm_lb_service": [ @@ -134744,15 +134675,31 @@ ], "ibm_lb_service_group": [ { - "name": "virtual_server_id", + "name": "allocation", "type": "TypeInt", - "description": "Virtual server ID", - "computed": true + "description": "Allocation type", + "required": true }, { - "name": "service_group_id", + "name": "timeout", "type": "TypeInt", - "description": "Service group ID", + "description": "Timeout value", + "optional": true + }, + { + "name": "tags", + "type": "TypeSet", + "description": "List of tags", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "virtual_server_id", + "type": "TypeInt", + "description": "Virtual server ID", "computed": true }, { @@ -134762,6 +134709,12 @@ "immutable": true, "required": true }, + { + "name": "port", + "type": "TypeInt", + "description": "Port number", + "required": true + }, { "name": "routing_method", "type": "TypeString", @@ -134775,35 +134728,43 @@ "required": true }, { - "name": "timeout", + "name": "service_group_id", "type": "TypeInt", - "description": "Timeout value", - "optional": true + "description": "Service group ID", + "computed": true + } + ], + "ibm_lb_vpx": [ + { + "name": "public_subnet", + "type": "TypeString", + "description": "Public subnet", + "immutable": true, + "optional": true, + "computed": true }, { - "name": "allocation", - "type": "TypeInt", - "description": "Allocation type", - "required": true + "name": "vip_pool", + "type": "TypeList", + "description": "List of VIP ids", + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "port", - "type": "TypeInt", - "description": "Port number", + "name": "datacenter", + "type": "TypeString", + "description": "Datacenter name", + "immutable": true, "required": true }, { - "name": "tags", - "type": "TypeSet", - "description": "List of tags", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - } - ], - "ibm_lb_vpx": [ + "name": "type", + "type": "TypeString", + "description": "Type of the VPX", + "computed": true + }, { "name": "speed", "type": "TypeInt", @@ -134812,12 +134773,11 @@ "required": true }, { - "name": "public_subnet", - "type": "TypeString", - "description": "Public subnet", + "name": "ip_count", + "type": "TypeInt", + "description": "IP address count", "immutable": true, - "optional": true, - "computed": true + "required": true }, { "name": "name", @@ -134825,6 +134785,14 @@ "description": "Name", "computed": true }, + { + "name": "private_vlan_id", + "type": "TypeInt", + "description": "Private VLAN id", + "immutable": true, + "optional": true, + "computed": true + }, { "name": "private_subnet", "type": "TypeString", @@ -134833,6 +134801,12 @@ "optional": true, "computed": true }, + { + "name": "management_ip_address", + "type": "TypeString", + "description": "management IP address", + "computed": true + }, { "name": "tags", "type": "TypeSet", @@ -134843,19 +134817,6 @@ "type": "TypeString" } }, - { - "name": "type", - "type": "TypeString", - "description": "Type of the VPX", - "computed": true - }, - { - "name": "datacenter", - "type": "TypeString", - "description": "Datacenter name", - "immutable": true, - "required": true - }, { "name": "public_vlan_id", "type": "TypeInt", @@ -134864,22 +134825,6 @@ "optional": true, "computed": true }, - { - "name": "vip_pool", - "type": "TypeList", - "description": "List of VIP ids", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "version", - "type": "TypeString", - "description": "version info", - "immutable": true, - "required": true - }, { "name": "plan", "type": "TypeString", @@ -134888,25 +134833,11 @@ "required": true }, { - "name": "ip_count", - "type": "TypeInt", - "description": "IP address count", + "name": "version", + "type": "TypeString", + "description": "version info", "immutable": true, "required": true - }, - { - "name": "private_vlan_id", - "type": "TypeInt", - "description": "Private VLAN id", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "management_ip_address", - "type": "TypeString", - "description": "management IP address", - "computed": true } ], "ibm_lb_vpx_ha": [ @@ -134944,16 +134875,9 @@ ], "ibm_lb_vpx_service": [ { - "name": "name", - "type": "TypeString", - "description": "name", - "immutable": true, - "required": true - }, - { - "name": "destination_ip_address", + "name": "vip_id", "type": "TypeString", - "description": "Destination IP Address", + "description": "VIP id", "immutable": true, "required": true }, @@ -134965,15 +134889,22 @@ "required": true }, { - "name": "connection_limit", - "type": "TypeInt", - "description": "Number of connections limit", + "name": "health_check", + "type": "TypeString", + "description": "Health check info", "required": true }, { - "name": "vip_id", + "name": "name", "type": "TypeString", - "description": "VIP id", + "description": "name", + "immutable": true, + "required": true + }, + { + "name": "destination_ip_address", + "type": "TypeString", + "description": "Destination IP Address", "immutable": true, "required": true }, @@ -134984,9 +134915,9 @@ "required": true }, { - "name": "health_check", - "type": "TypeString", - "description": "Health check info", + "name": "connection_limit", + "type": "TypeInt", + "description": "Number of connections limit", "required": true }, { @@ -135009,16 +134940,16 @@ ], "ibm_lb_vpx_vip": [ { - "name": "name", - "type": "TypeString", - "description": "Name", + "name": "source_port", + "type": "TypeInt", + "description": "Source Port number", "immutable": true, "required": true }, { - "name": "source_port", - "type": "TypeInt", - "description": "Source Port number", + "name": "type", + "type": "TypeString", + "description": "Type", "immutable": true, "required": true }, @@ -135028,6 +134959,16 @@ "description": "Virtual IP address", "required": true }, + { + "name": "tags", + "type": "TypeSet", + "description": "List of tags", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, { "name": "nad_controller_id", "type": "TypeInt", @@ -135035,6 +134976,12 @@ "immutable": true, "required": true }, + { + "name": "load_balancing_method", + "type": "TypeString", + "description": "Load balancing method", + "required": true + }, { "name": "persistence", "type": "TypeString", @@ -135042,38 +134989,140 @@ "optional": true, "computed": true }, + { + "name": "name", + "type": "TypeString", + "description": "Name", + "immutable": true, + "required": true + }, { "name": "security_certificate_id", "type": "TypeInt", "description": "security certificate ID", "immutable": true, "optional": true + } + ], + "ibm_lbaas": [ + { + "name": "datacenter", + "type": "TypeString", + "computed": true }, { - "name": "tags", + "name": "subnets", + "type": "TypeList", + "description": "The subnet where this Load Balancer will be provisioned.", + "immutable": true, + "required": true, + "elem": { + "type": "TypeInt" + }, + "max_items": 1, + "min_items": 1 + }, + { + "name": "vip", + "type": "TypeString", + "description": "The virtual ip address of this load balancer", + "computed": true + }, + { + "name": "wait_time_minutes", + "type": "TypeInt", + "default_value": 90, + "optional": true + }, + { + "name": "description", + "type": "TypeString", + "description": "Description of a load balancer.", + "optional": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The operation status 'ONLINE' or 'OFFLINE' of a load balancer.", + "computed": true + }, + { + "name": "use_system_public_ip_pool", + "type": "TypeBool", + "description": "\"in public loadbalancer - Public IP address allocation done by system public IP pool or public subnet.\"", + "optional": true, + "computed": true + }, + { + "name": "health_monitors", + "type": "TypeList", + "computed": true, + "elem": { + "interval": { + "name": "interval", + "type": "TypeInt", + "computed": true + }, + "max_retries": { + "name": "max_retries", + "type": "TypeInt", + "computed": true + }, + "monitor_id": { + "name": "monitor_id", + "type": "TypeString", + "computed": true + }, + "port": { + "name": "port", + "type": "TypeInt", + "computed": true + }, + "protocol": { + "name": "protocol", + "type": "TypeString", + "computed": true + }, + "timeout": { + "name": "timeout", + "type": "TypeInt", + "computed": true + }, + "url_path": { + "name": "url_path", + "type": "TypeString", + "computed": true + } + } + }, + { + "name": "name", + "type": "TypeString", + "description": "The load balancer's name.", + "immutable": true, + "required": true + }, + { + "name": "ssl_ciphers", "type": "TypeSet", - "description": "List of tags", - "cloud_data_type": "tags", "optional": true, + "computed": true, "elem": { "type": "TypeString" } }, { - "name": "load_balancing_method", + "name": "resource_controller_url", "type": "TypeString", - "description": "Load balancing method", - "required": true + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true }, { - "name": "type", + "name": "resource_status", "type": "TypeString", - "description": "Type", - "immutable": true, - "required": true - } - ], - "ibm_lbaas": [ + "description": "The status of the resource", + "computed": true + }, { "name": "type", "type": "TypeString", @@ -135145,124 +135194,6 @@ } } }, - { - "name": "ssl_ciphers", - "type": "TypeSet", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "status", - "type": "TypeString", - "description": "The operation status 'ONLINE' or 'OFFLINE' of a load balancer.", - "computed": true - }, - { - "name": "vip", - "type": "TypeString", - "description": "The virtual ip address of this load balancer", - "computed": true - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - }, - { - "name": "resource_status", - "type": "TypeString", - "description": "The status of the resource", - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The load balancer's name.", - "immutable": true, - "required": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Description of a load balancer.", - "optional": true - }, - { - "name": "subnets", - "type": "TypeList", - "description": "The subnet where this Load Balancer will be provisioned.", - "immutable": true, - "required": true, - "elem": { - "type": "TypeInt" - }, - "max_items": 1, - "min_items": 1 - }, - { - "name": "datacenter", - "type": "TypeString", - "computed": true - }, - { - "name": "use_system_public_ip_pool", - "type": "TypeBool", - "description": "\"in public loadbalancer - Public IP address allocation done by system public IP pool or public subnet.\"", - "optional": true, - "computed": true - }, - { - "name": "wait_time_minutes", - "type": "TypeInt", - "default_value": 90, - "optional": true - }, - { - "name": "health_monitors", - "type": "TypeList", - "computed": true, - "elem": { - "interval": { - "name": "interval", - "type": "TypeInt", - "computed": true - }, - "max_retries": { - "name": "max_retries", - "type": "TypeInt", - "computed": true - }, - "monitor_id": { - "name": "monitor_id", - "type": "TypeString", - "computed": true - }, - "port": { - "name": "port", - "type": "TypeInt", - "computed": true - }, - "protocol": { - "name": "protocol", - "type": "TypeString", - "computed": true - }, - "timeout": { - "name": "timeout", - "type": "TypeInt", - "computed": true - }, - "url_path": { - "name": "url_path", - "type": "TypeString", - "computed": true - } - } - }, { "name": "resource_name", "type": "TypeString", @@ -135271,13 +135202,6 @@ } ], "ibm_lbaas_health_monitor": [ - { - "name": "lbaas_id", - "type": "TypeString", - "description": "LBAAS id", - "immutable": true, - "required": true - }, { "name": "protocol", "type": "TypeString", @@ -135324,6 +135248,13 @@ "description": "Monitor ID", "immutable": true, "required": true + }, + { + "name": "lbaas_id", + "type": "TypeString", + "description": "LBAAS id", + "immutable": true, + "required": true } ], "ibm_lbaas_server_instance_attachment": [ @@ -135456,12 +135387,6 @@ "description": "Id of the ibm_metrics_router_settings", "computed": true }, - { - "name": "private_api_endpoint_only", - "type": "TypeBool", - "description": "If you set this true then you cannot access api through public network.", - "optional": true - }, { "name": "default_targets", "type": "TypeList", @@ -135503,28 +135428,15 @@ "max_length": 256, "matches": "^[a-zA-Z0-9 \\-_]+$", "optional": true - } - ], - "ibm_metrics_router_target": [ - { - "name": "destination_crn", - "type": "TypeString", - "description": "The CRN of a destination service instance or resource. Ensure you have a service authorization between IBM Cloud Metrics Routing and your Cloud resource. Read [S2S authorization](https://cloud.ibm.com/docs/metrics-router?topic=metrics-router-target-monitoring\u0026interface=ui#target-monitoring-ui) for details.", - "required": true, - "min_length": 3, - "max_length": 1000, - "matches": "^[a-zA-Z0-9 \\-._:\\/]+$" }, { - "name": "region", - "type": "TypeString", - "description": "Include this optional field if you want to create a target in a different region other than the one you are connected.", - "immutable": true, - "min_length": 3, - "max_length": 1000, - "matches": "^[a-zA-Z0-9 \\-._:]+$", + "name": "private_api_endpoint_only", + "type": "TypeBool", + "description": "If you set this true then you cannot access api through public network.", "optional": true - }, + } + ], + "ibm_metrics_router_target": [ { "name": "crn", "type": "TypeString", @@ -135558,27 +135470,32 @@ "min_length": 1, "max_length": 1000, "matches": "^[a-zA-Z0-9 \\-._:]+$" - } - ], - "ibm_multi_vlan_firewall": [ + }, { - "name": "pod", + "name": "destination_crn", "type": "TypeString", - "description": "POD name", - "immutable": true, - "required": true + "description": "The CRN of a destination service instance or resource. Ensure you have a service authorization between IBM Cloud Metrics Routing and your Cloud resource. Read [S2S authorization](https://cloud.ibm.com/docs/metrics-router?topic=metrics-router-target-monitoring\u0026interface=ui#target-monitoring-ui) for details.", + "required": true, + "min_length": 3, + "max_length": 1000, + "matches": "^[a-zA-Z0-9 \\-._:\\/]+$" }, { - "name": "name", + "name": "region", "type": "TypeString", - "description": "name", + "description": "Include this optional field if you want to create a target in a different region other than the one you are connected.", "immutable": true, - "required": true - }, + "min_length": 3, + "max_length": 1000, + "matches": "^[a-zA-Z0-9 \\-._:]+$", + "optional": true + } + ], + "ibm_multi_vlan_firewall": [ { - "name": "public_vlan_id", + "name": "private_vlan_id", "type": "TypeInt", - "description": "Public VLAN id", + "description": "Private VLAN id", "computed": true }, { @@ -135589,28 +135506,38 @@ "required": true }, { - "name": "public_ip", - "type": "TypeString", - "description": "Public IP Address", + "name": "addon_configuration", + "type": "TypeList", + "description": "High Availability - [Web Filtering Add-on, NGFW Add-on, AV Add-on] or [Web Filtering Add-on, NGFW Add-on, AV Add-on]", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "public_vlan_id", + "type": "TypeInt", + "description": "Public VLAN id", "computed": true }, { - "name": "private_ip", + "name": "pod", "type": "TypeString", - "description": "Private IP Address", - "computed": true + "description": "POD name", + "immutable": true, + "required": true }, { - "name": "datacenter", + "name": "name", "type": "TypeString", - "description": "Datacenter name", + "description": "name", "immutable": true, "required": true }, { - "name": "private_vlan_id", - "type": "TypeInt", - "description": "Private VLAN id", + "name": "public_ip", + "type": "TypeString", + "description": "Public IP Address", "computed": true }, { @@ -135619,6 +135546,12 @@ "description": "Public IPV6 IP", "computed": true }, + { + "name": "private_ip", + "type": "TypeString", + "description": "Private IP Address", + "computed": true + }, { "name": "username", "type": "TypeString", @@ -135633,39 +135566,92 @@ "computed": true }, { - "name": "addon_configuration", - "type": "TypeList", - "description": "High Availability - [Web Filtering Add-on, NGFW Add-on, AV Add-on] or [Web Filtering Add-on, NGFW Add-on, AV Add-on]", - "optional": true, - "elem": { - "type": "TypeString" - } + "name": "datacenter", + "type": "TypeString", + "description": "Datacenter name", + "immutable": true, + "required": true } ], "ibm_network_gateway": [ { - "name": "private_ip_address_id", + "name": "public_ip_address_id", + "type": "TypeInt", + "computed": true + }, + { + "name": "public_ipv6_address_id", + "type": "TypeInt", + "computed": true + }, + { + "name": "public_vlan_id", "type": "TypeInt", "computed": true }, + { + "name": "associated_vlans", + "type": "TypeList", + "description": "The VLAN instances associated with this Network Gateway", + "computed": true, + "elem": { + "bypass": { + "name": "bypass", + "type": "TypeBool", + "description": "Indicates if the VLAN is in bypass or routed modes", + "computed": true + }, + "network_vlan_id": { + "name": "network_vlan_id", + "type": "TypeInt", + "description": "The Identifier of the VLAN which is associated", + "computed": true + }, + "vlan_id": { + "name": "vlan_id", + "type": "TypeInt", + "computed": true + } + } + }, { "name": "private_ipv4_address", "type": "TypeString", "computed": true }, + { + "name": "ssh_key_ids", + "type": "TypeList", + "immutable": true, + "optional": true, + "elem": { + "type": "TypeInt" + } + }, + { + "name": "post_install_script_uri", + "type": "TypeString", + "immutable": true, + "optional": true + }, + { + "name": "private_ip_address_id", + "type": "TypeInt", + "computed": true + }, { "name": "public_ipv4_address", "type": "TypeString", "computed": true }, { - "name": "public_ip_address_id", + "name": "private_vlan_id", "type": "TypeInt", "computed": true }, { - "name": "public_ipv6_address_id", - "type": "TypeInt", + "name": "status", + "type": "TypeString", "computed": true }, { @@ -135894,64 +135880,16 @@ "type": "TypeString", "description": "The name of the gateway", "required": true - }, - { - "name": "ssh_key_ids", - "type": "TypeList", - "immutable": true, - "optional": true, - "elem": { - "type": "TypeInt" - } - }, - { - "name": "post_install_script_uri", - "type": "TypeString", - "immutable": true, - "optional": true - }, - { - "name": "private_vlan_id", - "type": "TypeInt", - "computed": true - }, - { - "name": "public_vlan_id", - "type": "TypeInt", - "computed": true - }, - { - "name": "status", - "type": "TypeString", - "computed": true - }, - { - "name": "associated_vlans", - "type": "TypeList", - "description": "The VLAN instances associated with this Network Gateway", - "computed": true, - "elem": { - "bypass": { - "name": "bypass", - "type": "TypeBool", - "description": "Indicates if the VLAN is in bypass or routed modes", - "computed": true - }, - "network_vlan_id": { - "name": "network_vlan_id", - "type": "TypeInt", - "description": "The Identifier of the VLAN which is associated", - "computed": true - }, - "vlan_id": { - "name": "vlan_id", - "type": "TypeInt", - "computed": true - } - } } ], "ibm_network_gateway_vlan_association": [ + { + "name": "bypass", + "type": "TypeBool", + "description": "Indicates if the VLAN should be in bypass or routed modes", + "default_value": true, + "optional": true + }, { "name": "gateway_id", "type": "TypeInt", @@ -135965,13 +135903,6 @@ "description": "The Identifier of the VLAN to be associated", "immutable": true, "required": true - }, - { - "name": "bypass", - "type": "TypeBool", - "description": "Indicates if the VLAN should be in bypass or routed modes", - "default_value": true, - "optional": true } ], "ibm_network_interface_sg_attachment": [ @@ -135999,12 +135930,6 @@ } ], "ibm_network_public_ip": [ - { - "name": "routes_to", - "type": "TypeString", - "description": "Route info", - "required": true - }, { "name": "tags", "type": "TypeSet", @@ -136026,55 +135951,15 @@ "type": "TypeString", "description": "IP Address", "computed": true - } - ], - "ibm_network_vlan": [ - { - "name": "type", - "type": "TypeString", - "description": "VLAN type", - "immutable": true, - "required": true - }, - { - "name": "name", - "type": "TypeString", - "description": "VLAN name", - "optional": true - }, - { - "name": "router_hostname", - "type": "TypeString", - "description": "router host name", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "vlan_number", - "type": "TypeInt", - "description": "VLAN number", - "computed": true - }, - { - "name": "softlayer_managed", - "type": "TypeBool", - "description": "Zzset to true if VLAN is managed by softlayer", - "computed": true - }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true }, { - "name": "datacenter", + "name": "routes_to", "type": "TypeString", - "description": "Datacenter name", - "immutable": true, + "description": "Route info", "required": true - }, + } + ], + "ibm_network_vlan": [ { "name": "child_resource_count", "type": "TypeInt", @@ -136128,6 +136013,52 @@ "type": "TypeString", "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true + }, + { + "name": "datacenter", + "type": "TypeString", + "description": "Datacenter name", + "immutable": true, + "required": true + }, + { + "name": "type", + "type": "TypeString", + "description": "VLAN type", + "immutable": true, + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "VLAN name", + "optional": true + }, + { + "name": "softlayer_managed", + "type": "TypeBool", + "description": "Zzset to true if VLAN is managed by softlayer", + "computed": true + }, + { + "name": "resource_name", + "type": "TypeString", + "description": "The name of the resource", + "computed": true + }, + { + "name": "router_hostname", + "type": "TypeString", + "description": "router host name", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "vlan_number", + "type": "TypeInt", + "description": "VLAN number", + "computed": true } ], "ibm_network_vlan_spanning": [ @@ -136140,18 +136071,10 @@ ], "ibm_ob_logging": [ { - "name": "cluster", - "type": "TypeString", - "description": "Name or ID of the cluster to be used.", - "immutable": true, - "required": true - }, - { - "name": "instance_id", + "name": "namespace", "type": "TypeString", - "description": "ID of the LogDNA service instance to latch", - "cloud_data_type": "resource_instance", - "required": true + "description": "Namespace", + "computed": true }, { "name": "logdna_ingestion_key", @@ -136161,15 +136084,10 @@ "computed": true }, { - "name": "instance_name", - "type": "TypeString", - "description": "LogDNA instance Name", - "computed": true - }, - { - "name": "agent_key", + "name": "crn", "type": "TypeString", - "description": "Agent key name", + "description": "CRN", + "cloud_data_type": "crn", "computed": true }, { @@ -136179,22 +136097,21 @@ "computed": true }, { - "name": "namespace", + "name": "daemonset_name", "type": "TypeString", - "description": "Namespace", + "description": "Daemon Set Name", "computed": true }, { - "name": "private_endpoint", - "type": "TypeBool", - "description": "Add this option to connect to your LogDNA service instance through the private service endpoint", - "optional": true, + "name": "instance_name", + "type": "TypeString", + "description": "LogDNA instance Name", "computed": true }, { - "name": "daemonset_name", + "name": "agent_key", "type": "TypeString", - "description": "Daemon Set Name", + "description": "Agent key name", "computed": true }, { @@ -136203,15 +136120,6 @@ "description": "Agent Namespace", "computed": true }, - { - "name": "crn", - "type": "TypeString", - "description": "CRN", - "cloud_data_type": "crn", - "computed": true - } - ], - "ibm_ob_monitoring": [ { "name": "cluster", "type": "TypeString", @@ -136222,10 +136130,19 @@ { "name": "instance_id", "type": "TypeString", - "description": "ID of the Sysdig service instance to latch", + "description": "ID of the LogDNA service instance to latch", "cloud_data_type": "resource_instance", "required": true }, + { + "name": "private_endpoint", + "type": "TypeBool", + "description": "Add this option to connect to your LogDNA service instance through the private service endpoint", + "optional": true, + "computed": true + } + ], + "ibm_ob_monitoring": [ { "name": "private_endpoint", "type": "TypeBool", @@ -136234,9 +136151,9 @@ "computed": true }, { - "name": "instance_name", + "name": "agent_key", "type": "TypeString", - "description": "Sysdig instance Name", + "description": "Agent key name", "computed": true }, { @@ -136245,13 +136162,6 @@ "description": "Agent Namespace", "computed": true }, - { - "name": "crn", - "type": "TypeString", - "description": "CRN", - "cloud_data_type": "crn", - "computed": true - }, { "name": "discovered_agent", "type": "TypeBool", @@ -136264,6 +136174,27 @@ "description": "Namespace", "computed": true }, + { + "name": "crn", + "type": "TypeString", + "description": "CRN", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "cluster", + "type": "TypeString", + "description": "Name or ID of the cluster to be used.", + "immutable": true, + "required": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "ID of the Sysdig service instance to latch", + "cloud_data_type": "resource_instance", + "required": true + }, { "name": "sysdig_access_key", "type": "TypeString", @@ -136278,9 +136209,9 @@ "computed": true }, { - "name": "agent_key", + "name": "instance_name", "type": "TypeString", - "description": "Agent key name", + "description": "Sysdig instance Name", "computed": true } ], @@ -136306,24 +136237,6 @@ } ], "ibm_org": [ - { - "name": "auditors", - "type": "TypeSet", - "description": "The IBMID of the users who will have auditor role in this org, ex - user@example.com", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "users", - "type": "TypeSet", - "description": "The IBMID of the users who will have user role in this org, ex - user@example.com", - "optional": true, - "elem": { - "type": "TypeString" - } - }, { "name": "tags", "type": "TypeSet", @@ -136363,15 +136276,34 @@ "elem": { "type": "TypeString" } + }, + { + "name": "auditors", + "type": "TypeSet", + "description": "The IBMID of the users who will have auditor role in this org, ex - user@example.com", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "users", + "type": "TypeSet", + "description": "The IBMID of the users who will have user role in this org, ex - user@example.com", + "optional": true, + "elem": { + "type": "TypeString" + } } ], "ibm_pi_capture": [ { - "name": "pi_instance_name", + "name": "pi_capture_cloud_storage_access_key", "type": "TypeString", - "description": "Instance Name of the Power VM", + "description": "Name of Cloud Storage Access Key", + "secure": true, "immutable": true, - "required": true + "optional": true }, { "name": "pi_capture_cloud_storage_secret_key", @@ -136388,14 +136320,6 @@ "immutable": true, "optional": true }, - { - "name": "pi_capture_cloud_storage_access_key", - "type": "TypeString", - "description": "Name of Cloud Storage Access Key", - "secure": true, - "immutable": true, - "optional": true - }, { "name": "image_id", "type": "TypeString", @@ -136410,16 +136334,30 @@ "required": true }, { - "name": "pi_capture_name", + "name": "pi_capture_destination", "type": "TypeString", - "description": "Name of the capture to create. Note : this must be unique", + "description": "Destination for the deployable image", "immutable": true, "required": true }, { - "name": "pi_capture_destination", + "name": "pi_capture_cloud_storage_region", "type": "TypeString", - "description": "Destination for the deployable image", + "description": "List of Regions to use", + "immutable": true, + "optional": true + }, + { + "name": "pi_instance_name", + "type": "TypeString", + "description": "Instance Name of the Power VM", + "immutable": true, + "required": true + }, + { + "name": "pi_capture_name", + "type": "TypeString", + "description": "Name of the capture to create. Note : this must be unique", "immutable": true, "required": true }, @@ -136432,39 +136370,52 @@ "elem": { "type": "TypeString" } - }, - { - "name": "pi_capture_cloud_storage_region", - "type": "TypeString", - "description": "List of Regions to use", - "immutable": true, - "optional": true } ], "ibm_pi_cloud_connection": [ { - "name": "pi_cloud_connection_global_routing", - "type": "TypeBool", - "description": "Enable global routing for this cloud connection", - "default_value": false, + "name": "port", + "type": "TypeString", + "description": "Port", + "computed": true + }, + { + "name": "pi_cloud_connection_gre_destination_address", + "type": "TypeString", + "description": "GRE destination IP address", "optional": true }, { - "name": "ibm_ip_address", + "name": "pi_cloud_connection_vpc_crns", + "type": "TypeSet", + "description": "Set of VPCs to attach to this cloud connection", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "cloud_connection_id", "type": "TypeString", - "description": "IBM IP address", + "description": "Cloud connection ID", "computed": true }, { - "name": "user_ip_address", + "name": "gre_source_address", "type": "TypeString", - "description": "User IP address", + "description": "GRE auto-assigned source IP address", "computed": true }, { - "name": "pi_cloud_instance_id", + "name": "connection_mode", "type": "TypeString", - "description": "PI cloud instance ID", + "description": "Type of service the gateway is attached to", + "computed": true + }, + { + "name": "pi_cloud_connection_name", + "type": "TypeString", + "description": "Name of the cloud connection", "required": true }, { @@ -136473,13 +136424,6 @@ "description": "Speed of the cloud connection (speed in megabits per second)", "required": true }, - { - "name": "pi_cloud_connection_metered", - "type": "TypeBool", - "description": "Enable metered for this cloud connection", - "default_value": false, - "optional": true - }, { "name": "pi_cloud_connection_classic_enabled", "type": "TypeBool", @@ -136488,21 +136432,11 @@ "optional": true }, { - "name": "pi_cloud_connection_vpc_enabled", - "type": "TypeBool", - "description": "Enable VPC for this cloud connection", - "default_value": false, + "name": "pi_cloud_connection_gre_cidr", + "type": "TypeString", + "description": "GRE network in CIDR notation", "optional": true }, - { - "name": "pi_cloud_connection_vpc_crns", - "type": "TypeSet", - "description": "Set of VPCs to attach to this cloud connection", - "optional": true, - "elem": { - "type": "TypeString" - } - }, { "name": "pi_cloud_connection_transit_enabled", "type": "TypeBool", @@ -136511,51 +136445,35 @@ "optional": true }, { - "name": "pi_cloud_connection_name", + "name": "pi_cloud_instance_id", "type": "TypeString", - "description": "Name of the cloud connection", + "description": "PI cloud instance ID", "required": true }, { - "name": "status", - "type": "TypeString", - "description": "Link status", - "computed": true - }, - { - "name": "connection_mode", - "type": "TypeString", - "description": "Type of service the gateway is attached to", - "computed": true - }, - { - "name": "cloud_connection_id", - "type": "TypeString", - "description": "Cloud connection ID", - "computed": true - }, - { - "name": "pi_cloud_connection_gre_cidr", - "type": "TypeString", - "description": "GRE network in CIDR notation", + "name": "pi_cloud_connection_global_routing", + "type": "TypeBool", + "description": "Enable global routing for this cloud connection", + "default_value": false, "optional": true }, { - "name": "pi_cloud_connection_gre_destination_address", - "type": "TypeString", - "description": "GRE destination IP address", + "name": "pi_cloud_connection_metered", + "type": "TypeBool", + "description": "Enable metered for this cloud connection", + "default_value": false, "optional": true }, { - "name": "port", + "name": "ibm_ip_address", "type": "TypeString", - "description": "Port", + "description": "IBM IP address", "computed": true }, { - "name": "gre_source_address", + "name": "user_ip_address", "type": "TypeString", - "description": "GRE auto-assigned source IP address", + "description": "User IP address", "computed": true }, { @@ -136567,6 +136485,19 @@ "elem": { "type": "TypeString" } + }, + { + "name": "pi_cloud_connection_vpc_enabled", + "type": "TypeBool", + "description": "Enable VPC for this cloud connection", + "default_value": false, + "optional": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Link status", + "computed": true } ], "ibm_pi_cloud_connection_network_attach": [ @@ -136613,40 +136544,6 @@ } ], "ibm_pi_dhcp": [ - { - "name": "pi_dhcp_snat_enabled", - "type": "TypeBool", - "description": "Indicates if SNAT will be enabled for the DHCP service", - "default_value": true, - "immutable": true, - "optional": true - }, - { - "name": "dhcp_id", - "type": "TypeString", - "description": "The ID of the DHCP Server", - "computed": true - }, - { - "name": "network_name", - "type": "TypeString", - "description": "The name of the DHCP Server private network", - "computed": true - }, - { - "name": "pi_cidr", - "type": "TypeString", - "description": "Optional cidr for DHCP private network", - "immutable": true, - "optional": true - }, - { - "name": "pi_cloud_connection_id", - "type": "TypeString", - "description": "Optional cloud connection uuid to connect with DHCP private network", - "immutable": true, - "optional": true - }, { "name": "pi_dns_server", "type": "TypeString", @@ -136655,9 +136552,10 @@ "optional": true }, { - "name": "pi_dhcp_name", - "type": "TypeString", - "description": "Optional name of DHCP Service (will be prefixed by DHCP identifier)", + "name": "pi_dhcp_snat_enabled", + "type": "TypeBool", + "description": "Indicates if SNAT will be enabled for the DHCP service", + "default_value": true, "immutable": true, "optional": true }, @@ -136687,12 +136585,6 @@ "description": "The ID of the DHCP Server private network (deprecated - replaced by network_id)", "computed": true }, - { - "name": "network_id", - "type": "TypeString", - "description": "The ID of the DHCP Server private network", - "computed": true - }, { "name": "status", "type": "TypeString", @@ -136705,37 +136597,58 @@ "description": "PI cloud instance ID", "immutable": true, "required": true - } - ], - "ibm_pi_ike_policy": [ + }, { - "name": "pi_policy_encryption", + "name": "pi_cidr", "type": "TypeString", - "description": "Encryption of the IKE Policy", - "required": true + "description": "Optional cidr for DHCP private network", + "immutable": true, + "optional": true }, { - "name": "pi_policy_preshared_key", + "name": "pi_cloud_connection_id", "type": "TypeString", - "description": "Preshared key used in this IKE Policy (length of preshared key must be even)", - "required": true + "description": "Optional cloud connection uuid to connect with DHCP private network", + "immutable": true, + "optional": true }, { - "name": "policy_id", + "name": "pi_dhcp_name", "type": "TypeString", - "description": "IKE Policy ID", + "description": "Optional name of DHCP Service (will be prefixed by DHCP identifier)", + "immutable": true, + "optional": true + }, + { + "name": "dhcp_id", + "type": "TypeString", + "description": "The ID of the DHCP Server", "computed": true }, { - "name": "pi_cloud_instance_id", + "name": "network_id", "type": "TypeString", - "description": "PI cloud instance ID", - "required": true + "description": "The ID of the DHCP Server private network", + "computed": true }, { - "name": "pi_policy_name", + "name": "network_name", "type": "TypeString", - "description": "Name of the IKE Policy", + "description": "The name of the DHCP Server private network", + "computed": true + } + ], + "ibm_pi_ike_policy": [ + { + "name": "pi_policy_encryption", + "type": "TypeString", + "description": "Encryption of the IKE Policy", + "required": true + }, + { + "name": "pi_policy_version", + "type": "TypeInt", + "description": "Version of the IKE Policy", "required": true }, { @@ -136751,9 +136664,9 @@ "required": true }, { - "name": "pi_policy_version", - "type": "TypeInt", - "description": "Version of the IKE Policy", + "name": "pi_policy_preshared_key", + "type": "TypeString", + "description": "Preshared key used in this IKE Policy (length of preshared key must be even)", "required": true }, { @@ -136762,51 +136675,38 @@ "description": "Authentication for the IKE Policy", "default_value": "none", "optional": true - } - ], - "ibm_pi_image": [ - { - "name": "pi_image_name", - "type": "TypeString", - "description": "Image name", - "immutable": true, - "required": true }, { - "name": "pi_affinity_volume", + "name": "policy_id", "type": "TypeString", - "description": "Volume (ID or Name) to base storage affinity policy against; required if requesting affinity and pi_affinity_instance is not provided", - "immutable": true, - "optional": true + "description": "IKE Policy ID", + "computed": true }, { - "name": "pi_affinity_instance", + "name": "pi_cloud_instance_id", "type": "TypeString", - "description": "PVM Instance (ID or Name) to base storage affinity policy against; required if requesting storage affinity and pi_affinity_volume is not provided", - "immutable": true, - "optional": true + "description": "PI cloud instance ID", + "required": true }, { - "name": "pi_anti_affinity_instances", - "type": "TypeList", - "description": "List of pvmInstances to base storage anti-affinity policy against; required if requesting anti-affinity and pi_anti_affinity_volumes is not provided", - "immutable": true, - "optional": true, - "elem": { - "type": "TypeString" - } - }, + "name": "pi_policy_name", + "type": "TypeString", + "description": "Name of the IKE Policy", + "required": true + } + ], + "ibm_pi_image": [ { - "name": "pi_image_bucket_name", + "name": "pi_image_id", "type": "TypeString", - "description": "Cloud Object Storage bucket name; bucket-name[/optional/folder]", + "description": "Instance image id", "immutable": true, "optional": true }, { - "name": "pi_image_storage_pool", + "name": "pi_affinity_policy", "type": "TypeString", - "description": "Storage pool where the image will be loaded, if provided then pi_image_storage_type and pi_affinity_policy will be ignored", + "description": "Affinity policy for image; ignored if pi_image_storage_pool provided; for policy affinity requires one of pi_affinity_instance or pi_affinity_volume to be specified; for policy anti-affinity requires one of pi_anti_affinity_instances or pi_anti_affinity_volumes to be specified", "immutable": true, "optional": true }, @@ -136827,34 +136727,40 @@ "computed": true }, { - "name": "pi_cloud_instance_id", + "name": "pi_image_name", "type": "TypeString", - "description": "PI cloud instance ID", + "description": "Image name", "immutable": true, "required": true }, { - "name": "pi_image_id", + "name": "pi_image_bucket_file_name", "type": "TypeString", - "description": "Instance image id", + "description": "Cloud Object Storage image filename", "immutable": true, "optional": true }, { - "name": "pi_image_secret_key", + "name": "pi_image_storage_pool", "type": "TypeString", - "description": "Cloud Object Storage secret key; required for buckets with private access", - "secure": true, + "description": "Storage pool where the image will be loaded, if provided then pi_image_storage_type and pi_affinity_policy will be ignored", "immutable": true, "optional": true }, { - "name": "pi_affinity_policy", + "name": "pi_affinity_volume", "type": "TypeString", - "description": "Affinity policy for image; ignored if pi_image_storage_pool provided; for policy affinity requires one of pi_affinity_instance or pi_affinity_volume to be specified; for policy anti-affinity requires one of pi_anti_affinity_instances or pi_anti_affinity_volumes to be specified", + "description": "Volume (ID or Name) to base storage affinity policy against; required if requesting affinity and pi_affinity_instance is not provided", "immutable": true, "optional": true }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "description": "PI cloud instance ID", + "immutable": true, + "required": true + }, { "name": "pi_image_bucket_access", "type": "TypeString", @@ -136864,9 +136770,9 @@ "optional": true }, { - "name": "pi_image_access_key", + "name": "pi_image_secret_key", "type": "TypeString", - "description": "Cloud Object Storage access key; required for buckets with private access", + "description": "Cloud Object Storage secret key; required for buckets with private access", "secure": true, "immutable": true, "optional": true @@ -136879,9 +136785,34 @@ "optional": true }, { - "name": "pi_image_bucket_file_name", + "name": "pi_affinity_instance", "type": "TypeString", - "description": "Cloud Object Storage image filename", + "description": "PVM Instance (ID or Name) to base storage affinity policy against; required if requesting storage affinity and pi_affinity_volume is not provided", + "immutable": true, + "optional": true + }, + { + "name": "pi_anti_affinity_instances", + "type": "TypeList", + "description": "List of pvmInstances to base storage anti-affinity policy against; required if requesting anti-affinity and pi_anti_affinity_volumes is not provided", + "immutable": true, + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "pi_image_bucket_name", + "type": "TypeString", + "description": "Cloud Object Storage bucket name; bucket-name[/optional/folder]", + "immutable": true, + "optional": true + }, + { + "name": "pi_image_access_key", + "type": "TypeString", + "description": "Cloud Object Storage access key; required for buckets with private access", + "secure": true, "immutable": true, "optional": true }, @@ -136941,34 +136872,41 @@ ], "ibm_pi_instance": [ { - "name": "pi_storage_connection", + "name": "pi_placement_group_id", "type": "TypeString", - "description": "Storage Connectivity Group for server deployment", + "description": "Placement group ID", "optional": true }, { - "name": "pi_placement_group_id", + "name": "pi_shared_processor_pool", "type": "TypeString", - "description": "Placement group ID", + "description": "Shared Processor Pool the instance is deployed on", + "immutable": true, "optional": true }, { - "name": "pi_processors", - "type": "TypeFloat", - "description": "Processors count", - "optional": true, + "name": "max_virtual_cores", + "type": "TypeInt", + "description": "Maximum Virtual Cores Assigned to the PVMInstance", "computed": true }, { - "name": "operating_system", + "name": "pi_user_data", "type": "TypeString", - "description": "Operating System", + "description": "Base64 encoded data to be passed in for invoking a cloud init script", + "optional": true + }, + { + "name": "pi_storage_type", + "type": "TypeString", + "description": "Storage type for server deployment", + "optional": true, "computed": true }, { - "name": "pi_affinity_policy", + "name": "pi_affinity_instance", "type": "TypeString", - "description": "Affinity policy for pvm instance being created; ignored if pi_storage_pool provided; for policy affinity requires one of pi_affinity_instance or pi_affinity_volume to be specified; for policy anti-affinity requires one of pi_anti_affinity_instances or pi_anti_affinity_volumes to be specified", + "description": "PVM Instance (ID or Name) to base storage affinity policy against; required if requesting storage affinity and pi_affinity_volume is not provided", "optional": true }, { @@ -137010,6 +136948,13 @@ } } }, + { + "name": "pi_proc_type", + "type": "TypeString", + "description": "Instance processor type", + "optional": true, + "computed": true + }, { "name": "pi_replication_policy", "type": "TypeString", @@ -137018,56 +136963,76 @@ "optional": true }, { - "name": "pi_volume_ids", - "type": "TypeSet", - "description": "List of PI volumes", + "name": "operating_system", + "type": "TypeString", + "description": "Operating System", + "computed": true + }, + { + "name": "pi_anti_affinity_instances", + "type": "TypeList", + "description": "List of pvmInstances to base storage anti-affinity policy against; required if requesting anti-affinity and pi_anti_affinity_volumes is not provided", "optional": true, "elem": { "type": "TypeString" } }, { - "name": "pi_proc_type", + "name": "pi_storage_pool_affinity", + "type": "TypeBool", + "description": "Indicates if all volumes attached to the server must reside in the same storage pool", + "default_value": true, + "optional": true + }, + { + "name": "pin_policy", "type": "TypeString", - "description": "Instance processor type", - "optional": true, + "description": "PIN Policy of the Instance", "computed": true }, { - "name": "pi_sap_profile_id", + "name": "pi_instance_name", "type": "TypeString", - "description": "SAP Profile ID for the amount of cores and memory", + "description": "PI Instance name", + "required": true + }, + { + "name": "pi_replication_scheme", + "type": "TypeString", + "description": "Replication scheme", + "default_value": "suffix", "optional": true }, { - "name": "pi_anti_affinity_volumes", - "type": "TypeList", - "description": "List of volumes to base storage anti-affinity policy against; required if requesting anti-affinity and pi_anti_affinity_instances is not provided", + "name": "pi_volume_ids", + "type": "TypeSet", + "description": "List of PI volumes", "optional": true, "elem": { "type": "TypeString" } }, { - "name": "pi_anti_affinity_instances", + "name": "pi_anti_affinity_volumes", "type": "TypeList", - "description": "List of pvmInstances to base storage anti-affinity policy against; required if requesting anti-affinity and pi_anti_affinity_volumes is not provided", + "description": "List of volumes to base storage anti-affinity policy against; required if requesting anti-affinity and pi_anti_affinity_instances is not provided", "optional": true, "elem": { "type": "TypeString" } }, { - "name": "pi_key_pair_name", + "name": "pi_storage_connection", "type": "TypeString", - "description": "SSH key name", + "description": "Storage Connectivity Group for server deployment", "optional": true }, { - "name": "pi_deployment_type", + "name": "instance_id", "type": "TypeString", - "description": "Custom Deployment Type Information", - "optional": true + "description": "Instance ID", + "cloud_data_type": "resource_instance", + "computed": true }, { "name": "pi_sap_deployment_type", @@ -137076,49 +137041,51 @@ "optional": true }, { - "name": "pi_license_repository_capacity", - "type": "TypeInt", - "description": "The VTL license repository capacity TB value", - "optional": true, - "computed": true - }, - { - "name": "max_memory", + "name": "pi_progress", "type": "TypeFloat", - "description": "Maximum memory size", + "description": "Progress of the operation", "computed": true }, { - "name": "pi_user_data", + "name": "pi_pin_policy", "type": "TypeString", - "description": "Base64 encoded data to be passed in for invoking a cloud init script", + "description": "Pin Policy of the instance", + "default_value": "none", "optional": true }, { - "name": "os_type", + "name": "pi_health_status", "type": "TypeString", - "description": "OS Type", - "computed": true + "description": "Allow the user to set the status of the lpar so that they can connect to it faster", + "default_value": "OK", + "optional": true }, { - "name": "pi_image_id", + "name": "pi_cloud_instance_id", "type": "TypeString", - "description": "PI instance image id", + "description": "This is the Power Instance id that is assigned to the account", + "immutable": true, "required": true }, { - "name": "pi_pin_policy", - "type": "TypeString", - "description": "Pin Policy of the instance", - "default_value": "none", - "optional": true + "name": "pi_migratable", + "type": "TypeBool", + "description": "set to true to enable migration of the PI instance", + "optional": true, + "computed": true }, { - "name": "max_virtual_cores", - "type": "TypeInt", - "description": "Maximum Virtual Cores Assigned to the PVMInstance", + "name": "min_processors", + "type": "TypeFloat", + "description": "Minimum number of the CPUs", "computed": true }, + { + "name": "pi_sap_profile_id", + "type": "TypeString", + "description": "SAP Profile ID for the amount of cores and memory", + "optional": true + }, { "name": "min_virtual_cores", "type": "TypeInt", @@ -137126,23 +137093,23 @@ "computed": true }, { - "name": "min_memory", - "type": "TypeFloat", - "description": "Minimum memory", + "name": "status", + "type": "TypeString", + "description": "PI instance status", "computed": true }, { - "name": "pi_affinity_instance", - "type": "TypeString", - "description": "PVM Instance (ID or Name) to base storage affinity policy against; required if requesting storage affinity and pi_affinity_volume is not provided", - "optional": true + "name": "pi_memory", + "type": "TypeFloat", + "description": "Memory size", + "optional": true, + "computed": true }, { - "name": "instance_id", + "name": "pi_deployment_type", "type": "TypeString", - "description": "Instance ID", - "cloud_data_type": "resource_instance", - "computed": true + "description": "Custom Deployment Type Information", + "optional": true }, { "name": "pi_replicants", @@ -137152,23 +137119,9 @@ "optional": true }, { - "name": "pi_replication_scheme", + "name": "os_type", "type": "TypeString", - "description": "Replication scheme", - "default_value": "suffix", - "optional": true - }, - { - "name": "pi_progress", - "type": "TypeFloat", - "description": "Progress of the operation", - "computed": true - }, - { - "name": "pi_migratable", - "type": "TypeBool", - "description": "set to true to enable migration of the PI instance", - "optional": true, + "description": "OS Type", "computed": true }, { @@ -137185,102 +137138,80 @@ "computed": true }, { - "name": "pi_affinity_volume", + "name": "pi_affinity_policy", "type": "TypeString", - "description": "Volume (ID or Name) to base storage affinity policy against; required if requesting affinity and pi_affinity_instance is not provided", + "description": "Affinity policy for pvm instance being created; ignored if pi_storage_pool provided; for policy affinity requires one of pi_affinity_instance or pi_affinity_volume to be specified; for policy anti-affinity requires one of pi_anti_affinity_instances or pi_anti_affinity_volumes to be specified", "optional": true }, { - "name": "pi_storage_pool_affinity", - "type": "TypeBool", - "description": "Indicates if all volumes attached to the server must reside in the same storage pool", - "default_value": true, + "name": "pi_key_pair_name", + "type": "TypeString", + "description": "SSH key name", "optional": true }, { - "name": "shared_processor_pool_id", + "name": "pi_sys_type", "type": "TypeString", - "description": "Shared Processor Pool ID the instance is deployed on", + "description": "PI Instance system type", + "optional": true, "computed": true }, { - "name": "pin_policy", - "type": "TypeString", - "description": "PIN Policy of the Instance", + "name": "pi_virtual_cores_assigned", + "type": "TypeInt", + "description": "Virtual Cores Assigned to the PVMInstance", + "optional": true, "computed": true }, { - "name": "pi_instance_name", - "type": "TypeString", - "description": "PI Instance name", - "required": true - }, - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "description": "This is the Power Instance id that is assigned to the account", - "immutable": true, - "required": true + "name": "min_memory", + "type": "TypeFloat", + "description": "Minimum memory", + "computed": true }, { - "name": "status", - "type": "TypeString", - "description": "PI instance status", + "name": "max_memory", + "type": "TypeFloat", + "description": "Maximum memory size", "computed": true }, { - "name": "pi_storage_type", + "name": "health_status", "type": "TypeString", - "description": "Storage type for server deployment", - "optional": true, + "description": "PI Instance health status", "computed": true }, { - "name": "pi_memory", + "name": "pi_processors", "type": "TypeFloat", - "description": "Memory size", + "description": "Processors count", "optional": true, "computed": true }, { - "name": "pi_health_status", - "type": "TypeString", - "description": "Allow the user to set the status of the lpar so that they can connect to it faster", - "default_value": "OK", - "optional": true - }, - { - "name": "pi_virtual_cores_assigned", + "name": "pi_license_repository_capacity", "type": "TypeInt", - "description": "Virtual Cores Assigned to the PVMInstance", + "description": "The VTL license repository capacity TB value", "optional": true, "computed": true }, { - "name": "pi_sys_type", + "name": "pi_affinity_volume", "type": "TypeString", - "description": "PI Instance system type", - "optional": true, - "computed": true - }, - { - "name": "min_processors", - "type": "TypeFloat", - "description": "Minimum number of the CPUs", - "computed": true + "description": "Volume (ID or Name) to base storage affinity policy against; required if requesting affinity and pi_affinity_instance is not provided", + "optional": true }, { - "name": "pi_shared_processor_pool", + "name": "shared_processor_pool_id", "type": "TypeString", - "description": "Shared Processor Pool the instance is deployed on", - "immutable": true, - "optional": true + "description": "Shared Processor Pool ID the instance is deployed on", + "computed": true }, { - "name": "health_status", + "name": "pi_image_id", "type": "TypeString", - "description": "PI Instance health status", - "computed": true + "description": "PI instance image id", + "required": true } ], "ibm_pi_instance_action": [ @@ -137329,12 +137260,6 @@ } ], "ibm_pi_ipsec_policy": [ - { - "name": "pi_policy_key_lifetime", - "type": "TypeInt", - "description": "Policy key lifetime", - "required": true - }, { "name": "pi_policy_pfs", "type": "TypeBool", @@ -137377,59 +137302,59 @@ "type": "TypeString", "description": "Encryption of the IPSec Policy", "required": true + }, + { + "name": "pi_policy_key_lifetime", + "type": "TypeInt", + "description": "Policy key lifetime", + "required": true } ], "ibm_pi_key": [ { - "name": "creation_date", + "name": "pi_cloud_instance_id", "type": "TypeString", - "description": "Date of SSH Key creation", - "computed": true + "description": "PI cloud instance ID", + "required": true }, { - "name": "key_id", + "name": "pi_key_name", "type": "TypeString", - "computed": true, - "deprecated": "User defined name for the SSH key (deprecated - replaced by name)" + "description": "User defined name for the SSH key", + "required": true }, { - "name": "name", + "name": "pi_ssh_key", "type": "TypeString", - "description": "User defined name for the SSH key", - "computed": true + "description": "SSH RSA key", + "required": true }, { - "name": "ssh_key", + "name": "creation_date", "type": "TypeString", - "description": "SSH RSA key", + "description": "Date of SSH Key creation", "computed": true }, { - "name": "pi_cloud_instance_id", + "name": "key_id", "type": "TypeString", - "description": "PI cloud instance ID", - "required": true + "computed": true, + "deprecated": "User defined name for the SSH key (deprecated - replaced by name)" }, { - "name": "pi_key_name", + "name": "name", "type": "TypeString", "description": "User defined name for the SSH key", - "required": true + "computed": true }, { - "name": "pi_ssh_key", + "name": "ssh_key", "type": "TypeString", "description": "SSH RSA key", - "required": true + "computed": true } ], "ibm_pi_network": [ - { - "name": "pi_network_type", - "type": "TypeString", - "description": "PI network type", - "required": true - }, { "name": "network_id", "type": "TypeString", @@ -137437,16 +137362,25 @@ "computed": true }, { - "name": "pi_gateway", + "name": "pi_network_name", "type": "TypeString", - "description": "PI network gateway", + "description": "PI network name", + "required": true + }, + { + "name": "pi_dns", + "type": "TypeSet", + "description": "List of PI network DNS name", "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "pi_network_jumbo", - "type": "TypeBool", - "description": "PI network enable MTU Jumbo option", + "name": "pi_gateway", + "type": "TypeString", + "description": "PI network gateway", "optional": true, "computed": true }, @@ -137484,40 +137418,27 @@ "computed": true }, { - "name": "pi_network_name", + "name": "pi_network_type", "type": "TypeString", - "description": "PI network name", + "description": "PI network type", "required": true }, - { - "name": "pi_dns", - "type": "TypeSet", - "description": "List of PI network DNS name", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "pi_cidr", "type": "TypeString", "description": "PI network CIDR", "optional": true, "computed": true + }, + { + "name": "pi_network_jumbo", + "type": "TypeBool", + "description": "PI network enable MTU Jumbo option", + "optional": true, + "computed": true } ], "ibm_pi_network_port": [ - { - "name": "pi_network_name", - "type": "TypeString", - "required": true - }, - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "required": true - }, { "name": "pi_network_port_description", "type": "TypeString", @@ -137549,27 +137470,19 @@ "name": "public_ip", "type": "TypeString", "computed": true - } - ], - "ibm_pi_network_port_attach": [ + }, { "name": "pi_network_name", "type": "TypeString", - "description": "Network Name - This is the subnet name in the Cloud instance", - "immutable": true, "required": true }, { - "name": "macaddress", - "type": "TypeString", - "computed": true - }, - { - "name": "port_id", + "name": "pi_cloud_instance_id", "type": "TypeString", - "computed": true, - "deprecated": "port_id attribute is deprecated, use network_port_id instead." - }, + "required": true + } + ], + "ibm_pi_network_port_attach": [ { "name": "public_ip", "type": "TypeString", @@ -137588,6 +137501,29 @@ "immutable": true, "required": true }, + { + "name": "pi_network_name", + "type": "TypeString", + "description": "Network Name - This is the subnet name in the Cloud instance", + "immutable": true, + "required": true + }, + { + "name": "port_id", + "type": "TypeString", + "computed": true, + "deprecated": "port_id attribute is deprecated, use network_port_id instead." + }, + { + "name": "network_port_id", + "type": "TypeString", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "computed": true + }, { "name": "pi_network_port_description", "type": "TypeString", @@ -137604,17 +137540,21 @@ "computed": true }, { - "name": "network_port_id", - "type": "TypeString", - "computed": true - }, - { - "name": "status", + "name": "macaddress", "type": "TypeString", "computed": true } ], "ibm_pi_placement_group": [ + { + "name": "members", + "type": "TypeSet", + "description": "Server IDs that are the placement group members", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "placement_group_id", "type": "TypeString", @@ -137638,34 +137578,25 @@ "type": "TypeString", "description": "PI cloud instance ID", "required": true - }, - { - "name": "members", - "type": "TypeSet", - "description": "Server IDs that are the placement group members", - "computed": true, - "elem": { - "type": "TypeString" - } } ], "ibm_pi_shared_processor_pool": [ { - "name": "pi_shared_processor_pool_host_group", + "name": "pi_shared_processor_pool_name", "type": "TypeString", - "description": "Host group of the shared processor pool", + "description": "Name of the shared processor pool", "required": true }, { - "name": "pi_shared_processor_pool_placement_group_id", - "type": "TypeString", - "description": "Placement group the shared processor pool is created in", - "optional": true + "name": "allocated_cores", + "type": "TypeFloat", + "description": "Shared processor pool allocated cores", + "computed": true }, { - "name": "available_cores", + "name": "host_id", "type": "TypeInt", - "description": "Shared processor pool available cores", + "description": "The host ID where the shared processor pool resides", "computed": true }, { @@ -137689,6 +137620,42 @@ "type": "TypeString" } }, + { + "name": "pi_shared_processor_pool_host_group", + "type": "TypeString", + "description": "Host group of the shared processor pool", + "required": true + }, + { + "name": "pi_shared_processor_pool_reserved_cores", + "type": "TypeInt", + "description": "The amount of reserved cores for the shared processor pool", + "required": true + }, + { + "name": "pi_cloud_instance_id", + "type": "TypeString", + "description": "PI cloud instance ID", + "required": true + }, + { + "name": "pi_shared_processor_pool_placement_group_id", + "type": "TypeString", + "description": "Placement group the shared processor pool is created in", + "optional": true + }, + { + "name": "shared_processor_pool_id", + "type": "TypeString", + "description": "Shared processor pool ID", + "computed": true + }, + { + "name": "available_cores", + "type": "TypeInt", + "description": "Shared processor pool available cores", + "computed": true + }, { "name": "instances", "type": "TypeList", @@ -137744,75 +137711,56 @@ "computed": true } } - }, + } + ], + "ibm_pi_snapshot": [ { - "name": "pi_shared_processor_pool_name", + "name": "pi_instance_name", "type": "TypeString", - "description": "Name of the shared processor pool", - "required": true - }, - { - "name": "pi_shared_processor_pool_reserved_cores", - "type": "TypeInt", - "description": "The amount of reserved cores for the shared processor pool", + "description": "Instance name / id of the pvm", "required": true }, { "name": "pi_cloud_instance_id", "type": "TypeString", - "description": "PI cloud instance ID", + "description": "Cloud Instance ID - This is the service_instance_id.", "required": true }, { - "name": "shared_processor_pool_id", + "name": "pi_snap_shot_id", "type": "TypeString", - "description": "Shared processor pool ID", - "computed": true + "description": "Id of the snapshot", + "computed": true, + "deprecated": "This field is deprecated, use snapshot_id instead" }, { - "name": "allocated_cores", - "type": "TypeFloat", - "description": "Shared processor pool allocated cores", + "name": "last_update_date", + "type": "TypeString", "computed": true }, { - "name": "host_id", - "type": "TypeInt", - "description": "The host ID where the shared processor pool resides", + "name": "volume_snapshots", + "type": "TypeMap", "computed": true - } - ], - "ibm_pi_snapshot": [ - { - "name": "pi_volume_ids", - "type": "TypeSet", - "description": "List of PI volumes", - "optional": true, - "elem": { - "type": "TypeString" - } }, { - "name": "description", + "name": "pi_snap_shot_name", "type": "TypeString", - "description": "Snapshot description", - "optional": true, - "deprecated": "This field is deprecated, use pi_description instead" + "description": "Unique name of the snapshot", + "required": true }, { - "name": "status", + "name": "pi_description", "type": "TypeString", - "computed": true + "description": "Description of the PVM instance snapshot", + "optional": true }, { - "name": "creation_date", + "name": "description", "type": "TypeString", - "computed": true - }, - { - "name": "volume_snapshots", - "type": "TypeMap", - "computed": true + "description": "Snapshot description", + "optional": true, + "deprecated": "This field is deprecated, use pi_description instead" }, { "name": "snapshot_id", @@ -137821,40 +137769,23 @@ "computed": true }, { - "name": "last_update_date", + "name": "status", "type": "TypeString", "computed": true }, { - "name": "pi_snap_shot_name", - "type": "TypeString", - "description": "Unique name of the snapshot", - "required": true - }, - { - "name": "pi_instance_name", - "type": "TypeString", - "description": "Instance name / id of the pvm", - "required": true - }, - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "description": "Cloud Instance ID - This is the service_instance_id.", - "required": true - }, - { - "name": "pi_description", + "name": "creation_date", "type": "TypeString", - "description": "Description of the PVM instance snapshot", - "optional": true + "computed": true }, { - "name": "pi_snap_shot_id", - "type": "TypeString", - "description": "Id of the snapshot", - "computed": true, - "deprecated": "This field is deprecated, use snapshot_id instead" + "name": "pi_volume_ids", + "type": "TypeSet", + "description": "List of PI volumes", + "optional": true, + "elem": { + "type": "TypeString" + } } ], "ibm_pi_spp_placement_group": [ @@ -137897,16 +137828,10 @@ ], "ibm_pi_volume": [ { - "name": "pi_volume_size", - "type": "TypeFloat", - "description": "Size of the volume in GB", - "required": true - }, - { - "name": "pi_affinity_policy", + "name": "master_volume_name", "type": "TypeString", - "description": "Affinity policy for data volume being created; ignored if pi_volume_pool provided; for policy affinity requires one of pi_affinity_instance or pi_affinity_volume to be specified; for policy anti-affinity requires one of pi_anti_affinity_instances or pi_anti_affinity_volumes to be specified", - "optional": true + "description": "Indicates master volume name", + "computed": true }, { "name": "pi_affinity_instance", @@ -137921,40 +137846,46 @@ "computed": true }, { - "name": "group_id", + "name": "volume_status", "type": "TypeString", - "description": "Volume Group ID", + "description": "Volume status", "computed": true }, { - "name": "auxiliary_volume_name", + "name": "consistency_group_name", "type": "TypeString", - "description": "Indicates auxiliary volume name", + "description": "Consistency Group Name if volume is a part of volume group", "computed": true }, { - "name": "pi_volume_type", + "name": "replication_type", "type": "TypeString", - "description": "Type of Disk, required if pi_affinity_policy and pi_volume_pool not provided, otherwise ignored", - "optional": true, + "description": "Replication type(metro,global)", "computed": true }, { - "name": "volume_status", + "name": "mirroring_state", "type": "TypeString", - "description": "Volume status", + "description": "Mirroring state for replication enabled volume", "computed": true }, { - "name": "wwn", + "name": "primary_role", "type": "TypeString", - "description": "WWN Of the volume", + "description": "Indicates whether master/aux volume is playing the primary role", "computed": true }, { - "name": "auxiliary", - "type": "TypeBool", - "description": "true if volume is auxiliary otherwise false", + "name": "pi_volume_type", + "type": "TypeString", + "description": "Type of Disk, required if pi_affinity_policy and pi_volume_pool not provided, otherwise ignored", + "optional": true, + "computed": true + }, + { + "name": "group_id", + "type": "TypeString", + "description": "Volume Group ID", "computed": true }, { @@ -137963,12 +137894,24 @@ "description": "Replication status of a volume", "computed": true }, + { + "name": "wwn", + "type": "TypeString", + "description": "WWN Of the volume", + "computed": true + }, { "name": "pi_volume_name", "type": "TypeString", "description": "Volume Name to create", "required": true }, + { + "name": "pi_volume_size", + "type": "TypeFloat", + "description": "Size of the volume in GB", + "required": true + }, { "name": "pi_volume_pool", "type": "TypeString", @@ -137976,6 +137919,18 @@ "optional": true, "computed": true }, + { + "name": "pi_affinity_policy", + "type": "TypeString", + "description": "Affinity policy for data volume being created; ignored if pi_volume_pool provided; for policy affinity requires one of pi_affinity_instance or pi_affinity_volume to be specified; for policy anti-affinity requires one of pi_anti_affinity_instances or pi_anti_affinity_volumes to be specified", + "optional": true + }, + { + "name": "pi_affinity_volume", + "type": "TypeString", + "description": "Volume (ID or Name) to base volume affinity policy against; required if requesting affinity and pi_affinity_instance is not provided", + "optional": true + }, { "name": "pi_anti_affinity_volumes", "type": "TypeList", @@ -137985,36 +137940,12 @@ "type": "TypeString" } }, - { - "name": "replication_type", - "type": "TypeString", - "description": "Replication type(metro,global)", - "computed": true - }, - { - "name": "mirroring_state", - "type": "TypeString", - "description": "Mirroring state for replication enabled volume", - "computed": true - }, { "name": "delete_on_termination", "type": "TypeBool", "description": "Should the volume be deleted during termination", "computed": true }, - { - "name": "consistency_group_name", - "type": "TypeString", - "description": "Consistency Group Name if volume is a part of volume group", - "computed": true - }, - { - "name": "primary_role", - "type": "TypeString", - "description": "Indicates whether master/aux volume is playing the primary role", - "computed": true - }, { "name": "pi_cloud_instance_id", "type": "TypeString", @@ -138027,12 +137958,6 @@ "description": "Flag to indicate if the volume can be shared across multiple instances?", "optional": true }, - { - "name": "pi_affinity_volume", - "type": "TypeString", - "description": "Volume (ID or Name) to base volume affinity policy against; required if requesting affinity and pi_affinity_instance is not provided", - "optional": true - }, { "name": "pi_anti_affinity_instances", "type": "TypeList", @@ -138050,9 +137975,15 @@ "computed": true }, { - "name": "master_volume_name", + "name": "auxiliary", + "type": "TypeBool", + "description": "true if volume is auxiliary otherwise false", + "computed": true + }, + { + "name": "auxiliary_volume_name", "type": "TypeString", - "description": "Indicates master volume name", + "description": "Indicates auxiliary volume name", "computed": true } ], @@ -138091,45 +138022,12 @@ "description": "The name of consistency group at storage controller level", "optional": true }, - { - "name": "pi_volume_ids", - "type": "TypeSet", - "description": "List of volumes to add in volume group", - "required": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "volume_group_id", - "type": "TypeString", - "description": "Volume Group ID", - "computed": true - }, { "name": "volume_group_status", "type": "TypeString", "description": "Volume Group Status", "computed": true }, - { - "name": "replication_status", - "type": "TypeString", - "description": "Volume Group Replication Status", - "computed": true - }, - { - "name": "consistency_group_name", - "type": "TypeString", - "description": "Consistency Group Name if volume is a part of volume group", - "computed": true - }, - { - "name": "pi_volume_group_name", - "type": "TypeString", - "description": "Volume Group Name to create", - "optional": true - }, { "name": "status_description_errors", "type": "TypeSet", @@ -138155,26 +138053,47 @@ } } }, + { + "name": "consistency_group_name", + "type": "TypeString", + "description": "Consistency Group Name if volume is a part of volume group", + "computed": true + }, { "name": "pi_cloud_instance_id", "type": "TypeString", "description": "Cloud Instance ID - This is the service_instance_id.", "required": true - } - ], - "ibm_pi_volume_group_action": [ + }, { - "name": "volume_group_name", + "name": "pi_volume_group_name", + "type": "TypeString", + "description": "Volume Group Name to create", + "optional": true + }, + { + "name": "pi_volume_ids", + "type": "TypeSet", + "description": "List of volumes to add in volume group", + "required": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "volume_group_id", "type": "TypeString", "description": "Volume Group ID", "computed": true }, { - "name": "volume_group_status", + "name": "replication_status", "type": "TypeString", - "description": "Volume Group Status", + "description": "Volume Group Replication Status", "computed": true - }, + } + ], + "ibm_pi_volume_group_action": [ { "name": "replication_status", "type": "TypeString", @@ -138247,24 +138166,21 @@ }, "max_items": 1, "min_items": 1 - } - ], - "ibm_pi_volume_onboarding": [ + }, { - "name": "onboarding_id", + "name": "volume_group_name", "type": "TypeString", - "description": "Indicates the volume onboarding operation id", + "description": "Volume Group ID", "computed": true }, { - "name": "input_volumes", - "type": "TypeList", - "description": "List of volumes requested to be onboarded", - "computed": true, - "elem": { - "type": "TypeString" - } - }, + "name": "volume_group_status", + "type": "TypeString", + "description": "Volume Group Status", + "computed": true + } + ], + "ibm_pi_volume_onboarding": [ { "name": "progress", "type": "TypeFloat", @@ -138315,12 +138231,27 @@ "immutable": true, "required": true }, + { + "name": "input_volumes", + "type": "TypeList", + "description": "List of volumes requested to be onboarded", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "create_time", "type": "TypeString", "description": "Indicates the create-time of volume onboarding operation", "computed": true }, + { + "name": "onboarding_id", + "type": "TypeString", + "description": "Indicates the volume onboarding operation id", + "computed": true + }, { "name": "pi_onboarding_volumes", "type": "TypeList", @@ -138365,6 +138296,12 @@ } ], "ibm_pi_vpn_connection": [ + { + "name": "dead_peer_detections", + "type": "TypeMap", + "description": "Dead Peer Detection", + "computed": true + }, { "name": "pi_ike_policy_id", "type": "TypeString", @@ -138384,10 +138321,13 @@ "required": true }, { - "name": "pi_peer_gateway_address", - "type": "TypeString", - "description": "Peer Gateway address", - "required": true + "name": "pi_networks", + "type": "TypeSet", + "description": "Set of network IDs to attach to this VPN connection", + "required": true, + "elem": { + "type": "TypeString" + } }, { "name": "pi_peer_subnets", @@ -138399,42 +138339,39 @@ } }, { - "name": "dead_peer_detections", - "type": "TypeMap", - "description": "Dead Peer Detection", + "name": "local_gateway_address", + "type": "TypeString", + "description": "Local Gateway address, only in 'route' mode", "computed": true }, { - "name": "pi_vpn_connection_name", + "name": "connection_status", "type": "TypeString", - "description": "Name of the VPN Connection", - "required": true + "description": "Status of the VPN connection", + "computed": true }, { - "name": "pi_networks", - "type": "TypeSet", - "description": "Set of network IDs to attach to this VPN connection", - "required": true, - "elem": { - "type": "TypeString" - } + "name": "pi_cloud_instance_id", + "type": "TypeString", + "description": "PI cloud instance ID", + "required": true }, { - "name": "connection_id", + "name": "pi_vpn_connection_name", "type": "TypeString", - "description": "VPN connection ID", - "computed": true + "description": "Name of the VPN Connection", + "required": true }, { - "name": "local_gateway_address", + "name": "pi_peer_gateway_address", "type": "TypeString", - "description": "Local Gateway address, only in 'route' mode", - "computed": true + "description": "Peer Gateway address", + "required": true }, { - "name": "connection_status", + "name": "connection_id", "type": "TypeString", - "description": "Status of the VPN connection", + "description": "VPN connection ID", "computed": true }, { @@ -138442,22 +138379,9 @@ "type": "TypeString", "description": "Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection", "computed": true - }, - { - "name": "pi_cloud_instance_id", - "type": "TypeString", - "description": "PI cloud instance ID", - "required": true } ], "ibm_pn_application_chrome": [ - { - "name": "guid", - "type": "TypeString", - "description": "Unique guid of the push notification instance.", - "immutable": true, - "required": true - }, { "name": "server_key", "type": "TypeString", @@ -138469,91 +138393,16 @@ "type": "TypeString", "description": "The URL of the WebSite / WebApp that should be permitted to subscribe to WebPush.", "required": true + }, + { + "name": "guid", + "type": "TypeString", + "description": "Unique guid of the push notification instance.", + "immutable": true, + "required": true } ], "ibm_project_instance": [ - { - "name": "metadata", - "type": "TypeList", - "description": "The metadata of the project.", - "computed": true, - "elem": { - "created_at": { - "name": "created_at", - "type": "TypeString", - "description": "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", - "computed": true - }, - "crn": { - "name": "crn", - "type": "TypeString", - "description": "An IBM Cloud resource name, which uniquely identifies a resource.", - "computed": true - }, - "cumulative_needs_attention_view": { - "name": "cumulative_needs_attention_view", - "type": "TypeList", - "description": "The cumulative list of needs attention items for a project.", - "computed": true, - "elem": { - "config_id": { - "name": "config_id", - "type": "TypeString", - "description": "The unique ID of a project.", - "computed": true - }, - "config_version": { - "name": "config_version", - "type": "TypeInt", - "description": "The version number of the configuration.", - "computed": true - }, - "event": { - "name": "event", - "type": "TypeString", - "description": "The event name.", - "computed": true - }, - "event_id": { - "name": "event_id", - "type": "TypeString", - "description": "The unique ID of a project.", - "computed": true - } - } - }, - "cumulative_needs_attention_view_err": { - "name": "cumulative_needs_attention_view_err", - "type": "TypeString", - "description": "True indicates that the fetch of the needs attention items failed.", - "computed": true - }, - "event_notifications_crn": { - "name": "event_notifications_crn", - "type": "TypeString", - "description": "The CRN of the event notifications instance if one is connected to this project.", - "computed": true - }, - "location": { - "name": "location", - "type": "TypeString", - "description": "The IBM Cloud location where a resource is deployed.", - "computed": true - }, - "resource_group": { - "name": "resource_group", - "type": "TypeString", - "description": "The resource group where the project's data and tools are created.", - "computed": true - }, - "state": { - "name": "state", - "type": "TypeString", - "description": "The project status value.", - "computed": true - } - } - }, { "name": "name", "type": "TypeString", @@ -138643,51 +138492,145 @@ "description": "The name of the configuration setting.", "required": true }, - "value": { - "name": "value", + "value": { + "name": "value", + "type": "TypeString", + "description": "The value of the configuration setting.", + "required": true + } + } + } + } + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "The resource group where the project's data and tools are created.", + "required": true, + "max_length": 40, + "matches": "^$|^(?!\\s)(?!.*\\s$)[^'\"\u003c\u003e{}\\x00-\\x1F]*$" + }, + { + "name": "location", + "type": "TypeString", + "description": "The location where the project's data and tools are created.", + "required": true, + "max_length": 12, + "matches": "^$|^(us-south|us-east|eu-gb|eu-de)$" + }, + { + "name": "crn", + "type": "TypeString", + "description": "An IBM Cloud resource name, which uniquely identifies a resource.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "metadata", + "type": "TypeList", + "description": "The metadata of the project.", + "computed": true, + "elem": { + "created_at": { + "name": "created_at", + "type": "TypeString", + "description": "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", + "computed": true + }, + "crn": { + "name": "crn", + "type": "TypeString", + "description": "An IBM Cloud resource name, which uniquely identifies a resource.", + "computed": true + }, + "cumulative_needs_attention_view": { + "name": "cumulative_needs_attention_view", + "type": "TypeList", + "description": "The cumulative list of needs attention items for a project.", + "computed": true, + "elem": { + "config_id": { + "name": "config_id", + "type": "TypeString", + "description": "The unique ID of a project.", + "computed": true + }, + "config_version": { + "name": "config_version", + "type": "TypeInt", + "description": "The version number of the configuration.", + "computed": true + }, + "event": { + "name": "event", + "type": "TypeString", + "description": "The event name.", + "computed": true + }, + "event_id": { + "name": "event_id", "type": "TypeString", - "description": "The value of the configuration setting.", - "required": true + "description": "The unique ID of a project.", + "computed": true } } + }, + "cumulative_needs_attention_view_err": { + "name": "cumulative_needs_attention_view_err", + "type": "TypeString", + "description": "True indicates that the fetch of the needs attention items failed.", + "computed": true + }, + "event_notifications_crn": { + "name": "event_notifications_crn", + "type": "TypeString", + "description": "The CRN of the event notifications instance if one is connected to this project.", + "computed": true + }, + "location": { + "name": "location", + "type": "TypeString", + "description": "The IBM Cloud location where a resource is deployed.", + "computed": true + }, + "resource_group": { + "name": "resource_group", + "type": "TypeString", + "description": "The resource group where the project's data and tools are created.", + "computed": true + }, + "state": { + "name": "state", + "type": "TypeString", + "description": "The project status value.", + "computed": true } } - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "The resource group where the project's data and tools are created.", - "required": true, - "max_length": 40, - "matches": "^$|^(?!\\s)(?!.*\\s$)[^'\"\u003c\u003e{}\\x00-\\x1F]*$" - }, + } + ], + "ibm_resource_group": [ { - "name": "location", + "name": "created_at", "type": "TypeString", - "description": "The location where the project's data and tools are created.", - "required": true, - "max_length": 12, - "matches": "^$|^(us-south|us-east|eu-gb|eu-de)$" + "description": "The date when the resource group was initially created.", + "computed": true }, { - "name": "crn", + "name": "payment_methods_url", "type": "TypeString", - "description": "An IBM Cloud resource name, which uniquely identifies a resource.", - "cloud_data_type": "crn", + "description": "The URL to access the payment methods details that associated with the resource group.", "computed": true - } - ], - "ibm_resource_group": [ + }, { - "name": "teams_url", + "name": "quota_url", "type": "TypeString", - "description": "The URL to access the team details that associated with the resource group.", + "description": "The URL to access the quota details that associated with the resource group.", "computed": true }, { - "name": "quota_url", + "name": "quota_id", "type": "TypeString", - "description": "The URL to access the quota details that associated with the resource group.", + "description": "An alpha-numeric value identifying the quota ID associated with the resource group.", "computed": true }, { @@ -138700,22 +138643,15 @@ } }, { - "name": "crn", - "type": "TypeString", - "description": "The full CRN associated with the resource group", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "updated_at", + "name": "state", "type": "TypeString", - "description": "The date when the resource group was last updated.", + "description": "State of the resource group", "computed": true }, { - "name": "state", - "type": "TypeString", - "description": "State of the resource group", + "name": "default", + "type": "TypeBool", + "description": "Specifies whether its default resource group or not", "computed": true }, { @@ -138728,21 +138664,22 @@ } }, { - "name": "created_at", + "name": "crn", "type": "TypeString", - "description": "The date when the resource group was initially created.", + "description": "The full CRN associated with the resource group", + "cloud_data_type": "crn", "computed": true }, { - "name": "payment_methods_url", + "name": "updated_at", "type": "TypeString", - "description": "The URL to access the payment methods details that associated with the resource group.", + "description": "The date when the resource group was last updated.", "computed": true }, { - "name": "quota_id", + "name": "teams_url", "type": "TypeString", - "description": "An alpha-numeric value identifying the quota ID associated with the resource group.", + "description": "The URL to access the team details that associated with the resource group.", "computed": true }, { @@ -138750,67 +138687,55 @@ "type": "TypeString", "description": "The name of the resource group", "required": true - }, - { - "name": "default", - "type": "TypeBool", - "description": "Specifies whether its default resource group or not", - "computed": true } ], "ibm_resource_instance": [ { - "name": "resource_bindings_url", + "name": "parameters_json", "type": "TypeString", - "description": "The relative path to the resource bindings for the instance.", - "computed": true + "description": "Arbitrary parameters to pass in Json string format", + "optional": true }, { - "name": "created_at", + "name": "resource_group_crn", "type": "TypeString", - "description": "The date when the instance was created.", + "description": "The long ID (full CRN) of the resource group", "computed": true }, { - "name": "resource_status", - "type": "TypeString", - "description": "The status of the resource", + "name": "allow_cleanup", + "type": "TypeBool", + "description": "A boolean that dictates if the resource instance should be deleted (cleaned up) during the processing of a region instance delete call.", "computed": true }, { - "name": "name", + "name": "resource_name", "type": "TypeString", - "description": "A name for the resource instance", - "required": true + "description": "The name of the resource", + "computed": true }, { - "name": "resource_group_id", + "name": "state", "type": "TypeString", - "description": "The resource group id", - "cloud_data_type": "resource_group", - "immutable": true, - "optional": true, - "computed": true, - "cloud_data_range": [ - "resolved_to:id" - ] + "description": "The current state of the instance.", + "computed": true }, { - "name": "parameters", - "type": "TypeMap", - "description": "Arbitrary parameters to pass. Must be a JSON object", - "optional": true + "name": "resource_aliases_url", + "type": "TypeString", + "description": "The relative path to the resource aliases for the instance.", + "computed": true }, { - "name": "dashboard_url", + "name": "resource_keys_url", "type": "TypeString", - "description": "Dashboard URL to access resource.", + "description": "The relative path to the resource keys for the instance.", "computed": true }, { - "name": "state", + "name": "created_at", "type": "TypeString", - "description": "The current state of the instance.", + "description": "The date when the instance was created.", "computed": true }, { @@ -138821,75 +138746,70 @@ "required": true }, { - "name": "tags", - "type": "TypeSet", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", + "name": "plan", + "type": "TypeString", + "description": "The plan type of the service", + "required": true + }, + { + "name": "resource_group_id", + "type": "TypeString", + "description": "The resource group id", + "cloud_data_type": "resource_group", + "immutable": true, "optional": true, "computed": true, - "elem": { - "type": "TypeString" - } + "cloud_data_range": [ + "resolved_to:id" + ] }, { - "name": "created_by", + "name": "resource_plan_id", "type": "TypeString", - "description": "The subject who created the instance.", + "description": "The unique ID of the plan associated with the offering", "computed": true }, { - "name": "scheduled_reclaim_at", - "type": "TypeString", - "description": "The date when the instance was scheduled for reclamation.", + "name": "extensions", + "type": "TypeMap", + "description": "The extended metadata as a map associated with the resource instance.", "computed": true }, { - "name": "resource_keys_url", + "name": "deleted_at", "type": "TypeString", - "description": "The relative path to the resource keys for the instance.", + "description": "The date when the instance was deleted.", "computed": true }, { - "name": "restored_by", + "name": "scheduled_reclaim_by", "type": "TypeString", - "description": "The subject who restored the instance back from reclamation.", + "description": "The subject who initiated the instance reclamation.", "computed": true }, { - "name": "resource_name", + "name": "restored_by", "type": "TypeString", - "description": "The name of the resource", + "description": "The subject who restored the instance back from reclamation.", "computed": true }, { - "name": "plan", - "type": "TypeString", - "description": "The plan type of the service", - "required": true + "name": "parameters", + "type": "TypeMap", + "description": "Arbitrary parameters to pass. Must be a JSON object", + "optional": true }, { - "name": "resource_id", + "name": "service_endpoints", "type": "TypeString", - "description": "The unique ID of the offering", + "description": "Types of the service endpoints. Possible values are 'public', 'private', 'public-and-private'.", + "optional": true, "computed": true }, { - "name": "sub_type", + "name": "type", "type": "TypeString", - "description": "The sub-type of instance, e.g. cfaas .", - "computed": true - }, - { - "name": "locked", - "type": "TypeBool", - "description": "A boolean that dictates if the resource instance should be deleted (cleaned up) during the processing of a region instance delete call.", - "computed": true - }, - { - "name": "last_operation", - "type": "TypeMap", - "description": "The status of the last operation requested on the instance", + "description": "The type of the instance, e.g. service_instance.", "computed": true }, { @@ -138899,108 +138819,106 @@ "computed": true }, { - "name": "update_by", + "name": "resource_bindings_url", "type": "TypeString", - "description": "The subject who updated the instance.", + "description": "The relative path to the resource bindings for the instance.", "computed": true }, { - "name": "deleted_at", + "name": "created_by", "type": "TypeString", - "description": "The date when the instance was deleted.", + "description": "The subject who created the instance.", "computed": true }, { - "name": "guid", + "name": "resource_controller_url", "type": "TypeString", - "description": "Guid of resource instance", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", "computed": true }, { - "name": "service_endpoints", + "name": "name", "type": "TypeString", - "description": "Types of the service endpoints. Possible values are 'public', 'private', 'public-and-private'.", - "optional": true, - "computed": true + "description": "A name for the resource instance", + "required": true }, { - "name": "account_id", - "type": "TypeString", - "description": "An alpha-numeric value identifying the account ID.", - "computed": true + "name": "tags", + "type": "TypeSet", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "target_crn", + "name": "resource_id", "type": "TypeString", - "description": "The full deployment CRN as defined in the global catalog", + "description": "The unique ID of the offering", "computed": true }, { - "name": "resource_aliases_url", - "type": "TypeString", - "description": "The relative path to the resource aliases for the instance.", + "name": "locked", + "type": "TypeBool", + "description": "A boolean that dictates if the resource instance should be deleted (cleaned up) during the processing of a region instance delete call.", "computed": true }, { - "name": "scheduled_reclaim_by", + "name": "status", "type": "TypeString", - "description": "The subject who initiated the instance reclamation.", + "description": "Status of resource instance", "computed": true }, { - "name": "resource_crn", + "name": "dashboard_url", "type": "TypeString", - "description": "The crn of the resource", + "description": "Dashboard URL to access resource.", "computed": true }, { - "name": "resource_controller_url", + "name": "restored_at", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource", - "computed": true - }, - { - "name": "extensions", - "type": "TypeMap", - "description": "The extended metadata as a map associated with the resource instance.", + "description": "The date when the instance under reclamation was restored.", "computed": true }, { - "name": "parameters_json", + "name": "resource_crn", "type": "TypeString", - "description": "Arbitrary parameters to pass in Json string format", - "optional": true + "description": "The crn of the resource", + "computed": true }, { - "name": "resource_plan_id", + "name": "scheduled_reclaim_at", "type": "TypeString", - "description": "The unique ID of the plan associated with the offering", + "description": "The date when the instance was scheduled for reclamation.", "computed": true }, { - "name": "deleted_by", + "name": "crn", "type": "TypeString", - "description": "The subject who deleted the instance.", + "description": "CRN of resource instance", + "cloud_data_type": "crn", "computed": true }, { - "name": "restored_at", + "name": "account_id", "type": "TypeString", - "description": "The date when the instance under reclamation was restored.", + "description": "An alpha-numeric value identifying the account ID.", "computed": true }, { - "name": "location", + "name": "sub_type", "type": "TypeString", - "description": "The location where the instance available", - "cloud_data_type": "region", - "immutable": true, - "required": true + "description": "The sub-type of instance, e.g. cfaas .", + "computed": true }, { - "name": "status", - "type": "TypeString", - "description": "Status of resource instance", + "name": "last_operation", + "type": "TypeMap", + "description": "The status of the last operation requested on the instance", "computed": true }, { @@ -139010,10 +138928,9 @@ "computed": true }, { - "name": "crn", + "name": "guid", "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", + "description": "Guid of resource instance", "computed": true }, { @@ -139035,43 +138952,43 @@ } }, { - "name": "resource_group_crn", + "name": "update_by", "type": "TypeString", - "description": "The long ID (full CRN) of the resource group", + "description": "The subject who updated the instance.", "computed": true }, { - "name": "type", + "name": "resource_status", "type": "TypeString", - "description": "The type of the instance, e.g. service_instance.", + "description": "The status of the resource", "computed": true }, { - "name": "allow_cleanup", - "type": "TypeBool", - "description": "A boolean that dictates if the resource instance should be deleted (cleaned up) during the processing of a region instance delete call.", - "computed": true - } - ], - "ibm_resource_key": [ - { - "name": "resource_group_id", + "name": "location", "type": "TypeString", - "description": "The short ID of the resource group.", - "cloud_data_type": "resource_group", - "computed": true + "description": "The location where the instance available", + "cloud_data_type": "region", + "immutable": true, + "required": true }, { - "name": "created_by", + "name": "target_crn", "type": "TypeString", - "description": "The subject who created the key.", + "description": "The full deployment CRN as defined in the global catalog", "computed": true }, { - "name": "role", + "name": "deleted_by", "type": "TypeString", - "description": "Name of the user role.Valid roles are Writer, Reader, Manager, Administrator, Operator, Viewer, Editor and Custom Roles.", - "immutable": true, + "description": "The subject who deleted the instance.", + "computed": true + } + ], + "ibm_resource_key": [ + { + "name": "parameters", + "type": "TypeMap", + "description": "Arbitrary parameters to pass. Must be a JSON object", "optional": true }, { @@ -139082,53 +138999,24 @@ "computed": true }, { - "name": "credentials_json", - "type": "TypeString", - "description": "Credentials asociated with the key in json string", - "secure": true, - "computed": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "crn of resource key", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "url", + "name": "source_crn", "type": "TypeString", - "description": "When you created a new key, a relative URL path is created identifying the location of the key.", + "description": "The CRN of resource instance or alias associated to the key.", "computed": true }, { - "name": "account_id", + "name": "created_at", "type": "TypeString", - "description": "An alpha-numeric value identifying the account ID.", + "description": "The date when the key was created.", "computed": true }, { - "name": "state", + "name": "resource_group_id", "type": "TypeString", - "description": "The state of the key.", + "description": "The short ID of the resource group.", + "cloud_data_type": "resource_group", "computed": true }, - { - "name": "name", - "type": "TypeString", - "description": "The name of the resource key", - "immutable": true, - "required": true - }, { "name": "resource_instance_id", "type": "TypeString", @@ -139148,15 +139036,17 @@ "optional": true }, { - "name": "status", + "name": "credentials_json", "type": "TypeString", - "description": "Status of resource key", + "description": "Credentials asociated with the key in json string", + "secure": true, "computed": true }, { - "name": "created_at", + "name": "crn", "type": "TypeString", - "description": "The date when the key was created.", + "description": "crn of resource key", + "cloud_data_type": "crn", "computed": true }, { @@ -139166,33 +139056,46 @@ "computed": true }, { - "name": "parameters", - "type": "TypeMap", - "description": "Arbitrary parameters to pass. Must be a JSON object", - "optional": true + "name": "updated_by", + "type": "TypeString", + "description": "The subject who updated the key.", + "computed": true }, { - "name": "guid", + "name": "name", "type": "TypeString", - "description": "When you create a new key, a globally unique identifier (GUID) is assigned.", + "description": "The name of the resource key", + "immutable": true, + "required": true + }, + { + "name": "account_id", + "type": "TypeString", + "description": "An alpha-numeric value identifying the account ID.", "computed": true }, { - "name": "deleted_by", + "name": "resource_instance_url", "type": "TypeString", - "description": "The subject who deleted the key.", + "description": "The relative path to the resource.", "computed": true }, { - "name": "updated_by", + "name": "updated_at", "type": "TypeString", - "description": "The subject who updated the key.", + "description": "The date when the key was last updated.", "computed": true }, { - "name": "source_crn", + "name": "url", "type": "TypeString", - "description": "The CRN of resource instance or alias associated to the key.", + "description": "When you created a new key, a relative URL path is created identifying the location of the key.", + "computed": true + }, + { + "name": "state", + "type": "TypeString", + "description": "The state of the key.", "computed": true }, { @@ -139202,39 +139105,47 @@ "computed": true }, { - "name": "resource_instance_url", + "name": "created_by", "type": "TypeString", - "description": "The relative path to the resource.", + "description": "The subject who created the key.", "computed": true }, { - "name": "updated_at", - "type": "TypeString", - "description": "The date when the key was last updated.", - "computed": true - } - ], - "ibm_resource_tag": [ - { - "name": "resource_type", + "name": "role", "type": "TypeString", - "description": "Resource type on which the tags should be attached", + "description": "Name of the user role.Valid roles are Writer, Reader, Manager, Administrator, Operator, Viewer, Editor and Custom Roles.", + "immutable": true, "optional": true }, { - "name": "tag_type", + "name": "status", "type": "TypeString", - "description": "Type of the tag. Only allowed values are: user, or service or access (default value : user)", - "options": "service,access,user", - "optional": true, + "description": "Status of resource key", "computed": true }, { - "name": "acccount_id", + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "guid", "type": "TypeString", - "description": "The ID of the account that owns the resources to be tagged (required if tag-type is set to service)", + "description": "When you create a new key, a globally unique identifier (GUID) is assigned.", "computed": true }, + { + "name": "deleted_by", + "type": "TypeString", + "description": "The subject who deleted the key.", + "computed": true + } + ], + "ibm_resource_tag": [ { "name": "resource_id", "type": "TypeString", @@ -139256,44 +139167,61 @@ "elem": { "type": "TypeString" } + }, + { + "name": "resource_type", + "type": "TypeString", + "description": "Resource type on which the tags should be attached", + "optional": true + }, + { + "name": "tag_type", + "type": "TypeString", + "description": "Type of the tag. Only allowed values are: user, or service or access (default value : user)", + "options": "service,access,user", + "optional": true, + "computed": true + }, + { + "name": "acccount_id", + "type": "TypeString", + "description": "The ID of the account that owns the resources to be tagged (required if tag-type is set to service)", + "computed": true } ], "ibm_satellite_cluster": [ { - "name": "public_service_endpoint_url", + "name": "kube_version", "type": "TypeString", + "description": "The OpenShift Container Platform version", + "optional": true, "computed": true }, { - "name": "private_service_endpoint_url", + "name": "master_status", "type": "TypeString", "computed": true }, { - "name": "wait_for_worker_update", + "name": "enable_config_admin", "type": "TypeBool", - "description": "Wait for worker node to update during kube version update.", - "default_value": true, - "optional": true + "description": "Grant cluster admin access to Satellite Config to manage Kubernetes resources.", + "optional": true, + "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "The unique name for the new IBM Cloud Satellite cluster", - "immutable": true, - "required": true + "name": "private_service_endpoint_enabled", + "type": "TypeBool", + "computed": true }, { - "name": "location", + "name": "public_service_endpoint_url", "type": "TypeString", - "description": "The name or ID of the Satellite location", - "cloud_data_type": "region", - "required": true + "computed": true }, { - "name": "state", - "type": "TypeString", - "description": "The lifecycle state of the cluster.", + "name": "public_service_endpoint_enabled", + "type": "TypeBool", "computed": true }, { @@ -139306,6 +139234,47 @@ "type": "TypeString" } }, + { + "name": "private_service_endpoint_url", + "type": "TypeString", + "computed": true + }, + { + "name": "host_labels", + "type": "TypeSet", + "description": "Labels that describe a Satellite host for default workerpool", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "name", + "type": "TypeString", + "description": "The unique name for the new IBM Cloud Satellite cluster", + "immutable": true, + "required": true + }, + { + "name": "operating_system", + "type": "TypeString", + "description": "Operating system of the default worker pool. Options are REDHAT_7_64, REDHAT_8_64, or RHCOS.", + "optional": true, + "computed": true + }, + { + "name": "master_url", + "type": "TypeString", + "computed": true + }, + { + "name": "worker_count", + "type": "TypeInt", + "description": "The number of worker nodes per zone in the default worker pool. Required when '--host-label' is specified. (default: 0)", + "optional": true, + "computed": true + }, { "name": "zones", "type": "TypeSet", @@ -139327,6 +139296,18 @@ "secure": true, "computed": true }, + { + "name": "patch_version", + "type": "TypeString", + "description": "Kubernetes patch version", + "optional": true + }, + { + "name": "retry_patch_version", + "type": "TypeInt", + "description": "Argument which helps to retry the patch version updates on worker nodes. Increment the value to retry the patch updates if the previous apply fails", + "optional": true + }, { "name": "pod_subnet", "type": "TypeString", @@ -139335,18 +139316,17 @@ "computed": true }, { - "name": "service_subnet", + "name": "resource_group_name", "type": "TypeString", - "description": "User provided value for service subnet", - "optional": true, + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "crn", - "type": "TypeString", - "description": "CRN of resource instance", - "cloud_data_type": "crn", - "computed": true + "name": "disable_public_service_endpoint", + "type": "TypeBool", + "description": "Boolean value true if Public service endpoint to be disabled", + "default_value": false, + "optional": true }, { "name": "tags", @@ -139362,88 +139342,39 @@ } }, { - "name": "patch_version", - "type": "TypeString", - "description": "Kubernetes patch version", - "optional": true - }, - { - "name": "master_status", + "name": "location", "type": "TypeString", - "computed": true + "description": "The name or ID of the Satellite location", + "cloud_data_type": "region", + "required": true }, { - "name": "disable_public_service_endpoint", + "name": "wait_for_worker_update", "type": "TypeBool", - "description": "Boolean value true if Public service endpoint to be disabled", - "default_value": false, + "description": "Wait for worker node to update during kube version update.", + "default_value": true, "optional": true }, { - "name": "public_service_endpoint_enabled", - "type": "TypeBool", - "computed": true - }, - { - "name": "kube_version", - "type": "TypeString", - "description": "The OpenShift Container Platform version", - "optional": true, - "computed": true - }, - { - "name": "operating_system", + "name": "service_subnet", "type": "TypeString", - "description": "Operating system of the default worker pool. Options are REDHAT_7_64, REDHAT_8_64, or RHCOS.", + "description": "User provided value for service subnet", "optional": true, "computed": true }, { - "name": "master_url", + "name": "resource_group_id", "type": "TypeString", - "computed": true - }, - { - "name": "enable_config_admin", - "type": "TypeBool", - "description": "Grant cluster admin access to Satellite Config to manage Kubernetes resources.", - "optional": true, - "computed": true - }, - { - "name": "worker_count", - "type": "TypeInt", - "description": "The number of worker nodes per zone in the default worker pool. Required when '--host-label' is specified. (default: 0)", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", "optional": true, "computed": true }, - { - "name": "pull_secret", - "type": "TypeString", - "description": "The RedHat pull secret to create the OpenShift cluster", - "optional": true - }, - { - "name": "resource_group_name", - "type": "TypeString", - "description": "The resource group name in which resource is provisioned", - "computed": true - }, { "name": "ingress_hostname", "type": "TypeString", "computed": true }, - { - "name": "host_labels", - "type": "TypeSet", - "description": "Labels that describe a Satellite host for default workerpool", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "infrastructure_topology", "type": "TypeString", @@ -139453,36 +139384,37 @@ "computed": true }, { - "name": "retry_patch_version", - "type": "TypeInt", - "description": "Argument which helps to retry the patch version updates on worker nodes. Increment the value to retry the patch updates if the previous apply fails", + "name": "crn_token", + "type": "TypeString", + "description": "The IBM Cloud Identity and Access Management (IAM) service CRN token for the service that creates the cluster.", + "secure": true, "optional": true }, { - "name": "private_service_endpoint_enabled", - "type": "TypeBool", + "name": "state", + "type": "TypeString", + "description": "The lifecycle state of the cluster.", "computed": true }, { - "name": "crn_token", + "name": "pull_secret", "type": "TypeString", - "description": "The IBM Cloud Identity and Access Management (IAM) service CRN token for the service that creates the cluster.", - "secure": true, + "description": "The RedHat pull secret to create the OpenShift cluster", "optional": true }, { - "name": "resource_group_id", + "name": "crn", "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "optional": true, + "description": "CRN of resource instance", + "cloud_data_type": "crn", "computed": true } ], "ibm_satellite_cluster_worker_pool": [ { - "name": "isolation", - "type": "TypeString", + "name": "worker_count", + "type": "TypeInt", + "description": "Specify the desired number of workers per zone in this worker pool", "optional": true, "computed": true }, @@ -139522,14 +139454,6 @@ "type": "TypeString" } }, - { - "name": "resource_group_id", - "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", - "optional": true, - "computed": true - }, { "name": "cluster", "type": "TypeString", @@ -139545,8 +139469,9 @@ "computed": true }, { - "name": "entitlement", - "type": "TypeString", + "name": "disk_encryption", + "type": "TypeBool", + "description": "Disk encryption for worker node", "optional": true }, { @@ -139557,9 +139482,10 @@ "computed": true }, { - "name": "worker_count", - "type": "TypeInt", - "description": "Specify the desired number of workers per zone in this worker pool", + "name": "resource_group_id", + "type": "TypeString", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", "optional": true, "computed": true }, @@ -139570,25 +139496,18 @@ "required": true }, { - "name": "disk_encryption", - "type": "TypeBool", - "description": "Disk encryption for worker node", - "optional": true - } - ], - "ibm_satellite_cluster_worker_pool_zone_attachment": [ - { - "name": "worker_count", - "type": "TypeInt", - "description": "Number of workers", + "name": "isolation", + "type": "TypeString", + "optional": true, "computed": true }, { - "name": "cluster", + "name": "entitlement", "type": "TypeString", - "immutable": true, - "required": true - }, + "optional": true + } + ], + "ibm_satellite_cluster_worker_pool_zone_attachment": [ { "name": "worker_pool", "type": "TypeString", @@ -139622,14 +139541,57 @@ "elem": { "type": "TypeString" } + }, + { + "name": "worker_count", + "type": "TypeInt", + "description": "Number of workers", + "computed": true + }, + { + "name": "cluster", + "type": "TypeString", + "immutable": true, + "required": true } ], "ibm_satellite_endpoint": [ { - "name": "last_change", + "name": "created_by", "type": "TypeString", - "description": "The last time modify the Endpoint configurations.", - "computed": true + "description": "The service or person who created the endpoint. Must be 1000 characters or fewer.", + "optional": true + }, + { + "name": "sources", + "type": "TypeList", + "computed": true, + "elem": { + "enabled": { + "name": "enabled", + "type": "TypeBool", + "description": "Whether the source is enabled for the endpoint.", + "optional": true + }, + "last_change": { + "name": "last_change", + "type": "TypeString", + "description": "The last time modify the Endpoint configurations.", + "optional": true + }, + "pending": { + "name": "pending", + "type": "TypeBool", + "description": "Whether the source has been enabled on this endpoint.", + "optional": true + }, + "source_id": { + "name": "source_id", + "type": "TypeString", + "description": "The Source ID.", + "optional": true + } + } }, { "name": "endpoint_id", @@ -139637,12 +139599,66 @@ "description": "The Endpoint ID.", "computed": true }, + { + "name": "location", + "type": "TypeString", + "description": "The Location ID.", + "cloud_data_type": "region", + "required": true + }, { "name": "display_name", "type": "TypeString", "description": "The display name of the endpoint. Endpoint names must start with a letter and end with an alphanumeric character, can contain letters, numbers, and hyphen (-), and must be 63 characters or fewer.", "required": true }, + { + "name": "sni", + "type": "TypeString", + "description": "The server name indicator (SNI) which used to connect to the server endpoint. Only useful if server side requires SNI.", + "optional": true + }, + { + "name": "timeout", + "type": "TypeInt", + "description": "The inactivity timeout in the Endpoint side.", + "min_value": "1", + "max_value": "180", + "optional": true + }, + { + "name": "client_protocol", + "type": "TypeString", + "description": "The protocol in the client application side.", + "required": true, + "options": "http, http-tunnel, https, tcp, tls, udp" + }, + { + "name": "connector_port", + "type": "TypeInt", + "description": "The connector port.", + "computed": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "Service instance associated with this location.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "client_port", + "type": "TypeInt", + "description": "The port which Satellite Link server listen on for the on-location, or the port which the connector server listen on for the on-cloud endpoint destiantion.", + "computed": true + }, + { + "name": "reject_unauth", + "type": "TypeBool", + "description": "Whether reject any connection to the server application which is not authorized with the list of supplied CAs in the fields certs.server_cert.", + "default_value": false, + "optional": true + }, { "name": "certs", "type": "TypeList", @@ -139763,141 +139779,6 @@ }, "max_items": 1 }, - { - "name": "crn", - "type": "TypeString", - "description": "Service instance associated with this location.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "performance", - "type": "TypeList", - "description": "The last performance data of the endpoint.", - "computed": true, - "elem": { - "bandwidth": { - "name": "bandwidth", - "type": "TypeInt", - "description": "Average Tatal Bandwidth of last two minutes, unit is Byte/s.", - "optional": true - }, - "connection": { - "name": "connection", - "type": "TypeInt", - "description": "Concurrent connections number of moment when probe read the data.", - "optional": true - }, - "connectors": { - "name": "connectors", - "type": "TypeList", - "description": "The last performance data of the endpoint from each Connector.", - "optional": true, - "elem": { - "connections": { - "name": "connections", - "type": "TypeInt", - "description": "Concurrent connections number of moment when probe read the data from the Connector.", - "optional": true - }, - "connector": { - "name": "connector", - "type": "TypeString", - "description": "The name of the connector reported the performance data.", - "optional": true - }, - "rx_bw": { - "name": "rx_bw", - "type": "TypeInt", - "description": "Average Transmitted (to Location) Bandwidth of last two minutes read from the Connector, unit is Byte/s.", - "optional": true - }, - "tx_bw": { - "name": "tx_bw", - "type": "TypeInt", - "description": "Average Transmitted (to Location) Bandwidth of last two minutes read from the Connector, unit is Byte/s.", - "optional": true - } - } - }, - "rx_bandwidth": { - "name": "rx_bandwidth", - "type": "TypeInt", - "description": "Average Receive (to Cloud) Bandwidth of last two minutes, unit is Byte/s.", - "optional": true - }, - "tx_bandwidth": { - "name": "tx_bandwidth", - "type": "TypeInt", - "description": "Average Transmitted (to Location) Bandwidth of last two minutes, unit is Byte/s.", - "optional": true - } - } - }, - { - "name": "location", - "type": "TypeString", - "description": "The Location ID.", - "cloud_data_type": "region", - "required": true - }, - { - "name": "server_host", - "type": "TypeString", - "description": "The host name or IP address of the server endpoint. For 'http-tunnel' protocol, server_host can start with '*.' , which means a wildcard to it's sub domains. Such as '*.example.com' can accept request to 'api.example.com' and 'www.example.com'.", - "required": true - }, - { - "name": "sources", - "type": "TypeList", - "computed": true, - "elem": { - "enabled": { - "name": "enabled", - "type": "TypeBool", - "description": "Whether the source is enabled for the endpoint.", - "optional": true - }, - "last_change": { - "name": "last_change", - "type": "TypeString", - "description": "The last time modify the Endpoint configurations.", - "optional": true - }, - "pending": { - "name": "pending", - "type": "TypeBool", - "description": "Whether the source has been enabled on this endpoint.", - "optional": true - }, - "source_id": { - "name": "source_id", - "type": "TypeString", - "description": "The Source ID.", - "optional": true - } - } - }, - { - "name": "status", - "type": "TypeString", - "description": "Whether the Endpoint is active or not.", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The time when the Endpoint is created.", - "computed": true - }, - { - "name": "timeout", - "type": "TypeInt", - "description": "The inactivity timeout in the Endpoint side.", - "min_value": "1", - "max_value": "180", - "optional": true - }, { "name": "service_name", "type": "TypeString", @@ -139911,11 +139792,17 @@ "computed": true }, { - "name": "client_protocol", + "name": "connection_type", "type": "TypeString", - "description": "The protocol in the client application side.", + "description": "The type of the endpoint.", "required": true, - "options": "http, http-tunnel, https, tcp, tls, udp" + "options": "cloud, location" + }, + { + "name": "server_host", + "type": "TypeString", + "description": "The host name or IP address of the server endpoint. For 'http-tunnel' protocol, server_host can start with '*.' , which means a wildcard to it's sub domains. Such as '*.example.com' can accept request to 'api.example.com' and 'www.example.com'.", + "required": true }, { "name": "client_mutual_auth", @@ -139924,13 +139811,6 @@ "default_value": false, "optional": true }, - { - "name": "server_protocol", - "type": "TypeString", - "description": "The protocol in the server application side. This parameter will change to default value if it is omitted even when using PATCH API. If client_protocol is 'udp', server_protocol must be 'udp'. If client_protocol is 'tcp'/'http', server_protocol could be 'tcp'/'tls' and default to 'tcp'. If client_protocol is 'tls'/'https', server_protocol could be 'tcp'/'tls' and default to 'tls'. If client_protocol is 'http-tunnel', server_protocol must be 'tcp'.", - "options": "tcp, tls, udp", - "optional": true - }, { "name": "server_mutual_auth", "type": "TypeBool", @@ -139939,18 +139819,74 @@ "optional": true }, { - "name": "reject_unauth", - "type": "TypeBool", - "description": "Whether reject any connection to the server application which is not authorized with the list of supplied CAs in the fields certs.server_cert.", - "default_value": false, - "optional": true + "name": "created_at", + "type": "TypeString", + "description": "The time when the Endpoint is created.", + "computed": true }, { - "name": "connection_type", - "type": "TypeString", - "description": "The type of the endpoint.", - "required": true, - "options": "cloud, location" + "name": "performance", + "type": "TypeList", + "description": "The last performance data of the endpoint.", + "computed": true, + "elem": { + "bandwidth": { + "name": "bandwidth", + "type": "TypeInt", + "description": "Average Tatal Bandwidth of last two minutes, unit is Byte/s.", + "optional": true + }, + "connection": { + "name": "connection", + "type": "TypeInt", + "description": "Concurrent connections number of moment when probe read the data.", + "optional": true + }, + "connectors": { + "name": "connectors", + "type": "TypeList", + "description": "The last performance data of the endpoint from each Connector.", + "optional": true, + "elem": { + "connections": { + "name": "connections", + "type": "TypeInt", + "description": "Concurrent connections number of moment when probe read the data from the Connector.", + "optional": true + }, + "connector": { + "name": "connector", + "type": "TypeString", + "description": "The name of the connector reported the performance data.", + "optional": true + }, + "rx_bw": { + "name": "rx_bw", + "type": "TypeInt", + "description": "Average Transmitted (to Location) Bandwidth of last two minutes read from the Connector, unit is Byte/s.", + "optional": true + }, + "tx_bw": { + "name": "tx_bw", + "type": "TypeInt", + "description": "Average Transmitted (to Location) Bandwidth of last two minutes read from the Connector, unit is Byte/s.", + "optional": true + } + } + }, + "rx_bandwidth": { + "name": "rx_bandwidth", + "type": "TypeInt", + "description": "Average Receive (to Cloud) Bandwidth of last two minutes, unit is Byte/s.", + "optional": true + }, + "tx_bandwidth": { + "name": "tx_bandwidth", + "type": "TypeInt", + "description": "Average Transmitted (to Location) Bandwidth of last two minutes, unit is Byte/s.", + "optional": true + } + } }, { "name": "server_port", @@ -139959,27 +139895,22 @@ "required": true }, { - "name": "sni", + "name": "server_protocol", "type": "TypeString", - "description": "The server name indicator (SNI) which used to connect to the server endpoint. Only useful if server side requires SNI.", + "description": "The protocol in the server application side. This parameter will change to default value if it is omitted even when using PATCH API. If client_protocol is 'udp', server_protocol must be 'udp'. If client_protocol is 'tcp'/'http', server_protocol could be 'tcp'/'tls' and default to 'tcp'. If client_protocol is 'tls'/'https', server_protocol could be 'tcp'/'tls' and default to 'tls'. If client_protocol is 'http-tunnel', server_protocol must be 'tcp'.", + "options": "tcp, tls, udp", "optional": true }, { - "name": "created_by", + "name": "status", "type": "TypeString", - "description": "The service or person who created the endpoint. Must be 1000 characters or fewer.", - "optional": true - }, - { - "name": "connector_port", - "type": "TypeInt", - "description": "The connector port.", + "description": "Whether the Endpoint is active or not.", "computed": true }, { - "name": "client_port", - "type": "TypeInt", - "description": "The port which Satellite Link server listen on for the on-location, or the port which the connector server listen on for the on-cloud endpoint destiantion.", + "name": "last_change", + "type": "TypeString", + "description": "The last time modify the Endpoint configurations.", "computed": true } ], @@ -139991,9 +139922,19 @@ "required": true }, { - "name": "zone", + "name": "labels", + "type": "TypeSet", + "description": "List of labels for the host", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "worker_pool", "type": "TypeString", - "description": "The zone within the cluster to assign the host to", + "description": "The name or ID of the worker pool within the cluster to assign the host to", "optional": true, "computed": true }, @@ -140003,6 +139944,12 @@ "description": "Host Provider", "optional": true }, + { + "name": "host_state", + "type": "TypeString", + "description": "Health status of the host", + "computed": true + }, { "name": "wait_till", "type": "TypeString", @@ -140010,13 +139957,6 @@ "options": "location_normal", "optional": true }, - { - "name": "location", - "type": "TypeString", - "description": "The name or ID of the Satellite location", - "cloud_data_type": "region", - "required": true - }, { "name": "cluster", "type": "TypeString", @@ -140025,30 +139965,29 @@ "computed": true }, { - "name": "labels", - "type": "TypeSet", - "description": "List of labels for the host", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "worker_pool", + "name": "zone", "type": "TypeString", - "description": "The name or ID of the worker pool within the cluster to assign the host to", + "description": "The zone within the cluster to assign the host to", "optional": true, "computed": true }, { - "name": "host_state", + "name": "location", "type": "TypeString", - "description": "Health status of the host", - "computed": true + "description": "The name or ID of the Satellite location", + "cloud_data_type": "region", + "required": true } ], "ibm_satellite_link": [ + { + "name": "crn", + "type": "TypeString", + "description": "CRN of the Location.", + "cloud_data_type": "crn", + "immutable": true, + "required": true + }, { "name": "location", "type": "TypeString", @@ -140064,12 +140003,36 @@ "optional": true, "computed": true }, + { + "name": "description", + "type": "TypeString", + "description": "Description of the location.", + "computed": true + }, { "name": "created_at", "type": "TypeString", "description": "Timestamp of creation of location.", "computed": true }, + { + "name": "satellite_link_host", + "type": "TypeString", + "description": "Satellite Link hostname of the location.", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "Enabled/Disabled.", + "computed": true + }, + { + "name": "last_change", + "type": "TypeString", + "description": "Timestamp of latest modification of location.", + "computed": true + }, { "name": "performance", "type": "TypeList", @@ -140145,41 +140108,17 @@ "optional": true } } - }, - { - "name": "crn", - "type": "TypeString", - "description": "CRN of the Location.", - "cloud_data_type": "crn", - "immutable": true, - "required": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Description of the location.", - "computed": true - }, - { - "name": "satellite_link_host", - "type": "TypeString", - "description": "Satellite Link hostname of the location.", - "computed": true - }, + } + ], + "ibm_satellite_location": [ { - "name": "status", + "name": "resource_group_id", "type": "TypeString", - "description": "Enabled/Disabled.", + "description": "ID of the resource group.", + "cloud_data_type": "resource_group", + "optional": true, "computed": true }, - { - "name": "last_change", - "type": "TypeString", - "description": "Timestamp of latest modification of location.", - "computed": true - } - ], - "ibm_satellite_location": [ { "name": "crn", "type": "TypeString", @@ -140188,16 +140127,16 @@ "computed": true }, { - "name": "created_on", + "name": "location", "type": "TypeString", - "description": "Created Date", - "computed": true + "description": "A unique name for the new Satellite location", + "cloud_data_type": "region", + "required": true }, { - "name": "zones", - "type": "TypeSet", - "description": "The names of at least three high availability zones to use for the location", - "optional": true, + "name": "host_attached_count", + "type": "TypeInt", + "description": "The total number of hosts that are attached to the Satellite location.", "computed": true, "elem": { "type": "TypeString" @@ -140210,33 +140149,40 @@ "optional": true }, { - "name": "cos_credentials", + "name": "coreos_enabled", + "type": "TypeBool", + "description": "Enable Red Hat CoreOS features within the Satellite location", + "optional": true, + "computed": true + }, + { + "name": "cos_config", "type": "TypeList", - "description": "COSAuthorization - IBM Cloud Object Storage authorization keys", + "description": "COSBucket - IBM Cloud Object Storage bucket configuration details", "optional": true, "elem": { - "access_key_id": { - "name": "access_key_id", + "bucket": { + "name": "bucket", "type": "TypeString", - "description": "The HMAC secret access key ID", "optional": true }, - "secret_access_key": { - "name": "secret_access_key", + "endpoint": { + "name": "endpoint", + "type": "TypeString", + "optional": true + }, + "region": { + "name": "region", "type": "TypeString", - "description": "The HMAC secret access key", "optional": true } }, "max_items": 1 }, { - "name": "tags", + "name": "zones", "type": "TypeSet", - "description": "List of tags associated with resource instance", - "min_length": 1, - "max_length": 128, - "matches": "^[A-Za-z0-9:_ .-]+$", + "description": "The names of at least three high availability zones to use for the location", "optional": true, "computed": true, "elem": { @@ -140244,18 +140190,14 @@ } }, { - "name": "host_available_count", - "type": "TypeInt", - "description": "The available number of hosts that can be assigned to a cluster resource in the Satellite location.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "resource_group_name", + "type": "TypeString", + "description": "Name of the resource group", + "computed": true }, { - "name": "ingress_secret", + "name": "ingress_hostname", "type": "TypeString", - "secure": true, "computed": true }, { @@ -140271,70 +140213,59 @@ "optional": true }, { - "name": "cos_config", + "name": "cos_credentials", "type": "TypeList", - "description": "COSBucket - IBM Cloud Object Storage bucket configuration details", + "description": "COSAuthorization - IBM Cloud Object Storage authorization keys", "optional": true, "elem": { - "bucket": { - "name": "bucket", - "type": "TypeString", - "optional": true - }, - "endpoint": { - "name": "endpoint", + "access_key_id": { + "name": "access_key_id", "type": "TypeString", + "description": "The HMAC secret access key ID", "optional": true }, - "region": { - "name": "region", + "secret_access_key": { + "name": "secret_access_key", "type": "TypeString", + "description": "The HMAC secret access key", "optional": true } }, "max_items": 1 }, { - "name": "resource_group_id", - "type": "TypeString", - "description": "ID of the resource group.", - "cloud_data_type": "resource_group", + "name": "tags", + "type": "TypeSet", + "description": "List of tags associated with resource instance", + "min_length": 1, + "max_length": 128, + "matches": "^[A-Za-z0-9:_ .-]+$", "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "host_attached_count", + "name": "host_available_count", "type": "TypeInt", - "description": "The total number of hosts that are attached to the Satellite location.", + "description": "The available number of hosts that can be assigned to a cluster resource in the Satellite location.", "computed": true, "elem": { "type": "TypeString" } }, { - "name": "coreos_enabled", - "type": "TypeBool", - "description": "Enable Red Hat CoreOS features within the Satellite location", - "optional": true, - "computed": true - }, - { - "name": "resource_group_name", + "name": "created_on", "type": "TypeString", - "description": "Name of the resource group", + "description": "Created Date", "computed": true }, { - "name": "ingress_hostname", + "name": "ingress_secret", "type": "TypeString", + "secure": true, "computed": true - }, - { - "name": "location", - "type": "TypeString", - "description": "A unique name for the new Satellite location", - "cloud_data_type": "region", - "required": true } ], "ibm_satellite_location_nlb_dns": [ @@ -140363,10 +140294,9 @@ "required": true }, { - "name": "uuid", + "name": "owner", "type": "TypeString", - "description": "The Universally Unique IDentifier (UUID) of the Assignment.", - "immutable": true, + "description": "The Owner of the Assignment.", "computed": true }, { @@ -140375,6 +140305,12 @@ "description": "ID of the Satellite cluster or Service Cluster that you want to apply the configuration to.", "optional": true }, + { + "name": "config_uuid", + "type": "TypeString", + "description": "The Universally Unique IDentifier (UUID) of the Storage Configuration.", + "computed": true + }, { "name": "assignment_type", "type": "TypeString", @@ -140388,15 +140324,21 @@ "computed": true }, { - "name": "svc_cluster", - "type": "TypeString", - "description": "ID of the Service Cluster that you applied the configuration to.", + "name": "is_assignment_upgrade_available", + "type": "TypeBool", + "description": "Whether an Upgrade is Available for the Assignment.", "computed": true }, { - "name": "config_uuid", + "name": "config", "type": "TypeString", - "description": "The Universally Unique IDentifier (UUID) of the Storage Configuration.", + "description": "Storage Configuration Name or ID.", + "required": true + }, + { + "name": "config_version", + "type": "TypeString", + "description": "The Storage Configuration Version.", "computed": true }, { @@ -140405,6 +140347,12 @@ "description": "The Time of Creation of the Assignment.", "computed": true }, + { + "name": "rollout_error_count", + "type": "TypeInt", + "description": "The Rollout Error Count of the Assignment.", + "computed": true + }, { "name": "update_config_revision", "type": "TypeBool", @@ -140413,28 +140361,29 @@ "optional": true }, { - "name": "controller", + "name": "uuid", "type": "TypeString", - "description": "The Name or ID of the Satellite Location.", - "optional": true + "description": "The Universally Unique IDentifier (UUID) of the Assignment.", + "immutable": true, + "computed": true }, { - "name": "config_version", + "name": "svc_cluster", "type": "TypeString", - "description": "The Storage Configuration Version.", + "description": "ID of the Service Cluster that you applied the configuration to.", "computed": true }, { - "name": "rollout_error_count", - "type": "TypeInt", - "description": "The Rollout Error Count of the Assignment.", + "name": "config_version_uuid", + "type": "TypeString", + "description": "The Universally Unique IDentifier (UUID) of the Storage Configuration Version.", "computed": true }, { - "name": "owner", + "name": "controller", "type": "TypeString", - "description": "The Owner of the Assignment.", - "computed": true + "description": "The Name or ID of the Satellite Location.", + "optional": true }, { "name": "groups", @@ -140450,27 +140399,24 @@ "type": "TypeString", "description": "ID of the Satellite cluster that you applied the configuration to.", "computed": true - }, + } + ], + "ibm_satellite_storage_configuration": [ { - "name": "config", + "name": "storage_template_version", "type": "TypeString", - "description": "Storage Configuration Name or ID.", + "description": "The Storage Template Version.", "required": true }, { - "name": "config_version_uuid", - "type": "TypeString", - "description": "The Universally Unique IDentifier (UUID) of the Storage Configuration Version.", - "computed": true + "name": "user_config_parameters", + "type": "TypeMap", + "description": "User Config Parameters to pass as a Map of string key-value.", + "required": true, + "elem": { + "type": "TypeString" + } }, - { - "name": "is_assignment_upgrade_available", - "type": "TypeBool", - "description": "Whether an Upgrade is Available for the Assignment.", - "computed": true - } - ], - "ibm_satellite_storage_configuration": [ { "name": "user_secret_parameters", "type": "TypeMap", @@ -140481,13 +140427,6 @@ "type": "TypeString" } }, - { - "name": "delete_assignments", - "type": "TypeBool", - "description": "Set to delete all assignments during a configuration destroy.", - "default_value": false, - "optional": true - }, { "name": "location", "type": "TypeString", @@ -140496,25 +140435,10 @@ "required": true }, { - "name": "storage_template_version", - "type": "TypeString", - "description": "The Storage Template Version.", - "required": true - }, - { - "name": "storage_template_name", + "name": "config_version", "type": "TypeString", - "description": "The Storage Template Name.", - "required": true - }, - { - "name": "user_config_parameters", - "type": "TypeMap", - "description": "User Config Parameters to pass as a Map of string key-value.", - "required": true, - "elem": { - "type": "TypeString" - } + "description": "Version of the Storage Configuration.", + "computed": true }, { "name": "storage_class_parameters", @@ -140542,6 +140466,13 @@ "default_value": false, "optional": true }, + { + "name": "delete_assignments", + "type": "TypeBool", + "description": "Set to delete all assignments during a configuration destroy.", + "default_value": false, + "optional": true + }, { "name": "config_name", "type": "TypeString", @@ -140550,10 +140481,10 @@ "required": true }, { - "name": "config_version", + "name": "storage_template_name", "type": "TypeString", - "description": "Version of the Storage Configuration.", - "computed": true + "description": "The Storage Template Name.", + "required": true } ], "ibm_scc_account_settings": [], @@ -140567,34 +140498,6 @@ "max_length": 256, "matches": "[A-Za-z0-9]+" }, - { - "name": "control_library_type", - "type": "TypeString", - "description": "The control library type.", - "required": true, - "options": "custom, predefined" - }, - { - "name": "latest", - "type": "TypeBool", - "description": "The latest version of the control library.", - "optional": true - }, - { - "name": "control_parents_count", - "type": "TypeInt", - "description": "The number of parent controls in the control library.", - "computed": true - }, - { - "name": "control_library_name", - "type": "TypeString", - "description": "The control library name.", - "required": true, - "min_length": 2, - "max_length": 64, - "matches": "^[a-zA-Z0-9_\\s\\-]*$" - }, { "name": "control_library_version", "type": "TypeString", @@ -140605,50 +140508,9 @@ "optional": true }, { - "name": "controls_count", - "type": "TypeInt", - "description": "The number of controls.", - "computed": true - }, - { - "name": "created_on", - "type": "TypeString", - "description": "The date when the control library was created.", - "computed": true - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Security and Compliance Center instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "The user who created the control library.", - "computed": true - }, - { - "name": "updated_by", - "type": "TypeString", - "description": "The user who updated the control library.", - "computed": true - }, - { - "name": "control_library_id", - "type": "TypeString", - "description": "The control library ID.", - "computed": true - }, - { - "name": "version_group_label", - "type": "TypeString", - "description": "The version group label.", - "min_length": 36, - "max_length": 36, - "matches": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", + "name": "latest", + "type": "TypeBool", + "description": "The latest version of the control library.", "optional": true }, { @@ -140845,85 +140707,57 @@ } } }, - { - "name": "account_id", - "type": "TypeString", - "description": "The account ID.", - "computed": true - }, - { - "name": "updated_on", - "type": "TypeString", - "description": "The date when the control library was updated.", - "computed": true - }, - { - "name": "hierarchy_enabled", - "type": "TypeBool", - "description": "The indication of whether hierarchy is enabled for the control library.", - "computed": true - } - ], - "ibm_scc_profile": [ - { - "name": "created_by", - "type": "TypeString", - "description": "The user who created the profile.", - "computed": true - }, { "name": "control_parents_count", "type": "TypeInt", - "description": "The number of parent controls for the profile.", + "description": "The number of parent controls in the control library.", "computed": true }, { - "name": "attachments_count", - "type": "TypeInt", - "description": "The number of attachments related to this profile.", + "name": "control_library_id", + "type": "TypeString", + "description": "The control library ID.", "computed": true }, { - "name": "profile_name", + "name": "control_library_name", "type": "TypeString", - "description": "The profile name.", + "description": "The control library name.", "required": true, "min_length": 2, "max_length": 64, "matches": "^[a-zA-Z0-9_\\s\\-]*$" }, { - "name": "profile_type", + "name": "control_library_type", "type": "TypeString", - "description": "The profile type, such as custom or predefined.", - "required": true + "description": "The control library type.", + "required": true, + "options": "custom, predefined" }, { - "name": "updated_by", - "type": "TypeString", - "description": "The user who updated the profile.", + "name": "controls_count", + "type": "TypeInt", + "description": "The number of controls.", "computed": true }, { - "name": "updated_on", + "name": "created_on", "type": "TypeString", - "description": "The date when the profile was updated.", + "description": "The date when the control library was created.", "computed": true }, { - "name": "profile_id", + "name": "updated_by", "type": "TypeString", - "description": "The profile name.", + "description": "The user who updated the control library.", "computed": true }, { - "name": "profile_description", - "type": "TypeString", - "description": "The profile description.", - "required": true, - "min_length": 2, - "max_length": 256, - "matches": "^[a-zA-Z0-9_,'\"\\s\\-\\[\\]]+$" + "name": "hierarchy_enabled", + "type": "TypeBool", + "description": "The indication of whether hierarchy is enabled for the control library.", + "computed": true }, { "name": "instance_id", @@ -140934,21 +140768,44 @@ "required": true }, { - "name": "latest", - "type": "TypeBool", - "description": "The latest version of the profile.", + "name": "version_group_label", + "type": "TypeString", + "description": "The version group label.", + "min_length": 36, + "max_length": 36, + "matches": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", + "optional": true + }, + { + "name": "account_id", + "type": "TypeString", + "description": "The account ID.", "computed": true }, { - "name": "hierarchy_enabled", - "type": "TypeBool", - "description": "The indication of whether hierarchy is enabled for the profile.", + "name": "created_by", + "type": "TypeString", + "description": "The user who created the control library.", "computed": true }, { - "name": "controls_count", - "type": "TypeInt", - "description": "The number of controls for the profile.", + "name": "updated_on", + "type": "TypeString", + "description": "The date when the control library was updated.", + "computed": true + } + ], + "ibm_scc_profile": [ + { + "name": "version_group_label", + "type": "TypeString", + "description": "The version group label of the profile.", + "computed": true + }, + { + "name": "created_on", + "type": "TypeString", + "description": "The date when the profile was created.", "computed": true }, { @@ -140993,13 +140850,13 @@ "name": "control_id", "type": "TypeString", "description": "The unique ID of the control inside the control library.", - "optional": true + "required": true }, "control_library_id": { "name": "control_library_id", "type": "TypeString", "description": "The ID of the control library that contains the profile.", - "optional": true + "required": true }, "control_library_version": { "name": "control_library_version", @@ -141148,17 +141005,56 @@ } }, { - "name": "version_group_label", + "name": "profile_version", "type": "TypeString", - "description": "The version group label of the profile.", + "description": "The version status of the profile.", + "optional": true, "computed": true }, { - "name": "created_on", + "name": "latest", + "type": "TypeBool", + "description": "The latest version of the profile.", + "computed": true + }, + { + "name": "profile_name", "type": "TypeString", - "description": "The date when the profile was created.", + "description": "The profile name.", + "required": true, + "min_length": 2, + "max_length": 64, + "matches": "^[a-zA-Z0-9_\\s\\-]*$" + }, + { + "name": "profile_description", + "type": "TypeString", + "description": "The profile description.", + "required": true, + "min_length": 2, + "max_length": 256, + "matches": "^[a-zA-Z0-9_,'\"\\s\\-\\[\\]]+$" + }, + { + "name": "updated_on", + "type": "TypeString", + "description": "The date when the profile was updated.", + "computed": true + }, + { + "name": "attachments_count", + "type": "TypeInt", + "description": "The number of attachments related to this profile.", "computed": true }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Security and Compliance Center instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, { "name": "default_parameters", "type": "TypeList", @@ -141204,54 +141100,58 @@ } }, { - "name": "profile_version", - "type": "TypeString", - "description": "The version status of the profile.", + "name": "hierarchy_enabled", + "type": "TypeBool", + "description": "The indication of whether hierarchy is enabled for the profile.", "computed": true - } - ], - "ibm_scc_profile_attachment": [ + }, { - "name": "profile_attachment_id", + "name": "created_by", "type": "TypeString", - "description": "The profile attachment ID.", + "description": "The user who created the profile.", "computed": true }, { - "name": "profile_id", + "name": "updated_by", "type": "TypeString", - "description": "The ID of the profile that is specified in the attachment.", - "immutable": true, - "required": true, - "min_length": 36, - "max_length": 36, - "matches": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" + "description": "The user who updated the profile.", + "computed": true }, { - "name": "updated_by", - "type": "TypeString", - "description": "The user who updated the attachment.", + "name": "controls_count", + "type": "TypeInt", + "description": "The number of controls for the profile.", "computed": true }, { - "name": "name", + "name": "control_parents_count", + "type": "TypeInt", + "description": "The number of parent controls for the profile.", + "computed": true + }, + { + "name": "profile_id", "type": "TypeString", - "description": "The name of the attachment.", - "required": true + "description": "The profile name.", + "computed": true }, { - "name": "instance_id", + "name": "profile_type", "type": "TypeString", - "description": "The ID of the Security and Compliance Center instance.", - "cloud_data_type": "resource_instance", - "immutable": true, + "description": "The profile type, such as custom or predefined.", "required": true - }, + } + ], + "ibm_scc_profile_attachment": [ { - "name": "account_id", + "name": "profile_id", "type": "TypeString", - "description": "The account ID that is associated to the attachment.", - "computed": true + "description": "The ID of the profile that is specified in the attachment.", + "immutable": true, + "required": true, + "min_length": 36, + "max_length": 36, + "matches": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" }, { "name": "scope", @@ -141288,10 +141188,10 @@ } }, { - "name": "schedule", + "name": "created_on", "type": "TypeString", - "description": "The schedule of an attachment evaluation.", - "required": true + "description": "The date when the attachment was created.", + "computed": true }, { "name": "notifications", @@ -141332,6 +141232,50 @@ } } }, + { + "name": "name", + "type": "TypeString", + "description": "The name of the attachment.", + "required": true + }, + { + "name": "attachment_id", + "type": "TypeString", + "description": "The ID of the attachment.", + "computed": true + }, + { + "name": "updated_by", + "type": "TypeString", + "description": "The user who updated the attachment.", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The status of an attachment evaluation.", + "required": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The description for the attachment.", + "optional": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Security and Compliance Center instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, + { + "name": "updated_on", + "type": "TypeString", + "description": "The date when the attachment was updated.", + "computed": true + }, { "name": "last_scan", "type": "TypeList", @@ -141359,33 +141303,33 @@ } }, { - "name": "description", + "name": "next_scan_time", "type": "TypeString", - "description": "The description for the attachment.", - "optional": true + "description": "The start time of the next scan.", + "computed": true }, { - "name": "created_on", + "name": "profile_attachment_id", "type": "TypeString", - "description": "The date when the attachment was created.", + "description": "The profile attachment ID.", "computed": true }, { - "name": "created_by", + "name": "account_id", "type": "TypeString", - "description": "The user who created the attachment.", + "description": "The account ID that is associated to the attachment.", "computed": true }, { - "name": "updated_on", + "name": "created_by", "type": "TypeString", - "description": "The date when the attachment was updated.", + "description": "The user who created the attachment.", "computed": true }, { - "name": "status", + "name": "schedule", "type": "TypeString", - "description": "The status of an attachment evaluation.", + "description": "The schedule of an attachment evaluation.", "required": true }, { @@ -141431,21 +141375,33 @@ "optional": true } } + } + ], + "ibm_scc_provider_type_instance": [ + { + "name": "type", + "type": "TypeString", + "description": "The type of the provider type.", + "computed": true }, { - "name": "next_scan_time", + "name": "created_at", "type": "TypeString", - "description": "The start time of the next scan.", + "description": "Time at which resource was created.", "computed": true }, { - "name": "attachment_id", + "name": "updated_at", "type": "TypeString", - "description": "The ID of the attachment.", + "description": "Time at which resource was updated.", "computed": true - } - ], - "ibm_scc_provider_type_instance": [ + }, + { + "name": "provider_type_instance_id", + "type": "TypeString", + "description": "The unique identifier of the provider type instance.", + "computed": true + }, { "name": "instance_id", "type": "TypeString", @@ -141477,33 +141433,142 @@ "name": "attributes", "type": "TypeMap", "optional": true + } + ], + "ibm_scc_rule": [ + { + "name": "account_id", + "type": "TypeString", + "description": "The account ID.", + "computed": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "The user who created the rule.", + "computed": true + }, + { + "name": "version", + "type": "TypeString", + "description": "The version number of a rule.", + "min_length": 5, + "max_length": 10, + "matches": "^[0-9][0-9.]*$", + "optional": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Security and Compliance Center instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, + { + "name": "modified_by", + "type": "TypeString", + "description": "The unique identifier for the user or application that last modified the resource.", + "computed": true, + "deprecated": "use updated_by" + }, + { + "name": "enforcement_actions", + "type": "TypeList", + "description": "The actions that the service must run on your behalf when a request to create or modify the target resource does not comply with your conditions.", + "optional": true, + "elem": { + "action": { + "name": "action", + "type": "TypeString", + "description": "To block a request from completing, use `disallow`.", + "required": true + } + }, + "max_items": 1, + "deprecated": "enforcement_actions is now deprecated" + }, + { + "name": "labels", + "type": "TypeList", + "description": "The list of labels.", + "optional": true, + "elem": { + "type": "TypeString" + } }, { "name": "type", "type": "TypeString", - "description": "The type of the provider type.", + "description": "The rule type (allowable values are `user_defined` or `system_defined`).", "computed": true }, { - "name": "created_at", + "name": "updated_on", "type": "TypeString", - "description": "Time at which resource was created.", + "description": "The date when the rule was modified.", "computed": true }, { - "name": "updated_at", + "name": "created_on", "type": "TypeString", - "description": "Time at which resource was updated.", + "description": "The date when the rule was created.", "computed": true }, { - "name": "provider_type_instance_id", + "name": "import", + "type": "TypeList", + "description": "The collection of import parameters.", + "optional": true, + "elem": { + "parameters": { + "name": "parameters", + "type": "TypeList", + "description": "The list of import parameters.", + "optional": true, + "elem": { + "description": { + "name": "description", + "type": "TypeString", + "description": "The propery description.", + "optional": true + }, + "display_name": { + "name": "display_name", + "type": "TypeString", + "description": "The display name of the property.", + "optional": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The import parameter name.", + "optional": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "The property type.", + "optional": true + } + } + } + }, + "max_items": 1 + }, + { + "name": "modification_date", "type": "TypeString", - "description": "The unique identifier of the provider type instance.", + "description": "The date the resource was last modified.", + "computed": true, + "deprecated": "use updated_on instead" + }, + { + "name": "rule_id", + "type": "TypeString", + "description": "The rule ID.", "computed": true - } - ], - "ibm_scc_rule": [ + }, { "name": "target", "type": "TypeList", @@ -141565,32 +141630,18 @@ "computed": true }, { - "name": "enforcement_actions", - "type": "TypeList", - "description": "The actions that the service must run on your behalf when a request to create or modify the target resource does not comply with your conditions.", - "optional": true, - "elem": { - "action": { - "name": "action", - "type": "TypeString", - "description": "To block a request from completing, use `disallow`.", - "required": true - } - }, - "max_items": 1, - "deprecated": "enforcement_actions is now deprecated" - }, - { - "name": "account_id", + "name": "name", "type": "TypeString", - "description": "The account ID.", - "computed": true + "description": "A human-readable alias to assign to your rule.", + "optional": true, + "deprecated": "name is now deprecated" }, { - "name": "created_on", + "name": "rule_type", "type": "TypeString", - "description": "The date when the rule was created.", - "computed": true + "description": "The type of rule. Rules that you create are `user_defined`.", + "computed": true, + "deprecated": "use type instead" }, { "name": "etag", @@ -141825,37 +141876,11 @@ "min_items": 1 }, { - "name": "updated_on", - "type": "TypeString", - "description": "The date when the rule was modified.", - "computed": true - }, - { - "name": "rule_type", - "type": "TypeString", - "description": "The type of rule. Rules that you create are `user_defined`.", - "computed": true, - "deprecated": "use type instead" - }, - { - "name": "modification_date", - "type": "TypeString", - "description": "The date the resource was last modified.", - "computed": true, - "deprecated": "use updated_on instead" - }, - { - "name": "modified_by", + "name": "creation_date", "type": "TypeString", - "description": "The unique identifier for the user or application that last modified the resource.", + "description": "The date the resource was created.", "computed": true, - "deprecated": "use updated_by" - }, - { - "name": "rule_id", - "type": "TypeString", - "description": "The rule ID.", - "computed": true + "deprecated": "use created_on instead" }, { "name": "description", @@ -141864,99 +141889,6 @@ "required": true, "max_length": 512, "matches": "[A-Za-z0-9]+" - }, - { - "name": "name", - "type": "TypeString", - "description": "A human-readable alias to assign to your rule.", - "optional": true, - "deprecated": "name is now deprecated" - }, - { - "name": "labels", - "type": "TypeList", - "description": "The list of labels.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "type", - "type": "TypeString", - "description": "The rule type (allowable values are `user_defined` or `system_defined`).", - "computed": true - }, - { - "name": "creation_date", - "type": "TypeString", - "description": "The date the resource was created.", - "computed": true, - "deprecated": "use created_on instead" - }, - { - "name": "created_by", - "type": "TypeString", - "description": "The user who created the rule.", - "computed": true - }, - { - "name": "import", - "type": "TypeList", - "description": "The collection of import parameters.", - "optional": true, - "elem": { - "parameters": { - "name": "parameters", - "type": "TypeList", - "description": "The list of import parameters.", - "optional": true, - "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "The propery description.", - "optional": true - }, - "display_name": { - "name": "display_name", - "type": "TypeString", - "description": "The display name of the property.", - "optional": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The import parameter name.", - "optional": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "The property type.", - "optional": true - } - } - } - }, - "max_items": 1 - }, - { - "name": "version", - "type": "TypeString", - "description": "The version number of a rule.", - "min_length": 5, - "max_length": 10, - "matches": "^[0-9][0-9.]*$", - "optional": true - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Security and Compliance Center instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true } ], "ibm_scc_rule_attachment": [], @@ -141964,56 +141896,29 @@ "ibm_scc_template_attachment": [], "ibm_schematics_action": [ { - "name": "source_updated_by", + "name": "description", "type": "TypeString", - "description": "E-mail address of user who updated the action playbook source.", - "computed": true + "description": "Action description.", + "optional": true }, { - "name": "source_created_at", + "name": "source_type", "type": "TypeString", - "description": "Action Playbook Source creation time.", - "computed": true + "description": "Type of source for the Template.", + "options": "cos_bucket, external_scm, git_hub, git_hub_enterprise, git_lab, ibm_cloud_catalog, ibm_git_lab, local", + "optional": true }, { - "name": "created_at", + "name": "crn", "type": "TypeString", - "description": "Action creation time.", + "description": "Action Cloud Resource Name.", + "cloud_data_type": "crn", "computed": true }, { - "name": "user_state", - "type": "TypeList", - "description": "User defined status of the Schematics object.", - "optional": true, - "computed": true, - "elem": { - "set_at": { - "name": "set_at", - "type": "TypeString", - "description": "When the User who set the state of the Object.", - "optional": true, - "computed": true - }, - "set_by": { - "name": "set_by", - "type": "TypeString", - "description": "Name of the User who set the state of the Object.", - "optional": true, - "computed": true - }, - "state": { - "name": "state", - "type": "TypeString", - "description": "User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution.", - "optional": true - } - } - }, - { - "name": "action_outputs", + "name": "credentials", "type": "TypeList", - "description": "Output variables for the Action.", + "description": "credentials of the Action.", "optional": true, "elem": { "link": { @@ -142145,65 +142050,13 @@ "description": "Value for the variable or reference to the value.", "optional": true } - } - }, - { - "name": "inventory", - "type": "TypeString", - "description": "Target inventory record ID, used by the action or ansible playbook.", - "optional": true - }, - { - "name": "source_updated_at", - "type": "TypeString", - "description": "The action playbook updation time.", - "computed": true - }, - { - "name": "updated_at", - "type": "TypeString", - "description": "Action updation time.", - "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "Action description.", - "optional": true - }, - { - "name": "location", - "type": "TypeString", - "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", - "options": "eu-de, eu-gb, us-east, us-south", - "optional": true, - "computed": true - }, - { - "name": "created_by", - "type": "TypeString", - "description": "E-mail address of the user who created an action.", - "computed": true - }, - { - "name": "updated_by", - "type": "TypeString", - "description": "E-mail address of the user who updated an action.", - "computed": true - }, - { - "name": "playbook_names", - "type": "TypeList", - "description": "Playbook names retrieved from the respository.", - "computed": true, - "elem": { - "type": "TypeString" - } + }, + "max_items": 1 }, { - "name": "action_inputs", + "name": "action_outputs", "type": "TypeList", - "description": "Input variables for the Action.", + "description": "Output variables for the Action.", "optional": true, "elem": { "link": { @@ -142323,30 +142176,107 @@ } } }, - "name": { - "name": "name", + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the variable.", + "optional": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Value for the variable or reference to the value.", + "optional": true + } + } + }, + { + "name": "created_by", + "type": "TypeString", + "description": "E-mail address of the user who created an action.", + "computed": true + }, + { + "name": "location", + "type": "TypeString", + "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "options": "eu-de, eu-gb, us-east, us-south", + "optional": true, + "computed": true + }, + { + "name": "tags", + "type": "TypeList", + "description": "Action tags.", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "sys_lock", + "type": "TypeList", + "description": "System lock status.", + "computed": true, + "elem": { + "sys_locked": { + "name": "sys_locked", + "type": "TypeBool", + "description": "Is the automation locked by a Schematic job ?.", + "optional": true + }, + "sys_locked_at": { + "name": "sys_locked_at", "type": "TypeString", - "description": "Name of the variable.", + "description": "When the User performed the job that lead to locking of the automation ?.", "optional": true }, - "value": { - "name": "value", + "sys_locked_by": { + "name": "sys_locked_by", "type": "TypeString", - "description": "Value for the variable or reference to the value.", + "description": "Name of the User who performed the job, that lead to the locking of the automation.", "optional": true } } }, { - "name": "source_created_by", + "name": "source_created_at", "type": "TypeString", - "description": "E-mail address of user who created the Action Playbook Source.", + "description": "Action Playbook Source creation time.", "computed": true }, { - "name": "bastion_credential", + "name": "account", + "type": "TypeString", + "description": "Action account ID.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "Action creation time.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The unique name of your action. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores. **Example** you can use the name to stop action.", + "required": true, + "min_length": 1, + "max_length": 65 + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource-group name for an action. By default, action is created in default resource group.", + "cloud_data_type": "resource_group", + "optional": true + }, + { + "name": "settings", "type": "TypeList", - "description": "User editable variable data \u0026 system generated reference to value.", + "description": "Environment variables for the Action.", "optional": true, "elem": { "link": { @@ -142478,22 +142408,116 @@ "description": "Value for the variable or reference to the value.", "optional": true } + } + }, + { + "name": "bastion", + "type": "TypeList", + "description": "Describes a bastion resource.", + "optional": true, + "elem": { + "host": { + "name": "host", + "type": "TypeString", + "description": "Reference to the Inventory resource definition.", + "optional": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Bastion Name(Unique).", + "optional": true + } }, "max_items": 1 }, { - "name": "account", + "name": "source_updated_by", "type": "TypeString", - "description": "Action account ID.", + "description": "E-mail address of user who updated the action playbook source.", "computed": true }, { - "name": "name", + "name": "user_state", + "type": "TypeList", + "description": "User defined status of the Schematics object.", + "optional": true, + "computed": true, + "elem": { + "set_at": { + "name": "set_at", + "type": "TypeString", + "description": "When the User who set the state of the Object.", + "optional": true, + "computed": true + }, + "set_by": { + "name": "set_by", + "type": "TypeString", + "description": "Name of the User who set the state of the Object.", + "optional": true, + "computed": true + }, + "state": { + "name": "state", + "type": "TypeString", + "description": "User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution.", + "optional": true + } + } + }, + { + "name": "command_parameter", "type": "TypeString", - "description": "The unique name of your action. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores. **Example** you can use the name to stop action.", - "required": true, - "min_length": 1, - "max_length": 65 + "description": "Schematics job command parameter (playbook-name).", + "optional": true + }, + { + "name": "inventory", + "type": "TypeString", + "description": "Target inventory record ID, used by the action or ansible playbook.", + "optional": true + }, + { + "name": "state", + "type": "TypeList", + "description": "Computed state of the Action.", + "computed": true, + "elem": { + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Status of automation (workspace or action).", + "optional": true + }, + "status_job_id": { + "name": "status_job_id", + "type": "TypeString", + "description": "Job id reference for this status.", + "optional": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "Automation status message - to be displayed along with the status_code.", + "optional": true + } + } + }, + { + "name": "source_created_by", + "type": "TypeString", + "description": "E-mail address of user who created the Action Playbook Source.", + "computed": true + }, + { + "name": "playbook_names", + "type": "TypeList", + "description": "Playbook names retrieved from the respository.", + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "source", @@ -142605,78 +142629,9 @@ } }, { - "name": "command_parameter", - "type": "TypeString", - "description": "Schematics job command parameter (playbook-name).", - "optional": true - }, - { - "name": "bastion", - "type": "TypeList", - "description": "Describes a bastion resource.", - "optional": true, - "elem": { - "host": { - "name": "host", - "type": "TypeString", - "description": "Reference to the Inventory resource definition.", - "optional": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Bastion Name(Unique).", - "optional": true - } - }, - "max_items": 1 - }, - { - "name": "targets_ini", - "type": "TypeString", - "description": "Inventory of host and host group for the playbook in `INI` file format. For example, `\"targets_ini\": \"[webserverhost] 172.22.192.6 [dbhost] 172.22.192.5\"`. For more information, about an inventory host group syntax, see [Inventory host groups](https://cloud.ibm.com/docs/schematics?topic=schematics-schematics-cli-reference#schematics-inventory-host-grps).", - "optional": true - }, - { - "name": "x_github_token", - "type": "TypeString", - "description": "The personal access token to authenticate with your private GitHub or GitLab repository and access your Terraform template.", - "optional": true - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "Resource-group name for an action. By default, action is created in default resource group.", - "cloud_data_type": "resource_group", - "optional": true - }, - { - "name": "source_readme_url", - "type": "TypeString", - "description": "URL of the `README` file, for the source URL.", - "optional": true - }, - { - "name": "crn", - "type": "TypeString", - "description": "Action Cloud Resource Name.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "tags", - "type": "TypeList", - "description": "Action tags.", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "credentials", + "name": "bastion_credential", "type": "TypeList", - "description": "credentials of the Action.", + "description": "User editable variable data \u0026 system generated reference to value.", "optional": true, "elem": { "link": { @@ -142812,68 +142767,9 @@ "max_items": 1 }, { - "name": "state", - "type": "TypeList", - "description": "Computed state of the Action.", - "computed": true, - "elem": { - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Status of automation (workspace or action).", - "optional": true - }, - "status_job_id": { - "name": "status_job_id", - "type": "TypeString", - "description": "Job id reference for this status.", - "optional": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "Automation status message - to be displayed along with the status_code.", - "optional": true - } - } - }, - { - "name": "sys_lock", - "type": "TypeList", - "description": "System lock status.", - "computed": true, - "elem": { - "sys_locked": { - "name": "sys_locked", - "type": "TypeBool", - "description": "Is the automation locked by a Schematic job ?.", - "optional": true - }, - "sys_locked_at": { - "name": "sys_locked_at", - "type": "TypeString", - "description": "When the User performed the job that lead to locking of the automation ?.", - "optional": true - }, - "sys_locked_by": { - "name": "sys_locked_by", - "type": "TypeString", - "description": "Name of the User who performed the job, that lead to the locking of the automation.", - "optional": true - } - } - }, - { - "name": "source_type", - "type": "TypeString", - "description": "Type of source for the Template.", - "options": "cos_bucket, external_scm, git_hub, git_hub_enterprise, git_lab, ibm_cloud_catalog, ibm_git_lab, local", - "optional": true - }, - { - "name": "settings", + "name": "action_inputs", "type": "TypeList", - "description": "Environment variables for the Action.", + "description": "Input variables for the Action.", "optional": true, "elem": { "link": { @@ -143006,27 +142902,45 @@ "optional": true } } - } - ], - "ibm_schematics_agent": [ + }, { - "name": "schematics_location", + "name": "source_updated_at", "type": "TypeString", - "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", - "required": true + "description": "The action playbook updation time.", + "computed": true }, { - "name": "agent_crn", + "name": "updated_at", "type": "TypeString", - "description": "The agent crn, obtained from the Schematics agent deployment configuration.", + "description": "Action updation time.", "computed": true }, { - "name": "creation_by", + "name": "updated_by", "type": "TypeString", - "description": "The email address of an user who created the agent.", + "description": "E-mail address of the user who updated an action.", "computed": true }, + { + "name": "source_readme_url", + "type": "TypeString", + "description": "URL of the `README` file, for the source URL.", + "optional": true + }, + { + "name": "targets_ini", + "type": "TypeString", + "description": "Inventory of host and host group for the playbook in `INI` file format. For example, `\"targets_ini\": \"[webserverhost] 172.22.192.6 [dbhost] 172.22.192.5\"`. For more information, about an inventory host group syntax, see [Inventory host groups](https://cloud.ibm.com/docs/schematics?topic=schematics-schematics-cli-reference#schematics-inventory-host-grps).", + "optional": true + }, + { + "name": "x_github_token", + "type": "TypeString", + "description": "The personal access token to authenticate with your private GitHub or GitLab repository and access your Terraform template.", + "optional": true + } + ], + "ibm_schematics_agent": [ { "name": "name", "type": "TypeString", @@ -143034,159 +142948,38 @@ "required": true }, { - "name": "agent_infrastructure", - "type": "TypeList", - "description": "The infrastructure parameters used by the agent.", - "required": true, - "elem": { - "cluster_id": { - "name": "cluster_id", - "type": "TypeString", - "description": "The cluster ID where agent services will be running.", - "optional": true - }, - "cluster_resource_group": { - "name": "cluster_resource_group", - "type": "TypeString", - "description": "The resource group of the cluster (is it required?).", - "optional": true - }, - "cos_bucket_name": { - "name": "cos_bucket_name", - "type": "TypeString", - "description": "The COS bucket name used to store the logs.", - "optional": true - }, - "cos_bucket_region": { - "name": "cos_bucket_region", - "type": "TypeString", - "description": "The COS bucket region.", - "optional": true - }, - "cos_instance_name": { - "name": "cos_instance_name", - "type": "TypeString", - "description": "The COS instance name to store the agent logs.", - "optional": true - }, - "infra_type": { - "name": "infra_type", - "type": "TypeString", - "description": "Type of target agent infrastructure.", - "optional": true - } - }, - "max_items": 1, - "min_items": 1 + "name": "version", + "type": "TypeString", + "description": "Agent version.", + "required": true }, { - "name": "updated_at", + "name": "description", "type": "TypeString", - "description": "The agent registration updation time.", - "computed": true + "description": "Agent description.", + "optional": true }, { - "name": "recent_deploy_job", + "name": "tags", "type": "TypeList", - "description": "Post-installations checks for Agent health.", - "computed": true, + "description": "Tags for the agent.", + "cloud_data_type": "tags", + "optional": true, "elem": { - "agent_id": { - "name": "agent_id", - "type": "TypeString", - "description": "Id of the agent.", - "optional": true, - "computed": true - }, - "agent_version": { - "name": "agent_version", - "type": "TypeString", - "description": "Agent version.", - "computed": true - }, - "is_redeployed": { - "name": "is_redeployed", - "type": "TypeBool", - "description": "True, when the same version of the agent was redeployed.", - "optional": true, - "computed": true - }, - "job_id": { - "name": "job_id", - "type": "TypeString", - "description": "Job Id.", - "optional": true, - "computed": true - }, - "log_url": { - "name": "log_url", - "type": "TypeString", - "description": "URL to the full agent deployment job logs.", - "optional": true, - "computed": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Final result of the agent deployment job.", - "optional": true, - "computed": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "The outcome of the agent deployment job, in a formatted log string.", - "optional": true, - "computed": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "The agent deploy job updation time.", - "computed": true - }, - "updated_by": { - "name": "updated_by", - "type": "TypeString", - "description": "Email address of user who ran the agent deploy job.", - "computed": true - } + "type": "TypeString" } }, { - "name": "version", + "name": "created_at", "type": "TypeString", - "description": "Agent version.", - "required": true + "description": "The agent creation date-time.", + "computed": true }, { - "name": "user_state", - "type": "TypeList", - "description": "User defined status of the agent.", - "optional": true, - "computed": true, - "elem": { - "set_at": { - "name": "set_at", - "type": "TypeString", - "description": "When the User who set the state of the Object.", - "computed": true - }, - "set_by": { - "name": "set_by", - "type": "TypeString", - "description": "Name of the User who set the state of the Object.", - "computed": true - }, - "state": { - "name": "state", - "type": "TypeString", - "description": "User-defined states * `enable` Agent is enabled by the user. * `disable` Agent is disbaled by the user.", - "optional": true, - "computed": true - } - }, - "max_items": 1 + "name": "updated_by", + "type": "TypeString", + "description": "Email address of user who updated the agent registration.", + "computed": true }, { "name": "recent_prs_job", @@ -143249,112 +143042,6 @@ } } }, - { - "name": "recent_health_job", - "type": "TypeList", - "description": "Agent health check.", - "computed": true, - "elem": { - "agent_id": { - "name": "agent_id", - "type": "TypeString", - "description": "Id of the agent.", - "optional": true, - "computed": true - }, - "agent_version": { - "name": "agent_version", - "type": "TypeString", - "description": "Agent version.", - "computed": true - }, - "job_id": { - "name": "job_id", - "type": "TypeString", - "description": "Job Id.", - "optional": true, - "computed": true - }, - "log_url": { - "name": "log_url", - "type": "TypeString", - "description": "URL to the full health-check job logs.", - "optional": true, - "computed": true - }, - "status_code": { - "name": "status_code", - "type": "TypeString", - "description": "Final result of the health-check job.", - "optional": true, - "computed": true - }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "The outcome of the health-check job, in a formatted log string.", - "optional": true, - "computed": true - }, - "updated_at": { - "name": "updated_at", - "type": "TypeString", - "description": "The agent health check job updation time.", - "computed": true - }, - "updated_by": { - "name": "updated_by", - "type": "TypeString", - "description": "Email address of user who ran the agent health check job.", - "computed": true - } - } - }, - { - "name": "description", - "type": "TypeString", - "description": "Agent description.", - "optional": true - }, - { - "name": "agent_location", - "type": "TypeString", - "description": "The location where agent is deployed in the user environment.", - "required": true - }, - { - "name": "tags", - "type": "TypeList", - "description": "Tags for the agent.", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "agent_metadata", - "type": "TypeList", - "description": "The metadata of an agent.", - "optional": true, - "elem": { - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the metadata.", - "optional": true - }, - "value": { - "name": "value", - "type": "TypeList", - "description": "Value of the metadata name.", - "optional": true, - "elem": { - "type": "TypeString" - } - } - } - }, { "name": "agent_inputs", "type": "TypeList", @@ -143516,6 +143203,238 @@ } } }, + { + "name": "system_state", + "type": "TypeList", + "description": "Computed state of the agent.", + "computed": true, + "elem": { + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Agent Status.", + "optional": true, + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "The agent status message.", + "optional": true, + "computed": true + } + } + }, + { + "name": "recent_deploy_job", + "type": "TypeList", + "description": "Post-installations checks for Agent health.", + "computed": true, + "elem": { + "agent_id": { + "name": "agent_id", + "type": "TypeString", + "description": "Id of the agent.", + "optional": true, + "computed": true + }, + "agent_version": { + "name": "agent_version", + "type": "TypeString", + "description": "Agent version.", + "computed": true + }, + "is_redeployed": { + "name": "is_redeployed", + "type": "TypeBool", + "description": "True, when the same version of the agent was redeployed.", + "optional": true, + "computed": true + }, + "job_id": { + "name": "job_id", + "type": "TypeString", + "description": "Job Id.", + "optional": true, + "computed": true + }, + "log_url": { + "name": "log_url", + "type": "TypeString", + "description": "URL to the full agent deployment job logs.", + "optional": true, + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Final result of the agent deployment job.", + "optional": true, + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "The outcome of the agent deployment job, in a formatted log string.", + "optional": true, + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "The agent deploy job updation time.", + "computed": true + }, + "updated_by": { + "name": "updated_by", + "type": "TypeString", + "description": "Email address of user who ran the agent deploy job.", + "computed": true + } + } + }, + { + "name": "recent_health_job", + "type": "TypeList", + "description": "Agent health check.", + "computed": true, + "elem": { + "agent_id": { + "name": "agent_id", + "type": "TypeString", + "description": "Id of the agent.", + "optional": true, + "computed": true + }, + "agent_version": { + "name": "agent_version", + "type": "TypeString", + "description": "Agent version.", + "computed": true + }, + "job_id": { + "name": "job_id", + "type": "TypeString", + "description": "Job Id.", + "optional": true, + "computed": true + }, + "log_url": { + "name": "log_url", + "type": "TypeString", + "description": "URL to the full health-check job logs.", + "optional": true, + "computed": true + }, + "status_code": { + "name": "status_code", + "type": "TypeString", + "description": "Final result of the health-check job.", + "optional": true, + "computed": true + }, + "status_message": { + "name": "status_message", + "type": "TypeString", + "description": "The outcome of the health-check job, in a formatted log string.", + "optional": true, + "computed": true + }, + "updated_at": { + "name": "updated_at", + "type": "TypeString", + "description": "The agent health check job updation time.", + "computed": true + }, + "updated_by": { + "name": "updated_by", + "type": "TypeString", + "description": "Email address of user who ran the agent health check job.", + "computed": true + } + } + }, + { + "name": "schematics_location", + "type": "TypeString", + "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "required": true + }, + { + "name": "agent_infrastructure", + "type": "TypeList", + "description": "The infrastructure parameters used by the agent.", + "required": true, + "elem": { + "cluster_id": { + "name": "cluster_id", + "type": "TypeString", + "description": "The cluster ID where agent services will be running.", + "optional": true + }, + "cluster_resource_group": { + "name": "cluster_resource_group", + "type": "TypeString", + "description": "The resource group of the cluster (is it required?).", + "optional": true + }, + "cos_bucket_name": { + "name": "cos_bucket_name", + "type": "TypeString", + "description": "The COS bucket name used to store the logs.", + "optional": true + }, + "cos_bucket_region": { + "name": "cos_bucket_region", + "type": "TypeString", + "description": "The COS bucket region.", + "optional": true + }, + "cos_instance_name": { + "name": "cos_instance_name", + "type": "TypeString", + "description": "The COS instance name to store the agent logs.", + "optional": true + }, + "infra_type": { + "name": "infra_type", + "type": "TypeString", + "description": "Type of target agent infrastructure.", + "optional": true + } + }, + "max_items": 1, + "min_items": 1 + }, + { + "name": "user_state", + "type": "TypeList", + "description": "User defined status of the agent.", + "optional": true, + "computed": true, + "elem": { + "set_at": { + "name": "set_at", + "type": "TypeString", + "description": "When the User who set the state of the Object.", + "computed": true + }, + "set_by": { + "name": "set_by", + "type": "TypeString", + "description": "Name of the User who set the state of the Object.", + "computed": true + }, + "state": { + "name": "state", + "type": "TypeString", + "description": "User-defined states * `enable` Agent is enabled by the user. * `disable` Agent is disbaled by the user.", + "optional": true, + "computed": true + } + }, + "max_items": 1 + }, { "name": "agent_kpi", "type": "TypeList", @@ -143568,15 +143487,15 @@ "max_items": 1 }, { - "name": "created_at", + "name": "creation_by", "type": "TypeString", - "description": "The agent creation date-time.", + "description": "The email address of an user who created the agent.", "computed": true }, { - "name": "updated_by", + "name": "updated_at", "type": "TypeString", - "description": "Email address of user who updated the agent registration.", + "description": "The agent registration updation time.", "computed": true }, { @@ -143587,35 +143506,42 @@ "required": true }, { - "name": "system_state", + "name": "agent_location", + "type": "TypeString", + "description": "The location where agent is deployed in the user environment.", + "required": true + }, + { + "name": "agent_metadata", "type": "TypeList", - "description": "Computed state of the agent.", - "computed": true, + "description": "The metadata of an agent.", + "optional": true, "elem": { - "status_code": { - "name": "status_code", + "name": { + "name": "name", "type": "TypeString", - "description": "Agent Status.", - "optional": true, - "computed": true + "description": "Name of the metadata.", + "optional": true }, - "status_message": { - "name": "status_message", - "type": "TypeString", - "description": "The agent status message.", + "value": { + "name": "value", + "type": "TypeList", + "description": "Value of the metadata name.", "optional": true, - "computed": true + "elem": { + "type": "TypeString" + } } } - } - ], - "ibm_schematics_agent_deploy": [ + }, { - "name": "job_id", + "name": "agent_crn", "type": "TypeString", - "description": "Job Id.", + "description": "The agent crn, obtained from the Schematics agent deployment configuration.", "computed": true - }, + } + ], + "ibm_schematics_agent_deploy": [ { "name": "updated_at", "type": "TypeString", @@ -143623,15 +143549,15 @@ "computed": true }, { - "name": "agent_version", + "name": "updated_by", "type": "TypeString", - "description": "Agent version.", + "description": "Email address of user who ran the agent deploy job.", "computed": true }, { - "name": "status_code", - "type": "TypeString", - "description": "Final result of the agent deployment job.", + "name": "is_redeployed", + "type": "TypeBool", + "description": "True, when the same version of the agent was redeployed.", "computed": true }, { @@ -143660,19 +143586,43 @@ "optional": true }, { - "name": "updated_by", + "name": "job_id", "type": "TypeString", - "description": "Email address of user who ran the agent deploy job.", + "description": "Job Id.", "computed": true }, { - "name": "is_redeployed", - "type": "TypeBool", - "description": "True, when the same version of the agent was redeployed.", + "name": "agent_version", + "type": "TypeString", + "description": "Agent version.", + "computed": true + }, + { + "name": "status_code", + "type": "TypeString", + "description": "Final result of the agent deployment job.", "computed": true } ], "ibm_schematics_agent_health": [ + { + "name": "status_message", + "type": "TypeString", + "description": "The outcome of the health-check job, in a formatted log string.", + "computed": true + }, + { + "name": "force", + "type": "TypeBool", + "description": "Equivalent to -force options in the command line, default is false.", + "optional": true + }, + { + "name": "job_id", + "type": "TypeString", + "description": "Job Id.", + "computed": true + }, { "name": "updated_by", "type": "TypeString", @@ -143680,9 +143630,9 @@ "computed": true }, { - "name": "status_code", + "name": "agent_version", "type": "TypeString", - "description": "Final result of the health-check job.", + "description": "Agent version.", "computed": true }, { @@ -143699,15 +143649,9 @@ "computed": true }, { - "name": "agent_version", - "type": "TypeString", - "description": "Agent version.", - "computed": true - }, - { - "name": "status_message", + "name": "status_code", "type": "TypeString", - "description": "The outcome of the health-check job, in a formatted log string.", + "description": "Final result of the health-check job.", "computed": true }, { @@ -143715,7 +143659,9 @@ "type": "TypeString", "description": "URL to the full health-check job logs.", "computed": true - }, + } + ], + "ibm_schematics_agent_prs": [ { "name": "force", "type": "TypeBool", @@ -143723,29 +143669,21 @@ "optional": true }, { - "name": "job_id", - "type": "TypeString", - "description": "Job Id.", - "computed": true - } - ], - "ibm_schematics_agent_prs": [ - { - "name": "updated_at", + "name": "agent_version", "type": "TypeString", - "description": "The agent prs job updation time.", + "description": "Agent version.", "computed": true }, { - "name": "updated_by", + "name": "status_code", "type": "TypeString", - "description": "Email address of user who ran the agent prs job.", + "description": "Final result of the pre-requisite scanner job.", "computed": true }, { - "name": "status_code", + "name": "log_url", "type": "TypeString", - "description": "Final result of the pre-requisite scanner job.", + "description": "URL to the full pre-requisite scanner job logs.", "computed": true }, { @@ -143762,36 +143700,38 @@ "computed": true }, { - "name": "status_message", + "name": "updated_at", "type": "TypeString", - "description": "The outcome of the pre-requisite scanner job, in a formatted log string.", + "description": "The agent prs job updation time.", "computed": true }, { - "name": "log_url", + "name": "updated_by", "type": "TypeString", - "description": "URL to the full pre-requisite scanner job logs.", + "description": "Email address of user who ran the agent prs job.", "computed": true }, { - "name": "force", - "type": "TypeBool", - "description": "Equivalent to -force options in the command line, default is false.", - "optional": true - }, - { - "name": "agent_version", + "name": "status_message", "type": "TypeString", - "description": "Agent version.", + "description": "The outcome of the pre-requisite scanner job, in a formatted log string.", "computed": true } ], "ibm_schematics_inventory": [ { - "name": "updated_by", + "name": "name", "type": "TypeString", - "description": "Email address of user who updated the Inventory.", - "computed": true + "description": "The unique name of your Inventory definition. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores.", + "min_length": 3, + "max_length": 64, + "optional": true + }, + { + "name": "description", + "type": "TypeString", + "description": "The description of your Inventory definition. The description can be up to 2048 characters long in size.", + "optional": true }, { "name": "location", @@ -143807,6 +143747,19 @@ "description": "Input inventory of host and host group for the playbook, in the `.ini` file format.", "optional": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "Inventory updation time.", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource-group name for the Inventory definition. By default, Inventory definition will be created in Default Resource Group.", + "cloud_data_type": "resource_group", + "optional": true + }, { "name": "resource_queries", "type": "TypeList", @@ -143829,151 +143782,13 @@ "computed": true }, { - "name": "updated_at", + "name": "updated_by", "type": "TypeString", - "description": "Inventory updation time.", + "description": "Email address of user who updated the Inventory.", "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The unique name of your Inventory definition. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores.", - "min_length": 3, - "max_length": 64, - "optional": true - }, - { - "name": "description", - "type": "TypeString", - "description": "The description of your Inventory definition. The description can be up to 2048 characters long in size.", - "optional": true - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "Resource-group name for the Inventory definition. By default, Inventory definition will be created in Default Resource Group.", - "cloud_data_type": "resource_group", - "optional": true } ], "ibm_schematics_job": [ - { - "name": "command_object", - "type": "TypeString", - "description": "Name of the Schematics automation resource.", - "required": true, - "options": "action, environment, system, workspace" - }, - { - "name": "command_object_id", - "type": "TypeString", - "description": "Job command object id (workspace-id, action-id).", - "required": true - }, - { - "name": "command_options", - "type": "TypeList", - "description": "Command line options for the command.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "location", - "type": "TypeString", - "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", - "options": "eu-de, eu-gb, us-east, us-south", - "optional": true, - "computed": true - }, - { - "name": "description", - "type": "TypeString", - "description": "The description of your job is derived from the related action or workspace. The description can be up to 2048 characters long in size.", - "computed": true - }, - { - "name": "submitted_at", - "type": "TypeString", - "description": "Job submission time.", - "computed": true - }, - { - "name": "end_at", - "type": "TypeString", - "description": "Job end time.", - "computed": true - }, - { - "name": "command_name", - "type": "TypeString", - "description": "Schematics job command name.", - "required": true, - "options": "ansible_playbook_check, ansible_playbook_run, create_action, create_cart, create_environment, create_workspace, delete_action, delete_environment, delete_workspace, environment_init, environment_install, environment_uninstall, patch_action, patch_workspace, put_action, put_environment, put_workspace, repository_process, system_key_delete, system_key_disable, system_key_enable, system_key_restore, system_key_rotate, workspace_apply, workspace_destroy, workspace_plan, workspace_refresh" - }, - { - "name": "bastion", - "type": "TypeList", - "description": "Describes a bastion resource.", - "optional": true, - "elem": { - "host": { - "name": "host", - "type": "TypeString", - "description": "Reference to the Inventory resource definition.", - "optional": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Bastion Name(Unique).", - "optional": true - } - }, - "max_items": 1 - }, - { - "name": "name", - "type": "TypeString", - "description": "Job name, uniquely derived from the related Workspace or Action.", - "computed": true - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "Resource-group name derived from the related Workspace or Action.", - "cloud_data_type": "resource_group", - "computed": true - }, - { - "name": "start_at", - "type": "TypeString", - "description": "Job start time.", - "computed": true - }, - { - "name": "log_store_url", - "type": "TypeString", - "description": "Job log store URL.", - "computed": true - }, - { - "name": "command_parameter", - "type": "TypeString", - "description": "Schematics job command parameter (playbook-name).", - "optional": true - }, - { - "name": "tags", - "type": "TypeList", - "description": "User defined tags, while running the job.", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - }, { "name": "data", "type": "TypeList", @@ -146066,170 +145881,36 @@ } }, { - "name": "submitted_by", - "type": "TypeString", - "description": "Email address of user who submitted the job.", - "computed": true - }, - { - "name": "duration", + "name": "submitted_at", "type": "TypeString", - "description": "Duration of job execution; example 40 sec.", + "description": "Job submission time.", "computed": true }, { - "name": "state_store_url", + "name": "start_at", "type": "TypeString", - "description": "Job state store URL.", + "description": "Job start time.", "computed": true }, { - "name": "updated_at", + "name": "results_url", "type": "TypeString", - "description": "Job status updation timestamp.", + "description": "Job results store URL.", "computed": true }, { - "name": "job_inputs", + "name": "command_options", "type": "TypeList", - "description": "Job inputs used by Action or Workspace.", + "description": "Command line options for the command.", "optional": true, "elem": { - "link": { - "name": "link", - "type": "TypeString", - "description": "Reference link to the variable value By default the expression will point to self.value.", - "optional": true, - "computed": true - }, - "metadata": { - "name": "metadata", - "type": "TypeList", - "description": "User editable metadata for the variables.", - "optional": true, - "elem": { - "aliases": { - "name": "aliases", - "type": "TypeList", - "description": "List of aliases for the variable name.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - "default_value": { - "name": "default_value", - "type": "TypeString", - "description": "Default value for the variable, if the override value is not specified.", - "optional": true - }, - "description": { - "name": "description", - "type": "TypeString", - "description": "Description of the meta data.", - "optional": true - }, - "group_by": { - "name": "group_by", - "type": "TypeString", - "description": "Display name of the group this variable belongs to.", - "optional": true - }, - "hidden": { - "name": "hidden", - "type": "TypeBool", - "description": "If true, the variable will not be displayed on UI or CLI.", - "optional": true - }, - "immutable": { - "name": "immutable", - "type": "TypeBool", - "description": "Is the variable readonly ?.", - "optional": true - }, - "matches": { - "name": "matches", - "type": "TypeString", - "description": "Regex for the variable value.", - "optional": true - }, - "max_length": { - "name": "max_length", - "type": "TypeInt", - "description": "Maximum length of the variable value. Applicable for string type.", - "optional": true - }, - "max_value": { - "name": "max_value", - "type": "TypeInt", - "description": "Maximum value of the variable. Applicable for integer type.", - "optional": true - }, - "min_length": { - "name": "min_length", - "type": "TypeInt", - "description": "Minimum length of the variable value. Applicable for string type.", - "optional": true - }, - "min_value": { - "name": "min_value", - "type": "TypeInt", - "description": "Minimum value of the variable. Applicable for integer type.", - "optional": true - }, - "options": { - "name": "options", - "type": "TypeList", - "description": "List of possible values for this variable. If type is integer or date, then the array of string will be converted to array of integers or date during runtime.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - "position": { - "name": "position", - "type": "TypeInt", - "description": "Relative position of this variable in a list.", - "optional": true - }, - "secure": { - "name": "secure", - "type": "TypeBool", - "description": "Is the variable secure or sensitive ?.", - "optional": true - }, - "source": { - "name": "source", - "type": "TypeString", - "description": "Source of this meta-data.", - "optional": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "Type of the variable.", - "required": true - } - } - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the variable.", - "required": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Value for the variable or reference to the value.", - "required": true - } + "type": "TypeString" } }, { - "name": "job_env_settings", + "name": "job_inputs", "type": "TypeList", - "description": "Environment variables used by the Job while performing Action or Workspace.", + "description": "Job inputs used by Action or Workspace.", "optional": true, "elem": { "link": { @@ -146363,6 +146044,70 @@ } } }, + { + "name": "tags", + "type": "TypeList", + "description": "User defined tags, while running the job.", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "location", + "type": "TypeString", + "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "options": "eu-de, eu-gb, us-east, us-south", + "optional": true, + "computed": true + }, + { + "name": "bastion", + "type": "TypeList", + "description": "Describes a bastion resource.", + "optional": true, + "elem": { + "host": { + "name": "host", + "type": "TypeString", + "description": "Reference to the Inventory resource definition.", + "optional": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Bastion Name(Unique).", + "optional": true + } + }, + "max_items": 1 + }, + { + "name": "duration", + "type": "TypeString", + "description": "Duration of job execution; example 40 sec.", + "computed": true + }, + { + "name": "state_store_url", + "type": "TypeString", + "description": "Job state store URL.", + "computed": true + }, + { + "name": "command_name", + "type": "TypeString", + "description": "Schematics job command name.", + "required": true, + "options": "ansible_playbook_check, ansible_playbook_run, create_action, create_cart, create_environment, create_workspace, delete_action, delete_environment, delete_workspace, environment_init, environment_install, environment_uninstall, patch_action, patch_workspace, put_action, put_environment, put_workspace, repository_process, system_key_delete, system_key_disable, system_key_enable, system_key_restore, system_key_rotate, workspace_apply, workspace_destroy, workspace_plan, workspace_refresh" + }, + { + "name": "command_parameter", + "type": "TypeString", + "description": "Schematics job command parameter (playbook-name).", + "optional": true + }, { "name": "status", "type": "TypeList", @@ -146729,6 +146474,168 @@ } } }, + { + "name": "name", + "type": "TypeString", + "description": "Job name, uniquely derived from the related Workspace or Action.", + "computed": true + }, + { + "name": "resource_group", + "type": "TypeString", + "description": "Resource-group name derived from the related Workspace or Action.", + "cloud_data_type": "resource_group", + "computed": true + }, + { + "name": "submitted_by", + "type": "TypeString", + "description": "Email address of user who submitted the job.", + "computed": true + }, + { + "name": "command_object_id", + "type": "TypeString", + "description": "Job command object id (workspace-id, action-id).", + "required": true + }, + { + "name": "job_env_settings", + "type": "TypeList", + "description": "Environment variables used by the Job while performing Action or Workspace.", + "optional": true, + "elem": { + "link": { + "name": "link", + "type": "TypeString", + "description": "Reference link to the variable value By default the expression will point to self.value.", + "optional": true, + "computed": true + }, + "metadata": { + "name": "metadata", + "type": "TypeList", + "description": "User editable metadata for the variables.", + "optional": true, + "elem": { + "aliases": { + "name": "aliases", + "type": "TypeList", + "description": "List of aliases for the variable name.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + "default_value": { + "name": "default_value", + "type": "TypeString", + "description": "Default value for the variable, if the override value is not specified.", + "optional": true + }, + "description": { + "name": "description", + "type": "TypeString", + "description": "Description of the meta data.", + "optional": true + }, + "group_by": { + "name": "group_by", + "type": "TypeString", + "description": "Display name of the group this variable belongs to.", + "optional": true + }, + "hidden": { + "name": "hidden", + "type": "TypeBool", + "description": "If true, the variable will not be displayed on UI or CLI.", + "optional": true + }, + "immutable": { + "name": "immutable", + "type": "TypeBool", + "description": "Is the variable readonly ?.", + "optional": true + }, + "matches": { + "name": "matches", + "type": "TypeString", + "description": "Regex for the variable value.", + "optional": true + }, + "max_length": { + "name": "max_length", + "type": "TypeInt", + "description": "Maximum length of the variable value. Applicable for string type.", + "optional": true + }, + "max_value": { + "name": "max_value", + "type": "TypeInt", + "description": "Maximum value of the variable. Applicable for integer type.", + "optional": true + }, + "min_length": { + "name": "min_length", + "type": "TypeInt", + "description": "Minimum length of the variable value. Applicable for string type.", + "optional": true + }, + "min_value": { + "name": "min_value", + "type": "TypeInt", + "description": "Minimum value of the variable. Applicable for integer type.", + "optional": true + }, + "options": { + "name": "options", + "type": "TypeList", + "description": "List of possible values for this variable. If type is integer or date, then the array of string will be converted to array of integers or date during runtime.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + "position": { + "name": "position", + "type": "TypeInt", + "description": "Relative position of this variable in a list.", + "optional": true + }, + "secure": { + "name": "secure", + "type": "TypeBool", + "description": "Is the variable secure or sensitive ?.", + "optional": true + }, + "source": { + "name": "source", + "type": "TypeString", + "description": "Source of this meta-data.", + "optional": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of the variable.", + "required": true + } + } + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the variable.", + "required": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Value for the variable or reference to the value.", + "required": true + } + } + }, { "name": "log_summary", "type": "TypeList", @@ -147053,19 +146960,38 @@ } }, { - "name": "results_url", + "name": "description", "type": "TypeString", - "description": "Job results store URL.", + "description": "The description of your job is derived from the related action or workspace. The description can be up to 2048 characters long in size.", "computed": true - } - ], - "ibm_schematics_policy": [ + }, + { + "name": "end_at", + "type": "TypeString", + "description": "Job end time.", + "computed": true + }, + { + "name": "log_store_url", + "type": "TypeString", + "description": "Job log store URL.", + "computed": true + }, { "name": "updated_at", "type": "TypeString", - "description": "The policy updation time.", + "description": "Job status updation timestamp.", "computed": true }, + { + "name": "command_object", + "type": "TypeString", + "description": "Name of the Schematics automation resource.", + "required": true, + "options": "action, environment, system, workspace" + } + ], + "ibm_schematics_policy": [ { "name": "name", "type": "TypeString", @@ -147073,10 +146999,25 @@ "required": true }, { - "name": "description", + "name": "crn", "type": "TypeString", - "description": "The description of Schematics customization policy.", - "optional": true + "description": "The policy CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "created_by", + "type": "TypeString", + "description": "The user who created the policy.", + "computed": true + }, + { + "name": "location", + "type": "TypeString", + "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", + "cloud_data_type": "region", + "optional": true, + "computed": true }, { "name": "kind", @@ -147158,6 +147099,26 @@ }, "max_items": 1 }, + { + "name": "scoped_resources", + "type": "TypeList", + "description": "List of scoped Schematics resources targeted by the policy.", + "optional": true, + "elem": { + "id": { + "name": "id", + "type": "TypeString", + "description": "Schematics resource Id.", + "optional": true + }, + "kind": { + "name": "kind", + "type": "TypeString", + "description": "Name of the Schematics automation resource.", + "optional": true + } + } + }, { "name": "account", "type": "TypeString", @@ -147173,25 +147134,45 @@ "computed": true }, { - "name": "location", - "type": "TypeString", - "description": "List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.", - "cloud_data_type": "region", + "name": "state", + "type": "TypeList", + "description": "User defined status of the Schematics object.", "optional": true, - "computed": true + "computed": true, + "elem": { + "set_at": { + "name": "set_at", + "type": "TypeString", + "description": "When the User who set the state of the Object.", + "computed": true + }, + "set_by": { + "name": "set_by", + "type": "TypeString", + "description": "Name of the User who set the state of the Object.", + "computed": true + }, + "state": { + "name": "state", + "type": "TypeString", + "description": "User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution.", + "optional": true, + "computed": true + } + }, + "max_items": 1 }, { - "name": "crn", + "name": "updated_at", "type": "TypeString", - "description": "The policy CRN.", - "cloud_data_type": "crn", + "description": "The policy updation time.", "computed": true }, { - "name": "created_by", + "name": "description", "type": "TypeString", - "description": "The user who created the policy.", - "computed": true + "description": "The description of Schematics customization policy.", + "optional": true }, { "name": "tags", @@ -147291,111 +147272,9 @@ "type": "TypeString", "description": "The policy creation time.", "computed": true - }, - { - "name": "state", - "type": "TypeList", - "description": "User defined status of the Schematics object.", - "optional": true, - "computed": true, - "elem": { - "set_at": { - "name": "set_at", - "type": "TypeString", - "description": "When the User who set the state of the Object.", - "computed": true - }, - "set_by": { - "name": "set_by", - "type": "TypeString", - "description": "Name of the User who set the state of the Object.", - "computed": true - }, - "state": { - "name": "state", - "type": "TypeString", - "description": "User-defined states * `draft` Object can be modified; can be used by Jobs run by the author, during execution * `live` Object can be modified; can be used by Jobs during execution * `locked` Object cannot be modified; can be used by Jobs during execution * `disable` Object can be modified. cannot be used by Jobs during execution.", - "optional": true, - "computed": true - } - }, - "max_items": 1 - }, - { - "name": "scoped_resources", - "type": "TypeList", - "description": "List of scoped Schematics resources targeted by the policy.", - "optional": true, - "elem": { - "id": { - "name": "id", - "type": "TypeString", - "description": "Schematics resource Id.", - "optional": true - }, - "kind": { - "name": "kind", - "type": "TypeString", - "description": "Name of the Schematics automation resource.", - "optional": true - } - } } ], "ibm_schematics_resource_query": [ - { - "name": "queries", - "type": "TypeList", - "optional": true, - "elem": { - "query_condition": { - "name": "query_condition", - "type": "TypeList", - "optional": true, - "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "Description of resource query param variable.", - "optional": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "Name of the resource query param.", - "optional": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Value of the resource query param.", - "optional": true - } - } - }, - "query_select": { - "name": "query_select", - "type": "TypeList", - "description": "List of query selection parameters.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - "query_type": { - "name": "query_type", - "type": "TypeString", - "description": "Type of the query(workspaces).", - "optional": true - } - } - }, - { - "name": "created_at", - "type": "TypeString", - "description": "Resource query creation time.", - "computed": true - }, { "name": "created_by", "type": "TypeString", @@ -147434,210 +147313,67 @@ "options": "eu-de, eu-gb, us-east, us-south", "optional": true, "computed": true - } - ], - "ibm_schematics_workspace": [ - { - "name": "template_git_url", - "type": "TypeString", - "description": "The source URL.", - "optional": true - }, - { - "name": "frozen_at", - "type": "TypeString", - "description": "The timestamp when the workspace was frozen.", - "optional": true - }, - { - "name": "template_git_repo_url", - "type": "TypeString", - "description": "The repository URL.", - "optional": true - }, - { - "name": "updated_by", - "type": "TypeString", - "description": "The user ID that updated the workspace.", - "computed": true - }, - { - "name": "template_values", - "type": "TypeString", - "description": "A list of variable values that you want to apply during the Helm chart installation. The list must be provided in JSON format, such as `\"autoscaling: enabled: true minReplicas: 2\"`. The values that you define here override the default Helm chart values. This field is supported only for IBM Cloud catalog offerings that are provisioned by using the Terraform Helm provider.", - "optional": true }, { - "name": "template_values_metadata", + "name": "queries", "type": "TypeList", - "description": "List of values metadata.", "optional": true, - "computed": true, "elem": { - "aliases": { - "name": "aliases", + "query_condition": { + "name": "query_condition", "type": "TypeList", - "description": "The list of aliases for the variable name.", - "computed": true, + "optional": true, "elem": { - "type": "TypeString" + "description": { + "name": "description", + "type": "TypeString", + "description": "Description of resource query param variable.", + "optional": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "Name of the resource query param.", + "optional": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Value of the resource query param.", + "optional": true + } } }, - "cloud_data_type": { - "name": "cloud_data_type", - "type": "TypeString", - "description": "Cloud data type of the variable. eg. resource_group_id, region, vpc_id.", - "computed": true - }, - "default_value": { - "name": "default_value", - "type": "TypeString", - "description": "Default value for the variable only if the override value is not specified.", - "computed": true - }, - "description": { - "name": "description", - "type": "TypeString", - "description": "The description of the meta data.", - "computed": true - }, - "group_by": { - "name": "group_by", - "type": "TypeString", - "description": "The display name of the group this variable belongs to.", - "computed": true - }, - "hidden": { - "name": "hidden", - "type": "TypeBool", - "description": "If **true**, the variable is not displayed on UI or Command line.", - "computed": true - }, - "immutable": { - "name": "immutable", - "type": "TypeBool", - "description": "Is the variable readonly ?.", - "computed": true - }, - "link_status": { - "name": "link_status", - "type": "TypeString", - "description": "The status of the link.", - "computed": true - }, - "matches": { - "name": "matches", - "type": "TypeString", - "description": "The regex for the variable value.", - "computed": true - }, - "max_length": { - "name": "max_length", - "type": "TypeInt", - "description": "The maximum length of the variable value. Applicable for the string type.", - "computed": true - }, - "max_value": { - "name": "max_value", - "type": "TypeInt", - "description": "The maximum value of the variable. Applicable for the integer type.", - "computed": true - }, - "min_length": { - "name": "min_length", - "type": "TypeInt", - "description": "The minimum length of the variable value. Applicable for the string type.", - "computed": true - }, - "min_value": { - "name": "min_value", - "type": "TypeInt", - "description": "The minimum value of the variable. Applicable for the integer type.", - "computed": true - }, - "options": { - "name": "options", + "query_select": { + "name": "query_select", "type": "TypeList", - "description": "The list of possible values for this variable. If type is **integer** or **date**, then the array of string is converted to array of integers or date during the runtime.", - "computed": true, + "description": "List of query selection parameters.", + "optional": true, "elem": { "type": "TypeString" } }, - "position": { - "name": "position", - "type": "TypeInt", - "description": "The relative position of this variable in a list.", - "computed": true - }, - "required": { - "name": "required", - "type": "TypeBool", - "description": "If the variable required?.", - "computed": true - }, - "secure": { - "name": "secure", - "type": "TypeBool", - "description": "Is the variable secure or sensitive ?.", - "computed": true - }, - "source": { - "name": "source", - "type": "TypeString", - "description": "The source of this meta-data.", - "computed": true - }, - "type": { - "name": "type", + "query_type": { + "name": "query_type", "type": "TypeString", - "description": "Type of the variable.", - "computed": true + "description": "Type of the query(workspaces).", + "optional": true } } }, { - "name": "template_git_release", - "type": "TypeString", - "description": "The repository release.", - "optional": true - }, - { - "name": "template_git_repo_sha_value", - "type": "TypeString", - "description": "The repository SHA value.", - "optional": true - }, - { - "name": "template_ref", - "type": "TypeString", - "description": "Workspace template ref.", - "optional": true - }, - { - "name": "locked", - "type": "TypeBool", - "description": "If set to true, the workspace is locked and disabled for changes.", - "optional": true, - "computed": true - }, - { - "name": "last_health_check_at", - "type": "TypeString", - "description": "The timestamp when the last health check was performed by Schematics.", - "computed": true - }, - { - "name": "status_code", + "name": "created_at", "type": "TypeString", - "description": "The success or error code that was returned for the last plan, apply, or destroy job that ran against your workspace.", + "description": "Resource query creation time.", "computed": true - }, + } + ], + "ibm_schematics_workspace": [ { - "name": "created_at", + "name": "x_github_token", "type": "TypeString", - "description": "The timestamp when the workspace was created.", - "computed": true + "description": "The personal access token to authenticate with your private GitHub or GitLab repository and access your Terraform template.", + "optional": true }, { "name": "runtime_data", @@ -147701,6 +147437,18 @@ } } }, + { + "name": "template_init_state_file", + "type": "TypeString", + "description": "The content of an existing Terraform statefile that you want to import in to your workspace. To get the content of a Terraform statefile for a specific Terraform template in an existing workspace, run `ibmcloud schematics state pull --id \u003cworkspace_id\u003e --template \u003ctemplate_id\u003e`.", + "optional": true + }, + { + "name": "template_git_repo_sha_value", + "type": "TypeString", + "description": "The repository SHA value.", + "optional": true + }, { "name": "updated_at", "type": "TypeString", @@ -147708,42 +147456,86 @@ "computed": true }, { - "name": "status_msg", + "name": "updated_by", "type": "TypeString", - "description": "The success or error message that was returned for the last plan, apply, or destroy job that ran against your workspace.", + "description": "The user ID that updated the workspace.", "computed": true }, { - "name": "template_git_branch", + "name": "template_git_release", "type": "TypeString", - "description": "The repository branch.", + "description": "The repository release.", "optional": true }, { - "name": "locked_by", - "type": "TypeString", - "description": "The user ID that initiated a resource-related action, such as applying or destroying resources, that locked the workspace.", + "name": "locked", + "type": "TypeBool", + "description": "If set to true, the workspace is locked and disabled for changes.", "optional": true, "computed": true }, { - "name": "locked_time", + "name": "template_values", "type": "TypeString", - "description": "The timestamp when the workspace was locked.", - "optional": true, + "description": "A list of variable values that you want to apply during the Helm chart installation. The list must be provided in JSON format, such as `\"autoscaling: enabled: true minReplicas: 2\"`. The values that you define here override the default Helm chart values. This field is supported only for IBM Cloud catalog offerings that are provisioned by using the Terraform Helm provider.", + "optional": true + }, + { + "name": "template_git_url", + "type": "TypeString", + "description": "The source URL.", + "optional": true + }, + { + "name": "last_health_check_at", + "type": "TypeString", + "description": "The timestamp when the last health check was performed by Schematics.", "computed": true }, { - "name": "x_github_token", + "name": "applied_shareddata_ids", + "type": "TypeList", + "description": "List of applied shared dataset ID.", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "resource_group", "type": "TypeString", - "description": "The personal access token to authenticate with your private GitHub or GitLab repository and access your Terraform template.", + "description": "The ID of the resource group where you want to provision the workspace.", + "cloud_data_type": "resource_group", "optional": true }, { - "name": "description", + "name": "template_git_branch", "type": "TypeString", - "description": "The description of the workspace.", - "max_length": 2048, + "description": "The repository branch.", + "optional": true + }, + { + "name": "template_git_repo_url", + "type": "TypeString", + "description": "The repository URL.", + "optional": true + }, + { + "name": "frozen_at", + "type": "TypeString", + "description": "The timestamp when the workspace was frozen.", + "optional": true + }, + { + "name": "status_code", + "type": "TypeString", + "description": "The success or error code that was returned for the last plan, apply, or destroy job that ran against your workspace.", + "computed": true + }, + { + "name": "template_git_folder", + "type": "TypeString", + "description": "The subfolder in your GitHub or GitLab repository where your Terraform template is stored.", "optional": true }, { @@ -147753,16 +147545,29 @@ "optional": true }, { - "name": "crn", + "name": "frozen_by", "type": "TypeString", - "description": "The workspace CRN.", - "cloud_data_type": "crn", + "description": "The user ID that froze the workspace.", + "optional": true + }, + { + "name": "locked_by", + "type": "TypeString", + "description": "The user ID that initiated a resource-related action, such as applying or destroying resources, that locked the workspace.", + "optional": true, "computed": true }, { - "name": "status", + "name": "locked_time", "type": "TypeString", - "description": "The status of the workspace. **Active**: After you successfully ran your infrastructure code by applying your Terraform execution plan, the state of your workspace changes to `Active`. **Connecting**: Schematics tries to connect to the template in your source repo. If successfully connected, the template is downloaded and metadata, such as input parameters, is extracted. After the template is downloaded, the state of the workspace changes to `Scanning`. **Draft**: The workspace is created without a reference to a GitHub or GitLab repository. **Failed**: If errors occur during the execution of your infrastructure code in IBM Cloud Schematics, your workspace status is set to `Failed`. **Inactive**: The Terraform template was scanned successfully and the workspace creation is complete. You can now start running Schematics plan and apply jobs to provision the IBM Cloud resources that you specified in your template. If you have an `Active` workspace and decide to remove all your resources, your workspace is set to `Inactive` after all your resources are removed. **In progress**: When you instruct IBM Cloud Schematics to run your infrastructure code by applying your Terraform execution plan, the status of our workspace changes to `In progress`. **Scanning**: The download of the Terraform template is complete and vulnerability scanning started. If the scan is successful, the workspace state changes to `Inactive`. If errors in your template are found, the state changes to `Template Error`. **Stopped**: The Schematics plan, apply, or destroy job was cancelled manually. **Template Error**: The Schematics template contains errors and cannot be processed.", + "description": "The timestamp when the workspace was locked.", + "optional": true, + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The timestamp when the workspace was created.", "computed": true }, { @@ -147829,53 +147634,9 @@ "max_items": 1 }, { - "name": "template_inputs", - "type": "TypeList", - "description": "VariablesRequest -.", - "optional": true, - "elem": { - "description": { - "name": "description", - "type": "TypeString", - "description": "The description of your input variable.", - "optional": true - }, - "name": { - "name": "name", - "type": "TypeString", - "description": "The name of the variable.", - "required": true - }, - "secure": { - "name": "secure", - "type": "TypeBool", - "description": "If set to `true`, the value of your input variable is protected and not returned in your API response.", - "optional": true - }, - "type": { - "name": "type", - "type": "TypeString", - "description": "`Terraform v0.11` supports `string`, `list`, `map` data type. For more information, about the syntax, see [Configuring input variables](https://www.terraform.io/docs/configuration-0-11/variables.html).\u003cbr\u003e `Terraform v0.12` additionally, supports `bool`, `number` and complex data types such as `list(type)`, `map(type)`,`object({attribute name=type,..})`, `set(type)`, `tuple([type])`. For more information, about the syntax to use the complex data type, see [Configuring variables](https://www.terraform.io/docs/configuration/variables.html#type-constraints).", - "required": true - }, - "use_default": { - "name": "use_default", - "type": "TypeBool", - "description": "Variable uses default value; and is not over-ridden.", - "optional": true - }, - "value": { - "name": "value", - "type": "TypeString", - "description": "Enter the value as a string for the primitive types such as `bool`, `number`, `string`, and `HCL` format for the complex variables, as you provide in a `.tfvars` file. **You need to enter escaped string of `HCL` format for the complex variable value**. For more information, about how to declare variables in a terraform configuration file and provide value to schematics, see [Providing values for the declared variables](/docs/schematics?topic=schematics-create-tf-config#declare-variable).", - "required": true - } - } - }, - { - "name": "frozen", - "type": "TypeBool", - "description": "If set to true, the workspace is frozen and changes to the workspace are disabled.", + "name": "template_ref", + "type": "TypeString", + "description": "Workspace template ref.", "optional": true }, { @@ -147884,81 +147645,6 @@ "description": "The user ID that created the workspace.", "computed": true }, - { - "name": "template_type", - "type": "TypeString", - "description": "The Terraform version that you want to use to run your Terraform code. Enter `terraform_v0.12` to use Terraform version 0.12, and `terraform_v0.11` to use Terraform version 0.11. The Terraform config files are run with Terraform version 0.11. This is a required variable. Make sure that your Terraform config files are compatible with the Terraform version that you select.", - "required": true, - "matches": "^terraform_v(?:0\\.11|0\\.12|0\\.13|0\\.14|0\\.15|1\\.0|1\\.1|1\\.2|1\\.3|1\\.4|1\\.5)(?:\\.\\d+)?$" - }, - { - "name": "template_git_has_uploadedgitrepotar", - "type": "TypeBool", - "description": "Has uploaded git repo tar", - "optional": true, - "computed": true - }, - { - "name": "name", - "type": "TypeString", - "description": "The name of your workspace. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores. When you create a workspace for your own Terraform template, consider including the microservice component that you set up with your Terraform template and the IBM Cloud environment where you want to deploy your resources in your name.", - "required": true, - "min_length": 1, - "max_length": 128, - "matches": "^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$" - }, - { - "name": "resource_group", - "type": "TypeString", - "description": "The ID of the resource group where you want to provision the workspace.", - "cloud_data_type": "resource_group", - "optional": true - }, - { - "name": "tags", - "type": "TypeList", - "description": "A list of tags that are associated with the workspace.", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "template_git_folder", - "type": "TypeString", - "description": "The subfolder in your GitHub or GitLab repository where your Terraform template is stored.", - "optional": true - }, - { - "name": "template_init_state_file", - "type": "TypeString", - "description": "The content of an existing Terraform statefile that you want to import in to your workspace. To get the content of a Terraform statefile for a specific Terraform template in an existing workspace, run `ibmcloud schematics state pull --id \u003cworkspace_id\u003e --template \u003ctemplate_id\u003e`.", - "optional": true - }, - { - "name": "frozen_by", - "type": "TypeString", - "description": "The user ID that froze the workspace.", - "optional": true - }, - { - "name": "applied_shareddata_ids", - "type": "TypeList", - "description": "List of applied shared dataset ID.", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "location", - "type": "TypeString", - "description": "The location where you want to create your Schematics workspace and run the Schematics jobs. The location that you enter must match the API endpoint that you use. For example, if you use the Frankfurt API endpoint, you must specify `eu-de` as your location. If you use an API endpoint for a geography and you do not specify a location, Schematics determines the location based on availability.", - "cloud_data_type": "region", - "optional": true, - "computed": true - }, { "name": "shared_data", "type": "TypeList", @@ -148031,6 +147717,237 @@ }, "max_items": 1 }, + { + "name": "tags", + "type": "TypeList", + "description": "A list of tags that are associated with the workspace.", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "template_values_metadata", + "type": "TypeList", + "description": "List of values metadata.", + "optional": true, + "computed": true, + "elem": { + "aliases": { + "name": "aliases", + "type": "TypeList", + "description": "The list of aliases for the variable name.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "cloud_data_type": { + "name": "cloud_data_type", + "type": "TypeString", + "description": "Cloud data type of the variable. eg. resource_group_id, region, vpc_id.", + "computed": true + }, + "default_value": { + "name": "default_value", + "type": "TypeString", + "description": "Default value for the variable only if the override value is not specified.", + "computed": true + }, + "description": { + "name": "description", + "type": "TypeString", + "description": "The description of the meta data.", + "computed": true + }, + "group_by": { + "name": "group_by", + "type": "TypeString", + "description": "The display name of the group this variable belongs to.", + "computed": true + }, + "hidden": { + "name": "hidden", + "type": "TypeBool", + "description": "If **true**, the variable is not displayed on UI or Command line.", + "computed": true + }, + "immutable": { + "name": "immutable", + "type": "TypeBool", + "description": "Is the variable readonly ?.", + "computed": true + }, + "link_status": { + "name": "link_status", + "type": "TypeString", + "description": "The status of the link.", + "computed": true + }, + "matches": { + "name": "matches", + "type": "TypeString", + "description": "The regex for the variable value.", + "computed": true + }, + "max_length": { + "name": "max_length", + "type": "TypeInt", + "description": "The maximum length of the variable value. Applicable for the string type.", + "computed": true + }, + "max_value": { + "name": "max_value", + "type": "TypeInt", + "description": "The maximum value of the variable. Applicable for the integer type.", + "computed": true + }, + "min_length": { + "name": "min_length", + "type": "TypeInt", + "description": "The minimum length of the variable value. Applicable for the string type.", + "computed": true + }, + "min_value": { + "name": "min_value", + "type": "TypeInt", + "description": "The minimum value of the variable. Applicable for the integer type.", + "computed": true + }, + "options": { + "name": "options", + "type": "TypeList", + "description": "The list of possible values for this variable. If type is **integer** or **date**, then the array of string is converted to array of integers or date during the runtime.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "position": { + "name": "position", + "type": "TypeInt", + "description": "The relative position of this variable in a list.", + "computed": true + }, + "required": { + "name": "required", + "type": "TypeBool", + "description": "If the variable required?.", + "computed": true + }, + "secure": { + "name": "secure", + "type": "TypeBool", + "description": "Is the variable secure or sensitive ?.", + "computed": true + }, + "source": { + "name": "source", + "type": "TypeString", + "description": "The source of this meta-data.", + "computed": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "Type of the variable.", + "computed": true + } + } + }, + { + "name": "template_inputs", + "type": "TypeList", + "description": "VariablesRequest -.", + "optional": true, + "elem": { + "description": { + "name": "description", + "type": "TypeString", + "description": "The description of your input variable.", + "optional": true + }, + "name": { + "name": "name", + "type": "TypeString", + "description": "The name of the variable.", + "required": true + }, + "secure": { + "name": "secure", + "type": "TypeBool", + "description": "If set to `true`, the value of your input variable is protected and not returned in your API response.", + "optional": true + }, + "type": { + "name": "type", + "type": "TypeString", + "description": "`Terraform v0.11` supports `string`, `list`, `map` data type. For more information, about the syntax, see [Configuring input variables](https://www.terraform.io/docs/configuration-0-11/variables.html).\u003cbr\u003e `Terraform v0.12` additionally, supports `bool`, `number` and complex data types such as `list(type)`, `map(type)`,`object({attribute name=type,..})`, `set(type)`, `tuple([type])`. For more information, about the syntax to use the complex data type, see [Configuring variables](https://www.terraform.io/docs/configuration/variables.html#type-constraints).", + "required": true + }, + "use_default": { + "name": "use_default", + "type": "TypeBool", + "description": "Variable uses default value; and is not over-ridden.", + "optional": true + }, + "value": { + "name": "value", + "type": "TypeString", + "description": "Enter the value as a string for the primitive types such as `bool`, `number`, `string`, and `HCL` format for the complex variables, as you provide in a `.tfvars` file. **You need to enter escaped string of `HCL` format for the complex variable value**. For more information, about how to declare variables in a terraform configuration file and provide value to schematics, see [Providing values for the declared variables](/docs/schematics?topic=schematics-create-tf-config#declare-variable).", + "required": true + } + } + }, + { + "name": "template_git_has_uploadedgitrepotar", + "type": "TypeBool", + "description": "Has uploaded git repo tar", + "optional": true, + "computed": true + }, + { + "name": "frozen", + "type": "TypeBool", + "description": "If set to true, the workspace is frozen and changes to the workspace are disabled.", + "optional": true + }, + { + "name": "crn", + "type": "TypeString", + "description": "The workspace CRN.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The status of the workspace. **Active**: After you successfully ran your infrastructure code by applying your Terraform execution plan, the state of your workspace changes to `Active`. **Connecting**: Schematics tries to connect to the template in your source repo. If successfully connected, the template is downloaded and metadata, such as input parameters, is extracted. After the template is downloaded, the state of the workspace changes to `Scanning`. **Draft**: The workspace is created without a reference to a GitHub or GitLab repository. **Failed**: If errors occur during the execution of your infrastructure code in IBM Cloud Schematics, your workspace status is set to `Failed`. **Inactive**: The Terraform template was scanned successfully and the workspace creation is complete. You can now start running Schematics plan and apply jobs to provision the IBM Cloud resources that you specified in your template. If you have an `Active` workspace and decide to remove all your resources, your workspace is set to `Inactive` after all your resources are removed. **In progress**: When you instruct IBM Cloud Schematics to run your infrastructure code by applying your Terraform execution plan, the status of our workspace changes to `In progress`. **Scanning**: The download of the Terraform template is complete and vulnerability scanning started. If the scan is successful, the workspace state changes to `Inactive`. If errors in your template are found, the state changes to `Template Error`. **Stopped**: The Schematics plan, apply, or destroy job was cancelled manually. **Template Error**: The Schematics template contains errors and cannot be processed.", + "computed": true + }, + { + "name": "name", + "type": "TypeString", + "description": "The name of your workspace. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores. When you create a workspace for your own Terraform template, consider including the microservice component that you set up with your Terraform template and the IBM Cloud environment where you want to deploy your resources in your name.", + "required": true, + "min_length": 1, + "max_length": 128, + "matches": "^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$" + }, + { + "name": "template_type", + "type": "TypeString", + "description": "The Terraform version that you want to use to run your Terraform code. Enter `terraform_v0.12` to use Terraform version 0.12, and `terraform_v0.11` to use Terraform version 0.11. The Terraform config files are run with Terraform version 0.11. This is a required variable. Make sure that your Terraform config files are compatible with the Terraform version that you select.", + "required": true, + "matches": "^terraform_v(?:0\\.11|0\\.12|0\\.13|0\\.14|0\\.15|1\\.0|1\\.1|1\\.2|1\\.3|1\\.4|1\\.5)(?:\\.\\d+)?$" + }, + { + "name": "status_msg", + "type": "TypeString", + "description": "The success or error message that was returned for the last plan, apply, or destroy job that ran against your workspace.", + "computed": true + }, { "name": "template_env_settings", "type": "TypeList", @@ -148039,20 +147956,35 @@ "elem": { "type": "TypeMap" } - } - ], - "ibm_security_group": [ + }, { - "name": "name", + "name": "description", "type": "TypeString", - "description": "Security group name", - "required": true + "description": "The description of the workspace.", + "max_length": 2048, + "optional": true }, + { + "name": "location", + "type": "TypeString", + "description": "The location where you want to create your Schematics workspace and run the Schematics jobs. The location that you enter must match the API endpoint that you use. For example, if you use the Frankfurt API endpoint, you must specify `eu-de` as your location. If you use an API endpoint for a geography and you do not specify a location, Schematics determines the location based on availability.", + "cloud_data_type": "region", + "optional": true, + "computed": true + } + ], + "ibm_security_group": [ { "name": "description", "type": "TypeString", "description": "Security group description", "optional": true + }, + { + "name": "name", + "type": "TypeString", + "description": "Security group name", + "required": true } ], "ibm_security_group_rule": [ @@ -148108,31 +148040,12 @@ } ], "ibm_service_instance": [ - { - "name": "service", - "type": "TypeString", - "description": "The name of the service offering like speech_to_text, text_to_speech etc", - "immutable": true, - "required": true - }, - { - "name": "service_plan_guid", - "type": "TypeString", - "description": "The uniquie identifier of the service offering plan type", - "computed": true - }, { "name": "parameters", "type": "TypeMap", "description": "Arbitrary parameters to pass along to the service broker. Must be a JSON object", "optional": true }, - { - "name": "plan", - "type": "TypeString", - "description": "The plan type of the service", - "required": true - }, { "name": "tags", "type": "TypeSet", @@ -148143,11 +148056,10 @@ } }, { - "name": "wait_time_minutes", - "type": "TypeInt", - "description": "Define timeout to wait for the service instances to succeeded/deleted etc.", - "default_value": 10, - "optional": true + "name": "dashboard_url", + "type": "TypeString", + "description": "Dashboard URL to access resource.", + "computed": true }, { "name": "name", @@ -148156,11 +148068,11 @@ "required": true }, { - "name": "credentials", - "type": "TypeMap", - "description": "The service broker-provided credentials to use this service.", - "secure": true, - "computed": true + "name": "service", + "type": "TypeString", + "description": "The name of the service offering like speech_to_text, text_to_speech etc", + "immutable": true, + "required": true }, { "name": "service_keys", @@ -148184,20 +148096,56 @@ } }, { - "name": "dashboard_url", + "name": "service_plan_guid", "type": "TypeString", - "description": "Dashboard URL to access resource.", + "description": "The uniquie identifier of the service offering plan type", "computed": true }, + { + "name": "plan", + "type": "TypeString", + "description": "The plan type of the service", + "required": true + }, + { + "name": "wait_time_minutes", + "type": "TypeInt", + "description": "Define timeout to wait for the service instances to succeeded/deleted etc.", + "default_value": 10, + "optional": true + }, { "name": "space_guid", "type": "TypeString", "description": "The guid of the space in which the instance will be created", "immutable": true, "required": true + }, + { + "name": "credentials", + "type": "TypeMap", + "description": "The service broker-provided credentials to use this service.", + "secure": true, + "computed": true } ], "ibm_service_key": [ + { + "name": "credentials", + "type": "TypeMap", + "description": "Credentials asociated with the key", + "secure": true, + "computed": true + }, + { + "name": "tags", + "type": "TypeSet", + "cloud_data_type": "tags", + "optional": true, + "elem": { + "type": "TypeString" + } + }, { "name": "name", "type": "TypeString", @@ -148218,35 +148166,31 @@ "description": "Arbitrary parameters to pass along to the service broker. Must be a JSON object", "immutable": true, "optional": true - }, + } + ], + "ibm_sm_arbitrary_secret": [ { - "name": "credentials", - "type": "TypeMap", - "description": "Credentials asociated with the key", - "secure": true, + "name": "secret_type", + "type": "TypeString", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "tags", - "type": "TypeSet", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - } - ], - "ibm_sm_arbitrary_secret": [ + "name": "description", + "type": "TypeString", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "optional": true + }, { - "name": "name", + "name": "expiration_date", "type": "TypeString", - "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", - "required": true + "description": "The date a secret is expired. The date format follows RFC 3339.", + "optional": true }, { - "name": "custom_metadata", + "name": "version_custom_metadata", "type": "TypeMap", - "description": "The secret metadata that a user can customize.", + "description": "The secret version metadata that a user can customize.", "optional": true, "computed": true, "elem": { @@ -148254,37 +148198,40 @@ } }, { - "name": "expiration_date", + "name": "crn", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", - "optional": true - }, - { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved.", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", "computed": true }, { - "name": "state_description", + "name": "secret_id", "type": "TypeString", - "description": "A text representation of the secret state.", + "description": "A v4 UUID identifier.", "computed": true }, { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", + "name": "updated_at", + "type": "TypeString", + "description": "The date that a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "instance_id", + "name": "name", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, + "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", "required": true }, + { + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "labels", "type": "TypeList", @@ -148296,77 +148243,68 @@ } }, { - "name": "updated_at", + "name": "created_at", "type": "TypeString", - "description": "The date that a resource was recently modified. The date format follows RFC 3339.", + "description": "The date that a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "secret_type", - "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved.", "computed": true }, { - "name": "secret_group_id", + "name": "locks_total", + "type": "TypeInt", + "description": "The number of locks of the secret.", + "computed": true + }, + { + "name": "instance_id", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", "immutable": true, - "optional": true, - "computed": true + "required": true }, { - "name": "version_custom_metadata", - "type": "TypeMap", - "description": "The secret version metadata that a user can customize.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "payload", + "type": "TypeString", + "description": "The arbitrary secret data payload.", + "secure": true, + "required": true }, { - "name": "created_at", + "name": "created_by", "type": "TypeString", - "description": "The date that a resource was created. The date format follows RFC 3339.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "secret_id", + "name": "state_description", "type": "TypeString", - "description": "A v4 UUID identifier.", + "description": "A text representation of the secret state.", "computed": true }, { - "name": "locks_total", + "name": "versions_total", "type": "TypeInt", - "description": "The number of locks of the secret.", + "description": "The number of versions of the secret.", "computed": true }, { - "name": "payload", - "type": "TypeString", - "description": "The arbitrary secret data payload.", - "secure": true, - "required": true - }, - { - "name": "description", + "name": "endpoint_type", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "description": "public or private.", "optional": true }, { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true - }, - { - "name": "crn", + "name": "secret_group_id", "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", + "description": "A v4 UUID identifier, or `default` secret group.", + "immutable": true, + "optional": true, "computed": true }, { @@ -148383,25 +148321,9 @@ "immutable": true, "optional": true, "computed": true - }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true } ], "ibm_sm_en_registration": [ - { - "name": "event_notifications_instance_crn", - "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "immutable": true, - "required": true, - "min_length": 9, - "max_length": 512, - "matches": "^crn:v[0-9](:([A-Za-z0-9-._~!$\u0026'()*+,;=@\\/]|%[0-9A-Z]{2})*){8}$" - }, { "name": "event_notifications_source_name", "type": "TypeString", @@ -148443,9 +148365,27 @@ "type": "TypeString", "description": "public or private.", "optional": true + }, + { + "name": "event_notifications_instance_crn", + "type": "TypeString", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "immutable": true, + "required": true, + "min_length": 9, + "max_length": 512, + "matches": "^crn:v[0-9](:([A-Za-z0-9-._~!$\u0026'()*+,;=@\\/]|%[0-9A-Z]{2})*){8}$" } ], "ibm_sm_iam_credentials_configuration": [ + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, { "name": "region", "type": "TypeString", @@ -148462,6 +148402,12 @@ "secure": true, "required": true }, + { + "name": "created_by", + "type": "TypeString", + "description": "The unique identifier that is associated with the entity that created the secret.", + "computed": true + }, { "name": "secret_type", "type": "TypeString", @@ -148469,9 +148415,9 @@ "computed": true }, { - "name": "created_by", + "name": "created_at", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { @@ -148480,14 +148426,6 @@ "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, { "name": "endpoint_type", "type": "TypeString", @@ -148506,29 +148444,13 @@ "type": "TypeString", "description": "The configuration type.", "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", - "computed": true } ], "ibm_sm_iam_credentials_secret": [ { - "name": "access_groups", - "type": "TypeList", - "description": "Access Groups that you can use for an `iam_credentials` secret.Up to 10 Access Groups can be used for each secret.", - "immutable": true, - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", + "name": "api_key_id", + "type": "TypeString", + "description": "The ID of the API key that is generated for this secret.", "computed": true }, { @@ -148544,104 +148466,17 @@ "computed": true }, { - "name": "rotation", - "type": "TypeList", - "description": "Determines whether Secrets Manager rotates your secrets automatically.", - "optional": true, - "computed": true, - "elem": { - "auto_rotate": { - "name": "auto_rotate", - "type": "TypeBool", - "description": "Determines whether Secrets Manager rotates your secret automatically.Default is `false`. If `auto_rotate` is set to `true` the service rotates your secret based on the defined interval.", - "optional": true, - "computed": true - }, - "interval": { - "name": "interval", - "type": "TypeInt", - "description": "The length of the secret rotation time interval.", - "optional": true, - "computed": true - }, - "rotate_keys": { - "name": "rotate_keys", - "type": "TypeBool", - "description": "Determines whether Secrets Manager rotates the private key for your public certificate automatically.Default is `false`. If it is set to `true`, the service generates and stores a new private key for your rotated certificate.", - "optional": true, - "computed": true - }, - "unit": { - "name": "unit", - "type": "TypeString", - "description": "The units for the secret rotation time interval.", - "optional": true, - "computed": true - } - }, - "max_items": 1 - }, - { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true - }, - { - "name": "state", - "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", - "computed": true - }, - { - "name": "state_description", - "type": "TypeString", - "description": "A text representation of the secret state.", - "computed": true - }, - { - "name": "next_rotation_date", - "type": "TypeString", - "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", - "computed": true - }, - { - "name": "secret_group_id", + "name": "ttl", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "reuse_api_key", - "type": "TypeBool", - "description": "Determines whether to use the same service ID and API key for future read operations on an`iam_credentials` secret. Must be set to `true` for IAM credentials secrets managed with Terraform.", - "default_value": true, - "optional": true - }, - { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", - "computed": true + "description": "The time-to-live (TTL) or lease duration to assign to generated credentials.For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value is an integer that specifies the number of seconds .Minimum duration is 1 minute. Maximum is 90 days.", + "required": true }, { - "name": "api_key_id", + "name": "created_at", "type": "TypeString", - "description": "The ID of the API key that is generated for this secret.", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, - { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, { "name": "crn", "type": "TypeString", @@ -148668,24 +148503,22 @@ "optional": true }, { - "name": "service_id", + "name": "secret_group_id", "type": "TypeString", - "description": "The service ID under which the API key (see the `api_key` field) is created.If you omit this parameter, Secrets Manager generates a new service ID for your secret at its creation and adds it to the access groups that you assign.Optionally, you can use this field to provide your own service ID if you prefer to manage its access directly or retain the service ID after your secret expires, is rotated, or deleted. If you provide a service ID, do not include the `access_groups` parameter.", + "description": "A v4 UUID identifier, or `default` secret group.", "immutable": true, "optional": true, "computed": true }, { - "name": "created_at", - "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "ttl", - "type": "TypeString", - "description": "The time-to-live (TTL) or lease duration to assign to generated credentials.For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value is an integer that specifies the number of seconds .Minimum duration is 1 minute. Maximum is 90 days.", - "required": true + "name": "access_groups", + "type": "TypeList", + "description": "Access Groups that you can use for an `iam_credentials` secret.Up to 10 Access Groups can be used for each secret.", + "immutable": true, + "optional": true, + "elem": { + "type": "TypeString" + } }, { "name": "custom_metadata", @@ -148708,27 +148541,18 @@ } }, { - "name": "region", - "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", - "required": true - }, - { - "name": "instance_id", + "name": "service_id", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", + "description": "The service ID under which the API key (see the `api_key` field) is created.If you omit this parameter, Secrets Manager generates a new service ID for your secret at its creation and adds it to the access groups that you assign.Optionally, you can use this field to provide your own service ID if you prefer to manage its access directly or retain the service ID after your secret expires, is rotated, or deleted. If you provide a service ID, do not include the `access_groups` parameter.", "immutable": true, - "required": true + "optional": true, + "computed": true }, { "name": "secret_id", @@ -148737,9 +148561,9 @@ "computed": true }, { - "name": "service_id_is_static", - "type": "TypeBool", - "description": "Indicates whether an `iam_credentials` secret was created with a static service ID.If it is set to `true`, the service ID for the secret was provided by the user at secret creation. If it is set to `false`, the service ID was generated by Secrets Manager.", + "name": "state_description", + "type": "TypeString", + "description": "A text representation of the secret state.", "computed": true }, { @@ -148748,75 +148572,102 @@ "description": "The API key that is generated for this secret.After the secret reaches the end of its lease (see the `ttl` field), the API key is deleted automatically.", "secure": true, "computed": true - } - ], - "ibm_sm_imported_certificate": [ - { - "name": "certificate", - "type": "TypeString", - "description": "The PEM-encoded contents of your certificate.", - "secure": true, - "required": true }, { - "name": "private_key", + "name": "created_by", "type": "TypeString", - "description": "(Optional) The PEM-encoded private key to associate with the certificate.", - "secure": true, - "optional": true + "description": "The unique identifier that is associated with the entity that created the secret.", + "computed": true }, { - "name": "versions_total", + "name": "locks_total", "type": "TypeInt", - "description": "The number of versions of the secret.", + "description": "The number of locks of the secret.", "computed": true }, { - "name": "issuer", + "name": "name", "type": "TypeString", - "description": "The distinguished name that identifies the entity that signed and issued the certificate.", - "computed": true + "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", + "required": true }, { - "name": "secret_type", - "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "name": "service_id_is_static", + "type": "TypeBool", + "description": "Indicates whether an `iam_credentials` secret was created with a static service ID.If it is set to `true`, the service ID for the secret was provided by the user at secret creation. If it is set to `false`, the service ID was generated by Secrets Manager.", "computed": true }, { - "name": "created_at", + "name": "instance_id", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", - "computed": true + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", - "computed": true + "name": "rotation", + "type": "TypeList", + "description": "Determines whether Secrets Manager rotates your secrets automatically.", + "optional": true, + "computed": true, + "elem": { + "auto_rotate": { + "name": "auto_rotate", + "type": "TypeBool", + "description": "Determines whether Secrets Manager rotates your secret automatically.Default is `false`. If `auto_rotate` is set to `true` the service rotates your secret based on the defined interval.", + "optional": true, + "computed": true + }, + "interval": { + "name": "interval", + "type": "TypeInt", + "description": "The length of the secret rotation time interval.", + "optional": true, + "computed": true + }, + "rotate_keys": { + "name": "rotate_keys", + "type": "TypeBool", + "description": "Determines whether Secrets Manager rotates the private key for your public certificate automatically.Default is `false`. If it is set to `true`, the service generates and stores a new private key for your rotated certificate.", + "optional": true, + "computed": true + }, + "unit": { + "name": "unit", + "type": "TypeString", + "description": "The units for the secret rotation time interval.", + "optional": true, + "computed": true + } + }, + "max_items": 1 }, { - "name": "serial_number", - "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", "computed": true }, { - "name": "description", + "name": "next_rotation_date", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", - "optional": true + "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", + "computed": true }, { - "name": "name", + "name": "region", "type": "TypeString", - "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", - "required": true + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, + "computed": true }, { - "name": "version_custom_metadata", - "type": "TypeMap", - "description": "The secret version metadata that a user can customize.", + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", "optional": true, "computed": true, "elem": { @@ -148824,24 +148675,32 @@ } }, { - "name": "common_name", + "name": "reuse_api_key", + "type": "TypeBool", + "description": "Determines whether to use the same service ID and API key for future read operations on an`iam_credentials` secret. Must be set to `true` for IAM credentials secrets managed with Terraform.", + "default_value": true, + "optional": true + } + ], + "ibm_sm_imported_certificate": [ + { + "name": "signing_algorithm", "type": "TypeString", - "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", + "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", "computed": true }, { - "name": "intermediate_included", - "type": "TypeBool", - "description": "Indicates whether the certificate was imported with an associated intermediate certificate.", - "computed": true + "name": "name", + "type": "TypeString", + "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", + "required": true }, { - "name": "secret_group_id", + "name": "intermediate", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", - "immutable": true, - "optional": true, - "computed": true + "description": "(Optional) The PEM-encoded intermediate certificate to associate with the root certificate.", + "secure": true, + "optional": true }, { "name": "state_description", @@ -148850,36 +148709,76 @@ "computed": true }, { - "name": "signing_algorithm", + "name": "secret_id", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", + "description": "A v4 UUID identifier.", "computed": true }, { - "name": "region", + "name": "secret_group_id", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", + "description": "A v4 UUID identifier, or `default` secret group.", "immutable": true, "optional": true, "computed": true }, { - "name": "endpoint_type", + "name": "version_custom_metadata", + "type": "TypeMap", + "description": "The secret version metadata that a user can customize.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "alt_names", + "type": "TypeList", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "expiration_date", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The date a secret is expired. The date format follows RFC 3339.", + "computed": true }, { - "name": "secret_id", + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "secret_type", "type": "TypeString", - "description": "A v4 UUID identifier.", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "state", + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "computed": true + }, + { + "name": "locks_total", "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "description": "The number of locks of the secret.", + "computed": true + }, + { + "name": "serial_number", + "type": "TypeString", + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", "computed": true }, { @@ -148891,19 +148790,18 @@ "required": true }, { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "computed": true }, { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", "optional": true, "computed": true, "elem": { @@ -148911,23 +148809,15 @@ } }, { - "name": "intermediate", - "type": "TypeString", - "description": "(Optional) The PEM-encoded intermediate certificate to associate with the root certificate.", - "secure": true, - "optional": true - }, - { - "name": "crn", + "name": "key_algorithm", "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", + "description": "The identifier for the cryptographic algorithm to be used to generate the public key that is associated with the certificate.The algorithm that you select determines the encryption algorithm (`RSA` or `ECDSA`) and key size to be used to generate keys and sign certificates. For longer living certificates, it is recommended to use longer keys to provide more encryption protection. Allowed values: RSA2048, RSA4096, EC256, EC384.", "computed": true }, { - "name": "updated_at", - "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", "computed": true }, { @@ -148951,36 +148841,34 @@ } }, { - "name": "alt_names", - "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "description", + "type": "TypeString", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "optional": true }, { - "name": "created_by", + "name": "private_key", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true + "description": "(Optional) The PEM-encoded private key to associate with the certificate.", + "secure": true, + "optional": true }, { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", + "name": "created_at", + "type": "TypeString", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "expiration_date", - "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", + "name": "intermediate_included", + "type": "TypeBool", + "description": "Indicates whether the certificate was imported with an associated intermediate certificate.", "computed": true }, { - "name": "key_algorithm", + "name": "issuer", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm to be used to generate the public key that is associated with the certificate.The algorithm that you select determines the encryption algorithm (`RSA` or `ECDSA`) and key size to be used to generate keys and sign certificates. For longer living certificates, it is recommended to use longer keys to provide more encryption protection. Allowed values: RSA2048, RSA4096, EC256, EC384.", + "description": "The distinguished name that identifies the entity that signed and issued the certificate.", "computed": true }, { @@ -148988,42 +148876,37 @@ "type": "TypeBool", "description": "Indicates whether the certificate was imported with an associated private key.", "computed": true - } - ], - "ibm_sm_kv_secret": [ + }, { - "name": "name", + "name": "created_by", "type": "TypeString", - "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", - "required": true + "description": "The unique identifier that is associated with the entity that created the secret.", + "computed": true }, { - "name": "secret_group_id", - "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", - "immutable": true, - "optional": true, + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { - "name": "data", - "type": "TypeMap", - "description": "The payload data of a key-value secret.", + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true + }, + { + "name": "certificate", + "type": "TypeString", + "description": "The PEM-encoded contents of your certificate.", "secure": true, - "required": true, - "elem": { - "type": "TypeString" - } + "required": true }, { - "name": "version_custom_metadata", - "type": "TypeMap", - "description": "The secret version metadata that a user can customize.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "common_name", + "type": "TypeString", + "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", + "computed": true }, { "name": "crn", @@ -149032,18 +148915,20 @@ "cloud_data_type": "crn", "computed": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "computed": true + } + ], + "ibm_sm_kv_secret": [ { "name": "locks_total", "type": "TypeInt", "description": "The number of locks of the secret.", "computed": true }, - { - "name": "secret_id", - "type": "TypeString", - "description": "A v4 UUID identifier.", - "computed": true - }, { "name": "region", "type": "TypeString", @@ -149053,20 +148938,6 @@ "optional": true, "computed": true }, - { - "name": "updated_at", - "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, { "name": "endpoint_type", "type": "TypeString", @@ -149080,25 +148951,28 @@ "computed": true }, { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "name", + "type": "TypeString", + "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", + "required": true }, { - "name": "created_at", + "name": "description", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", - "computed": true + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "optional": true }, { - "name": "state_description", + "name": "crn", "type": "TypeString", - "description": "A text representation of the secret state.", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true }, { @@ -149107,6 +148981,12 @@ "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "computed": true + }, { "name": "versions_total", "type": "TypeInt", @@ -149114,10 +148994,12 @@ "computed": true }, { - "name": "description", + "name": "secret_group_id", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", - "optional": true + "description": "A v4 UUID identifier, or `default` secret group.", + "immutable": true, + "optional": true, + "computed": true }, { "name": "labels", @@ -149136,10 +149018,60 @@ "computed": true }, { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "name": "created_at", + "type": "TypeString", + "description": "The date when a resource was created. The date format follows RFC 3339.", + "computed": true + }, + { + "name": "secret_id", + "type": "TypeString", + "description": "A v4 UUID identifier.", + "computed": true + }, + { + "name": "data", + "type": "TypeMap", + "description": "The payload data of a key-value secret.", + "secure": true, + "required": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "version_custom_metadata", + "type": "TypeMap", + "description": "The secret version metadata that a user can customize.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "state_description", + "type": "TypeString", + "description": "A text representation of the secret state.", "computed": true + }, + { + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true } ], "ibm_sm_private_certificate": [ @@ -149150,6 +149082,13 @@ "immutable": true, "optional": true }, + { + "name": "private_key_format", + "type": "TypeString", + "description": "The format of the generated private key.", + "default_value": "der", + "optional": true + }, { "name": "exclude_cn_from_sans", "type": "TypeBool", @@ -149158,41 +149097,57 @@ "optional": true }, { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", - "computed": true + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { - "name": "serial_number", + "name": "endpoint_type", "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", - "computed": true + "description": "public or private.", + "optional": true }, { - "name": "certificate", + "name": "secret_type", "type": "TypeString", - "description": "The PEM-encoded contents of your certificate.", - "secure": true, + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "created_by", + "name": "description", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", - "computed": true + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "optional": true }, { - "name": "state", + "name": "alt_names", + "type": "TypeList", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", + "immutable": true, + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "versions_total", "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "description": "The number of versions of the secret.", "computed": true }, { - "name": "next_rotation_date", - "type": "TypeString", - "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", - "computed": true + "name": "ca_chain", + "type": "TypeList", + "description": "The chain of certificate authorities that are associated with the certificate.", + "secure": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { "name": "name", @@ -149201,10 +149156,20 @@ "required": true }, { - "name": "description", + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "secret_id", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", - "optional": true + "description": "A v4 UUID identifier.", + "computed": true }, { "name": "certificate_template", @@ -149221,44 +149186,49 @@ "computed": true }, { - "name": "issuer", + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "computed": true + }, + { + "name": "created_at", "type": "TypeString", - "description": "The distinguished name that identifies the entity that signed and issued the certificate.", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "private_key", + "name": "updated_at", "type": "TypeString", - "description": "(Optional) The PEM-encoded private key to associate with the certificate.", - "secure": true, + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "endpoint_type", + "name": "issuing_ca", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The PEM-encoded certificate of the certificate authority that signed and issued this certificate.", + "secure": true, + "computed": true }, { - "name": "secret_id", + "name": "state_description", "type": "TypeString", - "description": "A v4 UUID identifier.", + "description": "A text representation of the secret state.", "computed": true }, { - "name": "secret_group_id", + "name": "expiration_date", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", - "immutable": true, - "optional": true, + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true }, { - "name": "common_name", + "name": "key_algorithm", "type": "TypeString", - "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", + "description": "The identifier for the cryptographic algorithm to be used to generate the public key that is associated with the certificate.The algorithm that you select determines the encryption algorithm (`RSA` or `ECDSA`) and key size to be used to generate keys and sign certificates. For longer living certificates, it is recommended to use longer keys to provide more encryption protection. Allowed values: RSA2048, RSA4096, EC256, EC384.", + "default_value": "RSA2048", "immutable": true, - "required": true + "optional": true }, { "name": "ip_sans", @@ -149268,81 +149238,55 @@ "optional": true }, { - "name": "private_key_format", + "name": "ttl", "type": "TypeString", - "description": "The format of the generated private key.", - "default_value": "der", + "description": "The time-to-live (TTL) or lease duration to assign to generated credentials.For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value can be either an integer that specifies the number of seconds, or the string representation of a duration, such as `120m` or `24h`.Minimum duration is 1 minute. Maximum is 90 days.", + "immutable": true, "optional": true }, { - "name": "rotation", - "type": "TypeList", - "description": "Determines whether Secrets Manager rotates your secrets automatically.", - "optional": true, - "computed": true, - "elem": { - "auto_rotate": { - "name": "auto_rotate", - "type": "TypeBool", - "description": "Determines whether Secrets Manager rotates your secret automatically.Default is `false`. If `auto_rotate` is set to `true` the service rotates your secret based on the defined interval.", - "optional": true, - "computed": true - }, - "interval": { - "name": "interval", - "type": "TypeInt", - "description": "The length of the secret rotation time interval.", - "optional": true, - "computed": true - }, - "unit": { - "name": "unit", - "type": "TypeString", - "description": "The units for the secret rotation time interval.", - "optional": true, - "computed": true - } - }, - "max_items": 1 - }, - { - "name": "custom_metadata", + "name": "version_custom_metadata", "type": "TypeMap", - "description": "The secret metadata that a user can customize.", + "description": "The secret version metadata that a user can customize.", + "immutable": true, "optional": true, - "computed": true, "elem": { "type": "TypeString" } }, { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", - "computed": true - }, - { - "name": "signing_algorithm", - "type": "TypeString", - "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", - "computed": true - }, - { - "name": "revocation_time_seconds", + "name": "locks_total", "type": "TypeInt", - "description": "The timestamp of the certificate revocation.", + "description": "The number of locks of the secret.", "computed": true }, { - "name": "ca_chain", + "name": "validity", "type": "TypeList", - "description": "The chain of certificate authorities that are associated with the certificate.", - "secure": true, + "description": "The date and time that the certificate validity period begins and ends.", "computed": true, "elem": { - "type": "TypeString" + "not_after": { + "name": "not_after", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + }, + "not_before": { + "name": "not_before", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + } } }, + { + "name": "private_key", + "type": "TypeString", + "description": "(Optional) The PEM-encoded private key to associate with the certificate.", + "secure": true, + "computed": true + }, { "name": "other_sans", "type": "TypeList", @@ -149354,159 +149298,156 @@ } }, { - "name": "issuing_ca", + "name": "created_by", "type": "TypeString", - "description": "The PEM-encoded certificate of the certificate authority that signed and issued this certificate.", - "secure": true, + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "secret_type", - "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", "computed": true }, { - "name": "ttl", + "name": "format", "type": "TypeString", - "description": "The time-to-live (TTL) or lease duration to assign to generated credentials.For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value can be either an integer that specifies the number of seconds, or the string representation of a duration, such as `120m` or `24h`.Minimum duration is 1 minute. Maximum is 90 days.", + "description": "The format of the returned data.", "immutable": true, "optional": true }, { - "name": "updated_at", - "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true + "name": "custom_metadata", + "type": "TypeMap", + "description": "The secret metadata that a user can customize.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "expiration_date", + "name": "signing_algorithm", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", + "description": "The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.", "computed": true }, { - "name": "instance_id", + "name": "certificate_authority", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "description": "The intermediate certificate authority that signed this certificate.", + "computed": true }, { - "name": "csr", + "name": "next_rotation_date", "type": "TypeString", - "description": "The certificate signing request.", - "immutable": true, - "optional": true + "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", + "computed": true }, { - "name": "state_description", + "name": "secret_group_id", "type": "TypeString", - "description": "A text representation of the secret state.", + "description": "A v4 UUID identifier, or `default` secret group.", + "immutable": true, + "optional": true, "computed": true }, { - "name": "key_algorithm", + "name": "common_name", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm to be used to generate the public key that is associated with the certificate.The algorithm that you select determines the encryption algorithm (`RSA` or `ECDSA`) and key size to be used to generate keys and sign certificates. For longer living certificates, it is recommended to use longer keys to provide more encryption protection. Allowed values: RSA2048, RSA4096, EC256, EC384.", - "default_value": "RSA2048", + "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", "immutable": true, - "optional": true - }, - { - "name": "validity", - "type": "TypeList", - "description": "The date and time that the certificate validity period begins and ends.", - "computed": true, - "elem": { - "not_after": { - "name": "not_after", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - }, - "not_before": { - "name": "not_before", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - } - } + "required": true }, { - "name": "region", + "name": "csr", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", + "description": "The certificate signing request.", "immutable": true, - "optional": true, - "computed": true + "optional": true }, { - "name": "revocation_time_rfc3339", + "name": "serial_number", "type": "TypeString", - "description": "The date and time that the certificate was revoked. The date format follows RFC 3339.", + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", "computed": true }, { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "revocation_time_seconds", + "type": "TypeInt", + "description": "The timestamp of the certificate revocation.", + "computed": true }, { - "name": "alt_names", - "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", - "immutable": true, - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "certificate", + "type": "TypeString", + "description": "The PEM-encoded contents of your certificate.", + "secure": true, + "computed": true }, { - "name": "format", + "name": "region", "type": "TypeString", - "description": "The format of the returned data.", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", "immutable": true, - "optional": true + "optional": true, + "computed": true }, { - "name": "version_custom_metadata", - "type": "TypeMap", - "description": "The secret version metadata that a user can customize.", - "immutable": true, + "name": "rotation", + "type": "TypeList", + "description": "Determines whether Secrets Manager rotates your secrets automatically.", "optional": true, + "computed": true, "elem": { - "type": "TypeString" - } + "auto_rotate": { + "name": "auto_rotate", + "type": "TypeBool", + "description": "Determines whether Secrets Manager rotates your secret automatically.Default is `false`. If `auto_rotate` is set to `true` the service rotates your secret based on the defined interval.", + "optional": true, + "computed": true + }, + "interval": { + "name": "interval", + "type": "TypeInt", + "description": "The length of the secret rotation time interval.", + "optional": true, + "computed": true + }, + "unit": { + "name": "unit", + "type": "TypeString", + "description": "The units for the secret rotation time interval.", + "optional": true, + "computed": true + } + }, + "max_items": 1 }, { - "name": "created_at", + "name": "issuer", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", + "description": "The distinguished name that identifies the entity that signed and issued the certificate.", "computed": true }, { - "name": "certificate_authority", + "name": "revocation_time_rfc3339", "type": "TypeString", - "description": "The intermediate certificate authority that signed this certificate.", + "description": "The date and time that the certificate was revoked. The date format follows RFC 3339.", "computed": true } ], "ibm_sm_private_certificate_configuration_action_set_signed": [ + { + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, + "computed": true + }, { "name": "endpoint_type", "type": "TypeString", @@ -149535,22 +149476,13 @@ "cloud_data_type": "resource_instance", "immutable": true, "required": true - }, - { - "name": "region", - "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, - "computed": true } ], "ibm_sm_private_certificate_configuration_action_sign_csr": [ { - "name": "alt_names", + "name": "country", "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", + "description": "The Country (C) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "elem": { @@ -149558,9 +149490,9 @@ } }, { - "name": "country", + "name": "locality", "type": "TypeList", - "description": "The Country (C) values to define in the subject field of the resulting certificate.", + "description": "The Locality (L) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "elem": { @@ -149568,58 +149500,32 @@ } }, { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", + "name": "street_address", + "type": "TypeList", + "description": "The street address values to define in the subject field of the resulting certificate.", "immutable": true, - "required": true + "optional": true, + "elem": { + "type": "TypeString" + } }, { - "name": "data", + "name": "postal_code", "type": "TypeList", - "description": "The configuration action data.", - "secure": true, - "computed": true, + "description": "The postal code values to define in the subject field of the resulting certificate.", + "immutable": true, + "optional": true, "elem": { - "ca_chain": { - "name": "ca_chain", - "type": "TypeList", - "description": "The chain of certificate authorities that are associated with the certificate.", - "secure": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "certificate": { - "name": "certificate", - "type": "TypeString", - "description": "The PEM-encoded contents of your certificate.", - "secure": true, - "computed": true - }, - "expiration": { - "name": "expiration", - "type": "TypeInt", - "description": "The certificate expiration time.", - "computed": true - }, - "issuing_ca": { - "name": "issuing_ca", - "type": "TypeString", - "description": "The PEM-encoded certificate of the certificate authority that signed and issued this certificate.", - "secure": true, - "computed": true - } + "type": "TypeString" } }, { - "name": "name", + "name": "serial_number", "type": "TypeString", - "description": "The name that uniquely identifies a configuration", + "description": "The serial number to assign to the generated certificate. To assign a random serial number, you can omit this field.", "immutable": true, - "required": true + "optional": true, + "computed": true }, { "name": "common_name", @@ -149629,16 +149535,16 @@ "optional": true }, { - "name": "ip_sans", + "name": "uri_sans", "type": "TypeString", - "description": "The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "description": "The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", "immutable": true, "optional": true }, { - "name": "format", + "name": "ttl", "type": "TypeString", - "description": "The format of the returned data.", + "description": "The requested time-to-live (TTL) for certificates that are created by this CA. This field's value cannot be longer than the `max_ttl` limit.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).", "immutable": true, "optional": true, "computed": true @@ -149652,65 +149558,63 @@ "optional": true }, { - "name": "locality", - "type": "TypeList", - "description": "The Locality (L) values to define in the subject field of the resulting certificate.", - "immutable": true, - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "province", - "type": "TypeList", - "description": "The Province (ST) values to define in the subject field of the resulting certificate.", - "immutable": true, - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "postal_code", - "type": "TypeList", - "description": "The postal code values to define in the subject field of the resulting certificate.", + "name": "use_csr_values", + "type": "TypeBool", + "description": "Determines whether to use values from a certificate signing request (CSR) to complete a `private_cert_configuration_action_sign_csr` action.", "immutable": true, - "optional": true, - "elem": { - "type": "TypeString" - } + "optional": true }, { - "name": "other_sans", + "name": "data", "type": "TypeList", - "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The alternative names must match the values that are specified in the `allowed_other_sans` field in the associated certificate template. The format is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`.", - "immutable": true, - "optional": true, + "description": "The configuration action data.", + "secure": true, + "computed": true, "elem": { - "type": "TypeString" + "ca_chain": { + "name": "ca_chain", + "type": "TypeList", + "description": "The chain of certificate authorities that are associated with the certificate.", + "secure": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "certificate": { + "name": "certificate", + "type": "TypeString", + "description": "The PEM-encoded contents of your certificate.", + "secure": true, + "computed": true + }, + "expiration": { + "name": "expiration", + "type": "TypeInt", + "description": "The certificate expiration time.", + "computed": true + }, + "issuing_ca": { + "name": "issuing_ca", + "type": "TypeString", + "description": "The PEM-encoded certificate of the certificate authority that signed and issued this certificate.", + "secure": true, + "computed": true + } } }, { - "name": "ttl", + "name": "format", "type": "TypeString", - "description": "The requested time-to-live (TTL) for certificates that are created by this CA. This field's value cannot be longer than the `max_ttl` limit.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "max_path_length", - "type": "TypeInt", - "description": "The maximum path length to encode in the generated certificate. `-1` means no limit.If the signing certificate has a maximum path length set, the path length is set to one less than that of the signing certificate. A limit of `0` means a literal path length of zero.", + "description": "The format of the returned data.", "immutable": true, "optional": true, "computed": true }, { - "name": "permitted_dns_domains", + "name": "ou", "type": "TypeList", - "description": "The allowed DNS domains or subdomains for the certificates that are to be signed and issued by this CA certificate.", + "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "elem": { @@ -149718,9 +149622,9 @@ } }, { - "name": "ou", + "name": "organization", "type": "TypeList", - "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", + "description": "The Organization (O) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "elem": { @@ -149728,18 +149632,12 @@ } }, { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, - { - "name": "serial_number", + "name": "instance_id", "type": "TypeString", - "description": "The serial number to assign to the generated certificate. To assign a random serial number, you can omit this field.", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", "immutable": true, - "optional": true, - "computed": true + "required": true }, { "name": "region", @@ -149751,110 +149649,36 @@ "computed": true }, { - "name": "csr", - "type": "TypeString", - "description": "The certificate signing request.", - "secure": true, - "immutable": true, - "required": true - }, - { - "name": "uri_sans", - "type": "TypeString", - "description": "The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", - "immutable": true, - "optional": true - }, - { - "name": "use_csr_values", - "type": "TypeBool", - "description": "Determines whether to use values from a certificate signing request (CSR) to complete a `private_cert_configuration_action_sign_csr` action.", - "immutable": true, - "optional": true - }, - { - "name": "organization", - "type": "TypeList", - "description": "The Organization (O) values to define in the subject field of the resulting certificate.", - "immutable": true, - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "street_address", - "type": "TypeList", - "description": "The street address values to define in the subject field of the resulting certificate.", - "immutable": true, - "optional": true, - "elem": { - "type": "TypeString" - } - } - ], - "ibm_sm_private_certificate_configuration_intermediate_ca": [ - { - "name": "private_key_format", + "name": "endpoint_type", "type": "TypeString", - "description": "The format of the generated private key.", - "default_value": "der", - "immutable": true, + "description": "public or private.", "optional": true }, { - "name": "key_type", - "type": "TypeString", - "description": "The type of private key to generate.", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "postal_code", + "name": "province", "type": "TypeList", - "description": "The postal code values to define in the subject field of the resulting certificate.", + "description": "The Province (ST) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, - "computed": true, "elem": { "type": "TypeString" } }, { - "name": "signing_method", + "name": "name", "type": "TypeString", - "description": "The signing method to use with this certificate authority to generate private certificates.You can choose between internal or externally signed options. For more information, see the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-intermediate-certificate-authorities).", + "description": "The name that uniquely identifies a configuration", "immutable": true, "required": true }, { - "name": "max_path_length", - "type": "TypeInt", - "description": "The maximum path length to encode in the generated certificate. `-1` means no limit.", - "immutable": true, - "optional": true - }, - { - "name": "max_ttl_seconds", - "type": "TypeInt", - "description": "The maximum time-to-live (TTL) for certificates that are created by this CA.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).Minimum value is one hour (`1h`). Maximum value is 100 years (`876000h`).", - "computed": true - }, - { - "name": "common_name", + "name": "csr", "type": "TypeString", - "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", + "description": "The certificate signing request.", + "secure": true, "immutable": true, "required": true }, - { - "name": "crl_disable", - "type": "TypeBool", - "description": "Disables or enables certificate revocation list (CRL) building.If CRL building is disabled, a signed but zero-length CRL is returned when downloading the CRL. If CRL building is enabled, it will rebuild the CRL.", - "default_value": false, - "optional": true - }, { "name": "alt_names", "type": "TypeList", @@ -149873,63 +149697,21 @@ "optional": true }, { - "name": "ttl", - "type": "TypeString", - "description": "Specifies the requested Time To Live (after which the certificate will be expired). The value can be provided provided as a string duration with time suffix (e.g. '24h') or the number of seconds as string (e.g. '86400').", - "optional": true - }, - { - "name": "name", - "type": "TypeString", - "description": "A human-readable unique name to assign to your configuration.To protect your privacy, do not use personal data, such as your name or location, as an name for your secret.", - "immutable": true, - "required": true - }, - { - "name": "max_ttl", - "type": "TypeString", - "description": "The maximum time-to-live (TTL) for certificates that are created by this CA.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).Minimum value is one hour (`1h`). Maximum value is 100 years (`876000h`).", - "required": true - }, - { - "name": "province", + "name": "other_sans", "type": "TypeList", - "description": "The Province (ST) values to define in the subject field of the resulting certificate.", + "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The alternative names must match the values that are specified in the `allowed_other_sans` field in the associated certificate template. The format is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`.", "immutable": true, "optional": true, - "computed": true, "elem": { "type": "TypeString" } }, { - "name": "expiration_date", - "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "crl_distribution_points_encoded", - "type": "TypeBool", - "description": "Determines whether to encode the certificate revocation list (CRL) distribution points in the certificates that are issued by this certificate authority.", - "default_value": false, - "optional": true - }, - { - "name": "country", - "type": "TypeList", - "description": "The Country (C) values to define in the subject field of the resulting certificate.", + "name": "max_path_length", + "type": "TypeInt", + "description": "The maximum path length to encode in the generated certificate. `-1` means no limit.If the signing certificate has a maximum path length set, the path length is set to one less than that of the signing certificate. A limit of `0` means a literal path length of zero.", "immutable": true, "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "status", - "type": "TypeString", - "description": "The status of the certificate authority. The status of a root certificate authority is either `configured` or `expired`. For intermediate certificate authorities, possible statuses include `signing_required`,`signed_certificate_required`, `certificate_template_required`, `configured`, `expired` or `revoked`.", "computed": true }, { @@ -149941,65 +149723,46 @@ "elem": { "type": "TypeString" } - }, - { - "name": "format", - "type": "TypeString", - "description": "The format of the returned data.", - "immutable": true, - "optional": true, - "computed": true - }, - { - "name": "key_bits", - "type": "TypeInt", - "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", - "immutable": true, - "optional": true, - "computed": true - }, + } + ], + "ibm_sm_private_certificate_configuration_intermediate_ca": [ { - "name": "street_address", - "type": "TypeList", - "description": "The street address values to define in the subject field of the resulting certificate.", - "immutable": true, - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "crl_distribution_points_encoded", + "type": "TypeBool", + "description": "Determines whether to encode the certificate revocation list (CRL) distribution points in the certificates that are issued by this certificate authority.", + "default_value": false, + "optional": true }, { - "name": "region", + "name": "private_key_format", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", + "description": "The format of the generated private key.", + "default_value": "der", "immutable": true, - "optional": true, - "computed": true + "optional": true }, { - "name": "config_type", + "name": "signing_method", "type": "TypeString", - "description": "The configuration type.", - "computed": true + "description": "The signing method to use with this certificate authority to generate private certificates.You can choose between internal or externally signed options. For more information, see the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-intermediate-certificate-authorities).", + "immutable": true, + "required": true }, { - "name": "other_sans", + "name": "permitted_dns_domains", "type": "TypeList", - "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The alternative names must match the values that are specified in the `allowed_other_sans` field in the associated certificate template. The format is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`.", + "description": "The allowed DNS domains or subdomains for the certificates that are to be signed and issued by this CA certificate.", "immutable": true, "optional": true, - "computed": true, "elem": { "type": "TypeString" } }, { - "name": "serial_number", + "name": "endpoint_type", "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", - "computed": true + "description": "public or private.", + "optional": true }, { "name": "issuer", @@ -150067,17 +149830,10 @@ } }, { - "name": "use_csr_values", - "type": "TypeBool", - "description": "Determines whether to use values from a certificate signing request (CSR) to complete a `private_cert_configuration_action_sign_csr` action.", - "immutable": true, - "optional": true - }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true + "name": "max_ttl_seconds", + "type": "TypeInt", + "description": "The maximum time-to-live (TTL) for certificates that are created by this CA.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).Minimum value is one hour (`1h`). Maximum value is 100 years (`876000h`).", + "computed": true }, { "name": "crl_expiry", @@ -150086,35 +149842,6 @@ "optional": true, "computed": true }, - { - "name": "uri_sans", - "type": "TypeString", - "description": "The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", - "immutable": true, - "optional": true - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "crl_expiry_seconds", - "type": "TypeInt", - "description": "The time until the certificate revocation list (CRL) expires.The value can be supplied as a string representation of a duration in hours, such as `48h`. The default is 72 hours. In the API response, this value is returned in seconds (integer).**Note:** The CRL is rotated automatically before it expires.", - "computed": true - }, - { - "name": "exclude_cn_from_sans", - "type": "TypeBool", - "description": "Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to `true`, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address.", - "default_value": false, - "immutable": true, - "optional": true - }, { "name": "ou", "type": "TypeList", @@ -150127,9 +149854,9 @@ } }, { - "name": "organization", + "name": "postal_code", "type": "TypeList", - "description": "The Organization (O) values to define in the subject field of the resulting certificate.", + "description": "The postal code values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "computed": true, @@ -150138,9 +149865,23 @@ } }, { - "name": "locality", + "name": "serial_number", + "type": "TypeString", + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", + "computed": true + }, + { + "name": "key_type", + "type": "TypeString", + "description": "The type of private key to generate.", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "province", "type": "TypeList", - "description": "The Locality (L) values to define in the subject field of the resulting certificate.", + "description": "The Province (ST) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "computed": true, @@ -150149,10 +149890,17 @@ } }, { - "name": "secret_type", + "name": "name", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", - "computed": true + "description": "A human-readable unique name to assign to your configuration.To protect your privacy, do not use personal data, such as your name or location, as an name for your secret.", + "immutable": true, + "required": true + }, + { + "name": "max_ttl", + "type": "TypeString", + "description": "The maximum time-to-live (TTL) for certificates that are created by this CA.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).Minimum value is one hour (`1h`). Maximum value is 100 years (`876000h`).", + "required": true }, { "name": "issuing_certificates_urls_encoded", @@ -150160,122 +149908,96 @@ "description": "Determines whether to encode the URL of the issuing certificate in the certificates that are issued by this certificate authority.", "default_value": false, "optional": true - } - ], - "ibm_sm_private_certificate_configuration_root_ca": [ + }, { - "name": "ttl_seconds", - "type": "TypeInt", - "description": "The requested time-to-live (TTL) for certificates that are created by this CA. This field's value cannot be longer than the `max_ttl` limit.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).", + "name": "other_sans", + "type": "TypeList", + "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The alternative names must match the values that are specified in the `allowed_other_sans` field in the associated certificate template. The format is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`.", + "immutable": true, + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "format", + "type": "TypeString", + "description": "The format of the returned data.", + "immutable": true, + "optional": true, "computed": true }, { - "name": "max_ttl_seconds", + "name": "secret_type", + "type": "TypeString", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "computed": true + }, + { + "name": "crl_expiry_seconds", "type": "TypeInt", - "description": "The maximum time-to-live (TTL) for certificates that are created by this CA in seconds.", + "description": "The time until the certificate revocation list (CRL) expires.The value can be supplied as a string representation of a duration in hours, such as `48h`. The default is 72 hours. In the API response, this value is returned in seconds (integer).**Note:** The CRL is rotated automatically before it expires.", "computed": true }, { - "name": "data", + "name": "street_address", "type": "TypeList", - "description": "The configuration data of your Private Certificate.", - "secure": true, + "description": "The street address values to define in the subject field of the resulting certificate.", + "immutable": true, + "optional": true, "computed": true, "elem": { - "ca_chain": { - "name": "ca_chain", - "type": "TypeList", - "description": "The chain of certificate authorities that are associated with the certificate.", - "secure": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - "certificate": { - "name": "certificate", - "type": "TypeString", - "description": "The PEM-encoded contents of your certificate.", - "secure": true, - "computed": true - }, - "csr": { - "name": "csr", - "type": "TypeString", - "description": "The certificate signing request.", - "computed": true - }, - "expiration": { - "name": "expiration", - "type": "TypeInt", - "description": "The certificate expiration time.", - "computed": true - }, - "issuing_ca": { - "name": "issuing_ca", - "type": "TypeString", - "description": "The PEM-encoded certificate of the certificate authority that signed and issued this certificate.", - "secure": true, - "computed": true - }, - "private_key": { - "name": "private_key", - "type": "TypeString", - "description": "(Optional) The PEM-encoded private key to associate with the certificate.", - "secure": true, - "computed": true - }, - "private_key_type": { - "name": "private_key_type", - "type": "TypeString", - "description": "The type of private key to generate.", - "computed": true - } + "type": "TypeString" } }, { - "name": "region", + "name": "ttl", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, - "computed": true + "description": "Specifies the requested Time To Live (after which the certificate will be expired). The value can be provided provided as a string duration with time suffix (e.g. '24h') or the number of seconds as string (e.g. '86400').", + "optional": true }, { - "name": "endpoint_type", + "name": "common_name", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", + "immutable": true, + "required": true }, { - "name": "crl_expiry", + "name": "instance_id", "type": "TypeString", - "description": "The time until the certificate revocation list (CRL) expires.The value can be supplied as a string representation of a duration in hours, such as `48h`. The default is 72 hours. In the API response, this value is returned in seconds (integer).**Note:** The CRL is rotated automatically before it expires.", - "optional": true, - "computed": true + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { - "name": "alt_names", + "name": "organization", "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", + "description": "The Organization (O) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, + "computed": true, "elem": { "type": "TypeString" } }, { - "name": "ip_sans", - "type": "TypeString", - "description": "The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "name": "country", + "type": "TypeList", + "description": "The Country (C) values to define in the subject field of the resulting certificate.", "immutable": true, - "optional": true + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "street_address", + "name": "locality", "type": "TypeList", - "description": "The street address values to define in the subject field of the resulting certificate.", + "description": "The Locality (L) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "computed": true, @@ -150284,64 +150006,95 @@ } }, { - "name": "created_by", + "name": "expiration_date", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true }, { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", + "name": "max_path_length", + "type": "TypeInt", + "description": "The maximum path length to encode in the generated certificate. `-1` means no limit.", "immutable": true, - "required": true + "optional": true }, { - "name": "issuing_certificates_urls_encoded", + "name": "key_bits", + "type": "TypeInt", + "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "exclude_cn_from_sans", "type": "TypeBool", - "description": "Determines whether to encode the URL of the issuing certificate in the certificates that are issued by this certificate authority.", + "description": "Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to `true`, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address.", "default_value": false, + "immutable": true, "optional": true }, { - "name": "expiration_date", + "name": "status", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", + "description": "The status of the certificate authority. The status of a root certificate authority is either `configured` or `expired`. For intermediate certificate authorities, possible statuses include `signing_required`,`signed_certificate_required`, `certificate_template_required`, `configured`, `expired` or `revoked`.", "computed": true }, { - "name": "format", + "name": "config_type", "type": "TypeString", - "description": "The format of the returned data.", - "immutable": true, - "optional": true, + "description": "The configuration type.", "computed": true }, { - "name": "organization", + "name": "crl_disable", + "type": "TypeBool", + "description": "Disables or enables certificate revocation list (CRL) building.If CRL building is disabled, a signed but zero-length CRL is returned when downloading the CRL. If CRL building is enabled, it will rebuild the CRL.", + "default_value": false, + "optional": true + }, + { + "name": "alt_names", "type": "TypeList", - "description": "The Organization (O) values to define in the subject field of the resulting certificate.", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", "immutable": true, "optional": true, - "computed": true, "elem": { "type": "TypeString" } }, { - "name": "name", + "name": "ip_sans", "type": "TypeString", - "description": "A human-readable unique name to assign to your configuration.To protect your privacy, do not use personal data, such as your name or location, as an name for your secret.", + "description": "The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", "immutable": true, - "required": true + "optional": true }, { - "name": "max_ttl", + "name": "uri_sans", "type": "TypeString", - "description": "The maximum time-to-live (TTL) for certificates that are created by this CA.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).Minimum value is one hour (`1h`). Maximum value is 100 years (`876000h`).", - "required": true + "description": "The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "immutable": true, + "optional": true + }, + { + "name": "use_csr_values", + "type": "TypeBool", + "description": "Determines whether to use values from a certificate signing request (CSR) to complete a `private_cert_configuration_action_sign_csr` action.", + "immutable": true, + "optional": true }, + { + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, + "computed": true + } + ], + "ibm_sm_private_certificate_configuration_root_ca": [ { "name": "crl_disable", "type": "TypeBool", @@ -150357,23 +150110,36 @@ "optional": true }, { - "name": "uri_sans", + "name": "ttl_seconds", + "type": "TypeInt", + "description": "The requested time-to-live (TTL) for certificates that are created by this CA. This field's value cannot be longer than the `max_ttl` limit.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).", + "computed": true + }, + { + "name": "private_key_format", "type": "TypeString", - "description": "The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "description": "The format of the generated private key.", + "default_value": "der", "immutable": true, "optional": true }, { - "name": "ttl", + "name": "endpoint_type", "type": "TypeString", - "description": "The requested time-to-live (TTL) for certificates that are created by this CA. This field's value cannot be longer than the `max_ttl` limit.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).", - "optional": true, - "computed": true + "description": "public or private.", + "optional": true }, { - "name": "locality", + "name": "issuing_certificates_urls_encoded", + "type": "TypeBool", + "description": "Determines whether to encode the URL of the issuing certificate in the certificates that are issued by this certificate authority.", + "default_value": false, + "optional": true + }, + { + "name": "permitted_dns_domains", "type": "TypeList", - "description": "The Locality (L) values to define in the subject field of the resulting certificate.", + "description": "The allowed DNS domains or subdomains for the certificates that are to be signed and issued by this CA certificate.", "immutable": true, "optional": true, "computed": true, @@ -150382,9 +150148,9 @@ } }, { - "name": "other_sans", + "name": "country", "type": "TypeList", - "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The alternative names must match the values that are specified in the `allowed_other_sans` field in the associated certificate template. The format is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`.", + "description": "The Country (C) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "computed": true, @@ -150393,37 +150159,36 @@ } }, { - "name": "key_bits", - "type": "TypeInt", - "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", + "name": "postal_code", + "type": "TypeList", + "description": "The postal code values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, - "computed": true - }, - { - "name": "serial_number", - "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "updated_at", + "name": "config_type", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "The configuration type.", "computed": true }, { - "name": "config_type", + "name": "ip_sans", "type": "TypeString", - "description": "The configuration type.", - "computed": true + "description": "The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "immutable": true, + "optional": true }, { - "name": "common_name", + "name": "format", "type": "TypeString", - "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", + "description": "The format of the returned data.", "immutable": true, - "required": true + "optional": true, + "computed": true }, { "name": "max_path_length", @@ -150442,20 +150207,37 @@ "optional": true }, { - "name": "ou", + "name": "secret_type", + "type": "TypeString", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "The status of the certificate authority. The status of a root certificate authority is either `configured` or `expired`. For intermediate certificate authorities, possible statuses include `signing_required`,`signed_certificate_required`, `certificate_template_required`, `configured`, `expired` or `revoked`.", + "computed": true + }, + { + "name": "alt_names", "type": "TypeList", - "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", "immutable": true, "optional": true, - "computed": true, "elem": { "type": "TypeString" } }, { - "name": "province", + "name": "locality", "type": "TypeList", - "description": "The Province (ST) values to define in the subject field of the resulting certificate.", + "description": "The Locality (L) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "computed": true, @@ -150463,6 +150245,67 @@ "type": "TypeString" } }, + { + "name": "crl_expiry_seconds", + "type": "TypeInt", + "description": "The time until the certificate revocation list (CRL) expires, in seconds.", + "computed": true + }, + { + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "uri_sans", + "type": "TypeString", + "description": "The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.", + "immutable": true, + "optional": true + }, + { + "name": "key_bits", + "type": "TypeInt", + "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "serial_number", + "type": "TypeString", + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", + "computed": true + }, + { + "name": "created_at", + "type": "TypeString", + "description": "The date when a resource was created. The date format follows RFC 3339.", + "computed": true + }, + { + "name": "expiration_date", + "type": "TypeString", + "description": "The date a secret is expired. The date format follows RFC 3339.", + "computed": true + }, + { + "name": "max_ttl", + "type": "TypeString", + "description": "The maximum time-to-live (TTL) for certificates that are created by this CA.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).Minimum value is one hour (`1h`). Maximum value is 100 years (`876000h`).", + "required": true + }, + { + "name": "common_name", + "type": "TypeString", + "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", + "immutable": true, + "required": true + }, { "name": "key_type", "type": "TypeString", @@ -150472,9 +150315,24 @@ "computed": true }, { - "name": "permitted_dns_domains", + "name": "instance_id", + "type": "TypeString", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, + { + "name": "name", + "type": "TypeString", + "description": "A human-readable unique name to assign to your configuration.To protect your privacy, do not use personal data, such as your name or location, as an name for your secret.", + "immutable": true, + "required": true + }, + { + "name": "other_sans", "type": "TypeList", - "description": "The allowed DNS domains or subdomains for the certificates that are to be signed and issued by this CA certificate.", + "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The alternative names must match the values that are specified in the `allowed_other_sans` field in the associated certificate template. The format is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`.", "immutable": true, "optional": true, "computed": true, @@ -150483,9 +150341,9 @@ } }, { - "name": "country", + "name": "ou", "type": "TypeList", - "description": "The Country (C) values to define in the subject field of the resulting certificate.", + "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "computed": true, @@ -150494,9 +150352,9 @@ } }, { - "name": "postal_code", + "name": "street_address", "type": "TypeList", - "description": "The postal code values to define in the subject field of the resulting certificate.", + "description": "The street address values to define in the subject field of the resulting certificate.", "immutable": true, "optional": true, "computed": true, @@ -150505,68 +150363,123 @@ } }, { - "name": "secret_type", - "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "name": "max_ttl_seconds", + "type": "TypeInt", + "description": "The maximum time-to-live (TTL) for certificates that are created by this CA in seconds.", "computed": true }, { - "name": "private_key_format", - "type": "TypeString", - "description": "The format of the generated private key.", - "default_value": "der", - "immutable": true, - "optional": true + "name": "data", + "type": "TypeList", + "description": "The configuration data of your Private Certificate.", + "secure": true, + "computed": true, + "elem": { + "ca_chain": { + "name": "ca_chain", + "type": "TypeList", + "description": "The chain of certificate authorities that are associated with the certificate.", + "secure": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + "certificate": { + "name": "certificate", + "type": "TypeString", + "description": "The PEM-encoded contents of your certificate.", + "secure": true, + "computed": true + }, + "csr": { + "name": "csr", + "type": "TypeString", + "description": "The certificate signing request.", + "computed": true + }, + "expiration": { + "name": "expiration", + "type": "TypeInt", + "description": "The certificate expiration time.", + "computed": true + }, + "issuing_ca": { + "name": "issuing_ca", + "type": "TypeString", + "description": "The PEM-encoded certificate of the certificate authority that signed and issued this certificate.", + "secure": true, + "computed": true + }, + "private_key": { + "name": "private_key", + "type": "TypeString", + "description": "(Optional) The PEM-encoded private key to associate with the certificate.", + "secure": true, + "computed": true + }, + "private_key_type": { + "name": "private_key_type", + "type": "TypeString", + "description": "The type of private key to generate.", + "computed": true + } + } }, { - "name": "created_at", + "name": "crl_expiry", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The time until the certificate revocation list (CRL) expires.The value can be supplied as a string representation of a duration in hours, such as `48h`. The default is 72 hours. In the API response, this value is returned in seconds (integer).**Note:** The CRL is rotated automatically before it expires.", + "optional": true, "computed": true }, { - "name": "crl_expiry_seconds", - "type": "TypeInt", - "description": "The time until the certificate revocation list (CRL) expires, in seconds.", + "name": "ttl", + "type": "TypeString", + "description": "The requested time-to-live (TTL) for certificates that are created by this CA. This field's value cannot be longer than the `max_ttl` limit.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).", + "optional": true, "computed": true }, { - "name": "status", + "name": "organization", + "type": "TypeList", + "description": "The Organization (O) values to define in the subject field of the resulting certificate.", + "immutable": true, + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "province", + "type": "TypeList", + "description": "The Province (ST) values to define in the subject field of the resulting certificate.", + "immutable": true, + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "created_by", "type": "TypeString", - "description": "The status of the certificate authority. The status of a root certificate authority is either `configured` or `expired`. For intermediate certificate authorities, possible statuses include `signing_required`,`signed_certificate_required`, `certificate_template_required`, `configured`, `expired` or `revoked`.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true } ], "ibm_sm_private_certificate_configuration_template": [ { - "name": "ttl", + "name": "created_by", "type": "TypeString", - "description": "The requested time-to-live (TTL) for certificates that are created by this CA. This field's value cannot be longer than the `max_ttl` limit.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).", - "optional": true - }, - { - "name": "enforce_hostnames", - "type": "TypeBool", - "description": "Determines whether to enforce only valid host names for common names, DNS Subject Alternative Names, and the host section of email addresses.", - "optional": true, - "computed": true - }, - { - "name": "ttl_seconds", - "type": "TypeInt", - "description": "The requested Time To Live, after which the certificate will be expired.", - "computed": true - }, - { - "name": "not_before_duration_seconds", - "type": "TypeInt", - "description": "The duration in seconds by which to backdate the `not_before` property of an issued private certificate.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "max_ttl", + "name": "endpoint_type", "type": "TypeString", - "description": "The maximum time-to-live (TTL) for certificates that are created by this CA.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).Minimum value is one hour (`1h`). Maximum value is 100 years (`876000h`).", + "description": "public or private.", "optional": true }, { @@ -150585,6 +150498,13 @@ "description": "The name of the intermediate certificate authority.", "required": true }, + { + "name": "allow_bare_domains", + "type": "TypeBool", + "description": "Determines whether to allow clients to request private certificates that match the value of the actual domains on the final certificate.For example, if you specify `example.com` in the `allowed_domains` field, you grant clients the ability to request a certificate that contains the name `example.com` as one of the DNS values on the final certificate.**Important:** In some scenarios, allowing bare domains can be considered a security risk.", + "optional": true, + "computed": true + }, { "name": "allow_glob_domains", "type": "TypeBool", @@ -150592,6 +150512,13 @@ "optional": true, "computed": true }, + { + "name": "client_flag", + "type": "TypeBool", + "description": "Determines whether private certificates are flagged for client use.", + "optional": true, + "computed": true + }, { "name": "policy_identifiers", "type": "TypeList", @@ -150603,42 +150530,42 @@ } }, { - "name": "ext_key_usage_oids", - "type": "TypeList", - "description": "A list of extended key usage Object Identifiers (OIDs).", + "name": "allow_subdomains", + "type": "TypeBool", + "description": "Determines whether to allow clients to request private certificates with common names (CN) that are subdomains of the CNs that are allowed by the other certificate template options. This includes wildcard subdomains.For example, if `allowed_domains` has a value of `example.com` and `allow_subdomains`is set to `true`, then the following subdomains are allowed: `foo.example.com`, `bar.example.com`, `*.example.com`.**Note:** This field is redundant if you use the `allow_any_name` option.", "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "computed": true }, { - "name": "use_csr_common_name", + "name": "code_signing_flag", "type": "TypeBool", - "description": "When used with the `private_cert_configuration_action_sign_csr` action, this field determines whether to use the common name (CN) from a certificate signing request (CSR) instead of the CN that's included in the data of the certificate.Does not include any requested Subject Alternative Names (SANs) in the CSR. To use the alternative names, include the `use_csr_sans` property.", + "description": "Determines whether private certificates are flagged for code signing use.", "optional": true, "computed": true }, { - "name": "created_at", + "name": "config_type", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The configuration type.", "computed": true }, { - "name": "ou", - "type": "TypeList", - "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", + "name": "ttl", + "type": "TypeString", + "description": "The requested time-to-live (TTL) for certificates that are created by this CA. This field's value cannot be longer than the `max_ttl` limit.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).", + "optional": true + }, + { + "name": "key_type", + "type": "TypeString", + "description": "The type of private key to generate.", "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "computed": true }, { - "name": "organization", + "name": "locality", "type": "TypeList", - "description": "The Organization (O) values to define in the subject field of the resulting certificate.", + "description": "The Locality (L) values to define in the subject field of the resulting certificate.", "optional": true, "computed": true, "elem": { @@ -150656,44 +150583,35 @@ } }, { - "name": "serial_number", + "name": "allowed_secret_groups", "type": "TypeString", - "description": "Unused field.", - "optional": true, - "computed": true, - "deprecated": "This field is deprecated." - }, - { - "name": "allow_wildcard_certificates", - "type": "TypeBool", - "description": "Determines whether the issuance of certificates with RFC 6125 wildcards in the CN field.When set to false, this field prevents wildcards from being issued even if they can be allowed by an option `allow_glob_domains`.", + "description": "Scopes the creation of private certificates to only the secret groups that you specify.This field can be supplied as a comma-delimited list of secret group IDs.", "optional": true, "computed": true }, { - "name": "updated_at", + "name": "not_before_duration", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true + "description": "The duration in seconds by which to backdate the `not_before` property of an issued private certificate.The value can be supplied as a string representation of a duration, such as `30s`. In the API response, this value is returned in seconds (integer).", + "optional": true }, { - "name": "allowed_domains_template", - "type": "TypeBool", - "description": "Determines whether to allow the domains that are supplied in the `allowed_domains` field to contain access control list (ACL) templates.", - "optional": true, + "name": "max_ttl_seconds", + "type": "TypeInt", + "description": "The maximum time-to-live (TTL) for certificates that are created by this CA in seconds.", "computed": true }, { - "name": "allow_any_name", - "type": "TypeBool", - "description": "Determines whether to allow clients to request a private certificate that matches any common name.", + "name": "key_bits", + "type": "TypeInt", + "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", "optional": true, "computed": true }, { - "name": "allowed_uri_sans", + "name": "postal_code", "type": "TypeList", - "description": "The URI Subject Alternative Names to allow for private certificates.Values can contain glob patterns, for example `spiffe://hostname/_*`.", + "description": "The postal code values to define in the subject field of the resulting certificate.", "optional": true, "computed": true, "elem": { @@ -150701,11 +150619,9 @@ } }, { - "name": "region", - "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, + "name": "allow_ip_sans", + "type": "TypeBool", + "description": "Determines whether to allow clients to request a private certificate with IP Subject Alternative Names.", "optional": true, "computed": true }, @@ -150717,44 +150633,38 @@ "computed": true }, { - "name": "not_before_duration", - "type": "TypeString", - "description": "The duration in seconds by which to backdate the `not_before` property of an issued private certificate.The value can be supplied as a string representation of a duration, such as `30s`. In the API response, this value is returned in seconds (integer).", - "optional": true + "name": "allowed_domains", + "type": "TypeList", + "description": "The domains to define for the certificate template. This property is used along with the `allow_bare_domains` and `allow_subdomains` options.", + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "instance_id", + "name": "secret_type", "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "allow_localhost", - "type": "TypeBool", - "description": "Determines whether to allow `localhost` to be included as one of the requested common names.", - "optional": true, + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "allow_bare_domains", - "type": "TypeBool", - "description": "Determines whether to allow clients to request private certificates that match the value of the actual domains on the final certificate.For example, if you specify `example.com` in the `allowed_domains` field, you grant clients the ability to request a certificate that contains the name `example.com` as one of the DNS values on the final certificate.**Important:** In some scenarios, allowing bare domains can be considered a security risk.", - "optional": true, + "name": "created_at", + "type": "TypeString", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "client_flag", + "name": "allow_wildcard_certificates", "type": "TypeBool", - "description": "Determines whether private certificates are flagged for client use.", + "description": "Determines whether the issuance of certificates with RFC 6125 wildcards in the CN field.When set to false, this field prevents wildcards from being issued even if they can be allowed by an option `allow_glob_domains`.", "optional": true, "computed": true }, { - "name": "ext_key_usage", + "name": "allowed_uri_sans", "type": "TypeList", - "description": "The allowed extended key usage constraint on private certificates.You can find valid values in the [Go x509 package documentation](https://golang.org/pkg/crypto/x509/#ExtKeyUsage). Omit the `ExtKeyUsage` part of the value. Values are not case-sensitive. To specify no key usage constraints, set this field to an empty list.", + "description": "The URI Subject Alternative Names to allow for private certificates.Values can contain glob patterns, for example `spiffe://hostname/_*`.", "optional": true, "computed": true, "elem": { @@ -150762,23 +150672,9 @@ } }, { - "name": "use_csr_sans", - "type": "TypeBool", - "description": "When used with the `private_cert_configuration_action_sign_csr` action, this field determines whether to use the Subject Alternative Names(SANs) from a certificate signing request (CSR) instead of the SANs that are included in the data of the certificate.Does not include the common name in the CSR. To use the common name, include the `use_csr_common_name` property.", - "optional": true, - "computed": true - }, - { - "name": "allow_subdomains", - "type": "TypeBool", - "description": "Determines whether to allow clients to request private certificates with common names (CN) that are subdomains of the CNs that are allowed by the other certificate template options. This includes wildcard subdomains.For example, if `allowed_domains` has a value of `example.com` and `allow_subdomains`is set to `true`, then the following subdomains are allowed: `foo.example.com`, `bar.example.com`, `*.example.com`.**Note:** This field is redundant if you use the `allow_any_name` option.", - "optional": true, - "computed": true - }, - { - "name": "key_usage", + "name": "allowed_other_sans", "type": "TypeList", - "description": "The allowed key usage constraint to define for private certificates.You can find valid values in the [Go x509 package documentation](https://pkg.go.dev/crypto/x509#KeyUsage). Omit the `KeyUsage` part of the value. Values are not case-sensitive. To specify no key usage constraints, set this field to an empty list.", + "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names (SANs) to allow for private certificates.The format for each element in the list is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`. To allow any value for an OID, use `*` as its value. Alternatively, specify a single `*` to allow any `other_sans` input.", "optional": true, "computed": true, "elem": { @@ -150786,51 +150682,54 @@ } }, { - "name": "basic_constraints_valid_for_non_ca", - "type": "TypeBool", - "description": "Determines whether to mark the Basic Constraints extension of an issued private certificate as valid for non-CA certificates.", + "name": "ext_key_usage_oids", + "type": "TypeList", + "description": "A list of extended key usage Object Identifiers (OIDs).", "optional": true, - "computed": true + "computed": true, + "elem": { + "type": "TypeString" + } }, { - "name": "allow_ip_sans", + "name": "use_csr_common_name", "type": "TypeBool", - "description": "Determines whether to allow clients to request a private certificate with IP Subject Alternative Names.", + "description": "When used with the `private_cert_configuration_action_sign_csr` action, this field determines whether to use the common name (CN) from a certificate signing request (CSR) instead of the CN that's included in the data of the certificate.Does not include any requested Subject Alternative Names (SANs) in the CSR. To use the alternative names, include the `use_csr_sans` property.", "optional": true, "computed": true }, { - "name": "server_flag", + "name": "basic_constraints_valid_for_non_ca", "type": "TypeBool", - "description": "Determines whether private certificates are flagged for server use.", + "description": "Determines whether to mark the Basic Constraints extension of an issued private certificate as valid for non-CA certificates.", "optional": true, "computed": true }, { - "name": "email_protection_flag", - "type": "TypeBool", - "description": "Determines whether private certificates are flagged for email protection use.", - "optional": true, + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "name", + "name": "region", "type": "TypeString", - "description": "A human-readable unique name to assign to your configuration.To protect your privacy, do not use personal data, such as your name or location, as an name for your secret.", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", "immutable": true, - "required": true + "optional": true, + "computed": true }, { - "name": "key_type", - "type": "TypeString", - "description": "The type of private key to generate.", - "optional": true, + "name": "ttl_seconds", + "type": "TypeInt", + "description": "The requested Time To Live, after which the certificate will be expired.", "computed": true }, { - "name": "country", + "name": "organization", "type": "TypeList", - "description": "The Country (C) values to define in the subject field of the resulting certificate.", + "description": "The Organization (O) values to define in the subject field of the resulting certificate.", "optional": true, "computed": true, "elem": { @@ -150838,9 +150737,9 @@ } }, { - "name": "locality", + "name": "country", "type": "TypeList", - "description": "The Locality (L) values to define in the subject field of the resulting certificate.", + "description": "The Country (C) values to define in the subject field of the resulting certificate.", "optional": true, "computed": true, "elem": { @@ -150848,70 +150747,88 @@ } }, { - "name": "postal_code", - "type": "TypeList", - "description": "The postal code values to define in the subject field of the resulting certificate.", + "name": "serial_number", + "type": "TypeString", + "description": "Unused field.", "optional": true, "computed": true, - "elem": { - "type": "TypeString" - } + "deprecated": "This field is deprecated." }, { - "name": "secret_type", - "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "name": "allow_any_name", + "type": "TypeBool", + "description": "Determines whether to allow clients to request a private certificate that matches any common name.", + "optional": true, "computed": true }, { - "name": "max_ttl_seconds", - "type": "TypeInt", - "description": "The maximum time-to-live (TTL) for certificates that are created by this CA in seconds.", + "name": "server_flag", + "type": "TypeBool", + "description": "Determines whether private certificates are flagged for server use.", + "optional": true, "computed": true }, { - "name": "endpoint_type", + "name": "use_csr_sans", + "type": "TypeBool", + "description": "When used with the `private_cert_configuration_action_sign_csr` action, this field determines whether to use the Subject Alternative Names(SANs) from a certificate signing request (CSR) instead of the SANs that are included in the data of the certificate.Does not include the common name in the CSR. To use the common name, include the `use_csr_common_name` property.", + "optional": true, + "computed": true + }, + { + "name": "max_ttl", "type": "TypeString", - "description": "public or private.", + "description": "The maximum time-to-live (TTL) for certificates that are created by this CA.The value can be supplied as a string representation of a duration in hours, for example '8760h'. In the API response, this value is returned in seconds (integer).Minimum value is one hour (`1h`). Maximum value is 100 years (`876000h`).", "optional": true }, { - "name": "code_signing_flag", + "name": "allow_localhost", "type": "TypeBool", - "description": "Determines whether private certificates are flagged for code signing use.", + "description": "Determines whether to allow `localhost` to be included as one of the requested common names.", "optional": true, "computed": true }, { - "name": "created_by", - "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "name": "allowed_domains_template", + "type": "TypeBool", + "description": "Determines whether to allow the domains that are supplied in the `allowed_domains` field to contain access control list (ACL) templates.", + "optional": true, "computed": true }, { - "name": "config_type", - "type": "TypeString", - "description": "The configuration type.", + "name": "email_protection_flag", + "type": "TypeBool", + "description": "Determines whether private certificates are flagged for email protection use.", + "optional": true, "computed": true }, { - "name": "key_bits", - "type": "TypeInt", - "description": "The number of bits to use to generate the private key.Allowable values for RSA keys are: `2048` and `4096`. Allowable values for EC keys are: `224`, `256`, `384`, and `521`. The default for RSA keys is `2048`. The default for EC keys is `256`.", + "name": "ext_key_usage", + "type": "TypeList", + "description": "The allowed extended key usage constraint on private certificates.You can find valid values in the [Go x509 package documentation](https://golang.org/pkg/crypto/x509/#ExtKeyUsage). Omit the `ExtKeyUsage` part of the value. Values are not case-sensitive. To specify no key usage constraints, set this field to an empty list.", "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "not_before_duration_seconds", + "type": "TypeInt", + "description": "The duration in seconds by which to backdate the `not_before` property of an issued private certificate.", "computed": true }, { - "name": "allowed_secret_groups", + "name": "name", "type": "TypeString", - "description": "Scopes the creation of private certificates to only the secret groups that you specify.This field can be supplied as a comma-delimited list of secret group IDs.", - "optional": true, - "computed": true + "description": "A human-readable unique name to assign to your configuration.To protect your privacy, do not use personal data, such as your name or location, as an name for your secret.", + "immutable": true, + "required": true }, { - "name": "allowed_domains", + "name": "ou", "type": "TypeList", - "description": "The domains to define for the certificate template. This property is used along with the `allow_bare_domains` and `allow_subdomains` options.", + "description": "The Organizational Unit (OU) values to define in the subject field of the resulting certificate.", "optional": true, "computed": true, "elem": { @@ -150919,100 +150836,47 @@ } }, { - "name": "allowed_other_sans", + "name": "enforce_hostnames", + "type": "TypeBool", + "description": "Determines whether to enforce only valid host names for common names, DNS Subject Alternative Names, and the host section of email addresses.", + "optional": true, + "computed": true + }, + { + "name": "key_usage", "type": "TypeList", - "description": "The custom Object Identifier (OID) or UTF8-string Subject Alternative Names (SANs) to allow for private certificates.The format for each element in the list is the same as OpenSSL: `\u003coid\u003e:\u003ctype\u003e:\u003cvalue\u003e` where the current valid type is `UTF8`. To allow any value for an OID, use `*` as its value. Alternatively, specify a single `*` to allow any `other_sans` input.", + "description": "The allowed key usage constraint to define for private certificates.You can find valid values in the [Go x509 package documentation](https://pkg.go.dev/crypto/x509#KeyUsage). Omit the `KeyUsage` part of the value. Values are not case-sensitive. To specify no key usage constraints, set this field to an empty list.", "optional": true, "computed": true, "elem": { "type": "TypeString" } - } - ], - "ibm_sm_public_certificate": [ - { - "name": "serial_number", - "type": "TypeString", - "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", - "computed": true }, { - "name": "name", + "name": "instance_id", "type": "TypeString", - "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, "required": true - }, + } + ], + "ibm_sm_public_certificate": [ { - "name": "akamai", - "type": "TypeList", + "name": "version_custom_metadata", + "type": "TypeMap", + "description": "The secret version metadata that a user can customize.", "immutable": true, "optional": true, "elem": { - "config": { - "name": "config", - "type": "TypeList", - "description": "Akamai credentials", - "immutable": true, - "optional": true, - "elem": { - "access_token": { - "name": "access_token", - "type": "TypeString", - "secure": true, - "immutable": true, - "optional": true - }, - "client_secret": { - "name": "client_secret", - "type": "TypeString", - "secure": true, - "immutable": true, - "optional": true - }, - "client_token": { - "name": "client_token", - "type": "TypeString", - "secure": true, - "immutable": true, - "optional": true - }, - "host": { - "name": "host", - "type": "TypeString", - "secure": true, - "immutable": true, - "optional": true - } - }, - "max_items": 1 - }, - "edgerc": { - "name": "edgerc", - "type": "TypeList", - "description": "Akamai credentials", - "immutable": true, - "optional": true, - "elem": { - "config_section": { - "name": "config_section", - "type": "TypeString", - "description": "The section of the edgerc file to use for configuration.", - "default_value": "default", - "immutable": true, - "optional": true - }, - "path_to_edgerc": { - "name": "path_to_edgerc", - "type": "TypeString", - "description": "Path to Akamai's configuration file.", - "immutable": true, - "optional": true - } - }, - "max_items": 1 - } - }, - "max_items": 1 + "type": "TypeString" + } + }, + { + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "computed": true }, { "name": "signing_algorithm", @@ -151109,45 +150973,11 @@ } }, { - "name": "ca", - "type": "TypeString", - "description": "The name of the certificate authority configuration.", - "immutable": true, - "required": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", - "computed": true - }, - { - "name": "intermediate", + "name": "serial_number", "type": "TypeString", - "description": "(Optional) The PEM-encoded intermediate certificate to associate with the root certificate.", - "secure": true, + "description": "The unique serial number that was assigned to a certificate by the issuing certificate authority.", "computed": true }, - { - "name": "validity", - "type": "TypeList", - "description": "The date and time that the certificate validity period begins and ends.", - "computed": true, - "elem": { - "not_after": { - "name": "not_after", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - }, - "not_before": { - "name": "not_before", - "type": "TypeString", - "description": "The date-time format follows RFC 3339.", - "computed": true - } - } - }, { "name": "instance_id", "type": "TypeString", @@ -151157,75 +150987,49 @@ "required": true }, { - "name": "alt_names", - "type": "TypeList", - "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", - "immutable": true, - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "key_algorithm", + "name": "region", "type": "TypeString", - "description": "The identifier for the cryptographic algorithm to be used to generate the public key that is associated with the certificate.The algorithm that you select determines the encryption algorithm (`RSA` or `ECDSA`) and key size to be used to generate keys and sign certificates. For longer living certificates, it is recommended to use longer keys to provide more encryption protection. Allowed values: RSA2048, RSA4096, EC256, EC384.", - "default_value": "RSA2048", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", "immutable": true, - "optional": true + "optional": true, + "computed": true }, { - "name": "version_custom_metadata", + "name": "custom_metadata", "type": "TypeMap", - "description": "The secret version metadata that a user can customize.", - "immutable": true, + "description": "The secret metadata that a user can customize.", "optional": true, + "computed": true, "elem": { "type": "TypeString" } }, { - "name": "secret_id", - "type": "TypeString", - "description": "A v4 UUID identifier.", - "computed": true - }, - { - "name": "crn", + "name": "created_at", "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", - "computed": true - }, - { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "issuer", + "name": "secret_group_id", "type": "TypeString", - "description": "The distinguished name that identifies the entity that signed and issued the certificate.", + "description": "A v4 UUID identifier, or `default` secret group.", + "immutable": true, + "optional": true, "computed": true }, { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, - { - "name": "secret_type", + "name": "common_name", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", - "computed": true + "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", + "immutable": true, + "required": true }, { - "name": "common_name", + "name": "dns", "type": "TypeString", - "description": "The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.", + "description": "The name of the DNS provider configuration.", "immutable": true, "required": true }, @@ -151254,58 +151058,61 @@ "max_items": 1 }, { - "name": "created_by", + "name": "state_description", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "A text representation of the secret state.", "computed": true }, { - "name": "bundle_certs", - "type": "TypeBool", - "description": "Determines whether your issued certificate is bundled with intermediate certificates. Set to `false` for the certificate file to contain only the issued certificate.", - "default_value": true, - "immutable": true, - "optional": true + "name": "private_key", + "type": "TypeString", + "description": "(Optional) The PEM-encoded private key to associate with the certificate.", + "secure": true, + "computed": true }, { - "name": "custom_metadata", - "type": "TypeMap", - "description": "The secret metadata that a user can customize.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } + "name": "description", + "type": "TypeString", + "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", + "optional": true }, { - "name": "state", + "name": "locks_total", "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "description": "The number of locks of the secret.", "computed": true }, { - "name": "region", + "name": "issuer", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "description": "The distinguished name that identifies the entity that signed and issued the certificate.", "computed": true }, { - "name": "certificate", + "name": "ca", "type": "TypeString", - "description": "The PEM-encoded contents of your certificate.", - "secure": true, - "computed": true + "description": "The name of the certificate authority configuration.", + "immutable": true, + "required": true }, { - "name": "private_key", + "name": "created_by", "type": "TypeString", - "description": "(Optional) The PEM-encoded private key to associate with the certificate.", - "secure": true, + "description": "The unique identifier that is associated with the entity that created the secret.", + "computed": true + }, + { + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", "computed": true }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true + }, { "name": "labels", "type": "TypeList", @@ -151317,58 +151124,190 @@ } }, { - "name": "state_description", + "name": "key_algorithm", "type": "TypeString", - "description": "A text representation of the secret state.", + "description": "The identifier for the cryptographic algorithm to be used to generate the public key that is associated with the certificate.The algorithm that you select determines the encryption algorithm (`RSA` or `ECDSA`) and key size to be used to generate keys and sign certificates. For longer living certificates, it is recommended to use longer keys to provide more encryption protection. Allowed values: RSA2048, RSA4096, EC256, EC384.", + "default_value": "RSA2048", + "immutable": true, + "optional": true + }, + { + "name": "secret_id", + "type": "TypeString", + "description": "A v4 UUID identifier.", "computed": true }, { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "expiration_date", + "name": "certificate", "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", + "description": "The PEM-encoded contents of your certificate.", + "secure": true, "computed": true }, { - "name": "description", + "name": "intermediate", "type": "TypeString", - "description": "An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.", - "optional": true + "description": "(Optional) The PEM-encoded intermediate certificate to associate with the root certificate.", + "secure": true, + "computed": true }, { - "name": "dns", + "name": "name", "type": "TypeString", - "description": "The name of the DNS provider configuration.", - "immutable": true, + "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", "required": true }, { - "name": "downloaded", + "name": "bundle_certs", "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", - "computed": true + "description": "Determines whether your issued certificate is bundled with intermediate certificates. Set to `false` for the certificate file to contain only the issued certificate.", + "default_value": true, + "immutable": true, + "optional": true }, { - "name": "updated_at", + "name": "validity", + "type": "TypeList", + "description": "The date and time that the certificate validity period begins and ends.", + "computed": true, + "elem": { + "not_after": { + "name": "not_after", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + }, + "not_before": { + "name": "not_before", + "type": "TypeString", + "description": "The date-time format follows RFC 3339.", + "computed": true + } + } + }, + { + "name": "secret_type", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "secret_group_id", - "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", + "name": "alt_names", + "type": "TypeList", + "description": "With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.", + "immutable": true, + "optional": true, + "computed": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "akamai", + "type": "TypeList", "immutable": true, "optional": true, + "elem": { + "config": { + "name": "config", + "type": "TypeList", + "description": "Akamai credentials", + "immutable": true, + "optional": true, + "elem": { + "access_token": { + "name": "access_token", + "type": "TypeString", + "secure": true, + "immutable": true, + "optional": true + }, + "client_secret": { + "name": "client_secret", + "type": "TypeString", + "secure": true, + "immutable": true, + "optional": true + }, + "client_token": { + "name": "client_token", + "type": "TypeString", + "secure": true, + "immutable": true, + "optional": true + }, + "host": { + "name": "host", + "type": "TypeString", + "secure": true, + "immutable": true, + "optional": true + } + }, + "max_items": 1 + }, + "edgerc": { + "name": "edgerc", + "type": "TypeList", + "description": "Akamai credentials", + "immutable": true, + "optional": true, + "elem": { + "config_section": { + "name": "config_section", + "type": "TypeString", + "description": "The section of the edgerc file to use for configuration.", + "default_value": "default", + "immutable": true, + "optional": true + }, + "path_to_edgerc": { + "name": "path_to_edgerc", + "type": "TypeString", + "description": "Path to Akamai's configuration file.", + "immutable": true, + "optional": true + } + }, + "max_items": 1 + } + }, + "max_items": 1 + }, + { + "name": "crn", + "type": "TypeString", + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", + "computed": true + }, + { + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "computed": true + }, + { + "name": "expiration_date", + "type": "TypeString", + "description": "The date a secret is expired. The date format follows RFC 3339.", "computed": true } ], "ibm_sm_public_certificate_action_validate_manual_dns": [ + { + "name": "secret_id", + "type": "TypeString", + "description": "A v4 UUID identifier.", + "immutable": true, + "required": true + }, { "name": "instance_id", "type": "TypeString", @@ -151391,16 +151330,24 @@ "type": "TypeString", "description": "public or private.", "optional": true - }, - { - "name": "secret_id", - "type": "TypeString", - "description": "A v4 UUID identifier.", - "immutable": true, - "required": true } ], "ibm_sm_public_certificate_configuration_ca_lets_encrypt": [ + { + "name": "region", + "type": "TypeString", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true + }, { "name": "name", "type": "TypeString", @@ -151440,7 +151387,9 @@ "cloud_data_type": "resource_instance", "immutable": true, "required": true - }, + } + ], + "ibm_sm_public_certificate_configuration_dns_cis": [ { "name": "region", "type": "TypeString", @@ -151455,35 +151404,27 @@ "type": "TypeString", "description": "public or private.", "optional": true - } - ], - "ibm_sm_public_certificate_configuration_dns_cis": [ - { - "name": "created_at", - "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", - "computed": true }, { - "name": "updated_at", + "name": "cloud_internet_services_apikey", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", - "computed": true + "description": "An IBM Cloud API key that can to list domains in your Cloud Internet Services instance.To grant Secrets Manager the ability to view the Cloud Internet Services instance and all of its domains, the API key must be assigned the Reader service role on Internet Services (`internet-svcs`).If you need to manage specific domains, you can assign the Manager role. For production environments, it is recommended that you assign the Reader access role, and then use the[IAM Policy Management API](https://cloud.ibm.com/apidocs/iam-policy-management#create-policy) to control specific domains. For more information, see the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-prepare-order-certificates#authorize-specific-domains).", + "min_length": 4, + "max_length": 128, + "matches": "(.*?)", + "optional": true }, { - "name": "config_type", + "name": "created_by", "type": "TypeString", - "description": "The configuration type.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "cloud_internet_services_apikey", + "name": "updated_at", "type": "TypeString", - "description": "An IBM Cloud API key that can to list domains in your Cloud Internet Services instance.To grant Secrets Manager the ability to view the Cloud Internet Services instance and all of its domains, the API key must be assigned the Reader service role on Internet Services (`internet-svcs`).If you need to manage specific domains, you can assign the Manager role. For production environments, it is recommended that you assign the Reader access role, and then use the[IAM Policy Management API](https://cloud.ibm.com/apidocs/iam-policy-management#create-policy) to control specific domains. For more information, see the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-prepare-order-certificates#authorize-specific-domains).", - "min_length": 4, - "max_length": 128, - "matches": "(.*?)", - "optional": true + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "computed": true }, { "name": "secret_type", @@ -151492,16 +151433,18 @@ "computed": true }, { - "name": "created_by", + "name": "created_at", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "endpoint_type", + "name": "instance_id", "type": "TypeString", - "description": "public or private.", - "optional": true + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { "name": "name", @@ -151510,6 +151453,12 @@ "immutable": true, "required": true }, + { + "name": "config_type", + "type": "TypeString", + "description": "The configuration type.", + "computed": true + }, { "name": "cloud_internet_services_crn", "type": "TypeString", @@ -151518,38 +151467,13 @@ "min_length": 9, "max_length": 512, "matches": "^crn:v[0-9](:([A-Za-z0-9-._~!$\u0026'()*+,;=@\\/]|%[0-9A-Z]{2})*){8}$" - }, - { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "region", - "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, - "computed": true } ], "ibm_sm_public_certificate_configuration_dns_classic_infrastructure": [ { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true - }, - { - "name": "classic_infrastructure_password", + "name": "classic_infrastructure_username", "type": "TypeString", - "description": "Your classic infrastructure API key.For information about viewing and accessing your classic infrastructure API key, see the [docs](https://cloud.ibm.com/docs/account?topic=account-classic_keys).", + "description": "The username that is associated with your classic infrastructure account.In most cases, your classic infrastructure username is your `\u003caccount_id\u003e_\u003cemail_address\u003e`. For more information, see the [docs](https://cloud.ibm.com/docs/account?topic=account-classic_keys).", "required": true, "min_length": 2, "max_length": 128, @@ -151562,9 +151486,9 @@ "computed": true }, { - "name": "created_by", + "name": "created_at", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { @@ -151582,12 +151506,6 @@ "optional": true, "computed": true }, - { - "name": "endpoint_type", - "type": "TypeString", - "description": "public or private.", - "optional": true - }, { "name": "name", "type": "TypeString", @@ -151602,28 +151520,36 @@ "computed": true }, { - "name": "classic_infrastructure_username", + "name": "instance_id", "type": "TypeString", - "description": "The username that is associated with your classic infrastructure account.In most cases, your classic infrastructure username is your `\u003caccount_id\u003e_\u003cemail_address\u003e`. For more information, see the [docs](https://cloud.ibm.com/docs/account?topic=account-classic_keys).", + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true + }, + { + "name": "endpoint_type", + "type": "TypeString", + "description": "public or private.", + "optional": true + }, + { + "name": "classic_infrastructure_password", + "type": "TypeString", + "description": "Your classic infrastructure API key.For information about viewing and accessing your classic infrastructure API key, see the [docs](https://cloud.ibm.com/docs/account?topic=account-classic_keys).", "required": true, "min_length": 2, "max_length": 128, "matches": "(.*?)" }, { - "name": "created_at", + "name": "created_by", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true } ], "ibm_sm_secret_group": [ - { - "name": "updated_at", - "type": "TypeString", - "description": "The date that a resource was recently modified. The date format follows RFC 3339.", - "computed": true - }, { "name": "instance_id", "type": "TypeString", @@ -151675,57 +151601,47 @@ "type": "TypeString", "description": "The date that a resource was created. The date format follows RFC 3339.", "computed": true + }, + { + "name": "updated_at", + "type": "TypeString", + "description": "The date that a resource was recently modified. The date format follows RFC 3339.", + "computed": true } ], "ibm_sm_username_password_secret": [ { - "name": "region", + "name": "crn", "type": "TypeString", - "description": "The region of the Secrets Manager instance.", - "cloud_data_type": "region", - "immutable": true, - "optional": true, + "description": "A CRN that uniquely identifies an IBM Cloud resource.", + "cloud_data_type": "crn", "computed": true }, { - "name": "username", - "type": "TypeString", - "description": "The username that is assigned to the secret.", - "immutable": true, - "required": true - }, - { - "name": "updated_at", + "name": "state_description", "type": "TypeString", - "description": "The date when a resource was recently modified. The date format follows RFC 3339.", + "description": "A text representation of the secret state.", "computed": true }, { - "name": "instance_id", - "type": "TypeString", - "description": "The ID of the Secrets Manager instance.", - "cloud_data_type": "resource_instance", - "immutable": true, - "required": true + "name": "versions_total", + "type": "TypeInt", + "description": "The number of versions of the secret.", + "computed": true }, { - "name": "secret_group_id", + "name": "region", "type": "TypeString", - "description": "A v4 UUID identifier, or `default` secret group.", + "description": "The region of the Secrets Manager instance.", + "cloud_data_type": "region", "immutable": true, "optional": true, "computed": true }, { - "name": "secret_id", - "type": "TypeString", - "description": "A v4 UUID identifier.", - "computed": true - }, - { - "name": "secret_type", + "name": "next_rotation_date", "type": "TypeString", - "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", + "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", "computed": true }, { @@ -151767,50 +151683,33 @@ "required": true }, { - "name": "expiration_date", - "type": "TypeString", - "description": "The date a secret is expired. The date format follows RFC 3339.", - "optional": true - }, - { - "name": "labels", - "type": "TypeList", - "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", - "optional": true, - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "name", - "type": "TypeString", - "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", - "required": true + "name": "downloaded", + "type": "TypeBool", + "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "computed": true }, { - "name": "state_description", - "type": "TypeString", - "description": "A text representation of the secret state.", + "name": "state", + "type": "TypeInt", + "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", "computed": true }, { - "name": "crn", + "name": "created_by", "type": "TypeString", - "description": "A CRN that uniquely identifies an IBM Cloud resource.", - "cloud_data_type": "crn", + "description": "The unique identifier that is associated with the entity that created the secret.", "computed": true }, { - "name": "downloaded", - "type": "TypeBool", - "description": "Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.", + "name": "created_at", + "type": "TypeString", + "description": "The date when a resource was created. The date format follows RFC 3339.", "computed": true }, { - "name": "state", + "name": "locks_total", "type": "TypeInt", - "description": "The secret state that is based on NIST SP 800-57. States are integers and correspond to the `Pre-activation = 0`, `Active = 1`, `Suspended = 2`, `Deactivated = 3`, and `Destroyed = 5` values.", + "description": "The number of locks of the secret.", "computed": true }, { @@ -151826,28 +151725,55 @@ "optional": true }, { - "name": "created_by", + "name": "expiration_date", + "type": "TypeString", + "description": "The date a secret is expired. The date format follows RFC 3339.", + "optional": true + }, + { + "name": "secret_group_id", + "type": "TypeString", + "description": "A v4 UUID identifier, or `default` secret group.", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "username", + "type": "TypeString", + "description": "The username that is assigned to the secret.", + "immutable": true, + "required": true + }, + { + "name": "secret_type", "type": "TypeString", - "description": "The unique identifier that is associated with the entity that created the secret.", + "description": "The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.", "computed": true }, { - "name": "locks_total", - "type": "TypeInt", - "description": "The number of locks of the secret.", - "computed": true + "name": "version_custom_metadata", + "type": "TypeMap", + "description": "The secret version metadata that a user can customize.", + "immutable": true, + "optional": true, + "elem": { + "type": "TypeString" + } }, { - "name": "versions_total", - "type": "TypeInt", - "description": "The number of versions of the secret.", + "name": "updated_at", + "type": "TypeString", + "description": "The date when a resource was recently modified. The date format follows RFC 3339.", "computed": true }, { - "name": "next_rotation_date", + "name": "instance_id", "type": "TypeString", - "description": "The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.", - "computed": true + "description": "The ID of the Secrets Manager instance.", + "cloud_data_type": "resource_instance", + "immutable": true, + "required": true }, { "name": "custom_metadata", @@ -151860,23 +151786,42 @@ } }, { - "name": "version_custom_metadata", - "type": "TypeMap", - "description": "The secret version metadata that a user can customize.", - "immutable": true, + "name": "labels", + "type": "TypeList", + "description": "Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.", "optional": true, + "computed": true, "elem": { "type": "TypeString" } }, { - "name": "created_at", + "name": "name", "type": "TypeString", - "description": "The date when a resource was created. The date format follows RFC 3339.", + "description": "A human-readable name to assign to your secret.To protect your privacy, do not use personal data, such as your name or location, as a name for your secret.", + "required": true + }, + { + "name": "secret_id", + "type": "TypeString", + "description": "A v4 UUID identifier.", "computed": true } ], "ibm_space": [ + { + "name": "name", + "type": "TypeString", + "description": "The name for the space", + "required": true + }, + { + "name": "org", + "type": "TypeString", + "description": "The org this space belongs to", + "immutable": true, + "required": true + }, { "name": "auditors", "type": "TypeSet", @@ -151919,19 +151864,6 @@ "elem": { "type": "TypeString" } - }, - { - "name": "name", - "type": "TypeString", - "description": "The name for the space", - "required": true - }, - { - "name": "org", - "type": "TypeString", - "description": "The org this space belongs to", - "immutable": true, - "required": true } ], "ibm_ssl_certificate": [ @@ -152000,15 +151932,90 @@ "max_items": 1 }, { - "name": "server_type", - "type": "TypeString", - "description": "server type", - "required": true + "name": "administrative_contact", + "type": "TypeSet", + "optional": true, + "elem": { + "admin_address": { + "name": "admin_address", + "type": "TypeSet", + "optional": true, + "elem": { + "admin_address_line1": { + "name": "admin_address_line1", + "type": "TypeString", + "optional": true + }, + "admin_address_line2": { + "name": "admin_address_line2", + "type": "TypeString", + "optional": true + }, + "admin_city": { + "name": "admin_city", + "type": "TypeString", + "default_value": "", + "optional": true + }, + "admin_country_code": { + "name": "admin_country_code", + "type": "TypeString", + "optional": true + }, + "admin_postal_code": { + "name": "admin_postal_code", + "type": "TypeString", + "optional": true + }, + "admin_state": { + "name": "admin_state", + "type": "TypeString", + "optional": true + } + } + }, + "admin_email_address": { + "name": "admin_email_address", + "type": "TypeString", + "optional": true + }, + "admin_fax_number": { + "name": "admin_fax_number", + "type": "TypeString", + "optional": true + }, + "admin_first_name": { + "name": "admin_first_name", + "type": "TypeString", + "optional": true + }, + "admin_last_name": { + "name": "admin_last_name", + "type": "TypeString", + "optional": true + }, + "admin_organization_name": { + "name": "admin_organization_name", + "type": "TypeString", + "optional": true + }, + "admin_phone_number": { + "name": "admin_phone_number", + "type": "TypeString", + "optional": true + }, + "admin_title": { + "name": "admin_title", + "type": "TypeString", + "optional": true + } + }, + "max_items": 1 }, { - "name": "validity_months", + "name": "server_count", "type": "TypeInt", - "description": "vslidity of the ssl certificate in month", + "description": "Server count", "required": true }, { @@ -152023,6 +152030,13 @@ "description": "certificate signing request info", "required": true }, + { + "name": "renewal_flag", + "type": "TypeBool", + "description": "Renewal flag", + "default_value": true, + "optional": true + }, { "name": "billing_address_same_as_organization_flag", "type": "TypeBool", @@ -152030,6 +152044,13 @@ "default_value": false, "optional": true }, + { + "name": "administrative_contact_same_as_technical_flag", + "type": "TypeBool", + "description": "Administrative contact same as technical flag", + "default_value": false, + "optional": true + }, { "name": "technical_contact", "type": "TypeSet", @@ -152192,12 +152213,24 @@ "max_items": 1 }, { - "name": "renewal_flag", + "name": "administrative_address_same_as_organization_flag", "type": "TypeBool", - "description": "Renewal flag", - "default_value": true, + "description": "administrative address same as organization flag", + "default_value": false, "optional": true }, + { + "name": "server_type", + "type": "TypeString", + "description": "server type", + "required": true + }, + { + "name": "validity_months", + "type": "TypeInt", + "description": "vslidity of the ssl certificate in month", + "required": true + }, { "name": "order_approver_email_address", "type": "TypeString", @@ -152211,116 +152244,119 @@ "default_value": false, "optional": true }, - { - "name": "administrative_address_same_as_organization_flag", - "type": "TypeBool", - "description": "administrative address same as organization flag", - "default_value": false, - "optional": true - }, { "name": "billing_contact_same_as_technical_flag", "type": "TypeBool", "description": "billing contact", "default_value": false, "optional": true - }, + } + ], + "ibm_storage_block": [ { - "name": "administrative_contact", + "name": "allowed_virtual_guest_ids", "type": "TypeSet", + "description": "List of allowed virtual guest IDs", "optional": true, + "computed": true, "elem": { - "admin_address": { - "name": "admin_address", - "type": "TypeSet", - "optional": true, - "elem": { - "admin_address_line1": { - "name": "admin_address_line1", - "type": "TypeString", - "optional": true - }, - "admin_address_line2": { - "name": "admin_address_line2", - "type": "TypeString", - "optional": true - }, - "admin_city": { - "name": "admin_city", - "type": "TypeString", - "default_value": "", - "optional": true - }, - "admin_country_code": { - "name": "admin_country_code", - "type": "TypeString", - "optional": true - }, - "admin_postal_code": { - "name": "admin_postal_code", - "type": "TypeString", - "optional": true - }, - "admin_state": { - "name": "admin_state", - "type": "TypeString", - "optional": true - } - } - }, - "admin_email_address": { - "name": "admin_email_address", - "type": "TypeString", - "optional": true - }, - "admin_fax_number": { - "name": "admin_fax_number", - "type": "TypeString", - "optional": true - }, - "admin_first_name": { - "name": "admin_first_name", - "type": "TypeString", - "optional": true - }, - "admin_last_name": { - "name": "admin_last_name", + "type": "TypeInt" + } + }, + { + "name": "allowed_hardware_info", + "type": "TypeSet", + "computed": true, + "elem": { + "host_iqn": { + "name": "host_iqn", "type": "TypeString", - "optional": true + "computed": true }, - "admin_organization_name": { - "name": "admin_organization_name", - "type": "TypeString", - "optional": true + "id": { + "name": "id", + "type": "TypeInt", + "computed": true }, - "admin_phone_number": { - "name": "admin_phone_number", + "password": { + "name": "password", "type": "TypeString", - "optional": true + "computed": true }, - "admin_title": { - "name": "admin_title", + "username": { + "name": "username", "type": "TypeString", - "optional": true + "computed": true } }, - "max_items": 1 + "deprecated": "Please use 'allowed_host_info' instead" }, { - "name": "server_count", + "name": "type", + "type": "TypeString", + "description": "Storage block type", + "immutable": true, + "required": true + }, + { + "name": "datacenter", + "type": "TypeString", + "description": "Datacenter name", + "immutable": true, + "required": true + }, + { + "name": "lunid", + "type": "TypeString", + "description": "LUN Id", + "computed": true + }, + { + "name": "snapshot_capacity", "type": "TypeInt", - "description": "Server count", + "description": "Snapshot capacity in GB", + "immutable": true, + "optional": true + }, + { + "name": "os_format_type", + "type": "TypeString", + "description": "OS formatr type", + "immutable": true, "required": true }, { - "name": "administrative_contact_same_as_technical_flag", + "name": "iops", + "type": "TypeFloat", + "description": "IOPS value required", + "required": true + }, + { + "name": "allowed_ip_addresses", + "type": "TypeSet", + "description": "Allowed IP addresses", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "hourly_billing", "type": "TypeBool", - "description": "Administrative contact same as technical flag", + "description": "Billing done hourly, if set to true", "default_value": false, + "immutable": true, "optional": true - } - ], - "ibm_storage_block": [ + }, + { + "name": "target_address", + "type": "TypeList", + "description": "List of target Addresses", + "computed": true, + "elem": { + "type": "TypeString" + } + }, { "name": "resource_name", "type": "TypeString", @@ -152328,12 +152364,17 @@ "computed": true }, { - "name": "os_format_type", - "type": "TypeString", - "description": "OS formatr type", - "immutable": true, + "name": "capacity", + "type": "TypeInt", + "description": "Storage block size", "required": true }, + { + "name": "notes", + "type": "TypeString", + "description": "Additional note info", + "optional": true + }, { "name": "allowed_virtual_guest_info", "type": "TypeSet", @@ -152382,53 +152423,6 @@ "type": "TypeString" } }, - { - "name": "allowed_hardware_info", - "type": "TypeSet", - "computed": true, - "elem": { - "host_iqn": { - "name": "host_iqn", - "type": "TypeString", - "computed": true - }, - "id": { - "name": "id", - "type": "TypeInt", - "computed": true - }, - "password": { - "name": "password", - "type": "TypeString", - "computed": true - }, - "username": { - "name": "username", - "type": "TypeString", - "computed": true - } - }, - "deprecated": "Please use 'allowed_host_info' instead" - }, - { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - }, - { - "name": "type", - "type": "TypeString", - "description": "Storage block type", - "immutable": true, - "required": true - }, - { - "name": "capacity", - "type": "TypeInt", - "description": "Storage block size", - "required": true - }, { "name": "volumename", "type": "TypeString", @@ -152436,14 +152430,10 @@ "computed": true }, { - "name": "allowed_virtual_guest_ids", - "type": "TypeSet", - "description": "List of allowed virtual guest IDs", - "optional": true, - "computed": true, - "elem": { - "type": "TypeInt" - } + "name": "hostname", + "type": "TypeString", + "description": "Hostname", + "computed": true }, { "name": "allowed_host_info", @@ -152473,71 +152463,49 @@ } }, { - "name": "target_address", - "type": "TypeList", - "description": "List of target Addresses", - "computed": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "hostname", + "name": "resource_controller_url", "type": "TypeString", - "description": "Hostname", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true - }, - { - "name": "snapshot_capacity", - "type": "TypeInt", - "description": "Snapshot capacity in GB", - "immutable": true, - "optional": true - }, + } + ], + "ibm_storage_evault": [ { - "name": "notes", + "name": "username", "type": "TypeString", - "description": "Additional note info", - "optional": true - }, - { - "name": "hourly_billing", - "type": "TypeBool", - "description": "Billing done hourly, if set to true", - "default_value": false, - "immutable": true, - "optional": true + "description": "user name", + "computed": true }, { - "name": "datacenter", + "name": "password", "type": "TypeString", - "description": "Datacenter name", - "immutable": true, - "required": true - }, - { - "name": "iops", - "type": "TypeFloat", - "description": "IOPS value required", - "required": true + "description": "password", + "secure": true, + "computed": true }, { - "name": "lunid", + "name": "service_resource_name", "type": "TypeString", - "description": "LUN Id", + "description": "service resource name", "computed": true }, { - "name": "allowed_ip_addresses", + "name": "tags", "type": "TypeSet", - "description": "Allowed IP addresses", + "description": "Tags set for the resource", + "cloud_data_type": "tags", "optional": true, "elem": { "type": "TypeString" } - } - ], - "ibm_storage_evault": [ + }, + { + "name": "datacenter", + "type": "TypeString", + "description": "Datacenter name", + "immutable": true, + "required": true + }, { "name": "capacity", "type": "TypeInt", @@ -152557,50 +152525,106 @@ "description": "Hardware instance ID", "immutable": true, "optional": true + } + ], + "ibm_storage_file": [ + { + "name": "volumename", + "type": "TypeString", + "description": "Storage volume name", + "computed": true }, { - "name": "username", + "name": "allowed_virtual_guest_ids", + "type": "TypeSet", + "description": "Virtual guest ID", + "optional": true, + "computed": true, + "elem": { + "type": "TypeInt" + } + }, + { + "name": "allowed_subnets", + "type": "TypeSet", + "description": "Allowed network subnets", + "optional": true, + "elem": { + "type": "TypeString" + } + }, + { + "name": "resource_name", "type": "TypeString", - "description": "user name", + "description": "The name of the resource", "computed": true }, { - "name": "password", + "name": "resource_status", "type": "TypeString", - "description": "password", - "secure": true, + "description": "The status of the resource", "computed": true }, { - "name": "service_resource_name", + "name": "capacity", + "type": "TypeInt", + "description": "Storage capacity", + "required": true + }, + { + "name": "hostname", "type": "TypeString", - "description": "service resource name", + "description": "Hostname", + "computed": true + }, + { + "name": "mountpoint", + "type": "TypeString", + "description": "Storage mount point", "computed": true }, { "name": "tags", "type": "TypeSet", - "description": "Tags set for the resource", + "description": "Tags set for the storage volume", "cloud_data_type": "tags", "optional": true, "elem": { "type": "TypeString" } }, + { + "name": "resource_controller_url", + "type": "TypeString", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "computed": true + }, + { + "name": "type", + "type": "TypeString", + "description": "Storage type", + "immutable": true, + "required": true + }, { "name": "datacenter", "type": "TypeString", "description": "Datacenter name", "immutable": true, "required": true - } - ], - "ibm_storage_file": [ + }, { - "name": "capacity", + "name": "snapshot_capacity", "type": "TypeInt", - "description": "Storage capacity", - "required": true + "description": "Snapshot capacity", + "immutable": true, + "optional": true + }, + { + "name": "notes", + "type": "TypeString", + "description": "Notes", + "optional": true }, { "name": "iops", @@ -152609,16 +152633,23 @@ "required": true }, { - "name": "volumename", - "type": "TypeString", - "description": "Storage volume name", - "computed": true + "name": "allowed_hardware_ids", + "type": "TypeSet", + "description": "Hardaware ID", + "optional": true, + "computed": true, + "elem": { + "type": "TypeInt" + } }, { - "name": "notes", - "type": "TypeString", - "description": "Notes", - "optional": true + "name": "allowed_ip_addresses", + "type": "TypeSet", + "description": "Allowed range of IP addresses", + "optional": true, + "elem": { + "type": "TypeString" + } }, { "name": "snapshot_schedule", @@ -152670,94 +152701,27 @@ "default_value": false, "immutable": true, "optional": true - }, - { - "name": "resource_name", - "type": "TypeString", - "description": "The name of the resource", - "computed": true - }, - { - "name": "resource_status", - "type": "TypeString", - "description": "The status of the resource", - "computed": true - }, + } + ], + "ibm_subnet": [ { - "name": "type", - "type": "TypeString", - "description": "Storage type", + "name": "capacity", + "type": "TypeInt", + "description": "number of ip addresses in the subnet", "immutable": true, "required": true }, { - "name": "hostname", - "type": "TypeString", - "description": "Hostname", - "computed": true - }, - { - "name": "allowed_virtual_guest_ids", - "type": "TypeSet", - "description": "Virtual guest ID", - "optional": true, - "computed": true, - "elem": { - "type": "TypeInt" - } - }, - { - "name": "allowed_hardware_ids", - "type": "TypeSet", - "description": "Hardaware ID", - "optional": true, - "computed": true, - "elem": { - "type": "TypeInt" - } - }, - { - "name": "allowed_ip_addresses", - "type": "TypeSet", - "description": "Allowed range of IP addresses", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "mountpoint", - "type": "TypeString", - "description": "Storage mount point", - "computed": true - }, - { - "name": "datacenter", + "name": "endpoint_ip", "type": "TypeString", - "description": "Datacenter name", - "immutable": true, - "required": true - }, - { - "name": "snapshot_capacity", - "type": "TypeInt", - "description": "Snapshot capacity", + "description": "endpoint IP", "immutable": true, "optional": true }, - { - "name": "allowed_subnets", - "type": "TypeSet", - "description": "Allowed network subnets", - "optional": true, - "elem": { - "type": "TypeString" - } - }, { "name": "tags", "type": "TypeSet", - "description": "Tags set for the storage volume", + "description": "tags set for the resource", "cloud_data_type": "tags", "optional": true, "elem": { @@ -152765,19 +152729,12 @@ } }, { - "name": "resource_controller_url", - "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", - "computed": true - } - ], - "ibm_subnet": [ - { - "name": "type", - "type": "TypeString", - "description": "subnet type", + "name": "private", + "type": "TypeBool", + "description": "private subnet", + "default_value": false, "immutable": true, - "required": true + "optional": true }, { "name": "ip_version", @@ -152787,45 +152744,12 @@ "immutable": true, "optional": true }, - { - "name": "vlan_id", - "type": "TypeInt", - "description": "VLAN ID for the subnet", - "immutable": true, - "optional": true, - "computed": true - }, { "name": "subnet_cidr", "type": "TypeString", "description": "CIDR notation for the subnet", "computed": true }, - { - "name": "tags", - "type": "TypeSet", - "description": "tags set for the resource", - "cloud_data_type": "tags", - "optional": true, - "elem": { - "type": "TypeString" - } - }, - { - "name": "private", - "type": "TypeBool", - "description": "private subnet", - "default_value": false, - "immutable": true, - "optional": true - }, - { - "name": "endpoint_ip", - "type": "TypeString", - "description": "endpoint IP", - "immutable": true, - "optional": true - }, { "name": "notes", "type": "TypeString", @@ -152833,28 +152757,26 @@ "optional": true }, { - "name": "capacity", - "type": "TypeInt", - "description": "number of ip addresses in the subnet", + "name": "type", + "type": "TypeString", + "description": "subnet type", "immutable": true, "required": true - } - ], - "ibm_tg_connection": [ + }, { - "name": "network_id", - "type": "TypeString", - "description": "The ID of the network being connected via this connection. This field is required for some types, such as 'vpc' or 'directlink' or 'power_virtual_server'. The value of this is the CRN of the VPC or direct link or power_virtual_server gateway to be connected. This field is required to be unspecified for network type 'classic', 'gre_tunnel', and 'unbound_gre_tunnel'.", + "name": "vlan_id", + "type": "TypeInt", + "description": "VLAN ID for the subnet", "immutable": true, "optional": true, "computed": true - }, + } + ], + "ibm_tg_connection": [ { - "name": "network_account_id", + "name": "updated_at", "type": "TypeString", - "description": "The ID of the account which owns the network that is being connected. Generally only used if the network is in a different account than the gateway. This field is required for type 'unbound_gre_tunnel' when the associated_network_type is 'classic' and the GRE tunnel is in a different account than the gateway.", - "immutable": true, - "optional": true, + "description": "The date and time that this connection was last updated", "computed": true }, { @@ -152889,12 +152811,38 @@ "optional": true, "computed": true }, + { + "name": "base_connection_id", + "type": "TypeString", + "description": "The ID of a network_type 'classic' connection a tunnel is configured over. This field only applies to network type 'gre_tunnel' connections.", + "immutable": true, + "optional": true, + "computed": true + }, + { + "name": "status", + "type": "TypeString", + "description": "What is the current configuration state of this connection. Possible values: [attached,failed,pending,deleting,detaching,detached]", + "computed": true + }, + { + "name": "request_status", + "type": "TypeString", + "description": "Only visible for cross account connections, this field represents the status of the request to connect the given network between accounts.Possible values: [pending,approved,rejected,expired,detached]", + "computed": true + }, { "name": "related_crn", "type": "TypeString", "description": "The crn of the transit gateway", "computed": true }, + { + "name": "connection_id", + "type": "TypeString", + "description": "The Transit Gateway Connection identifier", + "computed": true + }, { "name": "name", "type": "TypeString", @@ -152905,59 +152853,49 @@ "optional": true }, { - "name": "remote_tunnel_ip", + "name": "network_id", "type": "TypeString", - "description": "The remote tunnel IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.", + "description": "The ID of the network being connected via this connection. This field is required for some types, such as 'vpc' or 'directlink' or 'power_virtual_server'. The value of this is the CRN of the VPC or direct link or power_virtual_server gateway to be connected. This field is required to be unspecified for network type 'classic', 'gre_tunnel', and 'unbound_gre_tunnel'.", "immutable": true, "optional": true, "computed": true }, { - "name": "updated_at", + "name": "network_account_id", "type": "TypeString", - "description": "The date and time that this connection was last updated", + "description": "The ID of the account which owns the network that is being connected. Generally only used if the network is in a different account than the gateway. This field is required for type 'unbound_gre_tunnel' when the associated_network_type is 'classic' and the GRE tunnel is in a different account than the gateway.", + "immutable": true, + "optional": true, "computed": true }, { - "name": "gateway", + "name": "network_type", "type": "TypeString", - "description": "The Transit Gateway identifier", + "description": "Defines what type of network is connected via this connection. Allowable values (classic,directlink,vpc,gre_tunnel,unbound_gre_tunnel,power_virtual_server)", "immutable": true, - "required": true + "required": true, + "options": "classic, directlink, vpc, gre_tunnel, unbound_gre_tunnel, power_virtual_server" }, { - "name": "base_connection_id", + "name": "remote_tunnel_ip", "type": "TypeString", - "description": "The ID of a network_type 'classic' connection a tunnel is configured over. This field only applies to network type 'gre_tunnel' connections.", + "description": "The remote tunnel IP address. This field only applies to network type 'gre_tunnel' and 'unbound_gre_tunnel' connections.", "immutable": true, "optional": true, "computed": true }, { - "name": "status", - "type": "TypeString", - "description": "What is the current configuration state of this connection. Possible values: [attached,failed,pending,deleting,detaching,detached]", - "computed": true - }, - { - "name": "request_status", - "type": "TypeString", - "description": "Only visible for cross account connections, this field represents the status of the request to connect the given network between accounts.Possible values: [pending,approved,rejected,expired,detached]", - "computed": true - }, - { - "name": "connection_id", + "name": "created_at", "type": "TypeString", - "description": "The Transit Gateway Connection identifier", + "description": "The date and time that this connection was created", "computed": true }, { - "name": "network_type", + "name": "gateway", "type": "TypeString", - "description": "Defines what type of network is connected via this connection. Allowable values (classic,directlink,vpc,gre_tunnel,unbound_gre_tunnel,power_virtual_server)", + "description": "The Transit Gateway identifier", "immutable": true, - "required": true, - "options": "classic, directlink, vpc, gre_tunnel, unbound_gre_tunnel, power_virtual_server" + "required": true }, { "name": "base_network_type", @@ -152973,12 +152911,6 @@ "immutable": true, "optional": true, "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that this connection was created", - "computed": true } ], "ibm_tg_connection_action": [ @@ -153006,6 +152938,12 @@ } ], "ibm_tg_connection_prefix_filter": [ + { + "name": "created_at", + "type": "TypeString", + "description": "The date and time that this prefix filter was created", + "computed": true + }, { "name": "ge", "type": "TypeInt", @@ -153018,18 +152956,6 @@ "description": "IP Prefix", "required": true }, - { - "name": "updated_at", - "type": "TypeString", - "description": "The date and time that this prefix filter was last updated", - "computed": true - }, - { - "name": "created_at", - "type": "TypeString", - "description": "The date and time that this prefix filter was created", - "computed": true - }, { "name": "connection_id", "type": "TypeString", @@ -153042,13 +152968,6 @@ "description": "The Transit Gateway Connection Prefix Filter identifier", "computed": true }, - { - "name": "action", - "type": "TypeString", - "description": "Whether to permit or deny the prefix filter", - "required": true, - "options": "permit, deny" - }, { "name": "before", "type": "TypeString", @@ -153056,10 +152975,10 @@ "optional": true }, { - "name": "le", - "type": "TypeInt", - "description": "IP Prefix LE", - "optional": true + "name": "updated_at", + "type": "TypeString", + "description": "The date and time that this prefix filter was last updated", + "computed": true }, { "name": "gateway", @@ -153067,13 +152986,26 @@ "description": "The Transit Gateway identifier", "immutable": true, "required": true + }, + { + "name": "action", + "type": "TypeString", + "description": "Whether to permit or deny the prefix filter", + "required": true, + "options": "permit, deny" + }, + { + "name": "le", + "type": "TypeInt", + "description": "IP Prefix LE", + "optional": true } ], "ibm_tg_gateway": [ { - "name": "resource_controller_url", + "name": "status", "type": "TypeString", - "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", + "description": "The Status of the resource", "computed": true }, { @@ -153083,27 +153015,37 @@ "computed": true }, { - "name": "created_at", + "name": "resource_group_name", "type": "TypeString", - "description": "The creation time of the resource", + "description": "The resource group name in which resource is provisioned", "computed": true }, { - "name": "updated_at", + "name": "name", "type": "TypeString", - "description": "The updation time of the resource", + "description": "Name Transit Gateway Services", + "required": true, + "options": "^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$}", + "min_length": 1, + "max_length": 63 + }, + { + "name": "crn", + "type": "TypeString", + "description": "The crn of the resource", + "cloud_data_type": "crn", "computed": true }, { - "name": "status", + "name": "updated_at", "type": "TypeString", - "description": "The Status of the resource", + "description": "The updation time of the resource", "computed": true }, { - "name": "resource_name", + "name": "resource_controller_url", "type": "TypeString", - "description": "The name of the resource", + "description": "The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance", "computed": true }, { @@ -153127,25 +153069,15 @@ } }, { - "name": "crn", + "name": "created_at", "type": "TypeString", - "description": "The crn of the resource", - "cloud_data_type": "crn", + "description": "The creation time of the resource", "computed": true }, { - "name": "name", - "type": "TypeString", - "description": "Name Transit Gateway Services", - "required": true, - "options": "^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$}", - "min_length": 1, - "max_length": 63 - }, - { - "name": "resource_crn", + "name": "resource_name", "type": "TypeString", - "description": "The crn of the resource", + "description": "The name of the resource", "computed": true }, { @@ -153164,49 +153096,13 @@ "computed": true }, { - "name": "resource_group_name", + "name": "resource_crn", "type": "TypeString", - "description": "The resource group name in which resource is provisioned", + "description": "The crn of the resource", "computed": true } ], "ibm_tg_route_report": [ - { - "name": "created_at", - "type": "TypeString", - "computed": true - }, - { - "name": "overlapping_routes", - "type": "TypeList", - "description": "Collection of transit gateway overlapping routes", - "computed": true, - "elem": { - "routes": { - "name": "routes", - "type": "TypeList", - "description": "Collection of transit gateway overlapping route's details", - "computed": true, - "elem": { - "connection_id": { - "name": "connection_id", - "type": "TypeString", - "computed": true - }, - "prefix": { - "name": "prefix", - "type": "TypeString", - "computed": true - } - } - } - } - }, - { - "name": "status", - "type": "TypeString", - "computed": true - }, { "name": "updated_at", "type": "TypeString", @@ -153288,8 +153184,44 @@ "computed": true } } + }, + { + "name": "created_at", + "type": "TypeString", + "computed": true + }, + { + "name": "overlapping_routes", + "type": "TypeList", + "description": "Collection of transit gateway overlapping routes", + "computed": true, + "elem": { + "routes": { + "name": "routes", + "type": "TypeList", + "description": "Collection of transit gateway overlapping route's details", + "computed": true, + "elem": { + "connection_id": { + "name": "connection_id", + "type": "TypeString", + "computed": true + }, + "prefix": { + "name": "prefix", + "type": "TypeString", + "computed": true + } + } + } + } + }, + { + "name": "status", + "type": "TypeString", + "computed": true } ] }, - "Version": "1.58.1" + "Version": "1.59.0" } \ No newline at end of file From 7a6c1f83d49235c45febe61172d422f9f2012b3f Mon Sep 17 00:00:00 2001 From: hkantare Date: Mon, 30 Oct 2023 13:07:35 +0530 Subject: [PATCH 20/58] update CHANGELOG --- CHANGELOG.md | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 39d6c38d16..cf3fc33d49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,70 @@ +# 1.59.0 (Oct 30, 2023) + +Features +* Support Usage Reports + - **Datasources** + - ibm_billing_snapshot_list + - **Resources** + - ibm_billing_report_snapshot + +* Support Power Instance + - **Datasources** + - ibm_pi_workspace + - ibm_pi_workspaces + - ibm_pi_datacenter + - ibm_pi_datacenters + +* Support Schematics Agents + - **Datasources** + - ibm_schematics_policies + - ibm_schematics_policy + - ibm_schematics_agents + - ibm_schematics_agent + - ibm_schematics_agent_prs + - ibm_schematics_agent_deploy + - ibm_schematics_agent_health + - **Resources** + - ibm_schematics_policy + - ibm_schematics_agent + - ibm_schematics_agent_prs + - ibm_schematics_agent_deploy + - ibm_schematics_agent_health + +* Support Event Notification + - **Datasources** + - ibm_en_destination_custom_email + - ibm_en_subscription_custom_email + - **Resources** + - ibm_en_destination_custom_email + - ibm_en_subscription_custom_email + + +Enhancements +* Get secret by name ([4825](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4825)) +* VPN for VPC: Customer should be able to recover their gateway or server for unhealthy status ([4858](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4858)) +* support for tf 1.5 in schematics workspace ([4853](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4853)) +* Deprecated match_resource_types and Intoduced match_resource_type ([4863](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4863)) +* Enterprise BaaS feature ([4845](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4845)) +* sarama golang library update ([4810](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4810)) +* Adding NUMA and Profile Status to instance, instance profile and dedicated hosts ([4871](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4871)) +* update terraform as per latest eventstreams go sdk release 1.4.0 ([4862](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4862)) +* Add path to invoke update without determining changed CRN data, add validator for name of secrets ([4859](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4859)) +* Feature: ReplicationEnabledField for Storage Pool ([4875](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4875)) +* Remove deprecated scaling attributes ([4481](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4481)) +* update CD Go SDK version ([4887](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4887)) +* Adding updates to the scc resources/datasources ([4865](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4865)) +* Add support for Elasticsearch Platinum ([4712](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4712)) +* Add support for security groups for network load balancers ([4888](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4888)) + + +Bug Fixes +* Fix handling of bundle_certs in Secrets Manager public cert ([4854](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4854)) +* add description in docs for Key Protect ([4846](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4846)) +* Update iam_service_policy.html.markdown ([4836](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4836)) +* v1.58.0 ibm_container_cluster_config: new endpoint_type returning self-signed private endpoint ([4861](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4861)) +* Doc correction: Share mount target doc corrections ([4889](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4889)) +* Fix indentation for subcategory ([4891](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4891)) + # 1.59.0-beta0 (Oct 25, 2023) Features From ee5af15d48d8e392e09bb4a983039b746379d4bf Mon Sep 17 00:00:00 2001 From: hkantare Date: Mon, 30 Oct 2023 13:08:33 +0530 Subject: [PATCH 21/58] Bump up version to 1.59.0 --- version/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/version.go b/version/version.go index 5efc7c9eac..df2bae8a6f 100644 --- a/version/version.go +++ b/version/version.go @@ -5,7 +5,7 @@ import ( ) // Version is the current provider main version -const Version = "1.59.0-beta0" +const Version = "1.59.0" // GitCommit is the git commit that was compiled. This will be filled in by the compiler. var GitCommit string From 7a79f08776f41ae32e973e8dc904980eaf591d2f Mon Sep 17 00:00:00 2001 From: Ujjwal Kumar Date: Mon, 6 Nov 2023 11:15:38 +0530 Subject: [PATCH 22/58] resolved nil pointer issue on vpn gateway resource --- ibm/service/vpc/resource_ibm_is_vpn_gateway.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ibm/service/vpc/resource_ibm_is_vpn_gateway.go b/ibm/service/vpc/resource_ibm_is_vpn_gateway.go index d2d25a5e20..96a617ff0f 100644 --- a/ibm/service/vpc/resource_ibm_is_vpn_gateway.go +++ b/ibm/service/vpc/resource_ibm_is_vpn_gateway.go @@ -566,8 +566,8 @@ func vpngwGet(d *schema.ResourceData, meta interface{}, id string) error { d.Set(flex.ResourceCRN, *vpnGateway.CRN) d.Set(isVPNGatewayCRN, *vpnGateway.CRN) if vpnGateway.ResourceGroup != nil { - d.Set(flex.ResourceGroupName, *vpnGateway.ResourceGroup.Name) - d.Set(isVPNGatewayResourceGroup, *vpnGateway.ResourceGroup.ID) + d.Set(flex.ResourceGroupName, vpnGateway.ResourceGroup.Name) + d.Set(isVPNGatewayResourceGroup, vpnGateway.ResourceGroup.ID) } d.Set(isVPNGatewayMode, *vpnGateway.Mode) if vpnGateway.Members != nil { From eb965c0d3dc8b3bcc761372279f97f03bab7c4b4 Mon Sep 17 00:00:00 2001 From: Deepak Selvakumar <77007253+deepaksibm@users.noreply.github.com> Date: Tue, 7 Nov 2023 20:07:59 +0530 Subject: [PATCH 23/58] Remove VPC Beta SDK references (#4895) * Removing VPC Beta references from few resources and data sources * example update --- ...source_ibm_is_virtual_network_interface.go | 44 +++++++++---------- ...ource_ibm_is_virtual_network_interfaces.go | 42 +++++++++--------- .../resource_ibm_is_security_group_target.go | 9 ++-- .../r/is_share_mount_target.html.markdown | 20 ++++----- 4 files changed, 58 insertions(+), 57 deletions(-) diff --git a/ibm/service/vpc/data_source_ibm_is_virtual_network_interface.go b/ibm/service/vpc/data_source_ibm_is_virtual_network_interface.go index 8fa399c599..181428db5f 100644 --- a/ibm/service/vpc/data_source_ibm_is_virtual_network_interface.go +++ b/ibm/service/vpc/data_source_ibm_is_virtual_network_interface.go @@ -8,7 +8,7 @@ import ( "fmt" "log" - "github.com/IBM/vpc-beta-go-sdk/vpcbetav1" + "github.com/IBM/vpc-go-sdk/vpcv1" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" @@ -339,16 +339,16 @@ func DataSourceIBMIsVirtualNetworkInterface() *schema.Resource { } func dataSourceIBMIsVirtualNetworkInterfaceRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { - vpcbetaClient, err := meta.(conns.ClientSession).VpcV1BetaAPI() + vpcClient, err := meta.(conns.ClientSession).VpcV1API() if err != nil { return diag.FromErr(err) } - getVirtualNetworkInterfaceOptions := &vpcbetav1.GetVirtualNetworkInterfaceOptions{} + getVirtualNetworkInterfaceOptions := &vpcv1.GetVirtualNetworkInterfaceOptions{} getVirtualNetworkInterfaceOptions.SetID(d.Get("virtual_network_interface").(string)) - virtualNetworkInterface, response, err := vpcbetaClient.GetVirtualNetworkInterfaceWithContext(context, getVirtualNetworkInterfaceOptions) + virtualNetworkInterface, response, err := vpcClient.GetVirtualNetworkInterfaceWithContext(context, getVirtualNetworkInterfaceOptions) if err != nil { log.Printf("[DEBUG] GetVirtualNetworkInterfaceWithContext failed %s\n%s", err, response) return diag.FromErr(fmt.Errorf("GetVirtualNetworkInterfaceWithContext failed %s\n%s", err, response)) @@ -473,7 +473,7 @@ func dataSourceIBMIsVirtualNetworkInterfaceRead(context context.Context, d *sche return nil } -func dataSourceIBMIsVirtualNetworkInterfaceReservedIPReferenceToMap(model *vpcbetav1.ReservedIPReference) (map[string]interface{}, error) { +func dataSourceIBMIsVirtualNetworkInterfaceReservedIPReferenceToMap(model *vpcv1.ReservedIPReference) (map[string]interface{}, error) { modelMap := make(map[string]interface{}) if model.Address != nil { modelMap["address"] = *model.Address @@ -500,7 +500,7 @@ func dataSourceIBMIsVirtualNetworkInterfaceReservedIPReferenceToMap(model *vpcbe return modelMap, nil } -func dataSourceIBMIsVirtualNetworkInterfaceReservedIPReferenceDeletedToMap(model *vpcbetav1.ReservedIPReferenceDeleted) (map[string]interface{}, error) { +func dataSourceIBMIsVirtualNetworkInterfaceReservedIPReferenceDeletedToMap(model *vpcv1.ReservedIPReferenceDeleted) (map[string]interface{}, error) { modelMap := make(map[string]interface{}) if model.MoreInfo != nil { modelMap["more_info"] = *model.MoreInfo @@ -508,7 +508,7 @@ func dataSourceIBMIsVirtualNetworkInterfaceReservedIPReferenceDeletedToMap(model return modelMap, nil } -func dataSourceIBMIsVirtualNetworkInterfaceResourceGroupReferenceToMap(model *vpcbetav1.ResourceGroupReference) (map[string]interface{}, error) { +func dataSourceIBMIsVirtualNetworkInterfaceResourceGroupReferenceToMap(model *vpcv1.ResourceGroupReference) (map[string]interface{}, error) { modelMap := make(map[string]interface{}) if model.Href != nil { modelMap["href"] = *model.Href @@ -522,7 +522,7 @@ func dataSourceIBMIsVirtualNetworkInterfaceResourceGroupReferenceToMap(model *vp return modelMap, nil } -func dataSourceIBMIsVirtualNetworkInterfaceSecurityGroupReferenceToMap(model *vpcbetav1.SecurityGroupReference) (map[string]interface{}, error) { +func dataSourceIBMIsVirtualNetworkInterfaceSecurityGroupReferenceToMap(model *vpcv1.SecurityGroupReference) (map[string]interface{}, error) { modelMap := make(map[string]interface{}) if model.CRN != nil { modelMap["crn"] = *model.CRN @@ -546,7 +546,7 @@ func dataSourceIBMIsVirtualNetworkInterfaceSecurityGroupReferenceToMap(model *vp return modelMap, nil } -func dataSourceIBMIsVirtualNetworkInterfaceSecurityGroupReferenceDeletedToMap(model *vpcbetav1.SecurityGroupReferenceDeleted) (map[string]interface{}, error) { +func dataSourceIBMIsVirtualNetworkInterfaceSecurityGroupReferenceDeletedToMap(model *vpcv1.SecurityGroupReferenceDeleted) (map[string]interface{}, error) { modelMap := make(map[string]interface{}) if model.MoreInfo != nil { modelMap["more_info"] = *model.MoreInfo @@ -554,7 +554,7 @@ func dataSourceIBMIsVirtualNetworkInterfaceSecurityGroupReferenceDeletedToMap(mo return modelMap, nil } -func dataSourceIBMIsVirtualNetworkInterfaceSubnetReferenceToMap(model *vpcbetav1.SubnetReference) (map[string]interface{}, error) { +func dataSourceIBMIsVirtualNetworkInterfaceSubnetReferenceToMap(model *vpcv1.SubnetReference) (map[string]interface{}, error) { modelMap := make(map[string]interface{}) if model.CRN != nil { modelMap["crn"] = *model.CRN @@ -581,7 +581,7 @@ func dataSourceIBMIsVirtualNetworkInterfaceSubnetReferenceToMap(model *vpcbetav1 return modelMap, nil } -func dataSourceIBMIsVirtualNetworkInterfaceSubnetReferenceDeletedToMap(model *vpcbetav1.SubnetReferenceDeleted) (map[string]interface{}, error) { +func dataSourceIBMIsVirtualNetworkInterfaceSubnetReferenceDeletedToMap(model *vpcv1.SubnetReferenceDeleted) (map[string]interface{}, error) { modelMap := make(map[string]interface{}) if model.MoreInfo != nil { modelMap["more_info"] = *model.MoreInfo @@ -589,12 +589,12 @@ func dataSourceIBMIsVirtualNetworkInterfaceSubnetReferenceDeletedToMap(model *vp return modelMap, nil } -func dataSourceIBMIsVirtualNetworkInterfaceVirtualNetworkInterfaceTargetToMap(model vpcbetav1.VirtualNetworkInterfaceTargetIntf) (map[string]interface{}, error) { - if _, ok := model.(*vpcbetav1.VirtualNetworkInterfaceTargetShareMountTargetReference); ok { - return dataSourceIBMIsVirtualNetworkInterfaceVirtualNetworkInterfaceTargetShareMountTargetReferenceToMap(model.(*vpcbetav1.VirtualNetworkInterfaceTargetShareMountTargetReference)) - } else if _, ok := model.(*vpcbetav1.VirtualNetworkInterfaceTarget); ok { +func dataSourceIBMIsVirtualNetworkInterfaceVirtualNetworkInterfaceTargetToMap(model vpcv1.VirtualNetworkInterfaceTargetIntf) (map[string]interface{}, error) { + if _, ok := model.(*vpcv1.VirtualNetworkInterfaceTargetShareMountTargetReference); ok { + return dataSourceIBMIsVirtualNetworkInterfaceVirtualNetworkInterfaceTargetShareMountTargetReferenceToMap(model.(*vpcv1.VirtualNetworkInterfaceTargetShareMountTargetReference)) + } else if _, ok := model.(*vpcv1.VirtualNetworkInterfaceTarget); ok { modelMap := make(map[string]interface{}) - model := model.(*vpcbetav1.VirtualNetworkInterfaceTarget) + model := model.(*vpcv1.VirtualNetworkInterfaceTarget) if model.Deleted != nil { deletedMap, err := dataSourceIBMIsVirtualNetworkInterfaceShareMountTargetReferenceDeletedToMap(model.Deleted) if err != nil { @@ -616,11 +616,11 @@ func dataSourceIBMIsVirtualNetworkInterfaceVirtualNetworkInterfaceTargetToMap(mo } return modelMap, nil } else { - return nil, fmt.Errorf("Unrecognized vpcbetav1.VirtualNetworkInterfaceTargetIntf subtype encountered") + return nil, fmt.Errorf("Unrecognized vpcv1.VirtualNetworkInterfaceTargetIntf subtype encountered") } } -func dataSourceIBMIsVirtualNetworkInterfaceShareMountTargetReferenceDeletedToMap(model *vpcbetav1.ShareMountTargetReferenceDeleted) (map[string]interface{}, error) { +func dataSourceIBMIsVirtualNetworkInterfaceShareMountTargetReferenceDeletedToMap(model *vpcv1.ShareMountTargetReferenceDeleted) (map[string]interface{}, error) { modelMap := make(map[string]interface{}) if model.MoreInfo != nil { modelMap["more_info"] = *model.MoreInfo @@ -628,7 +628,7 @@ func dataSourceIBMIsVirtualNetworkInterfaceShareMountTargetReferenceDeletedToMap return modelMap, nil } -func dataSourceIBMIsVirtualNetworkInterfaceVirtualNetworkInterfaceTargetShareMountTargetReferenceToMap(model *vpcbetav1.VirtualNetworkInterfaceTargetShareMountTargetReference) (map[string]interface{}, error) { +func dataSourceIBMIsVirtualNetworkInterfaceVirtualNetworkInterfaceTargetShareMountTargetReferenceToMap(model *vpcv1.VirtualNetworkInterfaceTargetShareMountTargetReference) (map[string]interface{}, error) { modelMap := make(map[string]interface{}) if model.Deleted != nil { deletedMap, err := dataSourceIBMIsVirtualNetworkInterfaceShareMountTargetReferenceDeletedToMap(model.Deleted) @@ -652,7 +652,7 @@ func dataSourceIBMIsVirtualNetworkInterfaceVirtualNetworkInterfaceTargetShareMou return modelMap, nil } -func dataSourceIBMIsVirtualNetworkInterfaceVPCReferenceToMap(model *vpcbetav1.VPCReference) (map[string]interface{}, error) { +func dataSourceIBMIsVirtualNetworkInterfaceVPCReferenceToMap(model *vpcv1.VPCReference) (map[string]interface{}, error) { modelMap := make(map[string]interface{}) if model.CRN != nil { modelMap["crn"] = *model.CRN @@ -679,7 +679,7 @@ func dataSourceIBMIsVirtualNetworkInterfaceVPCReferenceToMap(model *vpcbetav1.VP return modelMap, nil } -func dataSourceIBMIsVirtualNetworkInterfaceVPCReferenceDeletedToMap(model *vpcbetav1.VPCReferenceDeleted) (map[string]interface{}, error) { +func dataSourceIBMIsVirtualNetworkInterfaceVPCReferenceDeletedToMap(model *vpcv1.VPCReferenceDeleted) (map[string]interface{}, error) { modelMap := make(map[string]interface{}) if model.MoreInfo != nil { modelMap["more_info"] = *model.MoreInfo @@ -687,7 +687,7 @@ func dataSourceIBMIsVirtualNetworkInterfaceVPCReferenceDeletedToMap(model *vpcbe return modelMap, nil } -func dataSourceIBMIsVirtualNetworkInterfaceZoneReferenceToMap(model *vpcbetav1.ZoneReference) (map[string]interface{}, error) { +func dataSourceIBMIsVirtualNetworkInterfaceZoneReferenceToMap(model *vpcv1.ZoneReference) (map[string]interface{}, error) { modelMap := make(map[string]interface{}) if model.Href != nil { modelMap["href"] = *model.Href diff --git a/ibm/service/vpc/data_source_ibm_is_virtual_network_interfaces.go b/ibm/service/vpc/data_source_ibm_is_virtual_network_interfaces.go index de054c2c45..8705e323cb 100644 --- a/ibm/service/vpc/data_source_ibm_is_virtual_network_interfaces.go +++ b/ibm/service/vpc/data_source_ibm_is_virtual_network_interfaces.go @@ -9,7 +9,7 @@ import ( "log" "time" - "github.com/IBM/vpc-beta-go-sdk/vpcbetav1" + "github.com/IBM/vpc-go-sdk/vpcv1" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" @@ -344,40 +344,42 @@ func DataSourceIBMIsVirtualNetworkInterfaces() *schema.Resource { }, }, }, + "resource_group": { + Type: schema.TypeString, + Optional: true, + Description: "The unique identifier of the resource group these virtual network interfaces belong to", + }, }, } } func dataSourceIBMIsVirtualNetworkInterfacesRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { - vpcbetaClient, err := meta.(conns.ClientSession).VpcV1BetaAPI() + vpcClient, err := meta.(conns.ClientSession).VpcV1API() if err != nil { return diag.FromErr(err) } - listVirtualNetworkInterfacesOptions := &vpcbetav1.ListVirtualNetworkInterfacesOptions{} - - vniCollection, response, err := vpcbetaClient.ListVirtualNetworkInterfacesWithContext(context, listVirtualNetworkInterfacesOptions) - //log.Printf(len(vniCollection.VirtualNetworkInterfaces)) + listVirtualNetworkInterfacesOptions := &vpcv1.ListVirtualNetworkInterfacesOptions{} + if resgroupintf, ok := d.GetOk("resource_group"); ok { + resGroup := resgroupintf.(string) + listVirtualNetworkInterfacesOptions.ResourceGroupID = &resGroup + } + var pager *vpcv1.VirtualNetworkInterfacesPager + pager, err = vpcClient.NewVirtualNetworkInterfacesPager(listVirtualNetworkInterfacesOptions) if err != nil { - log.Printf("[DEBUG] VirtualNetworkInterfacesPager.GetAll() failed %s\n%s", err, response) - return diag.FromErr(fmt.Errorf("VirtualNetworkInterfacesPager.GetAll() failed %s\n%s", err, response)) + return diag.FromErr(err) } - // var pager *vpcbetav1.VirtualNetworkInterfacesPager - // pager, err = vpcbetaClient.NewVirtualNetworkInterfacesPager(listVirtualNetworkInterfacesOptions) - // if err != nil { - // return diag.FromErr(err) - // } - // allItems, err := pager.GetAll() - // if err != nil { - // log.Printf("[DEBUG] VirtualNetworkInterfacesPager.GetAll() failed %s", err) - // return diag.FromErr(fmt.Errorf("VirtualNetworkInterfacesPager.GetAll() failed %s", err)) - // } + allItems, err := pager.GetAll() + if err != nil { + log.Printf("[DEBUG] VirtualNetworkInterfacesPager.GetAll() failed %s", err) + return diag.FromErr(fmt.Errorf("VirtualNetworkInterfacesPager.GetAll() failed %s", err)) + } d.SetId(dataSourceIBMIsVirtualNetworkInterfacesID(d)) mapSlice := []map[string]interface{}{} - for _, modelItem := range vniCollection.VirtualNetworkInterfaces { + for _, modelItem := range allItems { modelMap, err := dataSourceIBMIsVirtualNetworkInterfacesVirtualNetworkInterfaceToMap(&modelItem) if err != nil { return diag.FromErr(err) @@ -397,7 +399,7 @@ func dataSourceIBMIsVirtualNetworkInterfacesID(d *schema.ResourceData) string { return time.Now().UTC().String() } -func dataSourceIBMIsVirtualNetworkInterfacesVirtualNetworkInterfaceToMap(model *vpcbetav1.VirtualNetworkInterface) (map[string]interface{}, error) { +func dataSourceIBMIsVirtualNetworkInterfacesVirtualNetworkInterfaceToMap(model *vpcv1.VirtualNetworkInterface) (map[string]interface{}, error) { modelMap := make(map[string]interface{}) if model.AutoDelete != nil { modelMap["auto_delete"] = *model.AutoDelete diff --git a/ibm/service/vpc/resource_ibm_is_security_group_target.go b/ibm/service/vpc/resource_ibm_is_security_group_target.go index 857ebccbf9..43f6a5754c 100644 --- a/ibm/service/vpc/resource_ibm_is_security_group_target.go +++ b/ibm/service/vpc/resource_ibm_is_security_group_target.go @@ -12,7 +12,6 @@ import ( "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" "github.com/IBM-Cloud/terraform-provider-ibm/ibm/validate" - "github.com/IBM/vpc-beta-go-sdk/vpcbetav1" "github.com/IBM/vpc-go-sdk/vpcv1" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" @@ -127,7 +126,7 @@ func resourceIBMISSecurityGroupTargetCreate(d *schema.ResourceData, meta interfa return errsgt } } else if crn != nil && *crn != "" && strings.Contains(*crn, "virtual_network_interfaces") { - vpcClient, err := meta.(conns.ClientSession).VpcV1BetaAPI() + vpcClient, err := meta.(conns.ClientSession).VpcV1API() if err != nil { return err } @@ -338,7 +337,7 @@ func isLBSgTargetRefreshFunc(sess *vpcv1.VpcV1, lbId string) resource.StateRefre } } -func isWaitForVNISgTargetCreateAvailable(sess *vpcbetav1.VpcbetaV1, vniId string, timeout time.Duration) (interface{}, error) { +func isWaitForVNISgTargetCreateAvailable(sess *vpcv1.VpcV1, vniId string, timeout time.Duration) (interface{}, error) { log.Printf("Waiting for virtual network interface (%s) to be available.", vniId) stateConf := &resource.StateChangeConf{ @@ -353,10 +352,10 @@ func isWaitForVNISgTargetCreateAvailable(sess *vpcbetav1.VpcbetaV1, vniId string return stateConf.WaitForState() } -func isVNISgTargetRefreshFunc(vpcClient *vpcbetav1.VpcbetaV1, vniId string) resource.StateRefreshFunc { +func isVNISgTargetRefreshFunc(vpcClient *vpcv1.VpcV1, vniId string) resource.StateRefreshFunc { return func() (interface{}, string, error) { - getVNIOptions := &vpcbetav1.GetVirtualNetworkInterfaceOptions{ + getVNIOptions := &vpcv1.GetVirtualNetworkInterfaceOptions{ ID: &vniId, } vni, response, err := vpcClient.GetVirtualNetworkInterface(getVNIOptions) diff --git a/website/docs/r/is_share_mount_target.html.markdown b/website/docs/r/is_share_mount_target.html.markdown index 15039a137a..3bc0c11a3d 100644 --- a/website/docs/r/is_share_mount_target.html.markdown +++ b/website/docs/r/is_share_mount_target.html.markdown @@ -27,39 +27,39 @@ resource "ibm_is_share" "example" { } resource "ibm_is_share_mount_target" "example" { - share = ibm_is_share.is_share.id - vpc = ibm_is_vpc.vpc.id + share = ibm_is_share.example.id + vpc = ibm_is_vpc.example.id name = "my-share-target" }` ``` ``` //Create mount target with virtual network interface that has primary ip name and subnet id -resource "ibm_is_vpc" "example" { +resource "ibm_is_vpc" "example1" { name = "my-vpc" } -resource "ibm_is_share" "example" { +resource "ibm_is_share" "example1" { access_control_mode = "security_group" zone = "br-sao-2" size = 9600 name = "my-example-share1" profile = "dp2" } -resource "ibm_is_subnet" "example" { +resource "ibm_is_subnet" "example1" { # provider = ibm.sao name = "my-subnet" - vpc = ibm_is_vpc.vpc2.id + vpc = ibm_is_vpc.example1.id zone = "br-sao-2" total_ipv4_address_count = 16 } resource "ibm_is_share_mount_target" "example1" { - share = ibm_is_share.example.id + share = ibm_is_share.example1.id virtual_network_interface { primary_ip { name = "my-example-pip" } - subnet = ibm_is_subnet.example.id + subnet = ibm_is_subnet.example1.id name = "my-example-vni" } name = "my-example-mount-target" @@ -80,8 +80,8 @@ resource "ibm_is_subnet_reserved_ip" "example" { subnet = ibm_is_subnet.example.id name = "my-example-resip" } -resource "ibm_is_share_mount_target" "mtarget1" { - share = ibm_is_share.share.id +resource "ibm_is_share_mount_target" "example" { + share = ibm_is_share.example.id virtual_network_interface { primary_ip { reserved_ip = ibm_is_subnet_reserved_ip.example.reserved_ip From 323c934e5d03e282d3c4b476cab512cc18208464 Mon Sep 17 00:00:00 2001 From: Massimo Caprinali Date: Thu, 2 Nov 2023 10:54:22 +0100 Subject: [PATCH 24/58] Update README.md Fix Code Engine Go SDK url --- ibm/service/codeengine/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ibm/service/codeengine/README.md b/ibm/service/codeengine/README.md index ba10429863..e4283df92a 100644 --- a/ibm/service/codeengine/README.md +++ b/ibm/service/codeengine/README.md @@ -8,4 +8,4 @@ This area is primarily for IBM provider contributors and maintainers. For inform * IBM Provider Docs: [Home](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs) * IBM Provider Docs: [One of the resources](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/code_engine_app) * IBM API Docs: [IBM API Docs for ]() -* IBM SDK: [IBM SDK for ](https://github.com/IBM/appconfiguration-go-admin-sdk/tree/master/codeenginev2) +* IBM SDK: [IBM SDK for ](https://github.com/IBM/code-engine-go-sdk/tree/main/codeenginev2) From a85a3c908ba9dd777e7d11525969d172d4382024 Mon Sep 17 00:00:00 2001 From: Riccardo Angelilli Date: Thu, 9 Nov 2023 15:58:35 +0100 Subject: [PATCH 25/58] Update terraform to the latest API level for Project service (#4813) * fix: generate project code Signed-off-by: dvesperini * fix: fix build Signed-off-by: dvesperini * fix: add examples and markdown files Signed-off-by: dvesperini * fix: mark new false positive secrets Signed-off-by: dvesperini * fix: fix review Signed-off-by: dvesperini * fix: fix links Signed-off-by: dvesperini * fix: fix test Signed-off-by: dvesperini * fix: remove regex check Signed-off-by: dvesperini * fix: fix id to project_id Signed-off-by: dvesperini * fix: fix integration test project Signed-off-by: dvesperini * fix: fix resource_group values Signed-off-by: dvesperini * fix: last changes Signed-off-by: dvesperini * fix integration test * fix integration test * fix integration test * fix integration test * fix integration test * fix integration test * fix name * pr comments * pr comments * fix doc * fix doc * new version * new version * new version * new version * update code to the latest SDK level * fix integration tests * fix integration tests * fix integration tests * fix integration tests * address PR comment * typo * typo * terraform * terraform * terraform * terraform * terraform * terraform * terraform * terraform * terraform * terraform * add wait for create and delete * add wait for create and delete * . * fix integration tests * fix integration tests * fix integration tests * fix integration tests * fix integration tests * regenerate * new code generation * new generated code * point to latest sdk * point to latest sdk * adjust test cases and doc * adjust samples * update to latest node sdk * merge with master * Update project_instance.html.markdown Fixing formatting issues * Update project_event_notification.html.markdown * Update README.md * Update variables.tf * Update project_event_notification.html.markdown * new version * terraform * terraform * terraform * terraform * terraform * terraform * terraform * terraform * terraform * terraform * feat: projects graph fragment pattern * align with origin/master * update test cases * restore README.md and versions.tf to master branch * remove duplicated entries * feat: graph fragment pattern poc * feat: restore definition blocks * regenerate the terraform code based on latest YAML * regenerate the terraform code based on latest YAML * regenerate the terraform code based on latest YAML * update doc * update doc * fix test cases * commit generated code * commit fix * commit fix * test cases * test cases * test cases * test cases * updates * upgrade to latest go sdk * update generated doc * update generated code * updated secrets baseline * update code to latest API changes * secrets * fix secrets * update samples with real values * update secrets * update secrets * update generated code to the latest API definition * update secrets baseline * merge with master * merge with master * merge with master * update code to the latest SDK level * address some review comments * address PR comments * address PR comments * update to latest sdk level * update to latest sdk level * update to latest sdk level * merge with master * update to the latest sdk level * format test case * regenerate the code with generator fixes --------- Signed-off-by: dvesperini Co-authored-by: dvesperini Co-authored-by: knee-na <130502432+knee-na@users.noreply.github.com> Co-authored-by: Mark-Kulube --- .secrets.baseline | 176 ++-- examples/ibm-project/README.md | 58 +- examples/ibm-project/main.tf | 43 +- examples/ibm-project/outputs.tf | 16 +- examples/ibm-project/variables.tf | 41 +- examples/ibm-project/versions.tf | 2 +- go.mod | 2 +- go.sum | 4 +- ibm/acctest/acctest.go | 8 + ibm/provider/provider.go | 9 +- .../project/data_source_ibm_project.go | 532 ++++++++++++ .../project/data_source_ibm_project_config.go | 494 +++++++++++ .../data_source_ibm_project_config_test.go | 74 ++ ...a_source_ibm_project_event_notification.go | 444 ---------- ...rce_ibm_project_event_notification_test.go | 99 --- .../project/data_source_ibm_project_test.go | 56 ++ ibm/service/project/resource_ibm_project.go | 787 ++++++++++++++++++ .../project/resource_ibm_project_config.go | 757 +++++++++++++++++ .../resource_ibm_project_config_test.go | 138 +++ .../project/resource_ibm_project_instance.go | 646 -------------- .../resource_ibm_project_instance_test.go | 187 ----- .../project/resource_ibm_project_test.go | 111 +++ website/docs/d/project.html.markdown | 129 +++ website/docs/d/project_config.html.markdown | 117 +++ .../project_event_notification.html.markdown | 107 --- website/docs/r/project.html.markdown | 132 +++ website/docs/r/project_config.html.markdown | 138 +++ website/docs/r/project_instance.html.markdown | 117 --- 28 files changed, 3706 insertions(+), 1718 deletions(-) create mode 100644 ibm/service/project/data_source_ibm_project.go create mode 100644 ibm/service/project/data_source_ibm_project_config.go create mode 100644 ibm/service/project/data_source_ibm_project_config_test.go delete mode 100644 ibm/service/project/data_source_ibm_project_event_notification.go delete mode 100644 ibm/service/project/data_source_ibm_project_event_notification_test.go create mode 100644 ibm/service/project/data_source_ibm_project_test.go create mode 100644 ibm/service/project/resource_ibm_project.go create mode 100644 ibm/service/project/resource_ibm_project_config.go create mode 100644 ibm/service/project/resource_ibm_project_config_test.go delete mode 100644 ibm/service/project/resource_ibm_project_instance.go delete mode 100644 ibm/service/project/resource_ibm_project_instance_test.go create mode 100644 ibm/service/project/resource_ibm_project_test.go create mode 100644 website/docs/d/project.html.markdown create mode 100644 website/docs/d/project_config.html.markdown delete mode 100644 website/docs/d/project_event_notification.html.markdown create mode 100644 website/docs/r/project.html.markdown create mode 100644 website/docs/r/project_config.html.markdown delete mode 100644 website/docs/r/project_instance.html.markdown diff --git a/.secrets.baseline b/.secrets.baseline index abde119aa3..0d60faf91f 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -3,7 +3,7 @@ "files": "go.mod|go.sum|.*.map|^.secrets.baseline$", "lines": null }, - "generated_at": "2023-10-18T18:46:12Z", + "generated_at": "2023-10-30T15:56:24Z", "plugins_used": [ { "name": "AWSKeyDetector" @@ -472,7 +472,7 @@ "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", "is_secret": false, "is_verified": false, - "line_number": 44, + "line_number": 51, "type": "Secret Keyword", "verified_result": null } @@ -547,6 +547,16 @@ "verified_result": null } ], + "examples/ibm-project/main.tf": [ + { + "hashed_secret": "06d988e96c3d9325c9fbc7c0ef3c6c0f2b4eb8e7", + "is_secret": false, + "is_verified": false, + "line_number": 13, + "type": "Secret Keyword", + "verified_result": null + } + ], "examples/ibm-satellite/README.md": [ { "hashed_secret": "91199272d5d6a574a51722ca6f3d1148edb1a0e7", @@ -742,7 +752,7 @@ "hashed_secret": "731438016c5ab94431f61820f35e3ae5f8ad6004", "is_secret": false, "is_verified": false, - "line_number": 383, + "line_number": 401, "type": "Secret Keyword", "verified_result": null }, @@ -750,7 +760,7 @@ "hashed_secret": "12da2e35d6b50c902c014f1ab9e3032650368df7", "is_secret": false, "is_verified": false, - "line_number": 389, + "line_number": 407, "type": "Secret Keyword", "verified_result": null }, @@ -758,7 +768,7 @@ "hashed_secret": "813274ccae5b6b509379ab56982d862f7b5969b6", "is_secret": false, "is_verified": false, - "line_number": 1100, + "line_number": 1118, "type": "Base64 High Entropy String", "verified_result": null } @@ -768,7 +778,7 @@ "hashed_secret": "9184b0c38101bf24d78b2bb0d044deb1d33696fc", "is_secret": false, "is_verified": false, - "line_number": 130, + "line_number": 131, "type": "Secret Keyword", "verified_result": null }, @@ -776,7 +786,7 @@ "hashed_secret": "c427f185ddcb2440be9b77c8e45f1cd487a2e790", "is_secret": false, "is_verified": false, - "line_number": 1427, + "line_number": 1438, "type": "Base64 High Entropy String", "verified_result": null }, @@ -784,7 +794,7 @@ "hashed_secret": "1f7e33de15e22de9d2eaf502df284ed25ca40018", "is_secret": false, "is_verified": false, - "line_number": 1494, + "line_number": 1505, "type": "Secret Keyword", "verified_result": null }, @@ -792,7 +802,7 @@ "hashed_secret": "1f614c2eb6b3da22d89bd1b9fd47d7cb7c8fc670", "is_secret": false, "is_verified": false, - "line_number": 3250, + "line_number": 3298, "type": "Secret Keyword", "verified_result": null }, @@ -800,7 +810,7 @@ "hashed_secret": "7abfce65b8504403afc25c9790f358d513dfbcc6", "is_secret": false, "is_verified": false, - "line_number": 3263, + "line_number": 3311, "type": "Secret Keyword", "verified_result": null }, @@ -808,7 +818,7 @@ "hashed_secret": "0c2d85bf9a9b1579b16f220a4ea8c3d62b2e24b1", "is_secret": false, "is_verified": false, - "line_number": 3304, + "line_number": 3352, "type": "Secret Keyword", "verified_result": null } @@ -846,7 +856,7 @@ "hashed_secret": "c8b6f5ef11b9223ac35a5663975a466ebe7ebba9", "is_secret": false, "is_verified": false, - "line_number": 1779, + "line_number": 1800, "type": "Secret Keyword", "verified_result": null }, @@ -854,7 +864,7 @@ "hashed_secret": "8abf4899c01104241510ba87685ad4de76b0c437", "is_secret": false, "is_verified": false, - "line_number": 1785, + "line_number": 1806, "type": "Secret Keyword", "verified_result": null } @@ -2070,7 +2080,7 @@ "hashed_secret": "deab23f996709b4e3d14e5499d1cc2de677bfaa8", "is_secret": false, "is_verified": false, - "line_number": 1559, + "line_number": 1340, "type": "Secret Keyword", "verified_result": null }, @@ -2078,7 +2088,7 @@ "hashed_secret": "20a25bac21219ffff1904bde871ded4027eca2f8", "is_secret": false, "is_verified": false, - "line_number": 2212, + "line_number": 1927, "type": "Secret Keyword", "verified_result": null }, @@ -2086,7 +2096,7 @@ "hashed_secret": "b732fb611fd46a38e8667f9972e0cde777fbe37f", "is_secret": false, "is_verified": false, - "line_number": 2231, + "line_number": 1946, "type": "Secret Keyword", "verified_result": null }, @@ -2094,7 +2104,7 @@ "hashed_secret": "1f5e25be9b575e9f5d39c82dfd1d9f4d73f1975c", "is_secret": false, "is_verified": false, - "line_number": 2496, + "line_number": 2186, "type": "Secret Keyword", "verified_result": null } @@ -2104,7 +2114,7 @@ "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", "is_secret": false, "is_verified": false, - "line_number": 726, + "line_number": 731, "type": "Secret Keyword", "verified_result": null } @@ -2114,7 +2124,7 @@ "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", "is_secret": false, "is_verified": false, - "line_number": 189, + "line_number": 205, "type": "Secret Keyword", "verified_result": null } @@ -2124,7 +2134,7 @@ "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", "is_secret": false, "is_verified": false, - "line_number": 779, + "line_number": 823, "type": "Secret Keyword", "verified_result": null } @@ -2144,7 +2154,7 @@ "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", "is_secret": false, "is_verified": false, - "line_number": 199, + "line_number": 213, "type": "Secret Keyword", "verified_result": null } @@ -2154,7 +2164,7 @@ "hashed_secret": "68ab9ef0953865fef0558010a9f7afcef110d5b8", "is_secret": false, "is_verified": false, - "line_number": 199, + "line_number": 215, "type": "Secret Keyword", "verified_result": null }, @@ -2162,7 +2172,7 @@ "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", "is_secret": false, "is_verified": false, - "line_number": 257, + "line_number": 280, "type": "Secret Keyword", "verified_result": null } @@ -2172,7 +2182,7 @@ "hashed_secret": "5667b8489a17faa9ef54941db31ed762be280bec", "is_secret": false, "is_verified": false, - "line_number": 141, + "line_number": 157, "type": "Secret Keyword", "verified_result": null }, @@ -2180,7 +2190,7 @@ "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", "is_secret": false, "is_verified": false, - "line_number": 173, + "line_number": 189, "type": "Secret Keyword", "verified_result": null } @@ -2190,7 +2200,7 @@ "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", "is_secret": false, "is_verified": false, - "line_number": 200, + "line_number": 214, "type": "Secret Keyword", "verified_result": null } @@ -2200,7 +2210,7 @@ "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", "is_secret": false, "is_verified": false, - "line_number": 134, + "line_number": 150, "type": "Secret Keyword", "verified_result": null } @@ -2210,7 +2220,7 @@ "hashed_secret": "e407cbe1c64cadb886be6f42907e2dd1c06ca080", "is_secret": false, "is_verified": false, - "line_number": 626, + "line_number": 490, "type": "Secret Keyword", "verified_result": null }, @@ -2218,7 +2228,7 @@ "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", "is_secret": false, "is_verified": false, - "line_number": 991, + "line_number": 658, "type": "Secret Keyword", "verified_result": null } @@ -2228,7 +2238,7 @@ "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", "is_secret": false, "is_verified": false, - "line_number": 209, + "line_number": 223, "type": "Secret Keyword", "verified_result": null } @@ -2238,7 +2248,7 @@ "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", "is_secret": false, "is_verified": false, - "line_number": 251, + "line_number": 272, "type": "Secret Keyword", "verified_result": null } @@ -2512,7 +2522,7 @@ "hashed_secret": "b02fa7fd7ca08b5dc86c2548e40f8a21171ef977", "is_secret": false, "is_verified": false, - "line_number": 259, + "line_number": 265, "type": "Secret Keyword", "verified_result": null }, @@ -2520,7 +2530,7 @@ "hashed_secret": "d4c3d66fd0c38547a3c7a4c6bdc29c36911bc030", "is_secret": false, "is_verified": false, - "line_number": 296, + "line_number": 302, "type": "Secret Keyword", "verified_result": null } @@ -2782,7 +2792,7 @@ "hashed_secret": "b732fb611fd46a38e8667f9972e0cde777fbe37f", "is_secret": false, "is_verified": false, - "line_number": 403, + "line_number": 402, "type": "Secret Keyword", "verified_result": null } @@ -2792,7 +2802,7 @@ "hashed_secret": "5df29b80b97dab81130058ac9af4a9b9d1c091b4", "is_secret": false, "is_verified": false, - "line_number": 247, + "line_number": 276, "type": "Secret Keyword", "verified_result": null } @@ -2802,7 +2812,7 @@ "hashed_secret": "b732fb611fd46a38e8667f9972e0cde777fbe37f", "is_secret": false, "is_verified": false, - "line_number": 292, + "line_number": 291, "type": "Secret Keyword", "verified_result": null } @@ -2812,7 +2822,7 @@ "hashed_secret": "5df29b80b97dab81130058ac9af4a9b9d1c091b4", "is_secret": false, "is_verified": false, - "line_number": 216, + "line_number": 239, "type": "Secret Keyword", "verified_result": null } @@ -2827,6 +2837,62 @@ "verified_result": null } ], + "ibm/service/project/data_source_ibm_project_config.go": [ + { + "hashed_secret": "3046d9f6cfaaeea6eed9bb7a4ab010fe49b0cfd4", + "is_secret": false, + "is_verified": false, + "line_number": 190, + "type": "Secret Keyword", + "verified_result": null + }, + { + "hashed_secret": "92f08f2d9a0dc3f0d4cb3796435a48508cf59ecd", + "is_secret": false, + "is_verified": false, + "line_number": 461, + "type": "Secret Keyword", + "verified_result": null + } + ], + "ibm/service/project/data_source_ibm_project_config_test.go": [ + { + "hashed_secret": "347cd9c53ff77d41a7b22aa56c7b4efaf54658e3", + "is_secret": false, + "is_verified": false, + "line_number": 58, + "type": "Secret Keyword", + "verified_result": null + } + ], + "ibm/service/project/resource_ibm_project_config.go": [ + { + "hashed_secret": "3046d9f6cfaaeea6eed9bb7a4ab010fe49b0cfd4", + "is_secret": false, + "is_verified": false, + "line_number": 92, + "type": "Secret Keyword", + "verified_result": null + }, + { + "hashed_secret": "92f08f2d9a0dc3f0d4cb3796435a48508cf59ecd", + "is_secret": false, + "is_verified": false, + "line_number": 693, + "type": "Secret Keyword", + "verified_result": null + } + ], + "ibm/service/project/resource_ibm_project_config_test.go": [ + { + "hashed_secret": "347cd9c53ff77d41a7b22aa56c7b4efaf54658e3", + "is_secret": false, + "is_verified": false, + "line_number": 61, + "type": "Secret Keyword", + "verified_result": null + } + ], "ibm/service/pushnotification/resource_ibm_push_notification_chrome.go": [ { "hashed_secret": "8a4036fbf3e13c7a84bac77ddae25de1cdfc4d43", @@ -3676,7 +3742,7 @@ "hashed_secret": "f855f5027fd8fdb2df3f6a6f1cf858fffcbedb0c", "is_secret": false, "is_verified": false, - "line_number": 93883, + "line_number": 96615, "type": "Secret Keyword", "verified_result": null }, @@ -3684,7 +3750,7 @@ "hashed_secret": "5fb0fa884132a8724a8d7cba55853737e442adbd", "is_secret": false, "is_verified": false, - "line_number": 116309, + "line_number": 119404, "type": "Secret Keyword", "verified_result": null }, @@ -3692,7 +3758,7 @@ "hashed_secret": "1e5c2f367f02e47a8c160cda1cd9d91decbac441", "is_secret": false, "is_verified": false, - "line_number": 147225, + "line_number": 151612, "type": "Secret Keyword", "verified_result": null } @@ -3962,7 +4028,7 @@ "hashed_secret": "d47dcacc720a39e236679ac3e311a0d58bb6519e", "is_secret": false, "is_verified": false, - "line_number": 153, + "line_number": 152, "type": "Secret Keyword", "verified_result": null }, @@ -3970,7 +4036,7 @@ "hashed_secret": "e66e7d67fdf3c596c435fc7828b13205e4950a0f", "is_secret": false, "is_verified": false, - "line_number": 155, + "line_number": 154, "type": "Secret Keyword", "verified_result": null } @@ -4172,7 +4238,7 @@ "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", "is_secret": false, "is_verified": false, - "line_number": 488, + "line_number": 494, "type": "Secret Keyword", "verified_result": null }, @@ -4180,7 +4246,7 @@ "hashed_secret": "e407cbe1c64cadb886be6f42907e2dd1c06ca080", "is_secret": false, "is_verified": false, - "line_number": 553, + "line_number": 559, "type": "Secret Keyword", "verified_result": null }, @@ -4188,7 +4254,7 @@ "hashed_secret": "91199272d5d6a574a51722ca6f3d1148edb1a0e7", "is_secret": false, "is_verified": false, - "line_number": 577, + "line_number": 583, "type": "Secret Keyword", "verified_result": null } @@ -4223,16 +4289,6 @@ "verified_result": null } ], - "website/docs/r/en_destination_huawei.html.markdown": [ - { - "hashed_secret": "167a06dbc64c344aeb0bd749d1962d2ef9731f06", - "is_secret": false, - "is_verified": false, - "line_number": 24, - "type": "Secret Keyword", - "verified_result": null - } - ], "website/docs/r/en_destination_ios.html.markdown": [ { "hashed_secret": "e1e03a31507ee39abca8fc86cf37b8347dc32002", @@ -4413,6 +4469,16 @@ "verified_result": null } ], + "website/docs/r/project_config.html.markdown": [ + { + "hashed_secret": "06d988e96c3d9325c9fbc7c0ef3c6c0f2b4eb8e7", + "is_secret": false, + "is_verified": false, + "line_number": 23, + "type": "Secret Keyword", + "verified_result": null + } + ], "website/docs/r/resource_instance.html.markdown": [ { "hashed_secret": "d62552e3d0606ac398b6ee5cbd49e763ac9c3933", diff --git a/examples/ibm-project/README.md b/examples/ibm-project/README.md index 010899110e..2c985f19d0 100644 --- a/examples/ibm-project/README.md +++ b/examples/ibm-project/README.md @@ -2,13 +2,14 @@ This example illustrates how to use the ProjectV1 -These types of resources are supported: +The following types of resources are supported: -* Project definition +* project_config +* project ## Usage -To run this example you need to execute: +To run this example, execute the following commands: ```bash $ terraform init @@ -21,25 +22,39 @@ Run `terraform destroy` when you don't need these resources. ## ProjectV1 resources -project_instance resource: +project_config resource: ```hcl -resource "project_instance" "project_instance" { - name = var.project_instance_name - description = var.project_instance_description - configs = var.project_instance_configs - resource_group = var.project_instance_resource_group - location = var.project_instance_location +resource "project_config" "project_config_instance" { + project_id = ibm_project.project_instance.project_id + definition = var.project_config_definition } ``` +project resource: -## ProjectV1 Data sources +```hcl +resource "project" "project_instance" { + location = var.project_location + resource_group = var.project_resource_group + definition = var.project_definition +} +``` + +## ProjectV1 data sources + +project_config data source: -project_event_notification data source: +```hcl +data "project_config" "project_config_instance" { + project_id = ibm_project.project_instance.id + project_config_id = ibm_project_config.project_config_instance.project_config_id +} +``` +project data source: ```hcl -data "project_event_notification" "project_event_notification_instance" { - id = var.project_event_notification_id +data "project" "project_instance" { + project_id = ibm_project.project_instance.id } ``` @@ -68,16 +83,19 @@ data "project_event_notification" "project_event_notification_instance" { | Name | Description | Type | Required | |------|-------------|------|---------| | ibmcloud\_api\_key | IBM Cloud API key | `string` | true | -| name | The project name. | `string` | true | -| description | A project's descriptive text. | `string` | false | -| configs | The project configurations. | `list()` | false | +| project_id | The unique project ID. | `string` | true | +| schematics | A schematics workspace associated to a project configuration. | `` | false | +| definition | The type and output of a project configuration. | `` | true | +| location | The IBM Cloud location where a resource is deployed. | `string` | true | | resource_group | The resource group where the project's data and tools are created. | `string` | true | -| location | The location where the project's data and tools are created. | `string` | true | +| definition | The definition of the project. | `` | true | +| project_id | The unique project ID. | `string` | true | +| project_config_id | The unique config ID. | `string` | true | | project_id | The unique project ID. | `string` | true | ## Outputs | Name | Description | |------|-------------| -| project_instance | project_instance object | -| project_event_notification | project_event_notification object | +| project_config | project_config object | +| project | project object | diff --git a/examples/ibm-project/main.tf b/examples/ibm-project/main.tf index d3348263c7..79837ee3fb 100644 --- a/examples/ibm-project/main.tf +++ b/examples/ibm-project/main.tf @@ -2,14 +2,16 @@ provider "ibm" { ibmcloud_api_key = var.ibmcloud_api_key } -// Provision project_instance resource instance -resource "ibm_project_instance" "project_instance" { - name = "My static website" - description = "Sample static website test using the IBM catalog deployable architecture" - configs { +// Provision project_config resource instance +resource "ibm_project_config" "project_config_instance" { + project_id = ibm_project.project_instance.project_id + definition { name = "static-website-dev" - labels = [ "env:dev", "billing:internal" ] description = "Website - development" + authorizations { + method = "api_key" + api_key = "" + } locator_id = "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.145be7c1-9ec4-4719-b586-584ee52fbed0-global" input { name = "app_repo_name" @@ -19,15 +21,26 @@ resource "ibm_project_instance" "project_instance" { value = "static-website-dev-app-repo" } } - resource_group = "Default" - location = "us-south" } -// Data source is not linked to a resource instance -// Uncomment if an existing data source instance exists -/* -// Create project_event_notification data source -data "ibm_project_event_notification" "project_event_notification_instance" { - project_id = var.project_event_notification_id +// Provision project resource instance +resource "ibm_project" "project_instance" { + location = var.project_location + resource_group = var.project_resource_group + definition { + name = "My static website" + description = "Sample static website test using the IBM catalog deployable architecture" + destroy_on_delete = true + } +} + +// Create project_config data source +data "ibm_project_config" "project_config_instance" { + project_id = ibm_project_config.project_config_instance.project_id + project_config_id = ibm_project_config.project_config_instance.project_config_id +} + +// Create project data source +data "ibm_project" "project_instance" { + project_id = ibm_project.project_instance.id } -*/ diff --git a/examples/ibm-project/outputs.tf b/examples/ibm-project/outputs.tf index 8a59bbf786..277309cbec 100644 --- a/examples/ibm-project/outputs.tf +++ b/examples/ibm-project/outputs.tf @@ -1,6 +1,12 @@ -// This allows project_instance data to be referenced by other resources and the terraform CLI -// Modify this if only certain data should be exposed -output "ibm_project_instance" { - value = ibm_project_instance.project_instance - description = "project_instance resource instance" +// This output allows project_config data to be referenced by other resources and the terraform CLI +// Modify this output if only certain data should be exposed +output "ibm_project_config" { + value = ibm_project_config.project_config_instance + description = "project_config resource instance" +} +// This output allows project data to be referenced by other resources and the terraform CLI +// Modify this output if only certain data should be exposed +output "ibm_project" { + value = ibm_project.project_instance + description = "project resource instance" } diff --git a/examples/ibm-project/variables.tf b/examples/ibm-project/variables.tf index 240c070647..b32094d31b 100644 --- a/examples/ibm-project/variables.tf +++ b/examples/ibm-project/variables.tf @@ -3,31 +3,40 @@ variable "ibmcloud_api_key" { type = string } -// Resource arguments for project_instance -variable "project_instance_name" { - description = "The project name." +// Resource arguments for project_config +variable "project_config_project_id" { + description = "The unique project ID." + type = string + default = "project_id" +} + +// Resource arguments for project +variable "project_location" { + description = "The IBM Cloud location where a resource is deployed." type = string - default = "acme-microservice" + default = "us-south" } -variable "project_instance_description" { - description = "A project's descriptive text." +variable "project_resource_group" { + description = "The resource group where the project's data and tools are created." type = string - default = "A microservice to deploy on top of ACME infrastructure." + default = "Default" } -variable "project_instance_resource_group" { - description = "Group name of the customized collection of resources." + +// Data source arguments for project_config +variable "project_config_project_id" { + description = "The unique project ID." type = string - default = "resource_group" + default = "project_id" } -variable "project_instance_location" { - description = "Data center locations for resource deployment." +variable "project_config_id" { + description = "The unique config ID." type = string - default = "location" + default = "project_config_id" } -// Data source arguments for project_event_notification -variable "project_event_notification_id" { +// Data source arguments for project +variable "project_id" { description = "The unique project ID." type = string - default = "id" + default = "project_id" } diff --git a/examples/ibm-project/versions.tf b/examples/ibm-project/versions.tf index ee0f9705a2..d9b6f790b9 100644 --- a/examples/ibm-project/versions.tf +++ b/examples/ibm-project/versions.tf @@ -1,3 +1,3 @@ terraform { required_version = ">= 0.12" -} \ No newline at end of file +} diff --git a/go.mod b/go.mod index 8f6c7bf23a..8cec155f12 100644 --- a/go.mod +++ b/go.mod @@ -25,7 +25,7 @@ require ( github.com/IBM/keyprotect-go-client v0.12.2 github.com/IBM/networking-go-sdk v0.42.2 github.com/IBM/platform-services-go-sdk v0.52.0 - github.com/IBM/project-go-sdk v0.0.10 + github.com/IBM/project-go-sdk v0.0.99 github.com/IBM/push-notifications-go-sdk v0.0.0-20210310100607-5790b96c47f5 github.com/IBM/scc-go-sdk/v5 v5.1.3 github.com/IBM/schematics-go-sdk v0.2.2 diff --git a/go.sum b/go.sum index c6cc71647e..e1f9e3e9ff 100644 --- a/go.sum +++ b/go.sum @@ -157,8 +157,8 @@ github.com/IBM/networking-go-sdk v0.42.2 h1:caqjx4jyFHi10Vlf3skHvlL6K3YJRVstsmCB github.com/IBM/networking-go-sdk v0.42.2/go.mod h1:lTUZwtUkMANMnrLHFIgRhHrkBfwASY/Iho1fabaPHxo= github.com/IBM/platform-services-go-sdk v0.52.0 h1:hbf640xE8T0Rwy2IUf5Pu4OATabGS4IDMnEInXUXs4o= github.com/IBM/platform-services-go-sdk v0.52.0/go.mod h1:6LxcUhIaSLP4SuQJXF9oLXBamSQogs5D9BcVwr4hmfU= -github.com/IBM/project-go-sdk v0.0.10 h1:vHSuemwZ4S4c6BEb22tzsEcPTs/5LnZ0yKpP3GG/GL8= -github.com/IBM/project-go-sdk v0.0.10/go.mod h1:lqe0M4cKvABI1iHR1b+KfasVcxQL6nl2VJ8eOyQs8Ig= +github.com/IBM/project-go-sdk v0.0.99 h1:rQU/uQLW83OsAUfP/d8fFSIjp8ooEQIFjalYQD4i4aY= +github.com/IBM/project-go-sdk v0.0.99/go.mod h1:lqe0M4cKvABI1iHR1b+KfasVcxQL6nl2VJ8eOyQs8Ig= github.com/IBM/push-notifications-go-sdk v0.0.0-20210310100607-5790b96c47f5 h1:NPUhkoOCRuv3OFWt19PmwjXGGTKlvmbuPg9fUrBUNe4= github.com/IBM/push-notifications-go-sdk v0.0.0-20210310100607-5790b96c47f5/go.mod h1:b07XHUVh0XYnQE9s2mqgjYST1h9buaQNqN4EcKhOsX0= github.com/IBM/sarama v1.41.2 h1:ZDBZfGPHAD4uuAtSv4U22fRZBgst0eEwGFzLj0fb85c= diff --git a/ibm/acctest/acctest.go b/ibm/acctest/acctest.go index 19b72beb82..7ca53ec073 100644 --- a/ibm/acctest/acctest.go +++ b/ibm/acctest/acctest.go @@ -309,6 +309,9 @@ var ( // for IAM Identity var IamIdentityAssignmentTargetAccountId string +// Projects +var ProjectsConfigApiKey string + func init() { testlogger := os.Getenv("TF_LOG") if testlogger != "" { @@ -317,6 +320,11 @@ func init() { IamIdentityAssignmentTargetAccountId = os.Getenv("IAM_IDENTITY_ASSIGNMENT_TARGET_ACCOUNT") + ProjectsConfigApiKey = os.Getenv("IBM_PROJECTS_CONFIG_APIKEY") + if ProjectsConfigApiKey == "" { + fmt.Println("[WARN] Set the environment variable IBM_PROJECTS_CONFIG_APIKEY for testing IBM Projects Config resources, the tests will fail if this is not set") + } + AppIDTenantID = os.Getenv("IBM_APPID_TENANT_ID") if AppIDTenantID == "" { fmt.Println("[WARN] Set the environment variable IBM_APPID_TENANT_ID for testing AppID resources, AppID tests will fail if this is not set") diff --git a/ibm/provider/provider.go b/ibm/provider/provider.go index 7f33857001..bdc22fc9a5 100644 --- a/ibm/provider/provider.go +++ b/ibm/provider/provider.go @@ -857,7 +857,8 @@ func Provider() *schema.Provider { "ibm_code_engine_secret": codeengine.DataSourceIbmCodeEngineSecret(), // Added for Project - "ibm_project_event_notification": project.DataSourceIbmProjectEventNotification(), + "ibm_project": project.DataSourceIbmProject(), + "ibm_project_config": project.DataSourceIbmProjectConfig(), }, ResourcesMap: map[string]*schema.Resource{ @@ -1369,7 +1370,8 @@ func Provider() *schema.Provider { "ibm_code_engine_secret": codeengine.ResourceIbmCodeEngineSecret(), // Added for Project - "ibm_project_instance": project.ResourceIbmProjectInstance(), + "ibm_project": project.ResourceIbmProject(), + "ibm_project_config": project.ResourceIbmProjectConfig(), }, ConfigureFunc: providerConfigure, @@ -1625,7 +1627,8 @@ func Validator() validate.ValidatorDict { "ibm_code_engine_secret": codeengine.ResourceIbmCodeEngineSecretValidator(), // Added for Project - "ibm_project_instance": project.ResourceIbmProjectInstanceValidator(), + "ibm_project": project.ResourceIbmProjectValidator(), + "ibm_project_config": project.ResourceIbmProjectConfigValidator(), }, DataSourceValidatorDictionary: map[string]*validate.ResourceValidator{ "ibm_is_subnet": vpc.DataSourceIBMISSubnetValidator(), diff --git a/ibm/service/project/data_source_ibm_project.go b/ibm/service/project/data_source_ibm_project.go new file mode 100644 index 0000000000..277d769e3a --- /dev/null +++ b/ibm/service/project/data_source_ibm_project.go @@ -0,0 +1,532 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package project + +import ( + "context" + "fmt" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/project-go-sdk/projectv1" +) + +func DataSourceIbmProject() *schema.Resource { + return &schema.Resource{ + ReadContext: dataSourceIbmProjectRead, + + Schema: map[string]*schema.Schema{ + "project_id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The unique project ID.", + }, + "crn": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "An IBM Cloud resource name, which uniquely identifies a resource.", + }, + "created_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", + }, + "cumulative_needs_attention_view": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The cumulative list of needs attention items for a project. If the view is successfully retrieved, an array which could be empty is returned.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "event": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The event name.", + }, + "event_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A unique ID for that individual event.", + }, + "config_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A unique ID for the configuration.", + }, + "config_version": &schema.Schema{ + Type: schema.TypeInt, + Computed: true, + Description: "The version number of the configuration.", + }, + }, + }, + }, + "cumulative_needs_attention_view_error": &schema.Schema{ + Type: schema.TypeBool, + Computed: true, + Description: "True indicates that the fetch of the needs attention items failed. It only exists if there was an error while retrieving the cumulative needs attention view.", + }, + "location": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The IBM Cloud location where a resource is deployed.", + }, + "resource_group": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The resource group where the project's data and tools are created.", + }, + "state": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The project status value.", + }, + "event_notifications_crn": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The CRN of the event notifications instance if one is connected to this project.", + }, + "configs": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The project configurations. These configurations are only included in the response of creating a project if a configs array is specified in the request payload.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration.", + }, + "version": &schema.Schema{ + Type: schema.TypeInt, + Computed: true, + Description: "The version of the configuration.", + }, + "state": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The state of the configuration.", + }, + "created_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", + }, + "modified_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", + }, + "href": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A URL.", + }, + "definition": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The name and description of a project configuration.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The configuration name.", + }, + "description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A project configuration description.", + }, + }, + }, + }, + "project": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The project referenced by this resource.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The unique ID.", + }, + "definition": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The definition of the project reference.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The name of the project.", + }, + }, + }, + }, + "crn": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "An IBM Cloud resource name, which uniquely identifies a resource.", + }, + "href": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A URL.", + }, + }, + }, + }, + }, + }, + }, + "environments": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The project environments. These environments are only included in the response if project environments were created on the project.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The environment id as a friendly name.", + }, + "project": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The project referenced by this resource.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The unique ID.", + }, + "definition": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The definition of the project reference.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The name of the project.", + }, + }, + }, + }, + "crn": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "An IBM Cloud resource name, which uniquely identifies a resource.", + }, + "href": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A URL.", + }, + }, + }, + }, + "created_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", + }, + "href": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A URL.", + }, + "definition": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The environment definition used in the project collection.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The name of the environment.", + }, + "description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The description of the environment.", + }, + }, + }, + }, + }, + }, + }, + "definition": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The definition of the project.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The name of the project.", + }, + "description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A brief explanation of the project's use in the configuration of a deployable architecture. It is possible to create a project without providing a description.", + }, + "destroy_on_delete": &schema.Schema{ + Type: schema.TypeBool, + Computed: true, + Description: "The policy that indicates whether the resources are destroyed or not when a project is deleted.", + }, + }, + }, + }, + }, + } +} + +func dataSourceIbmProjectRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + projectClient, err := meta.(conns.ClientSession).ProjectV1() + if err != nil { + return diag.FromErr(err) + } + + getProjectOptions := &projectv1.GetProjectOptions{} + + getProjectOptions.SetID(d.Get("project_id").(string)) + + project, response, err := projectClient.GetProjectWithContext(context, getProjectOptions) + if err != nil { + log.Printf("[DEBUG] GetProjectWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("GetProjectWithContext failed %s\n%s", err, response)) + } + + d.SetId(fmt.Sprintf("%s", *getProjectOptions.ID)) + + if err = d.Set("crn", project.Crn); err != nil { + return diag.FromErr(fmt.Errorf("Error setting crn: %s", err)) + } + + if err = d.Set("created_at", flex.DateTimeToString(project.CreatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting created_at: %s", err)) + } + + cumulativeNeedsAttentionView := []map[string]interface{}{} + if project.CumulativeNeedsAttentionView != nil { + for _, modelItem := range project.CumulativeNeedsAttentionView { + modelMap, err := dataSourceIbmProjectCumulativeNeedsAttentionToMap(&modelItem) + if err != nil { + return diag.FromErr(err) + } + cumulativeNeedsAttentionView = append(cumulativeNeedsAttentionView, modelMap) + } + } + if err = d.Set("cumulative_needs_attention_view", cumulativeNeedsAttentionView); err != nil { + return diag.FromErr(fmt.Errorf("Error setting cumulative_needs_attention_view %s", err)) + } + + if err = d.Set("cumulative_needs_attention_view_error", project.CumulativeNeedsAttentionViewError); err != nil { + return diag.FromErr(fmt.Errorf("Error setting cumulative_needs_attention_view_error: %s", err)) + } + + if err = d.Set("location", project.Location); err != nil { + return diag.FromErr(fmt.Errorf("Error setting location: %s", err)) + } + + if err = d.Set("resource_group", project.ResourceGroup); err != nil { + return diag.FromErr(fmt.Errorf("Error setting resource_group: %s", err)) + } + + if err = d.Set("state", project.State); err != nil { + return diag.FromErr(fmt.Errorf("Error setting state: %s", err)) + } + + if err = d.Set("event_notifications_crn", project.EventNotificationsCrn); err != nil { + return diag.FromErr(fmt.Errorf("Error setting event_notifications_crn: %s", err)) + } + + configs := []map[string]interface{}{} + if project.Configs != nil { + for _, modelItem := range project.Configs { + modelMap, err := dataSourceIbmProjectProjectConfigCollectionMemberToMap(&modelItem) + if err != nil { + return diag.FromErr(err) + } + configs = append(configs, modelMap) + } + } + if err = d.Set("configs", configs); err != nil { + return diag.FromErr(fmt.Errorf("Error setting configs %s", err)) + } + + environments := []map[string]interface{}{} + if project.Environments != nil { + for _, modelItem := range project.Environments { + modelMap, err := dataSourceIbmProjectProjectEnvironmentCollectionMemberToMap(&modelItem) + if err != nil { + return diag.FromErr(err) + } + environments = append(environments, modelMap) + } + } + if err = d.Set("environments", environments); err != nil { + return diag.FromErr(fmt.Errorf("Error setting environments %s", err)) + } + + definition := []map[string]interface{}{} + if project.Definition != nil { + modelMap, err := dataSourceIbmProjectProjectDefinitionPropertiesToMap(project.Definition) + if err != nil { + return diag.FromErr(err) + } + definition = append(definition, modelMap) + } + if err = d.Set("definition", definition); err != nil { + return diag.FromErr(fmt.Errorf("Error setting definition %s", err)) + } + + return nil +} + +func dataSourceIbmProjectCumulativeNeedsAttentionToMap(model *projectv1.CumulativeNeedsAttention) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Event != nil { + modelMap["event"] = model.Event + } + if model.EventID != nil { + modelMap["event_id"] = model.EventID + } + if model.ConfigID != nil { + modelMap["config_id"] = model.ConfigID + } + if model.ConfigVersion != nil { + modelMap["config_version"] = flex.IntValue(model.ConfigVersion) + } + return modelMap, nil +} + +func dataSourceIbmProjectProjectConfigCollectionMemberToMap(model *projectv1.ProjectConfigCollectionMember) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.ApprovedVersion != nil { + approvedVersionMap, err := dataSourceIbmProjectProjectConfigVersionSummaryToMap(model.ApprovedVersion) + if err != nil { + return modelMap, err + } + modelMap["approved_version"] = []map[string]interface{}{approvedVersionMap} + } + if model.DeployedVersion != nil { + deployedVersionMap, err := dataSourceIbmProjectProjectConfigVersionSummaryToMap(model.DeployedVersion) + if err != nil { + return modelMap, err + } + modelMap["deployed_version"] = []map[string]interface{}{deployedVersionMap} + } + modelMap["id"] = model.ID + modelMap["version"] = flex.IntValue(model.Version) + modelMap["state"] = model.State + if model.CreatedAt != nil { + modelMap["created_at"] = model.CreatedAt.String() + } + if model.ModifiedAt != nil { + modelMap["modified_at"] = model.ModifiedAt.String() + } + modelMap["href"] = model.Href + definitionMap, err := dataSourceIbmProjectProjectConfigDefinitionNameDescriptionToMap(model.Definition) + if err != nil { + return modelMap, err + } + modelMap["definition"] = []map[string]interface{}{definitionMap} + projectMap, err := dataSourceIbmProjectProjectReferenceToMap(model.Project) + if err != nil { + return modelMap, err + } + modelMap["project"] = []map[string]interface{}{projectMap} + return modelMap, nil +} + +func dataSourceIbmProjectProjectConfigVersionSummaryToMap(model *projectv1.ProjectConfigVersionSummary) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["state"] = model.State + modelMap["version"] = flex.IntValue(model.Version) + modelMap["href"] = model.Href + return modelMap, nil +} + +func dataSourceIbmProjectProjectConfigDefinitionNameDescriptionToMap(model *projectv1.ProjectConfigDefinitionNameDescription) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Name != nil { + modelMap["name"] = model.Name + } + if model.Description != nil { + modelMap["description"] = model.Description + } + return modelMap, nil +} + +func dataSourceIbmProjectProjectReferenceToMap(model *projectv1.ProjectReference) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["id"] = model.ID + definitionMap, err := dataSourceIbmProjectProjectDefinitionReferenceToMap(model.Definition) + if err != nil { + return modelMap, err + } + modelMap["definition"] = []map[string]interface{}{definitionMap} + modelMap["crn"] = model.Crn + modelMap["href"] = model.Href + return modelMap, nil +} + +func dataSourceIbmProjectProjectDefinitionReferenceToMap(model *projectv1.ProjectDefinitionReference) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["name"] = model.Name + return modelMap, nil +} + +func dataSourceIbmProjectProjectEnvironmentCollectionMemberToMap(model *projectv1.ProjectEnvironmentCollectionMember) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["id"] = model.ID + projectMap, err := dataSourceIbmProjectProjectReferenceToMap(model.Project) + if err != nil { + return modelMap, err + } + modelMap["project"] = []map[string]interface{}{projectMap} + modelMap["created_at"] = model.CreatedAt.String() + modelMap["href"] = model.Href + definitionMap, err := dataSourceIbmProjectEnvironmentDefinitionNameDescriptionToMap(model.Definition) + if err != nil { + return modelMap, err + } + modelMap["definition"] = []map[string]interface{}{definitionMap} + return modelMap, nil +} + +func dataSourceIbmProjectEnvironmentDefinitionNameDescriptionToMap(model *projectv1.EnvironmentDefinitionNameDescription) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Name != nil { + modelMap["name"] = model.Name + } + if model.Description != nil { + modelMap["description"] = model.Description + } + return modelMap, nil +} + +func dataSourceIbmProjectProjectDefinitionPropertiesToMap(model *projectv1.ProjectDefinitionProperties) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["name"] = model.Name + if model.Description != nil { + modelMap["description"] = model.Description + } + modelMap["destroy_on_delete"] = model.DestroyOnDelete + return modelMap, nil +} diff --git a/ibm/service/project/data_source_ibm_project_config.go b/ibm/service/project/data_source_ibm_project_config.go new file mode 100644 index 0000000000..e064294568 --- /dev/null +++ b/ibm/service/project/data_source_ibm_project_config.go @@ -0,0 +1,494 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package project + +import ( + "context" + "fmt" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/project-go-sdk/projectv1" +) + +func DataSourceIbmProjectConfig() *schema.Resource { + return &schema.Resource{ + ReadContext: dataSourceIbmProjectConfigRead, + + Schema: map[string]*schema.Schema{ + "project_id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The unique project ID.", + }, + "project_config_id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The unique config ID.", + }, + "version": &schema.Schema{ + Type: schema.TypeInt, + Computed: true, + Description: "The version of the configuration.", + }, + "is_draft": &schema.Schema{ + Type: schema.TypeBool, + Computed: true, + Description: "The flag that indicates whether the version of the configuration is draft, or active.", + }, + "needs_attention_state": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The needs attention state of a configuration.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "created_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", + }, + "modified_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", + }, + "last_saved_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", + }, + "outputs": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The outputs of a Schematics template property.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The variable name.", + }, + "description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A short explanation of the output value.", + }, + "value": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Can be any value - a string, number, boolean, array, or object.", + }, + }, + }, + }, + "project": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The project referenced by this resource.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The unique ID.", + }, + "definition": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The definition of the project reference.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The name of the project.", + }, + }, + }, + }, + "crn": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "An IBM Cloud resource name, which uniquely identifies a resource.", + }, + "href": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A URL.", + }, + }, + }, + }, + "schematics": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "A schematics workspace associated to a project configuration.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "workspace_crn": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "An existing schematics workspace CRN.", + }, + }, + }, + }, + "state": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The state of the configuration.", + }, + "update_available": &schema.Schema{ + Type: schema.TypeBool, + Computed: true, + Description: "The flag that indicates whether a configuration update is available.", + }, + "definition": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The type and output of a project configuration.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The configuration name.", + }, + "description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A project configuration description.", + }, + "environment": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The ID of the project environment.", + }, + "authorizations": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "trusted_profile_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The trusted profile ID.", + }, + "method": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.", + }, + "api_key": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The IBM Cloud API Key.", + }, + }, + }, + }, + "compliance_profile": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The profile required for compliance.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The unique ID.", + }, + "instance_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The unique ID.", + }, + "instance_location": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The location of the compliance instance.", + }, + "attachment_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The unique ID.", + }, + "profile_name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The name of the compliance profile.", + }, + }, + }, + }, + "locator_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A dotted value of catalogID.versionID.", + }, + "inputs": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The input variables for configuration definition and environment.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{}, + }, + }, + "settings": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "Schematics environment variables to use to deploy the configuration.Settings are only available if they were specified when the configuration was initially created.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{}, + }, + }, + "type": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The type of a project configuration manual property.", + }, + }, + }, + }, + }, + } +} + +func dataSourceIbmProjectConfigRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + projectClient, err := meta.(conns.ClientSession).ProjectV1() + if err != nil { + return diag.FromErr(err) + } + + getConfigOptions := &projectv1.GetConfigOptions{} + + getConfigOptions.SetProjectID(d.Get("project_id").(string)) + getConfigOptions.SetID(d.Get("project_config_id").(string)) + + projectConfig, response, err := projectClient.GetConfigWithContext(context, getConfigOptions) + if err != nil { + log.Printf("[DEBUG] GetConfigWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("GetConfigWithContext failed %s\n%s", err, response)) + } + + d.SetId(fmt.Sprintf("%s/%s", *getConfigOptions.ProjectID, *getConfigOptions.ID)) + + if err = d.Set("version", flex.IntValue(projectConfig.Version)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting version: %s", err)) + } + + if err = d.Set("is_draft", projectConfig.IsDraft); err != nil { + return diag.FromErr(fmt.Errorf("Error setting is_draft: %s", err)) + } + + if err = d.Set("needs_attention_state", projectConfig.NeedsAttentionState); err != nil { + return diag.FromErr(fmt.Errorf("Error setting needs_attention_state: %s", err)) + } + + if err = d.Set("created_at", flex.DateTimeToString(projectConfig.CreatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting created_at: %s", err)) + } + + if err = d.Set("modified_at", flex.DateTimeToString(projectConfig.ModifiedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting modified_at: %s", err)) + } + + if err = d.Set("last_saved_at", flex.DateTimeToString(projectConfig.LastSavedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting last_saved_at: %s", err)) + } + + outputs := []map[string]interface{}{} + if projectConfig.Outputs != nil { + for _, modelItem := range projectConfig.Outputs { + modelMap, err := dataSourceIbmProjectConfigOutputValueToMap(&modelItem) + if err != nil { + return diag.FromErr(err) + } + outputs = append(outputs, modelMap) + } + } + if err = d.Set("outputs", outputs); err != nil { + return diag.FromErr(fmt.Errorf("Error setting outputs %s", err)) + } + + project := []map[string]interface{}{} + if projectConfig.Project != nil { + modelMap, err := dataSourceIbmProjectConfigProjectReferenceToMap(projectConfig.Project) + if err != nil { + return diag.FromErr(err) + } + project = append(project, modelMap) + } + if err = d.Set("project", project); err != nil { + return diag.FromErr(fmt.Errorf("Error setting project %s", err)) + } + + schematics := []map[string]interface{}{} + if projectConfig.Schematics != nil { + modelMap, err := dataSourceIbmProjectConfigSchematicsWorkspaceToMap(projectConfig.Schematics) + if err != nil { + return diag.FromErr(err) + } + schematics = append(schematics, modelMap) + } + if err = d.Set("schematics", schematics); err != nil { + return diag.FromErr(fmt.Errorf("Error setting schematics %s", err)) + } + + if err = d.Set("state", projectConfig.State); err != nil { + return diag.FromErr(fmt.Errorf("Error setting state: %s", err)) + } + + if err = d.Set("update_available", projectConfig.UpdateAvailable); err != nil { + return diag.FromErr(fmt.Errorf("Error setting update_available: %s", err)) + } + + definition := []map[string]interface{}{} + if projectConfig.Definition != nil { + modelMap, err := dataSourceIbmProjectConfigProjectConfigResponseDefinitionToMap(projectConfig.Definition) + if err != nil { + return diag.FromErr(err) + } + definition = append(definition, modelMap) + } + if err = d.Set("definition", definition); err != nil { + return diag.FromErr(fmt.Errorf("Error setting definition %s", err)) + } + + return nil +} + +func dataSourceIbmProjectConfigOutputValueToMap(model *projectv1.OutputValue) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["name"] = model.Name + if model.Description != nil { + modelMap["description"] = model.Description + } + if model.Value != nil { + modelMap["value"] = model.Value + } + return modelMap, nil +} + +func dataSourceIbmProjectConfigProjectReferenceToMap(model *projectv1.ProjectReference) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["id"] = model.ID + definitionMap, err := dataSourceIbmProjectConfigProjectDefinitionReferenceToMap(model.Definition) + if err != nil { + return modelMap, err + } + modelMap["definition"] = []map[string]interface{}{definitionMap} + modelMap["crn"] = model.Crn + modelMap["href"] = model.Href + return modelMap, nil +} + +func dataSourceIbmProjectConfigProjectDefinitionReferenceToMap(model *projectv1.ProjectDefinitionReference) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["name"] = model.Name + return modelMap, nil +} + +func dataSourceIbmProjectConfigSchematicsWorkspaceToMap(model *projectv1.SchematicsWorkspace) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.WorkspaceCrn != nil { + modelMap["workspace_crn"] = model.WorkspaceCrn + } + return modelMap, nil +} + +func dataSourceIbmProjectConfigProjectConfigResponseDefinitionToMap(model *projectv1.ProjectConfigResponseDefinition) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["name"] = model.Name + if model.Description != nil { + modelMap["description"] = model.Description + } + if model.Environment != nil { + modelMap["environment"] = model.Environment + } + if model.Authorizations != nil { + authorizationsMap, err := dataSourceIbmProjectConfigProjectConfigAuthToMap(model.Authorizations) + if err != nil { + return modelMap, err + } + modelMap["authorizations"] = []map[string]interface{}{authorizationsMap} + } + if model.ComplianceProfile != nil { + complianceProfileMap, err := dataSourceIbmProjectConfigProjectComplianceProfileToMap(model.ComplianceProfile) + if err != nil { + return modelMap, err + } + modelMap["compliance_profile"] = []map[string]interface{}{complianceProfileMap} + } + modelMap["locator_id"] = model.LocatorID + if model.Inputs != nil { + inputsMap, err := dataSourceIbmProjectConfigInputVariableToMap(model.Inputs) + if err != nil { + return modelMap, err + } + modelMap["inputs"] = []map[string]interface{}{inputsMap} + } + if model.Settings != nil { + settingsMap, err := dataSourceIbmProjectConfigProjectConfigSettingToMap(model.Settings) + if err != nil { + return modelMap, err + } + modelMap["settings"] = []map[string]interface{}{settingsMap} + } + if model.Type != nil { + modelMap["type"] = model.Type + } + return modelMap, nil +} + +func dataSourceIbmProjectConfigProjectConfigAuthToMap(model *projectv1.ProjectConfigAuth) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.TrustedProfileID != nil { + modelMap["trusted_profile_id"] = model.TrustedProfileID + } + if model.Method != nil { + modelMap["method"] = model.Method + } + if model.ApiKey != nil { + modelMap["api_key"] = model.ApiKey + } + return modelMap, nil +} + +func dataSourceIbmProjectConfigProjectComplianceProfileToMap(model *projectv1.ProjectComplianceProfile) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.ID != nil { + modelMap["id"] = model.ID + } + if model.InstanceID != nil { + modelMap["instance_id"] = model.InstanceID + } + if model.InstanceLocation != nil { + modelMap["instance_location"] = model.InstanceLocation + } + if model.AttachmentID != nil { + modelMap["attachment_id"] = model.AttachmentID + } + if model.ProfileName != nil { + modelMap["profile_name"] = model.ProfileName + } + return modelMap, nil +} + +func dataSourceIbmProjectConfigInputVariableToMap(model *projectv1.InputVariable) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + return modelMap, nil +} + +func dataSourceIbmProjectConfigProjectConfigSettingToMap(model *projectv1.ProjectConfigSetting) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + return modelMap, nil +} diff --git a/ibm/service/project/data_source_ibm_project_config_test.go b/ibm/service/project/data_source_ibm_project_config_test.go new file mode 100644 index 0000000000..785e6ff684 --- /dev/null +++ b/ibm/service/project/data_source_ibm_project_config_test.go @@ -0,0 +1,74 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package project_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" +) + +func TestAccIbmProjectConfigDataSourceBasic(t *testing.T) { + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmProjectConfigDataSourceConfigBasic(), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_project_config.project_config_instance", "id"), + resource.TestCheckResourceAttrSet("data.ibm_project_config.project_config_instance", "project_id"), + resource.TestCheckResourceAttrSet("data.ibm_project_config.project_config_instance", "project_config_id"), + resource.TestCheckResourceAttrSet("data.ibm_project_config.project_config_instance", "version"), + resource.TestCheckResourceAttrSet("data.ibm_project_config.project_config_instance", "is_draft"), + resource.TestCheckResourceAttrSet("data.ibm_project_config.project_config_instance", "created_at"), + resource.TestCheckResourceAttrSet("data.ibm_project_config.project_config_instance", "modified_at"), + resource.TestCheckResourceAttrSet("data.ibm_project_config.project_config_instance", "project.#"), + resource.TestCheckResourceAttrSet("data.ibm_project_config.project_config_instance", "state"), + resource.TestCheckResourceAttrSet("data.ibm_project_config.project_config_instance", "update_available"), + resource.TestCheckResourceAttrSet("data.ibm_project_config.project_config_instance", "definition.#"), + ), + }, + }, + }) +} + +func testAccCheckIbmProjectConfigDataSourceConfigBasic() string { + return fmt.Sprintf(` + resource "ibm_project" "project_instance" { + location = "us-south" + resource_group = "Default" + definition { + name = "acme-microservice" + description = "acme-microservice description" + destroy_on_delete = true + } + } + + resource "ibm_project_config" "project_config_instance" { + project_id = ibm_project.project_instance.id + definition { + name = "stage-environment" + authorizations { + method = "api_key" + api_key = "%s" + } + locator_id = "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.cd596f95-95a2-4f21-9b84-477f21fd1e95-global" + } + lifecycle { + ignore_changes = [ + definition[0].authorizations[0].api_key, + ] + } + } + + data "ibm_project_config" "project_config_instance" { + project_id = ibm_project_config.project_config_instance.project_id + project_config_id = ibm_project_config.project_config_instance.project_config_id + } + `, acc.ProjectsConfigApiKey) +} diff --git a/ibm/service/project/data_source_ibm_project_event_notification.go b/ibm/service/project/data_source_ibm_project_event_notification.go deleted file mode 100644 index 7ffac8fd48..0000000000 --- a/ibm/service/project/data_source_ibm_project_event_notification.go +++ /dev/null @@ -1,444 +0,0 @@ -// Copyright IBM Corp. 2023 All Rights Reserved. -// Licensed under the Mozilla Public License v2.0 - -package project - -import ( - "context" - "fmt" - "log" - - "github.com/hashicorp/terraform-plugin-sdk/v2/diag" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - - "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" - "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" - "github.com/IBM/project-go-sdk/projectv1" -) - -func DataSourceIbmProjectEventNotification() *schema.Resource { - return &schema.Resource{ - ReadContext: dataSourceIbmProjectEventNotificationRead, - - Schema: map[string]*schema.Schema{ - "project_id": &schema.Schema{ - Type: schema.TypeString, - Required: true, - Description: "The unique project ID.", - }, - "name": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The project name.", - }, - "description": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "A project descriptive text.", - }, - "crn": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "An IBM Cloud resource name, which uniquely identifies a resource.", - }, - "configs": &schema.Schema{ - Type: schema.TypeList, - Computed: true, - Description: "The project configurations.", - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "id": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration.", - }, - "name": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The configuration name.", - }, - "labels": &schema.Schema{ - Type: schema.TypeList, - Computed: true, - Description: "A collection of configuration labels.", - Elem: &schema.Schema{ - Type: schema.TypeString, - }, - }, - "description": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The project configuration description.", - }, - "locator_id": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "A dotted value of catalogID.versionID.", - }, - "type": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The type of a project configuration manual property.", - }, - "input": &schema.Schema{ - Type: schema.TypeList, - Computed: true, - Description: "The outputs of a Schematics template property.", - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "name": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The variable name.", - }, - "type": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The variable type.", - }, - "value": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "Can be any value - a string, number, boolean, array, or object.", - }, - "required": &schema.Schema{ - Type: schema.TypeBool, - Computed: true, - Description: "Whether the variable is required or not.", - }, - }, - }, - }, - "output": &schema.Schema{ - Type: schema.TypeList, - Computed: true, - Description: "The outputs of a Schematics template property.", - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "name": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The variable name.", - }, - "description": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "A short explanation of the output value.", - }, - "value": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "Can be any value - a string, number, boolean, array, or object.", - }, - }, - }, - }, - "setting": &schema.Schema{ - Type: schema.TypeList, - Computed: true, - Description: "Schematics environment variables to use to deploy the configuration.", - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "name": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The name of the configuration setting.", - }, - "value": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The value of the configuration setting.", - }, - }, - }, - }, - }, - }, - }, - "metadata": &schema.Schema{ - Type: schema.TypeList, - Computed: true, - Description: "The metadata of the project.", - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "crn": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "An IBM Cloud resource name, which uniquely identifies a resource.", - }, - "created_at": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", - }, - "cumulative_needs_attention_view": &schema.Schema{ - Type: schema.TypeList, - Computed: true, - Description: "The cumulative list of needs attention items for a project.", - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "event": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The event name.", - }, - "event_id": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The unique ID of a project.", - }, - "config_id": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The unique ID of a project.", - }, - "config_version": &schema.Schema{ - Type: schema.TypeInt, - Computed: true, - Description: "The version number of the configuration.", - }, - }, - }, - }, - "cumulative_needs_attention_view_err": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "True indicates that the fetch of the needs attention items failed.", - }, - "location": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The IBM Cloud location where a resource is deployed.", - }, - "resource_group": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The resource group where the project's data and tools are created.", - }, - "state": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The project status value.", - }, - "event_notifications_crn": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The CRN of the event notifications instance if one is connected to this project.", - }, - }, - }, - }, - }, - } -} - -func dataSourceIbmProjectEventNotificationRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { - projectClient, err := meta.(conns.ClientSession).ProjectV1() - if err != nil { - return diag.FromErr(err) - } - - getProjectOptions := &projectv1.GetProjectOptions{} - - getProjectOptions.SetID(d.Get("project_id").(string)) - - project, response, err := projectClient.GetProjectWithContext(context, getProjectOptions) - if err != nil { - log.Printf("[DEBUG] GetProjectWithContext failed %s\n%s", err, response) - return diag.FromErr(fmt.Errorf("GetProjectWithContext failed %s\n%s", err, response)) - } - - d.SetId(fmt.Sprintf("%s", *getProjectOptions.ID)) - - if err = d.Set("name", project.Name); err != nil { - return diag.FromErr(fmt.Errorf("Error setting name: %s", err)) - } - - if err = d.Set("description", project.Description); err != nil { - return diag.FromErr(fmt.Errorf("Error setting description: %s", err)) - } - - if err = d.Set("crn", project.Crn); err != nil { - return diag.FromErr(fmt.Errorf("Error setting crn: %s", err)) - } - - configs := []map[string]interface{}{} - if project.Configs != nil { - for _, modelItem := range project.Configs { - modelMap, err := dataSourceIbmProjectEventNotificationProjectConfigToMap(&modelItem) - if err != nil { - return diag.FromErr(err) - } - configs = append(configs, modelMap) - } - } - if err = d.Set("configs", configs); err != nil { - return diag.FromErr(fmt.Errorf("Error setting configs %s", err)) - } - - metadata := []map[string]interface{}{} - if project.Metadata != nil { - modelMap, err := dataSourceIbmProjectEventNotificationProjectMetadataToMap(project.Metadata) - if err != nil { - return diag.FromErr(err) - } - metadata = append(metadata, modelMap) - } - if err = d.Set("metadata", metadata); err != nil { - return diag.FromErr(fmt.Errorf("Error setting metadata %s", err)) - } - - return nil -} - -func dataSourceIbmProjectEventNotificationProjectConfigToMap(model *projectv1.ProjectConfig) (map[string]interface{}, error) { - modelMap := make(map[string]interface{}) - if model.ID != nil { - modelMap["project_id"] = model.ID - } - if model.Name != nil { - modelMap["name"] = model.Name - } - if model.Labels != nil { - modelMap["labels"] = model.Labels - } - if model.Description != nil { - modelMap["description"] = model.Description - } - if model.LocatorID != nil { - modelMap["locator_id"] = model.LocatorID - } - if model.Type != nil { - modelMap["type"] = model.Type - } - if model.Input != nil { - input := []map[string]interface{}{} - for _, inputItem := range model.Input { - inputItemMap, err := dataSourceIbmProjectEventNotificationInputVariableToMap(&inputItem) - if err != nil { - return modelMap, err - } - input = append(input, inputItemMap) - } - modelMap["input"] = input - } - if model.Output != nil { - output := []map[string]interface{}{} - for _, outputItem := range model.Output { - outputItemMap, err := dataSourceIbmProjectEventNotificationOutputValueToMap(&outputItem) - if err != nil { - return modelMap, err - } - output = append(output, outputItemMap) - } - modelMap["output"] = output - } - if model.Setting != nil { - setting := []map[string]interface{}{} - for _, settingItem := range model.Setting { - settingItemMap, err := dataSourceIbmProjectEventNotificationProjectConfigSettingCollectionToMap(&settingItem) - if err != nil { - return modelMap, err - } - setting = append(setting, settingItemMap) - } - modelMap["setting"] = setting - } - return modelMap, nil -} - -func dataSourceIbmProjectEventNotificationInputVariableToMap(model *projectv1.InputVariable) (map[string]interface{}, error) { - modelMap := make(map[string]interface{}) - if model.Name != nil { - modelMap["name"] = model.Name - } - if model.Type != nil { - modelMap["type"] = model.Type - } - if model.Value != nil { - modelMap["value"] = model.Value - } - if model.Required != nil { - modelMap["required"] = model.Required - } - return modelMap, nil -} - -func dataSourceIbmProjectEventNotificationOutputValueToMap(model *projectv1.OutputValue) (map[string]interface{}, error) { - modelMap := make(map[string]interface{}) - if model.Name != nil { - modelMap["name"] = model.Name - } - if model.Description != nil { - modelMap["description"] = model.Description - } - if model.Value != nil { - modelMap["value"] = model.Value - } - return modelMap, nil -} - -func dataSourceIbmProjectEventNotificationProjectConfigSettingCollectionToMap(model *projectv1.ProjectConfigSettingCollection) (map[string]interface{}, error) { - modelMap := make(map[string]interface{}) - if model.Name != nil { - modelMap["name"] = model.Name - } - if model.Value != nil { - modelMap["value"] = model.Value - } - return modelMap, nil -} - -func dataSourceIbmProjectEventNotificationProjectMetadataToMap(model *projectv1.ProjectMetadata) (map[string]interface{}, error) { - modelMap := make(map[string]interface{}) - if model.Crn != nil { - modelMap["crn"] = model.Crn - } - if model.CreatedAt != nil { - modelMap["created_at"] = model.CreatedAt.String() - } - if model.CumulativeNeedsAttentionView != nil { - cumulativeNeedsAttentionView := []map[string]interface{}{} - for _, cumulativeNeedsAttentionViewItem := range model.CumulativeNeedsAttentionView { - cumulativeNeedsAttentionViewItemMap, err := dataSourceIbmProjectEventNotificationCumulativeNeedsAttentionToMap(&cumulativeNeedsAttentionViewItem) - if err != nil { - return modelMap, err - } - cumulativeNeedsAttentionView = append(cumulativeNeedsAttentionView, cumulativeNeedsAttentionViewItemMap) - } - modelMap["cumulative_needs_attention_view"] = cumulativeNeedsAttentionView - } - if model.CumulativeNeedsAttentionViewErr != nil { - modelMap["cumulative_needs_attention_view_err"] = model.CumulativeNeedsAttentionViewErr - } - if model.Location != nil { - modelMap["location"] = model.Location - } - if model.ResourceGroup != nil { - modelMap["resource_group"] = model.ResourceGroup - } - if model.State != nil { - modelMap["state"] = model.State - } - if model.EventNotificationsCrn != nil { - modelMap["event_notifications_crn"] = model.EventNotificationsCrn - } - return modelMap, nil -} - -func dataSourceIbmProjectEventNotificationCumulativeNeedsAttentionToMap(model *projectv1.CumulativeNeedsAttention) (map[string]interface{}, error) { - modelMap := make(map[string]interface{}) - if model.Event != nil { - modelMap["event"] = model.Event - } - if model.EventID != nil { - modelMap["event_id"] = model.EventID - } - if model.ConfigID != nil { - modelMap["config_id"] = model.ConfigID - } - if model.ConfigVersion != nil { - modelMap["config_version"] = flex.IntValue(model.ConfigVersion) - } - return modelMap, nil -} diff --git a/ibm/service/project/data_source_ibm_project_event_notification_test.go b/ibm/service/project/data_source_ibm_project_event_notification_test.go deleted file mode 100644 index a4bb083448..0000000000 --- a/ibm/service/project/data_source_ibm_project_event_notification_test.go +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright IBM Corp. 2023 All Rights Reserved. -// Licensed under the Mozilla Public License v2.0 - -package project_test - -import ( - "fmt" - "testing" - - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - - acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" -) - -func TestAccIbmProjectEventNotificationDataSourceBasic(t *testing.T) { - projectName := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) - projectResourceGroup := fmt.Sprintf("Default") - projectLocation := fmt.Sprintf("us-south") - - resource.Test(t, resource.TestCase{ - PreCheck: func() { acc.TestAccPreCheck(t) }, - Providers: acc.TestAccProviders, - Steps: []resource.TestStep{ - resource.TestStep{ - Config: testAccCheckIbmProjectEventNotificationDataSourceConfigBasic(projectResourceGroup, projectLocation, projectName), - Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttrSet("data.ibm_project_event_notification.project_event_notification", "project_id"), - resource.TestCheckResourceAttrSet("data.ibm_project_event_notification.project_event_notification", "name"), - ), - }, - }, - }) -} - -func TestAccIbmProjectEventNotificationDataSourceAllArgs(t *testing.T) { - projectName := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) - projectDescription := fmt.Sprintf("tf_description_%d", acctest.RandIntRange(10, 100)) - projectResourceGroup := fmt.Sprintf("Default") - projectLocation := fmt.Sprintf("us-south") - - resource.Test(t, resource.TestCase{ - PreCheck: func() { acc.TestAccPreCheck(t) }, - Providers: acc.TestAccProviders, - Steps: []resource.TestStep{ - resource.TestStep{ - Config: testAccCheckIbmProjectEventNotificationDataSourceConfig(projectName, projectDescription, projectResourceGroup, projectLocation), - Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttrSet("data.ibm_project_event_notification.project_event_notification", "project_id"), - resource.TestCheckResourceAttrSet("data.ibm_project_event_notification.project_event_notification", "name"), - resource.TestCheckResourceAttrSet("data.ibm_project_event_notification.project_event_notification", "description"), - resource.TestCheckResourceAttrSet("data.ibm_project_event_notification.project_event_notification", "metadata.#"), - ), - }, - }, - }) -} - -func testAccCheckIbmProjectEventNotificationDataSourceConfigBasic(projectResourceGroup string, projectLocation string, projectName string) string { - return fmt.Sprintf(` - resource "ibm_project_instance" "project_instance" { - resource_group = "%s" - location = "%s" - name = "%s" - } - - data "ibm_project_event_notification" "project_event_notification" { - project_id = ibm_project_instance.project_instance.id - } - `, projectResourceGroup, projectLocation, projectName) -} - -func testAccCheckIbmProjectEventNotificationDataSourceConfig(projectName string, projectDescription string, projectResourceGroup string, projectLocation string) string { - return fmt.Sprintf(` - resource "ibm_project_instance" "project_instance" { - name = "%s" - description = "%s" - configs { - name = "name" - labels = [ "labels" ] - description = "description" - locator_id = "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.cd596f95-95a2-4f21-9b84-477f21fd1e95-global" - input { - name = "name" - } - setting { - name = "name" - value = "value" - } - } - resource_group = "%s" - location = "%s" - } - - data "ibm_project_event_notification" "project_event_notification" { - project_id = ibm_project_instance.project_instance.id - } - `, projectName, projectDescription, projectResourceGroup, projectLocation) -} diff --git a/ibm/service/project/data_source_ibm_project_test.go b/ibm/service/project/data_source_ibm_project_test.go new file mode 100644 index 0000000000..062bc5fefe --- /dev/null +++ b/ibm/service/project/data_source_ibm_project_test.go @@ -0,0 +1,56 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package project_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" +) + +func TestAccIbmProjectDataSourceBasic(t *testing.T) { + projectLocation := fmt.Sprintf("us-south") + projectResourceGroup := fmt.Sprintf("Default") + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmProjectDataSourceConfigBasic(projectLocation, projectResourceGroup), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_project.project_instance", "id"), + resource.TestCheckResourceAttrSet("data.ibm_project.project_instance", "project_id"), + resource.TestCheckResourceAttrSet("data.ibm_project.project_instance", "crn"), + resource.TestCheckResourceAttrSet("data.ibm_project.project_instance", "created_at"), + resource.TestCheckResourceAttrSet("data.ibm_project.project_instance", "location"), + resource.TestCheckResourceAttrSet("data.ibm_project.project_instance", "resource_group"), + resource.TestCheckResourceAttrSet("data.ibm_project.project_instance", "state"), + resource.TestCheckResourceAttrSet("data.ibm_project.project_instance", "definition.#"), + ), + }, + }, + }) +} + +func testAccCheckIbmProjectDataSourceConfigBasic(projectLocation string, projectResourceGroup string) string { + return fmt.Sprintf(` + resource "ibm_project" "project_instance" { + location = "%s" + resource_group = "%s" + definition { + name = "acme-microservice" + description = "acme-microservice description" + destroy_on_delete = true + } + } + + data "ibm_project" "project_instance" { + project_id = ibm_project.project_instance.id + } + `, projectLocation, projectResourceGroup) +} diff --git a/ibm/service/project/resource_ibm_project.go b/ibm/service/project/resource_ibm_project.go new file mode 100644 index 0000000000..9b5242752d --- /dev/null +++ b/ibm/service/project/resource_ibm_project.go @@ -0,0 +1,787 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package project + +import ( + "context" + "fmt" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/validate" + "github.com/IBM/go-sdk-core/v5/core" + "github.com/IBM/project-go-sdk/projectv1" +) + +func ResourceIbmProject() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceIbmProjectCreate, + ReadContext: resourceIbmProjectRead, + UpdateContext: resourceIbmProjectUpdate, + DeleteContext: resourceIbmProjectDelete, + Importer: &schema.ResourceImporter{}, + + Schema: map[string]*schema.Schema{ + "location": &schema.Schema{ + Type: schema.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validate.InvokeValidator("ibm_project", "location"), + Description: "The IBM Cloud location where a resource is deployed.", + }, + "resource_group": &schema.Schema{ + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "The resource group where the project's data and tools are created.", + }, + "definition": &schema.Schema{ + Type: schema.TypeList, + MinItems: 1, + MaxItems: 1, + Required: true, + Description: "The definition of the project.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The name of the project.", + }, + "description": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "A brief explanation of the project's use in the configuration of a deployable architecture. It is possible to create a project without providing a description.", + }, + "destroy_on_delete": &schema.Schema{ + Type: schema.TypeBool, + Required: true, + Description: "The policy that indicates whether the resources are destroyed or not when a project is deleted.", + }, + }, + }, + }, + "crn": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "An IBM Cloud resource name, which uniquely identifies a resource.", + }, + "created_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", + }, + "cumulative_needs_attention_view": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The cumulative list of needs attention items for a project. If the view is successfully retrieved, an array which could be empty is returned.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "event": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The event name.", + }, + "event_id": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "A unique ID for that individual event.", + }, + "config_id": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "A unique ID for the configuration.", + }, + "config_version": &schema.Schema{ + Type: schema.TypeInt, + Optional: true, + Description: "The version number of the configuration.", + }, + }, + }, + }, + "cumulative_needs_attention_view_error": &schema.Schema{ + Type: schema.TypeBool, + Computed: true, + Description: "True indicates that the fetch of the needs attention items failed. It only exists if there was an error while retrieving the cumulative needs attention view.", + }, + "state": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The project status value.", + }, + "event_notifications_crn": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The CRN of the event notifications instance if one is connected to this project.", + }, + "configs": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The project configurations. These configurations are only included in the response of creating a project if a configs array is specified in the request payload.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration.", + }, + "version": &schema.Schema{ + Type: schema.TypeInt, + Required: true, + Description: "The version of the configuration.", + }, + "state": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The state of the configuration.", + }, + "created_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", + }, + "modified_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", + }, + "href": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "A URL.", + }, + "definition": &schema.Schema{ + Type: schema.TypeList, + MinItems: 1, + MaxItems: 1, + Required: true, + Description: "The name and description of a project configuration.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The configuration name.", + }, + "description": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "A project configuration description.", + }, + }, + }, + }, + "project": &schema.Schema{ + Type: schema.TypeList, + MinItems: 1, + MaxItems: 1, + Required: true, + Description: "The project referenced by this resource.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The unique ID.", + }, + "definition": &schema.Schema{ + Type: schema.TypeList, + MinItems: 1, + MaxItems: 1, + Required: true, + Description: "The definition of the project reference.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The name of the project.", + }, + }, + }, + }, + "crn": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "An IBM Cloud resource name, which uniquely identifies a resource.", + }, + "href": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "A URL.", + }, + }, + }, + }, + }, + }, + }, + "environments": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The project environments. These environments are only included in the response if project environments were created on the project.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The environment id as a friendly name.", + }, + "project": &schema.Schema{ + Type: schema.TypeList, + MinItems: 1, + MaxItems: 1, + Required: true, + Description: "The project referenced by this resource.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The unique ID.", + }, + "definition": &schema.Schema{ + Type: schema.TypeList, + MinItems: 1, + MaxItems: 1, + Required: true, + Description: "The definition of the project reference.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The name of the project.", + }, + }, + }, + }, + "crn": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "An IBM Cloud resource name, which uniquely identifies a resource.", + }, + "href": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "A URL.", + }, + }, + }, + }, + "created_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", + }, + "href": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "A URL.", + }, + "definition": &schema.Schema{ + Type: schema.TypeList, + MinItems: 1, + MaxItems: 1, + Required: true, + Description: "The environment definition used in the project collection.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The name of the environment.", + }, + "description": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The description of the environment.", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +func ResourceIbmProjectValidator() *validate.ResourceValidator { + validateSchema := make([]validate.ValidateSchema, 0) + validateSchema = append(validateSchema, + validate.ValidateSchema{ + Identifier: "location", + ValidateFunctionIdentifier: validate.ValidateRegexpLen, + Type: validate.TypeString, + Required: true, + Regexp: `^$|^(us-south|us-east|eu-gb|eu-de)$`, + MinValueLength: 0, + MaxValueLength: 12, + }, + validate.ValidateSchema{ + Identifier: "resource_group", + ValidateFunctionIdentifier: validate.ValidateRegexpLen, + Type: validate.TypeString, + Required: true, + Regexp: `^(?!\s)(?!.*\s$)[^'"` + "`" + `<>{}\x00-\x1F]*$`, + MinValueLength: 0, + MaxValueLength: 64, + }, + ) + + resourceValidator := validate.ResourceValidator{ResourceName: "ibm_project", Schema: validateSchema} + return &resourceValidator +} + +func resourceIbmProjectCreate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + projectClient, err := meta.(conns.ClientSession).ProjectV1() + if err != nil { + return diag.FromErr(err) + } + + createProjectOptions := &projectv1.CreateProjectOptions{} + + definitionModel, err := resourceIbmProjectMapToProjectPrototypeDefinition(d.Get("definition.0").(map[string]interface{})) + if err != nil { + return diag.FromErr(err) + } + createProjectOptions.SetDefinition(definitionModel) + createProjectOptions.SetLocation(d.Get("location").(string)) + createProjectOptions.SetResourceGroup(d.Get("resource_group").(string)) + + project, response, err := projectClient.CreateProjectWithContext(context, createProjectOptions) + if err != nil { + log.Printf("[DEBUG] CreateProjectWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("CreateProjectWithContext failed %s\n%s", err, response)) + } + + d.SetId(*project.ID) + + return resourceIbmProjectRead(context, d, meta) +} + +func resourceIbmProjectRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + projectClient, err := meta.(conns.ClientSession).ProjectV1() + if err != nil { + return diag.FromErr(err) + } + + getProjectOptions := &projectv1.GetProjectOptions{} + + getProjectOptions.SetID(d.Id()) + + project, response, err := projectClient.GetProjectWithContext(context, getProjectOptions) + if err != nil { + if response != nil && response.StatusCode == 404 { + d.SetId("") + return nil + } + log.Printf("[DEBUG] GetProjectWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("GetProjectWithContext failed %s\n%s", err, response)) + } + + if err = d.Set("location", project.Location); err != nil { + return diag.FromErr(fmt.Errorf("Error setting location: %s", err)) + } + if err = d.Set("resource_group", project.ResourceGroup); err != nil { + return diag.FromErr(fmt.Errorf("Error setting resource_group: %s", err)) + } + definitionMap, err := resourceIbmProjectProjectDefinitionPropertiesToMap(project.Definition) + if err != nil { + return diag.FromErr(err) + } + if err = d.Set("definition", []map[string]interface{}{definitionMap}); err != nil { + return diag.FromErr(fmt.Errorf("Error setting definition: %s", err)) + } + if err = d.Set("crn", project.Crn); err != nil { + return diag.FromErr(fmt.Errorf("Error setting crn: %s", err)) + } + if err = d.Set("created_at", flex.DateTimeToString(project.CreatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting created_at: %s", err)) + } + if !core.IsNil(project.CumulativeNeedsAttentionView) { + cumulativeNeedsAttentionView := []map[string]interface{}{} + for _, cumulativeNeedsAttentionViewItem := range project.CumulativeNeedsAttentionView { + cumulativeNeedsAttentionViewItemMap, err := resourceIbmProjectCumulativeNeedsAttentionToMap(&cumulativeNeedsAttentionViewItem) + if err != nil { + return diag.FromErr(err) + } + cumulativeNeedsAttentionView = append(cumulativeNeedsAttentionView, cumulativeNeedsAttentionViewItemMap) + } + if err = d.Set("cumulative_needs_attention_view", cumulativeNeedsAttentionView); err != nil { + return diag.FromErr(fmt.Errorf("Error setting cumulative_needs_attention_view: %s", err)) + } + } + if !core.IsNil(project.CumulativeNeedsAttentionViewError) { + if err = d.Set("cumulative_needs_attention_view_error", project.CumulativeNeedsAttentionViewError); err != nil { + return diag.FromErr(fmt.Errorf("Error setting cumulative_needs_attention_view_error: %s", err)) + } + } + if err = d.Set("state", project.State); err != nil { + return diag.FromErr(fmt.Errorf("Error setting state: %s", err)) + } + if !core.IsNil(project.EventNotificationsCrn) { + if err = d.Set("event_notifications_crn", project.EventNotificationsCrn); err != nil { + return diag.FromErr(fmt.Errorf("Error setting event_notifications_crn: %s", err)) + } + } + if !core.IsNil(project.Configs) { + configs := []map[string]interface{}{} + for _, configsItem := range project.Configs { + configsItemMap, err := resourceIbmProjectProjectConfigCollectionMemberToMap(&configsItem) + if err != nil { + return diag.FromErr(err) + } + configs = append(configs, configsItemMap) + } + if err = d.Set("configs", configs); err != nil { + return diag.FromErr(fmt.Errorf("Error setting configs: %s", err)) + } + } + if !core.IsNil(project.Environments) { + environments := []map[string]interface{}{} + for _, environmentsItem := range project.Environments { + environmentsItemMap, err := resourceIbmProjectProjectEnvironmentCollectionMemberToMap(&environmentsItem) + if err != nil { + return diag.FromErr(err) + } + environments = append(environments, environmentsItemMap) + } + if err = d.Set("environments", environments); err != nil { + return diag.FromErr(fmt.Errorf("Error setting environments: %s", err)) + } + } + + return nil +} + +func resourceIbmProjectUpdate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + projectClient, err := meta.(conns.ClientSession).ProjectV1() + if err != nil { + return diag.FromErr(err) + } + + updateProjectOptions := &projectv1.UpdateProjectOptions{} + + updateProjectOptions.SetID(d.Id()) + + hasChange := false + + if d.HasChange("definition") { + definition, err := resourceIbmProjectMapToProjectPrototypePatchDefinitionBlock(d.Get("definition.0").(map[string]interface{})) + if err != nil { + return diag.FromErr(err) + } + updateProjectOptions.SetDefinition(definition) + hasChange = true + } + + if hasChange { + _, response, err := projectClient.UpdateProjectWithContext(context, updateProjectOptions) + if err != nil { + log.Printf("[DEBUG] UpdateProjectWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("UpdateProjectWithContext failed %s\n%s", err, response)) + } + } + + return resourceIbmProjectRead(context, d, meta) +} + +func resourceIbmProjectDelete(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + projectClient, err := meta.(conns.ClientSession).ProjectV1() + if err != nil { + return diag.FromErr(err) + } + + deleteProjectOptions := &projectv1.DeleteProjectOptions{} + + deleteProjectOptions.SetID(d.Id()) + + response, err := projectClient.DeleteProjectWithContext(context, deleteProjectOptions) + if err != nil { + log.Printf("[DEBUG] DeleteProjectWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("DeleteProjectWithContext failed %s\n%s", err, response)) + } + + d.SetId("") + + return nil +} + +func resourceIbmProjectMapToProjectPrototypeDefinition(modelMap map[string]interface{}) (*projectv1.ProjectPrototypeDefinition, error) { + model := &projectv1.ProjectPrototypeDefinition{} + model.Name = core.StringPtr(modelMap["name"].(string)) + if modelMap["description"] != nil && modelMap["description"].(string) != "" { + model.Description = core.StringPtr(modelMap["description"].(string)) + } + if modelMap["destroy_on_delete"] != nil { + model.DestroyOnDelete = core.BoolPtr(modelMap["destroy_on_delete"].(bool)) + } + return model, nil +} + +func resourceIbmProjectMapToProjectConfigPrototype(modelMap map[string]interface{}) (*projectv1.ProjectConfigPrototype, error) { + model := &projectv1.ProjectConfigPrototype{} + DefinitionModel, err := resourceIbmProjectMapToProjectConfigPrototypeDefinitionBlock(modelMap["definition"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.Definition = DefinitionModel + if modelMap["schematics"] != nil && len(modelMap["schematics"].([]interface{})) > 0 { + SchematicsModel, err := resourceIbmProjectMapToSchematicsWorkspace(modelMap["schematics"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.Schematics = SchematicsModel + } + return model, nil +} + +func resourceIbmProjectMapToProjectConfigPrototypeDefinitionBlock(modelMap map[string]interface{}) (*projectv1.ProjectConfigPrototypeDefinitionBlock, error) { + model := &projectv1.ProjectConfigPrototypeDefinitionBlock{} + model.Name = core.StringPtr(modelMap["name"].(string)) + if modelMap["description"] != nil && modelMap["description"].(string) != "" { + model.Description = core.StringPtr(modelMap["description"].(string)) + } + if modelMap["environment"] != nil && modelMap["environment"].(string) != "" { + model.Environment = core.StringPtr(modelMap["environment"].(string)) + } + if modelMap["authorizations"] != nil && len(modelMap["authorizations"].([]interface{})) > 0 { + AuthorizationsModel, err := resourceIbmProjectMapToProjectConfigAuth(modelMap["authorizations"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.Authorizations = AuthorizationsModel + } + if modelMap["compliance_profile"] != nil && len(modelMap["compliance_profile"].([]interface{})) > 0 { + ComplianceProfileModel, err := resourceIbmProjectMapToProjectComplianceProfile(modelMap["compliance_profile"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.ComplianceProfile = ComplianceProfileModel + } + if modelMap["locator_id"] != nil && modelMap["locator_id"].(string) != "" { + model.LocatorID = core.StringPtr(modelMap["locator_id"].(string)) + } + if modelMap["inputs"] != nil && len(modelMap["inputs"].([]interface{})) > 0 { + InputsModel, err := resourceIbmProjectMapToInputVariable(modelMap["inputs"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.Inputs = InputsModel + } + if modelMap["settings"] != nil && len(modelMap["settings"].([]interface{})) > 0 { + SettingsModel, err := resourceIbmProjectMapToProjectConfigSetting(modelMap["settings"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.Settings = SettingsModel + } + return model, nil +} + +func resourceIbmProjectMapToProjectConfigAuth(modelMap map[string]interface{}) (*projectv1.ProjectConfigAuth, error) { + model := &projectv1.ProjectConfigAuth{} + if modelMap["trusted_profile_id"] != nil && modelMap["trusted_profile_id"].(string) != "" { + model.TrustedProfileID = core.StringPtr(modelMap["trusted_profile_id"].(string)) + } + if modelMap["method"] != nil && modelMap["method"].(string) != "" { + model.Method = core.StringPtr(modelMap["method"].(string)) + } + if modelMap["api_key"] != nil && modelMap["api_key"].(string) != "" { + model.ApiKey = core.StringPtr(modelMap["api_key"].(string)) + } + return model, nil +} + +func resourceIbmProjectMapToProjectComplianceProfile(modelMap map[string]interface{}) (*projectv1.ProjectComplianceProfile, error) { + model := &projectv1.ProjectComplianceProfile{} + if modelMap["id"] != nil && modelMap["id"].(string) != "" { + model.ID = core.StringPtr(modelMap["id"].(string)) + } + if modelMap["instance_id"] != nil && modelMap["instance_id"].(string) != "" { + model.InstanceID = core.StringPtr(modelMap["instance_id"].(string)) + } + if modelMap["instance_location"] != nil && modelMap["instance_location"].(string) != "" { + model.InstanceLocation = core.StringPtr(modelMap["instance_location"].(string)) + } + if modelMap["attachment_id"] != nil && modelMap["attachment_id"].(string) != "" { + model.AttachmentID = core.StringPtr(modelMap["attachment_id"].(string)) + } + if modelMap["profile_name"] != nil && modelMap["profile_name"].(string) != "" { + model.ProfileName = core.StringPtr(modelMap["profile_name"].(string)) + } + return model, nil +} + +func resourceIbmProjectMapToInputVariable(modelMap map[string]interface{}) (*projectv1.InputVariable, error) { + model := &projectv1.InputVariable{} + return model, nil +} + +func resourceIbmProjectMapToProjectConfigSetting(modelMap map[string]interface{}) (*projectv1.ProjectConfigSetting, error) { + model := &projectv1.ProjectConfigSetting{} + return model, nil +} + +func resourceIbmProjectMapToSchematicsWorkspace(modelMap map[string]interface{}) (*projectv1.SchematicsWorkspace, error) { + model := &projectv1.SchematicsWorkspace{} + if modelMap["workspace_crn"] != nil && modelMap["workspace_crn"].(string) != "" { + model.WorkspaceCrn = core.StringPtr(modelMap["workspace_crn"].(string)) + } + return model, nil +} + +func resourceIbmProjectMapToProjectPrototypePatchDefinitionBlock(modelMap map[string]interface{}) (*projectv1.ProjectPrototypePatchDefinitionBlock, error) { + model := &projectv1.ProjectPrototypePatchDefinitionBlock{} + if modelMap["name"] != nil && modelMap["name"].(string) != "" { + model.Name = core.StringPtr(modelMap["name"].(string)) + } + if modelMap["description"] != nil && modelMap["description"].(string) != "" { + model.Description = core.StringPtr(modelMap["description"].(string)) + } + if modelMap["destroy_on_delete"] != nil { + model.DestroyOnDelete = core.BoolPtr(modelMap["destroy_on_delete"].(bool)) + } + return model, nil +} + +func resourceIbmProjectProjectDefinitionPropertiesToMap(model *projectv1.ProjectDefinitionProperties) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["name"] = model.Name + if model.Description != nil { + modelMap["description"] = model.Description + } + modelMap["destroy_on_delete"] = model.DestroyOnDelete + return modelMap, nil +} + +func resourceIbmProjectCumulativeNeedsAttentionToMap(model *projectv1.CumulativeNeedsAttention) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Event != nil { + modelMap["event"] = model.Event + } + if model.EventID != nil { + modelMap["event_id"] = model.EventID + } + if model.ConfigID != nil { + modelMap["config_id"] = model.ConfigID + } + if model.ConfigVersion != nil { + modelMap["config_version"] = flex.IntValue(model.ConfigVersion) + } + return modelMap, nil +} + +func resourceIbmProjectProjectConfigCollectionMemberToMap(model *projectv1.ProjectConfigCollectionMember) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.ApprovedVersion != nil { + approvedVersionMap, err := resourceIbmProjectProjectConfigVersionSummaryToMap(model.ApprovedVersion) + if err != nil { + return modelMap, err + } + modelMap["approved_version"] = []map[string]interface{}{approvedVersionMap} + } + if model.DeployedVersion != nil { + deployedVersionMap, err := resourceIbmProjectProjectConfigVersionSummaryToMap(model.DeployedVersion) + if err != nil { + return modelMap, err + } + modelMap["deployed_version"] = []map[string]interface{}{deployedVersionMap} + } + modelMap["id"] = model.ID + modelMap["version"] = flex.IntValue(model.Version) + modelMap["state"] = model.State + if model.CreatedAt != nil { + modelMap["created_at"] = model.CreatedAt.String() + } + if model.ModifiedAt != nil { + modelMap["modified_at"] = model.ModifiedAt.String() + } + modelMap["href"] = model.Href + definitionMap, err := resourceIbmProjectProjectConfigDefinitionNameDescriptionToMap(model.Definition) + if err != nil { + return modelMap, err + } + modelMap["definition"] = []map[string]interface{}{definitionMap} + projectMap, err := resourceIbmProjectProjectReferenceToMap(model.Project) + if err != nil { + return modelMap, err + } + modelMap["project"] = []map[string]interface{}{projectMap} + return modelMap, nil +} + +func resourceIbmProjectProjectConfigVersionSummaryToMap(model *projectv1.ProjectConfigVersionSummary) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["state"] = model.State + modelMap["version"] = flex.IntValue(model.Version) + modelMap["href"] = model.Href + return modelMap, nil +} + +func resourceIbmProjectProjectConfigDefinitionNameDescriptionToMap(model *projectv1.ProjectConfigDefinitionNameDescription) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Name != nil { + modelMap["name"] = model.Name + } + if model.Description != nil { + modelMap["description"] = model.Description + } + return modelMap, nil +} + +func resourceIbmProjectProjectReferenceToMap(model *projectv1.ProjectReference) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["id"] = model.ID + definitionMap, err := resourceIbmProjectProjectDefinitionReferenceToMap(model.Definition) + if err != nil { + return modelMap, err + } + modelMap["definition"] = []map[string]interface{}{definitionMap} + modelMap["crn"] = model.Crn + modelMap["href"] = model.Href + return modelMap, nil +} + +func resourceIbmProjectProjectDefinitionReferenceToMap(model *projectv1.ProjectDefinitionReference) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["name"] = model.Name + return modelMap, nil +} + +func resourceIbmProjectProjectEnvironmentCollectionMemberToMap(model *projectv1.ProjectEnvironmentCollectionMember) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["id"] = model.ID + projectMap, err := resourceIbmProjectProjectReferenceToMap(model.Project) + if err != nil { + return modelMap, err + } + modelMap["project"] = []map[string]interface{}{projectMap} + modelMap["created_at"] = model.CreatedAt.String() + modelMap["href"] = model.Href + definitionMap, err := resourceIbmProjectEnvironmentDefinitionNameDescriptionToMap(model.Definition) + if err != nil { + return modelMap, err + } + modelMap["definition"] = []map[string]interface{}{definitionMap} + return modelMap, nil +} + +func resourceIbmProjectEnvironmentDefinitionNameDescriptionToMap(model *projectv1.EnvironmentDefinitionNameDescription) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Name != nil { + modelMap["name"] = model.Name + } + if model.Description != nil { + modelMap["description"] = model.Description + } + return modelMap, nil +} diff --git a/ibm/service/project/resource_ibm_project_config.go b/ibm/service/project/resource_ibm_project_config.go new file mode 100644 index 0000000000..ef7fb404c3 --- /dev/null +++ b/ibm/service/project/resource_ibm_project_config.go @@ -0,0 +1,757 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package project + +import ( + "context" + "fmt" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/validate" + "github.com/IBM/go-sdk-core/v5/core" + "github.com/IBM/project-go-sdk/projectv1" +) + +func ResourceIbmProjectConfig() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceIbmProjectConfigCreate, + ReadContext: resourceIbmProjectConfigRead, + UpdateContext: resourceIbmProjectConfigUpdate, + DeleteContext: resourceIbmProjectConfigDelete, + Importer: &schema.ResourceImporter{}, + + Schema: map[string]*schema.Schema{ + "project_id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validate.InvokeValidator("ibm_project_config", "project_id"), + Description: "The unique project ID.", + }, + "schematics": &schema.Schema{ + Type: schema.TypeList, + MaxItems: 1, + Optional: true, + Description: "A schematics workspace associated to a project configuration.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "workspace_crn": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "An existing schematics workspace CRN.", + }, + }, + }, + }, + "definition": &schema.Schema{ + Type: schema.TypeList, + MinItems: 1, + MaxItems: 1, + Required: true, + Description: "The type and output of a project configuration.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The configuration name.", + }, + "description": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "A project configuration description.", + }, + "environment": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The ID of the project environment.", + }, + "authorizations": &schema.Schema{ + Type: schema.TypeList, + MaxItems: 1, + Optional: true, + Description: "The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "trusted_profile_id": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The trusted profile ID.", + }, + "method": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.", + }, + "api_key": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The IBM Cloud API Key.", + }, + }, + }, + }, + "compliance_profile": &schema.Schema{ + Type: schema.TypeList, + MaxItems: 1, + Optional: true, + Description: "The profile required for compliance.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "id": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The unique ID.", + }, + "instance_id": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The unique ID.", + }, + "instance_location": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The location of the compliance instance.", + }, + "attachment_id": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The unique ID.", + }, + "profile_name": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The name of the compliance profile.", + }, + }, + }, + }, + "locator_id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "A dotted value of catalogID.versionID.", + }, + "inputs": &schema.Schema{ + Type: schema.TypeList, + MaxItems: 1, + Optional: true, + Description: "The input variables for configuration definition and environment.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{}, + }, + }, + "settings": &schema.Schema{ + Type: schema.TypeList, + MaxItems: 1, + Optional: true, + Description: "Schematics environment variables to use to deploy the configuration.Settings are only available if they were specified when the configuration was initially created.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{}, + }, + }, + "type": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The type of a project configuration manual property.", + }, + }, + }, + }, + "version": &schema.Schema{ + Type: schema.TypeInt, + Computed: true, + Description: "The version of the configuration.", + }, + "is_draft": &schema.Schema{ + Type: schema.TypeBool, + Computed: true, + Description: "The flag that indicates whether the version of the configuration is draft, or active.", + }, + "needs_attention_state": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The needs attention state of a configuration.", + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "created_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", + }, + "modified_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", + }, + "last_saved_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", + }, + "outputs": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The outputs of a Schematics template property.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The variable name.", + }, + "description": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "A short explanation of the output value.", + }, + "value": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "Can be any value - a string, number, boolean, array, or object.", + }, + }, + }, + }, + "project": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The project referenced by this resource.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The unique ID.", + }, + "definition": &schema.Schema{ + Type: schema.TypeList, + MinItems: 1, + MaxItems: 1, + Required: true, + Description: "The definition of the project reference.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The name of the project.", + }, + }, + }, + }, + "crn": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "An IBM Cloud resource name, which uniquely identifies a resource.", + }, + "href": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "A URL.", + }, + }, + }, + }, + "state": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The state of the configuration.", + }, + "update_available": &schema.Schema{ + Type: schema.TypeBool, + Computed: true, + Description: "The flag that indicates whether a configuration update is available.", + }, + "project_config_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration.", + }, + }, + } +} + +func ResourceIbmProjectConfigValidator() *validate.ResourceValidator { + validateSchema := make([]validate.ValidateSchema, 0) + validateSchema = append(validateSchema, + validate.ValidateSchema{ + Identifier: "project_id", + ValidateFunctionIdentifier: validate.ValidateRegexp, + Type: validate.TypeString, + Required: true, + Regexp: `^[\.\-0-9a-zA-Z]+$`, + MaxValueLength: 128, + }, + ) + + resourceValidator := validate.ResourceValidator{ResourceName: "ibm_project_config", Schema: validateSchema} + return &resourceValidator +} + +func resourceIbmProjectConfigCreate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + projectClient, err := meta.(conns.ClientSession).ProjectV1() + if err != nil { + return diag.FromErr(err) + } + + createConfigOptions := &projectv1.CreateConfigOptions{} + + createConfigOptions.SetProjectID(d.Get("project_id").(string)) + definitionModel, err := resourceIbmProjectConfigMapToProjectConfigPrototypeDefinitionBlock(d.Get("definition.0").(map[string]interface{})) + if err != nil { + return diag.FromErr(err) + } + createConfigOptions.SetDefinition(definitionModel) + if _, ok := d.GetOk("schematics"); ok { + schematicsModel, err := resourceIbmProjectConfigMapToSchematicsWorkspace(d.Get("schematics.0").(map[string]interface{})) + if err != nil { + return diag.FromErr(err) + } + createConfigOptions.SetSchematics(schematicsModel) + } + + projectConfig, response, err := projectClient.CreateConfigWithContext(context, createConfigOptions) + if err != nil { + log.Printf("[DEBUG] CreateConfigWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("CreateConfigWithContext failed %s\n%s", err, response)) + } + + d.SetId(fmt.Sprintf("%s/%s", *createConfigOptions.ProjectID, *projectConfig.ID)) + + return resourceIbmProjectConfigRead(context, d, meta) +} + +func resourceIbmProjectConfigRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + projectClient, err := meta.(conns.ClientSession).ProjectV1() + if err != nil { + return diag.FromErr(err) + } + + getConfigOptions := &projectv1.GetConfigOptions{} + + parts, err := flex.SepIdParts(d.Id(), "/") + if err != nil { + return diag.FromErr(err) + } + + getConfigOptions.SetProjectID(parts[0]) + getConfigOptions.SetID(parts[1]) + + projectConfig, response, err := projectClient.GetConfigWithContext(context, getConfigOptions) + if err != nil { + if response != nil && response.StatusCode == 404 { + d.SetId("") + return nil + } + log.Printf("[DEBUG] GetConfigWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("GetConfigWithContext failed %s\n%s", err, response)) + } + + definitionMap, err := resourceIbmProjectConfigProjectConfigResponseDefinitionToMap(projectConfig.Definition) + if err != nil { + return diag.FromErr(err) + } + if err = d.Set("definition", []map[string]interface{}{definitionMap}); err != nil { + return diag.FromErr(fmt.Errorf("Error setting definition: %s", err)) + } + if err = d.Set("version", flex.IntValue(projectConfig.Version)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting version: %s", err)) + } + if err = d.Set("is_draft", projectConfig.IsDraft); err != nil { + return diag.FromErr(fmt.Errorf("Error setting is_draft: %s", err)) + } + if !core.IsNil(projectConfig.NeedsAttentionState) { + needsAttentionState := []interface{}{} + for _, needsAttentionStateItem := range projectConfig.NeedsAttentionState { + needsAttentionState = append(needsAttentionState, needsAttentionStateItem) + } + if err = d.Set("needs_attention_state", needsAttentionState); err != nil { + return diag.FromErr(fmt.Errorf("Error setting needs_attention_state: %s", err)) + } + } + if err = d.Set("created_at", flex.DateTimeToString(projectConfig.CreatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting created_at: %s", err)) + } + if err = d.Set("modified_at", flex.DateTimeToString(projectConfig.ModifiedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting modified_at: %s", err)) + } + if !core.IsNil(projectConfig.LastSavedAt) { + if err = d.Set("last_saved_at", flex.DateTimeToString(projectConfig.LastSavedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting last_saved_at: %s", err)) + } + } + if !core.IsNil(projectConfig.Outputs) { + outputs := []map[string]interface{}{} + for _, outputsItem := range projectConfig.Outputs { + outputsItemMap, err := resourceIbmProjectConfigOutputValueToMap(&outputsItem) + if err != nil { + return diag.FromErr(err) + } + outputs = append(outputs, outputsItemMap) + } + if err = d.Set("outputs", outputs); err != nil { + return diag.FromErr(fmt.Errorf("Error setting outputs: %s", err)) + } + } + projectMap, err := resourceIbmProjectConfigProjectReferenceToMap(projectConfig.Project) + if err != nil { + return diag.FromErr(err) + } + if err = d.Set("project", []map[string]interface{}{projectMap}); err != nil { + return diag.FromErr(fmt.Errorf("Error setting project: %s", err)) + } + if err = d.Set("state", projectConfig.State); err != nil { + return diag.FromErr(fmt.Errorf("Error setting state: %s", err)) + } + if err = d.Set("update_available", projectConfig.UpdateAvailable); err != nil { + return diag.FromErr(fmt.Errorf("Error setting update_available: %s", err)) + } + if err = d.Set("project_config_id", projectConfig.ID); err != nil { + return diag.FromErr(fmt.Errorf("Error setting project_config_id: %s", err)) + } + + return nil +} + +func resourceIbmProjectConfigUpdate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + projectClient, err := meta.(conns.ClientSession).ProjectV1() + if err != nil { + return diag.FromErr(err) + } + + updateConfigOptions := &projectv1.UpdateConfigOptions{} + + parts, err := flex.SepIdParts(d.Id(), "/") + if err != nil { + return diag.FromErr(err) + } + + updateConfigOptions.SetProjectID(parts[0]) + updateConfigOptions.SetID(parts[1]) + + hasChange := false + + if d.HasChange("definition") { + definition, err := resourceIbmProjectConfigMapToProjectConfigPrototypePatchDefinitionBlock(d.Get("definition.0").(map[string]interface{})) + if err != nil { + return diag.FromErr(err) + } + updateConfigOptions.SetDefinition(definition) + hasChange = true + } + + if hasChange { + _, response, err := projectClient.UpdateConfigWithContext(context, updateConfigOptions) + if err != nil { + log.Printf("[DEBUG] UpdateConfigWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("UpdateConfigWithContext failed %s\n%s", err, response)) + } + } + + return resourceIbmProjectConfigRead(context, d, meta) +} + +func resourceIbmProjectConfigDelete(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + projectClient, err := meta.(conns.ClientSession).ProjectV1() + if err != nil { + return diag.FromErr(err) + } + + deleteConfigOptions := &projectv1.DeleteConfigOptions{} + + parts, err := flex.SepIdParts(d.Id(), "/") + if err != nil { + return diag.FromErr(err) + } + + deleteConfigOptions.SetProjectID(parts[0]) + deleteConfigOptions.SetID(parts[1]) + + _, response, err := projectClient.DeleteConfigWithContext(context, deleteConfigOptions) + if err != nil { + log.Printf("[DEBUG] DeleteConfigWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("DeleteConfigWithContext failed %s\n%s", err, response)) + } + + d.SetId("") + + return nil +} + +func resourceIbmProjectConfigMapToProjectConfigPrototypeDefinitionBlock(modelMap map[string]interface{}) (*projectv1.ProjectConfigPrototypeDefinitionBlock, error) { + model := &projectv1.ProjectConfigPrototypeDefinitionBlock{} + model.Name = core.StringPtr(modelMap["name"].(string)) + if modelMap["description"] != nil && modelMap["description"].(string) != "" { + model.Description = core.StringPtr(modelMap["description"].(string)) + } + if modelMap["environment"] != nil && modelMap["environment"].(string) != "" { + model.Environment = core.StringPtr(modelMap["environment"].(string)) + } + if modelMap["authorizations"] != nil && len(modelMap["authorizations"].([]interface{})) > 0 { + AuthorizationsModel, err := resourceIbmProjectConfigMapToProjectConfigAuth(modelMap["authorizations"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.Authorizations = AuthorizationsModel + } + if modelMap["compliance_profile"] != nil && len(modelMap["compliance_profile"].([]interface{})) > 0 { + ComplianceProfileModel, err := resourceIbmProjectConfigMapToProjectComplianceProfile(modelMap["compliance_profile"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.ComplianceProfile = ComplianceProfileModel + } + if modelMap["locator_id"] != nil && modelMap["locator_id"].(string) != "" { + model.LocatorID = core.StringPtr(modelMap["locator_id"].(string)) + } + if modelMap["inputs"] != nil && len(modelMap["inputs"].([]interface{})) > 0 { + InputsModel, err := resourceIbmProjectConfigMapToInputVariable(modelMap["inputs"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.Inputs = InputsModel + } + if modelMap["settings"] != nil && len(modelMap["settings"].([]interface{})) > 0 { + SettingsModel, err := resourceIbmProjectConfigMapToProjectConfigSetting(modelMap["settings"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.Settings = SettingsModel + } + return model, nil +} + +func resourceIbmProjectConfigMapToProjectConfigAuth(modelMap map[string]interface{}) (*projectv1.ProjectConfigAuth, error) { + model := &projectv1.ProjectConfigAuth{} + if modelMap["trusted_profile_id"] != nil && modelMap["trusted_profile_id"].(string) != "" { + model.TrustedProfileID = core.StringPtr(modelMap["trusted_profile_id"].(string)) + } + if modelMap["method"] != nil && modelMap["method"].(string) != "" { + model.Method = core.StringPtr(modelMap["method"].(string)) + } + if modelMap["api_key"] != nil && modelMap["api_key"].(string) != "" { + model.ApiKey = core.StringPtr(modelMap["api_key"].(string)) + } + return model, nil +} + +func resourceIbmProjectConfigMapToProjectComplianceProfile(modelMap map[string]interface{}) (*projectv1.ProjectComplianceProfile, error) { + model := &projectv1.ProjectComplianceProfile{} + if modelMap["id"] != nil && modelMap["id"].(string) != "" { + model.ID = core.StringPtr(modelMap["id"].(string)) + } + if modelMap["instance_id"] != nil && modelMap["instance_id"].(string) != "" { + model.InstanceID = core.StringPtr(modelMap["instance_id"].(string)) + } + if modelMap["instance_location"] != nil && modelMap["instance_location"].(string) != "" { + model.InstanceLocation = core.StringPtr(modelMap["instance_location"].(string)) + } + if modelMap["attachment_id"] != nil && modelMap["attachment_id"].(string) != "" { + model.AttachmentID = core.StringPtr(modelMap["attachment_id"].(string)) + } + if modelMap["profile_name"] != nil && modelMap["profile_name"].(string) != "" { + model.ProfileName = core.StringPtr(modelMap["profile_name"].(string)) + } + return model, nil +} + +func resourceIbmProjectConfigMapToInputVariable(modelMap map[string]interface{}) (*projectv1.InputVariable, error) { + model := &projectv1.InputVariable{} + return model, nil +} + +func resourceIbmProjectConfigMapToProjectConfigSetting(modelMap map[string]interface{}) (*projectv1.ProjectConfigSetting, error) { + model := &projectv1.ProjectConfigSetting{} + return model, nil +} + +func resourceIbmProjectConfigMapToSchematicsWorkspace(modelMap map[string]interface{}) (*projectv1.SchematicsWorkspace, error) { + model := &projectv1.SchematicsWorkspace{} + if modelMap["workspace_crn"] != nil && modelMap["workspace_crn"].(string) != "" { + model.WorkspaceCrn = core.StringPtr(modelMap["workspace_crn"].(string)) + } + return model, nil +} + +func resourceIbmProjectConfigMapToProjectConfigPrototypePatchDefinitionBlock(modelMap map[string]interface{}) (*projectv1.ProjectConfigPrototypePatchDefinitionBlock, error) { + model := &projectv1.ProjectConfigPrototypePatchDefinitionBlock{} + if modelMap["name"] != nil && modelMap["name"].(string) != "" { + model.Name = core.StringPtr(modelMap["name"].(string)) + } + if modelMap["description"] != nil && modelMap["description"].(string) != "" { + model.Description = core.StringPtr(modelMap["description"].(string)) + } + if modelMap["environment"] != nil && modelMap["environment"].(string) != "" { + model.Environment = core.StringPtr(modelMap["environment"].(string)) + } + if modelMap["authorizations"] != nil && len(modelMap["authorizations"].([]interface{})) > 0 { + AuthorizationsModel, err := resourceIbmProjectConfigMapToProjectConfigAuth(modelMap["authorizations"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.Authorizations = AuthorizationsModel + } + if modelMap["compliance_profile"] != nil && len(modelMap["compliance_profile"].([]interface{})) > 0 { + ComplianceProfileModel, err := resourceIbmProjectConfigMapToProjectComplianceProfile(modelMap["compliance_profile"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.ComplianceProfile = ComplianceProfileModel + } + if modelMap["locator_id"] != nil && modelMap["locator_id"].(string) != "" { + model.LocatorID = core.StringPtr(modelMap["locator_id"].(string)) + } + if modelMap["inputs"] != nil && len(modelMap["inputs"].([]interface{})) > 0 { + InputsModel, err := resourceIbmProjectConfigMapToInputVariable(modelMap["inputs"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.Inputs = InputsModel + } + if modelMap["settings"] != nil && len(modelMap["settings"].([]interface{})) > 0 { + SettingsModel, err := resourceIbmProjectConfigMapToProjectConfigSetting(modelMap["settings"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.Settings = SettingsModel + } + return model, nil +} + +func resourceIbmProjectConfigSchematicsWorkspaceToMap(model *projectv1.SchematicsWorkspace) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.WorkspaceCrn != nil { + modelMap["workspace_crn"] = model.WorkspaceCrn + } + return modelMap, nil +} + +func resourceIbmProjectConfigProjectConfigResponseDefinitionToMap(model *projectv1.ProjectConfigResponseDefinition) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["name"] = model.Name + if model.Description != nil { + modelMap["description"] = model.Description + } + if model.Environment != nil { + modelMap["environment"] = model.Environment + } + if model.Authorizations != nil { + authorizationsMap, err := resourceIbmProjectConfigProjectConfigAuthToMap(model.Authorizations) + if err != nil { + return modelMap, err + } + modelMap["authorizations"] = []map[string]interface{}{authorizationsMap} + } + if model.ComplianceProfile != nil { + complianceProfileMap, err := resourceIbmProjectConfigProjectComplianceProfileToMap(model.ComplianceProfile) + if err != nil { + return modelMap, err + } + if len(complianceProfileMap) > 0 { + modelMap["compliance_profile"] = []map[string]interface{}{complianceProfileMap} + } + } + modelMap["locator_id"] = model.LocatorID + if model.Inputs != nil { + inputsMap, err := resourceIbmProjectConfigInputVariableToMap(model.Inputs) + if err != nil { + return modelMap, err + } + if len(inputsMap) > 0 { + modelMap["inputs"] = []map[string]interface{}{inputsMap} + } + } + if model.Settings != nil { + settingsMap, err := resourceIbmProjectConfigProjectConfigSettingToMap(model.Settings) + if err != nil { + return modelMap, err + } + modelMap["settings"] = []map[string]interface{}{settingsMap} + } + if model.Type != nil { + modelMap["type"] = model.Type + } + return modelMap, nil +} + +func resourceIbmProjectConfigProjectConfigAuthToMap(model *projectv1.ProjectConfigAuth) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.TrustedProfileID != nil { + modelMap["trusted_profile_id"] = model.TrustedProfileID + } + if model.Method != nil { + modelMap["method"] = model.Method + } + if model.ApiKey != nil { + modelMap["api_key"] = model.ApiKey + } + return modelMap, nil +} + +func resourceIbmProjectConfigProjectComplianceProfileToMap(model *projectv1.ProjectComplianceProfile) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.ID != nil { + modelMap["id"] = model.ID + } + if model.InstanceID != nil { + modelMap["instance_id"] = model.InstanceID + } + if model.InstanceLocation != nil { + modelMap["instance_location"] = model.InstanceLocation + } + if model.AttachmentID != nil { + modelMap["attachment_id"] = model.AttachmentID + } + if model.ProfileName != nil { + modelMap["profile_name"] = model.ProfileName + } + return modelMap, nil +} + +func resourceIbmProjectConfigInputVariableToMap(model *projectv1.InputVariable) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + return modelMap, nil +} + +func resourceIbmProjectConfigProjectConfigSettingToMap(model *projectv1.ProjectConfigSetting) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + return modelMap, nil +} + +func resourceIbmProjectConfigOutputValueToMap(model *projectv1.OutputValue) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["name"] = model.Name + if model.Description != nil { + modelMap["description"] = model.Description + } + if model.Value != nil { + modelMap["value"] = model.Value + } + return modelMap, nil +} + +func resourceIbmProjectConfigProjectReferenceToMap(model *projectv1.ProjectReference) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["id"] = model.ID + definitionMap, err := resourceIbmProjectConfigProjectDefinitionReferenceToMap(model.Definition) + if err != nil { + return modelMap, err + } + modelMap["definition"] = []map[string]interface{}{definitionMap} + modelMap["crn"] = model.Crn + modelMap["href"] = model.Href + return modelMap, nil +} + +func resourceIbmProjectConfigProjectDefinitionReferenceToMap(model *projectv1.ProjectDefinitionReference) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["name"] = model.Name + return modelMap, nil +} diff --git a/ibm/service/project/resource_ibm_project_config_test.go b/ibm/service/project/resource_ibm_project_config_test.go new file mode 100644 index 0000000000..8a827c81f1 --- /dev/null +++ b/ibm/service/project/resource_ibm_project_config_test.go @@ -0,0 +1,138 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package project_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/project-go-sdk/projectv1" +) + +func TestAccIbmProjectConfigBasic(t *testing.T) { + var conf projectv1.ProjectConfig + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIbmProjectConfigDestroy, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmProjectConfigConfigBasic(), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIbmProjectConfigExists("ibm_project_config.project_config_instance", conf), + ), + }, + resource.TestStep{ + ResourceName: "ibm_project_config.project_config_instance", + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{"project_id"}, + }, + }, + }) +} + +func testAccCheckIbmProjectConfigConfigBasic() string { + return fmt.Sprintf(` + resource "ibm_project" "project_instance" { + location = "us-south" + resource_group = "Default" + definition { + name = "acme-microservice" + description = "acme-microservice description" + destroy_on_delete = true + } + } + + resource "ibm_project_config" "project_config_instance" { + project_id = ibm_project.project_instance.id + definition { + name = "stage-environment" + authorizations { + method = "api_key" + api_key = "%s" + } + locator_id = "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.cd596f95-95a2-4f21-9b84-477f21fd1e95-global" + } + lifecycle { + ignore_changes = [ + definition[0].authorizations[0].api_key, + ] + } + } + `, acc.ProjectsConfigApiKey) +} + +func testAccCheckIbmProjectConfigExists(n string, obj projectv1.ProjectConfig) resource.TestCheckFunc { + + return func(s *terraform.State) error { + rs, ok := s.RootModule().Resources[n] + if !ok { + return fmt.Errorf("Not found: %s", n) + } + + projectClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).ProjectV1() + if err != nil { + return err + } + + getConfigOptions := &projectv1.GetConfigOptions{} + + parts, err := flex.SepIdParts(rs.Primary.ID, "/") + if err != nil { + return err + } + + getConfigOptions.SetProjectID(parts[0]) + getConfigOptions.SetID(parts[1]) + + projectConfig, _, err := projectClient.GetConfig(getConfigOptions) + if err != nil { + return err + } + + obj = *projectConfig + return nil + } +} + +func testAccCheckIbmProjectConfigDestroy(s *terraform.State) error { + projectClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).ProjectV1() + if err != nil { + return err + } + for _, rs := range s.RootModule().Resources { + if rs.Type != "ibm_project_config" { + continue + } + + getConfigOptions := &projectv1.GetConfigOptions{} + + parts, err := flex.SepIdParts(rs.Primary.ID, "/") + if err != nil { + return err + } + + getConfigOptions.SetProjectID(parts[0]) + getConfigOptions.SetID(parts[1]) + + // Try to find the key + _, response, err := projectClient.GetConfig(getConfigOptions) + + if err == nil { + return fmt.Errorf("project_config still exists: %s", rs.Primary.ID) + } else if response.StatusCode != 404 { + return fmt.Errorf("Error checking for project_config (%s) has been destroyed: %s", rs.Primary.ID, err) + } + } + + return nil +} diff --git a/ibm/service/project/resource_ibm_project_instance.go b/ibm/service/project/resource_ibm_project_instance.go deleted file mode 100644 index 2d4c5af5a4..0000000000 --- a/ibm/service/project/resource_ibm_project_instance.go +++ /dev/null @@ -1,646 +0,0 @@ -// Copyright IBM Corp. 2023 All Rights Reserved. -// Licensed under the Mozilla Public License v2.0 - -package project - -import ( - "context" - "fmt" - "log" - "time" - - "github.com/hashicorp/terraform-plugin-sdk/v2/diag" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - - "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" - "github.com/IBM-Cloud/terraform-provider-ibm/ibm/validate" - "github.com/IBM/go-sdk-core/v5/core" - "github.com/IBM/project-go-sdk/projectv1" -) - -func ResourceIbmProjectInstance() *schema.Resource { - return &schema.Resource{ - CreateContext: resourceIbmProjectInstanceCreate, - ReadContext: resourceIbmProjectInstanceRead, - UpdateContext: resourceIbmProjectInstanceUpdate, - DeleteContext: resourceIbmProjectInstanceDelete, - Importer: &schema.ResourceImporter{}, - Timeouts: &schema.ResourceTimeout{ - Create: schema.DefaultTimeout(1 * time.Minute), - Delete: schema.DefaultTimeout(1 * time.Minute), - }, - - Schema: map[string]*schema.Schema{ - "name": &schema.Schema{ - Type: schema.TypeString, - Required: true, - ForceNew: true, - Description: "The project name.", - }, - "description": &schema.Schema{ - Type: schema.TypeString, - Optional: true, - Description: "A project's descriptive text.", - }, - "configs": &schema.Schema{ - Type: schema.TypeList, - Optional: true, - Description: "The project configurations.", - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "id": &schema.Schema{ - Type: schema.TypeString, - Optional: true, - Description: "The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration.", - }, - "name": &schema.Schema{ - Type: schema.TypeString, - Required: true, - Description: "The configuration name.", - }, - "labels": &schema.Schema{ - Type: schema.TypeList, - Optional: true, - Description: "A collection of configuration labels.", - Elem: &schema.Schema{Type: schema.TypeString}, - }, - "description": &schema.Schema{ - Type: schema.TypeString, - Optional: true, - Description: "The project configuration description.", - }, - "locator_id": &schema.Schema{ - Type: schema.TypeString, - Required: true, - Description: "A dotted value of catalogID.versionID.", - }, - "input": &schema.Schema{ - Type: schema.TypeList, - Optional: true, - Description: "The input values to use to deploy the configuration.", - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "name": &schema.Schema{ - Type: schema.TypeString, - Required: true, - Description: "The variable name.", - }, - "value": &schema.Schema{ - Type: schema.TypeString, - Optional: true, - Description: "Can be any value - a string, number, boolean, array, or object.", - }, - }, - }, - }, - "setting": &schema.Schema{ - Type: schema.TypeList, - Optional: true, - Description: "Schematics environment variables to use to deploy the configuration.", - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "name": &schema.Schema{ - Type: schema.TypeString, - Required: true, - Description: "The name of the configuration setting.", - }, - "value": &schema.Schema{ - Type: schema.TypeString, - Required: true, - Description: "The value of the configuration setting.", - }, - }, - }, - }, - }, - }, - }, - "resource_group": &schema.Schema{ - Type: schema.TypeString, - Required: true, - Description: "The resource group where the project's data and tools are created.", - }, - "location": &schema.Schema{ - Type: schema.TypeString, - Required: true, - Description: "The location where the project's data and tools are created.", - }, - "crn": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "An IBM Cloud resource name, which uniquely identifies a resource.", - }, - "metadata": &schema.Schema{ - Type: schema.TypeList, - Computed: true, - Description: "The metadata of the project.", - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "crn": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "An IBM Cloud resource name, which uniquely identifies a resource.", - }, - "created_at": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", - }, - "cumulative_needs_attention_view": &schema.Schema{ - Type: schema.TypeList, - Computed: true, - Description: "The cumulative list of needs attention items for a project.", - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "event": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The event name.", - }, - "event_id": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The unique ID of a project.", - }, - "config_id": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The unique ID of a project.", - }, - "config_version": &schema.Schema{ - Type: schema.TypeInt, - Computed: true, - Description: "The version number of the configuration.", - }, - }, - }, - }, - "cumulative_needs_attention_view_err": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "True indicates that the fetch of the needs attention items failed.", - }, - "location": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The IBM Cloud location where a resource is deployed.", - }, - "resource_group": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The resource group where the project's data and tools are created.", - }, - "state": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The project status value.", - }, - "event_notifications_crn": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The CRN of the event notifications instance if one is connected to this project.", - }, - }, - }, - }, - }, - } -} - -func ResourceIbmProjectInstanceValidator() *validate.ResourceValidator { - validateSchema := make([]validate.ValidateSchema, 0) - validateSchema = append(validateSchema, - validate.ValidateSchema{ - Identifier: "name", - Type: validate.TypeString, - Required: true, - Regexp: `^(?!\s)(?!.*\s$)[^'"<>{}\x00-\x1F]+$`, - MinValueLength: 1, - MaxValueLength: 64, - }, - validate.ValidateSchema{ - Identifier: "description", - Type: validate.TypeString, - Optional: true, - Regexp: `^$|^(?!\s).*\S$`, - MinValueLength: 0, - MaxValueLength: 1024, - }, - validate.ValidateSchema{ - Identifier: "resource_group", - Type: validate.TypeString, - Required: true, - Regexp: `^$|^(?!\s)(?!.*\s$)[^'"<>{}\x00-\x1F]*$`, - MinValueLength: 0, - MaxValueLength: 40, - }, - validate.ValidateSchema{ - Identifier: "location", - Type: validate.TypeString, - Required: true, - Regexp: `^$|^(us-south|us-east|eu-gb|eu-de)$`, - MinValueLength: 0, - MaxValueLength: 12, - }, - ) - - resourceValidator := validate.ResourceValidator{ResourceName: "ibm_project_instance", Schema: validateSchema} - return &resourceValidator -} - -func resourceIbmProjectInstanceCreate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { - projectClient, err := meta.(conns.ClientSession).ProjectV1() - if err != nil { - return diag.FromErr(err) - } - - createProjectOptions := &projectv1.CreateProjectOptions{} - - createProjectOptions.SetName(d.Get("name").(string)) - if _, ok := d.GetOk("description"); ok { - createProjectOptions.SetDescription(d.Get("description").(string)) - } - if _, ok := d.GetOk("configs"); ok { - var configs []projectv1.ProjectConfigPrototype - for _, v := range d.Get("configs").([]interface{}) { - value := v.(map[string]interface{}) - configsItem, err := resourceIbmProjectInstanceMapToProjectConfigPrototype(value) - if err != nil { - return diag.FromErr(err) - } - configs = append(configs, *configsItem) - } - createProjectOptions.SetConfigs(configs) - } - if _, ok := d.GetOk("resource_group"); ok { - createProjectOptions.SetResourceGroup(d.Get("resource_group").(string)) - } - if _, ok := d.GetOk("location"); ok { - createProjectOptions.SetLocation(d.Get("location").(string)) - } - - project, response, err := projectClient.CreateProjectWithContext(context, createProjectOptions) - if err != nil { - log.Printf("[DEBUG] CreateProjectWithContext failed %s\n%s", err, response) - return diag.FromErr(fmt.Errorf("CreateProjectWithContext failed %s\n%s", err, response)) - } - - d.SetId(*project.ID) - - _, err = waitForProjectInstanceCreate(d, meta) - if err != nil { - return diag.FromErr(fmt.Errorf("[ERROR] Error waiting for create project instance (%s) to be succeeded: %s", d.Id(), err)) - } - - return resourceIbmProjectInstanceRead(context, d, meta) -} - -func waitForProjectInstanceCreate(d *schema.ResourceData, meta interface{}) (interface{}, error) { - projectClient, err := meta.(conns.ClientSession).ProjectV1() - if err != nil { - return false, err - } - instanceID := d.Id() - getProjectOptions := &projectv1.GetProjectOptions{} - getProjectOptions.SetID(instanceID) - - stateConf := &resource.StateChangeConf{ - Pending: []string{"not_exists"}, - Target: []string{"exists"}, - Refresh: func() (interface{}, string, error) { - _, resp, err := projectClient.GetProject(getProjectOptions) - if err == nil { - if resp != nil && resp.StatusCode == 200 { - return resp, "exists", nil - } else { - return resp, "not_exists", nil - } - } else { - return nil, "", fmt.Errorf("[ERROR] Get the project instance %s failed with resp code: %d, err: %v", d.Id(), resp.StatusCode, err) - } - }, - Timeout: d.Timeout(schema.TimeoutCreate), - Delay: 2 * time.Second, - MinTimeout: 10 * time.Second, - } - - return stateConf.WaitForState() -} - -func resourceIbmProjectInstanceRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { - projectClient, err := meta.(conns.ClientSession).ProjectV1() - if err != nil { - return diag.FromErr(err) - } - - getProjectOptions := &projectv1.GetProjectOptions{} - - getProjectOptions.SetID(d.Id()) - - project, response, err := projectClient.GetProjectWithContext(context, getProjectOptions) - if err != nil { - if response != nil && response.StatusCode == 404 { - d.SetId("") - return nil - } - log.Printf("[DEBUG] GetProjectWithContext failed %s\n%s", err, response) - return diag.FromErr(fmt.Errorf("GetProjectWithContext failed %s\n%s", err, response)) - } - - if !core.IsNil(project.Crn) { - if err = d.Set("crn", project.Crn); err != nil { - return diag.FromErr(fmt.Errorf("Error setting crn: %s", err)) - } - } - if err = d.Set("name", project.Name); err != nil { - return diag.FromErr(fmt.Errorf("Error setting name: %s", err)) - } - if !core.IsNil(project.Description) { - if err = d.Set("description", project.Description); err != nil { - return diag.FromErr(fmt.Errorf("Error setting description: %s", err)) - } - } - if !core.IsNil(project.Configs) { - configs := []map[string]interface{}{} - if err = d.Set("configs", configs); err != nil { - return diag.FromErr(fmt.Errorf("Error setting configs: %s", err)) - } - } - if !core.IsNil(project.Metadata) { - metadataMap, err := resourceIbmProjectInstanceProjectMetadataToMap(project.Metadata) - if err != nil { - return diag.FromErr(err) - } - if err = d.Set("metadata", []map[string]interface{}{metadataMap}); err != nil { - return diag.FromErr(fmt.Errorf("Error setting metadata: %s", err)) - } - } - - return nil -} - -func resourceIbmProjectInstanceUpdate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { - projectClient, err := meta.(conns.ClientSession).ProjectV1() - if err != nil { - return diag.FromErr(err) - } - - updateProjectOptions := &projectv1.UpdateProjectOptions{} - - updateProjectOptions.SetID(d.Id()) - - hasChange := false - - if d.HasChange("name") { - updateProjectOptions.SetName(d.Get("name").(string)) - hasChange = true - } - if d.HasChange("description") { - updateProjectOptions.SetDescription(d.Get("description").(string)) - hasChange = true - } - if d.HasChange("configs") { - var configs []projectv1.ProjectConfigPrototype - for _, v := range d.Get("configs").([]interface{}) { - value := v.(map[string]interface{}) - configsItem, err := resourceIbmProjectInstanceMapToProjectConfigPrototype(value) - if err != nil { - return diag.FromErr(err) - } - configs = append(configs, *configsItem) - } - hasChange = true - } - - if hasChange { - _, response, err := projectClient.UpdateProjectWithContext(context, updateProjectOptions) - if err != nil { - log.Printf("[DEBUG] UpdateProjectWithContext failed %s\n%s", err, response) - return diag.FromErr(fmt.Errorf("UpdateProjectWithContext failed %s\n%s", err, response)) - } - } - - return resourceIbmProjectInstanceRead(context, d, meta) -} - -func resourceIbmProjectInstanceDelete(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { - projectClient, err := meta.(conns.ClientSession).ProjectV1() - if err != nil { - return diag.FromErr(err) - } - - deleteProjectOptions := &projectv1.DeleteProjectOptions{} - - deleteProjectOptions.SetID(d.Id()) - - response, err := projectClient.DeleteProjectWithContext(context, deleteProjectOptions) - if err != nil { - log.Printf("[DEBUG] DeleteProjectWithContext failed %s\n%s", err, response) - return diag.FromErr(fmt.Errorf("DeleteProjectWithContext failed %s\n%s", err, response)) - } - - _, err = waitForProjectInstanceDelete(d, meta) - if err != nil { - return diag.FromErr(fmt.Errorf("[ERROR] Error waiting for delete project instance (%s) to be succeeded: %s", d.Id(), err)) - } - - d.SetId("") - - return nil -} - -func waitForProjectInstanceDelete(d *schema.ResourceData, meta interface{}) (interface{}, error) { - projectClient, err := meta.(conns.ClientSession).ProjectV1() - if err != nil { - return false, err - } - instanceID := d.Id() - getProjectOptions := &projectv1.GetProjectOptions{} - getProjectOptions.SetID(instanceID) - - stateConf := &resource.StateChangeConf{ - Pending: []string{"exists"}, - Target: []string{"not_exists"}, - Refresh: func() (interface{}, string, error) { - _, resp, err := projectClient.GetProject(getProjectOptions) - if err != nil { - if resp != nil && resp.StatusCode == 404 { - return resp, "not_exists", nil - } else { - return resp, "exists", nil - } - } else { - return resp, "exists", nil - } - }, - Timeout: d.Timeout(schema.TimeoutDelete), - Delay: 2 * time.Second, - MinTimeout: 10 * time.Second, - } - - return stateConf.WaitForState() -} - -func resourceIbmProjectInstanceMapToProjectConfigPrototype(modelMap map[string]interface{}) (*projectv1.ProjectConfigPrototype, error) { - model := &projectv1.ProjectConfigPrototype{} - if modelMap["id"] != nil && modelMap["id"].(string) != "" { - model.ID = core.StringPtr(modelMap["id"].(string)) - } - model.Name = core.StringPtr(modelMap["name"].(string)) - if modelMap["labels"] != nil { - labels := []string{} - for _, labelsItem := range modelMap["labels"].([]interface{}) { - labels = append(labels, labelsItem.(string)) - } - model.Labels = labels - } - if modelMap["description"] != nil && modelMap["description"].(string) != "" { - model.Description = core.StringPtr(modelMap["description"].(string)) - } - model.LocatorID = core.StringPtr(modelMap["locator_id"].(string)) - if modelMap["input"] != nil { - input := []projectv1.ProjectConfigInputVariable{} - for _, inputItem := range modelMap["input"].([]interface{}) { - inputItemModel, err := resourceIbmProjectInstanceMapToProjectConfigInputVariable(inputItem.(map[string]interface{})) - if err != nil { - return model, err - } - input = append(input, *inputItemModel) - } - model.Input = input - } - if modelMap["setting"] != nil { - setting := []projectv1.ProjectConfigSettingCollection{} - for _, settingItem := range modelMap["setting"].([]interface{}) { - settingItemModel, err := resourceIbmProjectInstanceMapToProjectConfigSettingCollection(settingItem.(map[string]interface{})) - if err != nil { - return model, err - } - setting = append(setting, *settingItemModel) - } - model.Setting = setting - } - return model, nil -} - -func resourceIbmProjectInstanceMapToProjectConfigInputVariable(modelMap map[string]interface{}) (*projectv1.ProjectConfigInputVariable, error) { - model := &projectv1.ProjectConfigInputVariable{} - model.Name = core.StringPtr(modelMap["name"].(string)) - if modelMap["value"] != nil { - model.Value = modelMap["value"].(string) - } - return model, nil -} - -func resourceIbmProjectInstanceMapToProjectConfigSettingCollection(modelMap map[string]interface{}) (*projectv1.ProjectConfigSettingCollection, error) { - model := &projectv1.ProjectConfigSettingCollection{} - model.Name = core.StringPtr(modelMap["name"].(string)) - model.Value = core.StringPtr(modelMap["value"].(string)) - return model, nil -} - -func resourceIbmProjectInstanceProjectConfigPrototypeToMap(model *projectv1.ProjectConfigPrototype) (map[string]interface{}, error) { - modelMap := make(map[string]interface{}) - if model.ID != nil { - modelMap["id"] = model.ID - } - modelMap["name"] = model.Name - if model.Labels != nil { - modelMap["labels"] = model.Labels - } - if model.Description != nil { - modelMap["description"] = model.Description - } - modelMap["locator_id"] = model.LocatorID - if model.Input != nil { - input := []map[string]interface{}{} - for _, inputItem := range model.Input { - inputItemMap, err := resourceIbmProjectInstanceProjectConfigInputVariableToMap(&inputItem) - if err != nil { - return modelMap, err - } - input = append(input, inputItemMap) - } - modelMap["input"] = input - } - if model.Setting != nil { - setting := []map[string]interface{}{} - for _, settingItem := range model.Setting { - settingItemMap, err := resourceIbmProjectInstanceProjectConfigSettingCollectionToMap(&settingItem) - if err != nil { - return modelMap, err - } - setting = append(setting, settingItemMap) - } - modelMap["setting"] = setting - } - return modelMap, nil -} - -func resourceIbmProjectInstanceProjectConfigInputVariableToMap(model *projectv1.ProjectConfigInputVariable) (map[string]interface{}, error) { - modelMap := make(map[string]interface{}) - modelMap["name"] = model.Name - if model.Value != nil { - modelMap["value"] = model.Value - } - return modelMap, nil -} - -func resourceIbmProjectInstanceProjectConfigSettingCollectionToMap(model *projectv1.ProjectConfigSettingCollection) (map[string]interface{}, error) { - modelMap := make(map[string]interface{}) - modelMap["name"] = model.Name - modelMap["value"] = model.Value - return modelMap, nil -} - -func resourceIbmProjectInstanceProjectMetadataToMap(model *projectv1.ProjectMetadata) (map[string]interface{}, error) { - modelMap := make(map[string]interface{}) - if model.Crn != nil { - modelMap["crn"] = model.Crn - } - if model.CreatedAt != nil { - modelMap["created_at"] = model.CreatedAt.String() - } - if model.CumulativeNeedsAttentionView != nil { - cumulativeNeedsAttentionView := []map[string]interface{}{} - for _, cumulativeNeedsAttentionViewItem := range model.CumulativeNeedsAttentionView { - cumulativeNeedsAttentionViewItemMap, err := resourceIbmProjectInstanceCumulativeNeedsAttentionToMap(&cumulativeNeedsAttentionViewItem) - if err != nil { - return modelMap, err - } - cumulativeNeedsAttentionView = append(cumulativeNeedsAttentionView, cumulativeNeedsAttentionViewItemMap) - } - modelMap["cumulative_needs_attention_view"] = cumulativeNeedsAttentionView - } - if model.CumulativeNeedsAttentionViewErr != nil { - modelMap["cumulative_needs_attention_view_err"] = model.CumulativeNeedsAttentionViewErr - } - if model.Location != nil { - modelMap["location"] = model.Location - } - if model.ResourceGroup != nil { - modelMap["resource_group"] = model.ResourceGroup - } - if model.State != nil { - modelMap["state"] = model.State - } - if model.EventNotificationsCrn != nil { - modelMap["event_notifications_crn"] = model.EventNotificationsCrn - } - return modelMap, nil -} - -func resourceIbmProjectInstanceCumulativeNeedsAttentionToMap(model *projectv1.CumulativeNeedsAttention) (map[string]interface{}, error) { - modelMap := make(map[string]interface{}) - if model.Event != nil { - modelMap["event"] = model.Event - } - if model.EventID != nil { - modelMap["event_id"] = model.EventID - } - if model.ConfigID != nil { - modelMap["config_id"] = model.ConfigID - } - return modelMap, nil -} diff --git a/ibm/service/project/resource_ibm_project_instance_test.go b/ibm/service/project/resource_ibm_project_instance_test.go deleted file mode 100644 index 088784f11b..0000000000 --- a/ibm/service/project/resource_ibm_project_instance_test.go +++ /dev/null @@ -1,187 +0,0 @@ -// Copyright IBM Corp. 2023 All Rights Reserved. -// Licensed under the Mozilla Public License v2.0 - -package project_test - -import ( - "fmt" - "testing" - - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" - - acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" - "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" - "github.com/IBM/project-go-sdk/projectv1" -) - -func TestAccIbmProjectInstanceBasic(t *testing.T) { - var conf projectv1.Project - name := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) - nameUpdate := fmt.Sprintf("tf_name_update_%d", acctest.RandIntRange(10, 100)) - resourceGroup := fmt.Sprintf("Default") - location := fmt.Sprintf("us-south") - - resource.Test(t, resource.TestCase{ - PreCheck: func() { acc.TestAccPreCheck(t) }, - Providers: acc.TestAccProviders, - CheckDestroy: testAccCheckIbmProjectInstanceDestroy, - Steps: []resource.TestStep{ - resource.TestStep{ - Config: testAccCheckIbmProjectInstanceConfigBasic(resourceGroup, location, name), - Check: resource.ComposeAggregateTestCheckFunc( - testAccCheckIbmProjectInstanceExists("ibm_project_instance.project_instance", conf), - resource.TestCheckResourceAttr("ibm_project_instance.project_instance", "resource_group", resourceGroup), - resource.TestCheckResourceAttr("ibm_project_instance.project_instance", "location", location), - resource.TestCheckResourceAttr("ibm_project_instance.project_instance", "name", name), - ), - }, - resource.TestStep{ - Config: testAccCheckIbmProjectInstanceConfigBasic(resourceGroup, location, nameUpdate), - Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("ibm_project_instance.project_instance", "resource_group", resourceGroup), - resource.TestCheckResourceAttr("ibm_project_instance.project_instance", "location", location), - resource.TestCheckResourceAttr("ibm_project_instance.project_instance", "name", nameUpdate), - ), - }, - }, - }) -} - -func TestAccIbmProjectInstanceAllArgs(t *testing.T) { - var conf projectv1.Project - name := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) - nameUpdate := fmt.Sprintf("tf_name_%d", acctest.RandIntRange(10, 100)) - description := fmt.Sprintf("tf_description_%d", acctest.RandIntRange(10, 100)) - descriptionUpdate := fmt.Sprintf("tf_description_%d", acctest.RandIntRange(10, 100)) - resourceGroup := fmt.Sprintf("Default") - location := fmt.Sprintf("us-south") - - resource.Test(t, resource.TestCase{ - PreCheck: func() { acc.TestAccPreCheck(t) }, - Providers: acc.TestAccProviders, - CheckDestroy: testAccCheckIbmProjectInstanceDestroy, - Steps: []resource.TestStep{ - resource.TestStep{ - Config: testAccCheckIbmProjectInstanceConfig(name, description, resourceGroup, location), - Check: resource.ComposeAggregateTestCheckFunc( - testAccCheckIbmProjectInstanceExists("ibm_project_instance.project_instance", conf), - resource.TestCheckResourceAttr("ibm_project_instance.project_instance", "resource_group", resourceGroup), - resource.TestCheckResourceAttr("ibm_project_instance.project_instance", "location", location), - resource.TestCheckResourceAttr("ibm_project_instance.project_instance", "name", name), - resource.TestCheckResourceAttr("ibm_project_instance.project_instance", "description", description), - ), - }, - resource.TestStep{ - Config: testAccCheckIbmProjectInstanceConfig(nameUpdate, descriptionUpdate, resourceGroup, location), - Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("ibm_project_instance.project_instance", "resource_group", resourceGroup), - resource.TestCheckResourceAttr("ibm_project_instance.project_instance", "location", location), - resource.TestCheckResourceAttr("ibm_project_instance.project_instance", "name", nameUpdate), - resource.TestCheckResourceAttr("ibm_project_instance.project_instance", "description", descriptionUpdate), - ), - }, - resource.TestStep{ - ResourceName: "ibm_project_instance.project_instance", - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{ - "location", - "resource_group", - "configs", - }, - }, - }, - }) -} - -func testAccCheckIbmProjectInstanceConfigBasic(resourceGroup string, location string, name string) string { - return fmt.Sprintf(` - - resource "ibm_project_instance" "project_instance" { - resource_group = "%s" - location = "%s" - name = "%s" - } - `, resourceGroup, location, name) -} - -func testAccCheckIbmProjectInstanceConfig(name string, description string, resourceGroup string, location string) string { - return fmt.Sprintf(` - - resource "ibm_project_instance" "project_instance" { - name = "%s" - description = "%s" - resource_group = "%s" - location = "%s" - configs { - name = "name" - labels = [ "labels" ] - description = "description" - locator_id = "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.cd596f95-95a2-4f21-9b84-477f21fd1e95-global" - input { - name = "name" - } - setting { - name = "name" - value = "value" - } - } - } - `, name, description, resourceGroup, location) -} - -func testAccCheckIbmProjectInstanceExists(n string, obj projectv1.Project) resource.TestCheckFunc { - - return func(s *terraform.State) error { - rs, ok := s.RootModule().Resources[n] - if !ok { - return fmt.Errorf("Not found: %s", n) - } - - projectClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).ProjectV1() - if err != nil { - return err - } - - getProjectOptions := &projectv1.GetProjectOptions{} - - getProjectOptions.SetID(rs.Primary.ID) - - project, _, err := projectClient.GetProject(getProjectOptions) - if err != nil { - return err - } - - obj = *project - return nil - } -} - -func testAccCheckIbmProjectInstanceDestroy(s *terraform.State) error { - projectClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).ProjectV1() - if err != nil { - return err - } - for _, rs := range s.RootModule().Resources { - if rs.Type != "ibm_project_instance" { - continue - } - - getProjectOptions := &projectv1.GetProjectOptions{} - - getProjectOptions.SetID(rs.Primary.ID) - - // Try to find the key - _, response, err := projectClient.GetProject(getProjectOptions) - - if err == nil { - return fmt.Errorf("Project definition still exists: %s", rs.Primary.ID) - } else if response.StatusCode != 404 { - return fmt.Errorf("Error checking for Project definition (%s) has been destroyed: %s", rs.Primary.ID, err) - } - } - - return nil -} diff --git a/ibm/service/project/resource_ibm_project_test.go b/ibm/service/project/resource_ibm_project_test.go new file mode 100644 index 0000000000..20174656ec --- /dev/null +++ b/ibm/service/project/resource_ibm_project_test.go @@ -0,0 +1,111 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package project_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM/project-go-sdk/projectv1" +) + +func TestAccIbmProjectBasic(t *testing.T) { + var conf projectv1.Project + location := fmt.Sprintf("us-south") + resourceGroup := fmt.Sprintf("Default") + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIbmProjectDestroy, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmProjectConfigBasic(location, resourceGroup), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIbmProjectExists("ibm_project.project_instance", conf), + resource.TestCheckResourceAttr("ibm_project.project_instance", "location", location), + resource.TestCheckResourceAttr("ibm_project.project_instance", "resource_group", resourceGroup), + ), + }, + resource.TestStep{ + ResourceName: "ibm_project.project_instance", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} + +func testAccCheckIbmProjectConfigBasic(location string, resourceGroup string) string { + return fmt.Sprintf(` + resource "ibm_project" "project_instance" { + location = "%s" + resource_group = "%s" + definition { + name = "acme-microservice" + description = "acme-microservice description" + destroy_on_delete = true + } + } + `, location, resourceGroup) +} + +func testAccCheckIbmProjectExists(n string, obj projectv1.Project) resource.TestCheckFunc { + + return func(s *terraform.State) error { + rs, ok := s.RootModule().Resources[n] + if !ok { + return fmt.Errorf("Not found: %s", n) + } + + projectClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).ProjectV1() + if err != nil { + return err + } + + getProjectOptions := &projectv1.GetProjectOptions{} + + getProjectOptions.SetID(rs.Primary.ID) + + project, _, err := projectClient.GetProject(getProjectOptions) + if err != nil { + return err + } + + obj = *project + return nil + } +} + +func testAccCheckIbmProjectDestroy(s *terraform.State) error { + projectClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).ProjectV1() + if err != nil { + return err + } + for _, rs := range s.RootModule().Resources { + if rs.Type != "ibm_project" { + continue + } + + getProjectOptions := &projectv1.GetProjectOptions{} + + getProjectOptions.SetID(rs.Primary.ID) + + // Try to find the key + _, response, err := projectClient.GetProject(getProjectOptions) + + if err == nil { + return fmt.Errorf("project still exists: %s", rs.Primary.ID) + } else if response.StatusCode != 404 { + return fmt.Errorf("Error checking for project (%s) has been destroyed: %s", rs.Primary.ID, err) + } + } + + return nil +} diff --git a/website/docs/d/project.html.markdown b/website/docs/d/project.html.markdown new file mode 100644 index 0000000000..3ac6b811d3 --- /dev/null +++ b/website/docs/d/project.html.markdown @@ -0,0 +1,129 @@ +--- +layout: "ibm" +page_title: "IBM : ibm_project" +description: |- + Get information about project +subcategory: "Projects" +--- + +# ibm_project + +Provides a read-only data source to retrieve information about a project. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax. + +## Example Usage + +```hcl +data "ibm_project" "project" { + project_id = ibm_project.project_instance.id +} +``` + +## Argument Reference + +You can specify the following arguments for this data source. + +* `project_id` - (Required, Forces new resource, String) The unique project ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + +## Attribute Reference + +After your data source is created, you can read values from the following attributes. + +* `id` - The unique identifier of the project. +* `configs` - (List) The project configurations. These configurations are only included in the response of creating a project if a configs array is specified in the request payload. + * Constraints: The default value is `[]`. The maximum length is `10000` items. The minimum length is `0` items. +Nested schema for **configs**: + * `created_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. + * `definition` - (List) The name and description of a project configuration. + Nested schema for **definition**: + * `description` - (String) A project configuration description. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. + * `name` - (String) The configuration name. + * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/`. + * `href` - (String) A URL. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`. + * `id` - (String) The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `modified_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. + * `project` - (List) The project referenced by this resource. + Nested schema for **project**: + * `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. + * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. + * `definition` - (List) The definition of the project reference. + Nested schema for **definition**: + * `name` - (String) The name of the project. + * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. + * `href` - (String) A URL. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`. + * `id` - (String) The unique ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `state` - (String) The state of the configuration. + * Constraints: Allowable values are: `approved`, `deleted`, `deleting`, `deleting_failed`, `discarded`, `draft`, `deployed`, `deploying_failed`, `deploying`, `superseded`, `undeploying`, `undeploying_failed`, `validated`, `validating`, `validating_failed`. + * `version` - (Integer) The version of the configuration. + +* `created_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. + +* `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. + * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. + +* `cumulative_needs_attention_view` - (List) The cumulative list of needs attention items for a project. If the view is successfully retrieved, an array which could be empty is returned. + * Constraints: The default value is `[]`. The maximum length is `10000` items. The minimum length is `0` items. +Nested schema for **cumulative_needs_attention_view**: + * `config_id` - (String) A unique ID for the configuration. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `config_version` - (Integer) The version number of the configuration. + * `event` - (String) The event name. + * Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]*$/`. + * `event_id` - (String) A unique ID for that individual event. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + +* `cumulative_needs_attention_view_error` - (Boolean) True indicates that the fetch of the needs attention items failed. It only exists if there was an error while retrieving the cumulative needs attention view. + * Constraints: The default value is `false`. + +* `definition` - (List) The definition of the project. +Nested schema for **definition**: + * `description` - (String) A brief explanation of the project's use in the configuration of a deployable architecture. It is possible to create a project without providing a description. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. + * `destroy_on_delete` - (Boolean) The policy that indicates whether the resources are destroyed or not when a project is deleted. + * `name` - (String) The name of the project. + * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. + +* `environments` - (List) The project environments. These environments are only included in the response if project environments were created on the project. + * Constraints: The default value is `[]`. The maximum length is `10000` items. The minimum length is `0` items. +Nested schema for **environments**: + * `created_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. + * `definition` - (List) The environment definition used in the project collection. + Nested schema for **definition**: + * `description` - (String) The description of the environment. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. + * `name` - (String) The name of the environment. + * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. + * `href` - (String) A URL. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`. + * `id` - (String) The environment id as a friendly name. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$).+$/`. + * `project` - (List) The project referenced by this resource. + Nested schema for **project**: + * `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. + * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. + * `definition` - (List) The definition of the project reference. + Nested schema for **definition**: + * `name` - (String) The name of the project. + * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. + * `href` - (String) A URL. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`. + * `id` - (String) The unique ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + +* `event_notifications_crn` - (String) The CRN of the event notifications instance if one is connected to this project. + * Constraints: The maximum length is `512` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. + +* `location` - (Forces new resource, String) The IBM Cloud location where a resource is deployed. + * Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]*$/`. + +* `resource_group` - (Forces new resource, String) The resource group where the project's data and tools are created. + * Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]*$/`. + +* `state` - (String) The project status value. + * Constraints: Allowable values are: `ready`, `deleting`, `deleting_failed`. + diff --git a/website/docs/d/project_config.html.markdown b/website/docs/d/project_config.html.markdown new file mode 100644 index 0000000000..5cfedd0d20 --- /dev/null +++ b/website/docs/d/project_config.html.markdown @@ -0,0 +1,117 @@ +--- +layout: "ibm" +page_title: "IBM : ibm_project_config" +description: |- + Get information about project_config +subcategory: "Projects" +--- + +# ibm_project_config + +Provides a read-only data source to retrieve information about a project_config. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax. + +## Example Usage + +```hcl +data "ibm_project_config" "project_config" { + project_config_id = ibm_project_config.project_config_instance.project_config_id + project_id = ibm_project_config.project_config_instance.project_id +} +``` + +## Argument Reference + +You can specify the following arguments for this data source. + +* `project_config_id` - (Required, Forces new resource, String) The unique config ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. +* `project_id` - (Required, Forces new resource, String) The unique project ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + +## Attribute Reference + +After your data source is created, you can read values from the following attributes. + +* `id` - The unique identifier of the project_config. +* `created_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. + +* `definition` - (List) The type and output of a project configuration. +Nested schema for **definition**: + * `authorizations` - (List) The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager. + Nested schema for **authorizations**: + * `api_key` - (String) The IBM Cloud API Key. + * Constraints: The maximum length is `512` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/`. + * `method` - (String) The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager. + * Constraints: Allowable values are: `api_key`, `trusted_profile`. + * `trusted_profile_id` - (String) The trusted profile ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `compliance_profile` - (List) The profile required for compliance. + Nested schema for **compliance_profile**: + * `attachment_id` - (String) The unique ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `id` - (String) The unique ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `instance_id` - (String) The unique ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `instance_location` - (String) The location of the compliance instance. + * Constraints: The maximum length is `12` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(us-south|us-east|eu-gb|eu-de)$/`. + * `profile_name` - (String) The name of the compliance profile. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/`. + * `description` - (String) A project configuration description. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. + * `environment` - (String) The ID of the project environment. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `inputs` - (List) The input variables for configuration definition and environment. + Nested schema for **inputs**: + * `locator_id` - (Forces new resource, String) A dotted value of catalogID.versionID. + * Constraints: The maximum length is `512` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/`. + * `name` - (String) The configuration name. + * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/`. + * `settings` - (List) Schematics environment variables to use to deploy the configuration.Settings are only available if they were specified when the configuration was initially created. + Nested schema for **settings**: + * `type` - (String) The type of a project configuration manual property. + * Constraints: Allowable values are: `terraform_template`, `schematics_blueprint`. + +* `is_draft` - (Boolean) The flag that indicates whether the version of the configuration is draft, or active. + +* `last_saved_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. + +* `modified_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. + +* `needs_attention_state` - (List) The needs attention state of a configuration. + * Constraints: The default value is `[]`. The maximum length is `10000` items. The minimum length is `0` items. + +* `outputs` - (List) The outputs of a Schematics template property. + * Constraints: The default value is `[]`. The maximum length is `10000` items. The minimum length is `0` items. +Nested schema for **outputs**: + * `description` - (String) A short explanation of the output value. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. + * `name` - (String) The variable name. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$).+$/`. + * `value` - (String) Can be any value - a string, number, boolean, array, or object. + +* `project` - (List) The project referenced by this resource. +Nested schema for **project**: + * `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. + * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. + * `definition` - (List) The definition of the project reference. + Nested schema for **definition**: + * `name` - (String) The name of the project. + * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. + * `href` - (String) A URL. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`. + * `id` - (String) The unique ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + +* `schematics` - (List) A schematics workspace associated to a project configuration. +Nested schema for **schematics**: + * `workspace_crn` - (String) An existing schematics workspace CRN. + * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. + +* `state` - (String) The state of the configuration. + * Constraints: Allowable values are: `approved`, `deleted`, `deleting`, `deleting_failed`, `discarded`, `draft`, `deployed`, `deploying_failed`, `deploying`, `superseded`, `undeploying`, `undeploying_failed`, `validated`, `validating`, `validating_failed`. + +* `update_available` - (Boolean) The flag that indicates whether a configuration update is available. + +* `version` - (Integer) The version of the configuration. + diff --git a/website/docs/d/project_event_notification.html.markdown b/website/docs/d/project_event_notification.html.markdown deleted file mode 100644 index 6818a34bc8..0000000000 --- a/website/docs/d/project_event_notification.html.markdown +++ /dev/null @@ -1,107 +0,0 @@ ---- -layout: "ibm" -page_title: "IBM : ibm_project_event_notification" -description: |- - Get information about Project definition -subcategory: "Project" ---- - -# ibm_project_event_notification - -Provides a read-only data source for Project definition. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. - -## Example Usage - -```hcl -data "ibm_project_event_notification" "project_event_notification" { - id = "072b70cb-4db7-4c5c-bf1b-8d93d422537d" -} -``` - -## Argument Reference - -Review the argument reference that you can specify for your data source. - -* `id` - (Required, Forces new resource, String) The unique project ID. - * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. - -## Attribute Reference - -In addition to all argument references listed, you can access the following attribute references after your data source is created. - -* `id` - The unique identifier of the Project definition. -* `configs` - (List) The project configurations. - * Constraints: The maximum length is `10000` items. The minimum length is `0` items. -Nested scheme for **configs**: - * `description` - (String) The project configuration description. - * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. - * `id` - (String) The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration. - * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. - * `input` - (List) The outputs of a Schematics template property. - * Constraints: The maximum length is `10000` items. The minimum length is `0` items. - Nested scheme for **input**: - * `name` - (String) The variable name. - * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$).+$/`. - * `required` - (Boolean) Whether the variable is required or not. - * `type` - (String) The variable type. - * Constraints: Allowable values are: `array`, `boolean`, `float`, `int`, `number`, `password`, `string`, `object`. - * `value` - (String) Can be any value - a string, number, boolean, array, or object. - * `labels` - (List) A collection of configuration labels. - * Constraints: The list items must match regular expression `/^[_\\-a-z0-9:\/=]+$/`. The maximum length is `10000` items. The minimum length is `0` items. - * `locator_id` - (String) A dotted value of catalogID.versionID. - * Constraints: The maximum length is `512` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/`. - * `name` - (String) The configuration name. - * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/`. - * `output` - (List) The outputs of a Schematics template property. - * Constraints: The maximum length is `10000` items. The minimum length is `0` items. - Nested scheme for **output**: - * `description` - (String) A short explanation of the output value. - * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. - * `name` - (String) The variable name. - * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$).+$/`. - * `value` - (String) Can be any value - a string, number, boolean, array, or object. - * `setting` - (List) Schematics environment variables to use to deploy the configuration. - * Constraints: The maximum length is `10000` items. The minimum length is `0` items. - Nested scheme for **setting**: - * `name` - (String) The name of the configuration setting. - * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$).+$/`. - * `value` - (String) The value of the configuration setting. - * Constraints: The maximum length is `1024` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$).+$/`. - * `type` - (String) The type of a project configuration manual property. - * Constraints: Allowable values are: `terraform_template`, `schematics_blueprint`. - -* `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. - * Constraints: The maximum length is `512` characters. The minimum length is `9` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. - -* `description` - (String) A project descriptive text. - * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. - -* `metadata` - (List) The metadata of the project. -Nested scheme for **metadata**: - * `created_at` - (String) A date and time value in the format `YYYY-MM-DDTHH:mm:ssZ` or `YYYY-MM-DDTHH:mm:ss.sssZ`, matching the date and time format as specified by RFC 3339. - * `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. - * Constraints: The maximum length is `512` characters. The minimum length is `9` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. - * `cumulative_needs_attention_view` - (List) The cumulative list of needs attention items for a project. - * Constraints: The maximum length is `10000` items. The minimum length is `0` items. - Nested scheme for **cumulative_needs_attention_view**: - * `config_id` - (String) The unique ID of a project. - * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. - * `config_version` - (Integer) The version number of the configuration. - * `event` - (String) The event name. - * Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]*$/`. - * `event_id` - (String) The unique ID of a project. - * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. - * `cumulative_needs_attention_view_err` - (String) `True` indicates that the fetch of the needs attention items failed. - * Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]*$/`. - * `event_notifications_crn` - (String) The CRN of the event notifications instance if one is connected to this project. - * Constraints: The maximum length is `512` characters. The minimum length is `9` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. - * `location` - (String) The IBM Cloud location where a resource is deployed. - * Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]*$/`. - * `resource_group` - (String) The resource group where the project's data and tools are created. - * Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]*$/`. - * `state` - (String) The project status value. - * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(CREATING|CREATING_FAILED|UPDATING|UPDATING_FAILED|READY)$/`. - -* `name` - (String) The project name. - * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/`. - diff --git a/website/docs/r/project.html.markdown b/website/docs/r/project.html.markdown new file mode 100644 index 0000000000..98926aaffd --- /dev/null +++ b/website/docs/r/project.html.markdown @@ -0,0 +1,132 @@ +--- +layout: "ibm" +page_title: "IBM : ibm_project" +description: |- + Manages project. +subcategory: "Projects" +--- + +# ibm_project + +Create, update, and delete projects with this resource. + +## Example Usage + +```hcl +resource "ibm_project" "project_instance" { + definition { + name = "My static website" + description = "Sample static website test using the IBM catalog deployable architecture" + destroy_on_delete = true + } + location = "us-south" + resource_group = "Default" +} +``` + +## Argument Reference + +You can specify the following arguments for this resource. + +* `definition` - (Required, List) The definition of the project. +Nested schema for **definition**: + * `description` - (Optional, String) A brief explanation of the project's use in the configuration of a deployable architecture. It is possible to create a project without providing a description. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. + * `destroy_on_delete` - (Required, Boolean) The policy that indicates whether the resources are destroyed or not when a project is deleted. + * `name` - (Required, String) The name of the project. + * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. +* `location` - (Required, Forces new resource, String) The IBM Cloud location where a resource is deployed. + * Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]*$/`. +* `resource_group` - (Required, Forces new resource, String) The resource group where the project's data and tools are created. + * Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]*$/`. + +## Attribute Reference + +After your resource is created, you can read values from the listed arguments and the following attributes. + +* `id` - The unique identifier of the project. +* `configs` - (List) The project configurations. These configurations are only included in the response of creating a project if a configs array is specified in the request payload. + * Constraints: The default value is `[]`. The maximum length is `10000` items. The minimum length is `0` items. +Nested schema for **configs**: + * `created_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. + * `definition` - (List) The name and description of a project configuration. + Nested schema for **definition**: + * `description` - (String) A project configuration description. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. + * `name` - (String) The configuration name. + * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/`. + * `href` - (String) A URL. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`. + * `id` - (String) The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `modified_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. + * `project` - (List) The project referenced by this resource. + Nested schema for **project**: + * `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. + * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. + * `definition` - (List) The definition of the project reference. + Nested schema for **definition**: + * `name` - (String) The name of the project. + * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. + * `href` - (String) A URL. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`. + * `id` - (String) The unique ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `state` - (String) The state of the configuration. + * Constraints: Allowable values are: `approved`, `deleted`, `deleting`, `deleting_failed`, `discarded`, `draft`, `deployed`, `deploying_failed`, `deploying`, `superseded`, `undeploying`, `undeploying_failed`, `validated`, `validating`, `validating_failed`. + * `version` - (Integer) The version of the configuration. +* `created_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. +* `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. + * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. +* `cumulative_needs_attention_view` - (List) The cumulative list of needs attention items for a project. If the view is successfully retrieved, an array which could be empty is returned. + * Constraints: The default value is `[]`. The maximum length is `10000` items. The minimum length is `0` items. +Nested schema for **cumulative_needs_attention_view**: + * `config_id` - (String) A unique ID for the configuration. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `config_version` - (Integer) The version number of the configuration. + * `event` - (String) The event name. + * Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]*$/`. + * `event_id` - (String) A unique ID for that individual event. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. +* `cumulative_needs_attention_view_error` - (Boolean) True indicates that the fetch of the needs attention items failed. It only exists if there was an error while retrieving the cumulative needs attention view. + * Constraints: The default value is `false`. +* `environments` - (List) The project environments. These environments are only included in the response if project environments were created on the project. + * Constraints: The default value is `[]`. The maximum length is `10000` items. The minimum length is `0` items. +Nested schema for **environments**: + * `created_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. + * `definition` - (List) The environment definition used in the project collection. + Nested schema for **definition**: + * `description` - (String) The description of the environment. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. + * `name` - (String) The name of the environment. + * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. + * `href` - (String) A URL. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`. + * `id` - (String) The environment id as a friendly name. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$).+$/`. + * `project` - (List) The project referenced by this resource. + Nested schema for **project**: + * `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. + * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. + * `definition` - (List) The definition of the project reference. + Nested schema for **definition**: + * `name` - (String) The name of the project. + * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. + * `href` - (String) A URL. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`. + * `id` - (String) The unique ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. +* `event_notifications_crn` - (String) The CRN of the event notifications instance if one is connected to this project. + * Constraints: The maximum length is `512` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. +* `state` - (String) The project status value. + * Constraints: Allowable values are: `ready`, `deleting`, `deleting_failed`. + + +## Import + +You can import the `ibm_project` resource by using `id`. The unique ID. + +# Syntax +``` +$ terraform import ibm_project.project +``` diff --git a/website/docs/r/project_config.html.markdown b/website/docs/r/project_config.html.markdown new file mode 100644 index 0000000000..db20dac197 --- /dev/null +++ b/website/docs/r/project_config.html.markdown @@ -0,0 +1,138 @@ +--- +layout: "ibm" +page_title: "IBM : ibm_project_config" +description: |- + Manages project_config. +subcategory: "Projects" +--- + +# ibm_project_config + +Create, update, and delete project_configs with this resource. + +## Example Usage + +```hcl +resource "ibm_project_config" "project_config_instance" { + definition { + name = "static-website-dev" + labels = [ "env:dev", "billing:internal" ] + description = "Website - development" + authorizations { + method = "api_key" + api_key = "" + } + locator_id = "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.145be7c1-9ec4-4719-b586-584ee52fbed0-global" + input { + name = "app_repo_name" + } + setting { + name = "app_repo_name" + value = "static-website-dev-app-repo" + } + } + project_id = ibm_project.project_instance.id +} +``` + +## Argument Reference + +You can specify the following arguments for this resource. + +* `definition` - (Required, List) The type and output of a project configuration. +Nested schema for **definition**: + * `authorizations` - (Optional, List) The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager. + Nested schema for **authorizations**: + * `api_key` - (Optional, String) The IBM Cloud API Key. + * Constraints: The maximum length is `512` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/`. + * `method` - (Optional, String) The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager. + * Constraints: Allowable values are: `api_key`, `trusted_profile`. + * `trusted_profile_id` - (Optional, String) The trusted profile ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `compliance_profile` - (Optional, List) The profile required for compliance. + Nested schema for **compliance_profile**: + * `attachment_id` - (Optional, String) The unique ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `id` - (Optional, String) The unique ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `instance_id` - (Optional, String) The unique ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `instance_location` - (Optional, String) The location of the compliance instance. + * Constraints: The maximum length is `12` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(us-south|us-east|eu-gb|eu-de)$/`. + * `profile_name` - (Optional, String) The name of the compliance profile. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/`. + * `description` - (Optional, String) A project configuration description. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. + * `environment` - (Optional, String) The ID of the project environment. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `inputs` - (Optional, List) The input variables for configuration definition and environment. + Nested schema for **inputs**: + * `locator_id` - (Required, Forces new resource, String) A dotted value of catalogID.versionID. + * Constraints: The maximum length is `512` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/`. + * `name` - (Required, String) The configuration name. + * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/`. + * `settings` - (Optional, List) Schematics environment variables to use to deploy the configuration.Settings are only available if they were specified when the configuration was initially created. + Nested schema for **settings**: + * `type` - (Computed, String) The type of a project configuration manual property. + * Constraints: Allowable values are: `terraform_template`, `schematics_blueprint`. +* `project_id` - (Required, Forces new resource, String) The unique project ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. +* `schematics` - (Optional, List) A schematics workspace associated to a project configuration. +Nested schema for **schematics**: + * `workspace_crn` - (Optional, String) An existing schematics workspace CRN. + * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. + +## Attribute Reference + +After your resource is created, you can read values from the listed arguments and the following attributes. + +* `id` - The unique identifier of the project_config. +* `created_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. +* `is_draft` - (Boolean) The flag that indicates whether the version of the configuration is draft, or active. +* `last_saved_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. +* `modified_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. +* `needs_attention_state` - (List) The needs attention state of a configuration. + * Constraints: The default value is `[]`. The maximum length is `10000` items. The minimum length is `0` items. +* `outputs` - (List) The outputs of a Schematics template property. + * Constraints: The default value is `[]`. The maximum length is `10000` items. The minimum length is `0` items. +Nested schema for **outputs**: + * `description` - (String) A short explanation of the output value. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. + * `name` - (String) The variable name. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$).+$/`. + * `value` - (String) Can be any value - a string, number, boolean, array, or object. +* `project` - (List) The project referenced by this resource. +Nested schema for **project**: + * `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. + * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. + * `definition` - (List) The definition of the project reference. + Nested schema for **definition**: + * `name` - (String) The name of the project. + * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. + * `href` - (String) A URL. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`. + * `id` - (String) The unique ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. +* `project_config_id` - (String) The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. +* `state` - (String) The state of the configuration. + * Constraints: Allowable values are: `approved`, `deleted`, `deleting`, `deleting_failed`, `discarded`, `draft`, `deployed`, `deploying_failed`, `deploying`, `superseded`, `undeploying`, `undeploying_failed`, `validated`, `validating`, `validating_failed`. +* `update_available` - (Boolean) The flag that indicates whether a configuration update is available. +* `version` - (Integer) The version of the configuration. + + +## Import + +You can import the `ibm_project_config` resource by using `id`. +The `id` property can be formed from `project_id`, and `id` in the following format: + +``` +/ +``` +* `project_id`: A string. The unique project ID. +* `id`: A string. The unique config ID. + +# Syntax +``` +$ terraform import ibm_project_config.project_config / +``` diff --git a/website/docs/r/project_instance.html.markdown b/website/docs/r/project_instance.html.markdown deleted file mode 100644 index 5193113914..0000000000 --- a/website/docs/r/project_instance.html.markdown +++ /dev/null @@ -1,117 +0,0 @@ ---- -layout: "ibm" -page_title: "IBM : ibm_project_instance" -description: |- - Manages Project definition. -subcategory: "Project" ---- - -# ibm_project_instance - -Provides a resource for Project definition. This allows Project definition to be created, updated and deleted. - -## Example Usage - -```hcl -resource "ibm_project_instance" "project_instance" { - configs { - id = "0013790d-6cb5-4adc-8927-a725a1261d0c" - name = "static-website-dev" - labels = [ "env:dev", "billing:internal" ] - description = "Website - development" - locator_id = "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.145be7c1-9ec4-4719-b586-584ee52fbed0-global" - input { - name = "app_repo_name" - } - setting { - name = "app_repo_name" - value = "static-website-dev-app-repo" - } - } - description = "Sample static website test using the IBM catalog deployable architecture" - name = "My static website" - location = "us-south" - resource_group = "Default" -} -``` - -## Argument Reference - -Review the argument reference that you can specify for your resource. - -* `configs` - (Optional, List) The project configurations. - * Constraints: The maximum length is `10000` items. The minimum length is `0` items. -Nested scheme for **configs**: - * `description` - (Optional, String) The project configuration description. - * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. - * `id` - (Optional, String) The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration. - * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. - * `input` - (Optional, List) The input values to use to deploy the configuration. - * Constraints: The maximum length is `10000` items. The minimum length is `0` items. - Nested scheme for **input**: - * `name` - (Required, String) The variable name. - * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$).+$/`. - * `value` - (Optional, String) Can be any value - a string, number, boolean, array, or object. - * `labels` - (Optional, List) A collection of configuration labels. - * Constraints: The list items must match regular expression `/^[_\\-a-z0-9:\/=]+$/`. The maximum length is `10000` items. The minimum length is `0` items. - * `locator_id` - (Required, String) A dotted value of catalogID.versionID. - * Constraints: The maximum length is `512` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/`. - * `name` - (Required, String) The configuration name. - * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/`. - * `setting` - (Optional, List) Schematics environment variables to use to deploy the configuration. - * Constraints: The maximum length is `10000` items. The minimum length is `0` items. - Nested scheme for **setting**: - * `name` - (Required, String) The name of the configuration setting. - * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$).+$/`. - * `value` - (Required, String) The value of the configuration setting. - * Constraints: The maximum length is `1024` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$).+$/`. -* `description` - (Optional, String) A project's descriptive text. - * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. -* `location` - (Required, String) The location where the project's data and tools are created. - * Constraints: The maximum length is `12` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(us-south|us-east|eu-gb|eu-de)$/`. -* `name` - (Required, String) The project name. - * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/`. -* `resource_group` - (Required, String) The resource group where the project's data and tools are created. - * Constraints: The maximum length is `40` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]*$/`. - -## Attribute Reference - -In addition to all argument references listed, you can access the following attribute references after your resource is created. - -* `id` - The unique identifier of the Project definition. -* `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. - * Constraints: The maximum length is `512` characters. The minimum length is `9` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. -* `metadata` - (List) The metadata of the project. -Nested scheme for **metadata**: - * `created_at` - (String) A date and time value in the format `YYYY-MM-DDTHH:mm:ssZ` or `YYYY-MM-DDTHH:mm:ss.sssZ`, matching the date and time format as specified by RFC 3339. - * `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. - * Constraints: The maximum length is `512` characters. The minimum length is `9` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. - * `cumulative_needs_attention_view` - (List) The cumulative list of needs attention items for a project. - * Constraints: The maximum length is `10000` items. The minimum length is `0` items. - Nested scheme for **cumulative_needs_attention_view**: - * `config_id` - (String) The unique ID of a project. - * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. - * `config_version` - (Integer) The version number of the configuration. - * `event` - (String) The event name. - * Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]*$/`. - * `event_id` - (String) The unique ID of a project. - * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. - * `cumulative_needs_attention_view_err` - (String) `True` indicates that the fetch of the needs attention items failed. - * Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]*$/`. - * `event_notifications_crn` - (String) The CRN of the event notifications instance if one is connected to this project. - * Constraints: The maximum length is `512` characters. The minimum length is `9` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. - * `location` - (String) The IBM Cloud location where a resource is deployed. - * Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]*$/`. - * `resource_group` - (String) The resource group where the project's data and tools are created. - * Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]*$/`. - * `state` - (String) The project status value. - * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(CREATING|CREATING_FAILED|UPDATING|UPDATING_FAILED|READY)$/`. - -## Import - -You can import the `ibm_project_instance` resource by using `id`. The unique ID of a project. - -# Syntax -``` -$ terraform import ibm_project_instance.project_instance -``` From cf3b4e272fc4549dbdce33919275d1331a600bac Mon Sep 17 00:00:00 2001 From: alex hemard Date: Fri, 10 Nov 2023 14:22:57 -0600 Subject: [PATCH 26/58] feat(Cloud Database): support offline restore for MongoDB EE PITR (#4601) * feature(Cloud Database): support Offline Restore for MongoDB EE * add documentation * cross region tests * replace IcdDbRegion with region set in provider * revert to v4 api --- .secrets.baseline | 24 ++-- ibm/acctest/acctest.go | 75 +++++++++-- ...bm_database_point_in_time_recovery_test.go | 2 +- .../data_source_ibm_database_remotes_test.go | 4 +- .../database/data_source_ibm_database_test.go | 4 +- ibm/service/database/resource_ibm_database.go | 18 ++- .../resource_ibm_database_cassandra_test.go | 56 ++++---- .../resource_ibm_database_edb_test.go | 18 +-- ...bm_database_elasticsearch_platinum_test.go | 54 ++++---- ...esource_ibm_database_elasticsearch_test.go | 52 ++++---- .../resource_ibm_database_etcd_test.go | 26 ++-- ...ce_ibm_database_mongodb_enterprise_test.go | 124 ++++++++++++++++-- ...urce_ibm_database_mongodb_sharding_test.go | 12 +- .../resource_ibm_database_mongodb_test.go | 28 ++-- .../resource_ibm_database_mysql_test.go | 8 +- .../resource_ibm_database_postgresql_test.go | 36 ++--- .../resource_ibm_database_rabbitmq_test.go | 16 +-- .../resource_ibm_database_redis_test.go | 22 ++-- website/docs/r/database.html.markdown | 1 + 19 files changed, 382 insertions(+), 198 deletions(-) diff --git a/.secrets.baseline b/.secrets.baseline index 0d60faf91f..c4309547fd 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -3,7 +3,7 @@ "files": "go.mod|go.sum|.*.map|^.secrets.baseline$", "lines": null }, - "generated_at": "2023-10-30T15:56:24Z", + "generated_at": "2023-11-09T17:56:16Z", "plugins_used": [ { "name": "AWSKeyDetector" @@ -752,7 +752,7 @@ "hashed_secret": "731438016c5ab94431f61820f35e3ae5f8ad6004", "is_secret": false, "is_verified": false, - "line_number": 401, + "line_number": 402, "type": "Secret Keyword", "verified_result": null }, @@ -760,7 +760,7 @@ "hashed_secret": "12da2e35d6b50c902c014f1ab9e3032650368df7", "is_secret": false, "is_verified": false, - "line_number": 407, + "line_number": 408, "type": "Secret Keyword", "verified_result": null }, @@ -768,7 +768,7 @@ "hashed_secret": "813274ccae5b6b509379ab56982d862f7b5969b6", "is_secret": false, "is_verified": false, - "line_number": 1118, + "line_number": 1120, "type": "Base64 High Entropy String", "verified_result": null } @@ -856,7 +856,7 @@ "hashed_secret": "c8b6f5ef11b9223ac35a5663975a466ebe7ebba9", "is_secret": false, "is_verified": false, - "line_number": 1800, + "line_number": 1797, "type": "Secret Keyword", "verified_result": null }, @@ -864,7 +864,7 @@ "hashed_secret": "8abf4899c01104241510ba87685ad4de76b0c437", "is_secret": false, "is_verified": false, - "line_number": 1806, + "line_number": 1803, "type": "Secret Keyword", "verified_result": null } @@ -2080,7 +2080,7 @@ "hashed_secret": "deab23f996709b4e3d14e5499d1cc2de677bfaa8", "is_secret": false, "is_verified": false, - "line_number": 1340, + "line_number": 1357, "type": "Secret Keyword", "verified_result": null }, @@ -2088,7 +2088,7 @@ "hashed_secret": "20a25bac21219ffff1904bde871ded4027eca2f8", "is_secret": false, "is_verified": false, - "line_number": 1927, + "line_number": 1944, "type": "Secret Keyword", "verified_result": null }, @@ -2096,7 +2096,7 @@ "hashed_secret": "b732fb611fd46a38e8667f9972e0cde777fbe37f", "is_secret": false, "is_verified": false, - "line_number": 1946, + "line_number": 1963, "type": "Secret Keyword", "verified_result": null }, @@ -2104,7 +2104,7 @@ "hashed_secret": "1f5e25be9b575e9f5d39c82dfd1d9f4d73f1975c", "is_secret": false, "is_verified": false, - "line_number": 2186, + "line_number": 2203, "type": "Secret Keyword", "verified_result": null } @@ -2164,7 +2164,7 @@ "hashed_secret": "68ab9ef0953865fef0558010a9f7afcef110d5b8", "is_secret": false, "is_verified": false, - "line_number": 215, + "line_number": 270, "type": "Secret Keyword", "verified_result": null }, @@ -2172,7 +2172,7 @@ "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", "is_secret": false, "is_verified": false, - "line_number": 280, + "line_number": 335, "type": "Secret Keyword", "verified_result": null } diff --git a/ibm/acctest/acctest.go b/ibm/acctest/acctest.go index 7ca53ec073..65e4440b75 100644 --- a/ibm/acctest/acctest.go +++ b/ibm/acctest/acctest.go @@ -4,16 +4,25 @@ package acctest import ( + "context" "fmt" "os" "strconv" + "strings" + "sync" "testing" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + terraformsdk "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/IBM-Cloud/terraform-provider-ibm/ibm/provider" ) +const ( + ProviderName = "ibm" + ProviderNameAlternate = "ibmalternate" +) + var ( AppIDTenantID string AppIDTestUserEmail string @@ -146,7 +155,6 @@ var ( IksClusterVpcID string IksClusterSubnetID string IksClusterResourceGroupID string - IcdDbRegion string IcdDbDeploymentId string IcdDbBackupId string IcdDbTaskId string @@ -858,12 +866,6 @@ func init() { fmt.Println("[INFO] Set the environment variable ISSnapshotCRN for ibm_is_snapshot resource else it is set to default value 'crn:v1:bluemix:public:is:ca-tor:a/xxxxxxxx::snapshot:xxxx-xxxxc-xxx-xxxx-xxxx-xxxxxxxxxx'") } - IcdDbRegion = os.Getenv("ICD_DB_REGION") - if IcdDbRegion == "" { - IcdDbRegion = "eu-gb" - fmt.Println("[INFO] Set the environment variable ICD_DB_REGION for testing ibm_cloud_databases else it is set to default value 'eu-gb'") - } - IcdDbDeploymentId = os.Getenv("ICD_DB_DEPLOYMENT_ID") if IcdDbDeploymentId == "" { IcdDbDeploymentId = "crn:v1:bluemix:public:databases-for-redis:au-syd:a/40ddc34a953a8c02f10987b59085b60e:5042afe1-72c2-4231-89cc-c949e5d56251::" @@ -1530,10 +1532,18 @@ var ( TestAccProvider *schema.Provider ) +// testAccProviderConfigure ensures Provider is only configured once +// +// The PreCheck(t) function is invoked for every test and this prevents +// extraneous reconfiguration to the same values each time. However, this does +// not prevent reconfiguration that may happen should the address of +// Provider be errantly reused in ProviderFactories. +var testAccProviderConfigure sync.Once + func init() { TestAccProvider = provider.Provider() TestAccProviders = map[string]*schema.Provider{ - "ibm": TestAccProvider, + ProviderName: TestAccProvider, } } @@ -1557,6 +1567,13 @@ func TestAccPreCheck(t *testing.T) { if v := os.Getenv("IAAS_CLASSIC_USERNAME"); v == "" { t.Fatal("IAAS_CLASSIC_USERNAME must be set for acceptance tests") } + + testAccProviderConfigure.Do(func() { + diags := TestAccProvider.Configure(context.Background(), terraformsdk.NewResourceConfigRaw(nil)) + if diags.HasError() { + t.Fatalf("configuring provider: %s", diags[0].Summary) + } + }) } func TestAccPreCheckEnterprise(t *testing.T) { @@ -1696,3 +1713,45 @@ func TestAccPreCheckScc(t *testing.T) { t.Fatal("IBMCLOUD_SCC_REPORT_ID missing. Set the environment variable IBMCLOUD_SCC_REPORT_ID with a VALID REPORT_ID") } } + +func TestAccProviderFactories() map[string]func() (*schema.Provider, error) { + return map[string]func() (*schema.Provider, error){ + ProviderName: func() (*schema.Provider, error) { return provider.Provider(), nil }, + ProviderNameAlternate: func() (*schema.Provider, error) { return provider.Provider(), nil }, + } +} + +func Region() string { + region, _ := schema.MultiEnvDefaultFunc([]string{"IC_REGION", "IBMCLOUD_REGION", "BM_REGION", "BLUEMIX_REGION"}, "us-south")() + + return region.(string) +} + +func RegionAlternate() string { + region, _ := schema.MultiEnvDefaultFunc([]string{"IC_REGION_ALTERNATE", "IBMCLOUD_REGION_ALTERNATE"}, "eu-gb")() + + return region.(string) +} + +func ConfigAlternateRegionProvider() string { + return configNamedRegionalProvider(ProviderNameAlternate, RegionAlternate()) +} + +// ConfigCompose can be called to concatenate multiple strings to build test configurations +func ConfigCompose(config ...string) string { + var str strings.Builder + + for _, conf := range config { + str.WriteString(conf) + } + + return str.String() +} + +func configNamedRegionalProvider(providerName string, region string) string { + return fmt.Sprintf(` +provider %[1]q { + region = %[2]q +} +`, providerName, region) +} diff --git a/ibm/service/database/data_source_ibm_database_point_in_time_recovery_test.go b/ibm/service/database/data_source_ibm_database_point_in_time_recovery_test.go index 43f0cd691c..0a95020e99 100644 --- a/ibm/service/database/data_source_ibm_database_point_in_time_recovery_test.go +++ b/ibm/service/database/data_source_ibm_database_point_in_time_recovery_test.go @@ -49,7 +49,7 @@ func testAccCheckIBMDatabaseDataSourceConfig3(name string) string { tags = ["one:two"] } - `, name, acc.IcdDbRegion) + `, name, acc.Region()) } func testAccCheckIBMDatabasePitrDataSourceConfigBasic(name string) string { diff --git a/ibm/service/database/data_source_ibm_database_remotes_test.go b/ibm/service/database/data_source_ibm_database_remotes_test.go index 7b8cd000bf..b1cb0cd6da 100644 --- a/ibm/service/database/data_source_ibm_database_remotes_test.go +++ b/ibm/service/database/data_source_ibm_database_remotes_test.go @@ -67,7 +67,7 @@ func testAccCheckIBMDatabaseDataSourceConfig4(name string) string { ] } - `, name, acc.IcdDbRegion) + `, name, acc.Region()) } func testAccCheckIBMDatabaseRemotesDataSourceConfigBasic(name string) string { @@ -82,7 +82,7 @@ func testAccCheckIBMDatabaseRemotesDataSourceConfigBasic(name string) string { data "ibm_database_remotes" "database_remotes" { deployment_id = ibm_database.db.id - + depends_on = [ ibm_database.db_replica, ] diff --git a/ibm/service/database/data_source_ibm_database_test.go b/ibm/service/database/data_source_ibm_database_test.go index 500ff603c7..950d9fc14b 100644 --- a/ibm/service/database/data_source_ibm_database_test.go +++ b/ibm/service/database/data_source_ibm_database_test.go @@ -34,7 +34,7 @@ func TestAccIBMDatabaseDataSource_basic(t *testing.T) { resource.TestCheckResourceAttr(dataName, "name", testName), resource.TestCheckResourceAttr(dataName, "service", "databases-for-postgresql"), resource.TestCheckResourceAttr(dataName, "plan", "standard"), - resource.TestCheckResourceAttr(dataName, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(dataName, "location", acc.Region()), resource.TestCheckResourceAttr(dataName, "adminuser", "admin"), resource.TestCheckResourceAttr(dataName, "groups.0.memory.0.allocation_mb", "2048"), resource.TestCheckResourceAttr(dataName, "groups.0.disk.0.allocation_mb", "10240"), @@ -66,5 +66,5 @@ func testAccCheckIBMDatabaseDataSourceConfig(databaseResourceGroup string, name tags = ["one:two"] } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } diff --git a/ibm/service/database/resource_ibm_database.go b/ibm/service/database/resource_ibm_database.go index 1cbe4913cf..ee2a9d09fa 100644 --- a/ibm/service/database/resource_ibm_database.go +++ b/ibm/service/database/resource_ibm_database.go @@ -242,6 +242,12 @@ func ResourceIBMDatabaseInstance() *schema.Resource { Optional: true, DiffSuppressFunc: flex.ApplyOnce, }, + "offline_restore": { + Description: "Set offline restore mode for MongoDB Enterprise Edition", + Type: schema.TypeBool, + Optional: true, + DiffSuppressFunc: flex.ApplyOnce, + }, "users": { Type: schema.TypeSet, Optional: true, @@ -872,6 +878,7 @@ type Params struct { RemoteLeaderID string `json:"remote_leader_id,omitempty"` PITRDeploymentID string `json:"point_in_time_recovery_deployment_id,omitempty"` PITRTimeStamp *string `json:"point_in_time_recovery_time,omitempty"` + OfflineRestore bool `json:"offline_restore,omitempty"` } type Group struct { @@ -1030,6 +1037,7 @@ func resourceIBMDatabaseInstanceDiff(_ context.Context, diff *schema.ResourceDif } service := diff.Get("service").(string) + plan := diff.Get("plan").(string) _, logicalReplicationSet := diff.GetOk("logical_replication_slot") @@ -1086,6 +1094,11 @@ func resourceIBMDatabaseInstanceDiff(_ context.Context, diff *schema.ResourceDif } } + _, offlineRestoreOk := diff.GetOk("offline_restore") + if offlineRestoreOk && service != "databases-for-mongodb" && plan != "enterprise" { + return fmt.Errorf("[ERROR] offline_restore is only supported for databases-for-mongodb enterprise") + } + return nil } @@ -1219,6 +1232,10 @@ func resourceIBMDatabaseInstanceCreate(context context.Context, d *schema.Resour params.PITRTimeStamp = &pitrTimeTrimmed } + if offlineRestore, ok := d.GetOk("offline_restore"); ok { + params.OfflineRestore = offlineRestore.(bool) + } + serviceEndpoint := d.Get("service_endpoints").(string) params.ServiceEndpoints = serviceEndpoint parameters, _ := json.Marshal(params) @@ -2330,7 +2347,6 @@ func waitForDatabaseInstanceCreate(d *schema.ResourceData, meta interface{}, ins waitErr := waitForICDReady(meta, instanceID) if waitErr != nil { return false, fmt.Errorf("[ERROR] Error ICD interface not ready after create: %s with error %s\n", instanceID, waitErr) - } return stateConf.WaitForState() diff --git a/ibm/service/database/resource_ibm_database_cassandra_test.go b/ibm/service/database/resource_ibm_database_cassandra_test.go index 5c5b703e03..831d52752b 100644 --- a/ibm/service/database/resource_ibm_database_cassandra_test.go +++ b/ibm/service/database/resource_ibm_database_cassandra_test.go @@ -33,7 +33,7 @@ func TestAccIBMCassandraDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-cassandra"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "adminuser", "admin"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), resource.TestCheckResourceAttr(name, "users.#", "1"), @@ -49,7 +49,7 @@ func TestAccIBMCassandraDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-cassandra"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), resource.TestCheckResourceAttr(name, "users.#", "2"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "3"), @@ -63,7 +63,7 @@ func TestAccIBMCassandraDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-cassandra"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "users.#", "0"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), @@ -93,7 +93,7 @@ func TestAccIBMDatabaseInstance_Cassandra_Node(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-cassandra"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "adminuser", "admin"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), @@ -111,7 +111,7 @@ func TestAccIBMDatabaseInstance_Cassandra_Node(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-cassandra"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), resource.TestCheckResourceAttr(name, "users.#", "2"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "3"), @@ -125,7 +125,7 @@ func TestAccIBMDatabaseInstance_Cassandra_Node(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-cassandra"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "users.#", "0"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), @@ -138,7 +138,7 @@ func TestAccIBMDatabaseInstance_Cassandra_Node(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-cassandra"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "users.#", "0"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), @@ -173,7 +173,7 @@ func TestAccIBMDatabaseInstance_Cassandra_Group(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-cassandra"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "adminuser", "admin"), resource.TestCheckResourceAttr(name, "groups.0.count", "3"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "36864"), @@ -194,7 +194,7 @@ func TestAccIBMDatabaseInstance_Cassandra_Group(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-cassandra"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.count", "3"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "37248"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "61440"), @@ -212,7 +212,7 @@ func TestAccIBMDatabaseInstance_Cassandra_Group(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-cassandra"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.count", "3"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "36864"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "61440"), @@ -229,7 +229,7 @@ func TestAccIBMDatabaseInstance_Cassandra_Group(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-cassandra"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.count", "4"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "49152"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "81920"), @@ -266,7 +266,7 @@ func TestAccIBMDatabaseInstanceCassandraImport(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "name", serviceName), resource.TestCheckResourceAttr(resourceName, "service", "databases-for-cassandra"), resource.TestCheckResourceAttr(resourceName, "plan", "enterprise"), - resource.TestCheckResourceAttr(resourceName, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(resourceName, "location", acc.Region()), ), }, { @@ -311,7 +311,7 @@ func testAccCheckIBMDatabaseInstanceCassandraBasic(databaseResourceGroup string, delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceCassandraFullyspecified(databaseResourceGroup string, name string) string { @@ -351,7 +351,7 @@ func testAccCheckIBMDatabaseInstanceCassandraFullyspecified(databaseResourceGrou delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceCassandraReduced(databaseResourceGroup string, name string) string { @@ -375,7 +375,7 @@ func testAccCheckIBMDatabaseInstanceCassandraReduced(databaseResourceGroup strin delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceCassandraNodeBasic(databaseResourceGroup string, name string) string { @@ -395,15 +395,15 @@ func testAccCheckIBMDatabaseInstanceCassandraNodeBasic(databaseResourceGroup str group { group_id = "member" - + memory { allocation_mb = 12288 } - + disk { allocation_mb = 20480 } - + cpu { allocation_count = 6 } @@ -424,7 +424,7 @@ func testAccCheckIBMDatabaseInstanceCassandraNodeBasic(databaseResourceGroup str delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceCassandraNodeFullyspecified(databaseResourceGroup string, name string) string { @@ -454,7 +454,7 @@ func testAccCheckIBMDatabaseInstanceCassandraNodeFullyspecified(databaseResource disk { allocation_mb = 20480 } - + cpu { allocation_count = 6 } @@ -483,7 +483,7 @@ func testAccCheckIBMDatabaseInstanceCassandraNodeFullyspecified(databaseResource delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceCassandraNodeReduced(databaseResourceGroup string, name string) string { @@ -524,7 +524,7 @@ func testAccCheckIBMDatabaseInstanceCassandraNodeReduced(databaseResourceGroup s delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceCassandraNodeScaleOut(databaseResourceGroup string, name string) string { @@ -564,7 +564,7 @@ func testAccCheckIBMDatabaseInstanceCassandraNodeScaleOut(databaseResourceGroup delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceCassandraGroupBasic(databaseResourceGroup string, name string) string { @@ -613,7 +613,7 @@ func testAccCheckIBMDatabaseInstanceCassandraGroupBasic(databaseResourceGroup st delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceCassandraGroupFullyspecified(databaseResourceGroup string, name string) string { @@ -671,7 +671,7 @@ func testAccCheckIBMDatabaseInstanceCassandraGroupFullyspecified(databaseResourc } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceCassandraGroupReduced(databaseResourceGroup string, name string) string { @@ -711,7 +711,7 @@ func testAccCheckIBMDatabaseInstanceCassandraGroupReduced(databaseResourceGroup delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceCassandraGroupScaleOut(databaseResourceGroup string, name string) string { @@ -759,7 +759,7 @@ func testAccCheckIBMDatabaseInstanceCassandraGroupScaleOut(databaseResourceGroup delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceCassandraImport(databaseResourceGroup string, name string) string { @@ -783,5 +783,5 @@ func testAccCheckIBMDatabaseInstanceCassandraImport(databaseResourceGroup string } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } diff --git a/ibm/service/database/resource_ibm_database_edb_test.go b/ibm/service/database/resource_ibm_database_edb_test.go index d554fe943e..2f7a639e25 100644 --- a/ibm/service/database/resource_ibm_database_edb_test.go +++ b/ibm/service/database/resource_ibm_database_edb_test.go @@ -34,7 +34,7 @@ func TestAccIBMEDBDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-enterprisedb"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "adminuser", "admin"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "61440"), @@ -55,7 +55,7 @@ func TestAccIBMEDBDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-enterprisedb"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "6144"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "92160"), resource.TestCheckResourceAttr(name, "service_endpoints", "public-and-private"), @@ -78,7 +78,7 @@ func TestAccIBMEDBDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-enterprisedb"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "92160"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), @@ -103,7 +103,7 @@ func testAccCheckIBMDatabaseInstanceEDBBasic(databaseResourceGroup string, name data "ibm_resource_group" "test_acc" { name = "%[1]s" } - + resource "ibm_database" "%[2]s" { resource_group_id = data.ibm_resource_group.test_acc.id name = "%[2]s" @@ -135,7 +135,7 @@ func testAccCheckIBMDatabaseInstanceEDBBasic(databaseResourceGroup string, name delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceEDBFullyspecified(databaseResourceGroup string, name string) string { @@ -143,7 +143,7 @@ func testAccCheckIBMDatabaseInstanceEDBFullyspecified(databaseResourceGroup stri data "ibm_resource_group" "test_acc" { name = "%[1]s" } - + resource "ibm_database" "%[2]s" { resource_group_id = data.ibm_resource_group.test_acc.id name = "%[2]s" @@ -187,7 +187,7 @@ func testAccCheckIBMDatabaseInstanceEDBFullyspecified(databaseResourceGroup stri delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceEDBReduced(databaseResourceGroup string, name string) string { @@ -195,7 +195,7 @@ func testAccCheckIBMDatabaseInstanceEDBReduced(databaseResourceGroup string, nam data "ibm_resource_group" "test_acc" { name = "%[1]s" } - + resource "ibm_database" "%[2]s" { resource_group_id = data.ibm_resource_group.test_acc.id name = "%[2]s" @@ -220,5 +220,5 @@ func testAccCheckIBMDatabaseInstanceEDBReduced(databaseResourceGroup string, nam delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } diff --git a/ibm/service/database/resource_ibm_database_elasticsearch_platinum_test.go b/ibm/service/database/resource_ibm_database_elasticsearch_platinum_test.go index 1027e878da..e1cefb491d 100644 --- a/ibm/service/database/resource_ibm_database_elasticsearch_platinum_test.go +++ b/ibm/service/database/resource_ibm_database_elasticsearch_platinum_test.go @@ -33,7 +33,7 @@ func TestAccIBMDatabaseInstance_ElasticsearchPlatinum_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "platinum"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "adminuser", "admin"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), resource.TestCheckResourceAttr(name, "users.#", "1"), @@ -50,7 +50,7 @@ func TestAccIBMDatabaseInstance_ElasticsearchPlatinum_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "platinum"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), resource.TestCheckResourceAttr(name, "users.#", "2"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "3"), @@ -64,7 +64,7 @@ func TestAccIBMDatabaseInstance_ElasticsearchPlatinum_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "platinum"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "18432"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), @@ -79,7 +79,7 @@ func TestAccIBMDatabaseInstance_ElasticsearchPlatinum_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "platinum"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "18432"), resource.TestCheckResourceAttr(name, "whitelist.#", "0"), @@ -116,7 +116,7 @@ func TestAccIBMDatabaseInstance_ElasticsearchPlatinum_Node(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "platinum"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "adminuser", "admin"), resource.TestCheckResourceAttr(name, "node_count", "3"), resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), @@ -138,7 +138,7 @@ func TestAccIBMDatabaseInstance_ElasticsearchPlatinum_Node(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "platinum"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "node_count", "3"), resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "6144"), @@ -156,7 +156,7 @@ func TestAccIBMDatabaseInstance_ElasticsearchPlatinum_Node(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "platinum"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "node_count", "3"), resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "6144"), @@ -173,7 +173,7 @@ func TestAccIBMDatabaseInstance_ElasticsearchPlatinum_Node(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "platinum"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "node_count", "4"), resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "6144"), @@ -212,7 +212,7 @@ func TestAccIBMDatabaseInstance_ElasticsearchPlatinum_Group(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "platinum"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "adminuser", "admin"), resource.TestCheckResourceAttr(name, "node_count", "3"), resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), @@ -234,7 +234,7 @@ func TestAccIBMDatabaseInstance_ElasticsearchPlatinum_Group(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "platinum"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "node_count", "3"), resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "6144"), @@ -256,7 +256,7 @@ func TestAccIBMDatabaseInstance_ElasticsearchPlatinum_Group(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "platinum"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "node_count", "3"), resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "6144"), @@ -277,7 +277,7 @@ func TestAccIBMDatabaseInstance_ElasticsearchPlatinum_Group(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "platinum"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "node_count", "4"), resource.TestCheckResourceAttr(name, "node_memory_allocation_mb", "1024"), resource.TestCheckResourceAttr(name, "node_disk_allocation_mb", "6144"), @@ -322,7 +322,7 @@ func TestAccIBMDatabaseInstanceElasticsearchPlatinumImport(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "name", serviceName), resource.TestCheckResourceAttr(resourceName, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(resourceName, "plan", "platinum"), - resource.TestCheckResourceAttr(resourceName, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(resourceName, "location", acc.Region()), ), }, { @@ -354,7 +354,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumBasic(databaseResourceG adminpassword = "password12" group { group_id = "member" - + memory { allocation_mb = 1024 } @@ -377,7 +377,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumBasic(databaseResourceG delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumFullyspecified(databaseResourceGroup string, name string) string { @@ -418,7 +418,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumFullyspecified(database } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumReduced(databaseResourceGroup string, name string) string { @@ -442,7 +442,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumReduced(databaseResourc delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupMigration(databaseResourceGroup string, name string) string { @@ -477,7 +477,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupMigration(database delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeBasic(databaseResourceGroup string, name string) string { @@ -525,7 +525,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeBasic(databaseResou delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeFullyspecified(databaseResourceGroup string, name string) string { @@ -580,7 +580,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeFullyspecified(data delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeReduced(databaseResourceGroup string, name string) string { @@ -619,7 +619,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeReduced(databaseRes delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeScaleOut(databaseResourceGroup string, name string) string { @@ -658,7 +658,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeScaleOut(databaseRe delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupBasic(databaseResourceGroup string, name string) string { @@ -707,7 +707,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupBasic(databaseReso delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupFullyspecified(databaseResourceGroup string, name string) string { @@ -764,7 +764,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupFullyspecified(dat } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupReduced(databaseResourceGroup string, name string) string { @@ -804,7 +804,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupReduced(databaseRe delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupScaleOut(databaseResourceGroup string, name string) string { @@ -843,7 +843,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupScaleOut(databaseR delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumImport(databaseResourceGroup string, name string) string { @@ -867,5 +867,5 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumImport(databaseResource } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } diff --git a/ibm/service/database/resource_ibm_database_elasticsearch_test.go b/ibm/service/database/resource_ibm_database_elasticsearch_test.go index cb5fb613c1..400e61b7b9 100644 --- a/ibm/service/database/resource_ibm_database_elasticsearch_test.go +++ b/ibm/service/database/resource_ibm_database_elasticsearch_test.go @@ -33,7 +33,7 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "adminuser", "admin"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), resource.TestCheckResourceAttr(name, "users.#", "1"), @@ -50,7 +50,7 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), resource.TestCheckResourceAttr(name, "users.#", "2"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "3"), @@ -64,7 +64,7 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "users.#", "0"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), @@ -77,7 +77,7 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "18432"), resource.TestCheckResourceAttr(name, "users.#", "0"), @@ -113,7 +113,7 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Node(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "adminuser", "admin"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), @@ -131,7 +131,7 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Node(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), resource.TestCheckResourceAttr(name, "users.#", "2"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "3"), @@ -145,7 +145,7 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Node(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "users.#", "0"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), @@ -158,7 +158,7 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Node(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "users.#", "0"), resource.TestCheckResourceAttr(name, "connectionstrings.#", "1"), @@ -193,7 +193,7 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Group(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "adminuser", "admin"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), @@ -211,7 +211,7 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Group(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.count", "3"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "18432"), @@ -229,7 +229,7 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Group(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.count", "3"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "18432"), @@ -246,7 +246,7 @@ func TestAccIBMDatabaseInstance_Elasticsearch_Group(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.count", "4"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "4096"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "24576"), @@ -287,7 +287,7 @@ func TestAccIBMDatabaseInstanceElasticsearchImport(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "name", serviceName), resource.TestCheckResourceAttr(resourceName, "service", "databases-for-elasticsearch"), resource.TestCheckResourceAttr(resourceName, "plan", "standard"), - resource.TestCheckResourceAttr(resourceName, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(resourceName, "location", acc.Region()), ), }, { @@ -332,7 +332,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchBasic(databaseResourceGroup str delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchFullyspecified(databaseResourceGroup string, name string) string { @@ -373,7 +373,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchFullyspecified(databaseResource } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchReduced(databaseResourceGroup string, name string) string { @@ -397,7 +397,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchReduced(databaseResourceGroup s delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchGroupMigration(databaseResourceGroup string, name string) string { @@ -432,7 +432,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchGroupMigration(databaseResource delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchNodeBasic(databaseResourceGroup string, name string) string { @@ -480,7 +480,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchNodeBasic(databaseResourceGroup delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchNodeFullyspecified(databaseResourceGroup string, name string) string { @@ -535,7 +535,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchNodeFullyspecified(databaseReso delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchNodeReduced(databaseResourceGroup string, name string) string { @@ -574,7 +574,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchNodeReduced(databaseResourceGro delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchNodeScaleOut(databaseResourceGroup string, name string) string { @@ -613,7 +613,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchNodeScaleOut(databaseResourceGr delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchGroupBasic(databaseResourceGroup string, name string) string { @@ -662,7 +662,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchGroupBasic(databaseResourceGrou delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchGroupFullyspecified(databaseResourceGroup string, name string) string { @@ -719,7 +719,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchGroupFullyspecified(databaseRes } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchGroupReduced(databaseResourceGroup string, name string) string { @@ -759,7 +759,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchGroupReduced(databaseResourceGr delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchGroupScaleOut(databaseResourceGroup string, name string) string { @@ -798,7 +798,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchGroupScaleOut(databaseResourceG delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceElasticsearchImport(databaseResourceGroup string, name string) string { @@ -822,5 +822,5 @@ func testAccCheckIBMDatabaseInstanceElasticsearchImport(databaseResourceGroup st } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } diff --git a/ibm/service/database/resource_ibm_database_etcd_test.go b/ibm/service/database/resource_ibm_database_etcd_test.go index 42d7a83c0c..90ae1134d9 100644 --- a/ibm/service/database/resource_ibm_database_etcd_test.go +++ b/ibm/service/database/resource_ibm_database_etcd_test.go @@ -34,7 +34,7 @@ func TestAccIBMDatabaseInstance_Etcd_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-etcd"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "adminuser", "root"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "9216"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "184320"), @@ -54,7 +54,7 @@ func TestAccIBMDatabaseInstance_Etcd_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-etcd"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "18432"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "193536"), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), @@ -68,7 +68,7 @@ func TestAccIBMDatabaseInstance_Etcd_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-etcd"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "9216"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "193536"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), @@ -102,7 +102,7 @@ func TestAccIBMDatabaseInstanceEtcdImport(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "name", serviceName), resource.TestCheckResourceAttr(resourceName, "service", "databases-for-etcd"), resource.TestCheckResourceAttr(resourceName, "plan", "standard"), - resource.TestCheckResourceAttr(resourceName, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(resourceName, "location", acc.Region()), ), }, { @@ -124,7 +124,7 @@ func testAccCheckIBMDatabaseInstanceEtcdBasic(databaseResourceGroup string, name is_default = true # name = "%[1]s" } - + resource "ibm_database" "%[2]s" { resource_group_id = data.ibm_resource_group.test_acc.id name = "%[2]s" @@ -150,7 +150,7 @@ func testAccCheckIBMDatabaseInstanceEtcdBasic(databaseResourceGroup string, name description = "desc1" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceEtcdFullyspecified(databaseResourceGroup string, name string) string { @@ -159,7 +159,7 @@ func testAccCheckIBMDatabaseInstanceEtcdFullyspecified(databaseResourceGroup str is_default = true # name = "%[1]s" } - + resource "ibm_database" "%[2]s" { resource_group_id = data.ibm_resource_group.test_acc.id name = "%[2]s" @@ -193,8 +193,8 @@ func testAccCheckIBMDatabaseInstanceEtcdFullyspecified(databaseResourceGroup str description = "desc" } } - - `, databaseResourceGroup, name, acc.IcdDbRegion) + + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceEtcdReduced(databaseResourceGroup string, name string) string { @@ -203,7 +203,7 @@ func testAccCheckIBMDatabaseInstanceEtcdReduced(databaseResourceGroup string, na is_default = true # name = "%[1]s" } - + resource "ibm_database" "%[2]s" { resource_group_id = data.ibm_resource_group.test_acc.id name = "%[2]s" @@ -221,7 +221,7 @@ func testAccCheckIBMDatabaseInstanceEtcdReduced(databaseResourceGroup string, na } } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceEtcdImport(databaseResourceGroup string, name string) string { @@ -230,7 +230,7 @@ func testAccCheckIBMDatabaseInstanceEtcdImport(databaseResourceGroup string, nam is_default = true # name = "%[1]s" } - + resource "ibm_database" "%[2]s" { resource_group_id = data.ibm_resource_group.test_acc.id name = "%[2]s" @@ -238,5 +238,5 @@ func testAccCheckIBMDatabaseInstanceEtcdImport(databaseResourceGroup string, nam plan = "standard" location = "%[3]s" } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } diff --git a/ibm/service/database/resource_ibm_database_mongodb_enterprise_test.go b/ibm/service/database/resource_ibm_database_mongodb_enterprise_test.go index e8a11917ae..0993877628 100644 --- a/ibm/service/database/resource_ibm_database_mongodb_enterprise_test.go +++ b/ibm/service/database/resource_ibm_database_mongodb_enterprise_test.go @@ -34,7 +34,7 @@ func TestAccIBMMongoDBEnterpriseDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-mongodb"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "adminuser", "admin"), resource.TestCheckResourceAttr(name, "service_endpoints", "public"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "43008"), @@ -55,7 +55,7 @@ func TestAccIBMMongoDBEnterpriseDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-mongodb"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "service_endpoints", "public"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "86016"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "122880"), @@ -79,7 +79,7 @@ func TestAccIBMMongoDBEnterpriseDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-mongodb"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "43008"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "122880"), @@ -119,7 +119,7 @@ func TestAccIBMMongoDBEnterpriseDatabaseInstanceGroupBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-mongodb"), resource.TestCheckResourceAttr(name, "plan", "enterprise"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "adminuser", "admin"), resource.TestCheckResourceAttr(name, "service_endpoints", "public"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "43008"), @@ -138,6 +138,62 @@ func TestAccIBMMongoDBEnterpriseDatabaseInstanceGroupBasic(t *testing.T) { }) } +func TestAccIBMMongoDBEnterpriseDatabaseInstancePITR(t *testing.T) { + t.Parallel() + databaseResourceGroup := "Default" + var databaseInstanceOne string + var databaseInstanceTwo string + serviceName := fmt.Sprintf("tf-mongodbee-%d", acctest.RandIntRange(10, 100)) + pitrServiceName := serviceName + "-pitr" + resourceName := "ibm_database." + serviceName + pitrResourceName := "ibm_database." + pitrServiceName + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + ExternalProviders: map[string]resource.ExternalProvider{ + "time": { + Source: "hashicorp/time", + VersionConstraint: ">=0.9.1", + }, + }, + ProviderFactories: acc.TestAccProviderFactories(), + CheckDestroy: testAccCheckIBMDatabaseInstanceDestroy, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMDatabaseInstanceMongoDBEnterpriseMinimal(databaseResourceGroup, serviceName), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMDatabaseInstanceExists(resourceName, &databaseInstanceOne), + resource.TestCheckResourceAttr(resourceName, "name", serviceName), + resource.TestCheckResourceAttr(resourceName, "service", "databases-for-mongodb"), + resource.TestCheckResourceAttr(resourceName, "plan", "enterprise"), + resource.TestCheckResourceAttr(resourceName, "location", acc.Region()), + + resource.TestCheckResourceAttr(resourceName, "groups.0.count", "3"), + resource.TestCheckResourceAttr(resourceName, "groups.1.count", "0"), + resource.TestCheckResourceAttr(resourceName, "groups.2.count", "0"), + ), + }, + { + Config: acc.ConfigCompose(acc.ConfigAlternateRegionProvider(), + testAccCheckIBMDatabaseInstanceMongoDBEnterpriseMinimal(databaseResourceGroup, serviceName), + testAccCheckIBMDatabaseInstanceMongoDBEnterpriseMinimal_PITR(databaseResourceGroup, serviceName)), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMDatabaseInstanceExists(resourceName, &databaseInstanceOne), + testAccCheckIBMDatabaseInstanceExists(pitrResourceName, &databaseInstanceTwo), + resource.TestCheckResourceAttr(pitrResourceName, "name", pitrServiceName), + resource.TestCheckResourceAttr(pitrResourceName, "service", "databases-for-mongodb"), + resource.TestCheckResourceAttr(pitrResourceName, "plan", "enterprise"), + resource.TestCheckResourceAttr(pitrResourceName, "location", acc.RegionAlternate()), + resource.TestCheckResourceAttr(pitrResourceName, "adminuser", "admin"), + resource.TestCheckResourceAttr(pitrResourceName, "groups.0.count", "3"), + resource.TestCheckResourceAttr(pitrResourceName, "groups.1.count", "0"), + resource.TestCheckResourceAttr(pitrResourceName, "groups.2.count", "0"), + ), + }, + }, + }) +} + func testAccCheckIBMDatabaseInstanceMongoDBEnterpriseBasic(databaseResourceGroup string, name string) string { return fmt.Sprintf(` data "ibm_resource_group" "test_acc" { @@ -176,7 +232,7 @@ func testAccCheckIBMDatabaseInstanceMongoDBEnterpriseBasic(databaseResourceGroup delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceMongoDBEnterpriseFullyspecified(databaseResourceGroup string, name string) string { @@ -229,7 +285,7 @@ func testAccCheckIBMDatabaseInstanceMongoDBEnterpriseFullyspecified(databaseReso delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceMongoDBEnterpriseReduced(databaseResourceGroup string, name string) string { @@ -262,7 +318,7 @@ func testAccCheckIBMDatabaseInstanceMongoDBEnterpriseReduced(databaseResourceGro delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceMongoDBEnterpriseGroupBasic(databaseResourceGroup string, name string) string { @@ -313,5 +369,57 @@ func testAccCheckIBMDatabaseInstanceMongoDBEnterpriseGroupBasic(databaseResource delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) +} + +func testAccCheckIBMDatabaseInstanceMongoDBEnterpriseMinimal(databaseResourceGroup string, name string) string { + return fmt.Sprintf(` + data "ibm_resource_group" "test_acc" { + is_default = true + } + + resource "ibm_database" "%[2]s" { + resource_group_id = data.ibm_resource_group.test_acc.id + name = "%[2]s" + service = "databases-for-mongodb" + plan = "enterprise" + location = "%[3]s" + + timeouts { + create = "4h" + update = "4h" + delete = "15m" + } + } + `, databaseResourceGroup, name, acc.Region()) +} + +func testAccCheckIBMDatabaseInstanceMongoDBEnterpriseMinimal_PITR(databaseResourceGroup string, name string) string { + return fmt.Sprintf(` + resource "time_sleep" "wait_time" { + create_duration = "1h" + depends_on = [ibm_database.%[2]s] + } + + resource "ibm_database" "%[2]s-pitr" { + provider = "%[1]s" + depends_on = [time_sleep.wait_time, ibm_database.%[2]s] + + resource_group_id = data.ibm_resource_group.test_acc.id + name = "%[2]s-pitr" + service = "databases-for-mongodb" + plan = "enterprise" + location = "%[3]s" + point_in_time_recovery_deployment_id = ibm_database.%[2]s.id + point_in_time_recovery_time = "" + offline_restore = true + + timeouts { + create = "4h" + update = "4h" + delete = "15m" + } + } + + `, acc.ProviderNameAlternate, name, acc.RegionAlternate()) } diff --git a/ibm/service/database/resource_ibm_database_mongodb_sharding_test.go b/ibm/service/database/resource_ibm_database_mongodb_sharding_test.go index 3b8a8e7dbb..dad9d64ff0 100644 --- a/ibm/service/database/resource_ibm_database_mongodb_sharding_test.go +++ b/ibm/service/database/resource_ibm_database_mongodb_sharding_test.go @@ -34,7 +34,7 @@ func TestAccIBMMongoDBShardingDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-mongodb"), resource.TestCheckResourceAttr(name, "plan", "enterprise-sharding"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "adminuser", "admin"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "43008"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "61440"), @@ -53,7 +53,7 @@ func TestAccIBMMongoDBShardingDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-mongodb"), resource.TestCheckResourceAttr(name, "plan", "enterprise-sharding"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "86016"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "122880"), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), @@ -70,7 +70,7 @@ func TestAccIBMMongoDBShardingDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-mongodb"), resource.TestCheckResourceAttr(name, "plan", "enterprise-sharding"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "43008"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "122880"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), @@ -119,7 +119,7 @@ func testAccCheckIBMDatabaseInstanceMongoDBShardingBasic(databaseResourceGroup s delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceMongoDBShardingFullyspecified(databaseResourceGroup string, name string) string { @@ -171,7 +171,7 @@ func testAccCheckIBMDatabaseInstanceMongoDBShardingFullyspecified(databaseResour delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceMongoDBShardingReduced(databaseResourceGroup string, name string) string { @@ -203,5 +203,5 @@ func testAccCheckIBMDatabaseInstanceMongoDBShardingReduced(databaseResourceGroup delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } diff --git a/ibm/service/database/resource_ibm_database_mongodb_test.go b/ibm/service/database/resource_ibm_database_mongodb_test.go index 683d02fa14..3bbfae9e52 100644 --- a/ibm/service/database/resource_ibm_database_mongodb_test.go +++ b/ibm/service/database/resource_ibm_database_mongodb_test.go @@ -34,7 +34,7 @@ func TestAccIBMDatabaseInstanceMongodbBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-mongodb"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "adminuser", "admin"), resource.TestCheckResourceAttr(name, "allowlist.#", "1"), resource.TestCheckResourceAttr(name, "users.#", "1"), @@ -53,7 +53,7 @@ func TestAccIBMDatabaseInstanceMongodbBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-mongodb"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), resource.TestCheckResourceAttr(name, "users.#", "2"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "6144"), @@ -70,7 +70,7 @@ func TestAccIBMDatabaseInstanceMongodbBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-mongodb"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "30720"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), @@ -109,7 +109,7 @@ func TestAccIBMDatabaseInstanceMongodbImport(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "name", serviceName), resource.TestCheckResourceAttr(resourceName, "service", "databases-for-mongodb"), resource.TestCheckResourceAttr(resourceName, "plan", "standard"), - resource.TestCheckResourceAttr(resourceName, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(resourceName, "location", acc.Region()), ), }, { @@ -128,7 +128,7 @@ func testAccCheckIBMDatabaseInstanceMongodbBasic(databaseResourceGroup string, n data "ibm_resource_group" "test_acc" { name = "%[1]s" } - + resource "ibm_database" "%[2]s" { resource_group_id = data.ibm_resource_group.test_acc.id name = "%[2]s" @@ -154,7 +154,7 @@ func testAccCheckIBMDatabaseInstanceMongodbBasic(databaseResourceGroup string, n description = "desc1" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceMongodbFullyspecified(databaseResourceGroup string, name string) string { @@ -162,7 +162,7 @@ func testAccCheckIBMDatabaseInstanceMongodbFullyspecified(databaseResourceGroup data "ibm_resource_group" "test_acc" { name = "%[1]s" } - + resource "ibm_database" "%[2]s" { resource_group_id = data.ibm_resource_group.test_acc.id name = "%[2]s" @@ -196,7 +196,7 @@ func testAccCheckIBMDatabaseInstanceMongodbFullyspecified(databaseResourceGroup description = "desc" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceMongodbReduced(databaseResourceGroup string, name string) string { @@ -204,7 +204,7 @@ func testAccCheckIBMDatabaseInstanceMongodbReduced(databaseResourceGroup string, data "ibm_resource_group" "test_acc" { name = "%[1]s" } - + resource "ibm_database" "%[2]s" { resource_group_id = data.ibm_resource_group.test_acc.id name = "%[2]s" @@ -222,8 +222,8 @@ func testAccCheckIBMDatabaseInstanceMongodbReduced(databaseResourceGroup string, } } } - - `, databaseResourceGroup, name, acc.IcdDbRegion) + + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceMongodbImport(databaseResourceGroup string, name string) string { @@ -232,7 +232,7 @@ func testAccCheckIBMDatabaseInstanceMongodbImport(databaseResourceGroup string, is_default = true # name = "%[1]s" } - + resource "ibm_database" "%[2]s" { resource_group_id = data.ibm_resource_group.test_acc.id name = "%[2]s" @@ -240,6 +240,6 @@ func testAccCheckIBMDatabaseInstanceMongodbImport(databaseResourceGroup string, plan = "standard" location = "%[3]s" } - - `, databaseResourceGroup, name, acc.IcdDbRegion) + + `, databaseResourceGroup, name, acc.Region()) } diff --git a/ibm/service/database/resource_ibm_database_mysql_test.go b/ibm/service/database/resource_ibm_database_mysql_test.go index d88873886a..a1291df54d 100644 --- a/ibm/service/database/resource_ibm_database_mysql_test.go +++ b/ibm/service/database/resource_ibm_database_mysql_test.go @@ -33,7 +33,7 @@ func TestAccIBMMysqlDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-mysql"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "adminuser", "admin"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "61440"), @@ -54,7 +54,7 @@ func TestAccIBMMysqlDatabaseInstanceBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-mysql"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "6144"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "92160"), resource.TestCheckResourceAttr(name, "service_endpoints", "public-and-private"), @@ -111,7 +111,7 @@ func testAccCheckIBMDatabaseInstanceMysqlBasic(databaseResourceGroup string, nam delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceMysqlFullyspecified(databaseResourceGroup string, name string) string { @@ -169,5 +169,5 @@ func testAccCheckIBMDatabaseInstanceMysqlFullyspecified(databaseResourceGroup st delete = "15m" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } diff --git a/ibm/service/database/resource_ibm_database_postgresql_test.go b/ibm/service/database/resource_ibm_database_postgresql_test.go index 15866b186c..56769cba61 100644 --- a/ibm/service/database/resource_ibm_database_postgresql_test.go +++ b/ibm/service/database/resource_ibm_database_postgresql_test.go @@ -55,7 +55,7 @@ func TestAccIBMDatabaseInstancePostgresBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-postgresql"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "adminuser", "admin"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "4096"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "20480"), @@ -78,7 +78,7 @@ func TestAccIBMDatabaseInstancePostgresBasic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-postgresql"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "8192"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "28672"), resource.TestCheckResourceAttr(name, "service_endpoints", "public-and-private"), @@ -124,7 +124,7 @@ func TestAccIBMDatabaseInstancePostgresGroup(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-postgresql"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "adminuser", "admin"), resource.TestCheckResourceAttr(name, "groups.0.count", "2"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "4096"), @@ -147,7 +147,7 @@ func TestAccIBMDatabaseInstancePostgresGroup(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-postgresql"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.count", "2"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "4608"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "28672"), @@ -172,7 +172,7 @@ func TestAccIBMDatabaseInstancePostgresGroup(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-postgresql"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.count", "2"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "4096"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "28672"), @@ -190,7 +190,7 @@ func TestAccIBMDatabaseInstancePostgresGroup(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-postgresql"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.count", "3"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "6144"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "43008"), @@ -227,7 +227,7 @@ func TestAccIBMDatabaseInstancePostgresImport(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "name", serviceName), resource.TestCheckResourceAttr(resourceName, "service", "databases-for-postgresql"), resource.TestCheckResourceAttr(resourceName, "plan", "standard"), - resource.TestCheckResourceAttr(resourceName, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(resourceName, "location", acc.Region()), ), }, { @@ -264,7 +264,7 @@ func TestAccIBMDatabaseInstancePostgresPITR(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "name", serviceName), resource.TestCheckResourceAttr(resourceName, "service", "databases-for-postgresql"), resource.TestCheckResourceAttr(resourceName, "plan", "standard"), - resource.TestCheckResourceAttr(resourceName, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(resourceName, "location", acc.Region()), ), }, { @@ -274,7 +274,7 @@ func TestAccIBMDatabaseInstancePostgresPITR(t *testing.T) { resource.TestCheckResourceAttr(pitrResource, "name", pitrServiceName), resource.TestCheckResourceAttr(pitrResource, "service", "databases-for-postgresql"), resource.TestCheckResourceAttr(pitrResource, "plan", "standard"), - resource.TestCheckResourceAttr(pitrResource, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(pitrResource, "location", acc.Region()), ), }, }, @@ -447,7 +447,7 @@ func testAccCheckIBMDatabaseInstancePostgresBasic(databaseResourceGroup string, plugin_type = "wal2json" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstancePostgresFullyspecified(databaseResourceGroup string, name string) string { @@ -515,7 +515,7 @@ func testAccCheckIBMDatabaseInstancePostgresFullyspecified(databaseResourceGroup plugin_type = "wal2json" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstancePostgresGroupBasic(databaseResourceGroup string, name string) string { @@ -556,7 +556,7 @@ func testAccCheckIBMDatabaseInstancePostgresGroupBasic(databaseResourceGroup str description = "desc1" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstancePostgresGroupFullyspecified(databaseResourceGroup string, name string) string { @@ -606,7 +606,7 @@ func testAccCheckIBMDatabaseInstancePostgresGroupFullyspecified(databaseResource description = "desc" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstancePostgresGroupReduced(databaseResourceGroup string, name string) string { @@ -640,7 +640,7 @@ func testAccCheckIBMDatabaseInstancePostgresGroupReduced(databaseResourceGroup s } } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstancePostgresGroupScaleOut(databaseResourceGroup string, name string) string { @@ -674,7 +674,7 @@ func testAccCheckIBMDatabaseInstancePostgresGroupScaleOut(databaseResourceGroup service_endpoints = "public" tags = ["one:two"] } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstancePostgresImport(databaseResourceGroup string, name string) string { @@ -691,7 +691,7 @@ func testAccCheckIBMDatabaseInstancePostgresImport(databaseResourceGroup string, plan = "standard" location = "%[3]s" } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstancePostgresMinimal(databaseResourceGroup string, name string) string { @@ -708,7 +708,7 @@ func testAccCheckIBMDatabaseInstancePostgresMinimal(databaseResourceGroup string plan = "standard" location = "%[3]s" } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstancePostgresMinimal_PITR(databaseResourceGroup string, name string) string { @@ -735,5 +735,5 @@ func testAccCheckIBMDatabaseInstancePostgresMinimal_PITR(databaseResourceGroup s point_in_time_recovery_deployment_id = ibm_database.%[2]s.id point_in_time_recovery_time = "" } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } diff --git a/ibm/service/database/resource_ibm_database_rabbitmq_test.go b/ibm/service/database/resource_ibm_database_rabbitmq_test.go index 93a4bc0456..5b55cac784 100644 --- a/ibm/service/database/resource_ibm_database_rabbitmq_test.go +++ b/ibm/service/database/resource_ibm_database_rabbitmq_test.go @@ -33,7 +33,7 @@ func TestAccIBMDatabaseInstance_Rabbitmq_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "messages-for-rabbitmq"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "adminuser", "admin"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "3072"), @@ -52,7 +52,7 @@ func TestAccIBMDatabaseInstance_Rabbitmq_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "messages-for-rabbitmq"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "6144"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "6144"), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), @@ -68,7 +68,7 @@ func TestAccIBMDatabaseInstance_Rabbitmq_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "messages-for-rabbitmq"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "3072"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "6144"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), @@ -107,7 +107,7 @@ func TestAccIBMDatabaseInstanceRabbitmqImport(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "name", serviceName), resource.TestCheckResourceAttr(resourceName, "service", "messages-for-rabbitmq"), resource.TestCheckResourceAttr(resourceName, "plan", "standard"), - resource.TestCheckResourceAttr(resourceName, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(resourceName, "location", acc.Region()), ), }, { @@ -160,7 +160,7 @@ func testAccCheckIBMDatabaseInstanceRabbitmqBasic(databaseResourceGroup string, } CONFIGURATION } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceRabbitmqFullyspecified(databaseResourceGroup string, name string) string { @@ -204,7 +204,7 @@ func testAccCheckIBMDatabaseInstanceRabbitmqFullyspecified(databaseResourceGroup } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceRabbitmqReduced(databaseResourceGroup string, name string) string { @@ -231,7 +231,7 @@ func testAccCheckIBMDatabaseInstanceRabbitmqReduced(databaseResourceGroup string } } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceRabbitmqImport(databaseResourceGroup string, name string) string { @@ -248,5 +248,5 @@ func testAccCheckIBMDatabaseInstanceRabbitmqImport(databaseResourceGroup string, plan = "standard" location = "%[3]s" } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } diff --git a/ibm/service/database/resource_ibm_database_redis_test.go b/ibm/service/database/resource_ibm_database_redis_test.go index 3a0f4cd85a..869643aab5 100644 --- a/ibm/service/database/resource_ibm_database_redis_test.go +++ b/ibm/service/database/resource_ibm_database_redis_test.go @@ -34,7 +34,7 @@ func TestAccIBMDatabaseInstance_Redis_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-redis"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "adminuser", "admin"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "2048"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "2048"), @@ -51,7 +51,7 @@ func TestAccIBMDatabaseInstance_Redis_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-redis"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "2304"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "4096"), resource.TestCheckResourceAttr(name, "allowlist.#", "2"), @@ -63,7 +63,7 @@ func TestAccIBMDatabaseInstance_Redis_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-redis"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "2048"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "4096"), @@ -75,7 +75,7 @@ func TestAccIBMDatabaseInstance_Redis_Basic(t *testing.T) { resource.TestCheckResourceAttr(name, "name", testName), resource.TestCheckResourceAttr(name, "service", "databases-for-redis"), resource.TestCheckResourceAttr(name, "plan", "standard"), - resource.TestCheckResourceAttr(name, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(name, "location", acc.Region()), resource.TestCheckResourceAttr(name, "groups.0.memory.0.allocation_mb", "2048"), resource.TestCheckResourceAttr(name, "groups.0.disk.0.allocation_mb", "4096"), resource.TestCheckResourceAttr(name, "allowlist.#", "0"), @@ -106,7 +106,7 @@ func TestAccIBMDatabaseInstanceRedisImport(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "name", serviceName), resource.TestCheckResourceAttr(resourceName, "service", "databases-for-redis"), resource.TestCheckResourceAttr(resourceName, "plan", "standard"), - resource.TestCheckResourceAttr(resourceName, "location", acc.IcdDbRegion), + resource.TestCheckResourceAttr(resourceName, "location", acc.Region()), resource.TestCheckResourceAttr(resourceName, "auto_scaling.#", "1"), resource.TestCheckResourceAttr(resourceName, "auto_scaling.0.disk.0.capacity_enabled", "true"), resource.TestCheckResourceAttr(resourceName, "auto_scaling.0.memory.0.io_enabled", "true"), @@ -192,7 +192,7 @@ func testAccCheckIBMDatabaseInstanceRedisBasic(databaseResourceGroup string, nam } CONFIGURATION } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceRedisFullyspecified(databaseResourceGroup string, name string) string { @@ -227,7 +227,7 @@ func testAccCheckIBMDatabaseInstanceRedisFullyspecified(databaseResourceGroup st description = "desc" } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceRedisReduced(databaseResourceGroup string, name string) string { @@ -254,7 +254,7 @@ func testAccCheckIBMDatabaseInstanceRedisReduced(databaseResourceGroup string, n } } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceRedisGroupMigration(databaseResourceGroup string, name string) string { @@ -282,7 +282,7 @@ func testAccCheckIBMDatabaseInstanceRedisGroupMigration(databaseResourceGroup st } } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceRedisImport(databaseResourceGroup string, name string) string { @@ -321,7 +321,7 @@ func testAccCheckIBMDatabaseInstanceRedisImport(databaseResourceGroup string, na } } } - `, databaseResourceGroup, name, acc.IcdDbRegion) + `, databaseResourceGroup, name, acc.Region()) } func testAccCheckIBMDatabaseInstanceRedisKPEncrypt(databaseResourceGroup string, kpInstanceName, kpKeyName, kpByokName, name string) string { return fmt.Sprintf(` @@ -360,5 +360,5 @@ func testAccCheckIBMDatabaseInstanceRedisKPEncrypt(databaseResourceGroup string, delete = "15m" } } - `, databaseResourceGroup, kpInstanceName, kpKeyName, kpByokName, name, acc.IcdDbRegion) + `, databaseResourceGroup, kpInstanceName, kpKeyName, kpByokName, name, acc.Region()) } diff --git a/website/docs/r/database.html.markdown b/website/docs/r/database.html.markdown index 00645a693f..04248090bb 100644 --- a/website/docs/r/database.html.markdown +++ b/website/docs/r/database.html.markdown @@ -668,6 +668,7 @@ Review the argument reference that you can specify for your resource. - `allocation_count` - (Optional, Integer) Allocated dedicated CPU per-member. - `name` - (Required, String) A descriptive name that is used to identify the database instance. The name must not include spaces. +- `offline_restore` - (Optional, Boolean) Enable or disable the Offline Restore option while performing a Point-in-time Recovery for MongoDB EE in a disaster recovery scenario when the source region is unavailable, see [Point-in-time Recovery](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pitr&interface=api#pitr-offline-restore) - `plan` - (Required, Forces new resource, String) The name of the service plan that you choose for your instance. All databases use `standard`. `enterprise` is supported only for elasticsearch (`databases-for-elasticsearch`), cassandra (`databases-for-cassandra`), and mongodb(`databases-for-mongodb`). `platinum` is supported for elasticsearch (`databases-for-elasticsearch`). - `point_in_time_recovery_deployment_id` - (Optional, String) The ID of the source deployment that you want to recover back to. - `point_in_time_recovery_time` - (Optional, String) The timestamp in UTC format that you want to restore to. To retrieve the timestamp, run the `ibmcloud cdb postgresql earliest-pitr-timestamp ` command. To restore to the latest available time, use a blank string `""` as the timestamp. For more information, see [Point-in-time Recovery](https://cloud.ibm.com/docs/databases-for-postgresql?topic=databases-for-postgresql-pitr). From f7e3945d40f480cc4c367ca8a0d3941c9d75591e Mon Sep 17 00:00:00 2001 From: Brian Gleeson Date: Tue, 14 Nov 2023 08:42:55 +0000 Subject: [PATCH 27/58] feat(tekton): bump ContinuousDelivery Go SDK version (#4918) * feat(tekton): bump ContinuousDelivery Go SDK version * Update SCC acceptance test --------- Co-authored-by: Gary Marjoram --- go.mod | 2 +- go.sum | 4 ++-- ...ource_ibm_cd_toolchain_tool_securitycompliance_test.go | 8 -------- ...ource_ibm_cd_toolchain_tool_securitycompliance_test.go | 8 -------- 4 files changed, 3 insertions(+), 19 deletions(-) diff --git a/go.mod b/go.mod index 8cec155f12..005d813e9e 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/IBM/cloudant-go-sdk v0.0.43 github.com/IBM/code-engine-go-sdk v0.0.0-20230606173928-4863db061918 github.com/IBM/container-registry-go-sdk v1.1.0 - github.com/IBM/continuous-delivery-go-sdk v1.2.1 + github.com/IBM/continuous-delivery-go-sdk v1.3.0 github.com/IBM/event-notifications-go-admin-sdk v0.2.7 github.com/IBM/eventstreams-go-sdk v1.4.0 github.com/IBM/go-sdk-core/v3 v3.2.4 diff --git a/go.sum b/go.sum index e1f9e3e9ff..58fc42d295 100644 --- a/go.sum +++ b/go.sum @@ -123,8 +123,8 @@ github.com/IBM/code-engine-go-sdk v0.0.0-20230606173928-4863db061918 h1:RfHezAVs github.com/IBM/code-engine-go-sdk v0.0.0-20230606173928-4863db061918/go.mod h1:IP6U/1NxgxzPeYdyiEwMaZyzelTw82JGHWl7bY78eQM= github.com/IBM/container-registry-go-sdk v1.1.0 h1:sYyknIod8R4RJZQqAheiduP6wbSTphE9Ag8ho28yXjc= github.com/IBM/container-registry-go-sdk v1.1.0/go.mod h1:4TwsCnQtVfZ4Vkapy/KPvQBKFc3VOyUZYkwRU4FTPrs= -github.com/IBM/continuous-delivery-go-sdk v1.2.1 h1:MVclWmjW6LevbYgrA7PGJzS+Dmqy3/JBYUpBp/ct+Vk= -github.com/IBM/continuous-delivery-go-sdk v1.2.1/go.mod h1:oW51tS5/MDCcEM7lUvjK1H9GFC/oKsRbyYfmvGyMGmw= +github.com/IBM/continuous-delivery-go-sdk v1.3.0 h1:WsILMVpNWD/5G40ltWeXbOj4y5ODQSq1hKXAnDJuNjw= +github.com/IBM/continuous-delivery-go-sdk v1.3.0/go.mod h1:oW51tS5/MDCcEM7lUvjK1H9GFC/oKsRbyYfmvGyMGmw= github.com/IBM/event-notifications-go-admin-sdk v0.2.7 h1:Y6YPiXZO3/oAhs7rY6ekowJAsf9J05g2UFq3wjFkuCs= github.com/IBM/event-notifications-go-admin-sdk v0.2.7/go.mod h1:iI6/TJt4GQBDsl8NYzoIYGnsNjMG0kOVIEl7mcM5v1E= github.com/IBM/eventstreams-go-sdk v1.4.0 h1:yS/Ns29sBOe8W2tynQmz9HTKqQZ0ckse4Py5Oy/F2rM= diff --git a/ibm/service/cdtoolchain/data_source_ibm_cd_toolchain_tool_securitycompliance_test.go b/ibm/service/cdtoolchain/data_source_ibm_cd_toolchain_tool_securitycompliance_test.go index 2f1d8428b3..280fa471cb 100644 --- a/ibm/service/cdtoolchain/data_source_ibm_cd_toolchain_tool_securitycompliance_test.go +++ b/ibm/service/cdtoolchain/data_source_ibm_cd_toolchain_tool_securitycompliance_test.go @@ -87,10 +87,6 @@ func testAccCheckIBMCdToolchainToolSecuritycomplianceDataSourceConfigBasic(tcNam parameters { name = "compliance" evidence_namespace = "cd" - trigger_scan = "disabled" - api_key = "api_key" - scope = "my-scope" - profile = "IBM Cloud Security Best Practices v1.0.0" evidence_repo_url = "https://github.example.com//compliance-evidence-" } } @@ -118,10 +114,6 @@ func testAccCheckIBMCdToolchainToolSecuritycomplianceDataSourceConfig(tcName str parameters { name = "compliance" evidence_namespace = "cd" - trigger_scan = "disabled" - api_key = "api_key" - scope = "my-scope" - profile = "IBM Cloud Security Best Practices v1.0.0" evidence_repo_url = "https://github.example.com//compliance-evidence-" } name = "%s" diff --git a/ibm/service/cdtoolchain/resource_ibm_cd_toolchain_tool_securitycompliance_test.go b/ibm/service/cdtoolchain/resource_ibm_cd_toolchain_tool_securitycompliance_test.go index 59e4162c65..a2ed43f81b 100644 --- a/ibm/service/cdtoolchain/resource_ibm_cd_toolchain_tool_securitycompliance_test.go +++ b/ibm/service/cdtoolchain/resource_ibm_cd_toolchain_tool_securitycompliance_test.go @@ -90,10 +90,6 @@ func testAccCheckIBMCdToolchainToolSecuritycomplianceConfigBasic(tcName string, parameters { name = "compliance" evidence_namespace = "cd" - trigger_scan = "disabled" - api_key = "api_key" - scope = "my-scope" - profile = "IBM Cloud Security Best Practices v1.0.0" evidence_repo_url = "https://github.example.com//compliance-evidence-" } } @@ -116,10 +112,6 @@ func testAccCheckIBMCdToolchainToolSecuritycomplianceConfig(tcName string, rgNam parameters { name = "compliance" evidence_namespace = "cd" - trigger_scan = "disabled" - api_key = "api_key" - scope = "my-scope" - profile = "IBM Cloud Security Best Practices v1.0.0" evidence_repo_url = "https://github.example.com//compliance-evidence-" } name = "%s" From 588d5d98d3e99e85740d5d76089f4d5754f42412 Mon Sep 17 00:00:00 2001 From: Shaun Colley <80714407+swcolley@users.noreply.github.com> Date: Tue, 14 Nov 2023 03:43:17 -0500 Subject: [PATCH 28/58] fix(IAM Policy Management): Added nest conditions to rule.conditions (#4896) * fix(IAM Policy Management): Added nest conditions to rule.conditions Signed-off-by: Shaun Colley * fix(IAM Policy Management): Updated go.mod and go.sum with latest go SDK Signed-off-by: Shaun Colley * fix(IAM Policy Management): Updated based on incoming sdk changes Signed-off-by: Shaun Colley * fix(IAM Policy Management): update based on sdk change Signed-off-by: Shaun Colley * fix(IAM Policy Management): update based on sdk change Signed-off-by: Shaun Colley * fix(IAM Policy Management): Fix commented out test case Signed-off-by: Shaun Colley --------- Signed-off-by: Shaun Colley --- go.mod | 2 +- go.sum | 4 + ibm/flex/structures.go | 146 ++++++++++------ ...data_source_ibm_iam_access_group_policy.go | 29 ++- .../data_source_ibm_iam_policy_template.go | 29 ++- ..._source_ibm_iam_policy_template_version.go | 29 ++- .../data_source_ibm_iam_service_policy.go | 29 ++- ...a_source_ibm_iam_trusted_profile_policy.go | 29 ++- .../data_source_ibm_iam_user_policy.go | 29 ++- .../resource_ibm_iam_access_group_policy.go | 29 ++- ...source_ibm_iam_access_group_policy_test.go | 165 ++++++++++++++++++ .../resource_ibm_iam_policy_template.go | 40 ++++- ...esource_ibm_iam_policy_template_version.go | 29 ++- .../resource_ibm_iam_service_policy.go | 29 ++- .../resource_ibm_iam_service_policy_test.go | 165 ++++++++++++++++++ ...resource_ibm_iam_trusted_profile_policy.go | 29 ++- ...rce_ibm_iam_trusted_profile_policy_test.go | 165 ++++++++++++++++++ .../iampolicy/resource_ibm_iam_user_policy.go | 29 ++- .../resource_ibm_iam_user_policy_test.go | 156 +++++++++++++++++ .../d/iam_access_group_policy.html.markdown | 8 +- .../docs/d/iam_service_policy.html.markdown | 8 +- .../iam_trusted_profile_policy.html.markdown | 8 +- website/docs/d/iam_user_policy.html.markdown | 8 +- .../r/iam_access_group_policy.html.markdown | 77 +++++++- .../docs/r/iam_service_policy.html.markdown | 77 +++++++- .../iam_trusted_profile_policy.html.markdown | 77 +++++++- website/docs/r/iam_user_policy.html.markdown | 74 +++++++- 27 files changed, 1403 insertions(+), 96 deletions(-) diff --git a/go.mod b/go.mod index 005d813e9e..ee7a35fb38 100644 --- a/go.mod +++ b/go.mod @@ -24,7 +24,7 @@ require ( github.com/IBM/ibm-hpcs-uko-sdk v0.0.20-beta github.com/IBM/keyprotect-go-client v0.12.2 github.com/IBM/networking-go-sdk v0.42.2 - github.com/IBM/platform-services-go-sdk v0.52.0 + github.com/IBM/platform-services-go-sdk v0.53.1 github.com/IBM/project-go-sdk v0.0.99 github.com/IBM/push-notifications-go-sdk v0.0.0-20210310100607-5790b96c47f5 github.com/IBM/scc-go-sdk/v5 v5.1.3 diff --git a/go.sum b/go.sum index 58fc42d295..558bb22653 100644 --- a/go.sum +++ b/go.sum @@ -157,6 +157,10 @@ github.com/IBM/networking-go-sdk v0.42.2 h1:caqjx4jyFHi10Vlf3skHvlL6K3YJRVstsmCB github.com/IBM/networking-go-sdk v0.42.2/go.mod h1:lTUZwtUkMANMnrLHFIgRhHrkBfwASY/Iho1fabaPHxo= github.com/IBM/platform-services-go-sdk v0.52.0 h1:hbf640xE8T0Rwy2IUf5Pu4OATabGS4IDMnEInXUXs4o= github.com/IBM/platform-services-go-sdk v0.52.0/go.mod h1:6LxcUhIaSLP4SuQJXF9oLXBamSQogs5D9BcVwr4hmfU= +github.com/IBM/platform-services-go-sdk v0.52.1 h1:fUCtYMAekzsWO/ylZi31j6BpyJ1xKb39NG62zBXePbg= +github.com/IBM/platform-services-go-sdk v0.52.1/go.mod h1:6LxcUhIaSLP4SuQJXF9oLXBamSQogs5D9BcVwr4hmfU= +github.com/IBM/platform-services-go-sdk v0.53.1 h1:axpK4dzlf+C+KgHQZWXoKSUMoV2t6OrR5kGGumUEXrI= +github.com/IBM/platform-services-go-sdk v0.53.1/go.mod h1:CWSprvsCsXWvujmBzbtoJSmbRZS9FVV3O594b0t/GiM= github.com/IBM/project-go-sdk v0.0.99 h1:rQU/uQLW83OsAUfP/d8fFSIjp8ooEQIFjalYQD4i4aY= github.com/IBM/project-go-sdk v0.0.99/go.mod h1:lqe0M4cKvABI1iHR1b+KfasVcxQL6nl2VJ8eOyQs8Ig= github.com/IBM/push-notifications-go-sdk v0.0.0-20210310100607-5790b96c47f5 h1:NPUhkoOCRuv3OFWt19PmwjXGGTKlvmbuPg9fUrBUNe4= diff --git a/ibm/flex/structures.go b/ibm/flex/structures.go index 5f89a520a6..f4370020f9 100644 --- a/ibm/flex/structures.go +++ b/ibm/flex/structures.go @@ -1641,42 +1641,55 @@ func FlattenV2PolicyResourceTags(resource iampolicymanagementv1.V2PolicyResource return result } +func getConditionValues(v interface{}) []string { + var values []string + switch value := v.(type) { + case string: + values = append(values, value) + case []interface{}: + for _, v := range value { + values = append(values, fmt.Sprint(v)) + } + case nil: + default: + values = append(values, fmt.Sprintf("%v", value)) + } + return values +} + func FlattenRuleConditions(rule iampolicymanagementv1.V2PolicyRule) []map[string]interface{} { result := make([]map[string]interface{}, 0) if len(rule.Conditions) > 0 { - for _, c := range rule.Conditions { - var values []string - switch value := c.Value.(type) { - case string: - values = append(values, value) - case []interface{}: - for _, v := range value { - values = append(values, fmt.Sprint(v)) + for _, cIntf := range rule.Conditions { + c := cIntf.(*iampolicymanagementv1.NestedCondition) + if len(c.Conditions) > 0 { + nestedConditions := make([]map[string]interface{}, 0) + for _, nc := range c.Conditions { + values := getConditionValues(nc.Value) + nestedCondition := map[string]interface{}{ + "key": nc.Key, + "value": values, + "operator": nc.Operator, + } + nestedConditions = append(nestedConditions, nestedCondition) } - default: - values = append(values, value.(string)) - } - - condition := map[string]interface{}{ - "key": c.Key, - "value": values, - "operator": c.Operator, + condition := map[string]interface{}{ + "operator": c.Operator, + "conditions": nestedConditions, + } + result = append(result, condition) + } else { + values := getConditionValues(c.Value) + condition := map[string]interface{}{ + "key": c.Key, + "value": values, + "operator": c.Operator, + } + result = append(result, condition) } - result = append(result, condition) } } else { - var values []string - switch value := rule.Value.(type) { - case string: - values = append(values, value) - case []interface{}: - for _, v := range value { - values = append(values, fmt.Sprint(v)) - } - default: - values = append(values, value.(string)) - } - + values := getConditionValues(rule.Value) condition := map[string]interface{}{ "key": rule.Key, "value": values, @@ -3932,39 +3945,64 @@ func GenerateV2PolicyOptions(d *schema.ResourceData, meta interface{}) (iampolic return iampolicymanagementv1.CreateV2PolicyOptions{Control: policyControl, Resource: &policyResource}, nil } -func GeneratePolicyRule(d *schema.ResourceData, ruleConditions interface{}) *iampolicymanagementv1.V2PolicyRule { - conditions := []iampolicymanagementv1.RuleAttribute{} +func generatePolicyRuleCondition(c map[string]interface{}) iampolicymanagementv1.RuleAttribute { + key := c["key"].(string) + operator := c["operator"].(string) + r := iampolicymanagementv1.RuleAttribute{ + Key: &key, + Operator: &operator, + } - for _, condition := range ruleConditions.(*schema.Set).List() { - c := condition.(map[string]interface{}) - key := c["key"].(string) - operator := c["operator"].(string) - r := iampolicymanagementv1.RuleAttribute{ - Key: &key, - Operator: &operator, - } + interfaceValues := c["value"].([]interface{}) + values := make([]string, len(interfaceValues)) + for i, v := range interfaceValues { + values[i] = fmt.Sprint(v) + } - interfaceValues := c["value"].([]interface{}) - values := make([]string, len(interfaceValues)) - for i, v := range interfaceValues { - values[i] = fmt.Sprint(v) - } + if len(values) > 1 { + r.Value = &values + } else if operator == "stringExists" && values[0] == "true" { + r.Value = true + } else if operator == "stringExists" && values[0] == "false" { + r.Value = false + } else { + r.Value = &values[0] + } + return r +} - if len(values) > 1 { - r.Value = &values - } else if operator == "stringExists" && values[0] == "true" { - r.Value = true +func GeneratePolicyRule(d *schema.ResourceData, ruleConditions interface{}) *iampolicymanagementv1.V2PolicyRule { + conditions := []iampolicymanagementv1.NestedConditionIntf{} + + for _, ruleCondition := range ruleConditions.(*schema.Set).List() { + rc := ruleCondition.(map[string]interface{}) + con := rc["conditions"].([]interface{}) + if len(con) > 0 { + nestedConditions := []iampolicymanagementv1.RuleAttribute{} + for _, nc := range con { + nestedConditions = append(nestedConditions, generatePolicyRuleCondition(nc.(map[string]interface{}))) + } + nestedCondition := &iampolicymanagementv1.NestedCondition{} + nestedConditionsOperator := rc["operator"].(string) + nestedCondition.Operator = &nestedConditionsOperator + nestedCondition.Conditions = nestedConditions + conditions = append(conditions, nestedCondition) } else { - r.Value = &values[0] + ruleAttribute := generatePolicyRuleCondition(rc) + nestedCondition := &iampolicymanagementv1.NestedCondition{ + Key: ruleAttribute.Key, + Operator: ruleAttribute.Operator, + Value: ruleAttribute.Value, + } + conditions = append(conditions, nestedCondition) } - - conditions = append(conditions, r) } rule := new(iampolicymanagementv1.V2PolicyRule) if len(conditions) == 1 { - rule.Key = conditions[0].Key - rule.Operator = conditions[0].Operator - rule.Value = conditions[0].Value + ruleCondition := conditions[0].(*iampolicymanagementv1.NestedCondition) + rule.Key = ruleCondition.Key + rule.Operator = ruleCondition.Operator + rule.Value = ruleCondition.Value } else { ruleOperator := d.Get("rule_operator").(string) rule.Operator = &ruleOperator diff --git a/ibm/service/iampolicy/data_source_ibm_iam_access_group_policy.go b/ibm/service/iampolicy/data_source_ibm_iam_access_group_policy.go index a82b5632af..aa16b62557 100644 --- a/ibm/service/iampolicy/data_source_ibm_iam_access_group_policy.go +++ b/ibm/service/iampolicy/data_source_ibm_iam_access_group_policy.go @@ -145,7 +145,7 @@ func DataSourceIBMIAMAccessGroupPolicy() *schema.Resource { Schema: map[string]*schema.Schema{ "key": { Type: schema.TypeString, - Required: true, + Optional: true, Description: "Key of the condition", }, "operator": { @@ -155,10 +155,35 @@ func DataSourceIBMIAMAccessGroupPolicy() *schema.Resource { }, "value": { Type: schema.TypeList, - Required: true, + Optional: true, Elem: &schema.Schema{Type: schema.TypeString}, Description: "Value of the condition", }, + "conditions": { + Type: schema.TypeList, + Optional: true, + Description: "Additional Rule conditions enforced by the policy", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "key": { + Type: schema.TypeString, + Required: true, + Description: "Key of the condition", + }, + "operator": { + Type: schema.TypeString, + Required: true, + Description: "Operator of the condition", + }, + "value": { + Type: schema.TypeList, + Required: true, + Elem: &schema.Schema{Type: schema.TypeString}, + Description: "Value of the condition", + }, + }, + }, + }, }, }, }, diff --git a/ibm/service/iampolicy/data_source_ibm_iam_policy_template.go b/ibm/service/iampolicy/data_source_ibm_iam_policy_template.go index 1262ceb0a1..8062107d9a 100644 --- a/ibm/service/iampolicy/data_source_ibm_iam_policy_template.go +++ b/ibm/service/iampolicy/data_source_ibm_iam_policy_template.go @@ -137,7 +137,7 @@ func DataSourceIBMIAMPolicyTemplate() *schema.Resource { Schema: map[string]*schema.Schema{ "key": { Type: schema.TypeString, - Required: true, + Optional: true, Description: "Key of the condition", }, "operator": { @@ -147,10 +147,35 @@ func DataSourceIBMIAMPolicyTemplate() *schema.Resource { }, "value": { Type: schema.TypeList, - Required: true, + Optional: true, Elem: &schema.Schema{Type: schema.TypeString}, Description: "Value of the condition", }, + "conditions": { + Type: schema.TypeList, + Optional: true, + Description: "Additional Rule conditions enforced by the policy", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "key": { + Type: schema.TypeString, + Required: true, + Description: "Key of the condition", + }, + "operator": { + Type: schema.TypeString, + Required: true, + Description: "Operator of the condition", + }, + "value": { + Type: schema.TypeList, + Required: true, + Elem: &schema.Schema{Type: schema.TypeString}, + Description: "Value of the condition", + }, + }, + }, + }, }, }, }, diff --git a/ibm/service/iampolicy/data_source_ibm_iam_policy_template_version.go b/ibm/service/iampolicy/data_source_ibm_iam_policy_template_version.go index f6d87e3321..0b7ab07234 100644 --- a/ibm/service/iampolicy/data_source_ibm_iam_policy_template_version.go +++ b/ibm/service/iampolicy/data_source_ibm_iam_policy_template_version.go @@ -136,7 +136,7 @@ func DataSourceIBMIAMPolicyTemplateVersion() *schema.Resource { Schema: map[string]*schema.Schema{ "key": { Type: schema.TypeString, - Required: true, + Optional: true, Description: "Key of the condition", }, "operator": { @@ -146,10 +146,35 @@ func DataSourceIBMIAMPolicyTemplateVersion() *schema.Resource { }, "value": { Type: schema.TypeList, - Required: true, + Optional: true, Elem: &schema.Schema{Type: schema.TypeString}, Description: "Value of the condition", }, + "conditions": { + Type: schema.TypeList, + Optional: true, + Description: "Additional Rule conditions enforced by the policy", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "key": { + Type: schema.TypeString, + Required: true, + Description: "Key of the condition", + }, + "operator": { + Type: schema.TypeString, + Required: true, + Description: "Operator of the condition", + }, + "value": { + Type: schema.TypeList, + Required: true, + Elem: &schema.Schema{Type: schema.TypeString}, + Description: "Value of the condition", + }, + }, + }, + }, }, }, }, diff --git a/ibm/service/iampolicy/data_source_ibm_iam_service_policy.go b/ibm/service/iampolicy/data_source_ibm_iam_service_policy.go index 2f1f8d8f97..caf69db640 100644 --- a/ibm/service/iampolicy/data_source_ibm_iam_service_policy.go +++ b/ibm/service/iampolicy/data_source_ibm_iam_service_policy.go @@ -154,7 +154,7 @@ func DataSourceIBMIAMServicePolicy() *schema.Resource { Schema: map[string]*schema.Schema{ "key": { Type: schema.TypeString, - Required: true, + Optional: true, Description: "Key of the condition", }, "operator": { @@ -164,10 +164,35 @@ func DataSourceIBMIAMServicePolicy() *schema.Resource { }, "value": { Type: schema.TypeList, - Required: true, + Optional: true, Elem: &schema.Schema{Type: schema.TypeString}, Description: "Value of the condition", }, + "conditions": { + Type: schema.TypeList, + Optional: true, + Description: "Additional Rule conditions enforced by the policy", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "key": { + Type: schema.TypeString, + Required: true, + Description: "Key of the condition", + }, + "operator": { + Type: schema.TypeString, + Required: true, + Description: "Operator of the condition", + }, + "value": { + Type: schema.TypeList, + Required: true, + Elem: &schema.Schema{Type: schema.TypeString}, + Description: "Value of the condition", + }, + }, + }, + }, }, }, }, diff --git a/ibm/service/iampolicy/data_source_ibm_iam_trusted_profile_policy.go b/ibm/service/iampolicy/data_source_ibm_iam_trusted_profile_policy.go index ae0b425627..328eab1d08 100644 --- a/ibm/service/iampolicy/data_source_ibm_iam_trusted_profile_policy.go +++ b/ibm/service/iampolicy/data_source_ibm_iam_trusted_profile_policy.go @@ -154,7 +154,7 @@ func DataSourceIBMIAMTrustedProfilePolicy() *schema.Resource { Schema: map[string]*schema.Schema{ "key": { Type: schema.TypeString, - Required: true, + Optional: true, Description: "Key of the condition", }, "operator": { @@ -164,10 +164,35 @@ func DataSourceIBMIAMTrustedProfilePolicy() *schema.Resource { }, "value": { Type: schema.TypeList, - Required: true, + Optional: true, Elem: &schema.Schema{Type: schema.TypeString}, Description: "Value of the condition", }, + "conditions": { + Type: schema.TypeList, + Optional: true, + Description: "Additional Rule conditions enforced by the policy", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "key": { + Type: schema.TypeString, + Required: true, + Description: "Key of the condition", + }, + "operator": { + Type: schema.TypeString, + Required: true, + Description: "Operator of the condition", + }, + "value": { + Type: schema.TypeList, + Required: true, + Elem: &schema.Schema{Type: schema.TypeString}, + Description: "Value of the condition", + }, + }, + }, + }, }, }, }, diff --git a/ibm/service/iampolicy/data_source_ibm_iam_user_policy.go b/ibm/service/iampolicy/data_source_ibm_iam_user_policy.go index 4cf9652fe8..1f13f5638e 100644 --- a/ibm/service/iampolicy/data_source_ibm_iam_user_policy.go +++ b/ibm/service/iampolicy/data_source_ibm_iam_user_policy.go @@ -142,7 +142,7 @@ func DataSourceIBMIAMUserPolicy() *schema.Resource { Schema: map[string]*schema.Schema{ "key": { Type: schema.TypeString, - Required: true, + Optional: true, Description: "Key of the condition", }, "operator": { @@ -152,10 +152,35 @@ func DataSourceIBMIAMUserPolicy() *schema.Resource { }, "value": { Type: schema.TypeList, - Required: true, + Optional: true, Elem: &schema.Schema{Type: schema.TypeString}, Description: "Value of the condition", }, + "conditions": { + Type: schema.TypeList, + Optional: true, + Description: "Additional Rule conditions enforced by the policy", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "key": { + Type: schema.TypeString, + Required: true, + Description: "Key of the condition", + }, + "operator": { + Type: schema.TypeString, + Required: true, + Description: "Operator of the condition", + }, + "value": { + Type: schema.TypeList, + Required: true, + Elem: &schema.Schema{Type: schema.TypeString}, + Description: "Value of the condition", + }, + }, + }, + }, }, }, }, diff --git a/ibm/service/iampolicy/resource_ibm_iam_access_group_policy.go b/ibm/service/iampolicy/resource_ibm_iam_access_group_policy.go index 2c9ae69836..5bfcaf2be9 100644 --- a/ibm/service/iampolicy/resource_ibm_iam_access_group_policy.go +++ b/ibm/service/iampolicy/resource_ibm_iam_access_group_policy.go @@ -211,7 +211,7 @@ func ResourceIBMIAMAccessGroupPolicy() *schema.Resource { Schema: map[string]*schema.Schema{ "key": { Type: schema.TypeString, - Required: true, + Optional: true, Description: "Key of the condition", }, "operator": { @@ -221,10 +221,35 @@ func ResourceIBMIAMAccessGroupPolicy() *schema.Resource { }, "value": { Type: schema.TypeList, - Required: true, + Optional: true, Elem: &schema.Schema{Type: schema.TypeString}, Description: "Value of the condition", }, + "conditions": { + Type: schema.TypeList, + Optional: true, + Description: "Additional Rule conditions enforced by the policy", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "key": { + Type: schema.TypeString, + Required: true, + Description: "Key of the condition", + }, + "operator": { + Type: schema.TypeString, + Required: true, + Description: "Operator of the condition", + }, + "value": { + Type: schema.TypeList, + Required: true, + Elem: &schema.Schema{Type: schema.TypeString}, + Description: "Value of the condition", + }, + }, + }, + }, }, }, }, diff --git a/ibm/service/iampolicy/resource_ibm_iam_access_group_policy_test.go b/ibm/service/iampolicy/resource_ibm_iam_access_group_policy_test.go index 3a17f77b47..2e3d5e70e9 100644 --- a/ibm/service/iampolicy/resource_ibm_iam_access_group_policy_test.go +++ b/ibm/service/iampolicy/resource_ibm_iam_access_group_policy_test.go @@ -513,6 +513,37 @@ func TestAccIBMIAMAccessGroupPolicy_With_ServiceGroupID(t *testing.T) { }) } +func TestAccIBMIAMAccessGroupPolicy_With_Attribute_Based_Condition(t *testing.T) { + var conf iampolicymanagementv1.V2PolicyTemplateMetaData + name := fmt.Sprintf("terraform_%d", acctest.RandIntRange(10, 100)) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIBMIAMAccessGroupPolicyDestroy, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMIAMAccessGroupPolicyAttributeBasedCondition(name), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMIAMAccessGroupPolicyExists("ibm_iam_access_group_policy.policy", conf), + resource.TestCheckResourceAttr("ibm_iam_access_group.accgrp", "name", name), + resource.TestCheckResourceAttr("ibm_iam_access_group_policy.policy", "roles.#", "1"), + resource.TestCheckResourceAttr("ibm_iam_access_group_policy.policy", "pattern", "attribute-based-condition:resource:literal-and-wildcard"), + resource.TestCheckResourceAttr("ibm_iam_access_group_policy.policy", "description", "IAM Access Group Policy Attribute Based Condition Creation for test scenario"), + ), + }, + { + Config: testAccCheckIBMIAMAccessGroupPolicyUpdateAttributeBasedCondition(name), + Check: resource.ComposeAggregateTestCheckFunc( + resource.TestCheckResourceAttr("ibm_iam_access_group.accgrp", "name", name), + resource.TestCheckResourceAttr("ibm_iam_access_group_policy.policy", "pattern", "attribute-based-condition:resource:literal-and-wildcard"), + resource.TestCheckResourceAttr("ibm_iam_access_group_policy.policy", "description", "IAM Access Group Policy Attribute Based Condition Update for test scenario"), + ), + }, + }, + }) +} + func testAccCheckIBMIAMAccessGroupPolicyDestroy(s *terraform.State) error { iamPolicyManagementClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).IAMPolicyManagementV1API() if err != nil { @@ -1126,3 +1157,137 @@ func testAccCheckIBMIAMAccessGroupPolicyUpdateWithServiceGroupId(name string) st } `, name) } + +func testAccCheckIBMIAMAccessGroupPolicyAttributeBasedCondition(name string) string { + return fmt.Sprintf(` + resource "ibm_iam_access_group" "accgrp" { + name = "%s" + } + + resource "ibm_iam_access_group_policy" "policy" { + access_group_id = ibm_iam_access_group.accgrp.id + roles = ["Writer"] + resource_attributes { + value = "cloud-object-storage" + operator = "stringEquals" + name = "serviceName" + } + resource_attributes { + value = "cos-instance" + operator = "stringEquals" + name = "serviceInstance" + } + resource_attributes { + value = "bucket" + operator = "stringEquals" + name = "resourceType" + } + resource_attributes { + value = "fgac-tf-test" + operator = "stringEquals" + name = "resource" + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringEqualsAnyOf" + value = ["/",""] + } + } + rule_conditions { + key = "{{resource.attributes.path}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringExists" + value = ["false"] + } + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringExists" + value = ["false"] + } + } + rule_operator = "or" + pattern = "attribute-based-condition:resource:literal-and-wildcard" + description = "IAM Access Group Policy Attribute Based Condition Creation for test scenario" + } + `, name) +} + +func testAccCheckIBMIAMAccessGroupPolicyUpdateAttributeBasedCondition(name string) string { + return fmt.Sprintf(` + resource "ibm_iam_access_group" "accgrp" { + name = "%s" + } + + resource "ibm_iam_access_group_policy" "policy" { + access_group_id = ibm_iam_access_group.accgrp.id + roles = ["Reader", "Writer"] + resource_attributes { + value = "cloud-object-storage" + operator = "stringEquals" + name = "serviceName" + } + resource_attributes { + value = "cos-instance" + operator = "stringEquals" + name = "serviceInstance" + } + resource_attributes { + value = "bucket" + operator = "stringEquals" + name = "resourceType" + } + resource_attributes { + value = "fgac-tf-test" + operator = "stringEquals" + name = "resource" + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringEqualsAnyOf" + value = ["/",""] + } + } + rule_conditions { + key = "{{resource.attributes.path}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringExists" + value = ["false"] + } + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringExists" + value = ["false"] + } + } + rule_operator = "or" + pattern = "attribute-based-condition:resource:literal-and-wildcard" + description = "IAM Access Group Policy Attribute Based Condition Update for test scenario" + } + `, name) +} diff --git a/ibm/service/iampolicy/resource_ibm_iam_policy_template.go b/ibm/service/iampolicy/resource_ibm_iam_policy_template.go index 62ec4e8712..a2c5018389 100644 --- a/ibm/service/iampolicy/resource_ibm_iam_policy_template.go +++ b/ibm/service/iampolicy/resource_ibm_iam_policy_template.go @@ -125,7 +125,7 @@ func ResourceIBMIAMPolicyTemplate() *schema.Resource { Schema: map[string]*schema.Schema{ "key": { Type: schema.TypeString, - Required: true, + Optional: true, Description: "Key of the condition", }, "operator": { @@ -135,10 +135,35 @@ func ResourceIBMIAMPolicyTemplate() *schema.Resource { }, "value": { Type: schema.TypeList, - Required: true, + Optional: true, Elem: &schema.Schema{Type: schema.TypeString}, Description: "Value of the condition", }, + "conditions": { + Type: schema.TypeList, + Optional: true, + Description: "Additional Rule conditions enforced by the policy", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "key": { + Type: schema.TypeString, + Required: true, + Description: "Key of the condition", + }, + "operator": { + Type: schema.TypeString, + Required: true, + Description: "Operator of the condition", + }, + "value": { + Type: schema.TypeList, + Required: true, + Elem: &schema.Schema{Type: schema.TypeString}, + Description: "Value of the condition", + }, + }, + }, + }, }, }, }, @@ -268,12 +293,12 @@ func generateTemplatePolicy(modelMap map[string]interface{}, iamPolicyManagement } if modelMap["rule_conditions"] != nil && len(modelMap["rule_conditions"].(*schema.Set).List()) > 0 { - conditions := []iampolicymanagementv1.RuleAttribute{} + conditions := []iampolicymanagementv1.NestedConditionIntf{} for _, condition := range modelMap["rule_conditions"].(*schema.Set).List() { c := condition.(map[string]interface{}) key := c["key"].(string) operator := c["operator"].(string) - r := iampolicymanagementv1.RuleAttribute{ + r := &iampolicymanagementv1.NestedCondition{ Key: &key, Operator: &operator, } @@ -296,9 +321,10 @@ func generateTemplatePolicy(modelMap map[string]interface{}, iamPolicyManagement } rule := new(iampolicymanagementv1.V2PolicyRule) if len(conditions) == 1 { - rule.Key = conditions[0].Key - rule.Operator = conditions[0].Operator - rule.Value = conditions[0].Value + ruleCondition := conditions[0].(*iampolicymanagementv1.NestedCondition) + rule.Key = ruleCondition.Key + rule.Operator = ruleCondition.Operator + rule.Value = ruleCondition.Value } else { ruleOperator := modelMap["rule_operator"].(string) rule.Operator = &ruleOperator diff --git a/ibm/service/iampolicy/resource_ibm_iam_policy_template_version.go b/ibm/service/iampolicy/resource_ibm_iam_policy_template_version.go index 1f34e5d8f5..819ab07014 100644 --- a/ibm/service/iampolicy/resource_ibm_iam_policy_template_version.go +++ b/ibm/service/iampolicy/resource_ibm_iam_policy_template_version.go @@ -123,7 +123,7 @@ func ResourceIBMIAMPolicyTemplateVersion() *schema.Resource { Schema: map[string]*schema.Schema{ "key": { Type: schema.TypeString, - Required: true, + Optional: true, Description: "Key of the condition", }, "operator": { @@ -133,10 +133,35 @@ func ResourceIBMIAMPolicyTemplateVersion() *schema.Resource { }, "value": { Type: schema.TypeList, - Required: true, + Optional: true, Elem: &schema.Schema{Type: schema.TypeString}, Description: "Value of the condition", }, + "conditions": { + Type: schema.TypeList, + Optional: true, + Description: "Additional Rule conditions enforced by the policy", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "key": { + Type: schema.TypeString, + Required: true, + Description: "Key of the condition", + }, + "operator": { + Type: schema.TypeString, + Required: true, + Description: "Operator of the condition", + }, + "value": { + Type: schema.TypeList, + Required: true, + Elem: &schema.Schema{Type: schema.TypeString}, + Description: "Value of the condition", + }, + }, + }, + }, }, }, }, diff --git a/ibm/service/iampolicy/resource_ibm_iam_service_policy.go b/ibm/service/iampolicy/resource_ibm_iam_service_policy.go index cb428e6c40..9b14ed0696 100644 --- a/ibm/service/iampolicy/resource_ibm_iam_service_policy.go +++ b/ibm/service/iampolicy/resource_ibm_iam_service_policy.go @@ -214,7 +214,7 @@ func ResourceIBMIAMServicePolicy() *schema.Resource { Schema: map[string]*schema.Schema{ "key": { Type: schema.TypeString, - Required: true, + Optional: true, Description: "Key of the condition", }, "operator": { @@ -224,10 +224,35 @@ func ResourceIBMIAMServicePolicy() *schema.Resource { }, "value": { Type: schema.TypeList, - Required: true, + Optional: true, Elem: &schema.Schema{Type: schema.TypeString}, Description: "Value of the condition", }, + "conditions": { + Type: schema.TypeList, + Optional: true, + Description: "Additional Rule conditions enforced by the policy", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "key": { + Type: schema.TypeString, + Required: true, + Description: "Key of the condition", + }, + "operator": { + Type: schema.TypeString, + Required: true, + Description: "Operator of the condition", + }, + "value": { + Type: schema.TypeList, + Required: true, + Elem: &schema.Schema{Type: schema.TypeString}, + Description: "Value of the condition", + }, + }, + }, + }, }, }, }, diff --git a/ibm/service/iampolicy/resource_ibm_iam_service_policy_test.go b/ibm/service/iampolicy/resource_ibm_iam_service_policy_test.go index 27d18b638e..93bdf6ddb6 100644 --- a/ibm/service/iampolicy/resource_ibm_iam_service_policy_test.go +++ b/ibm/service/iampolicy/resource_ibm_iam_service_policy_test.go @@ -474,6 +474,37 @@ func TestAccIBMIAMServicePolicy_With_ServiceGroupID(t *testing.T) { }) } +func TestAccIBMIAMServicePolicy_With_Attribute_Based_Condition(t *testing.T) { + var conf iampolicymanagementv1.V2PolicyTemplateMetaData + name := fmt.Sprintf("terraform_%d", acctest.RandIntRange(10, 100)) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIBMIAMServicePolicyDestroy, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMIAMServicePolicyAttributeBasedCondition(name), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMIAMServicePolicyExists("ibm_iam_service_policy.policy", conf), + resource.TestCheckResourceAttr("ibm_iam_service_id.serviceID", "name", name), + resource.TestCheckResourceAttr("ibm_iam_service_policy.policy", "roles.#", "1"), + resource.TestCheckResourceAttr("ibm_iam_service_policy.policy", "pattern", "attribute-based-condition:resource:literal-and-wildcard"), + resource.TestCheckResourceAttr("ibm_iam_service_policy.policy", "description", "IAM Service Policy Attribute Based Condition Creation for test scenario"), + ), + }, + { + Config: testAccCheckIBMIAMServicePolicyUpdateAttributeBasedCondition(name), + Check: resource.ComposeAggregateTestCheckFunc( + resource.TestCheckResourceAttr("ibm_iam_service_id.serviceID", "name", name), + resource.TestCheckResourceAttr("ibm_iam_service_policy.policy", "pattern", "attribute-based-condition:resource:literal-and-wildcard"), + resource.TestCheckResourceAttr("ibm_iam_service_policy.policy", "description", "IAM Service Policy Attribute Based Condition Update for test scenario"), + ), + }, + }, + }) +} + func testAccCheckIBMIAMServicePolicyDestroy(s *terraform.State) error { rsContClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).IAMPolicyManagementV1API() if err != nil { @@ -1073,3 +1104,137 @@ func testAccCheckIBMIAMServiceUpdatePolicyWithServiceGroupId(name string) string } `, name) } + +func testAccCheckIBMIAMServicePolicyAttributeBasedCondition(name string) string { + return fmt.Sprintf(` + resource "ibm_iam_service_id" "serviceID" { + name = "%s" + } + + resource "ibm_iam_service_policy" "policy" { + iam_service_id = ibm_iam_service_id.serviceID.id + roles = ["Writer"] + resource_attributes { + value = "cloud-object-storage" + operator = "stringEquals" + name = "serviceName" + } + resource_attributes { + value = "cos-instance" + operator = "stringEquals" + name = "serviceInstance" + } + resource_attributes { + value = "bucket" + operator = "stringEquals" + name = "resourceType" + } + resource_attributes { + value = "fgac-tf-test" + operator = "stringEquals" + name = "resource" + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringEqualsAnyOf" + value = ["/",""] + } + } + rule_conditions { + key = "{{resource.attributes.path}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringExists" + value = ["false"] + } + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringExists" + value = ["false"] + } + } + rule_operator = "or" + pattern = "attribute-based-condition:resource:literal-and-wildcard" + description = "IAM Service Policy Attribute Based Condition Creation for test scenario" + } + `, name) +} + +func testAccCheckIBMIAMServicePolicyUpdateAttributeBasedCondition(name string) string { + return fmt.Sprintf(` + resource "ibm_iam_service_id" "serviceID" { + name = "%s" + } + + resource "ibm_iam_service_policy" "policy" { + iam_service_id = ibm_iam_service_id.serviceID.id + roles = ["Reader", "Writer"] + resource_attributes { + value = "cloud-object-storage" + operator = "stringEquals" + name = "serviceName" + } + resource_attributes { + value = "cos-instance" + operator = "stringEquals" + name = "serviceInstance" + } + resource_attributes { + value = "bucket" + operator = "stringEquals" + name = "resourceType" + } + resource_attributes { + value = "fgac-tf-test" + operator = "stringEquals" + name = "resource" + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringEqualsAnyOf" + value = ["/",""] + } + } + rule_conditions { + key = "{{resource.attributes.path}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringExists" + value = ["false"] + } + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringExists" + value = ["false"] + } + } + rule_operator = "or" + pattern = "attribute-based-condition:resource:literal-and-wildcard" + description = "IAM Service Policy Attribute Based Condition Update for test scenario" + } + `, name) +} diff --git a/ibm/service/iampolicy/resource_ibm_iam_trusted_profile_policy.go b/ibm/service/iampolicy/resource_ibm_iam_trusted_profile_policy.go index 16fe0f9499..f3631f38ae 100644 --- a/ibm/service/iampolicy/resource_ibm_iam_trusted_profile_policy.go +++ b/ibm/service/iampolicy/resource_ibm_iam_trusted_profile_policy.go @@ -214,7 +214,7 @@ func ResourceIBMIAMTrustedProfilePolicy() *schema.Resource { Schema: map[string]*schema.Schema{ "key": { Type: schema.TypeString, - Required: true, + Optional: true, Description: "Key of the condition", }, "operator": { @@ -224,10 +224,35 @@ func ResourceIBMIAMTrustedProfilePolicy() *schema.Resource { }, "value": { Type: schema.TypeList, - Required: true, + Optional: true, Elem: &schema.Schema{Type: schema.TypeString}, Description: "Value of the condition", }, + "conditions": { + Type: schema.TypeList, + Optional: true, + Description: "Additional Rule conditions enforced by the policy", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "key": { + Type: schema.TypeString, + Required: true, + Description: "Key of the condition", + }, + "operator": { + Type: schema.TypeString, + Required: true, + Description: "Operator of the condition", + }, + "value": { + Type: schema.TypeList, + Required: true, + Elem: &schema.Schema{Type: schema.TypeString}, + Description: "Value of the condition", + }, + }, + }, + }, }, }, }, diff --git a/ibm/service/iampolicy/resource_ibm_iam_trusted_profile_policy_test.go b/ibm/service/iampolicy/resource_ibm_iam_trusted_profile_policy_test.go index 662eb71ee4..ba0d80e5f7 100644 --- a/ibm/service/iampolicy/resource_ibm_iam_trusted_profile_policy_test.go +++ b/ibm/service/iampolicy/resource_ibm_iam_trusted_profile_policy_test.go @@ -465,6 +465,37 @@ func TestAccIBMIAMTrustedProfilePolicy_With_ServiceGroupID(t *testing.T) { }) } +func TestAccIBMIAMTrustedProfilePolicy_With_Attribute_Based_Condition(t *testing.T) { + var conf iampolicymanagementv1.V2PolicyTemplateMetaData + name := fmt.Sprintf("terraform_%d", acctest.RandIntRange(10, 100)) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIBMIAMTrustedProfilePolicyDestroy, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMIAMTrustedProfilePolicyAttributeBasedCondition(name), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMIAMTrustedProfilePolicyExists("ibm_iam_trusted_profile_policy.policy", conf), + resource.TestCheckResourceAttr("ibm_iam_trusted_profile.profileID", "name", name), + resource.TestCheckResourceAttr("ibm_iam_trusted_profile_policy.policy", "roles.#", "1"), + resource.TestCheckResourceAttr("ibm_iam_trusted_profile_policy.policy", "pattern", "attribute-based-condition:resource:literal-and-wildcard"), + resource.TestCheckResourceAttr("ibm_iam_trusted_profile_policy.policy", "description", "IAM Trusted Profile Policy Attribute Based Condition Creation for test scenario"), + ), + }, + { + Config: testAccCheckIBMIAMTrustedProfilePolicyUpdateAttributeBasedCondition(name), + Check: resource.ComposeAggregateTestCheckFunc( + resource.TestCheckResourceAttr("ibm_iam_trusted_profile.profileID", "name", name), + resource.TestCheckResourceAttr("ibm_iam_trusted_profile_policy.policy", "pattern", "attribute-based-condition:resource:literal-and-wildcard"), + resource.TestCheckResourceAttr("ibm_iam_trusted_profile_policy.policy", "description", "IAM Trusted Profile Policy Attribute Based Condition Update for test scenario"), + ), + }, + }, + }) +} + func testAccCheckIBMIAMTrustedProfilePolicyDestroy(s *terraform.State) error { rsContClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).IAMPolicyManagementV1API() if err != nil { @@ -1033,3 +1064,137 @@ func testAccCheckIBMIAMTrustedProfilePolicyUpdateWithServiceGroupId(name string) } `, name) } + +func testAccCheckIBMIAMTrustedProfilePolicyAttributeBasedCondition(name string) string { + return fmt.Sprintf(` + resource "ibm_iam_trusted_profile" "profileID" { + name = "%s" + } + + resource "ibm_iam_trusted_profile_policy" "policy" { + profile_id = ibm_iam_trusted_profile.profileID.id + roles = ["Writer"] + resource_attributes { + value = "cloud-object-storage" + operator = "stringEquals" + name = "serviceName" + } + resource_attributes { + value = "cos-instance" + operator = "stringEquals" + name = "serviceInstance" + } + resource_attributes { + value = "bucket" + operator = "stringEquals" + name = "resourceType" + } + resource_attributes { + value = "fgac-tf-test" + operator = "stringEquals" + name = "resource" + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringEqualsAnyOf" + value = ["/",""] + } + } + rule_conditions { + key = "{{resource.attributes.path}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringExists" + value = ["false"] + } + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringExists" + value = ["false"] + } + } + rule_operator = "or" + pattern = "attribute-based-condition:resource:literal-and-wildcard" + description = "IAM Trusted Profile Policy Attribute Based Condition Creation for test scenario" + } + `, name) +} + +func testAccCheckIBMIAMTrustedProfilePolicyUpdateAttributeBasedCondition(name string) string { + return fmt.Sprintf(` + resource "ibm_iam_trusted_profile" "profileID" { + name = "%s" + } + + resource "ibm_iam_trusted_profile_policy" "policy" { + profile_id = ibm_iam_trusted_profile.profileID.id + roles = ["Reader", "Writer"] + resource_attributes { + value = "cloud-object-storage" + operator = "stringEquals" + name = "serviceName" + } + resource_attributes { + value = "cos-instance" + operator = "stringEquals" + name = "serviceInstance" + } + resource_attributes { + value = "bucket" + operator = "stringEquals" + name = "resourceType" + } + resource_attributes { + value = "fgac-tf-test" + operator = "stringEquals" + name = "resource" + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringEqualsAnyOf" + value = ["/",""] + } + } + rule_conditions { + key = "{{resource.attributes.path}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringExists" + value = ["false"] + } + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringExists" + value = ["false"] + } + } + rule_operator = "or" + pattern = "attribute-based-condition:resource:literal-and-wildcard" + description = "IAM Trusted Profile Policy Attribute Based Condition Update for test scenario" + } + `, name) +} diff --git a/ibm/service/iampolicy/resource_ibm_iam_user_policy.go b/ibm/service/iampolicy/resource_ibm_iam_user_policy.go index a30e0ab2bf..c3c3529ada 100644 --- a/ibm/service/iampolicy/resource_ibm_iam_user_policy.go +++ b/ibm/service/iampolicy/resource_ibm_iam_user_policy.go @@ -202,7 +202,7 @@ func ResourceIBMIAMUserPolicy() *schema.Resource { Schema: map[string]*schema.Schema{ "key": { Type: schema.TypeString, - Required: true, + Optional: true, Description: "Key of the condition", }, "operator": { @@ -212,10 +212,35 @@ func ResourceIBMIAMUserPolicy() *schema.Resource { }, "value": { Type: schema.TypeList, - Required: true, + Optional: true, Elem: &schema.Schema{Type: schema.TypeString}, Description: "Value of the condition", }, + "conditions": { + Type: schema.TypeList, + Optional: true, + Description: "Additional Rule conditions enforced by the policy", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "key": { + Type: schema.TypeString, + Required: true, + Description: "Key of the condition", + }, + "operator": { + Type: schema.TypeString, + Required: true, + Description: "Operator of the condition", + }, + "value": { + Type: schema.TypeList, + Required: true, + Elem: &schema.Schema{Type: schema.TypeString}, + Description: "Value of the condition", + }, + }, + }, + }, }, }, }, diff --git a/ibm/service/iampolicy/resource_ibm_iam_user_policy_test.go b/ibm/service/iampolicy/resource_ibm_iam_user_policy_test.go index f3f6acb1d3..46be011f8e 100644 --- a/ibm/service/iampolicy/resource_ibm_iam_user_policy_test.go +++ b/ibm/service/iampolicy/resource_ibm_iam_user_policy_test.go @@ -205,6 +205,7 @@ func TestAccIBMIAMUserPolicy_With_Resource_Attributes(t *testing.T) { }, }) } + func TestAccIBMIAMUserPolicy_account_management(t *testing.T) { var conf iampolicymanagementv1.V2PolicyTemplateMetaData name := fmt.Sprintf("terraform_%d", acctest.RandIntRange(10, 100)) @@ -479,6 +480,34 @@ func TestAccIBMIAMUSerPolicy_With_ServiceGroupID(t *testing.T) { }) } +func TestAccIBMIAMUserPolicy_With_Attribute_Based_Condition(t *testing.T) { + var conf iampolicymanagementv1.V2PolicyTemplateMetaData + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIBMIAMUserPolicyDestroy, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMIAMUserPolicyAttributeBasedCondition(), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIBMIAMUserPolicyExists("ibm_iam_user_policy.policy", conf), + resource.TestCheckResourceAttr("ibm_iam_user_policy.policy", "roles.#", "1"), + resource.TestCheckResourceAttr("ibm_iam_user_policy.policy", "pattern", "attribute-based-condition:resource:literal-and-wildcard"), + resource.TestCheckResourceAttr("ibm_iam_user_policy.policy", "description", "IAM User Policy Attribute Based Condition Creation for test scenario"), + ), + }, + { + Config: testAccCheckIBMIAMUserPolicyUpdateAttributeBasedCondition(), + Check: resource.ComposeAggregateTestCheckFunc( + resource.TestCheckResourceAttr("ibm_iam_user_policy.policy", "pattern", "attribute-based-condition:resource:literal-and-wildcard"), + resource.TestCheckResourceAttr("ibm_iam_user_policy.policy", "description", "IAM User Policy Attribute Based Condition Update for test scenario"), + ), + }, + }, + }) +} + func testAccCheckIBMIAMUserPolicyDestroy(s *terraform.State) error { rsContClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).IAMPolicyManagementV1API() if err != nil { @@ -1008,3 +1037,130 @@ func testAccCheckIBMIAMUserPolicyWithServiceGroupId(name string) string { } `, acc.IAMUser) } + +func testAccCheckIBMIAMUserPolicyAttributeBasedCondition() string { + return fmt.Sprintf(` + + resource "ibm_iam_user_policy" "policy" { + ibm_id = "%s" + roles = ["Writer"] + resource_attributes { + value = "cloud-object-storage" + operator = "stringEquals" + name = "serviceName" + } + resource_attributes { + value = "cos-instance" + operator = "stringEquals" + name = "serviceInstance" + } + resource_attributes { + value = "bucket" + operator = "stringEquals" + name = "resourceType" + } + resource_attributes { + value = "fgac-tf-test" + operator = "stringEquals" + name = "resource" + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringEqualsAnyOf" + value = ["/",""] + } + } + rule_conditions { + key = "{{resource.attributes.path}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringExists" + value = ["false"] + } + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringExists" + value = ["false"] + } + } + rule_operator = "or" + pattern = "attribute-based-condition:resource:literal-and-wildcard" + description = "IAM User Policy Attribute Based Condition Creation for test scenario" + } + `, acc.IAMUser) +} + +func testAccCheckIBMIAMUserPolicyUpdateAttributeBasedCondition() string { + return fmt.Sprintf(` + resource "ibm_iam_user_policy" "policy" { + ibm_id = "%s" + roles = ["Reader", "Writer"] + resource_attributes { + value = "cloud-object-storage" + operator = "stringEquals" + name = "serviceName" + } + resource_attributes { + value = "cos-instance" + operator = "stringEquals" + name = "serviceInstance" + } + resource_attributes { + value = "bucket" + operator = "stringEquals" + name = "resourceType" + } + resource_attributes { + value = "fgac-tf-test" + operator = "stringEquals" + name = "resource" + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringEqualsAnyOf" + value = ["/",""] + } + } + rule_conditions { + key = "{{resource.attributes.path}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringExists" + value = ["false"] + } + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringExists" + value = ["false"] + } + } + rule_operator = "or" + pattern = "attribute-based-condition:resource:literal-and-wildcard" + description = "IAM User Policy Attribute Based Condition Update for test scenario" + } + `, acc.IAMUser) +} diff --git a/website/docs/d/iam_access_group_policy.html.markdown b/website/docs/d/iam_access_group_policy.html.markdown index cc6c9c6308..147f408b13 100644 --- a/website/docs/d/iam_access_group_policy.html.markdown +++ b/website/docs/d/iam_access_group_policy.html.markdown @@ -76,7 +76,13 @@ In addition to all argument reference list, you can access the following attribu Nested schema for `rule_conditions`: - `key` - (String) The key of a rule condition. - `operator` - (String) The operator of a rule condition. - - `value` - (List of Strings) The valjue of a rule condition. + - `value` - (List of Strings) The value of a rule condition. + - `conditions` - (List of Objects) A nested block describing additional rule conditions of this policy. + + Nested schema for `conditions`: + - `key` - (String) The key of a condition. + - `operator` - (String) The operator of a condition. + - `value` - (List of Strings) The value of a condition. - `rule_operator` - (String) The operator used to evaluate multiple rule conditions, e.g., all must be satisfied with `and`. - `pattern` - (String) The pattern that the rule follows, e.g., `time-based-conditions:weekly:all-day`. diff --git a/website/docs/d/iam_service_policy.html.markdown b/website/docs/d/iam_service_policy.html.markdown index d3b66757bc..ce36e8d94a 100644 --- a/website/docs/d/iam_service_policy.html.markdown +++ b/website/docs/d/iam_service_policy.html.markdown @@ -74,7 +74,13 @@ In addition to all argument reference list, you can access the following attribu Nested schema for `rule_conditions`: - `key` - (String) The key of a rule condition. - `operator` - (String) The operator of a rule condition. - - `value` - (List of Strings) The valjue of a rule condition. + - `value` - (List of Strings) The value of a rule condition. + - `conditions` - (List of Objects) A nested block describing additional rule conditions of this policy. + + Nested schema for `conditions`: + - `key` - (String) The key of a condition. + - `operator` - (String) The operator of a condition. + - `value` - (List of Strings) The value of a condition. - `rule_operator` - (String) The operator used to evaluate multiple rule conditions, e.g., all must be satisfied with `and`. - `pattern` - (String) The pattern that the rule follows, e.g., `time-based-conditions:weekly:all-day`. diff --git a/website/docs/d/iam_trusted_profile_policy.html.markdown b/website/docs/d/iam_trusted_profile_policy.html.markdown index d6cf4346b1..0a1c93d222 100644 --- a/website/docs/d/iam_trusted_profile_policy.html.markdown +++ b/website/docs/d/iam_trusted_profile_policy.html.markdown @@ -75,7 +75,13 @@ In addition to all argument reference list, you can access the following attribu Nested schema for `rule_conditions`: - `key` - (String) The key of a rule condition. - `operator` - (String) The operator of a rule condition. - - `value` - (List of Strings) The valjue of a rule condition. + - `value` - (List of Strings) The value of a rule condition. + - `conditions` - (List of Objects) A nested block describing additional rule conditions of this policy. + + Nested schema for `conditions`: + - `key` - (String) The key of a condition. + - `operator` - (String) The operator of a condition. + - `value` - (List of Strings) The value of a condition. - `rule_operator` - (String) The operator used to evaluate multiple rule conditions, e.g., all must be satisfied with `and`. - `pattern` - (String) The pattern that the rule follows, e.g., `time-based-conditions:weekly:all-day`. diff --git a/website/docs/d/iam_user_policy.html.markdown b/website/docs/d/iam_user_policy.html.markdown index 8a9cfb2a36..78110fcdbc 100644 --- a/website/docs/d/iam_user_policy.html.markdown +++ b/website/docs/d/iam_user_policy.html.markdown @@ -72,7 +72,13 @@ In addition to all argument reference list, you can access the following attribu Nested schema for `rule_conditions`: - `key` - (String) The key of a rule condition. - `operator` - (String) The operator of a rule condition. - - `value` - (List of Strings) The valjue of a rule condition. + - `value` - (List of Strings) The value of a rule condition. + - `conditions` - (List of Objects) A nested block describing additional rule conditions of this policy. + + Nested schema for `conditions`: + - `key` - (String) The key of a condition. + - `operator` - (String) The operator of a condition. + - `value` - (List of Strings) The value of a condition. - `rule_operator` - (String) The operator used to evaluate multiple rule conditions, e.g., all must be satisfied with `and`. - `pattern` - (String) The pattern that the rule follows, e.g., `time-based-conditions:weekly:all-day`. diff --git a/website/docs/r/iam_access_group_policy.html.markdown b/website/docs/r/iam_access_group_policy.html.markdown index c54692b0c9..550dca2d88 100644 --- a/website/docs/r/iam_access_group_policy.html.markdown +++ b/website/docs/r/iam_access_group_policy.html.markdown @@ -267,6 +267,73 @@ resource "ibm_iam_access_group_policy" "policy" { } ``` +### Access Group Policy by using Attribute Based Condition +`rule_conditions` can be used in conjunction with `pattern = attribute-based-condition:resource:literal-and-wildcard` and `rule_operator` to implement more complex policy conditions. **Note** Currently, a policy resource created without `rule_conditions`, `pattern`, and `rule_operator` cannot be updated including those conditions on update. + +```terraform +resource "ibm_iam_access_group" "accgrp" { + name = "access_group" +} +resource "ibm_iam_access_group_policy" "policy" { + access_group_id = ibm_iam_access_group.accgrp.id + roles = ["Writer"] + resource_attributes { + value = "cloud-object-storage" + operator = "stringEquals" + name = "serviceName" + } + resource_attributes { + value = "cos-instance" + operator = "stringEquals" + name = "serviceInstance" + } + resource_attributes { + value = "bucket" + operator = "stringEquals" + name = "resourceType" + } + resource_attributes { + value = "fgac-tf-test" + operator = "stringEquals" + name = "resource" + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringEqualsAnyOf" + value = ["/",""] + } + } + rule_conditions { + key = "{{resource.attributes.path}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringExists" + value = ["false"] + } + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringExists" + value = ["false"] + } + } + rule_operator = "or" + pattern = "attribute-based-condition:resource:literal-and-wildcard" + description = "IAM User Policy Attribute Based Condition Creation for test scenario" +} +``` + ## Argument reference Review the argument references that you can specify for your resource. @@ -304,9 +371,15 @@ Review the argument references that you can specify for your resource. - `rule_conditions` - (Optional, List) A nested block describing the rule conditions of this policy. Nested schema for `rule_conditions`: - - `key` - (Required, String) The key of a rule condition. + - `key` - (Optional, String) The key of a rule condition. - `operator` - (Required, String) The operator of a rule condition. - - `value` - (Required, List) The valjue of a rule condition. + - `value` - (Optional, List) The value of a rule condition. + - `conditions` - (Optional, List) A nested block describing additional conditions of this policy. + + Nested schema for `conditions`: + - `key` - (Required, String) The key of a condition. + - `operator` - (Required, String) The operator of a condition. + - `value` - (Required, List) The value of a condition. - `rule_operator` - (Optional, String) The operator used to evaluate multiple rule conditions, e.g., all must be satisfied with `and`. diff --git a/website/docs/r/iam_service_policy.html.markdown b/website/docs/r/iam_service_policy.html.markdown index dc9b0ec664..99291b2c01 100644 --- a/website/docs/r/iam_service_policy.html.markdown +++ b/website/docs/r/iam_service_policy.html.markdown @@ -268,6 +268,73 @@ resource "ibm_iam_service_policy" "policy" { } ``` +### Service Policy by using Attribute Based Condition +`rule_conditions` can be used in conjunction with `pattern = attribute-based-condition:resource:literal-and-wildcard` and `rule_operator` to implement more complex policy conditions. **Note** Currently, a policy resource created without `rule_conditions`, `pattern`, and `rule_operator` cannot be updated including those conditions on update. + +```terraform +resource "ibm_iam_service_id" "service_id" { + name = "test" +} +resource "ibm_iam_service_policy" "policy" { + iam_service_id = ibm_iam_service_id.service_id.id + roles = ["Writer"] + resource_attributes { + value = "cloud-object-storage" + operator = "stringEquals" + name = "serviceName" + } + resource_attributes { + value = "cos-instance" + operator = "stringEquals" + name = "serviceInstance" + } + resource_attributes { + value = "bucket" + operator = "stringEquals" + name = "resourceType" + } + resource_attributes { + value = "fgac-tf-test" + operator = "stringEquals" + name = "resource" + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringEqualsAnyOf" + value = ["/",""] + } + } + rule_conditions { + key = "{{resource.attributes.path}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringExists" + value = ["false"] + } + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringExists" + value = ["false"] + } + } + rule_operator = "or" + pattern = "attribute-based-condition:resource:literal-and-wildcard" + description = "IAM User Policy Attribute Based Condition Creation for test scenario" +} +``` + ## Argument reference Review the argument references that you can specify for your resource. @@ -307,9 +374,15 @@ Review the argument references that you can specify for your resource. - `rule_conditions` - (Optional, List) A nested block describing the rule conditions of this policy. Nested schema for `rule_conditions`: - - `key` - (Required, String) The key of a rule condition. + - `key` - (Optional, String) The key of a rule condition. - `operator` - (Required, String) The operator of a rule condition. - - `value` - (Required, List) The valjue of a rule condition. + - `value` - (Optional, List) The value of a rule condition. + - `conditions` - (Optional, List) A nested block describing additional conditions of this policy. + + Nested schema for `conditions`: + - `key` - (Required, String) The key of a condition. + - `operator` - (Required, String) The operator of a condition. + - `value` - (Required, List) The value of a condition. - `rule_operator` - (Optional, String) The operator used to evaluate multiple rule conditions, e.g., all must be satisfied with `and`. diff --git a/website/docs/r/iam_trusted_profile_policy.html.markdown b/website/docs/r/iam_trusted_profile_policy.html.markdown index e987c0feb9..79e59ada80 100644 --- a/website/docs/r/iam_trusted_profile_policy.html.markdown +++ b/website/docs/r/iam_trusted_profile_policy.html.markdown @@ -261,6 +261,73 @@ resource "ibm_iam_trusted_profile_policy" "policy" { ``` +### Trusted Profile Policy by using Attribute Based Condition +`rule_conditions` can be used in conjunction with `pattern = attribute-based-condition:resource:literal-and-wildcard` and `rule_operator` to implement more complex policy conditions. **Note** Currently, a policy resource created without `rule_conditions`, `pattern`, and `rule_operator` cannot be updated including those conditions on update. + +```terraform +resource "ibm_iam_trusted_profile" "profile_id" { + name = "test" +} +resource "ibm_iam_trusted_profile_policy" "policy" { + profile_id = ibm_iam_trusted_profile.profile_id.id + roles = ["Writer"] + resource_attributes { + value = "cloud-object-storage" + operator = "stringEquals" + name = "serviceName" + } + resource_attributes { + value = "cos-instance" + operator = "stringEquals" + name = "serviceInstance" + } + resource_attributes { + value = "bucket" + operator = "stringEquals" + name = "resourceType" + } + resource_attributes { + value = "fgac-tf-test" + operator = "stringEquals" + name = "resource" + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringEqualsAnyOf" + value = ["/",""] + } + } + rule_conditions { + key = "{{resource.attributes.path}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringExists" + value = ["false"] + } + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringExists" + value = ["false"] + } + } + rule_operator = "or" + pattern = "attribute-based-condition:resource:literal-and-wildcard" + description = "IAM User Policy Attribute Based Condition Creation for test scenario" +} +``` + ## Argument reference Review the argument references that you can specify for your resource. @@ -301,9 +368,15 @@ Review the argument references that you can specify for your resource. - `rule_conditions` - (Optional, List) A nested block describing the rule conditions of this policy. Nested schema for `rule_conditions`: - - `key` - (Required, String) The key of a rule condition. + - `key` - (Optional, String) The key of a rule condition. - `operator` - (Required, String) The operator of a rule condition. - - `value` - (Required, List) The valjue of a rule condition. + - `value` - (Optional, List) The value of a rule condition. + - `conditions` - (Optional, List) A nested block describing additional conditions of this policy. + + Nested schema for `conditions`: + - `key` - (Required, String) The key of a condition. + - `operator` - (Required, String) The operator of a condition. + - `value` - (Required, List) The value of a condition. - `rule_operator` - (Optional, String) The operator used to evaluate multiple rule conditions, e.g., all must be satisfied with `and`. diff --git a/website/docs/r/iam_user_policy.html.markdown b/website/docs/r/iam_user_policy.html.markdown index ef551b1c77..1a17ab207d 100644 --- a/website/docs/r/iam_user_policy.html.markdown +++ b/website/docs/r/iam_user_policy.html.markdown @@ -202,8 +202,72 @@ resource "ibm_iam_user_policy" "policy" { value = "IAM" } } +``` + +### User Policy by using Attribute Based Condition +`rule_conditions` can be used in conjunction with `pattern = attribute-based-condition:resource:literal-and-wildcard` and `rule_operator` to implement more complex policy conditions. **Note** Currently, a policy resource created without `rule_conditions`, `pattern`, and `rule_operator` cannot be updated including those conditions on update. +```terraform +resource "ibm_iam_user_policy" "policy" { + ibm_id = "test@in.ibm.com" + roles = ["Writer"] + resource_attributes { + value = "cloud-object-storage" + operator = "stringEquals" + name = "serviceName" + } + resource_attributes { + value = "cos-instance" + operator = "stringEquals" + name = "serviceInstance" + } + resource_attributes { + value = "bucket" + operator = "stringEquals" + name = "resourceType" + } + resource_attributes { + value = "fgac-tf-test" + operator = "stringEquals" + name = "resource" + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringEqualsAnyOf" + value = ["/",""] + } + } + rule_conditions { + key = "{{resource.attributes.path}}" + operator = "stringMatch" + value = ["folder1/subfolder1/*"] + } + rule_conditions { + operator = "and" + conditions { + key = "{{resource.attributes.delimiter}}" + operator = "stringExists" + value = ["false"] + } + conditions { + key = "{{resource.attributes.prefix}}" + operator = "stringExists" + value = ["false"] + } + } + rule_operator = "or" + pattern = "attribute-based-condition:resource:literal-and-wildcard" + description = "IAM User Policy Attribute Based Condition Creation for test scenario" +} ``` + ## Argument reference Review the argument references that you can specify for your resource. @@ -242,9 +306,15 @@ Review the argument references that you can specify for your resource. - `rule_conditions` - (Optional, List) A nested block describing the rule conditions of this policy. Nested schema for `rule_conditions`: - - `key` - (Required, String) The key of a rule condition. + - `key` - (Optional, String) The key of a rule condition. - `operator` - (Required, String) The operator of a rule condition. - - `value` - (Required, List) The valjue of a rule condition. + - `value` - (Optional, List) The value of a rule condition. + - `conditions` - (Optional, List) A nested block describing additional conditions of this policy. + + Nested schema for `conditions`: + - `key` - (Required, String) The key of a condition. + - `operator` - (Required, String) The operator of a condition. + - `value` - (Required, List) The value of a condition. - `rule_operator` - (Optional, String) The operator used to evaluate multiple rule conditions, e.g., all must be satisfied with `and`. From 19f1bb122a9b9acad067e63132531f1c6db30b54 Mon Sep 17 00:00:00 2001 From: Gary Marjoram Date: Mon, 13 Nov 2023 12:04:08 +0000 Subject: [PATCH 29/58] Updates to SCC tool --- ...bm_cd_toolchain_tool_securitycompliance.go | 28 +--------------- ...bm_cd_toolchain_tool_securitycompliance.go | 33 ++----------------- ...hain_tool_securitycompliance.html.markdown | 8 +---- ...hain_tool_securitycompliance.html.markdown | 10 ++---- 4 files changed, 6 insertions(+), 73 deletions(-) diff --git a/ibm/service/cdtoolchain/data_source_ibm_cd_toolchain_tool_securitycompliance.go b/ibm/service/cdtoolchain/data_source_ibm_cd_toolchain_tool_securitycompliance.go index 11cf10dc7d..143fe95bb7 100644 --- a/ibm/service/cdtoolchain/data_source_ibm_cd_toolchain_tool_securitycompliance.go +++ b/ibm/service/cdtoolchain/data_source_ibm_cd_toolchain_tool_securitycompliance.go @@ -96,31 +96,6 @@ func DataSourceIBMCdToolchainToolSecuritycompliance() *schema.Resource { Computed: true, Description: "The kind of pipeline evidence to be displayed in Security and Compliance Center for this toolchain. The values are; `cd` which will use evidence generated by a Continuous Deployment pipeline, or `cc` which will use evidence generated by a Continuous Compliance pipeline.", }, - "trigger_scan": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Deprecated: "This argument is deprecated and may be removed in a future release", - Description: "Set to `enabled` to indicate that a DevSecOps pipeline task should trigger a Security and Compliance Center run of a Hybrid cloud validation scan. Note, each scan may incur charges. When enabled, other parameters become relevant that are needed to trigger that scan; `api_key`, `scope`, `profile`. Hybrid cloud scans are deprecated and are planned to be removed. This option will stop working at that time. For more information see the [Security and Compliance Center Release Notes](https://cloud.ibm.com/docs/security-compliance?topic=security-compliance-release-notes#security-compliance-march312023).", - }, - "api_key": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Sensitive: true, - Deprecated: "This argument is deprecated and may be removed in a future release", - Description: "The IBM Cloud API key used to access the Security and Compliance Center API. This parameter is only relevant when the `trigger_scan` parameter is `enabled`. For information about the deprecation see the `trigger_scan` parameter. You can use a toolchain secret reference for this parameter. For more information, see [Protecting your sensitive data in Continuous Delivery](https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-cd_data_security#cd_secure_credentials).", - }, - "scope": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Deprecated: "This argument is deprecated and may be removed in a future release", - Description: "The name of a Security and Compliance Center scope, which has previously been created in that service. When the `trigger_scan` parameter is set to `enabled`, then the Validation scan will scan all the resources in that scope. Select a scope that contains this toolchain, so that the scan will find the evidence that has been recently updated by the DevSecOps pipeline-run. This parameter is only relevant when the `trigger_scan` parameter is `enabled`. For information about the deprecation see the `trigger_scan` parameter.", - }, - "profile": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Deprecated: "This argument is deprecated and may be removed in a future release", - Description: "The name of a Security and Compliance Center, Hybrid cloud profile. Usually, use the predefined profile \"IBM Cloud Security Best Practices v1.0.0\", which contains the DevSecOps toolchain goals. Or use a user-authored customized profile that has been configured to contain those goals. When the `trigger_scan` parameter is set to `enabled`, then the Validation scan will use the controls and goals in the configured profile. If configured with a profile that does not check the DevSecOps toolchain goals, it might incorrectly indicate that the toolchain status is passed even though some of the DevSecOps scans had actually failed. This parameter is only relevant when the `trigger_scan` parameter is `enabled`. For information about the deprecation see the `trigger_scan` parameter.", - }, "use_profile_attachment": &schema.Schema{ Type: schema.TypeString, Computed: true, @@ -140,7 +115,7 @@ func DataSourceIBMCdToolchainToolSecuritycompliance() *schema.Resource { "profile_name": &schema.Schema{ Type: schema.TypeString, Computed: true, - Description: "The name of a Security and Compliance Center profile. Usually, use one of the predefined profiles \"IBM Cloud Security Best Practices\" or \"IBM Cloud for Financial Services\", which contain the DevSecOps Toolchain rules. Or use a user-authored customized profile that has been configured to contain those rules. This parameter is only relevant when the `use_profile_attachment` parameter is `enabled`.", + Description: "The name of a Security and Compliance Center profile. Usually, use the \"IBM Cloud Framework for Financial Services\" predefined profile, which contains the DevSecOps Toolchain rules. Or use a user-authored customized profile that has been configured to contain those rules. This parameter is only relevant when the `use_profile_attachment` parameter is `enabled`.", }, "profile_version": &schema.Schema{ Type: schema.TypeString, @@ -232,7 +207,6 @@ func dataSourceIBMCdToolchainToolSecuritycomplianceRead(context context.Context, if toolchainTool.Parameters != nil { remapFields := map[string]string{ "evidence_repo_url": "evidence_repo_name", - "api_key": "api-key", } modelMap := GetParametersFromRead(toolchainTool.Parameters, DataSourceIBMCdToolchainToolSecuritycompliance(), remapFields) parameters = append(parameters, modelMap) diff --git a/ibm/service/cdtoolchain/resource_ibm_cd_toolchain_tool_securitycompliance.go b/ibm/service/cdtoolchain/resource_ibm_cd_toolchain_tool_securitycompliance.go index 1da7eaadfe..be80157483 100644 --- a/ibm/service/cdtoolchain/resource_ibm_cd_toolchain_tool_securitycompliance.go +++ b/ibm/service/cdtoolchain/resource_ibm_cd_toolchain_tool_securitycompliance.go @@ -56,35 +56,9 @@ func ResourceIBMCdToolchainToolSecuritycompliance() *schema.Resource { Description: "The name for this tool integration, shown on the toolchain page.", }, "evidence_namespace": &schema.Schema{ - Type: schema.TypeString, - Required: true, - Description: "The kind of pipeline evidence to be displayed in Security and Compliance Center for this toolchain. The values are; `cd` which will use evidence generated by a Continuous Deployment pipeline, or `cc` which will use evidence generated by a Continuous Compliance pipeline.", - }, - "trigger_scan": &schema.Schema{ - Type: schema.TypeString, - Optional: true, - Deprecated: "This argument is deprecated and may be removed in a future release", - Description: "Set to `enabled` to indicate that a DevSecOps pipeline task should trigger a Security and Compliance Center run of a Hybrid cloud validation scan. Note, each scan may incur charges. When enabled, other parameters become relevant that are needed to trigger that scan; `api_key`, `scope`, `profile`. Hybrid cloud scans are deprecated and are planned to be removed. This option will stop working at that time. For more information see the [Security and Compliance Center Release Notes](https://cloud.ibm.com/docs/security-compliance?topic=security-compliance-release-notes#security-compliance-march312023).", - }, - "api_key": &schema.Schema{ - Type: schema.TypeString, - Optional: true, - DiffSuppressFunc: flex.SuppressHashedRawSecret, - Sensitive: true, - Deprecated: "This argument is deprecated and may be removed in a future release", - Description: "The IBM Cloud API key used to access the Security and Compliance Center API. This parameter is only relevant when the `trigger_scan` parameter is `enabled`. For information about the deprecation see the `trigger_scan` parameter. You can use a toolchain secret reference for this parameter. For more information, see [Protecting your sensitive data in Continuous Delivery](https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-cd_data_security#cd_secure_credentials).", - }, - "scope": &schema.Schema{ Type: schema.TypeString, Optional: true, - Deprecated: "This argument is deprecated and may be removed in a future release", - Description: "The name of a Security and Compliance Center scope, which has previously been created in that service. When the `trigger_scan` parameter is set to `enabled`, then the Validation scan will scan all the resources in that scope. Select a scope that contains this toolchain, so that the scan will find the evidence that has been recently updated by the DevSecOps pipeline-run. This parameter is only relevant when the `trigger_scan` parameter is `enabled`. For information about the deprecation see the `trigger_scan` parameter.", - }, - "profile": &schema.Schema{ - Type: schema.TypeString, - Optional: true, - Deprecated: "This argument is deprecated and may be removed in a future release", - Description: "The name of a Security and Compliance Center, Hybrid cloud profile. Usually, use the predefined profile \"IBM Cloud Security Best Practices v1.0.0\", which contains the DevSecOps toolchain goals. Or use a user-authored customized profile that has been configured to contain those goals. When the `trigger_scan` parameter is set to `enabled`, then the Validation scan will use the controls and goals in the configured profile. If configured with a profile that does not check the DevSecOps toolchain goals, it might incorrectly indicate that the toolchain status is passed even though some of the DevSecOps scans had actually failed. This parameter is only relevant when the `trigger_scan` parameter is `enabled`. For information about the deprecation see the `trigger_scan` parameter.", + Description: "The kind of pipeline evidence to be displayed in Security and Compliance Center for this toolchain. The values are; `cd` which will use evidence generated by a Continuous Deployment pipeline, or `cc` which will use evidence generated by a Continuous Compliance pipeline.", }, "use_profile_attachment": &schema.Schema{ Type: schema.TypeString, @@ -106,7 +80,7 @@ func ResourceIBMCdToolchainToolSecuritycompliance() *schema.Resource { "profile_name": &schema.Schema{ Type: schema.TypeString, Optional: true, - Description: "The name of a Security and Compliance Center profile. Usually, use one of the predefined profiles \"IBM Cloud Security Best Practices\" or \"IBM Cloud for Financial Services\", which contain the DevSecOps Toolchain rules. Or use a user-authored customized profile that has been configured to contain those rules. This parameter is only relevant when the `use_profile_attachment` parameter is `enabled`.", + Description: "The name of a Security and Compliance Center profile. Usually, use the \"IBM Cloud Framework for Financial Services\" predefined profile, which contains the DevSecOps Toolchain rules. Or use a user-authored customized profile that has been configured to contain those rules. This parameter is only relevant when the `use_profile_attachment` parameter is `enabled`.", }, "profile_version": &schema.Schema{ Type: schema.TypeString, @@ -223,7 +197,6 @@ func resourceIBMCdToolchainToolSecuritycomplianceCreate(context context.Context, createToolOptions.SetToolTypeID("security_compliance") remapFields := map[string]string{ "evidence_repo_url": "evidence_repo_name", - "api_key": "api-key", } parametersModel := GetParametersForCreate(d, ResourceIBMCdToolchainToolSecuritycompliance(), remapFields) createToolOptions.SetParameters(parametersModel) @@ -292,7 +265,6 @@ func resourceIBMCdToolchainToolSecuritycomplianceRead(context context.Context, d } remapFields := map[string]string{ "evidence_repo_url": "evidence_repo_name", - "api_key": "api-key", } parametersMap := GetParametersFromRead(toolchainTool.Parameters, ResourceIBMCdToolchainToolSecuritycompliance(), remapFields) if err = d.Set("parameters", []map[string]interface{}{parametersMap}); err != nil { @@ -361,7 +333,6 @@ func resourceIBMCdToolchainToolSecuritycomplianceUpdate(context context.Context, if d.HasChange("parameters") { remapFields := map[string]string{ "evidence_repo_url": "evidence_repo_name", - "api_key": "api-key", } parameters := GetParametersForUpdate(d, ResourceIBMCdToolchainToolSecuritycompliance(), remapFields) patchVals.Parameters = parameters diff --git a/website/docs/d/cd_toolchain_tool_securitycompliance.html.markdown b/website/docs/d/cd_toolchain_tool_securitycompliance.html.markdown index 81fdc56c58..bf3493ad3e 100644 --- a/website/docs/d/cd_toolchain_tool_securitycompliance.html.markdown +++ b/website/docs/d/cd_toolchain_tool_securitycompliance.html.markdown @@ -44,8 +44,6 @@ After your data source is created, you can read values from the following attrib * `parameters` - (List) Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the Configuring tool integrations page. Nested schema for **parameters**: - * `api_key` - (Deprecated, String) The IBM Cloud API key used to access the Security and Compliance Center API. This parameter is only relevant when the `trigger_scan` parameter is `enabled`. For information about the deprecation see the `trigger_scan` parameter. You can use a toolchain secret reference for this parameter. For more information, see [Protecting your sensitive data in Continuous Delivery](https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-cd_data_security#cd_secure_credentials). - * Constraints: The value must match regular expression `/\\S/`. * `attachment_id` - (String) An attachment ID. An attachment is configured under a profile to define how a scan will be run. To find the attachment ID, in the browser, in the attachments list, click on the attachment link, and a panel appears with a button to copy the attachment ID. This parameter is only relevant when the `use_profile_attachment` parameter is `enabled`. * Constraints: The value must match regular expression `/^[-0-9a-f]{32,36}$/`. * `evidence_namespace` - (String) The kind of pipeline evidence to be displayed in Security and Compliance Center for this toolchain. The values are; `cd` which will use evidence generated by a Continuous Deployment pipeline, or `cc` which will use evidence generated by a Continuous Compliance pipeline. @@ -54,13 +52,9 @@ Nested schema for **parameters**: * `instance_crn` - (String) The Security and Compliance Center service instance CRN (Cloud Resource Name). It is recommended to provide an instance CRN, but when absent, the oldest service instance will be used. This parameter is only relevant when the `use_profile_attachment` parameter is `enabled`. * Constraints: The value must match regular expression `/^crn:v1:(?:bluemix|staging):public:compliance:[a-zA-Z0-9-]*\\b:a\/[0-9a-fA-F]*\\b:[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}\\b::$/`. * `name` - (String) The name for this tool integration, shown on the toolchain page. - * `profile` - (Deprecated, String) The name of a Security and Compliance Center, Hybrid cloud profile. Usually, use the predefined profile "IBM Cloud Security Best Practices v1.0.0", which contains the DevSecOps toolchain goals. Or use a user-authored customized profile that has been configured to contain those goals. When the `trigger_scan` parameter is set to `enabled`, then the Validation scan will use the controls and goals in the configured profile. If configured with a profile that does not check the DevSecOps toolchain goals, it might incorrectly indicate that the toolchain status is passed even though some of the DevSecOps scans had actually failed. This parameter is only relevant when the `trigger_scan` parameter is `enabled`. For information about the deprecation see the `trigger_scan` parameter. - * `profile_name` - (String) The name of a Security and Compliance Center profile. Usually, use one of the predefined profiles "IBM Cloud Security Best Practices" or "IBM Cloud for Financial Services", which contain the DevSecOps Toolchain rules. Or use a user-authored customized profile that has been configured to contain those rules. This parameter is only relevant when the `use_profile_attachment` parameter is `enabled`. + * `profile_name` - (String) The name of a Security and Compliance Center profile. Usually, use the "IBM Cloud Framework for Financial Services" predefined profile, which contains the DevSecOps Toolchain rules. Or use a user-authored customized profile that has been configured to contain those rules. This parameter is only relevant when the `use_profile_attachment` parameter is `enabled`. * `profile_version` - (String) The version of a Security and Compliance Center profile, in SemVer format, like '0.0.0'. This parameter is only relevant when the `use_profile_attachment` parameter is `enabled`. * `scc_api_key` - (String) The IBM Cloud API key used to access the Security and Compliance Center service, for the use profile with attachment setting. This parameter is only relevant when the `use_profile_attachment` parameter is `enabled`. You can use a toolchain secret reference for this parameter. For more information, see [Protecting your sensitive data in Continuous Delivery](https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-cd_data_security#cd_secure_credentials). - * `scope` - (Deprecated, String) The name of a Security and Compliance Center scope, which has previously been created in that service. When the `trigger_scan` parameter is set to `enabled`, then the Validation scan will scan all the resources in that scope. Select a scope that contains this toolchain, so that the scan will find the evidence that has been recently updated by the DevSecOps pipeline-run. This parameter is only relevant when the `trigger_scan` parameter is `enabled`. For information about the deprecation see the `trigger_scan` parameter. - * `trigger_scan` - (Deprecated, String) Set to `enabled` to indicate that a DevSecOps pipeline task should trigger a Security and Compliance Center run of a Hybrid cloud validation scan. Note, each scan may incur charges. When enabled, other parameters become relevant that are needed to trigger that scan; `api_key`, `scope`, `profile`. Hybrid cloud scans are deprecated and are planned to be removed. This option will stop working at that time. For more information see the [Security and Compliance Center Release Notes](https://cloud.ibm.com/docs/security-compliance?topic=security-compliance-release-notes#security-compliance-march312023). - * Constraints: Allowable values are: `disabled`, `enabled`. * `use_profile_attachment` - (String) Set to `enabled` to enable use profile with attachment, so that the scripts in the pipeline can interact with the Security and Compliance Center service. When enabled, other parameters become relevant; `scc_api_key`, `instance_crn`, `profile_name`, `profile_version`, `attachment_id`. * Constraints: Allowable values are: `disabled`, `enabled`. diff --git a/website/docs/r/cd_toolchain_tool_securitycompliance.html.markdown b/website/docs/r/cd_toolchain_tool_securitycompliance.html.markdown index 477862aeb4..47011c756e 100644 --- a/website/docs/r/cd_toolchain_tool_securitycompliance.html.markdown +++ b/website/docs/r/cd_toolchain_tool_securitycompliance.html.markdown @@ -33,23 +33,17 @@ You can specify the following arguments for this resource. * Constraints: The maximum length is `128` characters. The minimum length is `0` characters. The value must match regular expression `/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/`. * `parameters` - (Required, List) Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the Configuring tool integrations page. Nested schema for **parameters**: - * `api_key` - (Deprecated, Optional, String) The IBM Cloud API key used to access the Security and Compliance Center API. This parameter is only relevant when the `trigger_scan` parameter is `enabled`. For information about the deprecation see the `trigger_scan` parameter. You can use a toolchain secret reference for this parameter. For more information, see [Protecting your sensitive data in Continuous Delivery](https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-cd_data_security#cd_secure_credentials). - * Constraints: The value must match regular expression `/\\S/`. * `attachment_id` - (Optional, String) An attachment ID. An attachment is configured under a profile to define how a scan will be run. To find the attachment ID, in the browser, in the attachments list, click on the attachment link, and a panel appears with a button to copy the attachment ID. This parameter is only relevant when the `use_profile_attachment` parameter is `enabled`. * Constraints: The value must match regular expression `/^[-0-9a-f]{32,36}$/`. - * `evidence_namespace` - (Required, String) The kind of pipeline evidence to be displayed in Security and Compliance Center for this toolchain. The values are; `cd` which will use evidence generated by a Continuous Deployment pipeline, or `cc` which will use evidence generated by a Continuous Compliance pipeline. + * `evidence_namespace` - (Optional, String) The kind of pipeline evidence to be displayed in Security and Compliance Center for this toolchain. The values are; `cd` which will use evidence generated by a Continuous Deployment pipeline, or `cc` which will use evidence generated by a Continuous Compliance pipeline. * Constraints: Allowable values are: `cd`, `cc`. * `evidence_repo_url` - (Required, String) The URL to a Git repository evidence locker. The DevSecOps toolchain templates will collect and store evidence for scans and tasks in an evidence repository. This evidence URL should match the `repo_url` for a Git tool integration in this toolchain. The DevSecOps toolchain goals in the Security and Compliance Center will check the evidence repository for the pass or fail results for those goals. * `instance_crn` - (Optional, String) The Security and Compliance Center service instance CRN (Cloud Resource Name). It is recommended to provide an instance CRN, but when absent, the oldest service instance will be used. This parameter is only relevant when the `use_profile_attachment` parameter is `enabled`. * Constraints: The value must match regular expression `/^crn:v1:(?:bluemix|staging):public:compliance:[a-zA-Z0-9-]*\\b:a\/[0-9a-fA-F]*\\b:[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}\\b::$/`. * `name` - (Required, String) The name for this tool integration, shown on the toolchain page. - * `profile` - (Deprecated, Optional, String) The name of a Security and Compliance Center, Hybrid cloud profile. Usually, use the predefined profile "IBM Cloud Security Best Practices v1.0.0", which contains the DevSecOps toolchain goals. Or use a user-authored customized profile that has been configured to contain those goals. When the `trigger_scan` parameter is set to `enabled`, then the Validation scan will use the controls and goals in the configured profile. If configured with a profile that does not check the DevSecOps toolchain goals, it might incorrectly indicate that the toolchain status is passed even though some of the DevSecOps scans had actually failed. This parameter is only relevant when the `trigger_scan` parameter is `enabled`. For information about the deprecation see the `trigger_scan` parameter. - * `profile_name` - (Optional, String) The name of a Security and Compliance Center profile. Usually, use one of the predefined profiles "IBM Cloud Security Best Practices" or "IBM Cloud for Financial Services", which contain the DevSecOps Toolchain rules. Or use a user-authored customized profile that has been configured to contain those rules. This parameter is only relevant when the `use_profile_attachment` parameter is `enabled`. + * `profile_name` - (Optional, String) The name of a Security and Compliance Center profile. Usually, use the "IBM Cloud Framework for Financial Services" predefined profile, which contains the DevSecOps Toolchain rules. Or use a user-authored customized profile that has been configured to contain those rules. This parameter is only relevant when the `use_profile_attachment` parameter is `enabled`. * `profile_version` - (Optional, String) The version of a Security and Compliance Center profile, in SemVer format, like '0.0.0'. This parameter is only relevant when the `use_profile_attachment` parameter is `enabled`. * `scc_api_key` - (Optional, String) The IBM Cloud API key used to access the Security and Compliance Center service, for the use profile with attachment setting. This parameter is only relevant when the `use_profile_attachment` parameter is `enabled`. You can use a toolchain secret reference for this parameter. For more information, see [Protecting your sensitive data in Continuous Delivery](https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-cd_data_security#cd_secure_credentials). - * `scope` - (Deprecated, Optional, String) The name of a Security and Compliance Center scope, which has previously been created in that service. When the `trigger_scan` parameter is set to `enabled`, then the Validation scan will scan all the resources in that scope. Select a scope that contains this toolchain, so that the scan will find the evidence that has been recently updated by the DevSecOps pipeline-run. This parameter is only relevant when the `trigger_scan` parameter is `enabled`. For information about the deprecation see the `trigger_scan` parameter. - * `trigger_scan` - (Deprecated, Optional, String) Set to `enabled` to indicate that a DevSecOps pipeline task should trigger a Security and Compliance Center run of a Hybrid cloud validation scan. Note, each scan may incur charges. When enabled, other parameters become relevant that are needed to trigger that scan; `api_key`, `scope`, `profile`. Hybrid cloud scans are deprecated and are planned to be removed. This option will stop working at that time. For more information see the [Security and Compliance Center Release Notes](https://cloud.ibm.com/docs/security-compliance?topic=security-compliance-release-notes#security-compliance-march312023). - * Constraints: Allowable values are: `disabled`, `enabled`. * `use_profile_attachment` - (Optional, String) Set to `enabled` to enable use profile with attachment, so that the scripts in the pipeline can interact with the Security and Compliance Center service. When enabled, other parameters become relevant; `scc_api_key`, `instance_crn`, `profile_name`, `profile_version`, `attachment_id`. * Constraints: Allowable values are: `disabled`, `enabled`. * `toolchain_id` - (Required, Forces new resource, String) ID of the toolchain to bind the tool to. From 6dfccd7a1b874995281b9eb929c015cdd0281d45 Mon Sep 17 00:00:00 2001 From: Diksha Mali Date: Sun, 12 Nov 2023 03:30:02 +0530 Subject: [PATCH 30/58] Fix for COS issue 4844 and changing teh static webhosting bucket name in the test cases --- ibm/service/cos/data_source_ibm_cos_bucket.go | 3 +++ ibm/service/cos/resource_ibm_cos_bucket.go | 6 +++++ ...m_cos_bucket_website_configuration_test.go | 24 +++++++++---------- 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/ibm/service/cos/data_source_ibm_cos_bucket.go b/ibm/service/cos/data_source_ibm_cos_bucket.go index e45744b986..22c54e1c96 100644 --- a/ibm/service/cos/data_source_ibm_cos_bucket.go +++ b/ibm/service/cos/data_source_ibm_cos_bucket.go @@ -720,6 +720,9 @@ func dataSourceIBMCosBucketRead(d *schema.ResourceData, meta interface{}) error if endpointType == "private" { sess.SetServiceURL("https://config.private.cloud-object-storage.cloud.ibm.com/v1") } + if endpointType == "direct" { + sess.SetServiceURL("https://config.direct.cloud-object-storage.cloud.ibm.com/v1") + } if bucketType == "sl" { satconfig := fmt.Sprintf("https://config.%s.%s.cloud-object-storage.appdomain.cloud/v1", serviceID, satlc_id) diff --git a/ibm/service/cos/resource_ibm_cos_bucket.go b/ibm/service/cos/resource_ibm_cos_bucket.go index d21f73c77b..abcc543635 100644 --- a/ibm/service/cos/resource_ibm_cos_bucket.go +++ b/ibm/service/cos/resource_ibm_cos_bucket.go @@ -924,6 +924,9 @@ func resourceIBMCOSBucketUpdate(d *schema.ResourceData, meta interface{}) error if endpointType == "private" { sess.SetServiceURL("https://config.private.cloud-object-storage.cloud.ibm.com/v1") } + if endpointType == "direct" { + sess.SetServiceURL("https://config.direct.cloud-object-storage.cloud.ibm.com/v1") + } if apiType == "sl" { satconfig := fmt.Sprintf("https://config.%s.%s.cloud-object-storage.appdomain.cloud/v1", serviceID, bLocation) @@ -1153,6 +1156,9 @@ func resourceIBMCOSBucketRead(d *schema.ResourceData, meta interface{}) error { if endpointType == "private" { sess.SetServiceURL("https://config.private.cloud-object-storage.cloud.ibm.com/v1") } + if endpointType == "direct" { + sess.SetServiceURL("https://config.direct.cloud-object-storage.cloud.ibm.com/v1") + } if apiType == "sl" { diff --git a/ibm/service/cos/resource_ibm_cos_bucket_website_configuration_test.go b/ibm/service/cos/resource_ibm_cos_bucket_website_configuration_test.go index 5959dc2c0b..2988811df5 100644 --- a/ibm/service/cos/resource_ibm_cos_bucket_website_configuration_test.go +++ b/ibm/service/cos/resource_ibm_cos_bucket_website_configuration_test.go @@ -12,7 +12,7 @@ import ( func TestAccIBMCosBucket_Website_Configuration_Bucket_Basic(t *testing.T) { serviceName := fmt.Sprintf("terraform_%d", acctest.RandIntRange(10, 100)) - bucketName := fmt.Sprintf("terraformStaticWebHosting%d", acctest.RandIntRange(10, 100)) + bucketName := fmt.Sprintf("terraform-static-web-hosting%d", acctest.RandIntRange(10, 100)) bucketRegion := "us" bucketClass := "standard" bucketRegionType := "cross_region_location" @@ -41,7 +41,7 @@ func TestAccIBMCosBucket_Website_Configuration_Bucket_Basic(t *testing.T) { func TestAccIBMCosBucket_Website_Configuration_Bucket_Without_Public_Access(t *testing.T) { serviceName := fmt.Sprintf("terraform_%d", acctest.RandIntRange(10, 100)) - bucketName := fmt.Sprintf("terraformStaticWebHosting%d", acctest.RandIntRange(10, 100)) + bucketName := fmt.Sprintf("terraform-static-web-hosting%d", acctest.RandIntRange(10, 100)) bucketRegion := "us" bucketClass := "standard" bucketRegionType := "cross_region_location" @@ -69,7 +69,7 @@ func TestAccIBMCosBucket_Website_Configuration_Bucket_Without_Public_Access(t *t } func TestAccIBMCosBucket_Website_Configuration_Bucket_Index_Document_Only(t *testing.T) { serviceName := fmt.Sprintf("terraform_%d", acctest.RandIntRange(10, 100)) - bucketName := fmt.Sprintf("terraformStaticWebHosting%d", acctest.RandIntRange(10, 100)) + bucketName := fmt.Sprintf("terraform-static-web-hosting%d", acctest.RandIntRange(10, 100)) bucketRegion := "us" bucketClass := "standard" bucketRegionType := "cross_region_location" @@ -96,7 +96,7 @@ func TestAccIBMCosBucket_Website_Configuration_Bucket_Index_Document_Only(t *tes func TestAccIBMCosBucket_Website_Configuration_Bucket_With_Routing_Rule(t *testing.T) { serviceName := fmt.Sprintf("terraform_%d", acctest.RandIntRange(10, 100)) - bucketName := fmt.Sprintf("terraformStaticWebHosting%d", acctest.RandIntRange(10, 100)) + bucketName := fmt.Sprintf("terraform-static-web-hosting%d", acctest.RandIntRange(10, 100)) bucketRegion := "us" bucketClass := "standard" bucketRegionType := "cross_region_location" @@ -133,7 +133,7 @@ func TestAccIBMCosBucket_Website_Configuration_Bucket_With_Routing_Rule(t *testi func TestAccIBMCosBucket_Website_Configuration_Bucket_With_JSON_Routing_Rule(t *testing.T) { serviceName := fmt.Sprintf("terraform_%d", acctest.RandIntRange(10, 100)) - bucketName := fmt.Sprintf("terraformStaticWebHosting%d", acctest.RandIntRange(10, 100)) + bucketName := fmt.Sprintf("terraform-static-web-hosting%d", acctest.RandIntRange(10, 100)) bucketRegion := "us" bucketClass := "standard" bucketRegionType := "cross_region_location" @@ -163,7 +163,7 @@ func TestAccIBMCosBucket_Website_Configuration_Bucket_With_JSON_Routing_Rule(t * } func TestAccIBMCosBucket_Website_Configuration_Bucket_With_Routing_Rule_Condition_Only(t *testing.T) { serviceName := fmt.Sprintf("terraform_%d", acctest.RandIntRange(10, 100)) - bucketName := fmt.Sprintf("terraformStaticWebHosting%d", acctest.RandIntRange(10, 100)) + bucketName := fmt.Sprintf("terraform-static-web-hosting%d", acctest.RandIntRange(10, 100)) bucketRegion := "us" bucketClass := "standard" bucketRegionType := "cross_region_location" @@ -192,7 +192,7 @@ func TestAccIBMCosBucket_Website_Configuration_Bucket_With_Routing_Rule_Conditio func TestAccIBMCosBucket_Website_Configuration_Bucket_With_Routing_Rule_Redirect_Only(t *testing.T) { serviceName := fmt.Sprintf("terraform_%d", acctest.RandIntRange(10, 100)) - bucketName := fmt.Sprintf("terraformStaticWebHosting%d", acctest.RandIntRange(10, 100)) + bucketName := fmt.Sprintf("terraform-static-web-hosting%d", acctest.RandIntRange(10, 100)) bucketRegion := "us" bucketClass := "standard" bucketRegionType := "cross_region_location" @@ -227,7 +227,7 @@ func TestAccIBMCosBucket_Website_Configuration_Bucket_With_Routing_Rule_Redirect func TestAccIBMCosBucket_Website_Configuration_Bucket_With_Multiple_Routing_Rules(t *testing.T) { serviceName := fmt.Sprintf("terraform_%d", acctest.RandIntRange(10, 100)) - bucketName := fmt.Sprintf("terraformStaticWebHosting%d", acctest.RandIntRange(10, 100)) + bucketName := fmt.Sprintf("terraform-static-web-hosting%d", acctest.RandIntRange(10, 100)) bucketRegion := "us" bucketClass := "standard" bucketRegionType := "cross_region_location" @@ -263,7 +263,7 @@ func TestAccIBMCosBucket_Website_Configuration_Bucket_With_Multiple_Routing_Rule func TestAccIBMCosBucket_Website_Configuration_Bucket_Upload_Object_With_Redirect(t *testing.T) { serviceName := fmt.Sprintf("terraform_%d", acctest.RandIntRange(10, 100)) - bucketName := fmt.Sprintf("terraformStaticWebHosting%d", acctest.RandIntRange(10, 100)) + bucketName := fmt.Sprintf("terraform-static-web-hosting%d", acctest.RandIntRange(10, 100)) bucketRegion := "us" bucketClass := "standard" bucketRegionType := "cross_region_location" @@ -293,7 +293,7 @@ func TestAccIBMCosBucket_Website_Configuration_Bucket_Upload_Object_With_Redirec func TestAccIBMCosBucket_Website_Configuration_Bucket_Empty_Config(t *testing.T) { serviceName := fmt.Sprintf("terraform_%d", acctest.RandIntRange(10, 100)) - bucketName := fmt.Sprintf("terraformStaticWebHosting%d", acctest.RandIntRange(10, 100)) + bucketName := fmt.Sprintf("terraform-static-web-hosting%d", acctest.RandIntRange(10, 100)) bucketRegion := "us" bucketClass := "standard" bucketRegionType := "cross_region_location" @@ -312,7 +312,7 @@ func TestAccIBMCosBucket_Website_Configuration_Bucket_Empty_Config(t *testing.T) func TestAccIBMCosBucket_Website_Configuration_Bucket_Index_And_Redirect_Together(t *testing.T) { serviceName := fmt.Sprintf("terraform_%d", acctest.RandIntRange(10, 100)) - bucketName := fmt.Sprintf("terraformStaticWebHosting%d", acctest.RandIntRange(10, 100)) + bucketName := fmt.Sprintf("terraform-static-web-hosting%d", acctest.RandIntRange(10, 100)) bucketRegion := "us" bucketClass := "standard" bucketRegionType := "cross_region_location" @@ -333,7 +333,7 @@ func TestAccIBMCosBucket_Website_Configuration_Bucket_Index_And_Redirect_Togethe func TestAccIBMCosBucket_Website_Configuration_Bucket_No_Config(t *testing.T) { serviceName := fmt.Sprintf("terraform_%d", acctest.RandIntRange(10, 100)) - bucketName := fmt.Sprintf("terraformStaticWebHosting%d", acctest.RandIntRange(10, 100)) + bucketName := fmt.Sprintf("terraform-static-web-hosting%d", acctest.RandIntRange(10, 100)) bucketRegion := "us" bucketClass := "standard" bucketRegionType := "cross_region_location" From 73008069bf5a543088f2b9eaf7c1ed26680af826 Mon Sep 17 00:00:00 2001 From: Simone Rodigari <32323373+SRodi@users.noreply.github.com> Date: Tue, 14 Nov 2023 14:15:15 +0000 Subject: [PATCH 31/58] add missing required argument name to the doc (#4909) --- .secrets.baseline | 4 ++-- website/docs/r/sm_arbitrary_secret.html.markdown | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.secrets.baseline b/.secrets.baseline index c4309547fd..e66f38481c 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -4504,7 +4504,7 @@ "hashed_secret": "d47dcacc720a39e236679ac3e311a0d58bb6519e", "is_secret": false, "is_verified": false, - "line_number": 104, + "line_number": 105, "type": "Secret Keyword", "verified_result": null }, @@ -4512,7 +4512,7 @@ "hashed_secret": "e66e7d67fdf3c596c435fc7828b13205e4950a0f", "is_secret": false, "is_verified": false, - "line_number": 106, + "line_number": 107, "type": "Secret Keyword", "verified_result": null } diff --git a/website/docs/r/sm_arbitrary_secret.html.markdown b/website/docs/r/sm_arbitrary_secret.html.markdown index 0a5d5ae144..aadaef107d 100644 --- a/website/docs/r/sm_arbitrary_secret.html.markdown +++ b/website/docs/r/sm_arbitrary_secret.html.markdown @@ -14,6 +14,7 @@ Provides a resource for ArbitrarySecret. This allows ArbitrarySecret to be creat ```hcl resource "ibm_sm_arbitrary_secret" "sm_arbitrary_secret" { + name = "secret-name" instance_id = ibm_resource_instance.sm_instance.guid region = "us-south" custom_metadata = {"key":"value"} From 24cc7f62bab5a0fea50899656ef768271c27e4b3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 9 Nov 2023 21:05:16 +0000 Subject: [PATCH 32/58] dependabot: bump github/issue-labeler from 3.2 to 3.3 Bumps [github/issue-labeler](https://github.com/github/issue-labeler) from 3.2 to 3.3. - [Release notes](https://github.com/github/issue-labeler/releases) - [Commits](https://github.com/github/issue-labeler/compare/v3.2...v3.3) --- updated-dependencies: - dependency-name: github/issue-labeler dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/issues.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml index 2f84d395ef..1e0c34e13c 100644 --- a/.github/workflows/issues.yml +++ b/.github/workflows/issues.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@v4.1.1 - name: Apply Issue Labels - uses: github/issue-labeler@v3.2 + uses: github/issue-labeler@v3.3 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" configuration-path: .github/labeler-issue.yml From 8ff0e8abf51af31659f88aef49d4ddd8f82f30e5 Mon Sep 17 00:00:00 2001 From: hkantare Date: Wed, 15 Nov 2023 13:55:25 +0530 Subject: [PATCH 33/58] update CHANGELOG --- CHANGELOG.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf3fc33d49..f833c365fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,24 @@ +# 1.60.0-beta0 (Nov 15, 2023) +Features +* Support for Projects + - **Datasources** + - ibm_project + - ibm_project_config + - **Resources** + - ibm_project + - ibm_project_config +Enhancements +* support offline restore for MongoDB EE PITR ([4601](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4601)) +* bump ContinuousDelivery Go SDK version ([4918](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4918)) +* Added nest conditions to rule.conditions IAM Policies ([4896](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4896)) +* Updates to SCC tool ([4920](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4920)) + +BugFixes +* resolved nil pointer issue on vpn gateway resource ([4903](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4903)) +* Private/direct COS endpoint settings conflicts with IBM Cloud docs, VPE options, and COS config endpoint ([4919](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4919)) +* add missing required argument name to the doc ([4909](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4909)) + + # 1.59.0 (Oct 30, 2023) Features From 2bcce90172cf51e224be36a2ebdea46371aa105d Mon Sep 17 00:00:00 2001 From: hkantare Date: Wed, 15 Nov 2023 13:56:04 +0530 Subject: [PATCH 34/58] Bump up version to 1.60.0-beta0 --- version/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/version.go b/version/version.go index df2bae8a6f..f1071a21bf 100644 --- a/version/version.go +++ b/version/version.go @@ -5,7 +5,7 @@ import ( ) // Version is the current provider main version -const Version = "1.59.0" +const Version = "1.60.0-beta0" // GitCommit is the git commit that was compiled. This will be filled in by the compiler. var GitCommit string From 2aad24a78870d50f86b87335c51020c00224dffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Szepesi?= <2dcube01@gmail.com> Date: Thu, 16 Nov 2023 06:51:11 +0100 Subject: [PATCH 35/58] Add entitlement option to Satellite cluster/workerpool create (#4894) * Add entitlement option to Satellite cluster/workerpool create * SSH pub key from env var * Use release github.com/IBM-Cloud/container-services-go-sdk --- go.mod | 2 +- go.sum | 2 + ibm/acctest/acctest.go | 17 ++ ...ource_ibm_satellite_cluster_worker_pool.go | 6 + .../resource_ibm_satellite_cluster.go | 11 ++ .../resource_ibm_satellite_cluster_test.go | 139 ++++++++++++++++ ...ource_ibm_satellite_cluster_worker_pool.go | 11 +- ..._ibm_satellite_cluster_worker_pool_test.go | 156 ++++++++++++++++++ ...atellite_cluster_worker_pool.html.markdown | 1 + .../docs/r/satellite_cluster.html.markdown | 1 + 10 files changed, 343 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index ee7a35fb38..9412a594f3 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/IBM-Cloud/bluemix-go v0.0.0-20231017073329-75ebe90c98ba - github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20230822142550-30562e113de9 + github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20231106114255-c50117860a3c github.com/IBM-Cloud/power-go-client v1.5.2 github.com/IBM/apigateway-go-sdk v0.0.0-20210714141226-a5d5d49caaca github.com/IBM/appconfiguration-go-admin-sdk v0.3.0 diff --git a/go.sum b/go.sum index 558bb22653..ea0d957ea6 100644 --- a/go.sum +++ b/go.sum @@ -104,6 +104,8 @@ github.com/IBM-Cloud/bluemix-go v0.0.0-20231017073329-75ebe90c98ba h1:8U4HByOYJi github.com/IBM-Cloud/bluemix-go v0.0.0-20231017073329-75ebe90c98ba/go.mod h1:mt+O8ryLVANrBKlA4RxKdENp3q6Q7mKQIi2nkiibZbU= github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20230822142550-30562e113de9 h1:sXRzCK3Glxpyu66Tu2NjztLdT5sDwj4qly+MJKRhdWY= github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20230822142550-30562e113de9/go.mod h1:xUQL9SGAjoZFd4GNjrjjtEpjpkgU7RFXRyHesbKTjiY= +github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20231106114255-c50117860a3c h1:tRS4VuOG3lHNG+yrsh3vZZQDVNLuFJB0oZbTJp9YXds= +github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20231106114255-c50117860a3c/go.mod h1:xUQL9SGAjoZFd4GNjrjjtEpjpkgU7RFXRyHesbKTjiY= github.com/IBM-Cloud/ibm-cloud-cli-sdk v0.5.3/go.mod h1:RiUvKuHKTBmBApDMUQzBL14pQUGKcx/IioKQPIcRQjs= github.com/IBM-Cloud/power-go-client v1.5.2 h1:p8+vY9+wtr4BIa2+Y4EVI0jlvRg+FLWsbOpWYNlKXDw= github.com/IBM-Cloud/power-go-client v1.5.2/go.mod h1:Vd8aSxWA30soUhE2U+tmzaYDUVNOmQE3/npny7BsN6Y= diff --git a/ibm/acctest/acctest.go b/ibm/acctest/acctest.go index 65e4440b75..7335b4bdeb 100644 --- a/ibm/acctest/acctest.go +++ b/ibm/acctest/acctest.go @@ -314,6 +314,11 @@ var ( CeResourceKeyID string ) +// Satellite tests +var ( + SatelliteSSHPubKey string +) + // for IAM Identity var IamIdentityAssignmentTargetAccountId string @@ -1525,6 +1530,11 @@ func init() { CeResourceKeyID = "" fmt.Println("[WARN] Set the environment variable IBM_CODE_ENGINE_RESOURCE_KEY_ID with the ID of a resource key to access a service instance") } + + SatelliteSSHPubKey = os.Getenv("IBM_SATELLITE_SSH_PUB_KEY") + if SatelliteSSHPubKey == "" { + fmt.Println("[WARN] Set the environment variable IBM_SATELLITE_SSH_PUB_KEY with a ssh public key or ibm_satellite_* tests may fail") + } } var ( @@ -1714,6 +1724,13 @@ func TestAccPreCheckScc(t *testing.T) { } } +func TestAccPreCheckSatelliteSSH(t *testing.T) { + TestAccPreCheck(t) + if SatelliteSSHPubKey == "" { + t.Fatal("IBM_SATELLITE_SSH_PUB_KEY missing. Set the environment variable IBM_SATELLITE_SSH_PUB_KEY with a VALID ssh public key") + } +} + func TestAccProviderFactories() map[string]func() (*schema.Provider, error) { return map[string]func() (*schema.Provider, error){ ProviderName: func() (*schema.Provider, error) { return provider.Provider(), nil }, diff --git a/ibm/service/satellite/data_source_ibm_satellite_cluster_worker_pool.go b/ibm/service/satellite/data_source_ibm_satellite_cluster_worker_pool.go index ccffa17cea..e56f585ea9 100644 --- a/ibm/service/satellite/data_source_ibm_satellite_cluster_worker_pool.go +++ b/ibm/service/satellite/data_source_ibm_satellite_cluster_worker_pool.go @@ -97,6 +97,11 @@ func DataSourceIBMSatelliteClusterWorkerPool() *schema.Resource { Computed: true, Description: "Enable auto scalling for worker pool", }, + "openshift_license_source": { + Type: schema.TypeString, + Computed: true, + Description: "License source for Openshift", + }, }, } } @@ -154,6 +159,7 @@ func dataSourceIBMSatelliteClusterWorkerPoolRead(d *schema.ResourceData, meta in d.Set("auto_scale_enabled", *workerPool.AutoscaleEnabled) d.Set("state", *workerPool.Lifecycle.ActualState) d.Set("isolation", *workerPool.Isolation) + d.Set("openshift_license_source", *workerPool.OpenshiftLicense) d.SetId(*workerPool.ID) return nil diff --git a/ibm/service/satellite/resource_ibm_satellite_cluster.go b/ibm/service/satellite/resource_ibm_satellite_cluster.go index 27ad6d268b..98177e1b0c 100644 --- a/ibm/service/satellite/resource_ibm_satellite_cluster.go +++ b/ibm/service/satellite/resource_ibm_satellite_cluster.go @@ -124,6 +124,12 @@ func ResourceIBMSatelliteCluster() *schema.Resource { }, Description: "The OpenShift Container Platform version", }, + "entitlement": { + Type: schema.TypeString, + Optional: true, + DiffSuppressFunc: flex.ApplyOnce, + Description: "Entitlement option reduces additional OCP Licence cost in Openshift Clusters", + }, "operating_system": { Type: schema.TypeString, Optional: true, @@ -390,6 +396,11 @@ func resourceIBMSatelliteClusterCreate(d *schema.ResourceData, meta interface{}) createClusterOptions.Labels = hostLabels } + if v, ok := d.GetOk("entitlement"); ok { + entitlement := v.(string) + createClusterOptions.DefaultWorkerPoolEntitlement = &entitlement + } + if v, ok := d.GetOk("crn_token"); ok { crnToken := v.(string) createRemoteClusterOptions := &kubernetesserviceapiv1.CreateSatelliteClusterRemoteOptions{} diff --git a/ibm/service/satellite/resource_ibm_satellite_cluster_test.go b/ibm/service/satellite/resource_ibm_satellite_cluster_test.go index 548ae6b18d..76752e640c 100644 --- a/ibm/service/satellite/resource_ibm_satellite_cluster_test.go +++ b/ibm/service/satellite/resource_ibm_satellite_cluster_test.go @@ -81,6 +81,36 @@ ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVE }) } +func TestAccSatelliteCluster_Entitlement(t *testing.T) { + var instance string + clusterName := fmt.Sprintf("tf-satellitecluster-%d", acctest.RandIntRange(10, 100)) + locationName := fmt.Sprintf("tf-satellitelocation-%d", acctest.RandIntRange(10, 100)) + managed_from := "dal10" + operatingSystem := "REDHAT_8_64" + zones := []string{"us-south-1", "us-south-2", "us-south-3"} + resource_group := "default" + region := "us-south" + resource_prefix := "tf-satellite" + host_provider := "ibm" + publicKey := acc.SatelliteSSHPubKey + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheckSatelliteSSH(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckSatelliteClusterDestroy, + Steps: []resource.TestStep{ + + { + Config: testAccCheckSatelliteEntitlementClusterCreate(clusterName, locationName, managed_from, operatingSystem, resource_group, resource_prefix, region, publicKey, host_provider, zones), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckSatelliteClusterExists("ibm_satellite_cluster.create_cluster", instance), + resource.TestCheckResourceAttr("data.ibm_satellite_cluster_worker_pool.read_default_wp", "openshift_license_source", "cloud_pak"), + ), + }, + }, + }) +} + func TestAccSatelliteCluster_Import(t *testing.T) { var instance string clusterName := fmt.Sprintf("tf-satellitecluster-%d", acctest.RandIntRange(10, 100)) @@ -382,3 +412,112 @@ func testAccCheckSatelliteSingleNodeClusterCreate(clusterName, locationName, man `, locationName, managed_from, resource_group, resource_prefix, resource_prefix, region, resource_prefix, publicKey, resource_prefix, region, resource_prefix, host_provider, clusterName) } + +func testAccCheckSatelliteEntitlementClusterCreate(clusterName, locationName, managed_from, operatingSystem, resource_group, resource_prefix, region, publicKey, host_provider string, zones []string) string { + return fmt.Sprintf(` + + variable "location_zones" { + description = "Allocate your hosts across these three zones" + type = list(string) + default = ["us-south-1", "us-south-2", "us-south-3"] + } + + data "ibm_is_image" "rhel8" { + name = "ibm-redhat-8-8-minimal-amd64-2" + } + + resource "ibm_satellite_location" "location" { + location = "%s" + managed_from = "%s" + zones = var.location_zones + coreos_enabled = true + } + + data "ibm_satellite_attach_host_script" "script" { + location = ibm_satellite_location.location.id + labels = ["env:prod"] + host_provider = "ibm" + } + + data "ibm_resource_group" "resource_group" { + name = "%s" + } + + resource "ibm_is_vpc" "satellite_vpc" { + name = "%s-vpc-1" + } + + resource "ibm_is_subnet" "satellite_subnet" { + count = 3 + + name = "%s-subnet-${count.index}" + vpc = ibm_is_vpc.satellite_vpc.id + total_ipv4_address_count = 256 + zone = "%s-${count.index + 1}" + } + + resource "ibm_is_ssh_key" "satellite_ssh" { + name = "%s-ibm-ssh" + public_key = "%s" + } + + resource "ibm_is_instance" "satellite_instance" { + count = 3 + + name = "%s-instance-${count.index}" + vpc = ibm_is_vpc.satellite_vpc.id + zone = "%s-${count.index + 1}" + image = data.ibm_is_image.rhel8.id + profile = "mx2-8x64" + keys = [ibm_is_ssh_key.satellite_ssh.id] + resource_group = data.ibm_resource_group.resource_group.id + user_data = data.ibm_satellite_attach_host_script.script.host_script + + primary_network_interface { + subnet = ibm_is_subnet.satellite_subnet[count.index].id + } + } + + resource "ibm_is_floating_ip" "satellite_ip" { + count = 3 + + name = "%s-fip-${count.index}" + target = ibm_is_instance.satellite_instance[count.index].primary_network_interface[0].id + } + + resource "ibm_satellite_host" "assign_host" { + count = 3 + + location = ibm_satellite_location.location.id + host_id = element(ibm_is_instance.satellite_instance[*].name, count.index) + labels = ["env:prod"] + zone = element(var.location_zones, count.index) + host_provider = "%s" + } + + resource "ibm_satellite_cluster" "create_cluster" { + name = "%s" + location = ibm_satellite_host.assign_host.0.location + enable_config_admin = true + kube_version = "4.13_openshift" + operating_system = "%s" + entitlement = "cloud_pak" + wait_for_worker_update = true + dynamic "zones" { + for_each = var.location_zones + content { + id = zones.value + } + } + default_worker_pool_labels = { + "test" = "test-pool1" + "test1" = "test-pool2" + } + } + + data "ibm_satellite_cluster_worker_pool" "read_default_wp" { + name = "default" + cluster = ibm_satellite_cluster.create_cluster.id + } +`, locationName, managed_from, resource_group, resource_prefix, resource_prefix, region, resource_prefix, publicKey, resource_prefix, region, resource_prefix, host_provider, clusterName, operatingSystem) +} diff --git a/ibm/service/satellite/resource_ibm_satellite_cluster_worker_pool.go b/ibm/service/satellite/resource_ibm_satellite_cluster_worker_pool.go index e94f270b59..e02f41ed12 100644 --- a/ibm/service/satellite/resource_ibm_satellite_cluster_worker_pool.go +++ b/ibm/service/satellite/resource_ibm_satellite_cluster_worker_pool.go @@ -109,8 +109,10 @@ func ResourceIBMSatelliteClusterWorkerPool() *schema.Resource { Computed: true, }, "entitlement": { - Type: schema.TypeString, - Optional: true, + Type: schema.TypeString, + Optional: true, + DiffSuppressFunc: flex.ApplyOnce, + Description: "Entitlement option reduces additional OCP Licence cost in Openshift Clusters", }, "operating_system": { Type: schema.TypeString, @@ -261,6 +263,11 @@ func resourceIBMSatelliteClusterWorkerPoolCreate(d *schema.ResourceData, meta in createWorkerPoolOptions.Isolation = &isolation } + if v, ok := d.GetOk("entitlement"); ok { + entitlement := v.(string) + createWorkerPoolOptions.Entitlement = &entitlement + } + instance, response, err := satClient.CreateSatelliteWorkerPool(createWorkerPoolOptions) if err != nil { return fmt.Errorf("[ERROR] Error Creating Satellite cluster worker pool: %s\n%s", err, response) diff --git a/ibm/service/satellite/resource_ibm_satellite_cluster_worker_pool_test.go b/ibm/service/satellite/resource_ibm_satellite_cluster_worker_pool_test.go index 9b7d163091..6b79c1c144 100644 --- a/ibm/service/satellite/resource_ibm_satellite_cluster_worker_pool_test.go +++ b/ibm/service/satellite/resource_ibm_satellite_cluster_worker_pool_test.go @@ -44,6 +44,35 @@ func TestAccSatelliteClusterWorkerPool_Basic(t *testing.T) { }) } +func TestAccSatelliteClusterWorkerPool_Entitlement(t *testing.T) { + var instance string + clusterName := fmt.Sprintf("tf-satellitecluster-%d", acctest.RandIntRange(10, 100)) + locationName := fmt.Sprintf("tf-satellitelocation-%d", acctest.RandIntRange(10, 100)) + operatingSystem := "REDHAT_8_64" + workerPoolName := fmt.Sprintf("tf-wp-%d", acctest.RandIntRange(10, 100)) + resource_prefix := "tf-satellite" + publicKey := acc.SatelliteSSHPubKey + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheckSatelliteSSH(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckSatelliteClusterWorkerPoolDestroy, + Steps: []resource.TestStep{ + + { + Config: testAccCheckSatelliteClusterWorkerPoolCreateEntitlement(clusterName, locationName, operatingSystem, workerPoolName, resource_prefix, publicKey), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckSatelliteClusterWorkerPoolExists("ibm_satellite_cluster_worker_pool.create_wp", instance), + resource.TestCheckResourceAttr("ibm_satellite_cluster.create_cluster", "name", clusterName), + resource.TestCheckResourceAttr("ibm_satellite_cluster_worker_pool.create_wp", "name", workerPoolName), + resource.TestCheckResourceAttr("ibm_satellite_cluster_worker_pool.create_wp", "operating_system", operatingSystem), + resource.TestCheckResourceAttr("data.ibm_satellite_cluster_worker_pool.read_created_wp", "openshift_license_source", "cloud_pak"), + ), + }, + }, + }) +} + func TestAccSatelliteClusterWorkerPool_Import(t *testing.T) { var instance string clusterName := fmt.Sprintf("tf-satellitecluster-%d", acctest.RandIntRange(10, 100)) @@ -262,3 +291,130 @@ func testAccCheckSatelliteClusterWorkerPoolCreate(clusterName, locationName, ope `, locationName, resource_prefix, resource_prefix, resource_prefix, resource_prefix, resource_prefix, clusterName, workerPoolName, operatingSystem) } + +func testAccCheckSatelliteClusterWorkerPoolCreateEntitlement(clusterName, locationName, operatingSystem, workerPoolName, resource_prefix, publicKey string) string { + return fmt.Sprintf(` + + variable "location_zones" { + description = "Allocate your hosts across these three zones" + type = list(string) + default = ["us-south-1", "us-south-2", "us-south-3"] + } + + resource "ibm_satellite_location" "location" { + location = "%s" + managed_from = "dal10" + zones = var.location_zones + coreos_enabled = true + } + + data "ibm_is_image" "rhel8" { + name = "ibm-redhat-8-8-minimal-amd64-2" + } + + data "ibm_satellite_attach_host_script" "script" { + location = ibm_satellite_location.location.id + labels = ["env:prod"] + host_provider = "ibm" + } + + data "ibm_resource_group" "resource_group" { + is_default = true + } + + resource "ibm_is_vpc" "satellite_vpc" { + name = "%s-vpc-1" + } + + resource "ibm_is_subnet" "satellite_subnet" { + count = 3 + + name = "%s-subnet-${count.index}" + vpc = ibm_is_vpc.satellite_vpc.id + total_ipv4_address_count = 256 + zone = "us-south-${count.index + 1}" + } + + resource "ibm_is_ssh_key" "satellite_ssh" { + name = "%s-ibm-ssh" + public_key = "%s" + } + + resource "ibm_is_instance" "satellite_instance" { + count = 3 + + name = "%s-instance-${count.index}" + vpc = ibm_is_vpc.satellite_vpc.id + zone = "us-south-${count.index + 1}" + image = data.ibm_is_image.rhel8.id + profile = "mx2-8x64" + keys = [ibm_is_ssh_key.satellite_ssh.id] + resource_group = data.ibm_resource_group.resource_group.id + user_data = data.ibm_satellite_attach_host_script.script.host_script + + primary_network_interface { + subnet = ibm_is_subnet.satellite_subnet[count.index].id + } + } + + resource "ibm_is_floating_ip" "satellite_ip" { + count = 3 + + name = "%s-fip-${count.index}" + target = ibm_is_instance.satellite_instance[count.index].primary_network_interface[0].id + } + + resource "ibm_satellite_host" "assign_host" { + count = 3 + + location = ibm_satellite_location.location.id + host_id = element(ibm_is_instance.satellite_instance[*].name, count.index) + labels = ["env:prod"] + zone = element(var.location_zones, count.index) + host_provider = "ibm" + } + + resource "ibm_satellite_cluster" "create_cluster" { + name = "%s" + location = ibm_satellite_location.location.id + enable_config_admin = true + kube_version = "4.13_openshift" + wait_for_worker_update = true + dynamic "zones" { + for_each = var.location_zones + content { + id = zones.value + } + } + default_worker_pool_labels = { + "test" = "test-pool1" + "test1" = "test-pool2" + } + } + + resource "ibm_satellite_cluster_worker_pool" "create_wp" { + name = "%s" + cluster = ibm_satellite_cluster.create_cluster.id + worker_count = 1 + host_labels = ["env:dev"] + operating_system = "%s" + entitlement = "cloud_pak" + dynamic "zones" { + for_each = var.location_zones + content { + id = zones.value + } + } + worker_pool_labels = { + "test" = "test-pool1" + "test1" = "test-pool2" + } + } + + data "ibm_satellite_cluster_worker_pool" "read_created_wp" { + name = ibm_satellite_cluster_worker_pool.create_wp.name + cluster = ibm_satellite_cluster.create_cluster.id + } + +`, locationName, resource_prefix, resource_prefix, resource_prefix, publicKey, resource_prefix, resource_prefix, clusterName, workerPoolName, operatingSystem) +} diff --git a/website/docs/d/satellite_cluster_worker_pool.html.markdown b/website/docs/d/satellite_cluster_worker_pool.html.markdown index e8030c7eec..b1b4be49e0 100644 --- a/website/docs/d/satellite_cluster_worker_pool.html.markdown +++ b/website/docs/d/satellite_cluster_worker_pool.html.markdown @@ -49,3 +49,4 @@ In addition to all argument references list, you can access the following attrib - `isolation` - (String) Isolation of the worker node. - `auto_scale_enabled` - (String) Enable auto scalling for worker pool. - `worker_count` - (String) The number of workers that are attached. +- `openshift_license_source` - (String) The license source for OpenShift. diff --git a/website/docs/r/satellite_cluster.html.markdown b/website/docs/r/satellite_cluster.html.markdown index b01648bd64..b4d8a42038 100644 --- a/website/docs/r/satellite_cluster.html.markdown +++ b/website/docs/r/satellite_cluster.html.markdown @@ -50,6 +50,7 @@ Review the argument references that you can specify for your resource. - `location` - (Required, String) The name or ID of the Satellite location. - `kube_version` - (Optional, String) The Red Hart OpenShift Container Platform version. - `operating_system` - (Optional, String) Operating system of the default worker pool. Options are REDHAT_7_64, REDHAT_8_64, or RHCOS. +- `entitlement` - (Optional, String) Entitlement reduces additional OCP Licence cost in OpenShift clusters. Use Cloud Pak with OCP Licence entitlement to create the OpenShift cluster. **Note**
  • It is set only when the first time creation of the cluster, further modifications are not impacted.
  • Set this argument to `cloud_pak` only if you use the cluster with a Cloud Pak that has an OpenShift entitlement.
. - `zones` - (Optional, Array of Strings) The name of the zones to create the default worker pool. - `worker_count` - (Optional, String) The number of worker nodes to create per zone in the default worker pool. - `enable_config_admin` - (Optional, Bool) User provided value to indicate opt-in agreement to SatCon admin agent. From b5aebaff7fdb41996652c9b4267ad1b0d8232f0c Mon Sep 17 00:00:00 2001 From: Jason Peterson Date: Thu, 16 Nov 2023 23:39:27 -0500 Subject: [PATCH 36/58] Add Code Engine domain mapping (#4912) * Add Code Engine domain mapping * fixed formatting by running gofmt * some test cleanup --- .secrets.baseline | 42 +- examples/ibm-code-engine/README.md | 28 +- examples/ibm-code-engine/main.tf | 19 +- examples/ibm-code-engine/outputs.tf | 6 + examples/ibm-code-engine/variables.tf | 6 + go.mod | 15 +- go.sum | 38 +- ibm/acctest/acctest.go | 39 +- ibm/provider/provider.go | 45 +- ...a_source_ibm_code_engine_domain_mapping.go | 219 +++++++++ ...rce_ibm_code_engine_domain_mapping_test.go | 107 ++++ ...data_source_ibm_code_engine_secret_test.go | 46 +- ...resource_ibm_code_engine_domain_mapping.go | 457 ++++++++++++++++++ ...rce_ibm_code_engine_domain_mapping_test.go | 220 +++++++++ .../resource_ibm_code_engine_secret_test.go | 51 +- .../code_engine_domain_mapping.html.markdown | 75 +++ .../code_engine_domain_mapping.html.markdown | 92 ++++ 17 files changed, 1407 insertions(+), 98 deletions(-) create mode 100644 ibm/service/codeengine/data_source_ibm_code_engine_domain_mapping.go create mode 100644 ibm/service/codeengine/data_source_ibm_code_engine_domain_mapping_test.go create mode 100644 ibm/service/codeengine/resource_ibm_code_engine_domain_mapping.go create mode 100644 ibm/service/codeengine/resource_ibm_code_engine_domain_mapping_test.go create mode 100644 website/docs/d/code_engine_domain_mapping.html.markdown create mode 100644 website/docs/r/code_engine_domain_mapping.html.markdown diff --git a/.secrets.baseline b/.secrets.baseline index e66f38481c..c90644602f 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -3,7 +3,7 @@ "files": "go.mod|go.sum|.*.map|^.secrets.baseline$", "lines": null }, - "generated_at": "2023-11-09T17:56:16Z", + "generated_at": "2023-11-10T20:51:53Z", "plugins_used": [ { "name": "AWSKeyDetector" @@ -428,7 +428,15 @@ "hashed_secret": "dc61ac50e6f36d09340d8ca062da1f0d4215004f", "is_secret": false, "is_verified": false, - "line_number": 61, + "line_number": 62, + "type": "Secret Keyword", + "verified_result": null + }, + { + "hashed_secret": "f4adb76dda1dc36da0e225b8477887a30e7346c9", + "is_secret": false, + "is_verified": false, + "line_number": 131, "type": "Secret Keyword", "verified_result": null } @@ -752,7 +760,7 @@ "hashed_secret": "731438016c5ab94431f61820f35e3ae5f8ad6004", "is_secret": false, "is_verified": false, - "line_number": 402, + "line_number": 412, "type": "Secret Keyword", "verified_result": null }, @@ -760,7 +768,7 @@ "hashed_secret": "12da2e35d6b50c902c014f1ab9e3032650368df7", "is_secret": false, "is_verified": false, - "line_number": 408, + "line_number": 418, "type": "Secret Keyword", "verified_result": null }, @@ -768,7 +776,7 @@ "hashed_secret": "813274ccae5b6b509379ab56982d862f7b5969b6", "is_secret": false, "is_verified": false, - "line_number": 1120, + "line_number": 1123, "type": "Base64 High Entropy String", "verified_result": null } @@ -856,7 +864,7 @@ "hashed_secret": "c8b6f5ef11b9223ac35a5663975a466ebe7ebba9", "is_secret": false, "is_verified": false, - "line_number": 1797, + "line_number": 1803, "type": "Secret Keyword", "verified_result": null }, @@ -864,7 +872,7 @@ "hashed_secret": "8abf4899c01104241510ba87685ad4de76b0c437", "is_secret": false, "is_verified": false, - "line_number": 1803, + "line_number": 1809, "type": "Secret Keyword", "verified_result": null } @@ -1803,14 +1811,6 @@ "line_number": 75, "type": "Secret Keyword", "verified_result": null - }, - { - "hashed_secret": "1348b145fa1a555461c1b790a2f66614781091e9", - "is_secret": false, - "is_verified": false, - "line_number": 153, - "type": "Private Key", - "verified_result": null } ], "ibm/service/codeengine/resource_ibm_code_engine_app.go": [ @@ -1941,14 +1941,6 @@ "line_number": 135, "type": "Secret Keyword", "verified_result": null - }, - { - "hashed_secret": "1348b145fa1a555461c1b790a2f66614781091e9", - "is_secret": false, - "is_verified": false, - "line_number": 276, - "type": "Private Key", - "verified_result": null } ], "ibm/service/contextbasedrestrictions/data_source_ibm_cbr_rule_test.go": [ @@ -2164,7 +2156,7 @@ "hashed_secret": "68ab9ef0953865fef0558010a9f7afcef110d5b8", "is_secret": false, "is_verified": false, - "line_number": 270, + "line_number": 271, "type": "Secret Keyword", "verified_result": null }, @@ -2172,7 +2164,7 @@ "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", "is_secret": false, "is_verified": false, - "line_number": 335, + "line_number": 336, "type": "Secret Keyword", "verified_result": null } diff --git a/examples/ibm-code-engine/README.md b/examples/ibm-code-engine/README.md index 7e02d44418..952868955c 100644 --- a/examples/ibm-code-engine/README.md +++ b/examples/ibm-code-engine/README.md @@ -8,6 +8,7 @@ The following types of resources are supported: * code_engine_binding * code_engine_build * code_engine_config_map +* code_engine_domain_mapping * code_engine_job * code_engine_project * code_engine_secret @@ -117,6 +118,20 @@ resource "ibm_code_engine_binding" "code_engine_secret_instance" { } ``` +code_engine_domain_mapping resource: + +```hcl +resource "ibm_code_engine_domain_mapping" "code_engine_domain_mapping_instance" { + project_id = var.code_engine_project_id + name = var.code_engine_domain_mapping_name + component { + name = var.code_engine_domain_mapping_component_name + resource_type = var.code_engine_domain_mapping_component_resource_type + } + tls_secret = var.code_engine_binding_secret_name +} +``` + ## CodeEngineV2 Data sources code_engine_project data source: @@ -176,12 +191,21 @@ data "ibm_code_engine_secret" "code_engine_secret_instance" { code_engine_binding data source: ```hcl -data "ibm_code_engine_secret" "code_engine_secret_instance" { +data "ibm_code_engine_binding" "code_engine_binding_instance" { project_id = var.code_engine_project_id binding_id = var.code_engine_binding_id } ``` +code_engine_domain_mapping data source: + +```hcl +data "ibm_code_engine_domain_mapping" "code_engine_domain_mapping_instance" { + project_id = var.code_engine_project_id + name = var.code_engine_domain_mapping_name +} +``` + ## Inputs | Name | Description | Type | Required | @@ -234,6 +258,7 @@ data "ibm_code_engine_secret" "code_engine_secret_instance" { | resource_group_id | Optional ID of the resource group for your project deployment. If this field is not defined, the default resource group of the account will be used. | `string` | false | | format | Specify the format of the secret. | `string` | true | | service_access | Properties for Service Access Secret Prototypes. | `` | false | +| tls_secret | The name of the TLS secret that holds the certificate and private key of the domain mapping. | `string` | true | ## Outputs @@ -244,5 +269,6 @@ data "ibm_code_engine_secret" "code_engine_secret_instance" { | code_engine_binding | code_engine_binding object | | code_engine_build | code_engine_build object | | code_engine_config_map | code_engine_config_map object | +| code_engine_domain_mapping | code_engine_domain_mapping object | | code_engine_job | code_engine_job object | | code_engine_secret | code_engine_secret object | diff --git a/examples/ibm-code-engine/main.tf b/examples/ibm-code-engine/main.tf index ffb78487b2..e196dbfd81 100644 --- a/examples/ibm-code-engine/main.tf +++ b/examples/ibm-code-engine/main.tf @@ -65,7 +65,6 @@ resource "ibm_code_engine_job" "code_engine_job_instance" { } // Provision code_engine_secret resource instance for format service_access - resource "ibm_code_engine_secret" "code_engine_secret_service_access" { project_id = ibm_code_engine_project.code_engine_project_instance.project_id name = var.code_engine_secret_service_access_name @@ -85,7 +84,6 @@ resource "ibm_code_engine_secret" "code_engine_secret_service_access" { } // Provision code_engine_binding resource instance - resource "ibm_code_engine_binding" "code_engine_binding_instance" { project_id = ibm_code_engine_project.code_engine_project_instance.project_id component { @@ -96,6 +94,17 @@ resource "ibm_code_engine_binding" "code_engine_binding_instance" { secret_name = ibm_code_engine_secret.code_engine_secret_instance.name } +// Provision code_engine_domain_mapping resource instance +resource "ibm_code_engine_domain_mapping" "code_engine_domain_mapping_instance" { + project_id = ibm_code_engine_project.code_engine_project_instance.project_id + name = var.code_engine_domain_mapping_name + component { + name = ibm_code_engine_app.code_engine_app_instance.name + resource_type = ibm_code_engine_app.code_engine_app_instance.resource_type + } + tls_secret = ibm_code_engine_secret.code_engine_secret_instance.name +} + ////////////////// // Data sources @@ -139,3 +148,9 @@ data "ibm_code_engine_binding" "code_engine_binding_data" { project_id = data.ibm_code_engine_project.code_engine_project_data.project_id binding_id = ibm_code_engine_binding.code_engine_binding_instance.binding_id } + +// Create code_engine_domain_mapping data source +data "ibm_code_engine_domain_mapping" "code_engine_domain_mapping_data" { + project_id = data.ibm_code_engine_project.code_engine_project_data.project_id + name = var.code_engine_domain_mapping_name +} diff --git a/examples/ibm-code-engine/outputs.tf b/examples/ibm-code-engine/outputs.tf index 5e06c6750b..7126482655 100644 --- a/examples/ibm-code-engine/outputs.tf +++ b/examples/ibm-code-engine/outputs.tf @@ -42,3 +42,9 @@ output "ibm_code_engine_binding" { value = ibm_code_engine_binding.code_engine_binding_instance description = "code_engine_binding resource instance" } +// This allows code_engine_domain_mapping data to be referenced by other resources and the terraform CLI +// Modify this if only certain data should be exposed +output "ibm_code_engine_domain_mapping" { + value = ibm_code_engine_domain_mapping.code_engine_domain_mapping_instance + description = "code_engine_domain_mapping resource instance" +} diff --git a/examples/ibm-code-engine/variables.tf b/examples/ibm-code-engine/variables.tf index 15621a89fe..86f1b0a770 100644 --- a/examples/ibm-code-engine/variables.tf +++ b/examples/ibm-code-engine/variables.tf @@ -119,6 +119,12 @@ variable "code_engine_binding_prefix" { default = "MY_PREFIX" } +// Resource arguments for code_engine_domain_mapping +variable "code_engine_domain_mapping_name" { + description = "The name of the domain mapping." + type = string +} + // Data source arguments for code_engine_project variable "code_engine_project_id" { description = "The ID of the project." diff --git a/go.mod b/go.mod index 9412a594f3..db250f0b40 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/IBM/appid-management-go-sdk v0.0.0-20210908164609-dd0e0eaf732f github.com/IBM/cloud-databases-go-sdk v0.3.2 github.com/IBM/cloudant-go-sdk v0.0.43 - github.com/IBM/code-engine-go-sdk v0.0.0-20230606173928-4863db061918 + github.com/IBM/code-engine-go-sdk v0.0.0-20231106200405-99e81b3ee752 github.com/IBM/container-registry-go-sdk v1.1.0 github.com/IBM/continuous-delivery-go-sdk v1.3.0 github.com/IBM/event-notifications-go-admin-sdk v0.2.7 @@ -40,7 +40,7 @@ require ( github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32 github.com/go-openapi/strfmt v0.21.7 github.com/golang-jwt/jwt v3.2.2+incompatible - github.com/google/go-cmp v0.5.9 + github.com/google/go-cmp v0.6.0 github.com/google/uuid v1.3.0 github.com/hashicorp/go-uuid v1.0.3 github.com/hashicorp/go-version v1.6.0 @@ -94,7 +94,8 @@ require ( github.com/evanphx/json-patch/v5 v5.6.0 // indirect github.com/fatih/color v1.15.0 // indirect github.com/frankban/quicktest v1.14.3 // indirect - github.com/fsnotify/fsnotify v1.6.0 // indirect + github.com/fsnotify/fsnotify v1.7.0 // indirect + github.com/gabriel-vasile/mimetype v1.4.2 // indirect github.com/go-jose/go-jose/v3 v3.0.0 // indirect github.com/go-logr/logr v1.2.4 // indirect github.com/go-logr/stdr v1.2.2 // indirect @@ -110,7 +111,7 @@ require ( github.com/go-ozzo/ozzo-validation/v4 v4.3.0 // indirect github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect - github.com/go-playground/validator/v10 v10.13.0 // indirect + github.com/go-playground/validator/v10 v10.15.5 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/golang/snappy v0.0.4 // indirect @@ -125,7 +126,7 @@ require ( github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/hashicorp/go-plugin v1.5.0 // indirect - github.com/hashicorp/go-retryablehttp v0.7.2 // indirect + github.com/hashicorp/go-retryablehttp v0.7.4 // indirect github.com/hashicorp/go-rootcerts v1.0.2 // indirect github.com/hashicorp/go-secure-stdlib/parseutil v0.1.7 // indirect github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect @@ -159,7 +160,7 @@ require ( github.com/json-iterator/go v1.1.12 // indirect github.com/klauspost/compress v1.16.7 // indirect github.com/kube-object-storage/lib-bucket-provisioner v0.0.0-20221122204822-d1a8c34382f1 // indirect - github.com/leodido/go-urn v1.2.3 // indirect + github.com/leodido/go-urn v1.2.4 // indirect github.com/libopenstorage/secrets v0.0.0-20220823020833-2ecadaf59d8a // indirect github.com/mailru/easyjson v0.7.7 // indirect github.com/mattn/go-colorable v0.1.13 // indirect @@ -198,7 +199,7 @@ require ( github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect github.com/vmihailenco/tagparser v0.1.1 // indirect github.com/zclconf/go-cty v1.11.0 // indirect - go.mongodb.org/mongo-driver v1.11.6 // indirect + go.mongodb.org/mongo-driver v1.12.1 // indirect go.opentelemetry.io/otel v1.14.0 // indirect go.opentelemetry.io/otel/trace v1.14.0 // indirect go.uber.org/ratelimit v0.2.0 // indirect diff --git a/go.sum b/go.sum index ea0d957ea6..958008a15c 100644 --- a/go.sum +++ b/go.sum @@ -121,8 +121,8 @@ github.com/IBM/cloud-databases-go-sdk v0.3.2 h1:AUi7/xswqCwuXIlSyuXtDZJIm4d0ZicU github.com/IBM/cloud-databases-go-sdk v0.3.2/go.mod h1:nCIVfeZnhBYIiwByT959dFP4VWUeNLxomDYy63tTC6M= github.com/IBM/cloudant-go-sdk v0.0.43 h1:YxTy4RpAEezX32YIWnds76hrBREmO4u6IkBz1WylNuQ= github.com/IBM/cloudant-go-sdk v0.0.43/go.mod h1:WeYrJPaHTw19943ndWnVfwMIlZ5z0XUM2uEXNBrwZ1M= -github.com/IBM/code-engine-go-sdk v0.0.0-20230606173928-4863db061918 h1:RfHezAVs3HegiGOcMmTXqsBPqZqfwZZHqje1EMriHBQ= -github.com/IBM/code-engine-go-sdk v0.0.0-20230606173928-4863db061918/go.mod h1:IP6U/1NxgxzPeYdyiEwMaZyzelTw82JGHWl7bY78eQM= +github.com/IBM/code-engine-go-sdk v0.0.0-20231106200405-99e81b3ee752 h1:S5NT0aKKUqd9hnIrPN/qUijKx9cZjJi3kfFpog0ByDA= +github.com/IBM/code-engine-go-sdk v0.0.0-20231106200405-99e81b3ee752/go.mod h1:noWxHQUgW9msjOrDpV17gnwWbTbUlSmWMGq7/Vi/n9I= github.com/IBM/container-registry-go-sdk v1.1.0 h1:sYyknIod8R4RJZQqAheiduP6wbSTphE9Ag8ho28yXjc= github.com/IBM/container-registry-go-sdk v1.1.0/go.mod h1:4TwsCnQtVfZ4Vkapy/KPvQBKFc3VOyUZYkwRU4FTPrs= github.com/IBM/continuous-delivery-go-sdk v1.3.0 h1:WsILMVpNWD/5G40ltWeXbOj4y5ODQSq1hKXAnDJuNjw= @@ -448,9 +448,11 @@ github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3 github.com/frankban/quicktest v1.14.3/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= -github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= +github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= github.com/fullsailor/pkcs7 v0.0.0-20190404230743-d7302db945fa/go.mod h1:KnogPXtdwXqoenmZCw6S+25EAm2MkxbG0deNDu4cbSA= +github.com/gabriel-vasile/mimetype v1.4.2 h1:w5qFW6JKBz9Y393Y4q372O9A7cUSequkh1Q7OhCmWKU= +github.com/gabriel-vasile/mimetype v1.4.2/go.mod h1:zApsH/mKG4w07erKIaJPFiX0Tsq9BFQgN3qGY5GnNgA= github.com/gammazero/deque v0.0.0-20190130191400-2afb3858e9c7/go.mod h1:GeIq9qoE43YdGnDXURnmKTnGg15pQz4mYkXSTChbneI= github.com/gammazero/workerpool v0.0.0-20190406235159-88d534f22b56/go.mod h1:w9RqFVO2BM3xwWEcAB8Fwp0OviTBBEiRmSBDfbXnd3w= github.com/getkin/kin-openapi v0.76.0/go.mod h1:660oXbgy5JFMKreazJaQTw7o+X00qeSyhcnluiMv+Xg= @@ -598,8 +600,8 @@ github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+ github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA= github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY= github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY= -github.com/go-playground/validator/v10 v10.13.0 h1:cFRQdfaSMCOSfGCCLB20MHvuoHb/s5G8L5pu2ppK5AQ= -github.com/go-playground/validator/v10 v10.13.0/go.mod h1:dwu7+CG8/CtBiJFZDz4e+5Upb6OLw04gtBYw0mcG/z4= +github.com/go-playground/validator/v10 v10.15.5 h1:LEBecTWb/1j5TNY1YYG2RcOUN3R7NLylN+x8TTueE24= +github.com/go-playground/validator/v10 v10.15.5/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU= github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE= @@ -711,8 +713,9 @@ github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ= github.com/google/go-metrics-stackdriver v0.2.0 h1:rbs2sxHAPn2OtUj9JdR/Gij1YKGl0BTVD0augB+HEjE= github.com/google/go-metrics-stackdriver v0.2.0/go.mod h1:KLcPyp3dWJAFD+yHisGlJSZktIsTjb50eB72U2YZ9K0= @@ -856,8 +859,8 @@ github.com/hashicorp/go-retryablehttp v0.6.2/go.mod h1:gEx6HMUGxYYhJScX7W1Il64m6 github.com/hashicorp/go-retryablehttp v0.6.6/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY= github.com/hashicorp/go-retryablehttp v0.7.0/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY= github.com/hashicorp/go-retryablehttp v0.7.1/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY= -github.com/hashicorp/go-retryablehttp v0.7.2 h1:AcYqCvkpalPnPF2pn0KamgwamS42TqUDDYFRKq/RAd0= -github.com/hashicorp/go-retryablehttp v0.7.2/go.mod h1:Jy/gPYAdjqffZ/yFGCFV2doI5wjtH1ewM9u8iYVjtX8= +github.com/hashicorp/go-retryablehttp v0.7.4 h1:ZQgVdpTdAL7WpMIwLzCfbalOcSUdkDZnpUv3/+BxzFA= +github.com/hashicorp/go-retryablehttp v0.7.4/go.mod h1:Jy/gPYAdjqffZ/yFGCFV2doI5wjtH1ewM9u8iYVjtX8= github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= github.com/hashicorp/go-rootcerts v1.0.1/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= github.com/hashicorp/go-rootcerts v1.0.2 h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc= @@ -1112,8 +1115,8 @@ github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LE github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY= -github.com/leodido/go-urn v1.2.3 h1:6BE2vPT0lqoz3fmOesHZiaiFh7889ssCo2GMvLCfiuA= -github.com/leodido/go-urn v1.2.3/go.mod h1:7ZrI8mTSeBSHl/UaRyKQW1qZeMgak41ANeCNaVckg+4= +github.com/leodido/go-urn v1.2.4 h1:XlAE/cm/ms7TE/VMVoduSpNBoyc2dOxHs5MZSwAN63Q= +github.com/leodido/go-urn v1.2.4/go.mod h1:7ZrI8mTSeBSHl/UaRyKQW1qZeMgak41ANeCNaVckg+4= github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/libopenstorage/autopilot-api v0.6.1-0.20210128210103-5fbb67948648/go.mod h1:6JLrPbR3ZJQFbUY/+QJMl/aF00YdIrLf8/GWAplgvJs= github.com/libopenstorage/openstorage v8.0.0+incompatible/go.mod h1:Sp1sIObHjat1BeXhfMqLZ14wnOzEhNx2YQedreMcUyc= @@ -1232,8 +1235,8 @@ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLA github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce h1:RPclfga2SEJmgMmz2k+Mg7cowZ8yv4Trqw9UsJby758= github.com/nwaples/rardecode v1.0.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= -github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= +github.com/nxadm/tail v1.4.11 h1:8feyoE3OzPrcshW5/MJ4sGESc5cqmGkGCWlco4l0bqY= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= @@ -1304,8 +1307,8 @@ github.com/onsi/gomega v1.27.6/go.mod h1:PIQNjfQwkP3aQAH7lf7j87O/5FiNr+ZR8+ipb+q github.com/onsi/gomega v1.27.7/go.mod h1:1p8OOlwo2iUUDsHnOrjE5UKYJ+e3W8eQ3qSlRahPmr4= github.com/onsi/gomega v1.27.8/go.mod h1:2J8vzI/s+2shY9XHRApDkdgPo1TKT7P2u6fXeJKFnNQ= github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M= -github.com/onsi/gomega v1.28.0 h1:i2rg/p9n/UqIDAMFUJ6qIUUMcsqOuUHgbpbu235Vr1c= github.com/onsi/gomega v1.28.0/go.mod h1:A1H2JE76sI14WIP57LMKj7FVfCHx3g3BcZVjJG8bjX8= +github.com/onsi/gomega v1.29.0 h1:KIA/t2t5UBzoirT4H9tsML45GEbo3ouUnBHsCfD2tVg= github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= @@ -1516,7 +1519,6 @@ github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcU github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/tencentcloud/tencentcloud-sdk-go v3.0.171+incompatible h1:K3fcS92NS8cRntIdu8Uqy2ZSePvX73nNhOkKuPGJLXQ= -github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4= github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= github.com/tj/assert v0.0.0-20171129193455-018094318fb0/go.mod h1:mZ9/Rh9oLWpLLDRpvE+3b7gP/C2YyLFYxNmcLnPTMe0= github.com/tj/assert v0.0.3 h1:Df/BlaZ20mq6kuai7f5z2TvPFiwC3xaWJSDQNiIS3Rk= @@ -1549,8 +1551,10 @@ github.com/xanzy/ssh-agent v0.3.0/go.mod h1:3s9xbODqPuuhK9JV1R321M/FlMZSBvE5aY6e github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= github.com/xdg-go/scram v1.0.2/go.mod h1:1WAq6h33pAW+iRreB34OORO2Nf7qel3VV3fjBj+hCSs= github.com/xdg-go/scram v1.1.1/go.mod h1:RaEWvsqvNKKvBPvcKeFjrG2cJqOkHTiyTpzz23ni57g= +github.com/xdg-go/scram v1.1.2/go.mod h1:RT/sEzTbU5y00aCK8UOx6R7YryM0iF1N2MOmC3kKLN4= github.com/xdg-go/stringprep v1.0.2/go.mod h1:8F9zXuvzgwmyT5DUm4GUfZGDdT3W+LCvS6+da4O5kxM= github.com/xdg-go/stringprep v1.0.3/go.mod h1:W3f5j4i+9rC0kuIEJL0ky1VpHXQU3ocBgklLGvcBnW8= +github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gijq1dTyGkM= github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= github.com/xdg/stringprep v0.0.0-20180714160509-73f8eece6fdc/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= @@ -1593,8 +1597,8 @@ go.mongodb.org/mongo-driver v1.7.3/go.mod h1:NqaYOwnXWr5Pm7AOpO5QFxKJ503nbMse/R7 go.mongodb.org/mongo-driver v1.7.5/go.mod h1:VXEWRZ6URJIkUq2SCAyapmhH0ZLRBP+FT4xhp5Zvxng= go.mongodb.org/mongo-driver v1.10.0/go.mod h1:wsihk0Kdgv8Kqu1Anit4sfK+22vSFbUrAVEYRhCXrA8= go.mongodb.org/mongo-driver v1.11.3/go.mod h1:PTSz5yu21bkT/wXpkS7WR5f0ddqw5quethTUn9WM+2g= -go.mongodb.org/mongo-driver v1.11.6 h1:XM7G6PjiGAO5betLF13BIa5TlLUUE3uJ/2Ox3Lz1K+o= -go.mongodb.org/mongo-driver v1.11.6/go.mod h1:G9TgswdsWjX4tmDA5zfs2+6AEPpYJwqblyjsfuh8oXY= +go.mongodb.org/mongo-driver v1.12.1 h1:nLkghSU8fQNaK7oUmDhQFsnrtcoNy7Z6LVFKsEecqgE= +go.mongodb.org/mongo-driver v1.12.1/go.mod h1:/rGBTebI3XYboVmgz+Wv3Bcbl3aD0QF9zl6kDDw18rQ= go.opencensus.io v0.19.1/go.mod h1:gug0GbSHa8Pafr0d2urOSgoXHZ6x/RUlaiT0d9pqb4A= go.opencensus.io v0.19.2/go.mod h1:NO/8qkisMZLZ1FCsKNqtJPwc8/TaclWyY0B6wcYNg9M= go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= @@ -1927,7 +1931,6 @@ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1966,6 +1969,7 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= diff --git a/ibm/acctest/acctest.go b/ibm/acctest/acctest.go index 7335b4bdeb..5e411830a7 100644 --- a/ibm/acctest/acctest.go +++ b/ibm/acctest/acctest.go @@ -12,10 +12,9 @@ import ( "sync" "testing" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/provider" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" terraformsdk "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" - - "github.com/IBM-Cloud/terraform-provider-ibm/ibm/provider" ) const ( @@ -312,6 +311,9 @@ var ( CeProjectId string CeServiceInstanceID string CeResourceKeyID string + CeDomainMappingName string + CeTLSCert string + CeTLSKey string ) // Satellite tests @@ -1531,6 +1533,24 @@ func init() { fmt.Println("[WARN] Set the environment variable IBM_CODE_ENGINE_RESOURCE_KEY_ID with the ID of a resource key to access a service instance") } + CeDomainMappingName = os.Getenv("IBM_CODE_ENGINE_DOMAIN_MAPPING_NAME") + if CeDomainMappingName == "" { + CeDomainMappingName = "" + fmt.Println("[WARN] Set the environment variable IBM_CODE_ENGINE_DOMAIN_MAPPING_NAME with the name of a domain mapping") + } + + CeTLSCert = os.Getenv("IBM_CODE_ENGINE_TLS_CERT") + if CeTLSCert == "" { + CeTLSCert = "" + fmt.Println("[WARN] Set the environment variable IBM_CODE_ENGINE_TLS_CERT with the TLS certificate in base64 format") + } + + CeTLSKey = os.Getenv("IBM_CODE_ENGINE_TLS_KEY") + if CeTLSKey == "" { + CeTLSKey = "" + fmt.Println("[WARN] Set the environment variable IBM_CODE_ENGINE_TLS_KEY with a TLS key in base64 format") + } + SatelliteSSHPubKey = os.Getenv("IBM_SATELLITE_SSH_PUB_KEY") if SatelliteSSHPubKey == "" { fmt.Println("[WARN] Set the environment variable IBM_SATELLITE_SSH_PUB_KEY with a ssh public key or ibm_satellite_* tests may fail") @@ -1697,6 +1717,21 @@ func TestAccPreCheckCodeEngine(t *testing.T) { if CeProjectId == "" { t.Fatal("IBM_CODE_ENGINE_PROJECT_INSTANCE_ID must be set for acceptance tests") } + if CeServiceInstanceID == "" { + t.Fatal("IBM_CODE_ENGINE_SERVICE_INSTANCE_ID must be set for acceptance tests") + } + if CeResourceKeyID == "" { + t.Fatal("IBM_CODE_ENGINE_RESOURCE_KEY_ID must be set for acceptance tests") + } + if CeDomainMappingName == "" { + t.Fatal("IBM_CODE_ENGINE_DOMAIN_MAPPING_NAME must be set for acceptance tests") + } + if CeTLSCert == "" { + t.Fatal("IBM_CODE_ENGINE_DOMAIN_MAPPING_TLS_CERT must be set for acceptance tests") + } + if CeTLSKey == "" { + t.Fatal("IBM_CODE_ENGINE_DOMAIN_MAPPING_TLS_KEY must be set for acceptance tests") + } } func TestAccPreCheckUsage(t *testing.T) { diff --git a/ibm/provider/provider.go b/ibm/provider/provider.go index bdc22fc9a5..422dddc3e1 100644 --- a/ibm/provider/provider.go +++ b/ibm/provider/provider.go @@ -848,13 +848,14 @@ func Provider() *schema.Provider { "ibm_cd_tekton_pipeline": cdtektonpipeline.DataSourceIBMCdTektonPipeline(), // Added for Code Engine - "ibm_code_engine_app": codeengine.DataSourceIbmCodeEngineApp(), - "ibm_code_engine_binding": codeengine.DataSourceIbmCodeEngineBinding(), - "ibm_code_engine_build": codeengine.DataSourceIbmCodeEngineBuild(), - "ibm_code_engine_config_map": codeengine.DataSourceIbmCodeEngineConfigMap(), - "ibm_code_engine_job": codeengine.DataSourceIbmCodeEngineJob(), - "ibm_code_engine_project": codeengine.DataSourceIbmCodeEngineProject(), - "ibm_code_engine_secret": codeengine.DataSourceIbmCodeEngineSecret(), + "ibm_code_engine_app": codeengine.DataSourceIbmCodeEngineApp(), + "ibm_code_engine_binding": codeengine.DataSourceIbmCodeEngineBinding(), + "ibm_code_engine_build": codeengine.DataSourceIbmCodeEngineBuild(), + "ibm_code_engine_config_map": codeengine.DataSourceIbmCodeEngineConfigMap(), + "ibm_code_engine_domain_mapping": codeengine.DataSourceIbmCodeEngineDomainMapping(), + "ibm_code_engine_job": codeengine.DataSourceIbmCodeEngineJob(), + "ibm_code_engine_project": codeengine.DataSourceIbmCodeEngineProject(), + "ibm_code_engine_secret": codeengine.DataSourceIbmCodeEngineSecret(), // Added for Project "ibm_project": project.DataSourceIbmProject(), @@ -1361,13 +1362,14 @@ func Provider() *schema.Provider { "ibm_cd_tekton_pipeline": cdtektonpipeline.ResourceIBMCdTektonPipeline(), // Added for Code Engine - "ibm_code_engine_app": codeengine.ResourceIbmCodeEngineApp(), - "ibm_code_engine_binding": codeengine.ResourceIbmCodeEngineBinding(), - "ibm_code_engine_build": codeengine.ResourceIbmCodeEngineBuild(), - "ibm_code_engine_config_map": codeengine.ResourceIbmCodeEngineConfigMap(), - "ibm_code_engine_job": codeengine.ResourceIbmCodeEngineJob(), - "ibm_code_engine_project": codeengine.ResourceIbmCodeEngineProject(), - "ibm_code_engine_secret": codeengine.ResourceIbmCodeEngineSecret(), + "ibm_code_engine_app": codeengine.ResourceIbmCodeEngineApp(), + "ibm_code_engine_binding": codeengine.ResourceIbmCodeEngineBinding(), + "ibm_code_engine_build": codeengine.ResourceIbmCodeEngineBuild(), + "ibm_code_engine_config_map": codeengine.ResourceIbmCodeEngineConfigMap(), + "ibm_code_engine_domain_mapping": codeengine.ResourceIbmCodeEngineDomainMapping(), + "ibm_code_engine_job": codeengine.ResourceIbmCodeEngineJob(), + "ibm_code_engine_project": codeengine.ResourceIbmCodeEngineProject(), + "ibm_code_engine_secret": codeengine.ResourceIbmCodeEngineSecret(), // Added for Project "ibm_project": project.ResourceIbmProject(), @@ -1618,13 +1620,14 @@ func Validator() validate.ValidatorDict { "ibm_sm_public_certificate_configuration_dns_classic_infrastructure": secretsmanager.ResourceIbmSmPublicCertificateConfigurationDNSClassicInfrastructureValidator(), // // Added for Code Engine - "ibm_code_engine_app": codeengine.ResourceIbmCodeEngineAppValidator(), - "ibm_code_engine_binding": codeengine.ResourceIbmCodeEngineBindingValidator(), - "ibm_code_engine_build": codeengine.ResourceIbmCodeEngineBuildValidator(), - "ibm_code_engine_config_map": codeengine.ResourceIbmCodeEngineConfigMapValidator(), - "ibm_code_engine_job": codeengine.ResourceIbmCodeEngineJobValidator(), - "ibm_code_engine_project": codeengine.ResourceIbmCodeEngineProjectValidator(), - "ibm_code_engine_secret": codeengine.ResourceIbmCodeEngineSecretValidator(), + "ibm_code_engine_app": codeengine.ResourceIbmCodeEngineAppValidator(), + "ibm_code_engine_binding": codeengine.ResourceIbmCodeEngineBindingValidator(), + "ibm_code_engine_build": codeengine.ResourceIbmCodeEngineBuildValidator(), + "ibm_code_engine_config_map": codeengine.ResourceIbmCodeEngineConfigMapValidator(), + "ibm_code_engine_domain_mapping": codeengine.ResourceIbmCodeEngineDomainMappingValidator(), + "ibm_code_engine_job": codeengine.ResourceIbmCodeEngineJobValidator(), + "ibm_code_engine_project": codeengine.ResourceIbmCodeEngineProjectValidator(), + "ibm_code_engine_secret": codeengine.ResourceIbmCodeEngineSecretValidator(), // Added for Project "ibm_project": project.ResourceIbmProjectValidator(), diff --git a/ibm/service/codeengine/data_source_ibm_code_engine_domain_mapping.go b/ibm/service/codeengine/data_source_ibm_code_engine_domain_mapping.go new file mode 100644 index 0000000000..af313eb1fd --- /dev/null +++ b/ibm/service/codeengine/data_source_ibm_code_engine_domain_mapping.go @@ -0,0 +1,219 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package codeengine + +import ( + "context" + "fmt" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM/code-engine-go-sdk/codeenginev2" +) + +func DataSourceIbmCodeEngineDomainMapping() *schema.Resource { + return &schema.Resource{ + ReadContext: dataSourceIbmCodeEngineDomainMappingRead, + + Schema: map[string]*schema.Schema{ + "project_id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The ID of the project.", + }, + "name": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The name of your domain mapping.", + }, + "cname_target": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Exposes the value of the CNAME record that needs to be configured in the DNS settings of the domain, to route traffic properly to the target Code Engine region.", + }, + "component": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "A reference to another component.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The name of the referenced component.", + }, + "resource_type": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The type of the referenced resource.", + }, + }, + }, + }, + "created_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The timestamp when the resource was created.", + }, + "domain_mapping_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The identifier of the resource.", + }, + "entity_tag": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The version of the domain mapping instance, which is used to achieve optimistic locking.", + }, + "href": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "When you provision a new domain mapping, a URL is created identifying the location of the instance.", + }, + "resource_type": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The type of the CE Resource.", + }, + "status": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The current status of the domain mapping.", + }, + "status_details": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The detailed status of the domain mapping.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "reason": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Optional information to provide more context in case of a 'failed' or 'warning' status.", + }, + }, + }, + }, + "tls_secret": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The name of the TLS secret that holds the certificate and private key of this domain mapping.", + }, + "user_managed": &schema.Schema{ + Type: schema.TypeBool, + Computed: true, + Description: "Exposes whether the domain mapping is managed by the user or by Code Engine.", + }, + "visibility": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Exposes whether the domain mapping is reachable through the public internet, or private IBM network, or only through other components within the same Code Engine project.", + }, + }, + } +} + +func dataSourceIbmCodeEngineDomainMappingRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + codeEngineClient, err := meta.(conns.ClientSession).CodeEngineV2() + if err != nil { + return diag.FromErr(err) + } + + getDomainMappingOptions := &codeenginev2.GetDomainMappingOptions{} + + getDomainMappingOptions.SetProjectID(d.Get("project_id").(string)) + getDomainMappingOptions.SetName(d.Get("name").(string)) + + domainMapping, response, err := codeEngineClient.GetDomainMappingWithContext(context, getDomainMappingOptions) + if err != nil { + log.Printf("[DEBUG] GetDomainMappingWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("GetDomainMappingWithContext failed %s\n%s", err, response)) + } + + d.SetId(fmt.Sprintf("%s/%s", *getDomainMappingOptions.ProjectID, *getDomainMappingOptions.Name)) + + if err = d.Set("cname_target", domainMapping.CnameTarget); err != nil { + return diag.FromErr(fmt.Errorf("Error setting cname_target: %s", err)) + } + + component := []map[string]interface{}{} + if domainMapping.Component != nil { + modelMap, err := dataSourceIbmCodeEngineDomainMappingComponentRefToMap(domainMapping.Component) + if err != nil { + return diag.FromErr(err) + } + component = append(component, modelMap) + } + if err = d.Set("component", component); err != nil { + return diag.FromErr(fmt.Errorf("Error setting component %s", err)) + } + + if err = d.Set("created_at", domainMapping.CreatedAt); err != nil { + return diag.FromErr(fmt.Errorf("Error setting created_at: %s", err)) + } + + if err = d.Set("entity_tag", domainMapping.EntityTag); err != nil { + return diag.FromErr(fmt.Errorf("Error setting entity_tag: %s", err)) + } + + if err = d.Set("href", domainMapping.Href); err != nil { + return diag.FromErr(fmt.Errorf("Error setting href: %s", err)) + } + + if err = d.Set("domain_mapping_id", domainMapping.ID); err != nil { + return diag.FromErr(fmt.Errorf("Error setting domain_mapping_id: %s", err)) + } + + if err = d.Set("resource_type", domainMapping.ResourceType); err != nil { + return diag.FromErr(fmt.Errorf("Error setting resource_type: %s", err)) + } + + if err = d.Set("status", domainMapping.Status); err != nil { + return diag.FromErr(fmt.Errorf("Error setting status: %s", err)) + } + + statusDetails := []map[string]interface{}{} + if domainMapping.StatusDetails != nil { + modelMap, err := dataSourceIbmCodeEngineDomainMappingDomainMappingStatusToMap(domainMapping.StatusDetails) + if err != nil { + return diag.FromErr(err) + } + statusDetails = append(statusDetails, modelMap) + } + if err = d.Set("status_details", statusDetails); err != nil { + return diag.FromErr(fmt.Errorf("Error setting status_details %s", err)) + } + + if err = d.Set("tls_secret", domainMapping.TlsSecret); err != nil { + return diag.FromErr(fmt.Errorf("Error setting tls_secret: %s", err)) + } + + if err = d.Set("user_managed", domainMapping.UserManaged); err != nil { + return diag.FromErr(fmt.Errorf("Error setting user_managed: %s", err)) + } + + if err = d.Set("visibility", domainMapping.Visibility); err != nil { + return diag.FromErr(fmt.Errorf("Error setting visibility: %s", err)) + } + + return nil +} + +func dataSourceIbmCodeEngineDomainMappingComponentRefToMap(model *codeenginev2.ComponentRef) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["name"] = model.Name + modelMap["resource_type"] = model.ResourceType + return modelMap, nil +} + +func dataSourceIbmCodeEngineDomainMappingDomainMappingStatusToMap(model *codeenginev2.DomainMappingStatus) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Reason != nil { + modelMap["reason"] = model.Reason + } + return modelMap, nil +} diff --git a/ibm/service/codeengine/data_source_ibm_code_engine_domain_mapping_test.go b/ibm/service/codeengine/data_source_ibm_code_engine_domain_mapping_test.go new file mode 100644 index 0000000000..9a852e3f14 --- /dev/null +++ b/ibm/service/codeengine/data_source_ibm_code_engine_domain_mapping_test.go @@ -0,0 +1,107 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package codeengine_test + +import ( + "fmt" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" +) + +func TestAccIbmCodeEngineDomainMappingDataSourceBasic(t *testing.T) { + appName := fmt.Sprintf("tf-app-domain-mapping-%d", acctest.RandIntRange(10, 1000)) + secretName := fmt.Sprintf("tf-secret-domain-mapping-%d", acctest.RandIntRange(10, 1000)) + + projectID := acc.CeProjectId + domainMappingName := acc.CeDomainMappingName + domainMappingTLSKey := decodeBase64EnvVar(acc.CeTLSKey, CeTlsKey) + domainMappingTLSCert := decodeBase64EnvVar(acc.CeTLSCert, CeTlsCert) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheckCodeEngine(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmCodeEngineDomainMappingDataSourceConfigBasic(projectID, appName, domainMappingTLSKey, domainMappingTLSCert, secretName, domainMappingName), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_code_engine_domain_mapping.code_engine_domain_mapping_instance", "id"), + resource.TestCheckResourceAttrSet("data.ibm_code_engine_domain_mapping.code_engine_domain_mapping_instance", "href"), + resource.TestCheckResourceAttrSet("data.ibm_code_engine_domain_mapping.code_engine_domain_mapping_instance", "status"), + resource.TestCheckResourceAttrSet("data.ibm_code_engine_domain_mapping.code_engine_domain_mapping_instance", "cname_target"), + resource.TestCheckResourceAttrSet("data.ibm_code_engine_domain_mapping.code_engine_domain_mapping_instance", "user_managed"), + resource.TestCheckResourceAttrSet("data.ibm_code_engine_domain_mapping.code_engine_domain_mapping_instance", "visibility"), + resource.TestCheckResourceAttr("data.ibm_code_engine_domain_mapping.code_engine_domain_mapping_instance", "project_id", projectID), + resource.TestCheckResourceAttr("data.ibm_code_engine_domain_mapping.code_engine_domain_mapping_instance", "name", domainMappingName), + resource.TestCheckResourceAttr("data.ibm_code_engine_domain_mapping.code_engine_domain_mapping_instance", "resource_type", "domain_mapping_v2"), + resource.TestCheckResourceAttr("data.ibm_code_engine_domain_mapping.code_engine_domain_mapping_instance", "component.0.resource_type", "app_v2"), + resource.TestCheckResourceAttr("data.ibm_code_engine_domain_mapping.code_engine_domain_mapping_instance", "component.0.name", appName), + resource.TestCheckResourceAttr("data.ibm_code_engine_domain_mapping.code_engine_domain_mapping_instance", "tls_secret", secretName), + ), + }, + }, + }) +} + +func testAccCheckIbmCodeEngineDomainMappingDataSourceConfigBasic(projectID string, appName string, tlsKey string, tslCert string, secretName string, domainMappingName string) string { + return fmt.Sprintf(` + data "ibm_code_engine_project" "code_engine_project_instance" { + project_id = "%s" + } + + resource "ibm_code_engine_app" "code_engine_app_instance" { + project_id = data.ibm_code_engine_project.code_engine_project_instance.project_id + image_reference = "icr.io/codeengine/helloworld" + name = "%s" + + lifecycle { + ignore_changes = [ + run_env_variables + ] + } + } + + variable "tls_secret_data" { + type = map(string) + default = { + "tls_key" = </ +``` +* `project_id`: A string in the format `15314cc3-85b4-4338-903f-c28cdee6d005`. The ID of the project. +* `name`: A string in the format `www.example.com`. The name of the domain mapping. + +# Syntax +``` +$ terraform import ibm_code_engine_domain_mapping.code_engine_domain_mapping / +``` From 11bf7d01aac1e278a3f44c83d95a19a6935099c0 Mon Sep 17 00:00:00 2001 From: Bob Fang <7771298+bobfang@users.noreply.github.com> Date: Tue, 14 Nov 2023 14:28:36 -0800 Subject: [PATCH 37/58] Add IC_REGION to readme and tip on env vars Add IC_REGION because it is easy to miss out on when setting up the test environment. Add a tip on how to locate the required environment variables that need to be set for each specific test --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index f02c0b8005..5678123644 100644 --- a/README.md +++ b/README.md @@ -124,11 +124,19 @@ Issuing `make testacc` will now run the testcase with names matching `TestAccIBM You will also need to export the following environment variables for running the Acceptance tests. * `IC_API_KEY`- The IBM Cloud API Key +* `IC_REGION` - The IBM Cloud [region](https://cloud.ibm.com/docs/overview?topic=overview-locations) used by test resources - defaults to `us-south` * `IAAS_CLASSIC_API_KEY` - The IBM Cloud Classic Infrastructure API Key * `IAAS_CLASSIC_USERNAME` - The IBM Cloud Classic Infrastructure username associated with the Classic InfrastAPI Key. Additional environment variables may be required depending on the tests being run. Check console log for warning messages about required variables. +Alternatively, look for the name of the function by PreCheck under the specific test case and inspect [ibm/acctest/acctest.go](https://github.com/IBM-Cloud/terraform-provider-ibm/blob/master/ibm/acctest/acctest.go) to find the list of environment variables required for the test. + +``` + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, +``` # IBM Cloud Ansible Modules From 16d47489be560c0907ab74139b0ae0f55aa1e66c Mon Sep 17 00:00:00 2001 From: SunithaGudisagar Date: Mon, 30 Oct 2023 11:49:08 +0530 Subject: [PATCH 38/58] VPC ID Filter is added when Subnet Name is specified --- ibm/service/vpc/data_source_ibm_is_subnet.go | 12 +++- ibm/service/vpc/data_source_ibm_is_subnets.go | 69 +++++++++++++++++-- website/docs/d/is_subnet.html.markdown | 1 + website/docs/d/is_subnets.html.markdown | 10 ++- 4 files changed, 79 insertions(+), 13 deletions(-) diff --git a/ibm/service/vpc/data_source_ibm_is_subnet.go b/ibm/service/vpc/data_source_ibm_is_subnet.go index 6a2503e06a..92154b1759 100644 --- a/ibm/service/vpc/data_source_ibm_is_subnet.go +++ b/ibm/service/vpc/data_source_ibm_is_subnet.go @@ -87,8 +87,11 @@ func DataSourceIBMISSubnet() *schema.Resource { }, isSubnetVPC: { - Type: schema.TypeString, - Computed: true, + Type: schema.TypeString, + Optional: true, + Computed: true, + RequiredWith: []string{isSubnetName}, + ValidateFunc: validate.InvokeDataSourceValidator("ibm_is_subnet", "identifier"), }, isSubnetVPCName: { @@ -229,11 +232,14 @@ func subnetGetByNameOrID(d *schema.ResourceData, meta interface{}) error { start := "" allrecs := []vpcv1.Subnet{} getSubnetsListOptions := &vpcv1.ListSubnetsOptions{} - for { if start != "" { getSubnetsListOptions.Start = &start } + if vpcIdOk, ok := d.GetOk(isSubnetVPC); ok { + vpcIDOk := vpcIdOk.(string) + getSubnetsListOptions.VPCID = &vpcIDOk + } subnetsCollection, response, err := sess.ListSubnets(getSubnetsListOptions) if err != nil { return fmt.Errorf("[ERROR] Error Fetching subnets List %s\n%s", err, response) diff --git a/ibm/service/vpc/data_source_ibm_is_subnets.go b/ibm/service/vpc/data_source_ibm_is_subnets.go index 395a64bf39..09950f0026 100644 --- a/ibm/service/vpc/data_source_ibm_is_subnets.go +++ b/ibm/service/vpc/data_source_ibm_is_subnets.go @@ -17,6 +17,10 @@ const ( isSubnets = "subnets" isSubnetResourceGroupID = "resource_group" isSubnetRoutingTableName = "routing_table_name" + isSubnetResourceZone = "zone" + isSubnetResourceVpc = "vpc" + isSubnetResourceVpcCrn = "vpc_crn" + isSubnetResourceVpcName = "vpc_name" ) func DataSourceIBMISSubnets() *schema.Resource { @@ -24,6 +28,26 @@ func DataSourceIBMISSubnets() *schema.Resource { Read: dataSourceIBMISSubnetsRead, Schema: map[string]*schema.Schema{ + isSubnetResourceVpc: { + Type: schema.TypeString, + Description: "ID of the VPC", + Optional: true, + }, + isSubnetResourceVpcName: { + Type: schema.TypeString, + Description: "Name of the VPC", + Optional: true, + }, + isSubnetResourceVpcCrn: { + Type: schema.TypeString, + Description: "CRN of the VPC", + Optional: true, + }, + isSubnetResourceZone: { + Type: schema.TypeString, + Description: "Name of the Zone ", + Optional: true, + }, isSubnetResourceGroupID: { Type: schema.TypeString, Description: "Resource Group ID", @@ -177,18 +201,49 @@ func subnetList(d *schema.ResourceData, meta interface{}) error { resourceTableName = v.(string) } - options := &vpcv1.ListSubnetsOptions{} - if resourceGroup != "" { - options.SetResourceGroupID(resourceGroup) + var zone string + if v, ok := d.GetOk(isSubnetResourceZone); ok { + zone = v.(string) } - if routingTable != "" { - options.SetRoutingTableID(routingTable) + + var vpc string + if v, ok := d.GetOk(isSubnetResourceVpc); ok { + vpc = v.(string) + } + + var vpcName string + if v, ok := d.GetOk(isSubnetResourceVpcName); ok { + vpcName = v.(string) } - if resourceTableName != "" { - options.SetRoutingTableName(resourceTableName) + + var vpcCrn string + if v, ok := d.GetOk(isSubnetResourceVpcCrn); ok { + vpcCrn = v.(string) } for { + options := &vpcv1.ListSubnetsOptions{} + if resourceGroup != "" { + options.SetResourceGroupID(resourceGroup) + } + if routingTable != "" { + options.SetRoutingTableID(routingTable) + } + if resourceTableName != "" { + options.SetRoutingTableName(resourceTableName) + } + if zone != "" { + options.SetZoneName(zone) + } + if vpc != "" { + options.SetVPCID(vpc) + } + if vpcName != "" { + options.SetVPCName(vpcName) + } + if vpcCrn != "" { + options.SetVPCCRN(vpcCrn) + } if start != "" { options.Start = &start } diff --git a/website/docs/d/is_subnet.html.markdown b/website/docs/d/is_subnet.html.markdown index 9021976fe7..62cb8405b8 100644 --- a/website/docs/d/is_subnet.html.markdown +++ b/website/docs/d/is_subnet.html.markdown @@ -65,6 +65,7 @@ Review the argument references that you can specify for your data source. - `identifier` - (Optional, String) The ID of the subnet,`name` and `identifier` are mutually exclusive. - `name` - (Optional, String) The name of the subnet,`name` and `identifier` are mutually exclusive. +- `vpc` - (Optional, String) Filters the collection to resources with a vpc property matching the specified identifier. Subnet `name` must be specified with `vpc` filter. ## Attribute reference In addition to all argument reference list, you can access the following attribute references after your data source is created. diff --git a/website/docs/d/is_subnets.html.markdown b/website/docs/d/is_subnets.html.markdown index b85935f8c3..1ff061f5eb 100644 --- a/website/docs/d/is_subnets.html.markdown +++ b/website/docs/d/is_subnets.html.markdown @@ -65,9 +65,13 @@ data "ibm_is_subnets" "example4" { Review the argument references that you can specify for your data source. -* `resource_group` - (Optional, string) The id of the resource group. -* `routing_table` - (Optional, string) The id of the routing table. -* `routing_table_name` - (Optional, string) The name of the routing table. +- `resource_group` - (Optional, string) The id of the resource group. +- `routing_table` - (Optional, string) The id of the routing table. +- `routing_table_name` - (Optional, string) The name of the routing table. +- `vpc` - (Optional, string) The id of the vpc. +- `vpc_crn` - (Optional, string) The crn of the vpc. +- `vpc_name` - (Optional, string) The name of vpc. +- `zone` - (Optional, string) The name of the zone. ## Attribute reference You can access the following attribute references after your data source is created. From e69b93c39fc9d3a6702bdd9d53ff18c43b834442 Mon Sep 17 00:00:00 2001 From: Simone-Rodigari Date: Fri, 10 Nov 2023 13:10:43 +0000 Subject: [PATCH 39/58] Fix wrong sintax in doc for Ingress Secret Opaque --- website/docs/r/container_ingress_secret_opaque.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/r/container_ingress_secret_opaque.html.markdown b/website/docs/r/container_ingress_secret_opaque.html.markdown index 3dac4048f5..4d94d9ab59 100644 --- a/website/docs/r/container_ingress_secret_opaque.html.markdown +++ b/website/docs/r/container_ingress_secret_opaque.html.markdown @@ -17,10 +17,10 @@ resource "ibm_container_ingress_secret_opaque" "secret" { secret_name="mySecretName" secret_namespace="mySecretNamespace" persistence = true - fields = { + fields { crn = "cert:region:crn" } - fields = { + fields { field_name = "myFieldName" crn = "cert:region:crn" } From 1142c27bd8bfee92a34d4284fb6b544359857e29 Mon Sep 17 00:00:00 2001 From: VaishnaviGopal Date: Fri, 17 Nov 2023 19:03:07 +0530 Subject: [PATCH 40/58] Added fields name,default to workspace template_values_metadata --- .../data_source_ibm_schematics_workspace.go | 13 +++++++------ .../resource_ibm_schematics_workspace.go | 19 ++++++++++++------- .../docs/d/schematics_workspace.html.markdown | 3 ++- .../docs/r/schematics_workspace.html.markdown | 3 ++- 4 files changed, 23 insertions(+), 15 deletions(-) diff --git a/ibm/service/schematics/data_source_ibm_schematics_workspace.go b/ibm/service/schematics/data_source_ibm_schematics_workspace.go index d6855d253f..69408e2c12 100644 --- a/ibm/service/schematics/data_source_ibm_schematics_workspace.go +++ b/ibm/service/schematics/data_source_ibm_schematics_workspace.go @@ -300,6 +300,11 @@ func DataSourceIBMSchematicsWorkspace() *schema.Resource { Description: "A list of input variables that are associated with the workspace.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Name of the variable.", + }, "type": &schema.Schema{ Type: schema.TypeString, Computed: true, @@ -323,7 +328,7 @@ func DataSourceIBMSchematicsWorkspace() *schema.Resource { Computed: true, Description: "Cloud data type of the variable. eg. resource_group_id, region, vpc_id.", }, - "default_value": &schema.Schema{ + "default": &schema.Schema{ Type: schema.TypeString, Computed: true, Description: "Default value for the variable only if the override value is not specified.", @@ -915,11 +920,7 @@ func dataSourceWorkspaceResponseTemplateDataToMap(templateDataItem schematicsv1. templateDataMap["values"] = templateDataItem.Values } if templateDataItem.ValuesMetadata != nil { - valuesMetadata := []map[string]interface{}{} - for _, valuesMetadataItem := range templateDataItem.ValuesMetadata { - valuesMetadata = append(valuesMetadata, valuesMetadataItem) - } - templateDataMap["values_metadata"] = valuesMetadata + templateDataMap["values_metadata"] = templateDataItem.ValuesMetadata } if templateDataItem.ValuesURL != nil { templateDataMap["values_url"] = templateDataItem.ValuesURL diff --git a/ibm/service/schematics/resource_ibm_schematics_workspace.go b/ibm/service/schematics/resource_ibm_schematics_workspace.go index b6309bf51d..f4c87066b6 100644 --- a/ibm/service/schematics/resource_ibm_schematics_workspace.go +++ b/ibm/service/schematics/resource_ibm_schematics_workspace.go @@ -226,6 +226,11 @@ func ResourceIBMSchematicsWorkspace() *schema.Resource { Description: "List of values metadata.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Name of the variable.", + }, "type": &schema.Schema{ Type: schema.TypeString, Computed: true, @@ -249,7 +254,7 @@ func ResourceIBMSchematicsWorkspace() *schema.Resource { Computed: true, Description: "Cloud data type of the variable. eg. resource_group_id, region, vpc_id.", }, - "default_value": &schema.Schema{ + "default": &schema.Schema{ Type: schema.TypeString, Computed: true, Description: "Default value for the variable only if the override value is not specified.", @@ -808,8 +813,8 @@ func resourceIBMSchematicsWorkspaceMapToSharedTargetData(sharedTargetDataMap map } if sharedTargetDataMap["entitlement_keys"] != nil { entitlementKeys := []map[string]interface{}{} - for _, entitlementKeysItem := range sharedTargetDataMap["entitlement_keys"].([]map[string]interface{}) { - entitlementKeys = append(entitlementKeys, entitlementKeysItem) + for _, entitlementKeysItem := range sharedTargetDataMap["entitlement_keys"].([]interface{}) { + entitlementKeys = append(entitlementKeys, entitlementKeysItem.(map[string]interface{})) } sharedTargetData.EntitlementKeys = entitlementKeys } @@ -837,8 +842,8 @@ func resourceIBMSchematicsWorkspaceMapToTemplateSourceDataRequest(templateSource if templateSourceDataRequestMap["env_values"] != nil { envValues := []map[string]interface{}{} - for _, envValuesItem := range templateSourceDataRequestMap["env_values"].([]map[string]interface{}) { - envValues = append(envValues, envValuesItem) + for _, envValuesItem := range templateSourceDataRequestMap["env_values"].([]interface{}) { + envValues = append(envValues, envValuesItem.(map[string]interface{})) } templateSourceDataRequest.EnvValues = envValues } @@ -862,8 +867,8 @@ func resourceIBMSchematicsWorkspaceMapToTemplateSourceDataRequest(templateSource } if templateSourceDataRequestMap["values_metadata"] != nil { valuesMetadata := []map[string]interface{}{} - for _, valuesMetadataItem := range templateSourceDataRequestMap["values_metadata"].([]map[string]interface{}) { - valuesMetadata = append(valuesMetadata, valuesMetadataItem) + for _, valuesMetadataItem := range templateSourceDataRequestMap["values_metadata"].([]interface{}) { + valuesMetadata = append(valuesMetadata, valuesMetadataItem.(map[string]interface{})) } templateSourceDataRequest.ValuesMetadata = valuesMetadata } diff --git a/website/docs/d/schematics_workspace.html.markdown b/website/docs/d/schematics_workspace.html.markdown index 7b5e7aa29c..dfadec7f5c 100644 --- a/website/docs/d/schematics_workspace.html.markdown +++ b/website/docs/d/schematics_workspace.html.markdown @@ -105,7 +105,7 @@ Nested scheme for **env_values**: Nested scheme for **values_metadata**: * `aliases` - (List) The list of aliases for the variable name. * `cloud_data_type` - (String) Cloud data type of the variable. eg. resource_group_id, region, vpc_id. - * `default_value` - (String) Default value for the variable only if the override value is not specified. + * `default` - (String) Default value for the variable only if the override value is not specified. * `description` - (String) The description of the meta data. * `group_by` - (String) The display name of the group this variable belongs to. * `hidden` - (Boolean) If **true**, the variable is not displayed on UI or Command line. @@ -117,6 +117,7 @@ Nested scheme for **env_values**: * `max_value` - (Integer) The maximum value of the variable. Applicable for the integer type. * `min_length` - (Integer) The minimum length of the variable value. Applicable for the string type. * `min_value` - (Integer) The minimum value of the variable. Applicable for the integer type. + * `name` - (String) Name of the variable. * `options` - (List) The list of possible values for this variable. If type is **integer** or **date**, then the array of string is converted to array of integers or date during the runtime. * `position` - (Integer) The relative position of this variable in a list. * `required` - (Boolean) If the variable required?. diff --git a/website/docs/r/schematics_workspace.html.markdown b/website/docs/r/schematics_workspace.html.markdown index 69d51cd954..4e3a390a4c 100644 --- a/website/docs/r/schematics_workspace.html.markdown +++ b/website/docs/r/schematics_workspace.html.markdown @@ -67,7 +67,7 @@ Nested scheme for **shared_data**: Nested scheme for **template_values_metadata**: * `aliases` - (Optional, List) The list of aliases for the variable name. * `cloud_data_type` - (Optional, String) Cloud data type of the variable. eg. resource_group_id, region, vpc_id. - * `default_value` - (Optional, String) Default value for the variable only if the override value is not specified. + * `default` - (Optional, String) Default value for the variable only if the override value is not specified. * `description` - (Optional, String) The description of the meta data. * `group_by` - (Optional, String) The display name of the group this variable belongs to. * `hidden` - (Optional, Boolean) If **true**, the variable is not displayed on UI or Command line. @@ -79,6 +79,7 @@ Nested scheme for **template_values_metadata**: * `max_value` - (Optional, Integer) The maximum value of the variable. Applicable for the integer type. * `min_length` - (Optional, Integer) The minimum length of the variable value. Applicable for the string type. * `min_value` - (Optional, Integer) The minimum value of the variable. Applicable for the integer type. + * `name` - (String) Name of the variable. * `options` - (Optional, List) The list of possible values for this variable. If type is **integer** or **date**, then the array of string is converted to array of integers or date during the runtime. * `position` - (Optional, Integer) The relative position of this variable in a list. * `required` - (Optional, Boolean) If the variable required?. From 2e8ac03a75327653bd41c04ef2ba921742a238ee Mon Sep 17 00:00:00 2001 From: hkantare Date: Mon, 20 Nov 2023 14:59:20 +0530 Subject: [PATCH 41/58] fix the build --- .../resource_ibm_code_engine_domain_mapping_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ibm/service/codeengine/resource_ibm_code_engine_domain_mapping_test.go b/ibm/service/codeengine/resource_ibm_code_engine_domain_mapping_test.go index 3ee8f9aeb4..d6178fb825 100644 --- a/ibm/service/codeengine/resource_ibm_code_engine_domain_mapping_test.go +++ b/ibm/service/codeengine/resource_ibm_code_engine_domain_mapping_test.go @@ -6,9 +6,10 @@ package codeengine_test import ( "encoding/base64" "fmt" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" "testing" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" @@ -40,7 +41,7 @@ func TestAccIbmCodeEngineDomainMappingBasic(t *testing.T) { Providers: acc.TestAccProviders, CheckDestroy: testAccCheckIbmCodeEngineDomainMappingDestroy, Steps: []resource.TestStep{ - resource.TestStep{ + { Config: testAccCheckIbmCodeEngineDomainMappingConfigBasic(projectID, app1Name, app2Name, domainMappingTLSKey, domainMappingTLSCert, secretName, app1Name, domainMappingName, "app1_instance"), Check: resource.ComposeAggregateTestCheckFunc( testAccCheckIbmCodeEngineDomainMappingExists("ibm_code_engine_domain_mapping.code_engine_domain_mapping_instance", conf), @@ -58,7 +59,7 @@ func TestAccIbmCodeEngineDomainMappingBasic(t *testing.T) { resource.TestCheckResourceAttr("ibm_code_engine_domain_mapping.code_engine_domain_mapping_instance", "tls_secret", secretName), ), }, - resource.TestStep{ + { Config: testAccCheckIbmCodeEngineDomainMappingConfigBasic(projectID, app1Name, app2Name, domainMappingTLSKey, domainMappingTLSCert, secretName, app2Name, domainMappingName, "app2_instance"), Check: resource.ComposeAggregateTestCheckFunc( resource.TestCheckResourceAttrSet("ibm_code_engine_domain_mapping.code_engine_domain_mapping_instance", "id"), @@ -213,7 +214,7 @@ func testAccCheckIbmCodeEngineDomainMappingDestroy(s *terraform.State) error { func decodeBase64EnvVar(base64Text string, envVar string) string { decodedText, err := base64.StdEncoding.DecodeString(base64Text) if err != nil { - fmt.Errorf("Error decoding environment variable %s: %s", envVar, err) + fmt.Printf("Error decoding environment variable %s: %s", envVar, err) return "" } return string(decodedText) From c48aced738b1b382a0b00127f8db05e7d74ef6ed Mon Sep 17 00:00:00 2001 From: VaishnaviGopal Date: Sat, 18 Nov 2023 01:38:26 +0530 Subject: [PATCH 42/58] schematics agent doc fixes --- website/docs/d/schematics_agent.html.markdown | 31 -------- .../docs/d/schematics_agents.html.markdown | 2 +- website/docs/r/schematics_agent.html.markdown | 72 +------------------ 3 files changed, 3 insertions(+), 102 deletions(-) diff --git a/website/docs/d/schematics_agent.html.markdown b/website/docs/d/schematics_agent.html.markdown index 442d89280f..debcc2afe7 100644 --- a/website/docs/d/schematics_agent.html.markdown +++ b/website/docs/d/schematics_agent.html.markdown @@ -42,37 +42,6 @@ Nested scheme for **agent_infrastructure**: * `cos_instance_name` - (String) The COS instance name to store the agent logs. * `infra_type` - (String) Type of target agent infrastructure. * Constraints: Allowable values are: `ibm_kubernetes`, `ibm_openshift`, `ibm_satellite`. - -* `agent_inputs` - (List) Additional input variables for the agent. -Nested scheme for **agent_inputs**: - * `link` - (String) The reference link to the variable value By default the expression points to `$self.value`. - * `metadata` - (List) An user editable metadata for the variables. - Nested scheme for **metadata**: - * `aliases` - (List) The list of aliases for the variable name. - * `cloud_data_type` - (String) Cloud data type of the variable. eg. resource_group_id, region, vpc_id. - * `default_value` - (String) Default value for the variable only if the override value is not specified. - * `description` - (String) The description of the meta data. - * `group_by` - (String) The display name of the group this variable belongs to. - * `hidden` - (Boolean) If **true**, the variable is not displayed on UI or Command line. - * `immutable` - (Boolean) Is the variable readonly ?. - * `link_status` - (String) The status of the link. - * Constraints: Allowable values are: `normal`, `broken`. - * `matches` - (String) The regex for the variable value. - * `max_length` - (Integer) The maximum length of the variable value. Applicable for the string type. - * `max_value` - (Integer) The maximum value of the variable. Applicable for the integer type. - * `min_length` - (Integer) The minimum length of the variable value. Applicable for the string type. - * `min_value` - (Integer) The minimum value of the variable. Applicable for the integer type. - * `options` - (List) The list of possible values for this variable. If type is **integer** or **date**, then the array of string is converted to array of integers or date during the runtime. - * `position` - (Integer) The relative position of this variable in a list. - * `required` - (Boolean) If the variable required?. - * `secure` - (Boolean) Is the variable secure or sensitive ?. - * `source` - (String) The source of this meta-data. - * `type` - (String) Type of the variable. - * Constraints: Allowable values are: `boolean`, `string`, `integer`, `date`, `array`, `list`, `map`, `complex`, `link`. - * `name` - (String) The name of the variable. For example, `name = "inventory username"`. - * `use_default` - (Boolean) True, will ignore the data in the value attribute, instead the data in metadata.default_value will be used. - * `value` - (String) The value for the variable or reference to the value. For example, `value = ""`. **Note** The SSH key should contain `\n` at the end of the key details in case of command line or API calls. - * `agent_kpi` - (List) Schematics Agent key performance indicators. Nested scheme for **agent_kpi**: * `application_indicators` - (List) Agent application key performance indicators. diff --git a/website/docs/d/schematics_agents.html.markdown b/website/docs/d/schematics_agents.html.markdown index 08f7532d09..14b0034b40 100644 --- a/website/docs/d/schematics_agents.html.markdown +++ b/website/docs/d/schematics_agents.html.markdown @@ -44,7 +44,7 @@ Nested scheme for **agents**: * `id` - (String) The Agent registration id. * `location` - (String) List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics. * Constraints: Allowable values are: `us-south`, `us-east`, `eu-gb`, `eu-de`. - * `name` - (String) The name of the agent (must be unique, for an account). + * `name` - (String) The name of the agent. * `profile_id` - (String) The IAM trusted profile id, used by the Agent instance. * `registered_at` - (String) The Agent registration date-time. * `registered_by` - (String) The email address of an user who registered the Agent. diff --git a/website/docs/r/schematics_agent.html.markdown b/website/docs/r/schematics_agent.html.markdown index af12fb8c26..4b04b38e6a 100644 --- a/website/docs/r/schematics_agent.html.markdown +++ b/website/docs/r/schematics_agent.html.markdown @@ -24,40 +24,6 @@ resource "ibm_schematics_agent" "schematics_agent_instance" { cos_bucket_name = "cos_bucket_name" cos_bucket_region = "cos_bucket_region" } - agent_inputs { - name = "name" - value = "value" - use_default = true - metadata { - type = "boolean" - aliases = [ "aliases" ] - description = "description" - cloud_data_type = "cloud_data_type" - default_value = "default_value" - link_status = "normal" - secure = true - immutable = true - hidden = true - required = true - options = [ "options" ] - min_value = 1 - max_value = 1 - min_length = 1 - max_length = 1 - matches = "matches" - position = 1 - group_by = "group_by" - source = "source" - } - link = "link" - } - agent_kpi { - availability_indicator = "available" - lifecycle_indicator = "consistent" - percent_usage_indicator = "percent_usage_indicator" - application_indicators = [ null ] - infra_indicators = [ null ] - } agent_location = "us-south" agent_metadata { name = "purpose" @@ -67,12 +33,7 @@ resource "ibm_schematics_agent" "schematics_agent_instance" { name = "MyDevAgent" resource_group = "Default" schematics_location = "us-south" - user_state { - state = "enable" - set_by = "set_by" - set_at = "2021-01-31T09:44:12Z" - } - version = "v1.0.0" + version = "1.0.0-beta2" } ``` @@ -89,35 +50,6 @@ Nested scheme for **agent_infrastructure**: * `cos_instance_name` - (Optional, String) The COS instance name to store the agent logs. * `infra_type` - (Optional, String) Type of target agent infrastructure. * Constraints: Allowable values are: `ibm_kubernetes`, `ibm_openshift`, `ibm_satellite`. -* `agent_inputs` - (Optional, List) Additional input variables for the agent. -Nested scheme for **agent_inputs**: - * `link` - (Computed, String) The reference link to the variable value By default the expression points to `$self.value`. - * `metadata` - (Optional, List) An user editable metadata for the variables. - Nested scheme for **metadata**: - * `aliases` - (Optional, List) The list of aliases for the variable name. - * `cloud_data_type` - (Optional, String) Cloud data type of the variable. eg. resource_group_id, region, vpc_id. - * `default_value` - (Optional, String) Default value for the variable only if the override value is not specified. - * `description` - (Optional, String) The description of the meta data. - * `group_by` - (Optional, String) The display name of the group this variable belongs to. - * `hidden` - (Optional, Boolean) If **true**, the variable is not displayed on UI or Command line. - * `immutable` - (Optional, Boolean) Is the variable readonly ?. - * `link_status` - (Optional, String) The status of the link. - * Constraints: Allowable values are: `normal`, `broken`. - * `matches` - (Optional, String) The regex for the variable value. - * `max_length` - (Optional, Integer) The maximum length of the variable value. Applicable for the string type. - * `max_value` - (Optional, Integer) The maximum value of the variable. Applicable for the integer type. - * `min_length` - (Optional, Integer) The minimum length of the variable value. Applicable for the string type. - * `min_value` - (Optional, Integer) The minimum value of the variable. Applicable for the integer type. - * `options` - (Optional, List) The list of possible values for this variable. If type is **integer** or **date**, then the array of string is converted to array of integers or date during the runtime. - * `position` - (Optional, Integer) The relative position of this variable in a list. - * `required` - (Optional, Boolean) If the variable required?. - * `secure` - (Optional, Boolean) Is the variable secure or sensitive ?. - * `source` - (Optional, String) The source of this meta-data. - * `type` - (Optional, String) Type of the variable. - * Constraints: Allowable values are: `boolean`, `string`, `integer`, `date`, `array`, `list`, `map`, `complex`, `link`. - * `name` - (Optional, String) The name of the variable. For example, `name = "inventory username"`. - * `use_default` - (Optional, Boolean) True, will ignore the data in the value attribute, instead the data in metadata.default_value will be used. - * `value` - (Optional, String) The value for the variable or reference to the value. For example, `value = ""`. **Note** The SSH key should contain `\n` at the end of the key details in case of command line or API calls. * `agent_kpi` - (Optional, List) Schematics Agent key performance indicators. Nested scheme for **agent_kpi**: * `application_indicators` - (Optional, List) Agent application key performance indicators. @@ -144,7 +76,7 @@ Nested scheme for **user_state**: * `set_by` - (Computed, String) Name of the User who set the state of the Object. * `state` - (Optional, String) User-defined states * `enable` Agent is enabled by the user. * `disable` Agent is disbaled by the user. * Constraints: Allowable values are: `enable`, `disable`. -* `version` - (Required, String) Agent version. +* `version` - (Required, String) Agent version. Available Versions are 1.0.0-beta1, 1.0.0-beta2 ## Attribute Reference From ac15ba179c0b3a3e71f4ace0be0792302b496c37 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 21 Nov 2023 22:25:07 +0000 Subject: [PATCH 43/58] dependabot: bump github.com/go-jose/go-jose/v3 from 3.0.0 to 3.0.1 Bumps [github.com/go-jose/go-jose/v3](https://github.com/go-jose/go-jose) from 3.0.0 to 3.0.1. - [Release notes](https://github.com/go-jose/go-jose/releases) - [Changelog](https://github.com/go-jose/go-jose/blob/v3/CHANGELOG.md) - [Commits](https://github.com/go-jose/go-jose/compare/v3.0.0...v3.0.1) --- updated-dependencies: - dependency-name: github.com/go-jose/go-jose/v3 dependency-type: indirect ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index db250f0b40..ddb9fcf327 100644 --- a/go.mod +++ b/go.mod @@ -96,7 +96,7 @@ require ( github.com/frankban/quicktest v1.14.3 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/gabriel-vasile/mimetype v1.4.2 // indirect - github.com/go-jose/go-jose/v3 v3.0.0 // indirect + github.com/go-jose/go-jose/v3 v3.0.1 // indirect github.com/go-logr/logr v1.2.4 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-openapi/analysis v0.21.4 // indirect diff --git a/go.sum b/go.sum index 958008a15c..abd13996b4 100644 --- a/go.sum +++ b/go.sum @@ -102,8 +102,6 @@ github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3 github.com/DataDog/zstd v1.4.4/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= github.com/IBM-Cloud/bluemix-go v0.0.0-20231017073329-75ebe90c98ba h1:8U4HByOYJiaGWBpGjdRIzyzu0NBzjywh//CZnSbEsPw= github.com/IBM-Cloud/bluemix-go v0.0.0-20231017073329-75ebe90c98ba/go.mod h1:mt+O8ryLVANrBKlA4RxKdENp3q6Q7mKQIi2nkiibZbU= -github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20230822142550-30562e113de9 h1:sXRzCK3Glxpyu66Tu2NjztLdT5sDwj4qly+MJKRhdWY= -github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20230822142550-30562e113de9/go.mod h1:xUQL9SGAjoZFd4GNjrjjtEpjpkgU7RFXRyHesbKTjiY= github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20231106114255-c50117860a3c h1:tRS4VuOG3lHNG+yrsh3vZZQDVNLuFJB0oZbTJp9YXds= github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20231106114255-c50117860a3c/go.mod h1:xUQL9SGAjoZFd4GNjrjjtEpjpkgU7RFXRyHesbKTjiY= github.com/IBM-Cloud/ibm-cloud-cli-sdk v0.5.3/go.mod h1:RiUvKuHKTBmBApDMUQzBL14pQUGKcx/IioKQPIcRQjs= @@ -157,10 +155,6 @@ github.com/IBM/keyprotect-go-client v0.12.2 h1:Cjxcqin9Pl0xz3MnxdiVd4v/eIa79xL3h github.com/IBM/keyprotect-go-client v0.12.2/go.mod h1:yr8h2noNgU8vcbs+vhqoXp3Lmv73PI0zAc6VMgFvWwM= github.com/IBM/networking-go-sdk v0.42.2 h1:caqjx4jyFHi10Vlf3skHvlL6K3YJRVstsmCBmvdyqkA= github.com/IBM/networking-go-sdk v0.42.2/go.mod h1:lTUZwtUkMANMnrLHFIgRhHrkBfwASY/Iho1fabaPHxo= -github.com/IBM/platform-services-go-sdk v0.52.0 h1:hbf640xE8T0Rwy2IUf5Pu4OATabGS4IDMnEInXUXs4o= -github.com/IBM/platform-services-go-sdk v0.52.0/go.mod h1:6LxcUhIaSLP4SuQJXF9oLXBamSQogs5D9BcVwr4hmfU= -github.com/IBM/platform-services-go-sdk v0.52.1 h1:fUCtYMAekzsWO/ylZi31j6BpyJ1xKb39NG62zBXePbg= -github.com/IBM/platform-services-go-sdk v0.52.1/go.mod h1:6LxcUhIaSLP4SuQJXF9oLXBamSQogs5D9BcVwr4hmfU= github.com/IBM/platform-services-go-sdk v0.53.1 h1:axpK4dzlf+C+KgHQZWXoKSUMoV2t6OrR5kGGumUEXrI= github.com/IBM/platform-services-go-sdk v0.53.1/go.mod h1:CWSprvsCsXWvujmBzbtoJSmbRZS9FVV3O594b0t/GiM= github.com/IBM/project-go-sdk v0.0.99 h1:rQU/uQLW83OsAUfP/d8fFSIjp8ooEQIFjalYQD4i4aY= @@ -476,8 +470,8 @@ github.com/go-git/go-git/v5 v5.4.2/go.mod h1:gQ1kArt6d+n+BGd+/B/I74HwRTLhth2+zti github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-jose/go-jose/v3 v3.0.0 h1:s6rrhirfEP/CGIoc6p+PZAeogN2SxKav6Wp7+dyMWVo= -github.com/go-jose/go-jose/v3 v3.0.0/go.mod h1:RNkWWRld676jZEYoV3+XK8L2ZnNSvIsxFMht0mSX+u8= +github.com/go-jose/go-jose/v3 v3.0.1 h1:pWmKFVtt+Jl0vBZTIpz/eAKwsm6LkIxDVVbFHKkchhA= +github.com/go-jose/go-jose/v3 v3.0.1/go.mod h1:RNkWWRld676jZEYoV3+XK8L2ZnNSvIsxFMht0mSX+u8= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= From cbdaf4cd3b0eee965d2662eb595d74088c530720 Mon Sep 17 00:00:00 2001 From: Bob Fang <7771298+bobfang@users.noreply.github.com> Date: Tue, 21 Nov 2023 23:37:06 -0800 Subject: [PATCH 44/58] Fix some job parameters for code engine (#4923) * Update code_engine_job.html.markdown fix run_mode's reference to scale_retry_limits and scale_max_execution_time * Update README.md fix references that were missing scale_ * Update code_engine_job.html.markdown * Update data_source_ibm_code_engine_job.go update with scale_ prefix * Update resource_ibm_code_engine_job.go --- examples/ibm-code-engine/README.md | 2 +- ibm/service/codeengine/data_source_ibm_code_engine_job.go | 2 +- ibm/service/codeengine/resource_ibm_code_engine_job.go | 2 +- website/docs/d/code_engine_job.html.markdown | 2 +- website/docs/r/code_engine_job.html.markdown | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/ibm-code-engine/README.md b/examples/ibm-code-engine/README.md index 952868955c..33ac34cd9b 100644 --- a/examples/ibm-code-engine/README.md +++ b/examples/ibm-code-engine/README.md @@ -250,7 +250,7 @@ data "ibm_code_engine_domain_mapping" "code_engine_domain_mapping_instance" { | data | The key-value pair for the config map. Values must be specified in `KEY=VALUE` format. Each `KEY` field must consist of alphanumeric characters, `-`, `_` or `.` and must not be exceed a max length of 253 characters. Each `VALUE` field can consists of any character and must not be exceed a max length of 1048576 characters. | `map(string)` | false | | image_reference | The name of the image that is used for this job. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`. | `string` | true | | image_secret | The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template. | `string` | false | -| run_mode | The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `max_execution_time` and `retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `max_execution_time` and `retry_limit` properties are not allowed. | `string` | false | +| run_mode | The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `scale_max_execution_time` and `scale_retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `scale_max_execution_time` and `scale_retry_limit` properties are not allowed. | `string` | false | | scale_array_spec | Define a custom set of array indices as comma-separated list containing single values and hyphen-separated ranges like `5,12-14,23,27`. Each instance can pick up its array index via environment variable `JOB_INDEX`. The number of unique array indices specified here determines the number of job instances to run. | `string` | false | | scale_max_execution_time | The maximum execution time in seconds for runs of the job. This property can only be specified if `run_mode` is `task`. | `number` | false | | scale_memory_limit | Optional amount of memory set for the instance of the job. For valid values see [Supported memory and CPU combinations](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo). The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see [Units of measurement](https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo#unit-measurements). | `string` | false | diff --git a/ibm/service/codeengine/data_source_ibm_code_engine_job.go b/ibm/service/codeengine/data_source_ibm_code_engine_job.go index f42ee19247..6182556bb5 100644 --- a/ibm/service/codeengine/data_source_ibm_code_engine_job.go +++ b/ibm/service/codeengine/data_source_ibm_code_engine_job.go @@ -129,7 +129,7 @@ func DataSourceIbmCodeEngineJob() *schema.Resource { "run_mode": &schema.Schema{ Type: schema.TypeString, Computed: true, - Description: "The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `max_execution_time` and `retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `max_execution_time` and `retry_limit` properties are not allowed.", + Description: "The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `scale_max_execution_time` and `scale_retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `scale_max_execution_time` and `scale_retry_limit` properties are not allowed.", }, "run_service_account": &schema.Schema{ Type: schema.TypeString, diff --git a/ibm/service/codeengine/resource_ibm_code_engine_job.go b/ibm/service/codeengine/resource_ibm_code_engine_job.go index 41dd8707dc..fe51077431 100644 --- a/ibm/service/codeengine/resource_ibm_code_engine_job.go +++ b/ibm/service/codeengine/resource_ibm_code_engine_job.go @@ -119,7 +119,7 @@ func ResourceIbmCodeEngineJob() *schema.Resource { Optional: true, Default: "task", ValidateFunc: validate.InvokeValidator("ibm_code_engine_job", "run_mode"), - Description: "The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `max_execution_time` and `retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `max_execution_time` and `retry_limit` properties are not allowed.", + Description: "The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `scale_max_execution_time` and `scale_retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `scale_max_execution_time` and `scale_retry_limit` properties are not allowed.", }, "run_service_account": &schema.Schema{ Type: schema.TypeString, diff --git a/website/docs/d/code_engine_job.html.markdown b/website/docs/d/code_engine_job.html.markdown index c39aba650d..189092fe7c 100644 --- a/website/docs/d/code_engine_job.html.markdown +++ b/website/docs/d/code_engine_job.html.markdown @@ -77,7 +77,7 @@ Nested scheme for **run_env_variables**: * `value` - (String) The literal value of the environment variable. * Constraints: The maximum length is `253` characters. The minimum length is `1` character. The value must match regular expression `/^[\\-._a-zA-Z0-9]+$/`. -* `run_mode` - (String) The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `max_execution_time` and `retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `max_execution_time` and `retry_limit` properties are not allowed. +* `run_mode` - (String) The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `scale_max_execution_time` and `scale_retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `scale_max_execution_time` and `scale_retry_limit` properties are not allowed. * Constraints: The default value is `task`. Allowable values are: `task`, `daemon`. The minimum length is `0` characters. The value must match regular expression `/^(task|daemon)$/`. * `run_service_account` - (String) The name of the service account. For built-in service accounts, you can use the shortened names `manager`, `none`, `reader`, and `writer`. This property must not be set on a job run, which references a job template. diff --git a/website/docs/r/code_engine_job.html.markdown b/website/docs/r/code_engine_job.html.markdown index 50c1847ae5..092a91a37b 100644 --- a/website/docs/r/code_engine_job.html.markdown +++ b/website/docs/r/code_engine_job.html.markdown @@ -58,7 +58,7 @@ Nested scheme for **run_env_variables**: * Constraints: The default value is `literal`. Allowable values are: `literal`, `config_map_full_reference`, `secret_full_reference`, `config_map_key_reference`, `secret_key_reference`. The value must match regular expression `/^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/`. * `value` - (Optional, String) The literal value of the environment variable. * Constraints: The maximum length is `253` characters. The minimum length is `1` character. The value must match regular expression `/^[\\-._a-zA-Z0-9]+$/`. -* `run_mode` - (Optional, String) The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `max_execution_time` and `retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `max_execution_time` and `retry_limit` properties are not allowed. +* `run_mode` - (Optional, String) The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `scale_max_execution_time` and `scale_retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `scale_max_execution_time` and `scale_retry_limit` properties are not allowed. * Constraints: The default value is `task`. Allowable values are: `task`, `daemon`. The minimum length is `0` characters. The value must match regular expression `/^(task|daemon)$/`. * `run_service_account` - (Optional, String) The name of the service account. For built-in service accounts, you can use the shortened names `manager`, `none`, `reader`, and `writer`. This property must not be set on a job run, which references a job template. * Constraints: The default value is `default`. Allowable values are: `default`, `manager`, `reader`, `writer`, `none`. The minimum length is `0` characters. The value must match regular expression `/^(manager|reader|writer|none|default)$/`. From ea5cc697a5ebb55c4755680bedab628f76acb83a Mon Sep 17 00:00:00 2001 From: Riccardo Angelilli Date: Thu, 23 Nov 2023 10:08:55 +0100 Subject: [PATCH 45/58] Support environment resource and data source for Projects - update to latest API level (#4928) * fix integration test * fix integration test * fix integration test * fix name * pr comments * pr comments * fix doc * fix doc * new version * new version * new version * new version * update code to the latest SDK level * fix integration tests * fix integration tests * fix integration tests * fix integration tests * address PR comment * typo * typo * terraform * terraform * terraform * terraform * terraform * terraform * terraform * terraform * terraform * terraform * add wait for create and delete * add wait for create and delete * . * fix integration tests * fix integration tests * fix integration tests * fix integration tests * fix integration tests * regenerate * new code generation * new generated code * point to latest sdk * point to latest sdk * adjust test cases and doc * adjust samples * update to latest node sdk * merge with master * Update project_instance.html.markdown Fixing formatting issues * Update project_event_notification.html.markdown * Update README.md * Update variables.tf * Update project_event_notification.html.markdown * new version * terraform * terraform * terraform * terraform * terraform * terraform * terraform * terraform * terraform * terraform * feat: projects graph fragment pattern * align with origin/master * update test cases * restore README.md and versions.tf to master branch * remove duplicated entries * feat: graph fragment pattern poc * feat: restore definition blocks * regenerate the terraform code based on latest YAML * regenerate the terraform code based on latest YAML * regenerate the terraform code based on latest YAML * update doc * update doc * fix test cases * commit generated code * commit fix * commit fix * test cases * test cases * test cases * test cases * updates * upgrade to latest go sdk * update generated doc * update generated code * updated secrets baseline * update code to latest API changes * secrets * fix secrets * update samples with real values * update secrets * update secrets * update generated code to the latest API definition * update secrets baseline * merge with master * merge with master * merge with master * update code to the latest SDK level * address some review comments * address PR comments * address PR comments * update to latest sdk level * update to latest sdk level * update to latest sdk level * merge with master * update to the latest sdk level * format test case * regenerate the code with generator fixes * update to latest SDK * update to latest SDK * update to latest SDK * environment for terraform * environment for terraform * secrets * address PR comments * address PR comments Signed-off-by: rangelil --------- Signed-off-by: rangelil Co-authored-by: dvesperini Co-authored-by: knee-na <130502432+knee-na@users.noreply.github.com> Co-authored-by: Mark-Kulube --- .secrets.baseline | 118 ++-- examples/ibm-project/README.md | 27 +- examples/ibm-project/main.tf | 19 + examples/ibm-project/outputs.tf | 8 + examples/ibm-project/variables.tf | 21 +- go.mod | 2 +- go.sum | 4 +- ibm/provider/provider.go | 15 +- .../project/data_source_ibm_project.go | 39 +- .../project/data_source_ibm_project_config.go | 233 +++++++- .../data_source_ibm_project_environment.go | 321 ++++++++++ ...ata_source_ibm_project_environment_test.go | 70 +++ .../project/data_source_ibm_project_test.go | 3 +- ibm/service/project/resource_ibm_project.go | 108 ++-- .../project/resource_ibm_project_config.go | 263 +++++++-- .../resource_ibm_project_environment.go | 551 ++++++++++++++++++ .../resource_ibm_project_environment_test.go | 138 +++++ website/docs/d/project.html.markdown | 35 +- website/docs/d/project_config.html.markdown | 78 ++- .../docs/d/project_environment.html.markdown | 84 +++ website/docs/r/project.html.markdown | 42 +- website/docs/r/project_config.html.markdown | 95 ++- .../docs/r/project_environment.html.markdown | 103 ++++ 23 files changed, 2120 insertions(+), 257 deletions(-) create mode 100644 ibm/service/project/data_source_ibm_project_environment.go create mode 100644 ibm/service/project/data_source_ibm_project_environment_test.go create mode 100644 ibm/service/project/resource_ibm_project_environment.go create mode 100644 ibm/service/project/resource_ibm_project_environment_test.go create mode 100644 website/docs/d/project_environment.html.markdown create mode 100644 website/docs/r/project_environment.html.markdown diff --git a/.secrets.baseline b/.secrets.baseline index c90644602f..934bc75b57 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -3,7 +3,7 @@ "files": "go.mod|go.sum|.*.map|^.secrets.baseline$", "lines": null }, - "generated_at": "2023-11-10T20:51:53Z", + "generated_at": "2023-11-22T09:50:41Z", "plugins_used": [ { "name": "AWSKeyDetector" @@ -560,7 +560,7 @@ "hashed_secret": "06d988e96c3d9325c9fbc7c0ef3c6c0f2b4eb8e7", "is_secret": false, "is_verified": false, - "line_number": 13, + "line_number": 45, "type": "Secret Keyword", "verified_result": null } @@ -760,7 +760,7 @@ "hashed_secret": "731438016c5ab94431f61820f35e3ae5f8ad6004", "is_secret": false, "is_verified": false, - "line_number": 412, + "line_number": 416, "type": "Secret Keyword", "verified_result": null }, @@ -768,7 +768,7 @@ "hashed_secret": "12da2e35d6b50c902c014f1ab9e3032650368df7", "is_secret": false, "is_verified": false, - "line_number": 418, + "line_number": 422, "type": "Secret Keyword", "verified_result": null }, @@ -776,7 +776,7 @@ "hashed_secret": "813274ccae5b6b509379ab56982d862f7b5969b6", "is_secret": false, "is_verified": false, - "line_number": 1123, + "line_number": 1127, "type": "Base64 High Entropy String", "verified_result": null } @@ -846,7 +846,7 @@ "hashed_secret": "da8cae6284528565678de15e03d461e23fe22538", "is_secret": false, "is_verified": false, - "line_number": 1845, + "line_number": 1858, "type": "Secret Keyword", "verified_result": null }, @@ -854,7 +854,7 @@ "hashed_secret": "1a0334cfa65f4be58b9d914b8e96e9d9478bfbac", "is_secret": false, "is_verified": false, - "line_number": 3226, + "line_number": 3239, "type": "Secret Keyword", "verified_result": null } @@ -864,7 +864,7 @@ "hashed_secret": "c8b6f5ef11b9223ac35a5663975a466ebe7ebba9", "is_secret": false, "is_verified": false, - "line_number": 1803, + "line_number": 1806, "type": "Secret Keyword", "verified_result": null }, @@ -872,7 +872,7 @@ "hashed_secret": "8abf4899c01104241510ba87685ad4de76b0c437", "is_secret": false, "is_verified": false, - "line_number": 1809, + "line_number": 1812, "type": "Secret Keyword", "verified_result": null } @@ -1268,15 +1268,7 @@ "hashed_secret": "3046d9f6cfaaeea6eed9bb7a4ab010fe49b0cfd4", "is_secret": false, "is_verified": false, - "line_number": 129, - "type": "Secret Keyword", - "verified_result": null - }, - { - "hashed_secret": "505032eaf8a3acf9b094a326dfb1cd0537c75a0d", - "is_secret": false, - "is_verified": false, - "line_number": 235, + "line_number": 104, "type": "Secret Keyword", "verified_result": null } @@ -1364,15 +1356,7 @@ "hashed_secret": "3046d9f6cfaaeea6eed9bb7a4ab010fe49b0cfd4", "is_secret": false, "is_verified": false, - "line_number": 94, - "type": "Secret Keyword", - "verified_result": null - }, - { - "hashed_secret": "505032eaf8a3acf9b094a326dfb1cd0537c75a0d", - "is_secret": false, - "is_verified": false, - "line_number": 364, + "line_number": 68, "type": "Secret Keyword", "verified_result": null } @@ -2014,7 +1998,7 @@ "hashed_secret": "884a58e4c2c5d195d3876787bdc63af6c5af2924", "is_secret": false, "is_verified": false, - "line_number": 1589, + "line_number": 1595, "type": "Secret Keyword", "verified_result": null } @@ -2834,7 +2818,7 @@ "hashed_secret": "3046d9f6cfaaeea6eed9bb7a4ab010fe49b0cfd4", "is_secret": false, "is_verified": false, - "line_number": 190, + "line_number": 334, "type": "Secret Keyword", "verified_result": null }, @@ -2842,7 +2826,7 @@ "hashed_secret": "92f08f2d9a0dc3f0d4cb3796435a48508cf59ecd", "is_secret": false, "is_verified": false, - "line_number": 461, + "line_number": 654, "type": "Secret Keyword", "verified_result": null } @@ -2857,12 +2841,40 @@ "verified_result": null } ], + "ibm/service/project/data_source_ibm_project_environment.go": [ + { + "hashed_secret": "3046d9f6cfaaeea6eed9bb7a4ab010fe49b0cfd4", + "is_secret": false, + "is_verified": false, + "line_number": 119, + "type": "Secret Keyword", + "verified_result": null + }, + { + "hashed_secret": "92f08f2d9a0dc3f0d4cb3796435a48508cf59ecd", + "is_secret": false, + "is_verified": false, + "line_number": 293, + "type": "Secret Keyword", + "verified_result": null + } + ], + "ibm/service/project/data_source_ibm_project_environment_test.go": [ + { + "hashed_secret": "347cd9c53ff77d41a7b22aa56c7b4efaf54658e3", + "is_secret": false, + "is_verified": false, + "line_number": 55, + "type": "Secret Keyword", + "verified_result": null + } + ], "ibm/service/project/resource_ibm_project_config.go": [ { "hashed_secret": "3046d9f6cfaaeea6eed9bb7a4ab010fe49b0cfd4", "is_secret": false, "is_verified": false, - "line_number": 92, + "line_number": 236, "type": "Secret Keyword", "verified_result": null }, @@ -2870,7 +2882,7 @@ "hashed_secret": "92f08f2d9a0dc3f0d4cb3796435a48508cf59ecd", "is_secret": false, "is_verified": false, - "line_number": 693, + "line_number": 884, "type": "Secret Keyword", "verified_result": null } @@ -2885,6 +2897,34 @@ "verified_result": null } ], + "ibm/service/project/resource_ibm_project_environment.go": [ + { + "hashed_secret": "3046d9f6cfaaeea6eed9bb7a4ab010fe49b0cfd4", + "is_secret": false, + "is_verified": false, + "line_number": 72, + "type": "Secret Keyword", + "verified_result": null + }, + { + "hashed_secret": "92f08f2d9a0dc3f0d4cb3796435a48508cf59ecd", + "is_secret": false, + "is_verified": false, + "line_number": 504, + "type": "Secret Keyword", + "verified_result": null + } + ], + "ibm/service/project/resource_ibm_project_environment_test.go": [ + { + "hashed_secret": "347cd9c53ff77d41a7b22aa56c7b4efaf54658e3", + "is_secret": false, + "is_verified": false, + "line_number": 62, + "type": "Secret Keyword", + "verified_result": null + } + ], "ibm/service/pushnotification/resource_ibm_push_notification_chrome.go": [ { "hashed_secret": "8a4036fbf3e13c7a84bac77ddae25de1cdfc4d43", @@ -2940,7 +2980,7 @@ "hashed_secret": "3c2ecad9b250fd6d99893e4d05ec02ca19aa95d0", "is_secret": false, "is_verified": false, - "line_number": 383, + "line_number": 389, "type": "Secret Keyword", "verified_result": null } @@ -4466,7 +4506,17 @@ "hashed_secret": "06d988e96c3d9325c9fbc7c0ef3c6c0f2b4eb8e7", "is_secret": false, "is_verified": false, - "line_number": 23, + "line_number": 22, + "type": "Secret Keyword", + "verified_result": null + } + ], + "website/docs/r/project_environment.html.markdown": [ + { + "hashed_secret": "06d988e96c3d9325c9fbc7c0ef3c6c0f2b4eb8e7", + "is_secret": false, + "is_verified": false, + "line_number": 22, "type": "Secret Keyword", "verified_result": null } diff --git a/examples/ibm-project/README.md b/examples/ibm-project/README.md index 2c985f19d0..8d4faefa78 100644 --- a/examples/ibm-project/README.md +++ b/examples/ibm-project/README.md @@ -6,6 +6,7 @@ The following types of resources are supported: * project_config * project +* project_environment ## Usage @@ -39,6 +40,14 @@ resource "project" "project_instance" { definition = var.project_definition } ``` +project_environment resource: + +```hcl +resource "project_environment" "project_environment_instance" { + project_id = ibm_project.project_instance.project_id + definition = var.project_environment_definition +} +``` ## ProjectV1 data sources @@ -57,6 +66,14 @@ data "project" "project_instance" { project_id = ibm_project.project_instance.id } ``` +project_environment data source: + +```hcl +data "ibm_project_environment" "project_environment_instance" { + project_id = ibm_project_environment.project_environment_instance.project_id + project_environment_id = ibm_project_environment.project_environment_instance.project_environment_id +} +``` ## Assumptions @@ -84,14 +101,15 @@ data "project" "project_instance" { |------|-------------|------|---------| | ibmcloud\_api\_key | IBM Cloud API key | `string` | true | | project_id | The unique project ID. | `string` | true | -| schematics | A schematics workspace associated to a project configuration. | `` | false | -| definition | The type and output of a project configuration. | `` | true | +| schematics | A schematics workspace associated to a project configuration, with scripts. | `` | false | +| definition | The name and description of a project configuration. | `` | true | | location | The IBM Cloud location where a resource is deployed. | `string` | true | -| resource_group | The resource group where the project's data and tools are created. | `string` | true | +| resource_group | The resource group name where the project's data and tools are created. | `string` | true | | definition | The definition of the project. | `` | true | +| definition | The environment definition. | `` | true | | project_id | The unique project ID. | `string` | true | | project_config_id | The unique config ID. | `string` | true | -| project_id | The unique project ID. | `string` | true | +| project_environment_id | The environment ID. | `string` | true | ## Outputs @@ -99,3 +117,4 @@ data "project" "project_instance" { |------|-------------| | project_config | project_config object | | project | project object | +| project_environment | project_environment object | diff --git a/examples/ibm-project/main.tf b/examples/ibm-project/main.tf index 79837ee3fb..038e99910a 100644 --- a/examples/ibm-project/main.tf +++ b/examples/ibm-project/main.tf @@ -34,6 +34,19 @@ resource "ibm_project" "project_instance" { } } +// Provision project_environment resource instance +resource "ibm_project_environment" "project_environment_instance" { + project_id = ibm_project.project_instance.project_id + definition { + name = "environment-stage" + description = "environment for stage project" + authorizations { + method = "api_key" + api_key = "" + } + } +} + // Create project_config data source data "ibm_project_config" "project_config_instance" { project_id = ibm_project_config.project_config_instance.project_id @@ -44,3 +57,9 @@ data "ibm_project_config" "project_config_instance" { data "ibm_project" "project_instance" { project_id = ibm_project.project_instance.id } + +// Create project_environment data source +data "ibm_project_environment" "project_environment_instance" { + project_id = ibm_project.project_instance.id + project_environment_id = var.project_environment_project_environment_id +} diff --git a/examples/ibm-project/outputs.tf b/examples/ibm-project/outputs.tf index 277309cbec..76db5b5331 100644 --- a/examples/ibm-project/outputs.tf +++ b/examples/ibm-project/outputs.tf @@ -3,6 +3,7 @@ output "ibm_project_config" { value = ibm_project_config.project_config_instance description = "project_config resource instance" + sensitive = true } // This output allows project data to be referenced by other resources and the terraform CLI // Modify this output if only certain data should be exposed @@ -10,3 +11,10 @@ output "ibm_project" { value = ibm_project.project_instance description = "project resource instance" } +// This output allows project_environment data to be referenced by other resources and the terraform CLI +// Modify this output if only certain data should be exposed +output "ibm_project_environment" { + value = ibm_project_environment.project_environment_instance + description = "project_environment resource instance" + sensitive = true +} diff --git a/examples/ibm-project/variables.tf b/examples/ibm-project/variables.tf index b32094d31b..82c28185f4 100644 --- a/examples/ibm-project/variables.tf +++ b/examples/ibm-project/variables.tf @@ -17,11 +17,18 @@ variable "project_location" { default = "us-south" } variable "project_resource_group" { - description = "The resource group where the project's data and tools are created." + description = "The resource group name where the project's data and tools are created." type = string default = "Default" } +// Resource arguments for project_environment +variable "project_environment_project_id" { + description = "The unique project ID." + type = string + default = "project_id" +} + // Data source arguments for project_config variable "project_config_project_id" { description = "The unique project ID." @@ -40,3 +47,15 @@ variable "project_id" { type = string default = "project_id" } + +// Data source arguments for project_environment +variable "project_environment_project_id" { + description = "The unique project ID." + type = string + default = "project_id" +} +variable "project_environment_id" { + description = "The environment ID." + type = string + default = "project_environment_id" +} diff --git a/go.mod b/go.mod index ddb9fcf327..e8fc7bf97e 100644 --- a/go.mod +++ b/go.mod @@ -25,7 +25,7 @@ require ( github.com/IBM/keyprotect-go-client v0.12.2 github.com/IBM/networking-go-sdk v0.42.2 github.com/IBM/platform-services-go-sdk v0.53.1 - github.com/IBM/project-go-sdk v0.0.99 + github.com/IBM/project-go-sdk v0.1.1 github.com/IBM/push-notifications-go-sdk v0.0.0-20210310100607-5790b96c47f5 github.com/IBM/scc-go-sdk/v5 v5.1.3 github.com/IBM/schematics-go-sdk v0.2.2 diff --git a/go.sum b/go.sum index abd13996b4..58cfeff13e 100644 --- a/go.sum +++ b/go.sum @@ -157,8 +157,8 @@ github.com/IBM/networking-go-sdk v0.42.2 h1:caqjx4jyFHi10Vlf3skHvlL6K3YJRVstsmCB github.com/IBM/networking-go-sdk v0.42.2/go.mod h1:lTUZwtUkMANMnrLHFIgRhHrkBfwASY/Iho1fabaPHxo= github.com/IBM/platform-services-go-sdk v0.53.1 h1:axpK4dzlf+C+KgHQZWXoKSUMoV2t6OrR5kGGumUEXrI= github.com/IBM/platform-services-go-sdk v0.53.1/go.mod h1:CWSprvsCsXWvujmBzbtoJSmbRZS9FVV3O594b0t/GiM= -github.com/IBM/project-go-sdk v0.0.99 h1:rQU/uQLW83OsAUfP/d8fFSIjp8ooEQIFjalYQD4i4aY= -github.com/IBM/project-go-sdk v0.0.99/go.mod h1:lqe0M4cKvABI1iHR1b+KfasVcxQL6nl2VJ8eOyQs8Ig= +github.com/IBM/project-go-sdk v0.1.1 h1:x1PkGUTkKpgxoXs/6IG4U1mk5BgaPEaRMVpXTs52rE4= +github.com/IBM/project-go-sdk v0.1.1/go.mod h1:lqe0M4cKvABI1iHR1b+KfasVcxQL6nl2VJ8eOyQs8Ig= github.com/IBM/push-notifications-go-sdk v0.0.0-20210310100607-5790b96c47f5 h1:NPUhkoOCRuv3OFWt19PmwjXGGTKlvmbuPg9fUrBUNe4= github.com/IBM/push-notifications-go-sdk v0.0.0-20210310100607-5790b96c47f5/go.mod h1:b07XHUVh0XYnQE9s2mqgjYST1h9buaQNqN4EcKhOsX0= github.com/IBM/sarama v1.41.2 h1:ZDBZfGPHAD4uuAtSv4U22fRZBgst0eEwGFzLj0fb85c= diff --git a/ibm/provider/provider.go b/ibm/provider/provider.go index 422dddc3e1..6ac2cd2804 100644 --- a/ibm/provider/provider.go +++ b/ibm/provider/provider.go @@ -858,8 +858,9 @@ func Provider() *schema.Provider { "ibm_code_engine_secret": codeengine.DataSourceIbmCodeEngineSecret(), // Added for Project - "ibm_project": project.DataSourceIbmProject(), - "ibm_project_config": project.DataSourceIbmProjectConfig(), + "ibm_project": project.DataSourceIbmProject(), + "ibm_project_config": project.DataSourceIbmProjectConfig(), + "ibm_project_environment": project.DataSourceIbmProjectEnvironment(), }, ResourcesMap: map[string]*schema.Resource{ @@ -1372,8 +1373,9 @@ func Provider() *schema.Provider { "ibm_code_engine_secret": codeengine.ResourceIbmCodeEngineSecret(), // Added for Project - "ibm_project": project.ResourceIbmProject(), - "ibm_project_config": project.ResourceIbmProjectConfig(), + "ibm_project": project.ResourceIbmProject(), + "ibm_project_config": project.ResourceIbmProjectConfig(), + "ibm_project_environment": project.ResourceIbmProjectEnvironment(), }, ConfigureFunc: providerConfigure, @@ -1630,8 +1632,9 @@ func Validator() validate.ValidatorDict { "ibm_code_engine_secret": codeengine.ResourceIbmCodeEngineSecretValidator(), // Added for Project - "ibm_project": project.ResourceIbmProjectValidator(), - "ibm_project_config": project.ResourceIbmProjectConfigValidator(), + "ibm_project": project.ResourceIbmProjectValidator(), + "ibm_project_config": project.ResourceIbmProjectConfigValidator(), + "ibm_project_environment": project.ResourceIbmProjectEnvironmentValidator(), }, DataSourceValidatorDictionary: map[string]*validate.ResourceValidator{ "ibm_is_subnet": vpc.DataSourceIBMISSubnetValidator(), diff --git a/ibm/service/project/data_source_ibm_project.go b/ibm/service/project/data_source_ibm_project.go index 277d769e3a..1ba775f958 100644 --- a/ibm/service/project/data_source_ibm_project.go +++ b/ibm/service/project/data_source_ibm_project.go @@ -75,16 +75,21 @@ func DataSourceIbmProject() *schema.Resource { Computed: true, Description: "The IBM Cloud location where a resource is deployed.", }, - "resource_group": &schema.Schema{ + "resource_group_id": &schema.Schema{ Type: schema.TypeString, Computed: true, - Description: "The resource group where the project's data and tools are created.", + Description: "The resource group id where the project's data and tools are created.", }, "state": &schema.Schema{ Type: schema.TypeString, Computed: true, Description: "The project status value.", }, + "resource_group": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The resource group name where the project's data and tools are created.", + }, "event_notifications_crn": &schema.Schema{ Type: schema.TypeString, Computed: true, @@ -135,7 +140,7 @@ func DataSourceIbmProject() *schema.Resource { "name": &schema.Schema{ Type: schema.TypeString, Computed: true, - Description: "The configuration name.", + Description: "The configuration name. It is unique within the account across projects and regions.", }, "description": &schema.Schema{ Type: schema.TypeString, @@ -254,7 +259,7 @@ func DataSourceIbmProject() *schema.Resource { "name": &schema.Schema{ Type: schema.TypeString, Computed: true, - Description: "The name of the environment.", + Description: "The name of the environment. It is unique within the account across projects and regions.", }, "description": &schema.Schema{ Type: schema.TypeString, @@ -276,7 +281,7 @@ func DataSourceIbmProject() *schema.Resource { "name": &schema.Schema{ Type: schema.TypeString, Computed: true, - Description: "The name of the project.", + Description: "The name of the project. It is unique within the account across regions.", }, "description": &schema.Schema{ Type: schema.TypeString, @@ -343,14 +348,18 @@ func dataSourceIbmProjectRead(context context.Context, d *schema.ResourceData, m return diag.FromErr(fmt.Errorf("Error setting location: %s", err)) } - if err = d.Set("resource_group", project.ResourceGroup); err != nil { - return diag.FromErr(fmt.Errorf("Error setting resource_group: %s", err)) + if err = d.Set("resource_group_id", project.ResourceGroupID); err != nil { + return diag.FromErr(fmt.Errorf("Error setting resource_group_id: %s", err)) } if err = d.Set("state", project.State); err != nil { return diag.FromErr(fmt.Errorf("Error setting state: %s", err)) } + if err = d.Set("resource_group", project.ResourceGroup); err != nil { + return diag.FromErr(fmt.Errorf("Error setting resource_group: %s", err)) + } + if err = d.Set("event_notifications_crn", project.EventNotificationsCrn); err != nil { return diag.FromErr(fmt.Errorf("Error setting event_notifications_crn: %s", err)) } @@ -358,7 +367,7 @@ func dataSourceIbmProjectRead(context context.Context, d *schema.ResourceData, m configs := []map[string]interface{}{} if project.Configs != nil { for _, modelItem := range project.Configs { - modelMap, err := dataSourceIbmProjectProjectConfigCollectionMemberToMap(&modelItem) + modelMap, err := dataSourceIbmProjectProjectConfigSummaryToMap(&modelItem) if err != nil { return diag.FromErr(err) } @@ -372,7 +381,7 @@ func dataSourceIbmProjectRead(context context.Context, d *schema.ResourceData, m environments := []map[string]interface{}{} if project.Environments != nil { for _, modelItem := range project.Environments { - modelMap, err := dataSourceIbmProjectProjectEnvironmentCollectionMemberToMap(&modelItem) + modelMap, err := dataSourceIbmProjectProjectEnvironmentSummaryToMap(&modelItem) if err != nil { return diag.FromErr(err) } @@ -415,7 +424,7 @@ func dataSourceIbmProjectCumulativeNeedsAttentionToMap(model *projectv1.Cumulati return modelMap, nil } -func dataSourceIbmProjectProjectConfigCollectionMemberToMap(model *projectv1.ProjectConfigCollectionMember) (map[string]interface{}, error) { +func dataSourceIbmProjectProjectConfigSummaryToMap(model *projectv1.ProjectConfigSummary) (map[string]interface{}, error) { modelMap := make(map[string]interface{}) if model.ApprovedVersion != nil { approvedVersionMap, err := dataSourceIbmProjectProjectConfigVersionSummaryToMap(model.ApprovedVersion) @@ -434,12 +443,8 @@ func dataSourceIbmProjectProjectConfigCollectionMemberToMap(model *projectv1.Pro modelMap["id"] = model.ID modelMap["version"] = flex.IntValue(model.Version) modelMap["state"] = model.State - if model.CreatedAt != nil { - modelMap["created_at"] = model.CreatedAt.String() - } - if model.ModifiedAt != nil { - modelMap["modified_at"] = model.ModifiedAt.String() - } + modelMap["created_at"] = model.CreatedAt.String() + modelMap["modified_at"] = model.ModifiedAt.String() modelMap["href"] = model.Href definitionMap, err := dataSourceIbmProjectProjectConfigDefinitionNameDescriptionToMap(model.Definition) if err != nil { @@ -492,7 +497,7 @@ func dataSourceIbmProjectProjectDefinitionReferenceToMap(model *projectv1.Projec return modelMap, nil } -func dataSourceIbmProjectProjectEnvironmentCollectionMemberToMap(model *projectv1.ProjectEnvironmentCollectionMember) (map[string]interface{}, error) { +func dataSourceIbmProjectProjectEnvironmentSummaryToMap(model *projectv1.ProjectEnvironmentSummary) (map[string]interface{}, error) { modelMap := make(map[string]interface{}) modelMap["id"] = model.ID projectMap, err := dataSourceIbmProjectProjectReferenceToMap(model.Project) diff --git a/ibm/service/project/data_source_ibm_project_config.go b/ibm/service/project/data_source_ibm_project_config.go index e064294568..38ddf87947 100644 --- a/ibm/service/project/data_source_ibm_project_config.go +++ b/ibm/service/project/data_source_ibm_project_config.go @@ -129,7 +129,7 @@ func DataSourceIbmProjectConfig() *schema.Resource { "schematics": &schema.Schema{ Type: schema.TypeList, Computed: true, - Description: "A schematics workspace associated to a project configuration.", + Description: "A schematics workspace associated to a project configuration, with scripts.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "workspace_crn": &schema.Schema{ @@ -137,6 +137,150 @@ func DataSourceIbmProjectConfig() *schema.Resource { Computed: true, Description: "An existing schematics workspace CRN.", }, + "validate_pre_script": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy).", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The type of the script.", + }, + "path": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The path to this script within the current version source.", + }, + "short_description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The short description for this script.", + }, + }, + }, + }, + "validate_post_script": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy).", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The type of the script.", + }, + "path": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The path to this script within the current version source.", + }, + "short_description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The short description for this script.", + }, + }, + }, + }, + "deploy_pre_script": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy).", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The type of the script.", + }, + "path": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The path to this script within the current version source.", + }, + "short_description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The short description for this script.", + }, + }, + }, + }, + "deploy_post_script": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy).", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The type of the script.", + }, + "path": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The path to this script within the current version source.", + }, + "short_description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The short description for this script.", + }, + }, + }, + }, + "undeploy_pre_script": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy).", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The type of the script.", + }, + "path": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The path to this script within the current version source.", + }, + "short_description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The short description for this script.", + }, + }, + }, + }, + "undeploy_post_script": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy).", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The type of the script.", + }, + "path": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The path to this script within the current version source.", + }, + "short_description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The short description for this script.", + }, + }, + }, + }, }, }, }, @@ -153,20 +297,20 @@ func DataSourceIbmProjectConfig() *schema.Resource { "definition": &schema.Schema{ Type: schema.TypeList, Computed: true, - Description: "The type and output of a project configuration.", + Description: "The name and description of a project configuration.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "name": &schema.Schema{ Type: schema.TypeString, Computed: true, - Description: "The configuration name.", + Description: "The configuration name. It is unique within the account across projects and regions.", }, "description": &schema.Schema{ Type: schema.TypeString, Computed: true, Description: "A project configuration description.", }, - "environment": &schema.Schema{ + "environment_id": &schema.Schema{ Type: schema.TypeString, Computed: true, Description: "The ID of the project environment.", @@ -190,6 +334,7 @@ func DataSourceIbmProjectConfig() *schema.Resource { "api_key": &schema.Schema{ Type: schema.TypeString, Computed: true, + Sensitive: true, Description: "The IBM Cloud API Key.", }, }, @@ -204,12 +349,12 @@ func DataSourceIbmProjectConfig() *schema.Resource { "id": &schema.Schema{ Type: schema.TypeString, Computed: true, - Description: "The unique ID.", + Description: "The unique ID for that compliance profile.", }, "instance_id": &schema.Schema{ Type: schema.TypeString, Computed: true, - Description: "The unique ID.", + Description: "A unique ID for an instance of a compliance profile.", }, "instance_location": &schema.Schema{ Type: schema.TypeString, @@ -219,7 +364,7 @@ func DataSourceIbmProjectConfig() *schema.Resource { "attachment_id": &schema.Schema{ Type: schema.TypeString, Computed: true, - Description: "The unique ID.", + Description: "A unique ID for the attachment to a compliance profile.", }, "profile_name": &schema.Schema{ Type: schema.TypeString, @@ -232,7 +377,7 @@ func DataSourceIbmProjectConfig() *schema.Resource { "locator_id": &schema.Schema{ Type: schema.TypeString, Computed: true, - Description: "A dotted value of catalogID.versionID.", + Description: "A unique concatenation of catalogID.versionID that identifies the DA in the catalog.", }, "inputs": &schema.Schema{ Type: schema.TypeList, @@ -250,11 +395,6 @@ func DataSourceIbmProjectConfig() *schema.Resource { Schema: map[string]*schema.Schema{}, }, }, - "type": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The type of a project configuration manual property.", - }, }, }, }, @@ -333,7 +473,7 @@ func dataSourceIbmProjectConfigRead(context context.Context, d *schema.ResourceD schematics := []map[string]interface{}{} if projectConfig.Schematics != nil { - modelMap, err := dataSourceIbmProjectConfigSchematicsWorkspaceToMap(projectConfig.Schematics) + modelMap, err := dataSourceIbmProjectConfigSchematicsMetadataToMap(projectConfig.Schematics) if err != nil { return diag.FromErr(err) } @@ -397,11 +537,67 @@ func dataSourceIbmProjectConfigProjectDefinitionReferenceToMap(model *projectv1. return modelMap, nil } -func dataSourceIbmProjectConfigSchematicsWorkspaceToMap(model *projectv1.SchematicsWorkspace) (map[string]interface{}, error) { +func dataSourceIbmProjectConfigSchematicsMetadataToMap(model *projectv1.SchematicsMetadata) (map[string]interface{}, error) { modelMap := make(map[string]interface{}) if model.WorkspaceCrn != nil { modelMap["workspace_crn"] = model.WorkspaceCrn } + if model.ValidatePreScript != nil { + validatePreScriptMap, err := dataSourceIbmProjectConfigScriptToMap(model.ValidatePreScript) + if err != nil { + return modelMap, err + } + modelMap["validate_pre_script"] = []map[string]interface{}{validatePreScriptMap} + } + if model.ValidatePostScript != nil { + validatePostScriptMap, err := dataSourceIbmProjectConfigScriptToMap(model.ValidatePostScript) + if err != nil { + return modelMap, err + } + modelMap["validate_post_script"] = []map[string]interface{}{validatePostScriptMap} + } + if model.DeployPreScript != nil { + deployPreScriptMap, err := dataSourceIbmProjectConfigScriptToMap(model.DeployPreScript) + if err != nil { + return modelMap, err + } + modelMap["deploy_pre_script"] = []map[string]interface{}{deployPreScriptMap} + } + if model.DeployPostScript != nil { + deployPostScriptMap, err := dataSourceIbmProjectConfigScriptToMap(model.DeployPostScript) + if err != nil { + return modelMap, err + } + modelMap["deploy_post_script"] = []map[string]interface{}{deployPostScriptMap} + } + if model.UndeployPreScript != nil { + undeployPreScriptMap, err := dataSourceIbmProjectConfigScriptToMap(model.UndeployPreScript) + if err != nil { + return modelMap, err + } + modelMap["undeploy_pre_script"] = []map[string]interface{}{undeployPreScriptMap} + } + if model.UndeployPostScript != nil { + undeployPostScriptMap, err := dataSourceIbmProjectConfigScriptToMap(model.UndeployPostScript) + if err != nil { + return modelMap, err + } + modelMap["undeploy_post_script"] = []map[string]interface{}{undeployPostScriptMap} + } + return modelMap, nil +} + +func dataSourceIbmProjectConfigScriptToMap(model *projectv1.Script) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Type != nil { + modelMap["type"] = model.Type + } + if model.Path != nil { + modelMap["path"] = model.Path + } + if model.ShortDescription != nil { + modelMap["short_description"] = model.ShortDescription + } return modelMap, nil } @@ -411,8 +607,8 @@ func dataSourceIbmProjectConfigProjectConfigResponseDefinitionToMap(model *proje if model.Description != nil { modelMap["description"] = model.Description } - if model.Environment != nil { - modelMap["environment"] = model.Environment + if model.EnvironmentID != nil { + modelMap["environment_id"] = model.EnvironmentID } if model.Authorizations != nil { authorizationsMap, err := dataSourceIbmProjectConfigProjectConfigAuthToMap(model.Authorizations) @@ -443,9 +639,6 @@ func dataSourceIbmProjectConfigProjectConfigResponseDefinitionToMap(model *proje } modelMap["settings"] = []map[string]interface{}{settingsMap} } - if model.Type != nil { - modelMap["type"] = model.Type - } return modelMap, nil } diff --git a/ibm/service/project/data_source_ibm_project_environment.go b/ibm/service/project/data_source_ibm_project_environment.go new file mode 100644 index 0000000000..e42f488a05 --- /dev/null +++ b/ibm/service/project/data_source_ibm_project_environment.go @@ -0,0 +1,321 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package project + +import ( + "context" + "fmt" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/project-go-sdk/projectv1" +) + +func DataSourceIbmProjectEnvironment() *schema.Resource { + return &schema.Resource{ + ReadContext: dataSourceIbmProjectEnvironmentRead, + + Schema: map[string]*schema.Schema{ + "project_id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The unique project ID.", + }, + "project_environment_id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The environment ID.", + }, + "project": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The project referenced by this resource.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The unique ID.", + }, + "definition": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The definition of the project reference.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The name of the project.", + }, + }, + }, + }, + "crn": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "An IBM Cloud resource name, which uniquely identifies a resource.", + }, + "href": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A URL.", + }, + }, + }, + }, + "created_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", + }, + "target_account": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The target account ID derived from the authentication block values.", + }, + "modified_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", + }, + "definition": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The environment definition.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The name of the environment. It is unique within the account across projects and regions.", + }, + "description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The description of the environment.", + }, + "authorizations": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "trusted_profile_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The trusted profile ID.", + }, + "method": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.", + }, + "api_key": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Sensitive: true, + Description: "The IBM Cloud API Key.", + }, + }, + }, + }, + "inputs": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The input variables for configuration definition and environment.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{}, + }, + }, + "compliance_profile": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The profile required for compliance.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The unique ID for that compliance profile.", + }, + "instance_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A unique ID for an instance of a compliance profile.", + }, + "instance_location": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The location of the compliance instance.", + }, + "attachment_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A unique ID for the attachment to a compliance profile.", + }, + "profile_name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The name of the compliance profile.", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +func dataSourceIbmProjectEnvironmentRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + projectClient, err := meta.(conns.ClientSession).ProjectV1() + if err != nil { + return diag.FromErr(err) + } + + getProjectEnvironmentOptions := &projectv1.GetProjectEnvironmentOptions{} + + getProjectEnvironmentOptions.SetProjectID(d.Get("project_id").(string)) + getProjectEnvironmentOptions.SetID(d.Get("project_environment_id").(string)) + + environment, response, err := projectClient.GetProjectEnvironmentWithContext(context, getProjectEnvironmentOptions) + if err != nil { + log.Printf("[DEBUG] GetProjectEnvironmentWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("GetProjectEnvironmentWithContext failed %s\n%s", err, response)) + } + + d.SetId(fmt.Sprintf("%s/%s", *getProjectEnvironmentOptions.ProjectID, *getProjectEnvironmentOptions.ID)) + + project := []map[string]interface{}{} + if environment.Project != nil { + modelMap, err := dataSourceIbmProjectEnvironmentProjectReferenceToMap(environment.Project) + if err != nil { + return diag.FromErr(err) + } + project = append(project, modelMap) + } + if err = d.Set("project", project); err != nil { + return diag.FromErr(fmt.Errorf("Error setting project %s", err)) + } + + if err = d.Set("created_at", flex.DateTimeToString(environment.CreatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting created_at: %s", err)) + } + + if err = d.Set("target_account", environment.TargetAccount); err != nil { + return diag.FromErr(fmt.Errorf("Error setting target_account: %s", err)) + } + + if err = d.Set("modified_at", flex.DateTimeToString(environment.ModifiedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting modified_at: %s", err)) + } + + definition := []map[string]interface{}{} + if environment.Definition != nil { + modelMap, err := dataSourceIbmProjectEnvironmentEnvironmentDefinitionRequiredPropertiesToMap(environment.Definition) + if err != nil { + return diag.FromErr(err) + } + definition = append(definition, modelMap) + } + if err = d.Set("definition", definition); err != nil { + return diag.FromErr(fmt.Errorf("Error setting definition %s", err)) + } + + return nil +} + +func dataSourceIbmProjectEnvironmentProjectReferenceToMap(model *projectv1.ProjectReference) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["id"] = model.ID + definitionMap, err := dataSourceIbmProjectEnvironmentProjectDefinitionReferenceToMap(model.Definition) + if err != nil { + return modelMap, err + } + modelMap["definition"] = []map[string]interface{}{definitionMap} + modelMap["crn"] = model.Crn + modelMap["href"] = model.Href + return modelMap, nil +} + +func dataSourceIbmProjectEnvironmentProjectDefinitionReferenceToMap(model *projectv1.ProjectDefinitionReference) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["name"] = model.Name + return modelMap, nil +} + +func dataSourceIbmProjectEnvironmentEnvironmentDefinitionRequiredPropertiesToMap(model *projectv1.EnvironmentDefinitionRequiredProperties) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["name"] = model.Name + if model.Description != nil { + modelMap["description"] = model.Description + } + if model.Authorizations != nil { + authorizationsMap, err := dataSourceIbmProjectEnvironmentProjectConfigAuthToMap(model.Authorizations) + if err != nil { + return modelMap, err + } + modelMap["authorizations"] = []map[string]interface{}{authorizationsMap} + } + if model.Inputs != nil { + inputsMap, err := dataSourceIbmProjectEnvironmentInputVariableToMap(model.Inputs) + if err != nil { + return modelMap, err + } + modelMap["inputs"] = []map[string]interface{}{inputsMap} + } + if model.ComplianceProfile != nil { + complianceProfileMap, err := dataSourceIbmProjectEnvironmentProjectComplianceProfileToMap(model.ComplianceProfile) + if err != nil { + return modelMap, err + } + modelMap["compliance_profile"] = []map[string]interface{}{complianceProfileMap} + } + return modelMap, nil +} + +func dataSourceIbmProjectEnvironmentProjectConfigAuthToMap(model *projectv1.ProjectConfigAuth) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.TrustedProfileID != nil { + modelMap["trusted_profile_id"] = model.TrustedProfileID + } + if model.Method != nil { + modelMap["method"] = model.Method + } + if model.ApiKey != nil { + modelMap["api_key"] = model.ApiKey + } + return modelMap, nil +} + +func dataSourceIbmProjectEnvironmentInputVariableToMap(model *projectv1.InputVariable) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + return modelMap, nil +} + +func dataSourceIbmProjectEnvironmentProjectComplianceProfileToMap(model *projectv1.ProjectComplianceProfile) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.ID != nil { + modelMap["id"] = model.ID + } + if model.InstanceID != nil { + modelMap["instance_id"] = model.InstanceID + } + if model.InstanceLocation != nil { + modelMap["instance_location"] = model.InstanceLocation + } + if model.AttachmentID != nil { + modelMap["attachment_id"] = model.AttachmentID + } + if model.ProfileName != nil { + modelMap["profile_name"] = model.ProfileName + } + return modelMap, nil +} diff --git a/ibm/service/project/data_source_ibm_project_environment_test.go b/ibm/service/project/data_source_ibm_project_environment_test.go new file mode 100644 index 0000000000..7edd07a90e --- /dev/null +++ b/ibm/service/project/data_source_ibm_project_environment_test.go @@ -0,0 +1,70 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package project_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" +) + +func TestAccIbmProjectEnvironmentDataSourceBasic(t *testing.T) { + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmProjectEnvironmentDataSourceConfigBasic(), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_project_environment.project_environment_instance", "id"), + resource.TestCheckResourceAttrSet("data.ibm_project_environment.project_environment_instance", "project_id"), + resource.TestCheckResourceAttrSet("data.ibm_project_environment.project_environment_instance", "project_environment_id"), + resource.TestCheckResourceAttrSet("data.ibm_project_environment.project_environment_instance", "project.#"), + resource.TestCheckResourceAttrSet("data.ibm_project_environment.project_environment_instance", "created_at"), + resource.TestCheckResourceAttrSet("data.ibm_project_environment.project_environment_instance", "modified_at"), + resource.TestCheckResourceAttrSet("data.ibm_project_environment.project_environment_instance", "definition.#"), + ), + }, + }, + }) +} + +func testAccCheckIbmProjectEnvironmentDataSourceConfigBasic() string { + return fmt.Sprintf(` + resource "ibm_project" "project_instance" { + location = "us-south" + resource_group = "Default" + definition { + name = "acme-microservice" + description = "acme-microservice description" + destroy_on_delete = true + } + } + + resource "ibm_project_environment" "project_environment_instance" { + project_id = ibm_project.project_instance.id + definition { + name = "environment-stage" + description = "environment for stage project" + authorizations { + method = "api_key" + api_key = "%s" + } + } + lifecycle { + ignore_changes = [ + definition[0].authorizations[0].api_key, + ] + } + } + + data "ibm_project_environment" "project_environment_instance" { + project_id = ibm_project_environment.project_environment_instance.project_id + project_environment_id = ibm_project_environment.project_environment_instance.project_environment_id + } + `, acc.ProjectsConfigApiKey) +} diff --git a/ibm/service/project/data_source_ibm_project_test.go b/ibm/service/project/data_source_ibm_project_test.go index 062bc5fefe..e8e3ade5c8 100644 --- a/ibm/service/project/data_source_ibm_project_test.go +++ b/ibm/service/project/data_source_ibm_project_test.go @@ -28,8 +28,9 @@ func TestAccIbmProjectDataSourceBasic(t *testing.T) { resource.TestCheckResourceAttrSet("data.ibm_project.project_instance", "crn"), resource.TestCheckResourceAttrSet("data.ibm_project.project_instance", "created_at"), resource.TestCheckResourceAttrSet("data.ibm_project.project_instance", "location"), - resource.TestCheckResourceAttrSet("data.ibm_project.project_instance", "resource_group"), + resource.TestCheckResourceAttrSet("data.ibm_project.project_instance", "resource_group_id"), resource.TestCheckResourceAttrSet("data.ibm_project.project_instance", "state"), + resource.TestCheckResourceAttrSet("data.ibm_project.project_instance", "resource_group"), resource.TestCheckResourceAttrSet("data.ibm_project.project_instance", "definition.#"), ), }, diff --git a/ibm/service/project/resource_ibm_project.go b/ibm/service/project/resource_ibm_project.go index 9b5242752d..1147380c19 100644 --- a/ibm/service/project/resource_ibm_project.go +++ b/ibm/service/project/resource_ibm_project.go @@ -51,7 +51,7 @@ func ResourceIbmProject() *schema.Resource { "name": &schema.Schema{ Type: schema.TypeString, Required: true, - Description: "The name of the project.", + Description: "The name of the project. It is unique within the account across regions.", }, "description": &schema.Schema{ Type: schema.TypeString, @@ -84,22 +84,22 @@ func ResourceIbmProject() *schema.Resource { Schema: map[string]*schema.Schema{ "event": &schema.Schema{ Type: schema.TypeString, - Optional: true, + Computed: true, Description: "The event name.", }, "event_id": &schema.Schema{ Type: schema.TypeString, - Optional: true, + Computed: true, Description: "A unique ID for that individual event.", }, "config_id": &schema.Schema{ Type: schema.TypeString, - Optional: true, + Computed: true, Description: "A unique ID for the configuration.", }, "config_version": &schema.Schema{ Type: schema.TypeInt, - Optional: true, + Computed: true, Description: "The version number of the configuration.", }, }, @@ -110,6 +110,11 @@ func ResourceIbmProject() *schema.Resource { Computed: true, Description: "True indicates that the fetch of the needs attention items failed. It only exists if there was an error while retrieving the cumulative needs attention view.", }, + "resource_group_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The resource group id where the project's data and tools are created.", + }, "state": &schema.Schema{ Type: schema.TypeString, Computed: true, @@ -128,17 +133,17 @@ func ResourceIbmProject() *schema.Resource { Schema: map[string]*schema.Schema{ "id": &schema.Schema{ Type: schema.TypeString, - Required: true, + Computed: true, Description: "The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration.", }, "version": &schema.Schema{ Type: schema.TypeInt, - Required: true, + Computed: true, Description: "The version of the configuration.", }, "state": &schema.Schema{ Type: schema.TypeString, - Required: true, + Computed: true, Description: "The state of the configuration.", }, "created_at": &schema.Schema{ @@ -153,25 +158,23 @@ func ResourceIbmProject() *schema.Resource { }, "href": &schema.Schema{ Type: schema.TypeString, - Required: true, + Computed: true, Description: "A URL.", }, "definition": &schema.Schema{ Type: schema.TypeList, - MinItems: 1, - MaxItems: 1, - Required: true, + Computed: true, Description: "The name and description of a project configuration.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "name": &schema.Schema{ Type: schema.TypeString, - Optional: true, - Description: "The configuration name.", + Computed: true, + Description: "The configuration name. It is unique within the account across projects and regions.", }, "description": &schema.Schema{ Type: schema.TypeString, - Optional: true, + Computed: true, Description: "A project configuration description.", }, }, @@ -179,28 +182,24 @@ func ResourceIbmProject() *schema.Resource { }, "project": &schema.Schema{ Type: schema.TypeList, - MinItems: 1, - MaxItems: 1, - Required: true, + Computed: true, Description: "The project referenced by this resource.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "id": &schema.Schema{ Type: schema.TypeString, - Required: true, + Computed: true, Description: "The unique ID.", }, "definition": &schema.Schema{ Type: schema.TypeList, - MinItems: 1, - MaxItems: 1, - Required: true, + Computed: true, Description: "The definition of the project reference.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "name": &schema.Schema{ Type: schema.TypeString, - Required: true, + Computed: true, Description: "The name of the project.", }, }, @@ -208,12 +207,12 @@ func ResourceIbmProject() *schema.Resource { }, "crn": &schema.Schema{ Type: schema.TypeString, - Required: true, + Computed: true, Description: "An IBM Cloud resource name, which uniquely identifies a resource.", }, "href": &schema.Schema{ Type: schema.TypeString, - Required: true, + Computed: true, Description: "A URL.", }, }, @@ -230,33 +229,29 @@ func ResourceIbmProject() *schema.Resource { Schema: map[string]*schema.Schema{ "id": &schema.Schema{ Type: schema.TypeString, - Required: true, + Computed: true, Description: "The environment id as a friendly name.", }, "project": &schema.Schema{ Type: schema.TypeList, - MinItems: 1, - MaxItems: 1, - Required: true, + Computed: true, Description: "The project referenced by this resource.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "id": &schema.Schema{ Type: schema.TypeString, - Required: true, + Computed: true, Description: "The unique ID.", }, "definition": &schema.Schema{ Type: schema.TypeList, - MinItems: 1, - MaxItems: 1, - Required: true, + Computed: true, Description: "The definition of the project reference.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "name": &schema.Schema{ Type: schema.TypeString, - Required: true, + Computed: true, Description: "The name of the project.", }, }, @@ -264,12 +259,12 @@ func ResourceIbmProject() *schema.Resource { }, "crn": &schema.Schema{ Type: schema.TypeString, - Required: true, + Computed: true, Description: "An IBM Cloud resource name, which uniquely identifies a resource.", }, "href": &schema.Schema{ Type: schema.TypeString, - Required: true, + Computed: true, Description: "A URL.", }, }, @@ -282,25 +277,23 @@ func ResourceIbmProject() *schema.Resource { }, "href": &schema.Schema{ Type: schema.TypeString, - Required: true, + Computed: true, Description: "A URL.", }, "definition": &schema.Schema{ Type: schema.TypeList, - MinItems: 1, - MaxItems: 1, - Required: true, + Computed: true, Description: "The environment definition used in the project collection.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "name": &schema.Schema{ Type: schema.TypeString, - Optional: true, - Description: "The name of the environment.", + Computed: true, + Description: "The name of the environment. It is unique within the account across projects and regions.", }, "description": &schema.Schema{ Type: schema.TypeString, - Optional: true, + Computed: true, Description: "The description of the environment.", }, }, @@ -424,6 +417,9 @@ func resourceIbmProjectRead(context context.Context, d *schema.ResourceData, met return diag.FromErr(fmt.Errorf("Error setting cumulative_needs_attention_view_error: %s", err)) } } + if err = d.Set("resource_group_id", project.ResourceGroupID); err != nil { + return diag.FromErr(fmt.Errorf("Error setting resource_group_id: %s", err)) + } if err = d.Set("state", project.State); err != nil { return diag.FromErr(fmt.Errorf("Error setting state: %s", err)) } @@ -435,7 +431,7 @@ func resourceIbmProjectRead(context context.Context, d *schema.ResourceData, met if !core.IsNil(project.Configs) { configs := []map[string]interface{}{} for _, configsItem := range project.Configs { - configsItemMap, err := resourceIbmProjectProjectConfigCollectionMemberToMap(&configsItem) + configsItemMap, err := resourceIbmProjectProjectConfigSummaryToMap(&configsItem) if err != nil { return diag.FromErr(err) } @@ -448,7 +444,7 @@ func resourceIbmProjectRead(context context.Context, d *schema.ResourceData, met if !core.IsNil(project.Environments) { environments := []map[string]interface{}{} for _, environmentsItem := range project.Environments { - environmentsItemMap, err := resourceIbmProjectProjectEnvironmentCollectionMemberToMap(&environmentsItem) + environmentsItemMap, err := resourceIbmProjectProjectEnvironmentSummaryToMap(&environmentsItem) if err != nil { return diag.FromErr(err) } @@ -475,7 +471,7 @@ func resourceIbmProjectUpdate(context context.Context, d *schema.ResourceData, m hasChange := false if d.HasChange("definition") { - definition, err := resourceIbmProjectMapToProjectPrototypePatchDefinitionBlock(d.Get("definition.0").(map[string]interface{})) + definition, err := resourceIbmProjectMapToProjectPatchDefinitionBlock(d.Get("definition.0").(map[string]interface{})) if err != nil { return diag.FromErr(err) } @@ -550,8 +546,8 @@ func resourceIbmProjectMapToProjectConfigPrototypeDefinitionBlock(modelMap map[s if modelMap["description"] != nil && modelMap["description"].(string) != "" { model.Description = core.StringPtr(modelMap["description"].(string)) } - if modelMap["environment"] != nil && modelMap["environment"].(string) != "" { - model.Environment = core.StringPtr(modelMap["environment"].(string)) + if modelMap["environment_id"] != nil && modelMap["environment_id"].(string) != "" { + model.EnvironmentID = core.StringPtr(modelMap["environment_id"].(string)) } if modelMap["authorizations"] != nil && len(modelMap["authorizations"].([]interface{})) > 0 { AuthorizationsModel, err := resourceIbmProjectMapToProjectConfigAuth(modelMap["authorizations"].([]interface{})[0].(map[string]interface{})) @@ -639,8 +635,8 @@ func resourceIbmProjectMapToSchematicsWorkspace(modelMap map[string]interface{}) return model, nil } -func resourceIbmProjectMapToProjectPrototypePatchDefinitionBlock(modelMap map[string]interface{}) (*projectv1.ProjectPrototypePatchDefinitionBlock, error) { - model := &projectv1.ProjectPrototypePatchDefinitionBlock{} +func resourceIbmProjectMapToProjectPatchDefinitionBlock(modelMap map[string]interface{}) (*projectv1.ProjectPatchDefinitionBlock, error) { + model := &projectv1.ProjectPatchDefinitionBlock{} if modelMap["name"] != nil && modelMap["name"].(string) != "" { model.Name = core.StringPtr(modelMap["name"].(string)) } @@ -680,7 +676,7 @@ func resourceIbmProjectCumulativeNeedsAttentionToMap(model *projectv1.Cumulative return modelMap, nil } -func resourceIbmProjectProjectConfigCollectionMemberToMap(model *projectv1.ProjectConfigCollectionMember) (map[string]interface{}, error) { +func resourceIbmProjectProjectConfigSummaryToMap(model *projectv1.ProjectConfigSummary) (map[string]interface{}, error) { modelMap := make(map[string]interface{}) if model.ApprovedVersion != nil { approvedVersionMap, err := resourceIbmProjectProjectConfigVersionSummaryToMap(model.ApprovedVersion) @@ -699,12 +695,8 @@ func resourceIbmProjectProjectConfigCollectionMemberToMap(model *projectv1.Proje modelMap["id"] = model.ID modelMap["version"] = flex.IntValue(model.Version) modelMap["state"] = model.State - if model.CreatedAt != nil { - modelMap["created_at"] = model.CreatedAt.String() - } - if model.ModifiedAt != nil { - modelMap["modified_at"] = model.ModifiedAt.String() - } + modelMap["created_at"] = model.CreatedAt.String() + modelMap["modified_at"] = model.ModifiedAt.String() modelMap["href"] = model.Href definitionMap, err := resourceIbmProjectProjectConfigDefinitionNameDescriptionToMap(model.Definition) if err != nil { @@ -757,7 +749,7 @@ func resourceIbmProjectProjectDefinitionReferenceToMap(model *projectv1.ProjectD return modelMap, nil } -func resourceIbmProjectProjectEnvironmentCollectionMemberToMap(model *projectv1.ProjectEnvironmentCollectionMember) (map[string]interface{}, error) { +func resourceIbmProjectProjectEnvironmentSummaryToMap(model *projectv1.ProjectEnvironmentSummary) (map[string]interface{}, error) { modelMap := make(map[string]interface{}) modelMap["id"] = model.ID projectMap, err := resourceIbmProjectProjectReferenceToMap(model.Project) diff --git a/ibm/service/project/resource_ibm_project_config.go b/ibm/service/project/resource_ibm_project_config.go index ef7fb404c3..5594fbd5b7 100644 --- a/ibm/service/project/resource_ibm_project_config.go +++ b/ibm/service/project/resource_ibm_project_config.go @@ -38,7 +38,7 @@ func ResourceIbmProjectConfig() *schema.Resource { Type: schema.TypeList, MaxItems: 1, Optional: true, - Description: "A schematics workspace associated to a project configuration.", + Description: "A schematics workspace associated to a project configuration, with scripts.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "workspace_crn": &schema.Schema{ @@ -46,6 +46,150 @@ func ResourceIbmProjectConfig() *schema.Resource { Optional: true, Description: "An existing schematics workspace CRN.", }, + "validate_pre_script": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy).", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The type of the script.", + }, + "path": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The path to this script within the current version source.", + }, + "short_description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The short description for this script.", + }, + }, + }, + }, + "validate_post_script": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy).", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The type of the script.", + }, + "path": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The path to this script within the current version source.", + }, + "short_description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The short description for this script.", + }, + }, + }, + }, + "deploy_pre_script": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy).", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The type of the script.", + }, + "path": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The path to this script within the current version source.", + }, + "short_description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The short description for this script.", + }, + }, + }, + }, + "deploy_post_script": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy).", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The type of the script.", + }, + "path": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The path to this script within the current version source.", + }, + "short_description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The short description for this script.", + }, + }, + }, + }, + "undeploy_pre_script": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy).", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The type of the script.", + }, + "path": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The path to this script within the current version source.", + }, + "short_description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The short description for this script.", + }, + }, + }, + }, + "undeploy_post_script": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy).", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The type of the script.", + }, + "path": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The path to this script within the current version source.", + }, + "short_description": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The short description for this script.", + }, + }, + }, + }, }, }, }, @@ -54,20 +198,20 @@ func ResourceIbmProjectConfig() *schema.Resource { MinItems: 1, MaxItems: 1, Required: true, - Description: "The type and output of a project configuration.", + Description: "The name and description of a project configuration.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "name": &schema.Schema{ Type: schema.TypeString, Required: true, - Description: "The configuration name.", + Description: "The configuration name. It is unique within the account across projects and regions.", }, "description": &schema.Schema{ Type: schema.TypeString, Optional: true, Description: "A project configuration description.", }, - "environment": &schema.Schema{ + "environment_id": &schema.Schema{ Type: schema.TypeString, Optional: true, Description: "The ID of the project environment.", @@ -92,6 +236,7 @@ func ResourceIbmProjectConfig() *schema.Resource { "api_key": &schema.Schema{ Type: schema.TypeString, Optional: true, + Sensitive: true, Description: "The IBM Cloud API Key.", }, }, @@ -107,12 +252,12 @@ func ResourceIbmProjectConfig() *schema.Resource { "id": &schema.Schema{ Type: schema.TypeString, Optional: true, - Description: "The unique ID.", + Description: "The unique ID for that compliance profile.", }, "instance_id": &schema.Schema{ Type: schema.TypeString, Optional: true, - Description: "The unique ID.", + Description: "A unique ID for an instance of a compliance profile.", }, "instance_location": &schema.Schema{ Type: schema.TypeString, @@ -122,7 +267,7 @@ func ResourceIbmProjectConfig() *schema.Resource { "attachment_id": &schema.Schema{ Type: schema.TypeString, Optional: true, - Description: "The unique ID.", + Description: "A unique ID for the attachment to a compliance profile.", }, "profile_name": &schema.Schema{ Type: schema.TypeString, @@ -136,7 +281,7 @@ func ResourceIbmProjectConfig() *schema.Resource { Type: schema.TypeString, Required: true, ForceNew: true, - Description: "A dotted value of catalogID.versionID.", + Description: "A unique concatenation of catalogID.versionID that identifies the DA in the catalog.", }, "inputs": &schema.Schema{ Type: schema.TypeList, @@ -156,11 +301,6 @@ func ResourceIbmProjectConfig() *schema.Resource { Schema: map[string]*schema.Schema{}, }, }, - "type": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - Description: "The type of a project configuration manual property.", - }, }, }, }, @@ -203,17 +343,17 @@ func ResourceIbmProjectConfig() *schema.Resource { Schema: map[string]*schema.Schema{ "name": &schema.Schema{ Type: schema.TypeString, - Required: true, + Computed: true, Description: "The variable name.", }, "description": &schema.Schema{ Type: schema.TypeString, - Optional: true, + Computed: true, Description: "A short explanation of the output value.", }, "value": &schema.Schema{ Type: schema.TypeString, - Optional: true, + Computed: true, Description: "Can be any value - a string, number, boolean, array, or object.", }, }, @@ -227,20 +367,18 @@ func ResourceIbmProjectConfig() *schema.Resource { Schema: map[string]*schema.Schema{ "id": &schema.Schema{ Type: schema.TypeString, - Required: true, + Computed: true, Description: "The unique ID.", }, "definition": &schema.Schema{ Type: schema.TypeList, - MinItems: 1, - MaxItems: 1, - Required: true, + Computed: true, Description: "The definition of the project reference.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "name": &schema.Schema{ Type: schema.TypeString, - Required: true, + Computed: true, Description: "The name of the project.", }, }, @@ -248,12 +386,12 @@ func ResourceIbmProjectConfig() *schema.Resource { }, "crn": &schema.Schema{ Type: schema.TypeString, - Required: true, + Computed: true, Description: "An IBM Cloud resource name, which uniquely identifies a resource.", }, "href": &schema.Schema{ Type: schema.TypeString, - Required: true, + Computed: true, Description: "A URL.", }, }, @@ -439,7 +577,7 @@ func resourceIbmProjectConfigUpdate(context context.Context, d *schema.ResourceD hasChange := false if d.HasChange("definition") { - definition, err := resourceIbmProjectConfigMapToProjectConfigPrototypePatchDefinitionBlock(d.Get("definition.0").(map[string]interface{})) + definition, err := resourceIbmProjectConfigMapToProjectConfigPatchDefinitionBlock(d.Get("definition.0").(map[string]interface{})) if err != nil { return diag.FromErr(err) } @@ -491,8 +629,8 @@ func resourceIbmProjectConfigMapToProjectConfigPrototypeDefinitionBlock(modelMap if modelMap["description"] != nil && modelMap["description"].(string) != "" { model.Description = core.StringPtr(modelMap["description"].(string)) } - if modelMap["environment"] != nil && modelMap["environment"].(string) != "" { - model.Environment = core.StringPtr(modelMap["environment"].(string)) + if modelMap["environment_id"] != nil && modelMap["environment_id"].(string) != "" { + model.EnvironmentID = core.StringPtr(modelMap["environment_id"].(string)) } if modelMap["authorizations"] != nil && len(modelMap["authorizations"].([]interface{})) > 0 { AuthorizationsModel, err := resourceIbmProjectConfigMapToProjectConfigAuth(modelMap["authorizations"].([]interface{})[0].(map[string]interface{})) @@ -580,16 +718,16 @@ func resourceIbmProjectConfigMapToSchematicsWorkspace(modelMap map[string]interf return model, nil } -func resourceIbmProjectConfigMapToProjectConfigPrototypePatchDefinitionBlock(modelMap map[string]interface{}) (*projectv1.ProjectConfigPrototypePatchDefinitionBlock, error) { - model := &projectv1.ProjectConfigPrototypePatchDefinitionBlock{} +func resourceIbmProjectConfigMapToProjectConfigPatchDefinitionBlock(modelMap map[string]interface{}) (*projectv1.ProjectConfigPatchDefinitionBlock, error) { + model := &projectv1.ProjectConfigPatchDefinitionBlock{} if modelMap["name"] != nil && modelMap["name"].(string) != "" { model.Name = core.StringPtr(modelMap["name"].(string)) } if modelMap["description"] != nil && modelMap["description"].(string) != "" { model.Description = core.StringPtr(modelMap["description"].(string)) } - if modelMap["environment"] != nil && modelMap["environment"].(string) != "" { - model.Environment = core.StringPtr(modelMap["environment"].(string)) + if modelMap["environment_id"] != nil && modelMap["environment_id"].(string) != "" { + model.EnvironmentID = core.StringPtr(modelMap["environment_id"].(string)) } if modelMap["authorizations"] != nil && len(modelMap["authorizations"].([]interface{})) > 0 { AuthorizationsModel, err := resourceIbmProjectConfigMapToProjectConfigAuth(modelMap["authorizations"].([]interface{})[0].(map[string]interface{})) @@ -625,11 +763,67 @@ func resourceIbmProjectConfigMapToProjectConfigPrototypePatchDefinitionBlock(mod return model, nil } -func resourceIbmProjectConfigSchematicsWorkspaceToMap(model *projectv1.SchematicsWorkspace) (map[string]interface{}, error) { +func resourceIbmProjectConfigSchematicsMetadataToMap(model *projectv1.SchematicsMetadata) (map[string]interface{}, error) { modelMap := make(map[string]interface{}) if model.WorkspaceCrn != nil { modelMap["workspace_crn"] = model.WorkspaceCrn } + if model.ValidatePreScript != nil { + validatePreScriptMap, err := resourceIbmProjectConfigScriptToMap(model.ValidatePreScript) + if err != nil { + return modelMap, err + } + modelMap["validate_pre_script"] = []map[string]interface{}{validatePreScriptMap} + } + if model.ValidatePostScript != nil { + validatePostScriptMap, err := resourceIbmProjectConfigScriptToMap(model.ValidatePostScript) + if err != nil { + return modelMap, err + } + modelMap["validate_post_script"] = []map[string]interface{}{validatePostScriptMap} + } + if model.DeployPreScript != nil { + deployPreScriptMap, err := resourceIbmProjectConfigScriptToMap(model.DeployPreScript) + if err != nil { + return modelMap, err + } + modelMap["deploy_pre_script"] = []map[string]interface{}{deployPreScriptMap} + } + if model.DeployPostScript != nil { + deployPostScriptMap, err := resourceIbmProjectConfigScriptToMap(model.DeployPostScript) + if err != nil { + return modelMap, err + } + modelMap["deploy_post_script"] = []map[string]interface{}{deployPostScriptMap} + } + if model.UndeployPreScript != nil { + undeployPreScriptMap, err := resourceIbmProjectConfigScriptToMap(model.UndeployPreScript) + if err != nil { + return modelMap, err + } + modelMap["undeploy_pre_script"] = []map[string]interface{}{undeployPreScriptMap} + } + if model.UndeployPostScript != nil { + undeployPostScriptMap, err := resourceIbmProjectConfigScriptToMap(model.UndeployPostScript) + if err != nil { + return modelMap, err + } + modelMap["undeploy_post_script"] = []map[string]interface{}{undeployPostScriptMap} + } + return modelMap, nil +} + +func resourceIbmProjectConfigScriptToMap(model *projectv1.Script) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.Type != nil { + modelMap["type"] = model.Type + } + if model.Path != nil { + modelMap["path"] = model.Path + } + if model.ShortDescription != nil { + modelMap["short_description"] = model.ShortDescription + } return modelMap, nil } @@ -639,8 +833,8 @@ func resourceIbmProjectConfigProjectConfigResponseDefinitionToMap(model *project if model.Description != nil { modelMap["description"] = model.Description } - if model.Environment != nil { - modelMap["environment"] = model.Environment + if model.EnvironmentID != nil { + modelMap["environment_id"] = model.EnvironmentID } if model.Authorizations != nil { authorizationsMap, err := resourceIbmProjectConfigProjectConfigAuthToMap(model.Authorizations) @@ -675,9 +869,6 @@ func resourceIbmProjectConfigProjectConfigResponseDefinitionToMap(model *project } modelMap["settings"] = []map[string]interface{}{settingsMap} } - if model.Type != nil { - modelMap["type"] = model.Type - } return modelMap, nil } diff --git a/ibm/service/project/resource_ibm_project_environment.go b/ibm/service/project/resource_ibm_project_environment.go new file mode 100644 index 0000000000..3dda07d3a2 --- /dev/null +++ b/ibm/service/project/resource_ibm_project_environment.go @@ -0,0 +1,551 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package project + +import ( + "context" + "fmt" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/validate" + "github.com/IBM/go-sdk-core/v5/core" + "github.com/IBM/project-go-sdk/projectv1" +) + +func ResourceIbmProjectEnvironment() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceIbmProjectEnvironmentCreate, + ReadContext: resourceIbmProjectEnvironmentRead, + UpdateContext: resourceIbmProjectEnvironmentUpdate, + DeleteContext: resourceIbmProjectEnvironmentDelete, + Importer: &schema.ResourceImporter{}, + + Schema: map[string]*schema.Schema{ + "project_id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validate.InvokeValidator("ibm_project_environment", "project_id"), + Description: "The unique project ID.", + }, + "definition": &schema.Schema{ + Type: schema.TypeList, + MinItems: 1, + MaxItems: 1, + Required: true, + Description: "The environment definition.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The name of the environment. It is unique within the account across projects and regions.", + }, + "description": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The description of the environment.", + }, + "authorizations": &schema.Schema{ + Type: schema.TypeList, + MaxItems: 1, + Optional: true, + Description: "The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "trusted_profile_id": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The trusted profile ID.", + }, + "method": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.", + }, + "api_key": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Sensitive: true, + Description: "The IBM Cloud API Key.", + }, + }, + }, + }, + "inputs": &schema.Schema{ + Type: schema.TypeList, + MaxItems: 1, + Optional: true, + Description: "The input variables for configuration definition and environment.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{}, + }, + }, + "compliance_profile": &schema.Schema{ + Type: schema.TypeList, + MaxItems: 1, + Optional: true, + Description: "The profile required for compliance.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "id": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The unique ID for that compliance profile.", + }, + "instance_id": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "A unique ID for an instance of a compliance profile.", + }, + "instance_location": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The location of the compliance instance.", + }, + "attachment_id": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "A unique ID for the attachment to a compliance profile.", + }, + "profile_name": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The name of the compliance profile.", + }, + }, + }, + }, + }, + }, + }, + "project": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The project referenced by this resource.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The unique ID.", + }, + "definition": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "The definition of the project reference.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The name of the project.", + }, + }, + }, + }, + "crn": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "An IBM Cloud resource name, which uniquely identifies a resource.", + }, + "href": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A URL.", + }, + }, + }, + }, + "created_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", + }, + "target_account": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The target account ID derived from the authentication block values.", + }, + "modified_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.", + }, + "project_environment_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The environment id as a friendly name.", + }, + }, + } +} + +func ResourceIbmProjectEnvironmentValidator() *validate.ResourceValidator { + validateSchema := make([]validate.ValidateSchema, 0) + validateSchema = append(validateSchema, + validate.ValidateSchema{ + Identifier: "project_id", + ValidateFunctionIdentifier: validate.ValidateRegexp, + Type: validate.TypeString, + Required: true, + Regexp: `^[\.\-0-9a-zA-Z]+$`, + MaxValueLength: 128, + }, + ) + + resourceValidator := validate.ResourceValidator{ResourceName: "ibm_project_environment", Schema: validateSchema} + return &resourceValidator +} + +func resourceIbmProjectEnvironmentCreate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + projectClient, err := meta.(conns.ClientSession).ProjectV1() + if err != nil { + return diag.FromErr(err) + } + + createProjectEnvironmentOptions := &projectv1.CreateProjectEnvironmentOptions{} + + createProjectEnvironmentOptions.SetProjectID(d.Get("project_id").(string)) + definitionModel, err := resourceIbmProjectEnvironmentMapToEnvironmentDefinitionRequiredProperties(d.Get("definition.0").(map[string]interface{})) + if err != nil { + return diag.FromErr(err) + } + createProjectEnvironmentOptions.SetDefinition(definitionModel) + + environment, response, err := projectClient.CreateProjectEnvironmentWithContext(context, createProjectEnvironmentOptions) + if err != nil { + log.Printf("[DEBUG] CreateProjectEnvironmentWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("CreateProjectEnvironmentWithContext failed %s\n%s", err, response)) + } + + d.SetId(fmt.Sprintf("%s/%s", *createProjectEnvironmentOptions.ProjectID, *environment.ID)) + + return resourceIbmProjectEnvironmentRead(context, d, meta) +} + +func resourceIbmProjectEnvironmentRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + projectClient, err := meta.(conns.ClientSession).ProjectV1() + if err != nil { + return diag.FromErr(err) + } + + getProjectEnvironmentOptions := &projectv1.GetProjectEnvironmentOptions{} + + parts, err := flex.SepIdParts(d.Id(), "/") + if err != nil { + return diag.FromErr(err) + } + + getProjectEnvironmentOptions.SetProjectID(parts[0]) + getProjectEnvironmentOptions.SetID(parts[1]) + + environment, response, err := projectClient.GetProjectEnvironmentWithContext(context, getProjectEnvironmentOptions) + if err != nil { + if response != nil && response.StatusCode == 404 { + d.SetId("") + return nil + } + log.Printf("[DEBUG] GetProjectEnvironmentWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("GetProjectEnvironmentWithContext failed %s\n%s", err, response)) + } + + definitionMap, err := resourceIbmProjectEnvironmentEnvironmentDefinitionRequiredPropertiesToMap(environment.Definition) + if err != nil { + return diag.FromErr(err) + } + if err = d.Set("definition", []map[string]interface{}{definitionMap}); err != nil { + return diag.FromErr(fmt.Errorf("Error setting definition: %s", err)) + } + projectMap, err := resourceIbmProjectEnvironmentProjectReferenceToMap(environment.Project) + if err != nil { + return diag.FromErr(err) + } + if err = d.Set("project", []map[string]interface{}{projectMap}); err != nil { + return diag.FromErr(fmt.Errorf("Error setting project: %s", err)) + } + if err = d.Set("created_at", flex.DateTimeToString(environment.CreatedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting created_at: %s", err)) + } + if !core.IsNil(environment.TargetAccount) { + if err = d.Set("target_account", environment.TargetAccount); err != nil { + return diag.FromErr(fmt.Errorf("Error setting target_account: %s", err)) + } + } + if err = d.Set("modified_at", flex.DateTimeToString(environment.ModifiedAt)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting modified_at: %s", err)) + } + if err = d.Set("project_environment_id", environment.ID); err != nil { + return diag.FromErr(fmt.Errorf("Error setting project_environment_id: %s", err)) + } + + return nil +} + +func resourceIbmProjectEnvironmentUpdate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + projectClient, err := meta.(conns.ClientSession).ProjectV1() + if err != nil { + return diag.FromErr(err) + } + + updateProjectEnvironmentOptions := &projectv1.UpdateProjectEnvironmentOptions{} + + parts, err := flex.SepIdParts(d.Id(), "/") + if err != nil { + return diag.FromErr(err) + } + + updateProjectEnvironmentOptions.SetProjectID(parts[0]) + updateProjectEnvironmentOptions.SetID(parts[1]) + + hasChange := false + + if d.HasChange("project_id") { + return diag.FromErr(fmt.Errorf("Cannot update resource property \"%s\" with the ForceNew annotation."+ + " The resource must be re-created to update this property.", "project_id")) + } + if d.HasChange("definition") { + definition, err := resourceIbmProjectEnvironmentMapToEnvironmentDefinitionProperties(d.Get("definition.0").(map[string]interface{})) + if err != nil { + return diag.FromErr(err) + } + updateProjectEnvironmentOptions.SetDefinition(definition) + hasChange = true + } + + if hasChange { + _, response, err := projectClient.UpdateProjectEnvironmentWithContext(context, updateProjectEnvironmentOptions) + if err != nil { + log.Printf("[DEBUG] UpdateProjectEnvironmentWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("UpdateProjectEnvironmentWithContext failed %s\n%s", err, response)) + } + } + + return resourceIbmProjectEnvironmentRead(context, d, meta) +} + +func resourceIbmProjectEnvironmentDelete(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + projectClient, err := meta.(conns.ClientSession).ProjectV1() + if err != nil { + return diag.FromErr(err) + } + + deleteProjectEnvironmentOptions := &projectv1.DeleteProjectEnvironmentOptions{} + + parts, err := flex.SepIdParts(d.Id(), "/") + if err != nil { + return diag.FromErr(err) + } + + deleteProjectEnvironmentOptions.SetProjectID(parts[0]) + deleteProjectEnvironmentOptions.SetID(parts[1]) + + _, response, err := projectClient.DeleteProjectEnvironmentWithContext(context, deleteProjectEnvironmentOptions) + if err != nil { + log.Printf("[DEBUG] DeleteProjectEnvironmentWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("DeleteProjectEnvironmentWithContext failed %s\n%s", err, response)) + } + + d.SetId("") + + return nil +} + +func resourceIbmProjectEnvironmentMapToEnvironmentDefinitionRequiredProperties(modelMap map[string]interface{}) (*projectv1.EnvironmentDefinitionRequiredProperties, error) { + model := &projectv1.EnvironmentDefinitionRequiredProperties{} + model.Name = core.StringPtr(modelMap["name"].(string)) + if modelMap["description"] != nil && modelMap["description"].(string) != "" { + model.Description = core.StringPtr(modelMap["description"].(string)) + } + if modelMap["authorizations"] != nil && len(modelMap["authorizations"].([]interface{})) > 0 { + AuthorizationsModel, err := resourceIbmProjectEnvironmentMapToProjectConfigAuth(modelMap["authorizations"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.Authorizations = AuthorizationsModel + } + if modelMap["inputs"] != nil && len(modelMap["inputs"].([]interface{})) > 0 { + InputsModel, err := resourceIbmProjectEnvironmentMapToInputVariable(modelMap["inputs"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.Inputs = InputsModel + } + if modelMap["compliance_profile"] != nil && len(modelMap["compliance_profile"].([]interface{})) > 0 { + ComplianceProfileModel, err := resourceIbmProjectEnvironmentMapToProjectComplianceProfile(modelMap["compliance_profile"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.ComplianceProfile = ComplianceProfileModel + } + return model, nil +} + +func resourceIbmProjectEnvironmentMapToProjectConfigAuth(modelMap map[string]interface{}) (*projectv1.ProjectConfigAuth, error) { + model := &projectv1.ProjectConfigAuth{} + if modelMap["trusted_profile_id"] != nil && modelMap["trusted_profile_id"].(string) != "" { + model.TrustedProfileID = core.StringPtr(modelMap["trusted_profile_id"].(string)) + } + if modelMap["method"] != nil && modelMap["method"].(string) != "" { + model.Method = core.StringPtr(modelMap["method"].(string)) + } + if modelMap["api_key"] != nil && modelMap["api_key"].(string) != "" { + model.ApiKey = core.StringPtr(modelMap["api_key"].(string)) + } + return model, nil +} + +func resourceIbmProjectEnvironmentMapToInputVariable(modelMap map[string]interface{}) (*projectv1.InputVariable, error) { + model := &projectv1.InputVariable{} + return model, nil +} + +func resourceIbmProjectEnvironmentMapToProjectComplianceProfile(modelMap map[string]interface{}) (*projectv1.ProjectComplianceProfile, error) { + model := &projectv1.ProjectComplianceProfile{} + if modelMap["id"] != nil && modelMap["id"].(string) != "" { + model.ID = core.StringPtr(modelMap["id"].(string)) + } + if modelMap["instance_id"] != nil && modelMap["instance_id"].(string) != "" { + model.InstanceID = core.StringPtr(modelMap["instance_id"].(string)) + } + if modelMap["instance_location"] != nil && modelMap["instance_location"].(string) != "" { + model.InstanceLocation = core.StringPtr(modelMap["instance_location"].(string)) + } + if modelMap["attachment_id"] != nil && modelMap["attachment_id"].(string) != "" { + model.AttachmentID = core.StringPtr(modelMap["attachment_id"].(string)) + } + if modelMap["profile_name"] != nil && modelMap["profile_name"].(string) != "" { + model.ProfileName = core.StringPtr(modelMap["profile_name"].(string)) + } + return model, nil +} + +func resourceIbmProjectEnvironmentMapToEnvironmentDefinitionProperties(modelMap map[string]interface{}) (*projectv1.EnvironmentDefinitionProperties, error) { + model := &projectv1.EnvironmentDefinitionProperties{} + if modelMap["name"] != nil && modelMap["name"].(string) != "" { + model.Name = core.StringPtr(modelMap["name"].(string)) + } + if modelMap["description"] != nil && modelMap["description"].(string) != "" { + model.Description = core.StringPtr(modelMap["description"].(string)) + } + if modelMap["authorizations"] != nil && len(modelMap["authorizations"].([]interface{})) > 0 { + AuthorizationsModel, err := resourceIbmProjectEnvironmentMapToProjectConfigAuth(modelMap["authorizations"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.Authorizations = AuthorizationsModel + } + if modelMap["inputs"] != nil && len(modelMap["inputs"].([]interface{})) > 0 { + InputsModel, err := resourceIbmProjectEnvironmentMapToInputVariable(modelMap["inputs"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.Inputs = InputsModel + } + if modelMap["compliance_profile"] != nil && len(modelMap["compliance_profile"].([]interface{})) > 0 { + ComplianceProfileModel, err := resourceIbmProjectEnvironmentMapToProjectComplianceProfile(modelMap["compliance_profile"].([]interface{})[0].(map[string]interface{})) + if err != nil { + return model, err + } + model.ComplianceProfile = ComplianceProfileModel + } + return model, nil +} + +func resourceIbmProjectEnvironmentEnvironmentDefinitionRequiredPropertiesToMap(model *projectv1.EnvironmentDefinitionRequiredProperties) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["name"] = model.Name + if model.Description != nil { + modelMap["description"] = model.Description + } + if model.Authorizations != nil { + authorizationsMap, err := resourceIbmProjectEnvironmentProjectConfigAuthToMap(model.Authorizations) + if err != nil { + return modelMap, err + } + modelMap["authorizations"] = []map[string]interface{}{authorizationsMap} + } + if model.Inputs != nil { + inputsMap, err := resourceIbmProjectEnvironmentInputVariableToMap(model.Inputs) + if err != nil { + return modelMap, err + } + if len(inputsMap) > 0 { + modelMap["inputs"] = []map[string]interface{}{inputsMap} + } + } + if model.ComplianceProfile != nil { + complianceProfileMap, err := resourceIbmProjectEnvironmentProjectComplianceProfileToMap(model.ComplianceProfile) + if err != nil { + return modelMap, err + } + if len(complianceProfileMap) > 0 { + modelMap["compliance_profile"] = []map[string]interface{}{complianceProfileMap} + } + } + return modelMap, nil +} + +func resourceIbmProjectEnvironmentProjectConfigAuthToMap(model *projectv1.ProjectConfigAuth) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.TrustedProfileID != nil { + modelMap["trusted_profile_id"] = model.TrustedProfileID + } + if model.Method != nil { + modelMap["method"] = model.Method + } + if model.ApiKey != nil { + modelMap["api_key"] = model.ApiKey + } + return modelMap, nil +} + +func resourceIbmProjectEnvironmentInputVariableToMap(model *projectv1.InputVariable) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + return modelMap, nil +} + +func resourceIbmProjectEnvironmentProjectComplianceProfileToMap(model *projectv1.ProjectComplianceProfile) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + if model.ID != nil { + modelMap["id"] = model.ID + } + if model.InstanceID != nil { + modelMap["instance_id"] = model.InstanceID + } + if model.InstanceLocation != nil { + modelMap["instance_location"] = model.InstanceLocation + } + if model.AttachmentID != nil { + modelMap["attachment_id"] = model.AttachmentID + } + if model.ProfileName != nil { + modelMap["profile_name"] = model.ProfileName + } + return modelMap, nil +} + +func resourceIbmProjectEnvironmentProjectReferenceToMap(model *projectv1.ProjectReference) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["id"] = model.ID + definitionMap, err := resourceIbmProjectEnvironmentProjectDefinitionReferenceToMap(model.Definition) + if err != nil { + return modelMap, err + } + modelMap["definition"] = []map[string]interface{}{definitionMap} + modelMap["crn"] = model.Crn + modelMap["href"] = model.Href + return modelMap, nil +} + +func resourceIbmProjectEnvironmentProjectDefinitionReferenceToMap(model *projectv1.ProjectDefinitionReference) (map[string]interface{}, error) { + modelMap := make(map[string]interface{}) + modelMap["name"] = model.Name + return modelMap, nil +} diff --git a/ibm/service/project/resource_ibm_project_environment_test.go b/ibm/service/project/resource_ibm_project_environment_test.go new file mode 100644 index 0000000000..5d33d6db32 --- /dev/null +++ b/ibm/service/project/resource_ibm_project_environment_test.go @@ -0,0 +1,138 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package project_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/project-go-sdk/projectv1" +) + +func TestAccIbmProjectEnvironmentBasic(t *testing.T) { + var conf projectv1.Environment + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIbmProjectEnvironmentDestroy, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmProjectEnvironmentConfigBasic(), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIbmProjectEnvironmentExists("ibm_project_environment.project_environment_instance", conf), + ), + }, + resource.TestStep{ + ResourceName: "ibm_project_environment.project_environment_instance", + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{"project_id"}, + }, + }, + }) +} + +func testAccCheckIbmProjectEnvironmentConfigBasic() string { + return fmt.Sprintf(` + resource "ibm_project" "project_instance" { + location = "us-south" + resource_group = "Default" + definition { + name = "acme-microservice" + description = "acme-microservice description" + destroy_on_delete = true + } + } + + resource "ibm_project_environment" "project_environment_instance" { + project_id = ibm_project.project_instance.id + definition { + name = "environment-stage" + description = "environment for stage project" + authorizations { + method = "api_key" + api_key = "%s" + } + } + lifecycle { + ignore_changes = [ + definition[0].authorizations[0].api_key, + ] + } + } + `, acc.ProjectsConfigApiKey) +} + +func testAccCheckIbmProjectEnvironmentExists(n string, obj projectv1.Environment) resource.TestCheckFunc { + + return func(s *terraform.State) error { + rs, ok := s.RootModule().Resources[n] + if !ok { + return fmt.Errorf("Not found: %s", n) + } + + projectClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).ProjectV1() + if err != nil { + return err + } + + getProjectEnvironmentOptions := &projectv1.GetProjectEnvironmentOptions{} + + parts, err := flex.SepIdParts(rs.Primary.ID, "/") + if err != nil { + return err + } + + getProjectEnvironmentOptions.SetProjectID(parts[0]) + getProjectEnvironmentOptions.SetID(parts[1]) + + environment, _, err := projectClient.GetProjectEnvironment(getProjectEnvironmentOptions) + if err != nil { + return err + } + + obj = *environment + return nil + } +} + +func testAccCheckIbmProjectEnvironmentDestroy(s *terraform.State) error { + projectClient, err := acc.TestAccProvider.Meta().(conns.ClientSession).ProjectV1() + if err != nil { + return err + } + for _, rs := range s.RootModule().Resources { + if rs.Type != "ibm_project_environment" { + continue + } + + getProjectEnvironmentOptions := &projectv1.GetProjectEnvironmentOptions{} + + parts, err := flex.SepIdParts(rs.Primary.ID, "/") + if err != nil { + return err + } + + getProjectEnvironmentOptions.SetProjectID(parts[0]) + getProjectEnvironmentOptions.SetID(parts[1]) + + // Try to find the key + _, response, err := projectClient.GetProjectEnvironment(getProjectEnvironmentOptions) + + if err == nil { + return fmt.Errorf("project_environment still exists: %s", rs.Primary.ID) + } else if response.StatusCode != 404 { + return fmt.Errorf("Error checking for project_environment (%s) has been destroyed: %s", rs.Primary.ID, err) + } + } + + return nil +} diff --git a/website/docs/d/project.html.markdown b/website/docs/d/project.html.markdown index 3ac6b811d3..6cac923733 100644 --- a/website/docs/d/project.html.markdown +++ b/website/docs/d/project.html.markdown @@ -31,15 +31,15 @@ After your data source is created, you can read values from the following attrib * `id` - The unique identifier of the project. * `configs` - (List) The project configurations. These configurations are only included in the response of creating a project if a configs array is specified in the request payload. - * Constraints: The default value is `[]`. The maximum length is `10000` items. The minimum length is `0` items. + * Constraints: The default value is `[]`. The maximum length is `100` items. The minimum length is `0` items. Nested schema for **configs**: * `created_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. * `definition` - (List) The name and description of a project configuration. Nested schema for **definition**: * `description` - (String) A project configuration description. - * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. - * `name` - (String) The configuration name. - * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/`. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. + * `name` - (String) The configuration name. It is unique within the account across projects and regions. + * Constraints: The maximum length is `128` characters. The minimum length is `1` character. The value must match regular expression `/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/`. * `href` - (String) A URL. * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`. * `id` - (String) The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration. @@ -48,7 +48,7 @@ Nested schema for **configs**: * `project` - (List) The project referenced by this resource. Nested schema for **project**: * `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. - * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. + * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"`<>{}\\s\\x00-\\x1F]*/`. * `definition` - (List) The definition of the project reference. Nested schema for **definition**: * `name` - (String) The name of the project. @@ -64,10 +64,10 @@ Nested schema for **configs**: * `created_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. * `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. - * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. + * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"`<>{}\\s\\x00-\\x1F]*/`. * `cumulative_needs_attention_view` - (List) The cumulative list of needs attention items for a project. If the view is successfully retrieved, an array which could be empty is returned. - * Constraints: The default value is `[]`. The maximum length is `10000` items. The minimum length is `0` items. + * Constraints: The default value is `[]`. The maximum length is `50` items. The minimum length is `0` items. Nested schema for **cumulative_needs_attention_view**: * `config_id` - (String) A unique ID for the configuration. * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. @@ -83,21 +83,21 @@ Nested schema for **cumulative_needs_attention_view**: * `definition` - (List) The definition of the project. Nested schema for **definition**: * `description` - (String) A brief explanation of the project's use in the configuration of a deployable architecture. It is possible to create a project without providing a description. - * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. * `destroy_on_delete` - (Boolean) The policy that indicates whether the resources are destroyed or not when a project is deleted. - * `name` - (String) The name of the project. - * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. + * `name` - (String) The name of the project. It is unique within the account across regions. + * Constraints: The maximum length is `128` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. * `environments` - (List) The project environments. These environments are only included in the response if project environments were created on the project. - * Constraints: The default value is `[]`. The maximum length is `10000` items. The minimum length is `0` items. + * Constraints: The default value is `[]`. The maximum length is `20` items. The minimum length is `0` items. Nested schema for **environments**: * `created_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. * `definition` - (List) The environment definition used in the project collection. Nested schema for **definition**: * `description` - (String) The description of the environment. - * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. - * `name` - (String) The name of the environment. - * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. + * `name` - (String) The name of the environment. It is unique within the account across projects and regions. + * Constraints: The maximum length is `128` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. * `href` - (String) A URL. * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`. * `id` - (String) The environment id as a friendly name. @@ -105,7 +105,7 @@ Nested schema for **environments**: * `project` - (List) The project referenced by this resource. Nested schema for **project**: * `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. - * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. + * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"`<>{}\\s\\x00-\\x1F]*/`. * `definition` - (List) The definition of the project reference. Nested schema for **definition**: * `name` - (String) The name of the project. @@ -121,9 +121,12 @@ Nested schema for **environments**: * `location` - (Forces new resource, String) The IBM Cloud location where a resource is deployed. * Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]*$/`. -* `resource_group` - (Forces new resource, String) The resource group where the project's data and tools are created. +* `resource_group` - (Forces new resource, String) The resource group name where the project's data and tools are created. * Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]*$/`. +* `resource_group_id` - (String) The resource group id where the project's data and tools are created. + * Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^[0-9a-zA-Z]+$/`. + * `state` - (String) The project status value. * Constraints: Allowable values are: `ready`, `deleting`, `deleting_failed`. diff --git a/website/docs/d/project_config.html.markdown b/website/docs/d/project_config.html.markdown index 5cfedd0d20..4db739e668 100644 --- a/website/docs/d/project_config.html.markdown +++ b/website/docs/d/project_config.html.markdown @@ -35,7 +35,7 @@ After your data source is created, you can read values from the following attrib * `id` - The unique identifier of the project_config. * `created_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. -* `definition` - (List) The type and output of a project configuration. +* `definition` - (List) The name and description of a project configuration. Nested schema for **definition**: * `authorizations` - (List) The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager. Nested schema for **authorizations**: @@ -47,30 +47,28 @@ Nested schema for **definition**: * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. * `compliance_profile` - (List) The profile required for compliance. Nested schema for **compliance_profile**: - * `attachment_id` - (String) The unique ID. + * `attachment_id` - (String) A unique ID for the attachment to a compliance profile. * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. - * `id` - (String) The unique ID. + * `id` - (String) The unique ID for that compliance profile. * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. - * `instance_id` - (String) The unique ID. + * `instance_id` - (String) A unique ID for an instance of a compliance profile. * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. * `instance_location` - (String) The location of the compliance instance. * Constraints: The maximum length is `12` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(us-south|us-east|eu-gb|eu-de)$/`. * `profile_name` - (String) The name of the compliance profile. * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/`. * `description` - (String) A project configuration description. - * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. - * `environment` - (String) The ID of the project environment. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. + * `environment_id` - (String) The ID of the project environment. * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. * `inputs` - (List) The input variables for configuration definition and environment. Nested schema for **inputs**: - * `locator_id` - (Forces new resource, String) A dotted value of catalogID.versionID. + * `locator_id` - (Forces new resource, String) A unique concatenation of catalogID.versionID that identifies the DA in the catalog. * Constraints: The maximum length is `512` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/`. - * `name` - (String) The configuration name. - * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/`. + * `name` - (String) The configuration name. It is unique within the account across projects and regions. + * Constraints: The maximum length is `128` characters. The minimum length is `1` character. The value must match regular expression `/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/`. * `settings` - (List) Schematics environment variables to use to deploy the configuration.Settings are only available if they were specified when the configuration was initially created. Nested schema for **settings**: - * `type` - (String) The type of a project configuration manual property. - * Constraints: Allowable values are: `terraform_template`, `schematics_blueprint`. * `is_draft` - (Boolean) The flag that indicates whether the version of the configuration is draft, or active. @@ -79,13 +77,13 @@ Nested schema for **definition**: * `modified_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. * `needs_attention_state` - (List) The needs attention state of a configuration. - * Constraints: The default value is `[]`. The maximum length is `10000` items. The minimum length is `0` items. + * Constraints: The default value is `[]`. The maximum length is `50` items. The minimum length is `0` items. * `outputs` - (List) The outputs of a Schematics template property. - * Constraints: The default value is `[]`. The maximum length is `10000` items. The minimum length is `0` items. + * Constraints: The default value is `[]`. The maximum length is `50` items. The minimum length is `0` items. Nested schema for **outputs**: * `description` - (String) A short explanation of the output value. - * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. * `name` - (String) The variable name. * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$).+$/`. * `value` - (String) Can be any value - a string, number, boolean, array, or object. @@ -93,7 +91,7 @@ Nested schema for **outputs**: * `project` - (List) The project referenced by this resource. Nested schema for **project**: * `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. - * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. + * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"`<>{}\\s\\x00-\\x1F]*/`. * `definition` - (List) The definition of the project reference. Nested schema for **definition**: * `name` - (String) The name of the project. @@ -103,8 +101,56 @@ Nested schema for **project**: * `id` - (String) The unique ID. * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. -* `schematics` - (List) A schematics workspace associated to a project configuration. +* `schematics` - (List) A schematics workspace associated to a project configuration, with scripts. Nested schema for **schematics**: + * `deploy_post_script` - (List) A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy). + Nested schema for **deploy_post_script**: + * `path` - (String) The path to this script within the current version source. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^\\S+$/`. + * `short_description` - (String) The short description for this script. + * Constraints: The maximum length is `256` characters. The minimum length is `0` characters. The value must match regular expression `/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. + * `type` - (String) The type of the script. + * Constraints: The maximum length is `7` characters. The minimum length is `7` characters. The value must match regular expression `/^(ansible)$/`. + * `deploy_pre_script` - (List) A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy). + Nested schema for **deploy_pre_script**: + * `path` - (String) The path to this script within the current version source. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^\\S+$/`. + * `short_description` - (String) The short description for this script. + * Constraints: The maximum length is `256` characters. The minimum length is `0` characters. The value must match regular expression `/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. + * `type` - (String) The type of the script. + * Constraints: The maximum length is `7` characters. The minimum length is `7` characters. The value must match regular expression `/^(ansible)$/`. + * `undeploy_post_script` - (List) A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy). + Nested schema for **undeploy_post_script**: + * `path` - (String) The path to this script within the current version source. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^\\S+$/`. + * `short_description` - (String) The short description for this script. + * Constraints: The maximum length is `256` characters. The minimum length is `0` characters. The value must match regular expression `/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. + * `type` - (String) The type of the script. + * Constraints: The maximum length is `7` characters. The minimum length is `7` characters. The value must match regular expression `/^(ansible)$/`. + * `undeploy_pre_script` - (List) A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy). + Nested schema for **undeploy_pre_script**: + * `path` - (String) The path to this script within the current version source. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^\\S+$/`. + * `short_description` - (String) The short description for this script. + * Constraints: The maximum length is `256` characters. The minimum length is `0` characters. The value must match regular expression `/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. + * `type` - (String) The type of the script. + * Constraints: The maximum length is `7` characters. The minimum length is `7` characters. The value must match regular expression `/^(ansible)$/`. + * `validate_post_script` - (List) A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy). + Nested schema for **validate_post_script**: + * `path` - (String) The path to this script within the current version source. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^\\S+$/`. + * `short_description` - (String) The short description for this script. + * Constraints: The maximum length is `256` characters. The minimum length is `0` characters. The value must match regular expression `/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. + * `type` - (String) The type of the script. + * Constraints: The maximum length is `7` characters. The minimum length is `7` characters. The value must match regular expression `/^(ansible)$/`. + * `validate_pre_script` - (List) A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy). + Nested schema for **validate_pre_script**: + * `path` - (String) The path to this script within the current version source. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^\\S+$/`. + * `short_description` - (String) The short description for this script. + * Constraints: The maximum length is `256` characters. The minimum length is `0` characters. The value must match regular expression `/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. + * `type` - (String) The type of the script. + * Constraints: The maximum length is `7` characters. The minimum length is `7` characters. The value must match regular expression `/^(ansible)$/`. * `workspace_crn` - (String) An existing schematics workspace CRN. * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. diff --git a/website/docs/d/project_environment.html.markdown b/website/docs/d/project_environment.html.markdown new file mode 100644 index 0000000000..3b9420d3fe --- /dev/null +++ b/website/docs/d/project_environment.html.markdown @@ -0,0 +1,84 @@ +--- +layout: "ibm" +page_title: "IBM : ibm_project_environment" +description: |- + Get information about project_environment +subcategory: "Projects" +--- + +# ibm_project_environment + +Provides a read-only data source to retrieve information about a project_environment. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax. + +## Example Usage + +```hcl +data "ibm_project_environment" "project_environment" { + project_environment_id = ibm_project_environment.project_environment.project_environment_id + project_id = ibm_project_environment.project_environment.project_id +} +``` + +## Argument Reference + +You can specify the following arguments for this data source. + +* `project_environment_id` - (Required, Forces new resource, String) The environment ID. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$).+$/`. +* `project_id` - (Required, Forces new resource, String) The unique project ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + +## Attribute Reference + +After your data source is created, you can read values from the following attributes. + +* `id` - The unique identifier of the project_environment. +* `created_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. + +* `definition` - (List) The environment definition. +Nested schema for **definition**: + * `authorizations` - (List) The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager. + Nested schema for **authorizations**: + * `api_key` - (String) The IBM Cloud API Key. + * Constraints: The maximum length is `512` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/`. + * `method` - (String) The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager. + * Constraints: Allowable values are: `api_key`, `trusted_profile`. + * `trusted_profile_id` - (String) The trusted profile ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `compliance_profile` - (List) The profile required for compliance. + Nested schema for **compliance_profile**: + * `attachment_id` - (String) A unique ID for the attachment to a compliance profile. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `id` - (String) The unique ID for that compliance profile. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `instance_id` - (String) A unique ID for an instance of a compliance profile. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `instance_location` - (String) The location of the compliance instance. + * Constraints: The maximum length is `12` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(us-south|us-east|eu-gb|eu-de)$/`. + * `profile_name` - (String) The name of the compliance profile. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/`. + * `description` - (String) The description of the environment. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. + * `inputs` - (List) The input variables for configuration definition and environment. + Nested schema for **inputs**: + * `name` - (String) The name of the environment. It is unique within the account across projects and regions. + * Constraints: The maximum length is `128` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. + +* `modified_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. + +* `project` - (List) The project referenced by this resource. +Nested schema for **project**: + * `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. + * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"`<>{}\\s\\x00-\\x1F]*/`. + * `definition` - (List) The definition of the project reference. + Nested schema for **definition**: + * `name` - (String) The name of the project. + * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. + * `href` - (String) A URL. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`. + * `id` - (String) The unique ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + +* `target_account` - (String) The target account ID derived from the authentication block values. + * Constraints: The maximum length is `64` characters. The value must match regular expression `/^[a-zA-Z0-9.-]+$/`. + diff --git a/website/docs/r/project.html.markdown b/website/docs/r/project.html.markdown index 98926aaffd..b447a1d627 100644 --- a/website/docs/r/project.html.markdown +++ b/website/docs/r/project.html.markdown @@ -31,13 +31,13 @@ You can specify the following arguments for this resource. * `definition` - (Required, List) The definition of the project. Nested schema for **definition**: * `description` - (Optional, String) A brief explanation of the project's use in the configuration of a deployable architecture. It is possible to create a project without providing a description. - * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. * `destroy_on_delete` - (Required, Boolean) The policy that indicates whether the resources are destroyed or not when a project is deleted. - * `name` - (Required, String) The name of the project. - * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. + * `name` - (Required, String) The name of the project. It is unique within the account across regions. + * Constraints: The maximum length is `128` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. * `location` - (Required, Forces new resource, String) The IBM Cloud location where a resource is deployed. * Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]*$/`. -* `resource_group` - (Required, Forces new resource, String) The resource group where the project's data and tools are created. +* `resource_group` - (Required, Forces new resource, String) The resource group name where the project's data and tools are created. * Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]*$/`. ## Attribute Reference @@ -46,15 +46,15 @@ After your resource is created, you can read values from the listed arguments an * `id` - The unique identifier of the project. * `configs` - (List) The project configurations. These configurations are only included in the response of creating a project if a configs array is specified in the request payload. - * Constraints: The default value is `[]`. The maximum length is `10000` items. The minimum length is `0` items. + * Constraints: The default value is `[]`. The maximum length is `100` items. The minimum length is `0` items. Nested schema for **configs**: * `created_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. * `definition` - (List) The name and description of a project configuration. Nested schema for **definition**: * `description` - (String) A project configuration description. - * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. - * `name` - (String) The configuration name. - * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/`. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. + * `name` - (String) The configuration name. It is unique within the account across projects and regions. + * Constraints: The maximum length is `128` characters. The minimum length is `1` character. The value must match regular expression `/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/`. * `href` - (String) A URL. * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`. * `id` - (String) The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration. @@ -63,7 +63,7 @@ Nested schema for **configs**: * `project` - (List) The project referenced by this resource. Nested schema for **project**: * `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. - * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. + * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"`<>{}\\s\\x00-\\x1F]*/`. * `definition` - (List) The definition of the project reference. Nested schema for **definition**: * `name` - (String) The name of the project. @@ -77,9 +77,9 @@ Nested schema for **configs**: * `version` - (Integer) The version of the configuration. * `created_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. * `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. - * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. + * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"`<>{}\\s\\x00-\\x1F]*/`. * `cumulative_needs_attention_view` - (List) The cumulative list of needs attention items for a project. If the view is successfully retrieved, an array which could be empty is returned. - * Constraints: The default value is `[]`. The maximum length is `10000` items. The minimum length is `0` items. + * Constraints: The default value is `[]`. The maximum length is `50` items. The minimum length is `0` items. Nested schema for **cumulative_needs_attention_view**: * `config_id` - (String) A unique ID for the configuration. * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. @@ -91,15 +91,15 @@ Nested schema for **cumulative_needs_attention_view**: * `cumulative_needs_attention_view_error` - (Boolean) True indicates that the fetch of the needs attention items failed. It only exists if there was an error while retrieving the cumulative needs attention view. * Constraints: The default value is `false`. * `environments` - (List) The project environments. These environments are only included in the response if project environments were created on the project. - * Constraints: The default value is `[]`. The maximum length is `10000` items. The minimum length is `0` items. + * Constraints: The default value is `[]`. The maximum length is `20` items. The minimum length is `0` items. Nested schema for **environments**: * `created_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. * `definition` - (List) The environment definition used in the project collection. Nested schema for **definition**: * `description` - (String) The description of the environment. - * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. - * `name` - (String) The name of the environment. - * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. + * `name` - (String) The name of the environment. It is unique within the account across projects and regions. + * Constraints: The maximum length is `128` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. * `href` - (String) A URL. * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`. * `id` - (String) The environment id as a friendly name. @@ -107,7 +107,7 @@ Nested schema for **environments**: * `project` - (List) The project referenced by this resource. Nested schema for **project**: * `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. - * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. + * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"`<>{}\\s\\x00-\\x1F]*/`. * `definition` - (List) The definition of the project reference. Nested schema for **definition**: * `name` - (String) The name of the project. @@ -118,15 +118,17 @@ Nested schema for **environments**: * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. * `event_notifications_crn` - (String) The CRN of the event notifications instance if one is connected to this project. * Constraints: The maximum length is `512` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. +* `resource_group_id` - (String) The resource group id where the project's data and tools are created. + * Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^[0-9a-zA-Z]+$/`. * `state` - (String) The project status value. * Constraints: Allowable values are: `ready`, `deleting`, `deleting_failed`. ## Import -You can import the `ibm_project` resource by using `id`. The unique ID. +You can import the `ibm_project` resource by using `id`. The unique project ID. # Syntax -``` -$ terraform import ibm_project.project -``` +
+$ terraform import ibm_project.project <id>
+
diff --git a/website/docs/r/project_config.html.markdown b/website/docs/r/project_config.html.markdown index db20dac197..995dfa3570 100644 --- a/website/docs/r/project_config.html.markdown +++ b/website/docs/r/project_config.html.markdown @@ -16,7 +16,6 @@ Create, update, and delete project_configs with this resource. resource "ibm_project_config" "project_config_instance" { definition { name = "static-website-dev" - labels = [ "env:dev", "billing:internal" ] description = "Website - development" authorizations { method = "api_key" @@ -39,7 +38,7 @@ resource "ibm_project_config" "project_config_instance" { You can specify the following arguments for this resource. -* `definition` - (Required, List) The type and output of a project configuration. +* `definition` - (Required, List) The name and description of a project configuration. Nested schema for **definition**: * `authorizations` - (Optional, List) The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager. Nested schema for **authorizations**: @@ -51,34 +50,80 @@ Nested schema for **definition**: * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. * `compliance_profile` - (Optional, List) The profile required for compliance. Nested schema for **compliance_profile**: - * `attachment_id` - (Optional, String) The unique ID. + * `attachment_id` - (Optional, String) A unique ID for the attachment to a compliance profile. * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. - * `id` - (Optional, String) The unique ID. + * `id` - (Optional, String) The unique ID for that compliance profile. * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. - * `instance_id` - (Optional, String) The unique ID. + * `instance_id` - (Optional, String) A unique ID for an instance of a compliance profile. * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. * `instance_location` - (Optional, String) The location of the compliance instance. * Constraints: The maximum length is `12` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(us-south|us-east|eu-gb|eu-de)$/`. * `profile_name` - (Optional, String) The name of the compliance profile. * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/`. * `description` - (Optional, String) A project configuration description. - * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. - * `environment` - (Optional, String) The ID of the project environment. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. + * `environment_id` - (Optional, String) The ID of the project environment. * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. * `inputs` - (Optional, List) The input variables for configuration definition and environment. Nested schema for **inputs**: - * `locator_id` - (Required, Forces new resource, String) A dotted value of catalogID.versionID. + * `locator_id` - (Required, Forces new resource, String) A unique concatenation of catalogID.versionID that identifies the DA in the catalog. * Constraints: The maximum length is `512` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/`. - * `name` - (Required, String) The configuration name. - * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/`. + * `name` - (Required, String) The configuration name. It is unique within the account across projects and regions. + * Constraints: The maximum length is `128` characters. The minimum length is `1` character. The value must match regular expression `/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/`. * `settings` - (Optional, List) Schematics environment variables to use to deploy the configuration.Settings are only available if they were specified when the configuration was initially created. Nested schema for **settings**: - * `type` - (Computed, String) The type of a project configuration manual property. - * Constraints: Allowable values are: `terraform_template`, `schematics_blueprint`. * `project_id` - (Required, Forces new resource, String) The unique project ID. * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. -* `schematics` - (Optional, List) A schematics workspace associated to a project configuration. +* `schematics` - (Optional, List) A schematics workspace associated to a project configuration, with scripts. Nested schema for **schematics**: + * `deploy_post_script` - (Optional, List) A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy). + Nested schema for **deploy_post_script**: + * `path` - (Computed, String) The path to this script within the current version source. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^\\S+$/`. + * `short_description` - (Computed, String) The short description for this script. + * Constraints: The maximum length is `256` characters. The minimum length is `0` characters. The value must match regular expression `/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. + * `type` - (Computed, String) The type of the script. + * Constraints: The maximum length is `7` characters. The minimum length is `7` characters. The value must match regular expression `/^(ansible)$/`. + * `deploy_pre_script` - (Optional, List) A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy). + Nested schema for **deploy_pre_script**: + * `path` - (Computed, String) The path to this script within the current version source. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^\\S+$/`. + * `short_description` - (Computed, String) The short description for this script. + * Constraints: The maximum length is `256` characters. The minimum length is `0` characters. The value must match regular expression `/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. + * `type` - (Computed, String) The type of the script. + * Constraints: The maximum length is `7` characters. The minimum length is `7` characters. The value must match regular expression `/^(ansible)$/`. + * `undeploy_post_script` - (Optional, List) A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy). + Nested schema for **undeploy_post_script**: + * `path` - (Computed, String) The path to this script within the current version source. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^\\S+$/`. + * `short_description` - (Computed, String) The short description for this script. + * Constraints: The maximum length is `256` characters. The minimum length is `0` characters. The value must match regular expression `/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. + * `type` - (Computed, String) The type of the script. + * Constraints: The maximum length is `7` characters. The minimum length is `7` characters. The value must match regular expression `/^(ansible)$/`. + * `undeploy_pre_script` - (Optional, List) A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy). + Nested schema for **undeploy_pre_script**: + * `path` - (Computed, String) The path to this script within the current version source. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^\\S+$/`. + * `short_description` - (Computed, String) The short description for this script. + * Constraints: The maximum length is `256` characters. The minimum length is `0` characters. The value must match regular expression `/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. + * `type` - (Computed, String) The type of the script. + * Constraints: The maximum length is `7` characters. The minimum length is `7` characters. The value must match regular expression `/^(ansible)$/`. + * `validate_post_script` - (Optional, List) A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy). + Nested schema for **validate_post_script**: + * `path` - (Computed, String) The path to this script within the current version source. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^\\S+$/`. + * `short_description` - (Computed, String) The short description for this script. + * Constraints: The maximum length is `256` characters. The minimum length is `0` characters. The value must match regular expression `/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. + * `type` - (Computed, String) The type of the script. + * Constraints: The maximum length is `7` characters. The minimum length is `7` characters. The value must match regular expression `/^(ansible)$/`. + * `validate_pre_script` - (Optional, List) A script to be run as part of a Project configuration, for a given stage (pre, post) and action (validate, deploy, undeploy). + Nested schema for **validate_pre_script**: + * `path` - (Computed, String) The path to this script within the current version source. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^\\S+$/`. + * `short_description` - (Computed, String) The short description for this script. + * Constraints: The maximum length is `256` characters. The minimum length is `0` characters. The value must match regular expression `/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. + * `type` - (Computed, String) The type of the script. + * Constraints: The maximum length is `7` characters. The minimum length is `7` characters. The value must match regular expression `/^(ansible)$/`. * `workspace_crn` - (Optional, String) An existing schematics workspace CRN. * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. @@ -92,19 +137,19 @@ After your resource is created, you can read values from the listed arguments an * `last_saved_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. * `modified_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. * `needs_attention_state` - (List) The needs attention state of a configuration. - * Constraints: The default value is `[]`. The maximum length is `10000` items. The minimum length is `0` items. + * Constraints: The default value is `[]`. The maximum length is `50` items. The minimum length is `0` items. * `outputs` - (List) The outputs of a Schematics template property. - * Constraints: The default value is `[]`. The maximum length is `10000` items. The minimum length is `0` items. + * Constraints: The default value is `[]`. The maximum length is `50` items. The minimum length is `0` items. Nested schema for **outputs**: * `description` - (String) A short explanation of the output value. - * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s).*\\S$/`. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. * `name` - (String) The variable name. * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$).+$/`. * `value` - (String) Can be any value - a string, number, boolean, array, or object. * `project` - (List) The project referenced by this resource. Nested schema for **project**: * `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. - * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/`. + * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"`<>{}\\s\\x00-\\x1F]*/`. * `definition` - (List) The definition of the project reference. Nested schema for **definition**: * `name` - (String) The name of the project. @@ -124,15 +169,15 @@ Nested schema for **project**: ## Import You can import the `ibm_project_config` resource by using `id`. -The `id` property can be formed from `project_id`, and `id` in the following format: +The `id` property can be formed from `project_id`, and `project_config_id` in the following format: -``` -/ -``` +
+<project_id>/<project_config_id>
+
* `project_id`: A string. The unique project ID. -* `id`: A string. The unique config ID. +* `project_config_id`: A string. The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration. # Syntax -``` -$ terraform import ibm_project_config.project_config / -``` +
+$ terraform import ibm_project_config.project_config <project_id>/<project_config_id>
+
diff --git a/website/docs/r/project_environment.html.markdown b/website/docs/r/project_environment.html.markdown new file mode 100644 index 0000000000..f9783845eb --- /dev/null +++ b/website/docs/r/project_environment.html.markdown @@ -0,0 +1,103 @@ +--- +layout: "ibm" +page_title: "IBM : ibm_project_environment" +description: |- + Manages project_environment. +subcategory: "Projects" +--- + +# ibm_project_environment + +Create, update, and delete project_environments with this resource. + +## Example Usage + +```hcl +resource "ibm_project_environment" "project_environment" { + definition { + name = "environment-stage" + description = "environment for stage project" + authorizations { + method = "api_key" + api_key = "" + } + } + project_id = ibm_project.project_instance.id +} +``` + +## Argument Reference + +You can specify the following arguments for this resource. + +* `definition` - (Required, List) The environment definition. +Nested schema for **definition**: + * `authorizations` - (Optional, List) The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager. + Nested schema for **authorizations**: + * `api_key` - (Optional, String) The IBM Cloud API Key. + * Constraints: The maximum length is `512` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/`. + * `method` - (Optional, String) The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager. + * Constraints: Allowable values are: `api_key`, `trusted_profile`. + * `trusted_profile_id` - (Optional, String) The trusted profile ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `compliance_profile` - (Optional, List) The profile required for compliance. + Nested schema for **compliance_profile**: + * `attachment_id` - (Optional, String) A unique ID for the attachment to a compliance profile. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `id` - (Optional, String) The unique ID for that compliance profile. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `instance_id` - (Optional, String) A unique ID for an instance of a compliance profile. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + * `instance_location` - (Optional, String) The location of the compliance instance. + * Constraints: The maximum length is `12` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(us-south|us-east|eu-gb|eu-de)$/`. + * `profile_name` - (Optional, String) The name of the compliance profile. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/`. + * `description` - (Optional, String) The description of the environment. + * Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`. + * `inputs` - (Optional, List) The input variables for configuration definition and environment. + Nested schema for **inputs**: + * `name` - (Required, String) The name of the environment. It is unique within the account across projects and regions. + * Constraints: The maximum length is `128` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. +* `project_id` - (Required, Forces new resource, String) The unique project ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. + +## Attribute Reference + +After your resource is created, you can read values from the listed arguments and the following attributes. + +* `id` - The unique identifier of the project_environment. +* `created_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. +* `modified_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339. +* `project` - (List) The project referenced by this resource. +Nested schema for **project**: + * `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource. + * Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"`<>{}\\s\\x00-\\x1F]*/`. + * `definition` - (List) The definition of the project reference. + Nested schema for **definition**: + * `name` - (String) The name of the project. + * Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`. + * `href` - (String) A URL. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`. + * `id` - (String) The unique ID. + * Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`. +* `project_environment_id` - (String) The environment id as a friendly name. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$).+$/`. +* `target_account` - (String) The target account ID derived from the authentication block values. + * Constraints: The maximum length is `64` characters. The value must match regular expression `/^[a-zA-Z0-9.-]+$/`. + + +## Import + +You can import the `ibm_project_environment` resource by using `id`. +The `id` property can be formed from `project_id`, and `project_environment_id` in the following format: + +
+<project_id>/<project_environment_id>
+
+* `project_id`: A string. The unique project ID. +* `project_environment_id`: A string. The environment id as a friendly name. + +# Syntax +
+$ terraform import ibm_project_environment.project_environment <project_id>/<project_environment_id>
+
From a45c8abbd0fbe3d4e27c804a5ec4b1318fe606ea Mon Sep 17 00:00:00 2001 From: ismirlia <90468712+ismirlia@users.noreply.github.com> Date: Thu, 23 Nov 2023 03:30:33 -0600 Subject: [PATCH 46/58] Add workspace create workspace delete resource to terraform provider (#4935) * Add workspace-create workspace-delete terraform provider Add waiting to code to finish wait creating workspace Fix workspace delete Add workspace documentation Increase workspace create timeout Update workspace description Remove extra quotes Update dependencies Update dependencies temp * Update workspace documentation --------- Co-authored-by: michaelkad <45772690+michaelkad@users.noreply.github.com> Co-authored-by: HARINI KANTAREDDY --- go.mod | 6 +- go.sum | 12 +- ibm/acctest/acctest.go | 7 + ibm/provider/provider.go | 1 + ibm/service/power/ibm_pi_constants.go | 6 + .../power/resource_ibm_pi_workspace.go | 179 ++++++++++++++++++ .../power/resource_ibm_pi_workspace_test.go | 98 ++++++++++ website/docs/d/pi_workspace.html.markdown | 2 +- website/docs/d/pi_workspaces.html.markdown | 2 +- website/docs/r/pi_workspace.html.markdown | 49 +++++ 10 files changed, 351 insertions(+), 11 deletions(-) create mode 100644 ibm/service/power/resource_ibm_pi_workspace.go create mode 100644 ibm/service/power/resource_ibm_pi_workspace_test.go create mode 100644 website/docs/r/pi_workspace.html.markdown diff --git a/go.mod b/go.mod index e8fc7bf97e..0a3a27eacc 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( github.com/IBM-Cloud/bluemix-go v0.0.0-20231017073329-75ebe90c98ba github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20231106114255-c50117860a3c - github.com/IBM-Cloud/power-go-client v1.5.2 + github.com/IBM-Cloud/power-go-client v1.5.4 github.com/IBM/apigateway-go-sdk v0.0.0-20210714141226-a5d5d49caaca github.com/IBM/appconfiguration-go-admin-sdk v0.3.0 github.com/IBM/appid-management-go-sdk v0.0.0-20210908164609-dd0e0eaf732f @@ -17,14 +17,14 @@ require ( github.com/IBM/event-notifications-go-admin-sdk v0.2.7 github.com/IBM/eventstreams-go-sdk v1.4.0 github.com/IBM/go-sdk-core/v3 v3.2.4 - github.com/IBM/go-sdk-core/v5 v5.14.1 + github.com/IBM/go-sdk-core/v5 v5.15.0 github.com/IBM/ibm-cos-sdk-go v1.10.0 github.com/IBM/ibm-cos-sdk-go-config v1.2.0 github.com/IBM/ibm-hpcs-tke-sdk v0.0.0-20211109141421-a4b61b05f7d1 github.com/IBM/ibm-hpcs-uko-sdk v0.0.20-beta github.com/IBM/keyprotect-go-client v0.12.2 github.com/IBM/networking-go-sdk v0.42.2 - github.com/IBM/platform-services-go-sdk v0.53.1 + github.com/IBM/platform-services-go-sdk v0.54.0 github.com/IBM/project-go-sdk v0.1.1 github.com/IBM/push-notifications-go-sdk v0.0.0-20210310100607-5790b96c47f5 github.com/IBM/scc-go-sdk/v5 v5.1.3 diff --git a/go.sum b/go.sum index 58cfeff13e..c7f1a06c47 100644 --- a/go.sum +++ b/go.sum @@ -105,8 +105,8 @@ github.com/IBM-Cloud/bluemix-go v0.0.0-20231017073329-75ebe90c98ba/go.mod h1:mt+ github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20231106114255-c50117860a3c h1:tRS4VuOG3lHNG+yrsh3vZZQDVNLuFJB0oZbTJp9YXds= github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20231106114255-c50117860a3c/go.mod h1:xUQL9SGAjoZFd4GNjrjjtEpjpkgU7RFXRyHesbKTjiY= github.com/IBM-Cloud/ibm-cloud-cli-sdk v0.5.3/go.mod h1:RiUvKuHKTBmBApDMUQzBL14pQUGKcx/IioKQPIcRQjs= -github.com/IBM-Cloud/power-go-client v1.5.2 h1:p8+vY9+wtr4BIa2+Y4EVI0jlvRg+FLWsbOpWYNlKXDw= -github.com/IBM-Cloud/power-go-client v1.5.2/go.mod h1:Vd8aSxWA30soUhE2U+tmzaYDUVNOmQE3/npny7BsN6Y= +github.com/IBM-Cloud/power-go-client v1.5.4 h1:fk+QgOdZvwq696UynehfGrMGMHXDYOJfRCE3Pec9o6c= +github.com/IBM-Cloud/power-go-client v1.5.4/go.mod h1:ZsKqKC4d4MAWujkttW1w9tG7xjlIbkIpVENX476ghVY= github.com/IBM-Cloud/softlayer-go v1.0.5-tf h1:koUAyF9b6X78lLLruGYPSOmrfY2YcGYKOj/Ug9nbKNw= github.com/IBM-Cloud/softlayer-go v1.0.5-tf/go.mod h1:6HepcfAXROz0Rf63krk5hPZyHT6qyx2MNvYyHof7ik4= github.com/IBM/apigateway-go-sdk v0.0.0-20210714141226-a5d5d49caaca h1:crniVcf+YcmgF03NmmfonXwSQ73oJF+IohFYBwknMxs= @@ -139,8 +139,8 @@ github.com/IBM/go-sdk-core/v5 v5.7.0/go.mod h1:+YbdhrjCHC84ls4MeBp+Hj4NZCni+tDAc github.com/IBM/go-sdk-core/v5 v5.9.2/go.mod h1:YlOwV9LeuclmT/qi/LAK2AsobbAP42veV0j68/rlZsE= github.com/IBM/go-sdk-core/v5 v5.9.5/go.mod h1:YlOwV9LeuclmT/qi/LAK2AsobbAP42veV0j68/rlZsE= github.com/IBM/go-sdk-core/v5 v5.10.2/go.mod h1:WZPFasUzsKab/2mzt29xPcfruSk5js2ywAPwW4VJjdI= -github.com/IBM/go-sdk-core/v5 v5.14.1 h1:WR1r0zz+gDW++xzZjF41r9ueY4JyjS2vgZjiYs8lO3c= -github.com/IBM/go-sdk-core/v5 v5.14.1/go.mod h1:MUvIr/1mgGh198ZXL+ByKz9Qs1JoEh80v/96x8jPXNY= +github.com/IBM/go-sdk-core/v5 v5.15.0 h1:AhFoWVk3i58f9vnDoEoZumI/zbtRoP5moWIz5YQOmZg= +github.com/IBM/go-sdk-core/v5 v5.15.0/go.mod h1:5Obavm/s1Tc2PxivEIfgCvj/HJ5h3QIOjLHS5y8QJf0= github.com/IBM/ibm-cos-sdk-go v1.3.1/go.mod h1:YLBAYobEA8bD27P7xpMwSQeNQu6W3DNBtBComXrRzRY= github.com/IBM/ibm-cos-sdk-go v1.10.0 h1:/2VIev2/jBei39OqU2+nSZQnoWJ+KtkiSAIDkqsd7uU= github.com/IBM/ibm-cos-sdk-go v1.10.0/go.mod h1:C8KRTRaoD3CWPPBOa6FCOpdh0ZMlUjKAAA4i3F+Q/sc= @@ -155,8 +155,8 @@ github.com/IBM/keyprotect-go-client v0.12.2 h1:Cjxcqin9Pl0xz3MnxdiVd4v/eIa79xL3h github.com/IBM/keyprotect-go-client v0.12.2/go.mod h1:yr8h2noNgU8vcbs+vhqoXp3Lmv73PI0zAc6VMgFvWwM= github.com/IBM/networking-go-sdk v0.42.2 h1:caqjx4jyFHi10Vlf3skHvlL6K3YJRVstsmCBmvdyqkA= github.com/IBM/networking-go-sdk v0.42.2/go.mod h1:lTUZwtUkMANMnrLHFIgRhHrkBfwASY/Iho1fabaPHxo= -github.com/IBM/platform-services-go-sdk v0.53.1 h1:axpK4dzlf+C+KgHQZWXoKSUMoV2t6OrR5kGGumUEXrI= -github.com/IBM/platform-services-go-sdk v0.53.1/go.mod h1:CWSprvsCsXWvujmBzbtoJSmbRZS9FVV3O594b0t/GiM= +github.com/IBM/platform-services-go-sdk v0.54.0 h1:WjHWm9ZAJvlq07E1WXXtEe+d/B0sazWD6cEWVT7EMLU= +github.com/IBM/platform-services-go-sdk v0.54.0/go.mod h1:CWSprvsCsXWvujmBzbtoJSmbRZS9FVV3O594b0t/GiM= github.com/IBM/project-go-sdk v0.1.1 h1:x1PkGUTkKpgxoXs/6IG4U1mk5BgaPEaRMVpXTs52rE4= github.com/IBM/project-go-sdk v0.1.1/go.mod h1:lqe0M4cKvABI1iHR1b+KfasVcxQL6nl2VJ8eOyQs8Ig= github.com/IBM/push-notifications-go-sdk v0.0.0-20210310100607-5790b96c47f5 h1:NPUhkoOCRuv3OFWt19PmwjXGGTKlvmbuPg9fUrBUNe4= diff --git a/ibm/acctest/acctest.go b/ibm/acctest/acctest.go index 5e411830a7..bee8b7cb2b 100644 --- a/ibm/acctest/acctest.go +++ b/ibm/acctest/acctest.go @@ -199,6 +199,7 @@ var ( PiStoragePool string PiStorageType string Pi_shared_processor_pool_id string + Pi_resource_group_id string ) var ( @@ -1064,6 +1065,12 @@ func init() { fmt.Println("[WARN] Set the environment variable PI_SHARED_PROCESSOR_POOL_ID for testing ibm_pi_shared_processor_pool resource else it is set to default value 'tf-pi-shared-processor-pool'") } + Pi_resource_group_id = os.Getenv("PI_RESOURCE_GROUP_ID") + if Pi_resource_group_id == "" { + Pi_resource_group_id = "" + fmt.Println("[WARN] Set the environment variable PI_RESOURCE_GROUP_ID for testing ibm_pi_workspace resource else it is set to default value ''") + } + WorkspaceID = os.Getenv("SCHEMATICS_WORKSPACE_ID") if WorkspaceID == "" { WorkspaceID = "us-south.workspace.tf-acc-test-schematics-state-test.392cd99f" diff --git a/ibm/provider/provider.go b/ibm/provider/provider.go index 6ac2cd2804..9a0e61277b 100644 --- a/ibm/provider/provider.go +++ b/ibm/provider/provider.go @@ -1171,6 +1171,7 @@ func Provider() *schema.Provider { "ibm_pi_placement_group": power.ResourceIBMPIPlacementGroup(), "ibm_pi_spp_placement_group": power.ResourceIBMPISPPPlacementGroup(), "ibm_pi_shared_processor_pool": power.ResourceIBMPISharedProcessorPool(), + "ibm_pi_workspace": power.ResourceIBMPIWorkspace(), // Private DNS related resources "ibm_dns_zone": dnsservices.ResourceIBMPrivateDNSZone(), diff --git a/ibm/service/power/ibm_pi_constants.go b/ibm/service/power/ibm_pi_constants.go index ee62773462..8e66a4bd83 100644 --- a/ibm/service/power/ibm_pi_constants.go +++ b/ibm/service/power/ibm_pi_constants.go @@ -165,4 +165,10 @@ const ( Attr_DatacenterStatus = "pi_datacenter_status" Attr_DatacenterType = "pi_datacenter_type" Attr_DatacenterHref = "pi_datacenter_href" + + // IBM PI Workspace + PIWorkspaceName = "pi_name" + PIWorkspaceDatacenter = "pi_datacenter" + PIWorkspaceResourceGroup = "pi_resource_group_id" + PIWorkspacePlan = "pi_plan" ) diff --git a/ibm/service/power/resource_ibm_pi_workspace.go b/ibm/service/power/resource_ibm_pi_workspace.go new file mode 100644 index 0000000000..590f6ac657 --- /dev/null +++ b/ibm/service/power/resource_ibm_pi_workspace.go @@ -0,0 +1,179 @@ +package power + +import ( + "context" + "fmt" + "log" + "time" + + st "github.com/IBM-Cloud/power-go-client/clients/instance" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" +) + +func ResourceIBMPIWorkspace() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceIBMPIWorkspaceCreate, + ReadContext: resourceIBMPIWorkspaceRead, + DeleteContext: resourceIBMPIWorkspaceDelete, + Importer: &schema.ResourceImporter{}, + + Timeouts: &schema.ResourceTimeout{ + Create: schema.DefaultTimeout(30 * time.Minute), + Delete: schema.DefaultTimeout(30 * time.Minute), + }, + + Schema: map[string]*schema.Schema{ + PIWorkspaceName: { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "A descriptive name used to identify the workspace.", + }, + PIWorkspaceDatacenter: { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "Target location or environment to create the resource instance.", + }, + PIWorkspaceResourceGroup: { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "The ID of the resource group where you want to create the workspace. You can retrieve the value from data source ibm_resource_group.", + }, + PIWorkspacePlan: { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "Plan associated with the offering; Valid values are public or private.", + }, + }, + } +} + +func resourceIBMPIWorkspaceCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + sess, err := meta.(conns.ClientSession).IBMPISession() + if err != nil { + return diag.FromErr(err) + } + + name := d.Get(PIWorkspaceName).(string) + datacenter := d.Get(PIWorkspaceDatacenter).(string) + resourceGroup := d.Get(PIWorkspaceResourceGroup).(string) + plan := d.Get(PIWorkspacePlan).(string) + + // No need for cloudInstanceID because we are creating a workspace + client := st.NewIBMPIWorkspacesClient(ctx, sess, "") + controller, _, err := client.Create(name, datacenter, resourceGroup, plan) + if err != nil { + log.Printf("[DEBUG] create workspace failed %v", err) + return diag.FromErr(err) + } + + d.SetId(*controller.GUID) + _, err = waitForResourceInstanceCreate(ctx, client, *controller.GUID, d.Timeout(schema.TimeoutCreate)) + if err != nil { + return diag.FromErr(err) + } + + return resourceIBMPIWorkspaceRead(ctx, d, meta) +} + +func waitForResourceInstanceCreate(ctx context.Context, client *st.IBMPIWorkspacesClient, id string, timeout time.Duration) (interface{}, error) { + stateConf := &resource.StateChangeConf{ + Pending: []string{"in progress", "inactive", "provisioning"}, + Target: []string{"active"}, + Refresh: isIBMPIWorkspaceCreateRefreshFunc(client, id), + Delay: 10 * time.Second, + MinTimeout: 1 * time.Minute, + Timeout: timeout, + } + return stateConf.WaitForStateContext(ctx) +} + +func isIBMPIWorkspaceCreateRefreshFunc(client *st.IBMPIWorkspacesClient, id string) resource.StateRefreshFunc { + return func() (interface{}, string, error) { + controller, _, err := client.GetRC(id) + if err != nil { + return nil, "", err + } + if *controller.State == "failed" { + return controller, *controller.State, fmt.Errorf("[ERROR] The resource instance %s failed to create", id) + } + return controller, *controller.State, nil + } +} + +func resourceIBMPIWorkspaceRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + // session + sess, err := meta.(conns.ClientSession).IBMPISession() + if err != nil { + return diag.FromErr(err) + } + + cloudInstanceID := d.Id() + client := st.NewIBMPIWorkspacesClient(ctx, sess, cloudInstanceID) + controller, _, err := client.GetRC(cloudInstanceID) + if err != nil { + return diag.FromErr(err) + } + d.Set(PIWorkspaceName, controller.Name) + + return nil +} + +func resourceIBMPIWorkspaceDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + sess, err := meta.(conns.ClientSession).IBMPISession() + if err != nil { + return diag.FromErr(err) + } + + cloudInstanceID := d.Id() + client := st.NewIBMPIWorkspacesClient(ctx, sess, cloudInstanceID) + response, err := client.Delete(cloudInstanceID) + if err != nil && response != nil && response.StatusCode == 410 { + return nil + } + _, err = waitForResourceInstanceDelete(ctx, client, cloudInstanceID, d.Timeout(schema.TimeoutDelete)) + if err != nil { + return diag.FromErr(err) + } + d.SetId("") + + return nil +} + +func waitForResourceInstanceDelete(ctx context.Context, client *st.IBMPIWorkspacesClient, id string, timeout time.Duration) (interface{}, error) { + stateConf := &resource.StateChangeConf{ + Pending: []string{"in progress", "inactive", "active"}, + Target: []string{"removed", "pending_reclamation"}, + Refresh: isIBMPIResourceDeleteRefreshFunc(client, id), + Delay: 10 * time.Second, + MinTimeout: 1 * time.Second, + Timeout: timeout, + } + return stateConf.WaitForStateContext(ctx) +} + +func isIBMPIResourceDeleteRefreshFunc(client *st.IBMPIWorkspacesClient, id string) resource.StateRefreshFunc { + return func() (interface{}, string, error) { + controller, response, err := client.GetRC(id) + if err != nil { + if response != nil && response.StatusCode == 404 { + return controller, "active", nil + } + return nil, "", err + } + if controller == nil { + return controller, "removed", nil + } else { + if *controller.State == "failed" { + return controller, *controller.State, fmt.Errorf("[ERROR] The resource instance %s failed to delete", id) + } + return controller, *controller.State, nil + } + } +} diff --git a/ibm/service/power/resource_ibm_pi_workspace_test.go b/ibm/service/power/resource_ibm_pi_workspace_test.go new file mode 100644 index 0000000000..d38062f794 --- /dev/null +++ b/ibm/service/power/resource_ibm_pi_workspace_test.go @@ -0,0 +1,98 @@ +package power_test + +import ( + "context" + "errors" + "fmt" + "strings" + "testing" + + st "github.com/IBM-Cloud/power-go-client/clients/instance" + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" +) + +func TestAccIBMPIWorkspaceBasic(t *testing.T) { + name := fmt.Sprintf("tf-pi-workspace-%d", acctest.RandIntRange(10, 100)) + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccIBMPIWorkspaceDestroy, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMPIWorkspaceConfig(name), + Check: resource.ComposeTestCheckFunc( + testAccCheckIBMPIWorkspaceExists("ibm_pi_workspace.powervs_service_instance"), + resource.TestCheckResourceAttrSet("ibm_pi_workspace.powervs_service_instance", "id"), + ), + }, + }, + }) +} + +func testAccCheckIBMPIWorkspaceConfig(name string) string { + return fmt.Sprintf(` + resource "ibm_pi_workspace" "powervs_service_instance" { + pi_name = "%[1]s" + pi_datacenter = "dal" + pi_resource_group_id = "%[2]s" + pi_plan = "public" + } + `, name, acc.Pi_resource_group_id) +} + +func testAccIBMPIWorkspaceDestroy(s *terraform.State) error { + sess, err := acc.TestAccProvider.Meta().(conns.ClientSession).IBMPISession() + if err != nil { + return err + } + for _, rs := range s.RootModule().Resources { + if rs.Type != "ibm_pi_workspace" { + continue + } + cloudInstanceID := rs.Primary.ID + client := st.NewIBMPIWorkspacesClient(context.Background(), sess, cloudInstanceID) + workspace, resp, err := client.GetRC(cloudInstanceID) + if err == nil { + if *workspace.State == "active" { + return fmt.Errorf("Resource Instance still exists: %s", rs.Primary.ID) + } + } else { + if !strings.Contains(err.Error(), "404") { + return fmt.Errorf("[ERROR] Error checking if Resource Instance (%s) has been destroyed: %s with resp code: %s", rs.Primary.ID, err, resp) + } + } + } + return nil +} + +func testAccCheckIBMPIWorkspaceExists(n string) resource.TestCheckFunc { + return func(s *terraform.State) error { + + rs, ok := s.RootModule().Resources[n] + + if !ok { + return fmt.Errorf("Not found: %s", n) + } + + if rs.Primary.ID == "" { + return errors.New("No Record ID is set") + } + + sess, err := acc.TestAccProvider.Meta().(conns.ClientSession).IBMPISession() + if err != nil { + return err + } + + cloudInstanceID := rs.Primary.ID + client := st.NewIBMPIWorkspacesClient(context.Background(), sess, cloudInstanceID) + _, _, err = client.GetRC(cloudInstanceID) + if err != nil { + return err + } + return nil + } +} diff --git a/website/docs/d/pi_workspace.html.markdown b/website/docs/d/pi_workspace.html.markdown index e82301e99b..af13d7f5f9 100644 --- a/website/docs/d/pi_workspace.html.markdown +++ b/website/docs/d/pi_workspace.html.markdown @@ -43,7 +43,7 @@ Review the argument references that you can specify for your data source. ## Attribute reference -In addition to all argument reference list, you can access the following attribute references after your data source is created. +In addition to all argument reference listed, you can access the following attribute references after your data source is created. - `id - (String) Workspace ID. - `pi_workspace_capabilities` - (Map) Workspace Capabilities. diff --git a/website/docs/d/pi_workspaces.html.markdown b/website/docs/d/pi_workspaces.html.markdown index 75acc3baba..7f220b5acb 100644 --- a/website/docs/d/pi_workspaces.html.markdown +++ b/website/docs/d/pi_workspaces.html.markdown @@ -43,7 +43,7 @@ Review the argument references that you can specify for your data source. ## Attribute reference -In addition to all argument reference list, you can access the following attribute references after your data source is created. +In addition to all argument reference listed, you can access the following attribute references after your data source is created. - `workspaces` - List of all Workspaces. Nested schema for `workspaces` diff --git a/website/docs/r/pi_workspace.html.markdown b/website/docs/r/pi_workspace.html.markdown new file mode 100644 index 0000000000..b17e5ca2a4 --- /dev/null +++ b/website/docs/r/pi_workspace.html.markdown @@ -0,0 +1,49 @@ +--- + +subcategory: "Power Systems" +layout: "ibm" +page_title: "IBM: pi_workspace" +description: |- + Manages a workspace in the Power Virtual Server cloud. +--- + +# ibm_pi_workspace + +Create or Delete a PowerVS Workspace + +## Example usage + +```terraform +data "ibm_resource_group" "group" { + name = "test" +} + +resource "ibm_pi_workspace" "powervs_service_instance" { + pi_name = "test-name" + pi_datacenter = "us-east" + pi_resource_group_id = data.ibm_resource_group.group.id + pi_plan = "public" +} +``` + +## Notes + +- Please find [supported Regions](https://cloud.ibm.com/apidocs/power-cloud#endpoint) for endpoints. +- If a Power cloud instance is provisioned at `lon04`, The provider level attributes should be as follows: + - `region` - `lon` + - `zone` - `lon04` + +## Argument reference + +Review the argument references that you can specify for your resource. + +- `pi_name` - (Required, String) A descriptive name used to identify the workspace. +- `pi_datacenter` - (Required, String) Target location or environment to create the resource instance. +- `pi_resource_group_id` - (Required, String) The ID of the resource group where you want to create the workspace. You can retrieve the value from data source `ibm_resource_group`. +- `pi_plan` - (Required, String) Plan associated with the offering; Valid values are `public` or `private`. + +## Attribute reference + +In addition to all argument reference listed, you can access the following attribute references after your resource source is created. + +- `id` - (String) Workspace ID. \ No newline at end of file From a23e7e783be579e1f645cee38178f323966b9b2d Mon Sep 17 00:00:00 2001 From: Arpit Srivastava Date: Thu, 23 Nov 2023 12:04:34 +0530 Subject: [PATCH 47/58] fix: CIS - remove deafult value for min_tls_version --- ibm/service/cis/resource_ibm_cis_domain_settings.go | 1 - ibm/service/cis/resource_ibm_cis_tls_settings.go | 1 - metadata/provider_metadata.json | 2 -- 3 files changed, 4 deletions(-) diff --git a/ibm/service/cis/resource_ibm_cis_domain_settings.go b/ibm/service/cis/resource_ibm_cis_domain_settings.go index 5a83a01ae0..47bb6046a7 100644 --- a/ibm/service/cis/resource_ibm_cis_domain_settings.go +++ b/ibm/service/cis/resource_ibm_cis_domain_settings.go @@ -127,7 +127,6 @@ func ResourceIBMCISSettings() *schema.Resource { ValidateFunc: validate.InvokeValidator( ibmCISDomainSettings, cisDomainSettingsTLSVersionValidatorID), - Default: "1.1", }, cisDomainSettingsCNAMEFlattening: { Type: schema.TypeString, diff --git a/ibm/service/cis/resource_ibm_cis_tls_settings.go b/ibm/service/cis/resource_ibm_cis_tls_settings.go index d6552318bc..76fab72351 100644 --- a/ibm/service/cis/resource_ibm_cis_tls_settings.go +++ b/ibm/service/cis/resource_ibm_cis_tls_settings.go @@ -56,7 +56,6 @@ func ResourceIBMCISTLSSettings() *schema.Resource { Description: "Minimum version of TLS required", Optional: true, ValidateFunc: validate.InvokeValidator(ibmCISTLSSettings, cisTLSSettingsMinTLSVersion), - Default: "1.1", }, }, Create: resourceCISTLSSettingsUpdate, diff --git a/metadata/provider_metadata.json b/metadata/provider_metadata.json index 595fc1b0cd..35b141da83 100644 --- a/metadata/provider_metadata.json +++ b/metadata/provider_metadata.json @@ -94360,7 +94360,6 @@ "name": "min_tls_version", "type": "TypeString", "description": "Minimum version of TLS required", - "default_value": "1.1", "optional": true }, { @@ -96013,7 +96012,6 @@ "name": "min_tls_version", "type": "TypeString", "description": "Minimum version of TLS required", - "default_value": "1.1", "options": "1.1, 1.2, 1.3, 1.4", "optional": true } From cc498aeaa22a04782cb5f96288db44270bda6bcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Ill=C3=A9s?= Date: Thu, 23 Nov 2023 13:06:16 +0100 Subject: [PATCH 48/58] i4745 - add optional account id to kms config (#4944) * add account_id to kms_config * use bluemix-go@v0.0.0-20231123082353-50e8cc9c6959 --------- Co-authored-by: Zoltan Illes --- go.mod | 2 +- go.sum | 11 +++++----- .../resource_ibm_container_cluster.go | 11 ++++++++++ .../resource_ibm_container_vpc_cluster.go | 11 ++++++++++ ...resource_ibm_container_vpc_cluster_test.go | 21 +++++++++++++++++-- .../docs/r/container_cluster.html.markdown | 3 ++- .../r/container_vpc_cluster.html.markdown | 11 +++++----- 7 files changed, 56 insertions(+), 14 deletions(-) diff --git a/go.mod b/go.mod index 0a3a27eacc..3bb6d00084 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/IBM-Cloud/terraform-provider-ibm go 1.18 require ( - github.com/IBM-Cloud/bluemix-go v0.0.0-20231017073329-75ebe90c98ba + github.com/IBM-Cloud/bluemix-go v0.0.0-20231123082353-50e8cc9c6959 github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20231106114255-c50117860a3c github.com/IBM-Cloud/power-go-client v1.5.4 github.com/IBM/apigateway-go-sdk v0.0.0-20210714141226-a5d5d49caaca diff --git a/go.sum b/go.sum index c7f1a06c47..2deeef865a 100644 --- a/go.sum +++ b/go.sum @@ -100,8 +100,8 @@ github.com/DataDog/datadog-go v2.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3 github.com/DataDog/datadog-go v3.2.0+incompatible h1:qSG2N4FghB1He/r2mFrWKCaL7dXCilEuNEeAn20fdD4= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/zstd v1.4.4/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= -github.com/IBM-Cloud/bluemix-go v0.0.0-20231017073329-75ebe90c98ba h1:8U4HByOYJiaGWBpGjdRIzyzu0NBzjywh//CZnSbEsPw= -github.com/IBM-Cloud/bluemix-go v0.0.0-20231017073329-75ebe90c98ba/go.mod h1:mt+O8ryLVANrBKlA4RxKdENp3q6Q7mKQIi2nkiibZbU= +github.com/IBM-Cloud/bluemix-go v0.0.0-20231123082353-50e8cc9c6959 h1:dvvI4ybsYx6M7fFGrg3HjlNnYxEBi9jJdSU0JhjJbG8= +github.com/IBM-Cloud/bluemix-go v0.0.0-20231123082353-50e8cc9c6959/go.mod h1:jIGLnIfj+uBv2ALz3rVHzNbNwt0V/bEWNeJKECa8Q+k= github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20231106114255-c50117860a3c h1:tRS4VuOG3lHNG+yrsh3vZZQDVNLuFJB0oZbTJp9YXds= github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20231106114255-c50117860a3c/go.mod h1:xUQL9SGAjoZFd4GNjrjjtEpjpkgU7RFXRyHesbKTjiY= github.com/IBM-Cloud/ibm-cloud-cli-sdk v0.5.3/go.mod h1:RiUvKuHKTBmBApDMUQzBL14pQUGKcx/IioKQPIcRQjs= @@ -1269,8 +1269,8 @@ github.com/onsi/ginkgo/v2 v2.9.2/go.mod h1:WHcJJG2dIlcCqVfBAwUCrJxSPFb6v4azBwgxe github.com/onsi/ginkgo/v2 v2.9.5/go.mod h1:tvAoo1QUJwNEU2ITftXTpR7R1RbCzoZUOs3RonqW57k= github.com/onsi/ginkgo/v2 v2.9.7/go.mod h1:cxrmXWykAwTwhQsJOPfdIDiJ+l2RYq7U8hFU+M/1uw0= github.com/onsi/ginkgo/v2 v2.11.0/go.mod h1:ZhrRA5XmEE3x3rhlzamx/JJvujdZoJ2uvgI7kR0iZvM= -github.com/onsi/ginkgo/v2 v2.12.0 h1:UIVDowFPwpg6yMUpPjGkYvf06K3RAiJXUhCxEwQVHRI= -github.com/onsi/ginkgo/v2 v2.12.0/go.mod h1:ZNEzXISYlqpb8S36iN71ifqLi3vVD1rVJGvWRCJOUpQ= +github.com/onsi/ginkgo/v2 v2.13.0 h1:0jY9lJquiL8fcf3M4LAXN5aMlS/b2BV86HFFPCPMgE4= +github.com/onsi/ginkgo/v2 v2.13.0/go.mod h1:TE309ZR8s5FsKKpuB1YAQYBzCaAfUgatB/xlT/ETL/o= github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= github.com/onsi/gomega v0.0.0-20190113212917-5533ce8a0da3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.4.2/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= @@ -1301,8 +1301,8 @@ github.com/onsi/gomega v1.27.6/go.mod h1:PIQNjfQwkP3aQAH7lf7j87O/5FiNr+ZR8+ipb+q github.com/onsi/gomega v1.27.7/go.mod h1:1p8OOlwo2iUUDsHnOrjE5UKYJ+e3W8eQ3qSlRahPmr4= github.com/onsi/gomega v1.27.8/go.mod h1:2J8vzI/s+2shY9XHRApDkdgPo1TKT7P2u6fXeJKFnNQ= github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M= -github.com/onsi/gomega v1.28.0/go.mod h1:A1H2JE76sI14WIP57LMKj7FVfCHx3g3BcZVjJG8bjX8= github.com/onsi/gomega v1.29.0 h1:KIA/t2t5UBzoirT4H9tsML45GEbo3ouUnBHsCfD2tVg= +github.com/onsi/gomega v1.29.0/go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ= github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= @@ -1935,6 +1935,7 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= diff --git a/ibm/service/kubernetes/resource_ibm_container_cluster.go b/ibm/service/kubernetes/resource_ibm_container_cluster.go index 2d786d3824..37d74326fa 100644 --- a/ibm/service/kubernetes/resource_ibm_container_cluster.go +++ b/ibm/service/kubernetes/resource_ibm_container_cluster.go @@ -122,6 +122,11 @@ func ResourceIBMContainerCluster() *schema.Resource { Default: false, Description: "Specify this option to use the KMS public service endpoint.", }, + "account_id": { + Type: schema.TypeString, + Optional: true, + Description: "Account ID of KMS instance holder - if not provided, defaults to the account in use", + }, }, }, }, @@ -1047,6 +1052,12 @@ func resourceIBMContainerClusterUpdate(d *schema.ResourceData, meta interface{}) endpoint := privateEndpoint.(bool) kmsConfig.PrivateEndpoint = endpoint } + + //Read optional account id + if accountid := kmsMap["account_id"]; accountid != nil { + accountid_string := accountid.(string) + kmsConfig.AccountID = accountid_string + } } } diff --git a/ibm/service/kubernetes/resource_ibm_container_vpc_cluster.go b/ibm/service/kubernetes/resource_ibm_container_vpc_cluster.go index e05e29dbeb..944f8f074f 100644 --- a/ibm/service/kubernetes/resource_ibm_container_vpc_cluster.go +++ b/ibm/service/kubernetes/resource_ibm_container_vpc_cluster.go @@ -96,6 +96,11 @@ func ResourceIBMContainerVpcCluster() *schema.Resource { Default: false, Description: "Specify this option to use the KMS public service endpoint.", }, + "account_id": { + Type: schema.TypeString, + Optional: true, + Description: "Account ID of KMS instance holder - if not provided, defaults to the account in use", + }, }, }, }, @@ -685,6 +690,12 @@ func resourceIBMContainerVpcClusterUpdate(d *schema.ResourceData, meta interface endpoint := privateEndpoint.(bool) kmsConfig.PrivateEndpoint = endpoint } + + //Read optional account id + if accountid := kmsMap["account_id"]; accountid != nil { + accountid_string := accountid.(string) + kmsConfig.AccountID = accountid_string + } } } diff --git a/ibm/service/kubernetes/resource_ibm_container_vpc_cluster_test.go b/ibm/service/kubernetes/resource_ibm_container_vpc_cluster_test.go index e565eaf810..ad067026ae 100644 --- a/ibm/service/kubernetes/resource_ibm_container_vpc_cluster_test.go +++ b/ibm/service/kubernetes/resource_ibm_container_vpc_cluster_test.go @@ -464,7 +464,7 @@ func TestAccIBMContainerVpcClusterBaseEnvvar(t *testing.T) { ImportState: true, ImportStateVerify: true, ImportStateVerifyIgnore: []string{ - "wait_till", "update_all_workers", "kms_config", "force_delete_storage", "wait_for_worker_update"}, + "wait_till", "update_all_workers", "kms_config", "force_delete_storage", "wait_for_worker_update", "albs"}, }, }, }) @@ -512,7 +512,22 @@ func testAccCheckIBMContainerVpcClusterEnvvar(name string) string { // export IBM_CLUSTER_VPC_ID // export IBM_CLUSTER_VPC_SUBNET_ID // export IBM_CLUSTER_VPC_RESOURCE_GROUP_ID +// optionally for kms and cross account kms: +// export IBM_KMS_INSTANCE_ID +// export IBM_CRK_ID +// for cross account kms: +// export IBM_KMS_ACCOUNT_ID func testAccCheckIBMContainerVpcClusterBaseEnvvar(name string) string { + var kmsConfig string + if acc.KmsInstanceID != "" { + kmsConfig = fmt.Sprintf(` + kms_config { + instance_id = "%[1]s" + crk_id = "%[2]s" + account_id = "%[3]s" + } + `, acc.KmsInstanceID, acc.CrkID, acc.KmsAccountID) + } config := fmt.Sprintf(` resource "ibm_container_vpc_cluster" "cluster" { name = "%[1]s" @@ -525,8 +540,10 @@ func testAccCheckIBMContainerVpcClusterBaseEnvvar(name string) string { name = "us-south-1" } wait_till = "normal" + %[5]s } - `, name, acc.IksClusterVpcID, acc.IksClusterResourceGroupID, acc.IksClusterSubnetID) + `, name, acc.IksClusterVpcID, acc.IksClusterResourceGroupID, acc.IksClusterSubnetID, kmsConfig) + fmt.Println(config) return config } diff --git a/website/docs/r/container_cluster.html.markdown b/website/docs/r/container_cluster.html.markdown index 0857c6e2eb..3e93cde3d7 100644 --- a/website/docs/r/container_cluster.html.markdown +++ b/website/docs/r/container_cluster.html.markdown @@ -204,12 +204,13 @@ Review the argument references that you can specify for your resource. - `hardware` - (Optional, Forces new resource, String) The level of hardware isolation for your worker node. Use `dedicated` to have available physical resources dedicated to you only, or `shared` to allow physical resources to be shared with other IBM customers. This option is available for virtual machine worker node flavors only. - `image_security_enforcement` - (Optional, Bool) Set to **true** to enable image security enforcement policies in a cluster. - `gateway_enabled` - (Optional, Bool) Set to **true** if you want to automatically create a gateway-enabled cluster. If `gateway_enabled` is set to **true**, then `private_service_endpoint` must be set to **true** at the same time. -- `kms_config` - (Optional, List) Used to attach a Key Protect instance to a cluster. Nested `kms_config` block have `instance_id`, `crk_id`, `private_endpoint` structure. +- `kms_config` - (Optional, List) Used to attach a Key Protect instance to a cluster. Nested `kms_config` block has an `instance_id`, `crk_id`, `private_endpoint` and `account_id`. Nested scheme for `kms_config`: - `crk_id` - (Optional, String) The ID of the customer root key (CRK). - `instance_id` - (Optional, String) The GUID of the Key Protect instance. - `private_endpoint` - (Optional, Bool) Set to **true** to configure the KMS private service endpoint. Default value is **false**. + - `account_id` - (Optional, String) Account ID of KMS instance holder - if not provided, defaults to the account in use. - `kube_version` - (Optional, String) The Kubernetes or OpenShift version that you want to set up in your cluster. If the version is not specified, the default version in [IBM Cloud Kubernetes Service](https://cloud.ibm.com/docs/containers?topic=containers-cs_versions) or [Red Hat OpenShift on IBM Cloud](https://cloud.ibm.com/docs/openshift?topic=openshift-openshift_versions#version_types) is used. For example, to specify Kubernetes version 1.16, enter `1.16`. For OpenShift clusters, you can specify version `3.11_openshift` or `4.3.1_openshift`. - `labels`- (Optional, Map) Labels on all the workers in the default worker pool. - `machine_type` - (Optional, Forces new resource, String) The machine type for your worker node. The machine type determines the amount of memory, CPU, and disk space that is available to the worker node. For an overview of supported machine types, see [Planning your worker node setup](https://cloud.ibm.com/docs/containers?topic=containers-planning_worker_nodes). You can retrieve the value by executing the `ibmcloud ks machine-types ` command in the IBM Cloud CLI. diff --git a/website/docs/r/container_vpc_cluster.html.markdown b/website/docs/r/container_vpc_cluster.html.markdown index ae738215c6..76c36336b5 100644 --- a/website/docs/r/container_vpc_cluster.html.markdown +++ b/website/docs/r/container_vpc_cluster.html.markdown @@ -178,13 +178,14 @@ Review the argument references that you can specify for your resource. - `flavor` - (Required, Forces new resource, String) The flavor of the VPC worker node that you want to use. - `image_security_enforcement` - (Optional, Bool) Set to **true** to enable image security enforcement policies in a cluster. - `name` - (Required, Forces new resource, String) The name of the cluster. -- `kms_config` - (Optional, String) Use to attach a Key Protect instance to a cluster. Nested `kms_config` block has an `instance_id`, `crk_id`, `private_endpoint`. -- `host_pool_id` - (Optional, String) If provided, the cluster will be associated with a dedicated host pool identified by this ID. +- `kms_config` - (Optional, String) Use to attach a Key Protect instance to a cluster. Nested `kms_config` block has an `instance_id`, `crk_id`, `private_endpoint` and `account_id`. Nested scheme for `kms_config`: - `crk_id` - (Optional, String) The ID of the customer root key (CRK). - `instance_id` - (Optional, String) The GUID of the Key Protect instance. - `private_endpoint` - (Optional, Bool) Set **true** to configure the KMS private service endpoint. Default value is **false**. + - `account_id` - (Optional, String) Account ID of KMS instance holder - if not provided, defaults to the account in use. +- `host_pool_id` - (Optional, String) If provided, the cluster will be associated with a dedicated host pool identified by this ID. - `kube_version` - (Optional, String) Specify the Kubernetes version, including the major.minor version. If you do not include this flag, the default version is used. To see available versions, run `ibmcloud ks versions`. - `operating_system` - (Optional, Forces new resource, String) The operating system of the workers in the default worker pool. For supported options, see [Red Hat OpenShift on IBM Cloud version information](https://cloud.ibm.com/docs/openshift?topic=openshift-openshift_versions) or [IBM Cloud Kubernetes Service version information](https://cloud.ibm.com/docs/containers?topic=containers-cs_versions). - `secondary_storage` - (Optional, Forces new resource, String) The secondary storage option for the default worker pool. @@ -213,9 +214,9 @@ Review the argument references that you can specify for your resource. - `name` - (Required, Forces new resource, String) The zone name for the default worker pool in a multizone cluster. - `subnet_id` - (Required, Forces new resource, String) The VPC subnet to assign the cluster's default worker pool. -- `crk` - Root Key ID for boot volume encryption. -- `kms_instance_id` - Instance ID for boot volume encryption. -- `kms_account_id` - Account ID for boot volume encryption, if other account is providing the kms. +- `crk` - (Optional, String) Root Key ID for boot volume encryption. +- `kms_instance_id` - (Optional, String) Instance ID for boot volume encryption. +- `kms_account_id` - (Optional, String) Account ID for boot volume encryption, if other account is providing the kms. **Note** From 06a9ed7c917ea8cbb2c2183e9509c078ff2cf87f Mon Sep 17 00:00:00 2001 From: michaelkad <45772690+michaelkad@users.noreply.github.com> Date: Thu, 23 Nov 2023 08:03:21 -0600 Subject: [PATCH 49/58] Update Power Workspace/s and Datacenter/s DataSource Documentation (#4904) * Update Power Workspace/s and Datacenter/s DataSource - Update doc for get and getall workspace and datacenter * update power-go-client to v1.5.4 --------- Co-authored-by: HARINI KANTAREDDY --- website/docs/d/pi_datacenter.html.markdown | 14 +++++--------- website/docs/d/pi_datacenters.html.markdown | 14 +++++--------- website/docs/d/pi_workspace.html.markdown | 16 ++++++---------- website/docs/d/pi_workspaces.html.markdown | 14 +++++--------- 4 files changed, 21 insertions(+), 37 deletions(-) diff --git a/website/docs/d/pi_datacenter.html.markdown b/website/docs/d/pi_datacenter.html.markdown index 36cdd88493..8076d2188f 100644 --- a/website/docs/d/pi_datacenter.html.markdown +++ b/website/docs/d/pi_datacenter.html.markdown @@ -45,14 +45,10 @@ Review the argument references that you can specify for your data source. In addition to all argument reference list, you can access the following attribute references after your data source is created. -- `pi_datacenter_capabilities` - (Map) Datacenter Capabilities. +- `pi_datacenter_capabilities` - (Map) Datacenter Capabilities. Capabilities are `true` or `false`. - Nested schema for `pi_datacenter_capabilities`: - - `cloud-connections` - (Bool) Cloud-connections capability. - - `disaster-recovery-site` - (Bool) Disaster recovery site. - - `power-edge-router` - (Bool) Power edge router capability. - - `vpn-connections`- (Bool) VPN-connections capability. - - `sysdig-enabled`- (Bool) Sysdig-enabled capability. + Some of `pi_datacenter_capabilities` are: + - `cloud-connections`, `disaster-recovery-site`, `metrics`, `power-edge-router`, `power-vpn-connections` - `pi_datacenter_location` - (Map) Datacenter location. @@ -60,5 +56,5 @@ In addition to all argument reference list, you can access the following attribu - `region` - (String) The Datacenter location region zone. - `type` - (String) The Datacenter location region type. - `url`- (String) The Datacenter location region url. -- `pi_datacenter_status` - (String) The Datacenter status, `ACTIVE`,`MAINTENANCE` or `DOWN`. -- `pi_datacenter_type` - (String) The Datacenter type, `Public Cloud` or `Private Cloud`. +- `pi_datacenter_status` - (String) The Datacenter status, `active`,`maintenance` or `down`. +- `pi_datacenter_type` - (String) The Datacenter type, `off-premises` or `on-premises`. diff --git a/website/docs/d/pi_datacenters.html.markdown b/website/docs/d/pi_datacenters.html.markdown index 3d56abeca3..812b0a75f3 100644 --- a/website/docs/d/pi_datacenters.html.markdown +++ b/website/docs/d/pi_datacenters.html.markdown @@ -42,14 +42,10 @@ In addition to all argument reference list, you can access the following attribu - `datacenters` - List of Datacenters Nested schema for `datacenters` - - `pi_datacenter_capabilities` - (Map) Datacenter Capabilities. + - `pi_datacenter_capabilities` - (Map) Datacenter Capabilities. Capabilities are `true` or `false`. - Nested schema for `pi_datacenter_capabilities`; are (Bool) `true` or `false`: - - `cloud-connections` - (Bool) Cloud-connections capability. - - `disaster-recovery-site` - (Bool) Disaster recovery site. - - `power-edge-router` - (Bool) Power edge router capability. - - `vpn-connections`- (Bool) VPN-connections capability. - - `sysdig-enabled`- (Bool) Sysdig-enabled capability. + Some of `pi_datacenter_capabilities` are: + - `cloud-connections`, `disaster-recovery-site`, `metrics`, `power-edge-router`, `power-vpn-connections` - `pi_datacenter_location` - (Map) Datacenter location. @@ -57,5 +53,5 @@ In addition to all argument reference list, you can access the following attribu - `region` - (String) The Datacenter location region zone. - `type` - (String) The Datacenter location region type. - `url`- (String) The Datacenter location region url. - - `pi_datacenter_status` - (String) The Datacenter status, `ACTIVE`,`MAINTENANCE` or `DOWN`. - - `pi_datacenter_type` - (String) The Datacenter type, `Public Cloud` or `Private Cloud`. + - `pi_datacenter_status` - (String) The Datacenter status, `active`,`maintenance` or `down`. + - `pi_datacenter_type` - (String) The Datacenter type, `off-premises` or `on-premises`. diff --git a/website/docs/d/pi_workspace.html.markdown b/website/docs/d/pi_workspace.html.markdown index af13d7f5f9..1b3195f016 100644 --- a/website/docs/d/pi_workspace.html.markdown +++ b/website/docs/d/pi_workspace.html.markdown @@ -45,15 +45,11 @@ Review the argument references that you can specify for your data source. In addition to all argument reference listed, you can access the following attribute references after your data source is created. -- `id - (String) Workspace ID. -- `pi_workspace_capabilities` - (Map) Workspace Capabilities. +- `id` - (String) Workspace ID. +- `pi_workspace_capabilities` - (Map) Workspace Capabilities. Capabilities are `true` or `false`. - Nested schema for `pi_workspace_capabilities`: - - `cloud-connections` - (Bool) Cloud-connections capability. - - `custom-virtual-cores`- (Bool) Custom virtual cores capability. - - `power-edge-router` - (Bool) Power edge router capability. - - `transit-gateway-connection` - (Bool) Transit gateway connection capability. - - `vpn-connections`- (Bool) VPN-connections capability. + Some of `pi_workspace_capabilities` are: + - `cloud-connections`, `power-edge-router`, `power-vpn-connections`, `transit-gateway-connection` - `pi_workspace_details` - (Map) Workspace information. @@ -67,5 +63,5 @@ In addition to all argument reference listed, you can access the following attri - `type` - (String) The Workspace location region type. - `url`- (String) The Workspace location region url. - `pi_workspace_name` - (String) The Workspace name. -- `pi_workspace_status` - (String) The Workspace status, `ACTIVE` or `FAILED`. -- `pi_workspace_type` - (String) The Workspace type, `Public Cloud` or `Private Cloud`. +- `pi_workspace_status` - (String) The Workspace status, `active`, `critical`, `failed`, `provisioning`. +- `pi_workspace_type` - (String) The Workspace type, `off-premises` or `on-premises`. diff --git a/website/docs/d/pi_workspaces.html.markdown b/website/docs/d/pi_workspaces.html.markdown index 7f220b5acb..12ca699246 100644 --- a/website/docs/d/pi_workspaces.html.markdown +++ b/website/docs/d/pi_workspaces.html.markdown @@ -47,14 +47,10 @@ In addition to all argument reference listed, you can access the following attri - `workspaces` - List of all Workspaces. Nested schema for `workspaces` - - `pi_workspace_capabilities` - (Map) Workspace Capabilities. + - `pi_workspace_capabilities` - (Map) Workspace Capabilities. Capabilities are `true` or `false`. - Nested schema for `pi_workspace_capabilities`; are (Bool) `true` or `false`: - - `cloud-connections` - (Bool) Cloud-connections capability. - - `custom-virtual-cores`- (Bool) Custom virtual cores capability. - - `power-edge-router` - (Bool) Power edge router capability. - - `transit-gateway-connection` - (Bool) Transit gateway connection capability. - - `vpn-connections`- (Bool) VPN-connections capability. + Some of `pi_workspace_capabilities` are: + - `cloud-connections` ,`power-edge-router`, `power-vpn-connections`, `transit-gateway-connection` - `pi_workspace_details` - (Map) Workspace information. @@ -69,5 +65,5 @@ In addition to all argument reference listed, you can access the following attri - `type` - (String) The Workspace location region type. - `url`- (String) The Workspace location region url. - `pi_workspace_name` - (String) The Workspace name. - - `pi_workspace_status` - (String) The Workspace status, `ACTIVE` or `FAILED`. - - `pi_workspace_type` - (String) The Workspace type, `Public Cloud` or `Private Cloud`. + - `pi_workspace_status` - (String) The Workspace status, `active`, `critical`, `failed`, `provisioning`. + - `pi_workspace_type` - (String) The Workspace type, `off-premises` or `on-premises`. From e76645b3032e02d3404af6062e9a821636a1a865 Mon Sep 17 00:00:00 2001 From: Ujjwal Kumar <78945437+ujjwal-ibm@users.noreply.github.com> Date: Thu, 23 Nov 2023 19:34:55 +0530 Subject: [PATCH 50/58] fix(is_instance): validation on encryption with catalog images fixed (#4940) --- ibm/service/vpc/resource_ibm_is_instance.go | 2 +- .../vpc/resource_ibm_is_instance_test.go | 96 +++++++++++++++++++ 2 files changed, 97 insertions(+), 1 deletion(-) diff --git a/ibm/service/vpc/resource_ibm_is_instance.go b/ibm/service/vpc/resource_ibm_is_instance.go index 4e0ea22921..2debbf2734 100644 --- a/ibm/service/vpc/resource_ibm_is_instance.go +++ b/ibm/service/vpc/resource_ibm_is_instance.go @@ -625,7 +625,7 @@ func ResourceIBMISInstance() *schema.Resource { ForceNew: true, Computed: true, RequiredWith: []string{isInstanceZone, isInstancePrimaryNetworkInterface, isInstanceProfile, isInstanceKeys, isInstanceVPC}, - AtLeastOneOf: []string{isInstanceImage, isInstanceSourceTemplate, "boot_volume.0.volume_id", "boot_volume.0.snapshot"}, + AtLeastOneOf: []string{isInstanceImage, isInstanceSourceTemplate, "boot_volume.0.volume_id", "boot_volume.0.snapshot", "catalog_offering.0.offering_crn", "catalog_offering.0.version_crn"}, ConflictsWith: []string{isInstanceImage, isInstanceSourceTemplate, "boot_volume.0.snapshot", "boot_volume.0.name", "boot_volume.0.encryption", "catalog_offering.0.offering_crn", "catalog_offering.0.version_crn"}, Description: "The unique identifier for this volume", }, diff --git a/ibm/service/vpc/resource_ibm_is_instance_test.go b/ibm/service/vpc/resource_ibm_is_instance_test.go index 5bac59cff7..6d0b0055b8 100644 --- a/ibm/service/vpc/resource_ibm_is_instance_test.go +++ b/ibm/service/vpc/resource_ibm_is_instance_test.go @@ -75,6 +75,48 @@ ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVE }, }) } +func TestAccIBMISInstance_enc_catalog(t *testing.T) { + var instance string + vpcname := fmt.Sprintf("tf-vpc-%d", acctest.RandIntRange(10, 100)) + name := fmt.Sprintf("tf-instnace-%d", acctest.RandIntRange(10, 100)) + subnetname := fmt.Sprintf("tf-subnet-%d", acctest.RandIntRange(10, 100)) + publicKey := strings.TrimSpace(` +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR +`) + sshname := fmt.Sprintf("tf-ssh-%d", acctest.RandIntRange(10, 100)) + resourceName := fmt.Sprintf("tf-cosresource-%d", acctest.RandIntRange(10, 100)) + keyName := fmt.Sprintf("tf-key-%d", acctest.RandIntRange(10, 100)) + userData1 := "a" + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIBMISInstanceDestroy, + Steps: []resource.TestStep{ + { + Config: testAccCheckIBMISInstanceCatEncryptionConfig(vpcname, subnetname, sshname, publicKey, name, userData1, resourceName, keyName), + Check: resource.ComposeTestCheckFunc( + testAccCheckIBMISInstanceExists("ibm_is_instance.testacc_instance", instance), + resource.TestCheckResourceAttr( + "ibm_is_instance.testacc_instance", "name", name), + resource.TestCheckResourceAttr( + "ibm_is_instance.testacc_instance", "user_data", userData1), + resource.TestCheckResourceAttr( + "ibm_is_instance.testacc_instance", "zone", acc.ISZoneName), + resource.TestCheckResourceAttrSet( + "ibm_is_instance.testacc_instance", "vcpu.#"), + resource.TestCheckResourceAttrSet( + "ibm_is_instance.testacc_instance", "vcpu.0.manufacturer"), + resource.TestCheckResourceAttrSet( + "ibm_is_instance.testacc_instance", "boot_volume.0.encryption"), + resource.TestCheckResourceAttrSet( + "ibm_is_instance.testacc_instance", "catalog_offering.0.version_crn"), + ), + }, + }, + }) +} + func TestAccIBMISInstance_lifecycle(t *testing.T) { var instance string vpcname := fmt.Sprintf("tf-vpc-%d", acctest.RandIntRange(10, 100)) @@ -1048,6 +1090,60 @@ func testAccCheckIBMISInstanceConfig(vpcname, subnetname, sshname, publicKey, na } }`, vpcname, subnetname, acc.ISZoneName, acc.ISCIDR, sshname, publicKey, name, acc.IsImage, acc.InstanceProfileName, userData, acc.ISZoneName) } +func testAccCheckIBMISInstanceCatEncryptionConfig(vpcname, subnetname, sshname, publicKey, name, userData, resourceName, keyName string) string { + return fmt.Sprintf(` + resource "ibm_is_vpc" "testacc_vpc" { + name = "%s" + } + + resource "ibm_is_subnet" "testacc_subnet" { + name = "%s" + vpc = ibm_is_vpc.testacc_vpc.id + zone = "%s" + ipv4_cidr_block = "%s" + } + + resource "ibm_is_ssh_key" "testacc_sshkey" { + name = "%s" + public_key = "%s" + } + data ibm_is_images testacc_images { + catalog_managed = true + } + resource "ibm_resource_instance" "testacc_resource" { + name = "%s" + service = "kms" + plan = "tiered-pricing" + location = "%s" + } + resource "ibm_kms_key" "testacc_key" { + instance_id = "${ibm_resource_instance.testacc_resource.guid}" + key_name = "%s" + standard_key = false + force_delete = true + } + resource "ibm_is_instance" "testacc_instance" { + name = "%s" + catalog_offering { + version_crn = data.ibm_is_images.testacc_images.images.1.catalog_offering.0.version.0.crn + } + boot_volume { + encryption = ibm_kms_key.testacc_key.crn + } + profile = "%s" + primary_network_interface { + subnet = ibm_is_subnet.testacc_subnet.id + } + user_data = "%s" + vpc = ibm_is_vpc.testacc_vpc.id + zone = "%s" + keys = [ibm_is_ssh_key.testacc_sshkey.id] + network_interfaces { + subnet = ibm_is_subnet.testacc_subnet.id + name = "eth1" + } + }`, vpcname, subnetname, acc.ISZoneName, acc.ISCIDR, sshname, publicKey, resourceName, acc.RegionName, keyName, name, acc.InstanceProfileName, userData, acc.ISZoneName) +} func testAccCheckIBMISInstanceRipConfig(vpcname, subnetname, subnetripname, sshname, publicKey, name, userData string) string { return fmt.Sprintf(` From 023d613b713dbbeb73850c47f5178ed06d2b5b77 Mon Sep 17 00:00:00 2001 From: hkantare Date: Thu, 23 Nov 2023 20:08:58 +0530 Subject: [PATCH 51/58] udpate CHANGELOG --- CHANGELOG.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f833c365fa..90e72694bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,45 @@ +# 1.60.0-beta1 (Nov 23, 2023) +Features +* Support for Projects + - **Datasources** + - ibm_project + - ibm_project_config + - ibm_project_environment + - **Resources** + - ibm_project + - ibm_project_config + - ibm_project_environment + +* Support for Code Engine + - **Datasources** + - ibm_code_engine_domain_mapping + - **Resources** + - ibm_code_engine_domain_mapping + +* Support for Power Instance + - **Resources** + - ibm_pi_workspace + +Enhancements +* support offline restore for MongoDB EE PITR ([4601](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4601)) +* bump ContinuousDelivery Go SDK version ([4918](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4918)) +* Added nest conditions to rule.conditions IAM Policies ([4896](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4896)) +* Updates to SCC tool ([4920](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4920)) +* Add entitlement option to Satellite cluster/workerpool create ([4894](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4894)) +* VPC ID Filter is added when Subnet Name is specified ([4892](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4892)) +* add optional account id to kms config ([4944](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4944)) + +BugFixes +* resolved nil pointer issue on vpn gateway resource ([4903](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4903)) +* Private/direct COS endpoint settings conflicts with IBM Cloud docs, VPE options, and COS config endpoint ([4919](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4919)) +* add missing required argument name to the doc ([4909](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4909)) +* Fix wrong sintax in doc for Ingress Secret Opaque ([4917](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4917)) +* schematics agent doc fixes ([4933](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4933)) +* Fix some job parameters for code engine ([4923](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4923)) +* CIS - remove deafult value for min_tls_version ([4947](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4947)) +* Update Power Workspace/s and Datacenter/s DataSource Documentation ([4904](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4904)) +* validation on encryption with catalog images fixed ([4940](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4940)) + # 1.60.0-beta0 (Nov 15, 2023) Features * Support for Projects From ff439a920587dc3dedf4d60c49dfd9d7cfbd39b5 Mon Sep 17 00:00:00 2001 From: hkantare Date: Thu, 23 Nov 2023 20:13:08 +0530 Subject: [PATCH 52/58] Bump up version to 1.60.0-beta1 --- version/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/version.go b/version/version.go index f1071a21bf..b5a8b4c2f3 100644 --- a/version/version.go +++ b/version/version.go @@ -5,7 +5,7 @@ import ( ) // Version is the current provider main version -const Version = "1.60.0-beta0" +const Version = "1.60.0-beta1" // GitCommit is the git commit that was compiled. This will be filled in by the compiler. var GitCommit string From ea4c07b0d85def8072e711d6fc0892d7e56482e6 Mon Sep 17 00:00:00 2001 From: archanaponnada <33832784+archanaponnada@users.noreply.github.com> Date: Mon, 27 Nov 2023 18:30:03 +0530 Subject: [PATCH 53/58] issue-13603-fix attachment terraform (#4952) * issue-13603-fix attachment terraform * adding maxitem limit --------- Co-authored-by: ArchanaPonnada --- ibm/service/scc/resource_ibm_scc_profile_attachment.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ibm/service/scc/resource_ibm_scc_profile_attachment.go b/ibm/service/scc/resource_ibm_scc_profile_attachment.go index 7c02d9613a..44ebbe12eb 100644 --- a/ibm/service/scc/resource_ibm_scc_profile_attachment.go +++ b/ibm/service/scc/resource_ibm_scc_profile_attachment.go @@ -109,7 +109,8 @@ func ResourceIbmSccProfileAttachment() *schema.Resource { }, "notifications": { Type: schema.TypeList, - Required: true, + MaxItems: 1, + Optional: true, Description: "The request payload of the attachment notifications.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ From 85f787727bd9f2a2a6f0b6b029b94fe7ea289503 Mon Sep 17 00:00:00 2001 From: VaishnaviGopal Date: Wed, 29 Nov 2023 10:15:11 +0530 Subject: [PATCH 54/58] Fixed catalog service extensions and values metadata params of workspace ds (#4957) --- .../data_source_ibm_schematics_workspace.go | 219 +++++++++++++++++- .../docs/d/schematics_workspace.html.markdown | 18 +- 2 files changed, 229 insertions(+), 8 deletions(-) diff --git a/ibm/service/schematics/data_source_ibm_schematics_workspace.go b/ibm/service/schematics/data_source_ibm_schematics_workspace.go index 69408e2c12..bdd9f28d1f 100644 --- a/ibm/service/schematics/data_source_ibm_schematics_workspace.go +++ b/ibm/service/schematics/data_source_ibm_schematics_workspace.go @@ -85,9 +85,31 @@ func DataSourceIBMSchematicsWorkspace() *schema.Resource { Computed: true, Description: "The version of the software template that you chose to install from the IBM Cloud catalog.", }, - }, - }, - }, + "service_extensions": { + Type: schema.TypeList, + Computed: true, + Description: "List of service data", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": { + Type: schema.TypeString, + Computed: true, + Description: "Name of the Service Data.", + }, + "value": { + Type: schema.TypeString, + Computed: true, + Description: "Value of the Service Data.", + }, + "type": { + Type: schema.TypeString, + Computed: true, + Description: "Type of the value string, int, bool.", + }, + }, + }, + }, + }}}, "created_at": { Type: schema.TypeString, Computed: true, @@ -406,6 +428,58 @@ func DataSourceIBMSchematicsWorkspace() *schema.Resource { Computed: true, Description: "The source of this meta-data.", }, + "metadata": &schema.Schema{ + Type: schema.TypeList, + Computed: true, + Description: "A list of input variables that are associated with the workspace.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "default_value": { + Type: schema.TypeString, + Computed: true, + Description: "Default value for the variable only if the override value is not specified.", + }, + "description": { + Type: schema.TypeString, + Computed: true, + Description: "The description of the meta data.", + }, + "hidden": { + Type: schema.TypeBool, + Computed: true, + Description: "If **true**, the variable is not displayed on UI or Command line.", + }, + "required": { + Type: schema.TypeBool, + Computed: true, + Description: "If the variable required?.", + }, + "options": { + Type: schema.TypeList, + Computed: true, + Description: "The list of possible values for this variable. If type is **integer** or **date**, then the array of string is converted to array of integers or date during the runtime.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "type": { + Type: schema.TypeString, + Computed: true, + Description: "Type of the variable.", + }, + "secure": { + Type: schema.TypeBool, + Computed: true, + Description: "If set to `true`, the value of your input variable is protected and not returned in your API response.", + }, + }, + }, + }, + "value": { + Type: schema.TypeString, + Computed: true, + Description: "The value of the variable. Applicable for the integer type.", + }, }, }, }, @@ -675,8 +749,9 @@ func dataSourceIBMSchematicsWorkspaceRead(context context.Context, d *schema.Res if err = d.Set("template_values", templateData[0]["values"]); err != nil { return diag.FromErr(fmt.Errorf("[ERROR] Error reading values: %s", err)) } - if err = d.Set("template_values_metadata", templateData[0]["values_metadata"]); err != nil { - return diag.FromErr(fmt.Errorf("[ERROR] Error reading values_metadata: %s", err)) + err = d.Set("template_values_metadata", dataSourceWorkspaceResponseFlattenValuesMetadata(templateData[0]["values_metadata"])) + if err != nil { + fmt.Println(fmt.Errorf("[ERROR] Error reading template_values_metadata %s", err)) } if err = d.Set("template_inputs", templateData[0]["variablestore"]); err != nil { return diag.FromErr(fmt.Errorf("[ERROR] Error reading variablestore: %s", err)) @@ -804,10 +879,31 @@ func dataSourceWorkspaceResponseCatalogRefToMap(catalogRefItem schematicsv1.Cata if catalogRefItem.OfferingVersion != nil { catalogRefMap["offering_version"] = catalogRefItem.OfferingVersion } - + if catalogRefItem.ServiceExtensions != nil { + serviceExtensionsList := []map[string]interface{}{} + for _, serviceExtensionsItem := range catalogRefItem.ServiceExtensions { + serviceExtensionsList = append(serviceExtensionsList, dataSourceWorkspaceResponseCatalogRefServiceExtensionsToMap(serviceExtensionsItem)) + } + catalogRefMap["service_extensions"] = serviceExtensionsList + } return catalogRefMap } +func dataSourceWorkspaceResponseCatalogRefServiceExtensionsToMap(serviceExtensionsItem schematicsv1.ServiceExtensions) (serviceExtensionMap map[string]interface{}) { + serviceExtensionMap = map[string]interface{}{} + + if serviceExtensionsItem.Name != nil { + serviceExtensionMap["name"] = *serviceExtensionsItem.Name + } + if serviceExtensionsItem.Type != nil { + serviceExtensionMap["type"] = serviceExtensionsItem.Type + } + if serviceExtensionsItem.Value != nil { + serviceExtensionMap["value"] = *serviceExtensionsItem.Value + } + return serviceExtensionMap +} + func dataSourceWorkspaceResponseFlattenRuntimeData(result []schematicsv1.TemplateRunTimeDataResponse) (runtimeData []map[string]interface{}) { for _, runtimeDataItem := range result { runtimeData = append(runtimeData, dataSourceWorkspaceResponseRuntimeDataToMap(runtimeDataItem)) @@ -920,7 +1016,11 @@ func dataSourceWorkspaceResponseTemplateDataToMap(templateDataItem schematicsv1. templateDataMap["values"] = templateDataItem.Values } if templateDataItem.ValuesMetadata != nil { - templateDataMap["values_metadata"] = templateDataItem.ValuesMetadata + valuesMetadataList := []interface{}{} + for _, valuesMetadataItem := range templateDataItem.ValuesMetadata { + valuesMetadataList = append(valuesMetadataList, valuesMetadataItem) + } + templateDataMap["values_metadata"] = valuesMetadataList } if templateDataItem.ValuesURL != nil { templateDataMap["values_url"] = templateDataItem.ValuesURL @@ -935,6 +1035,111 @@ func dataSourceWorkspaceResponseTemplateDataToMap(templateDataItem schematicsv1. return templateDataMap } + +func dataSourceWorkspaceResponseFlattenValuesMetadata(result interface{}) (valuesMetadata []map[string]interface{}) { + if result != nil { + for _, res := range result.([]interface{}) { + valuesMetadataMap := dataSourceWorkspaceResponseValuesMetadataToMap(res.(map[string]interface{})) + valuesMetadata = append(valuesMetadata, valuesMetadataMap) + } + } + return valuesMetadata +} + +func dataSourceWorkspaceResponseValuesMetadataToMap(valuesMetadataItem map[string]interface{}) map[string]interface{} { + valuesMetadataMap := map[string]interface{}{} + + if valuesMetadataItem["name"] != nil { + valuesMetadataMap["name"] = valuesMetadataItem["name"].(string) + } + if valuesMetadataItem["type"] != nil { + valuesMetadataMap["type"] = valuesMetadataItem["type"].(string) + } + + if valuesMetadataItem["aliases"] != nil { + valuesMetadataMap["aliases"] = valuesMetadataItem["aliases"] + } + + if valuesMetadataItem["description"] != nil { + valuesMetadataMap["description"] = valuesMetadataItem["description"].(string) + } + + if valuesMetadataItem["cloud_data_type"] != nil { + valuesMetadataMap["cloud_data_type"] = valuesMetadataItem["cloud_data_type"].(string) + } + + if valuesMetadataItem["default"] != nil { + valuesMetadataMap["default"] = valuesMetadataItem["default"].(string) + } + + if valuesMetadataItem["link_status"] != nil { + valuesMetadataMap["link_status"] = valuesMetadataItem["link_status"].(string) + } + + if valuesMetadataItem["secure"] != nil { + valuesMetadataMap["secure"] = valuesMetadataItem["secure"] + } + + if valuesMetadataItem["immutable"] != nil { + valuesMetadataMap["immutable"] = valuesMetadataItem["immutable"] + } + + if valuesMetadataItem["hidden"] != nil { + valuesMetadataMap["hidden"] = valuesMetadataItem["hidden"] + } + + if valuesMetadataItem["required"] != nil { + valuesMetadataMap["required"] = valuesMetadataItem["required"] + } + + if valuesMetadataItem["options"] != nil { + valuesMetadataMap["options"] = valuesMetadataItem["options"] + } + + if valuesMetadataItem["min_value"] != nil { + valuesMetadataMap["min_value"] = valuesMetadataItem["min_value"] + } + + if valuesMetadataItem["max_value"] != nil { + valuesMetadataMap["max_value"] = valuesMetadataItem["max_value"] + } + + if valuesMetadataItem["min_length"] != nil { + valuesMetadataMap["min_length"] = valuesMetadataItem["min_length"] + } + + if valuesMetadataItem["max_length"] != nil { + valuesMetadataMap["max_length"] = valuesMetadataItem["max_length"] + } + + if valuesMetadataItem["matches"] != nil { + valuesMetadataMap["matches"] = valuesMetadataItem["matches"].(string) + } + + if valuesMetadataItem["position"] != nil { + valuesMetadataMap["position"] = valuesMetadataItem["position"] + } + + if valuesMetadataItem["group_by"] != nil { + valuesMetadataMap["group_by"] = valuesMetadataItem["group_by"].(string) + } + + if valuesMetadataItem["source"] != nil { + valuesMetadataMap["source"] = valuesMetadataItem["source"].(string) + } + + if valuesMetadataItem["metadata"] != nil { + metadataList := []map[string]interface{}{} + + valuesMetadataMap["metadata"] = append(metadataList, valuesMetadataItem["metadata"].(map[string]interface{})) + + } + if valuesMetadataItem["value"] != nil { + valuesMetadataMap["value"] = valuesMetadataItem["value"].(string) + } + + return valuesMetadataMap +} func dataSourceIbmSchematicsWorkspaceVariableMetadataToMap(model *schematicsv1.VariableMetadata) map[string]interface{} { modelMap := make(map[string]interface{}) if model.Type != nil { diff --git a/website/docs/d/schematics_workspace.html.markdown b/website/docs/d/schematics_workspace.html.markdown index dfadec7f5c..2f21acc368 100644 --- a/website/docs/d/schematics_workspace.html.markdown +++ b/website/docs/d/schematics_workspace.html.markdown @@ -45,6 +45,11 @@ Nested scheme for **catalog_ref**: * `item_url` - (String) The URL to the software template in the IBM Cloud catalog. * `launch_url` - (String) The URL to the dashboard to access your software. * `offering_version` - (String) The version of the software template that you chose to install from the IBM Cloud catalog. + * `service_extensions` - (List) List of service data +Nested scheme for **service_extensions**: + * `name` - (String) Name of the Service Data. + * `value` - (String) Value of the Service Data. + * `type` - (String) Type of the value string, int, bool. * `created_at` - (String) The timestamp when the workspace was created. @@ -123,8 +128,19 @@ Nested scheme for **env_values**: * `required` - (Boolean) If the variable required?. * `secure` - (Boolean) Is the variable secure or sensitive ?. * `source` - (String) The source of this meta-data. + * `value` - (String) The value of the variable. Applicable for the integer type. * `type` - (String) Type of the variable. - * Constraints: Allowable values are: `boolean`, `string`, `integer`, `date`, `array`, `list`, `map`, `complex`, `link`. + * Constraints: Allowable values are: `boolean`, `string`, `integer`, `date`, `array`, `list`, `map`, `complex`, `link`. + * `metadata` - (List) List of service data + Nested scheme for **metadata**: + * `default_value` - (String) Default value for the variable only if the override value is not specified. + * `description` - (String) The description of the meta data. + * `hidden` - (Boolean) If **true**, the variable is not displayed on UI or Command line. + * `options` - (List) The list of possible values for this variable. If type is **integer** or **date**, then the array of string is converted to array of integers or date during the runtime. + * `required` - (Boolean) If the variable required?. + * `secure` - (Boolean) Is the variable secure or sensitive ?. + * `type` - (String) Type of the variable. + * Constraints: Allowable values are: `boolean`, `string`, `integer`, `date`, `array`, `list`, `map`, `complex`, `link`. * `template_inputs` - (List) Information about the input variables that your template uses. Nested scheme for **variablestore**: From 1c0d88840939798a246dfc886a45043d3a1b0a9f Mon Sep 17 00:00:00 2001 From: hkantare Date: Wed, 29 Nov 2023 14:56:09 +0530 Subject: [PATCH 55/58] update CHANGELOG --- CHANGELOG.md | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90e72694bf..be65d39357 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,47 @@ +# 1.60.0 (Nov 29, 2023) +Features +* Support for Projects + - **Datasources** + - ibm_project + - ibm_project_config + - ibm_project_environment + - **Resources** + - ibm_project + - ibm_project_config + - ibm_project_environment + +* Support for Code Engine + - **Datasources** + - ibm_code_engine_domain_mapping + - **Resources** + - ibm_code_engine_domain_mapping + +* Support for Power Instance + - **Resources** + - ibm_pi_workspace + +Enhancements +* support offline restore for MongoDB EE PITR ([4601](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4601)) +* bump ContinuousDelivery Go SDK version ([4918](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4918)) +* Added nest conditions to rule.conditions IAM Policies ([4896](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4896)) +* Updates to SCC tool ([4920](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4920)) +* Add entitlement option to Satellite cluster/workerpool create ([4894](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4894)) +* VPC ID Filter is added when Subnet Name is specified ([4892](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4892)) +* add optional account id to kms config ([4944](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4944)) + +BugFixes +* resolved nil pointer issue on vpn gateway resource ([4903](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4903)) +* Private/direct COS endpoint settings conflicts with IBM Cloud docs, VPE options, and COS config endpoint ([4919](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4919)) +* add missing required argument name to the doc ([4909](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4909)) +* Fix wrong sintax in doc for Ingress Secret Opaque ([4917](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4917)) +* schematics agent doc fixes ([4933](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4933)) +* Fix some job parameters for code engine ([4923](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4923)) +* CIS - remove deafult value for min_tls_version ([4947](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4947)) +* Update Power Workspace/s and Datacenter/s DataSource Documentation ([4904](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4904)) +* validation on encryption with catalog images fixed ([4940](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4940)) +* issue-13603-fix attachment terraform ([4952](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4952)) +* Fixed catalog service extensions and values metadata params of workspace ds ([4957](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4957)) + # 1.60.0-beta1 (Nov 23, 2023) Features * Support for Projects @@ -60,6 +104,11 @@ BugFixes * Private/direct COS endpoint settings conflicts with IBM Cloud docs, VPE options, and COS config endpoint ([4919](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4919)) * add missing required argument name to the doc ([4909](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/4909)) +# 1.59.1 (Nov 20, 2023) + +Bug Fixes +* ibm_schematics_workspace: provider crash during terraform plan ([4907](https://github.com/IBM-Cloud/terraform-provider-ibm/issues/4907)) + # 1.59.0 (Oct 30, 2023) From 527e569c20cd78b1b78b34c42f192e4ed854aa1e Mon Sep 17 00:00:00 2001 From: hkantare Date: Wed, 29 Nov 2023 14:56:50 +0530 Subject: [PATCH 56/58] Bump up version to 1.60.0 --- version/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/version.go b/version/version.go index b5a8b4c2f3..19638a80ae 100644 --- a/version/version.go +++ b/version/version.go @@ -5,7 +5,7 @@ import ( ) // Version is the current provider main version -const Version = "1.60.0-beta1" +const Version = "1.60.0" // GitCommit is the git commit that was compiled. This will be filled in by the compiler. var GitCommit string From dc6d1a96a0b1cbf4bf8bd7a280e73838dc273369 Mon Sep 17 00:00:00 2001 From: alex hemard Date: Wed, 29 Nov 2023 09:36:30 -0600 Subject: [PATCH 57/58] feat(Cloud Databases): Database user password complexity validation (#4931) * feat(Cloud Databases): Database user password complexity validation * update tests to conform to new complexity rules * fix password validation edgecases * add test case for password beginning with special char * fix regexp * refactor of db users * delete and create ops manager users when updating * validate adminpassword, update docs --- .secrets.baseline | 118 ++-- ...rce_ibm_code_engine_domain_mapping_test.go | 2 +- ibm/service/database/resource_ibm_database.go | 505 ++++++++++++------ .../resource_ibm_database_cassandra_test.go | 40 +- .../resource_ibm_database_edb_test.go | 12 +- ...bm_database_elasticsearch_platinum_test.go | 42 +- ...esource_ibm_database_elasticsearch_test.go | 42 +- .../resource_ibm_database_etcd_test.go | 12 +- ...ce_ibm_database_mongodb_enterprise_test.go | 16 +- ...urce_ibm_database_mongodb_sharding_test.go | 10 +- .../resource_ibm_database_mongodb_test.go | 12 +- .../resource_ibm_database_mysql_test.go | 10 +- .../resource_ibm_database_postgresql_test.go | 26 +- .../resource_ibm_database_rabbitmq_test.go | 12 +- .../resource_ibm_database_redis_test.go | 8 +- .../database/resource_ibm_database_test.go | 107 ++++ website/docs/r/database.html.markdown | 36 +- 17 files changed, 678 insertions(+), 332 deletions(-) create mode 100644 ibm/service/database/resource_ibm_database_test.go diff --git a/.secrets.baseline b/.secrets.baseline index 934bc75b57..f7d1438953 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -3,7 +3,7 @@ "files": "go.mod|go.sum|.*.map|^.secrets.baseline$", "lines": null }, - "generated_at": "2023-11-22T09:50:41Z", + "generated_at": "2023-11-29T02:05:13Z", "plugins_used": [ { "name": "AWSKeyDetector" @@ -760,7 +760,7 @@ "hashed_secret": "731438016c5ab94431f61820f35e3ae5f8ad6004", "is_secret": false, "is_verified": false, - "line_number": 416, + "line_number": 417, "type": "Secret Keyword", "verified_result": null }, @@ -768,7 +768,7 @@ "hashed_secret": "12da2e35d6b50c902c014f1ab9e3032650368df7", "is_secret": false, "is_verified": false, - "line_number": 422, + "line_number": 423, "type": "Secret Keyword", "verified_result": null }, @@ -776,7 +776,7 @@ "hashed_secret": "813274ccae5b6b509379ab56982d862f7b5969b6", "is_secret": false, "is_verified": false, - "line_number": 1127, + "line_number": 1134, "type": "Base64 High Entropy String", "verified_result": null } @@ -864,7 +864,7 @@ "hashed_secret": "c8b6f5ef11b9223ac35a5663975a466ebe7ebba9", "is_secret": false, "is_verified": false, - "line_number": 1806, + "line_number": 1807, "type": "Secret Keyword", "verified_result": null }, @@ -872,7 +872,7 @@ "hashed_secret": "8abf4899c01104241510ba87685ad4de76b0c437", "is_secret": false, "is_verified": false, - "line_number": 1812, + "line_number": 1813, "type": "Secret Keyword", "verified_result": null } @@ -2056,7 +2056,7 @@ "hashed_secret": "deab23f996709b4e3d14e5499d1cc2de677bfaa8", "is_secret": false, "is_verified": false, - "line_number": 1357, + "line_number": 1334, "type": "Secret Keyword", "verified_result": null }, @@ -2064,7 +2064,7 @@ "hashed_secret": "20a25bac21219ffff1904bde871ded4027eca2f8", "is_secret": false, "is_verified": false, - "line_number": 1944, + "line_number": 1923, "type": "Secret Keyword", "verified_result": null }, @@ -2072,7 +2072,7 @@ "hashed_secret": "b732fb611fd46a38e8667f9972e0cde777fbe37f", "is_secret": false, "is_verified": false, - "line_number": 1963, + "line_number": 1942, "type": "Secret Keyword", "verified_result": null }, @@ -2080,14 +2080,14 @@ "hashed_secret": "1f5e25be9b575e9f5d39c82dfd1d9f4d73f1975c", "is_secret": false, "is_verified": false, - "line_number": 2203, + "line_number": 2155, "type": "Secret Keyword", "verified_result": null } ], "ibm/service/database/resource_ibm_database_cassandra_test.go": [ { - "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", + "hashed_secret": "2317aa72dafa0a07f05af47baa2e388f95dcf6f3", "is_secret": false, "is_verified": false, "line_number": 731, @@ -2097,7 +2097,7 @@ ], "ibm/service/database/resource_ibm_database_edb_test.go": [ { - "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", + "hashed_secret": "2317aa72dafa0a07f05af47baa2e388f95dcf6f3", "is_secret": false, "is_verified": false, "line_number": 205, @@ -2107,7 +2107,7 @@ ], "ibm/service/database/resource_ibm_database_elasticsearch_platinum_test.go": [ { - "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", + "hashed_secret": "2317aa72dafa0a07f05af47baa2e388f95dcf6f3", "is_secret": false, "is_verified": false, "line_number": 823, @@ -2117,7 +2117,7 @@ ], "ibm/service/database/resource_ibm_database_elasticsearch_test.go": [ { - "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", + "hashed_secret": "2317aa72dafa0a07f05af47baa2e388f95dcf6f3", "is_secret": false, "is_verified": false, "line_number": 778, @@ -2127,7 +2127,7 @@ ], "ibm/service/database/resource_ibm_database_etcd_test.go": [ { - "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", + "hashed_secret": "2317aa72dafa0a07f05af47baa2e388f95dcf6f3", "is_secret": false, "is_verified": false, "line_number": 213, @@ -2137,7 +2137,7 @@ ], "ibm/service/database/resource_ibm_database_mongodb_enterprise_test.go": [ { - "hashed_secret": "68ab9ef0953865fef0558010a9f7afcef110d5b8", + "hashed_secret": "8cbbbfad0206e5953901f679b0d26d583c4f5ffe", "is_secret": false, "is_verified": false, "line_number": 271, @@ -2145,7 +2145,7 @@ "verified_result": null }, { - "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", + "hashed_secret": "2317aa72dafa0a07f05af47baa2e388f95dcf6f3", "is_secret": false, "is_verified": false, "line_number": 336, @@ -2163,7 +2163,7 @@ "verified_result": null }, { - "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", + "hashed_secret": "2317aa72dafa0a07f05af47baa2e388f95dcf6f3", "is_secret": false, "is_verified": false, "line_number": 189, @@ -2173,7 +2173,7 @@ ], "ibm/service/database/resource_ibm_database_mongodb_test.go": [ { - "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", + "hashed_secret": "2317aa72dafa0a07f05af47baa2e388f95dcf6f3", "is_secret": false, "is_verified": false, "line_number": 214, @@ -2183,7 +2183,7 @@ ], "ibm/service/database/resource_ibm_database_mysql_test.go": [ { - "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", + "hashed_secret": "2317aa72dafa0a07f05af47baa2e388f95dcf6f3", "is_secret": false, "is_verified": false, "line_number": 150, @@ -2193,7 +2193,7 @@ ], "ibm/service/database/resource_ibm_database_postgresql_test.go": [ { - "hashed_secret": "e407cbe1c64cadb886be6f42907e2dd1c06ca080", + "hashed_secret": "728e83f156932be9b1dc48a5c3f7a3bfbeeb08ce", "is_secret": false, "is_verified": false, "line_number": 490, @@ -2201,7 +2201,7 @@ "verified_result": null }, { - "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", + "hashed_secret": "2317aa72dafa0a07f05af47baa2e388f95dcf6f3", "is_secret": false, "is_verified": false, "line_number": 658, @@ -2211,7 +2211,7 @@ ], "ibm/service/database/resource_ibm_database_rabbitmq_test.go": [ { - "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", + "hashed_secret": "2317aa72dafa0a07f05af47baa2e388f95dcf6f3", "is_secret": false, "is_verified": false, "line_number": 223, @@ -2221,7 +2221,7 @@ ], "ibm/service/database/resource_ibm_database_redis_test.go": [ { - "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", + "hashed_secret": "2317aa72dafa0a07f05af47baa2e388f95dcf6f3", "is_secret": false, "is_verified": false, "line_number": 272, @@ -2229,6 +2229,64 @@ "verified_result": null } ], + "ibm/service/database/resource_ibm_database_test.go": [ + { + "hashed_secret": "c237978e1983e0caf1c3a84f1c2e72a7fb2981f2", + "is_secret": false, + "is_verified": false, + "line_number": 19, + "type": "Secret Keyword", + "verified_result": null + }, + { + "hashed_secret": "d67007844d8f7fbc45ea3b27c4bea0bffafb53a0", + "is_secret": false, + "is_verified": false, + "line_number": 27, + "type": "Secret Keyword", + "verified_result": null + }, + { + "hashed_secret": "279fb854eb9fa001b4629518a45c921cfad6d697", + "is_secret": false, + "is_verified": false, + "line_number": 35, + "type": "Secret Keyword", + "verified_result": null + }, + { + "hashed_secret": "dad6fac3e5b6be7bb6f274970b4c50739a7e26ee", + "is_secret": false, + "is_verified": false, + "line_number": 59, + "type": "Secret Keyword", + "verified_result": null + }, + { + "hashed_secret": "8cbbbfad0206e5953901f679b0d26d583c4f5ffe", + "is_secret": false, + "is_verified": false, + "line_number": 67, + "type": "Secret Keyword", + "verified_result": null + }, + { + "hashed_secret": "f5ecb30890399c7b1d1781583478aaa9d0b0c89d", + "is_secret": false, + "is_verified": false, + "line_number": 91, + "type": "Secret Keyword", + "verified_result": null + }, + { + "hashed_secret": "6da9eab371358a331c59a76d80a0ffcd589fe3c9", + "is_secret": false, + "is_verified": false, + "line_number": 101, + "type": "Secret Keyword", + "verified_result": null + } + ], "ibm/service/directlink/resource_ibm_dl_provider_gateway_test.go": [ { "hashed_secret": "a184c8ba0974f2e1da4ca1d71f54e1cf40604335", @@ -2758,7 +2816,7 @@ "hashed_secret": "b732fb611fd46a38e8667f9972e0cde777fbe37f", "is_secret": false, "is_verified": false, - "line_number": 1315, + "line_number": 1326, "type": "Secret Keyword", "verified_result": null } @@ -3774,7 +3832,7 @@ "hashed_secret": "f855f5027fd8fdb2df3f6a6f1cf858fffcbedb0c", "is_secret": false, "is_verified": false, - "line_number": 96615, + "line_number": 96613, "type": "Secret Keyword", "verified_result": null }, @@ -3782,7 +3840,7 @@ "hashed_secret": "5fb0fa884132a8724a8d7cba55853737e442adbd", "is_secret": false, "is_verified": false, - "line_number": 119404, + "line_number": 119402, "type": "Secret Keyword", "verified_result": null }, @@ -3790,7 +3848,7 @@ "hashed_secret": "1e5c2f367f02e47a8c160cda1cd9d91decbac441", "is_secret": false, "is_verified": false, - "line_number": 151612, + "line_number": 151610, "type": "Secret Keyword", "verified_result": null } @@ -4267,7 +4325,7 @@ ], "website/docs/r/database.html.markdown": [ { - "hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58", + "hashed_secret": "2317aa72dafa0a07f05af47baa2e388f95dcf6f3", "is_secret": false, "is_verified": false, "line_number": 494, @@ -4275,7 +4333,7 @@ "verified_result": null }, { - "hashed_secret": "e407cbe1c64cadb886be6f42907e2dd1c06ca080", + "hashed_secret": "ddf75a48487b387b1dc328ac0a942377b377c556", "is_secret": false, "is_verified": false, "line_number": 559, diff --git a/ibm/service/codeengine/resource_ibm_code_engine_domain_mapping_test.go b/ibm/service/codeengine/resource_ibm_code_engine_domain_mapping_test.go index d6178fb825..21ae9dfa77 100644 --- a/ibm/service/codeengine/resource_ibm_code_engine_domain_mapping_test.go +++ b/ibm/service/codeengine/resource_ibm_code_engine_domain_mapping_test.go @@ -214,7 +214,7 @@ func testAccCheckIbmCodeEngineDomainMappingDestroy(s *terraform.State) error { func decodeBase64EnvVar(base64Text string, envVar string) string { decodedText, err := base64.StdEncoding.DecodeString(base64Text) if err != nil { - fmt.Printf("Error decoding environment variable %s: %s", envVar, err) + // fmt.Errorf("Error decoding environment variable %s: %s", envVar, err) return "" } return string(decodedText) diff --git a/ibm/service/database/resource_ibm_database.go b/ibm/service/database/resource_ibm_database.go index ee2a9d09fa..aa2808dcbe 100644 --- a/ibm/service/database/resource_ibm_database.go +++ b/ibm/service/database/resource_ibm_database.go @@ -6,6 +6,7 @@ package database import ( "context" "encoding/json" + "errors" "fmt" "log" "net/url" @@ -50,8 +51,24 @@ const ( databaseTaskFailStatus = "failed" ) +const ( + databaseUserSpecialChars = "_-" + opsManagerUserSpecialChars = "~!@#$%^&*()=+[]{}|;:,.<>/?_-" +) + +const ( + redisRBACRoleRegexPattern = `([+-][a-z]+\s?)+` +) + +type DatabaseUser struct { + Username string + Password string + Role string + Type string +} + type userChange struct { - Old, New map[string]interface{} + Old, New *DatabaseUser } func retry(f func() error) (err error) { @@ -84,7 +101,8 @@ func ResourceIBMDatabaseInstance() *schema.Resource { CustomizeDiff: customdiff.All( resourceIBMDatabaseInstanceDiff, - checkV5Groups), + validateGroupsDiff, + validateUsersDiff), Importer: &schema.ResourceImporter{}, @@ -154,11 +172,14 @@ func ResourceIBMDatabaseInstance() *schema.Resource { Computed: true, }, "adminpassword": { - Description: "The admin user password for the instance", - Type: schema.TypeString, - Optional: true, - ValidateFunc: validation.StringLenBetween(10, 32), - Sensitive: true, + Description: "The admin user password for the instance", + Type: schema.TypeString, + Optional: true, + ValidateFunc: validation.All( + validation.StringLenBetween(15, 32), + DatabaseUserPasswordValidator("database"), + ), + Sensitive: true, // DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool { // return true // }, @@ -264,7 +285,7 @@ func ResourceIBMDatabaseInstance() *schema.Resource { Type: schema.TypeString, Required: true, Sensitive: true, - ValidateFunc: validation.StringLenBetween(10, 32), + ValidateFunc: validation.StringLenBetween(15, 32), }, "type": { Description: "User type", @@ -975,50 +996,6 @@ func getGroups(instanceID string, meta interface{}) (groups []clouddatabasesv5.G return groupsResponse.Groups, nil } -// V5 Groups -func checkGroupScaling(groupId string, resourceName string, value int, resource *GroupResource, nodeCount int) error { - if nodeCount == 0 { - nodeCount = 1 - } - if resource.StepSize == 0 { - return fmt.Errorf("%s group must have members scaled > 0 before scaling %s", groupId, resourceName) - } - if value < resource.Minimum/nodeCount || value > resource.Maximum/nodeCount || value%(resource.StepSize/nodeCount) != 0 { - if !(value == 0 && resource.IsOptional) { - return fmt.Errorf("%s group %s must be >= %d and <= %d in increments of %d", groupId, resourceName, resource.Minimum/nodeCount, resource.Maximum/nodeCount, resource.StepSize/nodeCount) - } - } - if value != resource.Allocation/nodeCount && !resource.IsAdjustable { - return fmt.Errorf("%s can not change %s value after create", groupId, resourceName) - } - if value < resource.Allocation/nodeCount && !resource.CanScaleDown { - return fmt.Errorf("can not scale %s group %s below %d to %d", groupId, resourceName, resource.Allocation/nodeCount, value) - } - return nil -} - -func checkGroupValue(name string, limits GroupResource, divider int, diff *schema.ResourceDiff) error { - if diff.HasChange(name) { - oldSetting, newSetting := diff.GetChange(name) - old := oldSetting.(int) - new := newSetting.(int) - - if new < limits.Minimum/divider || new > limits.Maximum/divider || new%(limits.StepSize/divider) != 0 { - if !(new == 0 && limits.IsOptional) { - return fmt.Errorf("%s must be >= %d and <= %d in increments of %d", name, limits.Minimum/divider, limits.Maximum/divider/divider, limits.StepSize/divider) - } - } - if old != new && !limits.IsAdjustable { - return fmt.Errorf("%s can not change value after create", name) - } - if new < old && !limits.CanScaleDown { - return fmt.Errorf("%s can not scale down from %d to %d", name, old, new) - } - return nil - } - return nil -} - type CountLimit struct { Units string AllocationCount int @@ -1451,9 +1428,16 @@ func resourceIBMDatabaseInstanceCreate(context context.Context, d *schema.Resour return diag.FromErr(fmt.Errorf("[ERROR] Error getting database client settings: %s", err)) } - for _, user := range userList.(*schema.Set).List() { - userEl := user.(map[string]interface{}) - err := userUpdateCreate(userEl, instanceID, meta, d) + users := expandUsers(userList.(*schema.Set).List()) + for _, user := range users { + // Note: Some db users exist after provisioning (i.e. admin, repl) + // so we must attempt both methods + err := user.Update(instanceID, d, meta) + + if err != nil { + err = user.Create(instanceID, d, meta) + } + if err != nil { return diag.FromErr(err) } @@ -1500,11 +1484,6 @@ func resourceIBMDatabaseInstanceCreate(context context.Context, d *schema.Resour return diag.FromErr(fmt.Errorf("[ERROR] Error Logical Replication can only be set for databases-for-postgresql instances")) } - cloudDatabasesClient, err := meta.(conns.ClientSession).CloudDatabasesV5() - if err != nil { - return diag.FromErr(fmt.Errorf("[ERROR] Error getting database client settings: %s", err)) - } - _, logicalReplicationList := d.GetChange("logical_replication_slot") add := logicalReplicationList.(*schema.Set).List() @@ -2000,65 +1979,38 @@ func resourceIBMDatabaseInstanceUpdate(context context.Context, d *schema.Resour if d.HasChange("users") { oldUsers, newUsers := d.GetChange("users") - userChanges := make(map[string]*userChange) - userKey := func(raw map[string]interface{}) string { - if raw["role"].(string) != "" { - return fmt.Sprintf("%s-%s-%s", raw["type"].(string), raw["role"].(string), raw["name"].(string)) - } else { - return fmt.Sprintf("%s-%s", raw["type"].(string), raw["name"].(string)) - } - } - - for _, raw := range oldUsers.(*schema.Set).List() { - user := raw.(map[string]interface{}) - k := userKey(user) - userChanges[k] = &userChange{Old: user} - } - - for _, raw := range newUsers.(*schema.Set).List() { - user := raw.(map[string]interface{}) - k := userKey(user) - if _, ok := userChanges[k]; !ok { - userChanges[k] = &userChange{} - } - userChanges[k].New = user - } + userChanges := expandUserChanges(oldUsers.(*schema.Set).List(), newUsers.(*schema.Set).List()) for _, change := range userChanges { - // Delete Old User - if change.Old != nil && change.New == nil { - deleteDatabaseUserOptions := &clouddatabasesv5.DeleteDatabaseUserOptions{ - ID: &instanceID, - UserType: core.StringPtr(change.Old["type"].(string)), - Username: core.StringPtr(change.Old["name"].(string)), - } - - deleteDatabaseUserResponse, response, err := cloudDatabasesClient.DeleteDatabaseUser(deleteDatabaseUserOptions) + // Delete User + if change.isDelete() { + // Delete Old User + err = change.Old.Delete(instanceID, d, meta) if err != nil { - return diag.FromErr(fmt.Errorf( - "[ERROR] DeleteDatabaseUser (%s) failed %s\n%s", *deleteDatabaseUserOptions.Username, err, response)) - + return diag.FromErr(err) } + } - taskID := *deleteDatabaseUserResponse.Task.ID - _, err = waitForDatabaseTaskComplete(taskID, d, meta, d.Timeout(schema.TimeoutUpdate)) + if change.isCreate() || change.isUpdate() { - if err != nil { - return diag.FromErr(fmt.Errorf( - "[ERROR] Error waiting for database (%s) user (%s) delete task to complete: %s", icdId, *deleteDatabaseUserOptions.Username, err)) - } + // Note: User Update is not supported for ops_manager user type + // Delete (ignoring errors), then re-create + if change.isUpdate() && !change.New.isUpdatable() { + change.Old.Delete(instanceID, d, meta) - continue - } + err = change.New.Create(instanceID, d, meta) + } else { + // Note: Some db users exist after provisioning (i.e. admin, repl) + // so we must attempt both methods + err = change.New.Update(instanceID, d, meta) - if change.New != nil { - // No change - if change.Old != nil && change.Old["password"].(string) == change.New["password"].(string) && change.Old["name"].(string) == change.New["name"].(string) { - continue + // Create User if Update failed + if err != nil { + err = change.New.Create(instanceID, d, meta) + } } - err := userUpdateCreate(change.New, instanceID, meta, d) if err != nil { return diag.FromErr(err) } @@ -2124,24 +2076,24 @@ func resourceIBMDatabaseInstanceUpdate(context context.Context, d *schema.Resour if len(remove) > 0 { for _, entry := range remove { newEntry := entry.(map[string]interface{}) - deleteDatabaseUserOptions := &clouddatabasesv5.DeleteLogicalReplicationSlotOptions{ + deleteLogicalReplicationSlotOptions := &clouddatabasesv5.DeleteLogicalReplicationSlotOptions{ ID: &instanceID, Name: core.StringPtr(newEntry["name"].(string)), } - deleteDatabaseUserResponse, response, err := cloudDatabasesClient.DeleteLogicalReplicationSlot(deleteDatabaseUserOptions) + deleteLogicalReplicationSlotResponse, response, err := cloudDatabasesClient.DeleteLogicalReplicationSlot(deleteLogicalReplicationSlotOptions) if err != nil { return diag.FromErr(fmt.Errorf( - "[ERROR] DeleteDatabaseUser (%s) failed %s\n%s", *deleteDatabaseUserOptions.Name, err, response)) + "[ERROR] DeleteLogicalReplicationSlot (%s) failed %s\n%s", *deleteLogicalReplicationSlotOptions.Name, err, response)) } - taskID := *deleteDatabaseUserResponse.Task.ID + taskID := *deleteLogicalReplicationSlotResponse.Task.ID _, err = waitForDatabaseTaskComplete(taskID, d, meta, d.Timeout(schema.TimeoutUpdate)) if err != nil { return diag.FromErr(fmt.Errorf( - "[ERROR] Error waiting for database (%s) logical replication slot (%s) delete task to complete: %s", icdId, *deleteDatabaseUserOptions.Name, err)) + "[ERROR] Error waiting for database (%s) logical replication slot (%s) delete task to complete: %s", icdId, *deleteLogicalReplicationSlotOptions.Name, err)) } } } @@ -2401,7 +2353,10 @@ func waitForDatabaseTaskComplete(taskId string, d *schema.ResourceData, meta int delayDuration := 5 * time.Second timeout := time.After(t) - delay := time.Tick(delayDuration) + ticker := time.NewTicker(delayDuration) + delay := ticker.C + defer ticker.Stop() + getTaskOptions := &clouddatabasesv5.GetTaskOptions{ ID: &taskId, } @@ -2748,7 +2703,28 @@ func expandGroups(_groups []interface{}) []*Group { return groups } -func checkV5Groups(_ context.Context, diff *schema.ResourceDiff, meta interface{}) (err error) { +func validateGroupScaling(groupId string, resourceName string, value int, resource *GroupResource, nodeCount int) error { + if nodeCount == 0 { + nodeCount = 1 + } + if resource.StepSize == 0 { + return fmt.Errorf("%s group must have members scaled > 0 before scaling %s", groupId, resourceName) + } + if value < resource.Minimum/nodeCount || value > resource.Maximum/nodeCount || value%(resource.StepSize/nodeCount) != 0 { + if !(value == 0 && resource.IsOptional) { + return fmt.Errorf("%s group %s must be >= %d and <= %d in increments of %d", groupId, resourceName, resource.Minimum/nodeCount, resource.Maximum/nodeCount, resource.StepSize/nodeCount) + } + } + if value != resource.Allocation/nodeCount && !resource.IsAdjustable { + return fmt.Errorf("%s can not change %s value after create", groupId, resourceName) + } + if value < resource.Allocation/nodeCount && !resource.CanScaleDown { + return fmt.Errorf("can not scale %s group %s below %d to %d", groupId, resourceName, resource.Allocation/nodeCount, value) + } + return nil +} + +func validateGroupsDiff(_ context.Context, diff *schema.ResourceDiff, meta interface{}) (err error) { instanceID := diff.Id() service := diff.Get("service").(string) plan := diff.Get("plan").(string) @@ -2772,7 +2748,7 @@ func checkV5Groups(_ context.Context, diff *schema.ResourceDiff, meta interface{ tfGroups := expandGroups(group.(*schema.Set).List()) - // Check group_ids are unique + // validate group_ids are unique groupIds = make([]string, 0, len(tfGroups)) for _, g := range tfGroups { groupIds = append(groupIds, g.ID) @@ -2804,28 +2780,28 @@ func checkV5Groups(_ context.Context, diff *schema.ResourceDiff, meta interface{ nodeCount := groupDefaults.Members.Allocation if group.Members != nil { - err = checkGroupScaling(groupId, "members", group.Members.Allocation, groupDefaults.Members, 1) + err = validateGroupScaling(groupId, "members", group.Members.Allocation, groupDefaults.Members, 1) if err != nil { return err } } if group.Memory != nil { - err = checkGroupScaling(groupId, "memory", group.Memory.Allocation, groupDefaults.Memory, nodeCount) + err = validateGroupScaling(groupId, "memory", group.Memory.Allocation, groupDefaults.Memory, nodeCount) if err != nil { return err } } if group.Disk != nil { - err = checkGroupScaling(groupId, "disk", group.Disk.Allocation, groupDefaults.Disk, nodeCount) + err = validateGroupScaling(groupId, "disk", group.Disk.Allocation, groupDefaults.Disk, nodeCount) if err != nil { return err } } if group.CPU != nil { - err = checkGroupScaling(groupId, "cpu", group.CPU.Allocation, groupDefaults.CPU, nodeCount) + err = validateGroupScaling(groupId, "cpu", group.CPU.Allocation, groupDefaults.CPU, nodeCount) if err != nil { return err } @@ -2836,73 +2812,278 @@ func checkV5Groups(_ context.Context, diff *schema.ResourceDiff, meta interface{ return nil } -// Updates and creates users. Because we cannot get users, we first attempt to update the users, then create them -func userUpdateCreate(userData map[string]interface{}, instanceID string, meta interface{}, d *schema.ResourceData) (err error) { - cloudDatabasesClient, _ := meta.(conns.ClientSession).CloudDatabasesV5() +func validateUsersDiff(_ context.Context, diff *schema.ResourceDiff, meta interface{}) (err error) { + oldUsers, newUsers := diff.GetChange("users") + userChanges := expandUserChanges(oldUsers.(*schema.Set).List(), newUsers.(*schema.Set).List()) + + for _, change := range userChanges { + if change.isDelete() { + continue + } + + if change.isCreate() || change.isUpdate() { + err = change.New.Validate() + if err != nil { + return err + } + } + } + + return nil +} + +func expandUsers(_users []interface{}) []*DatabaseUser { + if len(_users) == 0 { + return nil + } + + users := make([]*DatabaseUser, 0, len(_users)) + + for _, userRaw := range _users { + if tfUser, ok := userRaw.(map[string]interface{}); ok { + + user := DatabaseUser{ + Username: tfUser["name"].(string), + Password: tfUser["password"].(string), + Role: tfUser["role"].(string), + Type: tfUser["type"].(string), + } + + users = append(users, &user) + } + } + + return users +} + +func expandUserChanges(_oldUsers []interface{}, _newUsers []interface{}) (userChanges []*userChange) { + oldUsers := expandUsers(_oldUsers) + newUsers := expandUsers(_newUsers) + + userChangeMap := make(map[string]*userChange) + + for _, user := range oldUsers { + userChangeMap[user.ID()] = &userChange{Old: user} + } + + for _, user := range newUsers { + if _, ok := userChangeMap[user.ID()]; !ok { + userChangeMap[user.ID()] = &userChange{} + } + userChangeMap[user.ID()].New = user + } + + userChanges = make([]*userChange, 0, len(userChangeMap)) + + for _, user := range userChangeMap { + userChanges = append(userChanges, user) + } + + return userChanges +} + +func (c *userChange) isDelete() bool { + return c.Old != nil && c.New == nil +} + +func (c *userChange) isCreate() bool { + return c.Old == nil && c.New != nil +} + +func (c *userChange) isUpdate() bool { + return c.New != nil && + c.Old != nil && + ((c.Old.Password != c.New.Password) || + (c.Old.Role != c.New.Role)) +} + +func (u *DatabaseUser) ID() (id string) { + return fmt.Sprintf("%s-%s", u.Type, u.Username) +} + +func (u *DatabaseUser) Create(instanceID string, d *schema.ResourceData, meta interface{}) (err error) { + cloudDatabasesClient, err := meta.(conns.ClientSession).CloudDatabasesV5() + if err != nil { + return fmt.Errorf("[ERROR] Error getting database client settings: %w", err) + } + + //Attempt to create user + userEntry := &clouddatabasesv5.User{ + Username: core.StringPtr(u.Username), + Password: core.StringPtr(u.Password), + } + + // User Role only for ops_manager user type + if u.Type == "ops_manager" && u.Role != "" { + userEntry.Role = core.StringPtr(u.Role) + } + + createDatabaseUserOptions := &clouddatabasesv5.CreateDatabaseUserOptions{ + ID: &instanceID, + UserType: core.StringPtr(u.Type), + User: userEntry, + } + + createDatabaseUserResponse, response, err := cloudDatabasesClient.CreateDatabaseUser(createDatabaseUserOptions) + if err != nil { + return fmt.Errorf("[ERROR] CreateDatabaseUser (%s) failed %w\n%s", *userEntry.Username, err, response) + } + + taskID := *createDatabaseUserResponse.Task.ID + _, err = waitForDatabaseTaskComplete(taskID, d, meta, d.Timeout(schema.TimeoutUpdate)) + + if err != nil { + return fmt.Errorf( + "[ERROR] Error waiting for database (%s) user (%s) create task to complete: %w", instanceID, *userEntry.Username, err) + } + + return nil +} + +func (u *DatabaseUser) Update(instanceID string, d *schema.ResourceData, meta interface{}) (err error) { + cloudDatabasesClient, err := meta.(conns.ClientSession).CloudDatabasesV5() + if err != nil { + return fmt.Errorf("[ERROR] Error getting database client settings: %s", err) + } + // Attempt to update user password passwordSettingUser := &clouddatabasesv5.APasswordSettingUser{ - Password: core.StringPtr(userData["password"].(string)), + Password: core.StringPtr(u.Password), } changeUserPasswordOptions := &clouddatabasesv5.ChangeUserPasswordOptions{ ID: &instanceID, - UserType: core.StringPtr(userData["type"].(string)), - Username: core.StringPtr(userData["name"].(string)), + UserType: core.StringPtr(u.Type), + Username: core.StringPtr(u.Username), User: passwordSettingUser, } changeUserPasswordResponse, response, err := cloudDatabasesClient.ChangeUserPassword(changeUserPasswordOptions) // user was found but an error occurs while triggering task - if response.StatusCode != 404 && err != nil { - return fmt.Errorf("[ERROR] ChangeUserPassword (%s) failed %s\n%s", *changeUserPasswordOptions.Username, err, response) + if err != nil || (response.StatusCode < 200 || response.StatusCode >= 300) { + return fmt.Errorf("[ERROR] ChangeUserPassword (%s) failed %w\n%s", *changeUserPasswordOptions.Username, err, response) } - updatePass := true // Assume that update password passed + taskID := *changeUserPasswordResponse.Task.ID + _, err = waitForDatabaseTaskComplete(taskID, d, meta, d.Timeout(schema.TimeoutUpdate)) - if userData["type"].(string) == "ops_manager" && response.StatusCode == 404 { - updatePass = false // when user_password api can't find an ops_manager user, it returns a 404 and does not get to the point of creating a task - } else { - // when user_password api can't find a database user, its task fails - taskID := *changeUserPasswordResponse.Task.ID - updatePass, err = waitForDatabaseTaskComplete(taskID, d, meta, d.Timeout(schema.TimeoutUpdate)) + if err != nil { + return fmt.Errorf( + "[ERROR] Error waiting for database (%s) user (%s) create task to complete: %w", instanceID, *changeUserPasswordOptions.Username, err) + } - if err != nil { - log.Printf("[ERROR] Error waiting for database (%s) user (%s) password update task to complete: %s", instanceID, *changeUserPasswordOptions.Username, err) - } + return nil +} + +func (u *DatabaseUser) Delete(instanceID string, d *schema.ResourceData, meta interface{}) (err error) { + cloudDatabasesClient, err := meta.(conns.ClientSession).CloudDatabasesV5() + if err != nil { + return fmt.Errorf("[ERROR] Error getting database client settings: %s", err) } - // Updating the password has failed - if !updatePass { - //Attempt to create user - userEntry := &clouddatabasesv5.User{ - Username: core.StringPtr(userData["name"].(string)), - Password: core.StringPtr(userData["password"].(string)), - } + deleteDatabaseUserOptions := &clouddatabasesv5.DeleteDatabaseUserOptions{ + ID: &instanceID, + UserType: core.StringPtr(u.Type), + Username: core.StringPtr(u.Username), + } - // User Role only for ops_manager user type - if userData["type"].(string) == "ops_manager" && userData["role"].(string) != "" { - userEntry.Role = core.StringPtr(userData["role"].(string)) - } + deleteDatabaseUserResponse, response, err := cloudDatabasesClient.DeleteDatabaseUser(deleteDatabaseUserOptions) + + if err != nil { + return fmt.Errorf( + "[ERROR] DeleteDatabaseUser (%s) failed %s\n%s", *deleteDatabaseUserOptions.Username, err, response) + + } + + taskID := *deleteDatabaseUserResponse.Task.ID + _, err = waitForDatabaseTaskComplete(taskID, d, meta, d.Timeout(schema.TimeoutUpdate)) + + if err != nil { + return fmt.Errorf( + "[ERROR] Error waiting for database (%s) user (%s) delete task to complete: %s", instanceID, *deleteDatabaseUserOptions.Username, err) + } + + return nil +} + +func (u *DatabaseUser) isUpdatable() bool { + return u.Type != "ops_manager" +} - createDatabaseUserOptions := &clouddatabasesv5.CreateDatabaseUserOptions{ - ID: &instanceID, - UserType: core.StringPtr(userData["type"].(string)), - User: userEntry, +func (u *DatabaseUser) Validate() error { + var errs []error + + var specialChars string + switch u.Type { + case "ops_manager": + specialChars = opsManagerUserSpecialChars + default: + specialChars = databaseUserSpecialChars + } + + // Format for regexp + var specialCharPattern string + var bs strings.Builder + for i, c := range strings.Split(specialChars, "") { + if i > 0 { + bs.WriteByte('|') } + bs.WriteString(regexp.QuoteMeta(c)) + } - createDatabaseUserResponse, response, err := cloudDatabasesClient.CreateDatabaseUser(createDatabaseUserOptions) - if err != nil { - return fmt.Errorf("[ERROR] CreateDatabaseUser (%s) failed %s\n%s", *userEntry.Username, err, response) + specialCharPattern = bs.String() + + var allowedCharacters = regexp.MustCompile(fmt.Sprintf("^(?:[a-zA-Z0-9]|%s)+$", specialCharPattern)) + var beginWithSpecialChar = regexp.MustCompile(fmt.Sprintf("^(?:%s)", specialCharPattern)) + var containsLetter = regexp.MustCompile("[a-zA-Z]") + var containsNumber = regexp.MustCompile("[0-9]") + var containsSpecialChar = regexp.MustCompile(fmt.Sprintf("(?:%s)", specialCharPattern)) + + if u.Type == "ops_manager" && !containsSpecialChar.MatchString(u.Password) { + errs = append(errs, fmt.Errorf( + "password must contain at least one special character (%s)", specialChars)) + } + + if u.Type == "database" && beginWithSpecialChar.MatchString(u.Password) { + errs = append(errs, fmt.Errorf( + "password must not begin with a special character (%s)", specialChars)) + } + + if !containsLetter.MatchString(u.Password) { + errs = append(errs, errors.New("password must contain at least one letter")) + } + + if !containsNumber.MatchString(u.Password) { + errs = append(errs, errors.New("password must contain at least one number")) + } + + if !allowedCharacters.MatchString(u.Password) { + errs = append(errs, errors.New("password must not contain invalid characters")) + } + + if len(errs) == 0 { + return nil + } + + var b []byte + for i, err := range errs { + if i > 0 { + b = append(b, '\n') } + b = append(b, err.Error()...) + } - taskID := *createDatabaseUserResponse.Task.ID - _, err = waitForDatabaseTaskComplete(taskID, d, meta, d.Timeout(schema.TimeoutUpdate)) + return fmt.Errorf("database user (%s) validation error:\n%w", u.Username, errors.New(string(b))) +} + +func DatabaseUserPasswordValidator(userType string) schema.SchemaValidateFunc { + return func(i interface{}, k string) (warnings []string, errors []error) { + user := &DatabaseUser{Username: "admin", Type: userType, Password: i.(string)} + err := user.Validate() if err != nil { - return fmt.Errorf( - "[ERROR] Error waiting for database (%s) user (%s) create task to complete: %s", instanceID, *userEntry.Username, err) + errors = append(errors, err) } + return } - - return nil } diff --git a/ibm/service/database/resource_ibm_database_cassandra_test.go b/ibm/service/database/resource_ibm_database_cassandra_test.go index 831d52752b..2701ecb344 100644 --- a/ibm/service/database/resource_ibm_database_cassandra_test.go +++ b/ibm/service/database/resource_ibm_database_cassandra_test.go @@ -295,10 +295,10 @@ func testAccCheckIBMDatabaseInstanceCassandraBasic(databaseResourceGroup string, service = "databases-for-cassandra" plan = "enterprise" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" users { name = "user123" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -327,14 +327,14 @@ func testAccCheckIBMDatabaseInstanceCassandraFullyspecified(databaseResourceGrou service = "databases-for-cassandra" plan = "enterprise" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" users { name = "user123" - password = "password12" + password = "password12345678" } users { name = "user124" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -367,7 +367,7 @@ func testAccCheckIBMDatabaseInstanceCassandraReduced(databaseResourceGroup strin service = "databases-for-cassandra" plan = "enterprise" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" timeouts { create = "480m" @@ -391,7 +391,7 @@ func testAccCheckIBMDatabaseInstanceCassandraNodeBasic(databaseResourceGroup str service = "databases-for-cassandra" plan = "enterprise" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -411,7 +411,7 @@ func testAccCheckIBMDatabaseInstanceCassandraNodeBasic(databaseResourceGroup str users { name = "user123" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -441,7 +441,7 @@ func testAccCheckIBMDatabaseInstanceCassandraNodeFullyspecified(databaseResource plan = "enterprise" location = "%[3]s" version = "5.1" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -462,11 +462,11 @@ func testAccCheckIBMDatabaseInstanceCassandraNodeFullyspecified(databaseResource users { name = "user123" - password = "password12" + password = "password12345678" } users { name = "user124" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -500,7 +500,7 @@ func testAccCheckIBMDatabaseInstanceCassandraNodeReduced(databaseResourceGroup s plan = "enterprise" location = "%[3]s" version = "5.1" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -540,7 +540,7 @@ func testAccCheckIBMDatabaseInstanceCassandraNodeScaleOut(databaseResourceGroup service = "databases-for-cassandra" plan = "enterprise" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -581,7 +581,7 @@ func testAccCheckIBMDatabaseInstanceCassandraGroupBasic(databaseResourceGroup st plan = "enterprise" version = "5.1" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -600,7 +600,7 @@ func testAccCheckIBMDatabaseInstanceCassandraGroupBasic(databaseResourceGroup st } users { name = "user123" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -630,7 +630,7 @@ func testAccCheckIBMDatabaseInstanceCassandraGroupFullyspecified(databaseResourc plan = "enterprise" version = "5.1" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -649,11 +649,11 @@ func testAccCheckIBMDatabaseInstanceCassandraGroupFullyspecified(databaseResourc } users { name = "user123" - password = "password12" + password = "password12345678" } users { name = "user124" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -688,7 +688,7 @@ func testAccCheckIBMDatabaseInstanceCassandraGroupReduced(databaseResourceGroup plan = "enterprise" version = "5.1" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" members { @@ -728,7 +728,7 @@ func testAccCheckIBMDatabaseInstanceCassandraGroupScaleOut(databaseResourceGroup plan = "enterprise" version = "5.1" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" diff --git a/ibm/service/database/resource_ibm_database_edb_test.go b/ibm/service/database/resource_ibm_database_edb_test.go index 2f7a639e25..f4ec044be2 100644 --- a/ibm/service/database/resource_ibm_database_edb_test.go +++ b/ibm/service/database/resource_ibm_database_edb_test.go @@ -110,7 +110,7 @@ func testAccCheckIBMDatabaseInstanceEDBBasic(databaseResourceGroup string, name service = "databases-for-enterprisedb" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" memory { @@ -123,7 +123,7 @@ func testAccCheckIBMDatabaseInstanceEDBBasic(databaseResourceGroup string, name tags = ["one:two"] users { name = "user123" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -150,7 +150,7 @@ func testAccCheckIBMDatabaseInstanceEDBFullyspecified(databaseResourceGroup stri service = "databases-for-enterprisedb" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" memory { @@ -167,11 +167,11 @@ func testAccCheckIBMDatabaseInstanceEDBFullyspecified(databaseResourceGroup stri tags = ["one:two"] users { name = "user123" - password = "password12" + password = "password12345678" } users { name = "user124" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -202,7 +202,7 @@ func testAccCheckIBMDatabaseInstanceEDBReduced(databaseResourceGroup string, nam service = "databases-for-enterprisedb" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" memory { diff --git a/ibm/service/database/resource_ibm_database_elasticsearch_platinum_test.go b/ibm/service/database/resource_ibm_database_elasticsearch_platinum_test.go index e1cefb491d..114400145f 100644 --- a/ibm/service/database/resource_ibm_database_elasticsearch_platinum_test.go +++ b/ibm/service/database/resource_ibm_database_elasticsearch_platinum_test.go @@ -351,7 +351,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumBasic(databaseResourceG service = "databases-for-elasticsearch" plan = "platinum" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -364,7 +364,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumBasic(databaseResourceG } users { name = "user123" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -393,14 +393,14 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumFullyspecified(database service = "databases-for-elasticsearch" plan = "platinum" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" users { name = "user123" - password = "password12" + password = "password12345678" } users { name = "user124" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -434,7 +434,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumReduced(databaseResourc service = "databases-for-elasticsearch" plan = "platinum" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" timeouts { create = "120m" @@ -458,7 +458,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupMigration(database service = "databases-for-elasticsearch" plan = "platinum" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -493,7 +493,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeBasic(databaseResou service = "databases-for-elasticsearch" plan = "platinum" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" members { @@ -512,7 +512,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeBasic(databaseResou users { name = "user123" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -541,7 +541,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeFullyspecified(data service = "databases-for-elasticsearch" plan = "platinum" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" members { @@ -559,11 +559,11 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeFullyspecified(data } users { name = "user123" - password = "password12" + password = "password12345678" } users { name = "user124" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -596,7 +596,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeReduced(databaseRes service = "databases-for-elasticsearch" plan = "platinum" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" members { @@ -635,7 +635,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumNodeScaleOut(databaseRe service = "databases-for-elasticsearch" plan = "platinum" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" members { @@ -674,7 +674,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupBasic(databaseReso service = "databases-for-elasticsearch" plan = "platinum" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -694,7 +694,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupBasic(databaseReso users { name = "user123" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -723,7 +723,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupFullyspecified(dat service = "databases-for-elasticsearch" plan = "platinum" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -742,11 +742,11 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupFullyspecified(dat } users { name = "user123" - password = "password12" + password = "password12345678" } users { name = "user124" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -780,7 +780,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupReduced(databaseRe service = "databases-for-elasticsearch" plan = "platinum" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -820,7 +820,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchPlatinumGroupScaleOut(databaseR service = "databases-for-elasticsearch" plan = "platinum" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" diff --git a/ibm/service/database/resource_ibm_database_elasticsearch_test.go b/ibm/service/database/resource_ibm_database_elasticsearch_test.go index 400e61b7b9..2a6059f36a 100644 --- a/ibm/service/database/resource_ibm_database_elasticsearch_test.go +++ b/ibm/service/database/resource_ibm_database_elasticsearch_test.go @@ -316,10 +316,10 @@ func testAccCheckIBMDatabaseInstanceElasticsearchBasic(databaseResourceGroup str service = "databases-for-elasticsearch" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" users { name = "user123" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -348,14 +348,14 @@ func testAccCheckIBMDatabaseInstanceElasticsearchFullyspecified(databaseResource service = "databases-for-elasticsearch" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" users { name = "user123" - password = "password12" + password = "password12345678" } users { name = "user124" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -389,7 +389,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchReduced(databaseResourceGroup s service = "databases-for-elasticsearch" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" timeouts { create = "120m" @@ -413,7 +413,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchGroupMigration(databaseResource service = "databases-for-elasticsearch" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -448,7 +448,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchNodeBasic(databaseResourceGroup service = "databases-for-elasticsearch" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -467,7 +467,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchNodeBasic(databaseResourceGroup } users { name = "user123" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -496,7 +496,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchNodeFullyspecified(databaseReso service = "databases-for-elasticsearch" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" members { @@ -514,11 +514,11 @@ func testAccCheckIBMDatabaseInstanceElasticsearchNodeFullyspecified(databaseReso } users { name = "user123" - password = "password12" + password = "password12345678" } users { name = "user124" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -551,7 +551,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchNodeReduced(databaseResourceGro service = "databases-for-elasticsearch" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" members { @@ -590,7 +590,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchNodeScaleOut(databaseResourceGr service = "databases-for-elasticsearch" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" members { @@ -629,7 +629,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchGroupBasic(databaseResourceGrou service = "databases-for-elasticsearch" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -649,7 +649,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchGroupBasic(databaseResourceGrou users { name = "user123" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -678,7 +678,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchGroupFullyspecified(databaseRes service = "databases-for-elasticsearch" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -697,11 +697,11 @@ func testAccCheckIBMDatabaseInstanceElasticsearchGroupFullyspecified(databaseRes } users { name = "user123" - password = "password12" + password = "password12345678" } users { name = "user124" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -735,7 +735,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchGroupReduced(databaseResourceGr service = "databases-for-elasticsearch" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -775,7 +775,7 @@ func testAccCheckIBMDatabaseInstanceElasticsearchGroupScaleOut(databaseResourceG service = "databases-for-elasticsearch" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" diff --git a/ibm/service/database/resource_ibm_database_etcd_test.go b/ibm/service/database/resource_ibm_database_etcd_test.go index 90ae1134d9..07e2eea5e6 100644 --- a/ibm/service/database/resource_ibm_database_etcd_test.go +++ b/ibm/service/database/resource_ibm_database_etcd_test.go @@ -131,7 +131,7 @@ func testAccCheckIBMDatabaseInstanceEtcdBasic(databaseResourceGroup string, name service = "databases-for-etcd" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" memory { @@ -143,7 +143,7 @@ func testAccCheckIBMDatabaseInstanceEtcdBasic(databaseResourceGroup string, name } users { name = "user123" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -166,7 +166,7 @@ func testAccCheckIBMDatabaseInstanceEtcdFullyspecified(databaseResourceGroup str service = "databases-for-etcd" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" memory { @@ -178,11 +178,11 @@ func testAccCheckIBMDatabaseInstanceEtcdFullyspecified(databaseResourceGroup str } users { name = "user123" - password = "password12" + password = "password12345678" } users { name = "user124" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -210,7 +210,7 @@ func testAccCheckIBMDatabaseInstanceEtcdReduced(databaseResourceGroup string, na service = "databases-for-etcd" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" memory { diff --git a/ibm/service/database/resource_ibm_database_mongodb_enterprise_test.go b/ibm/service/database/resource_ibm_database_mongodb_enterprise_test.go index 0993877628..d3ed077681 100644 --- a/ibm/service/database/resource_ibm_database_mongodb_enterprise_test.go +++ b/ibm/service/database/resource_ibm_database_mongodb_enterprise_test.go @@ -93,7 +93,7 @@ func TestAccIBMMongoDBEnterpriseDatabaseInstanceBasic(t *testing.T) { ImportState: true, ImportStateVerify: true, ImportStateVerifyIgnore: []string{ - "wait_time_minutes", "adminpassword", "connectionstrings.0.queryoptions"}, + "wait_time_minutes", "adminpassword", "connectionstrings.0.queryoptions", "group"}, }, }, }) @@ -206,7 +206,7 @@ func testAccCheckIBMDatabaseInstanceMongoDBEnterpriseBasic(databaseResourceGroup service = "databases-for-mongodb" plan = "enterprise" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" tags = ["one:two"] group { group_id = "member" @@ -219,7 +219,7 @@ func testAccCheckIBMDatabaseInstanceMongoDBEnterpriseBasic(databaseResourceGroup } users { name = "user123" - password = "password12" + password = "password12345678" type = "database" } allowlist { @@ -247,7 +247,7 @@ func testAccCheckIBMDatabaseInstanceMongoDBEnterpriseFullyspecified(databaseReso service = "databases-for-mongodb" plan = "enterprise" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" tags = ["one:two"] group { group_id = "member" @@ -263,12 +263,12 @@ func testAccCheckIBMDatabaseInstanceMongoDBEnterpriseFullyspecified(databaseReso } users { name = "user123" - password = "password12" + password = "password12345678" type = "database" } users { name = "user124" - password = "password12$password" + password = "password12345678$password" type = "ops_manager" } allowlist { @@ -300,7 +300,7 @@ func testAccCheckIBMDatabaseInstanceMongoDBEnterpriseReduced(databaseResourceGro service = "databases-for-mongodb" plan = "enterprise" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" service_endpoints = "public" tags = ["one:two"] group { @@ -333,7 +333,7 @@ func testAccCheckIBMDatabaseInstanceMongoDBEnterpriseGroupBasic(databaseResource service = "databases-for-mongodb" plan = "enterprise" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" tags = ["one:two"] group { diff --git a/ibm/service/database/resource_ibm_database_mongodb_sharding_test.go b/ibm/service/database/resource_ibm_database_mongodb_sharding_test.go index dad9d64ff0..1cce4bc9a4 100644 --- a/ibm/service/database/resource_ibm_database_mongodb_sharding_test.go +++ b/ibm/service/database/resource_ibm_database_mongodb_sharding_test.go @@ -94,7 +94,7 @@ func testAccCheckIBMDatabaseInstanceMongoDBShardingBasic(databaseResourceGroup s service = "databases-for-mongodb" plan = "enterprise-sharding" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" memory { @@ -106,7 +106,7 @@ func testAccCheckIBMDatabaseInstanceMongoDBShardingBasic(databaseResourceGroup s } users { name = "user123" - password = "password12" + password = "password12345678" type = "database" } allowlist { @@ -134,7 +134,7 @@ func testAccCheckIBMDatabaseInstanceMongoDBShardingFullyspecified(databaseResour service = "databases-for-mongodb" plan = "enterprise-sharding" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" memory { @@ -149,7 +149,7 @@ func testAccCheckIBMDatabaseInstanceMongoDBShardingFullyspecified(databaseResour } users { name = "user123" - password = "password12" + password = "password12345678" type = "database" } users { @@ -186,7 +186,7 @@ func testAccCheckIBMDatabaseInstanceMongoDBShardingReduced(databaseResourceGroup service = "databases-for-mongodb" plan = "enterprise-sharding" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" memory { diff --git a/ibm/service/database/resource_ibm_database_mongodb_test.go b/ibm/service/database/resource_ibm_database_mongodb_test.go index 3bbfae9e52..81fd0cd1f7 100644 --- a/ibm/service/database/resource_ibm_database_mongodb_test.go +++ b/ibm/service/database/resource_ibm_database_mongodb_test.go @@ -135,7 +135,7 @@ func testAccCheckIBMDatabaseInstanceMongodbBasic(databaseResourceGroup string, n service = "databases-for-mongodb" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" memory { @@ -147,7 +147,7 @@ func testAccCheckIBMDatabaseInstanceMongodbBasic(databaseResourceGroup string, n } users { name = "user123" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -169,7 +169,7 @@ func testAccCheckIBMDatabaseInstanceMongodbFullyspecified(databaseResourceGroup service = "databases-for-mongodb" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" memory { @@ -181,11 +181,11 @@ func testAccCheckIBMDatabaseInstanceMongodbFullyspecified(databaseResourceGroup } users { name = "user123" - password = "password12" + password = "password12345678" } users { name = "user124" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -211,7 +211,7 @@ func testAccCheckIBMDatabaseInstanceMongodbReduced(databaseResourceGroup string, service = "databases-for-mongodb" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" memory { diff --git a/ibm/service/database/resource_ibm_database_mysql_test.go b/ibm/service/database/resource_ibm_database_mysql_test.go index a1291df54d..ddb33d5ffe 100644 --- a/ibm/service/database/resource_ibm_database_mysql_test.go +++ b/ibm/service/database/resource_ibm_database_mysql_test.go @@ -86,7 +86,7 @@ func testAccCheckIBMDatabaseInstanceMysqlBasic(databaseResourceGroup string, nam service = "databases-for-mysql" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" memory { @@ -99,7 +99,7 @@ func testAccCheckIBMDatabaseInstanceMysqlBasic(databaseResourceGroup string, nam tags = ["one:two"] users { name = "user123" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -126,7 +126,7 @@ func testAccCheckIBMDatabaseInstanceMysqlFullyspecified(databaseResourceGroup st service = "databases-for-mysql" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" memory { @@ -143,11 +143,11 @@ func testAccCheckIBMDatabaseInstanceMysqlFullyspecified(databaseResourceGroup st tags = ["one:two"] users { name = "user123" - password = "password12" + password = "password12345678" } users { name = "user124" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" diff --git a/ibm/service/database/resource_ibm_database_postgresql_test.go b/ibm/service/database/resource_ibm_database_postgresql_test.go index 56769cba61..dc34b287c4 100644 --- a/ibm/service/database/resource_ibm_database_postgresql_test.go +++ b/ibm/service/database/resource_ibm_database_postgresql_test.go @@ -415,7 +415,7 @@ func testAccCheckIBMDatabaseInstancePostgresBasic(databaseResourceGroup string, service = "databases-for-postgresql" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" memory { @@ -428,7 +428,7 @@ func testAccCheckIBMDatabaseInstancePostgresBasic(databaseResourceGroup string, tags = ["one:two"] users { name = "user123" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -462,7 +462,7 @@ func testAccCheckIBMDatabaseInstancePostgresFullyspecified(databaseResourceGroup service = "databases-for-postgresql" plan = "standard" location = "%[3]s" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" memory { @@ -479,15 +479,15 @@ func testAccCheckIBMDatabaseInstancePostgresFullyspecified(databaseResourceGroup tags = ["one:two"] users { name = "user123" - password = "password12" + password = "password12345678" } users { name = "user124" - password = "password12" + password = "password12345678" } users { name = "repl" - password = "repl123456" + password = "repl123456password" } configuration = </?_-)", + }, + { + user: DatabaseUser{ + Username: "testy", + Password: "password12345678$password", + Type: "ops_manager", + }, + expectedError: "", + }, + { + user: DatabaseUser{ + Username: "testy", + Password: "~!@#$%^&*()=+[]{}|;:,.<>/?_-", + Type: "ops_manager", + }, + expectedError: "database user (testy) validation error:\npassword must contain at least one letter\npassword must contain at least one number", + }, + { + user: DatabaseUser{ + Username: "testy", + Password: "~!@#$%^&*()=+[]{}|;:,.<>/?_-a1", + Type: "ops_manager", + }, + expectedError: "", + }, + { + user: DatabaseUser{ + Username: "testy", + Password: "pizza1pizzapizza1", + Type: "database", + }, + expectedError: "", + }, + } + for _, tc := range testcases { + err := tc.user.Validate() + if tc.expectedError == "" { + if err != nil { + t.Errorf("TestValidateUserPassword: %q, %q unexpected error: %q", tc.user.Username, tc.user.Password, err.Error()) + } + } else { + assert.Equal(t, tc.expectedError, err.Error()) + } + } +} diff --git a/website/docs/r/database.html.markdown b/website/docs/r/database.html.markdown index 04248090bb..b27f42deab 100644 --- a/website/docs/r/database.html.markdown +++ b/website/docs/r/database.html.markdown @@ -31,7 +31,7 @@ resource "ibm_database" "" { resource_group_id = data.ibm_resource_group.group.id tags = ["tag1", "tag2"] - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -51,7 +51,7 @@ resource "ibm_database" "" { users { name = "user123" - password = "password12" + password = "password12345678" type = "database" } @@ -83,7 +83,7 @@ resource "ibm_database" "" { resource_group_id = data.ibm_resource_group.group.id tags = ["tag1", "tag2"] - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -103,7 +103,7 @@ resource "ibm_database" "" { users { name = "user123" - password = "password12" + password = "password12345678" } allowlist { @@ -187,7 +187,7 @@ resource "ibm_database" "cassandra" { service = "databases-for-cassandra" plan = "enterprise" location = "us-south" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -207,7 +207,7 @@ resource "ibm_database" "cassandra" { users { name = "user123" - password = "password12" + password = "password12345678" type = "database" } @@ -239,7 +239,7 @@ resource "ibm_database" "mongodb" { service = "databases-for-mongodb" plan = "enterprise" location = "us-south" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -261,7 +261,7 @@ resource "ibm_database" "mongodb" { users { name = "dbuser" - password = "password12" + password = "password12345678" type = "database" } @@ -300,7 +300,7 @@ resource "ibm_database" "mongodb_enterprise" { service = "databases-for-mongodb" plan = "enterprise" location = "us-south" - adminpassword = "password12" + adminpassword = "password12345678" tags = ["one:two"] group { @@ -375,7 +375,7 @@ resource "ibm_database" "edb" { service = "databases-for-enterprisedb" plan = "standard" location = "us-south" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" @@ -397,7 +397,7 @@ resource "ibm_database" "edb" { users { name = "user123" - password = "password12" + password = "password12345678" type = "database" } @@ -427,7 +427,7 @@ resource "ibm_database" "es" { service = "databases-for-elasticsearch" plan = "enterprise" location = "eu-gb" - adminpassword = "password12" + adminpassword = "password12345678" version = "7.17" group { group_id = "member" @@ -446,7 +446,7 @@ resource "ibm_database" "es" { } users { name = "user123" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -473,7 +473,7 @@ resource "ibm_database" "es" { service = "databases-for-elasticsearch" plan = "platinum" location = "eu-gb" - adminpassword = "password12" + adminpassword = "password12345678" group { group_id = "member" members { @@ -491,7 +491,7 @@ resource "ibm_database" "es" { } users { name = "user123" - password = "password12" + password = "password12345678" } allowlist { address = "172.168.1.2/32" @@ -556,7 +556,7 @@ resource "ibm_database" "db" { users { name = "repl" - password = "repl123456" + password = "repl12345password" } configuration = </?_-` as well as a letter and a number. Other user types may only use special characters `-_`. - `type` - (Optional, String) The type for the user. Examples: `database`, `ops_manager`, `read_only_replica`. The default value is `database`. - `role` - (Optional, String) The role for the user. Only available for `ops_manager` user type. Examples: `group_read_only`, `group_data_access_admin`. From c393b56e8c13121979d89e7db7b75714fe4f2c56 Mon Sep 17 00:00:00 2001 From: Ian Reyes Date: Mon, 4 Dec 2023 03:27:16 -0500 Subject: [PATCH 58/58] Add new service Logs Router to IBM Terraform Provider (#4945) * Added new service Logs Router to IBM Terraform Provider * Ran detect-secrets and re-generated secrets.baseline * Added emptycredentialsError check for Logs Router Client Error Signed-off-by: Ian Reyes * Removed redundant general provider set up information. Fixed Service Subcategories Signed-off-by: Ian Reyes --------- Signed-off-by: Ian Reyes --- .secrets.baseline | 22 +- examples/ibm-logs-router/README.md | 81 ++++++ examples/ibm-logs-router/main.tf | 17 ++ examples/ibm-logs-router/outputs.tf | 6 + examples/ibm-logs-router/variables.tf | 33 +++ examples/ibm-logs-router/versions.tf | 9 + go.mod | 1 + go.sum | 2 + ibm/conns/config.go | 28 ++ ibm/provider/provider.go | 8 + ibm/service/logsrouter/README.md | 11 + .../data_source_ibm_logs_router_tenant.go | 118 ++++++++ ...data_source_ibm_logs_router_tenant_test.go | 44 +++ .../resource_ibm_logs_router_tenant.go | 266 ++++++++++++++++++ .../resource_ibm_logs_router_tenant_test.go | 128 +++++++++ website/allowed-subcategories.txt | 1 + .../docs/d/logs_router_tenant.html.markdown | 52 ++++ .../docs/r/logs_router_tenant.html.markdown | 60 ++++ 18 files changed, 881 insertions(+), 6 deletions(-) create mode 100644 examples/ibm-logs-router/README.md create mode 100644 examples/ibm-logs-router/main.tf create mode 100644 examples/ibm-logs-router/outputs.tf create mode 100644 examples/ibm-logs-router/variables.tf create mode 100644 examples/ibm-logs-router/versions.tf create mode 100644 ibm/service/logsrouter/README.md create mode 100644 ibm/service/logsrouter/data_source_ibm_logs_router_tenant.go create mode 100644 ibm/service/logsrouter/data_source_ibm_logs_router_tenant_test.go create mode 100644 ibm/service/logsrouter/resource_ibm_logs_router_tenant.go create mode 100644 ibm/service/logsrouter/resource_ibm_logs_router_tenant_test.go create mode 100644 website/docs/d/logs_router_tenant.html.markdown create mode 100644 website/docs/r/logs_router_tenant.html.markdown diff --git a/.secrets.baseline b/.secrets.baseline index f7d1438953..3a62206e9a 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -786,7 +786,7 @@ "hashed_secret": "9184b0c38101bf24d78b2bb0d044deb1d33696fc", "is_secret": false, "is_verified": false, - "line_number": 131, + "line_number": 132, "type": "Secret Keyword", "verified_result": null }, @@ -794,7 +794,7 @@ "hashed_secret": "c427f185ddcb2440be9b77c8e45f1cd487a2e790", "is_secret": false, "is_verified": false, - "line_number": 1438, + "line_number": 1449, "type": "Base64 High Entropy String", "verified_result": null }, @@ -802,7 +802,7 @@ "hashed_secret": "1f7e33de15e22de9d2eaf502df284ed25ca40018", "is_secret": false, "is_verified": false, - "line_number": 1505, + "line_number": 1516, "type": "Secret Keyword", "verified_result": null }, @@ -810,7 +810,7 @@ "hashed_secret": "1f614c2eb6b3da22d89bd1b9fd47d7cb7c8fc670", "is_secret": false, "is_verified": false, - "line_number": 3298, + "line_number": 3325, "type": "Secret Keyword", "verified_result": null }, @@ -818,7 +818,7 @@ "hashed_secret": "7abfce65b8504403afc25c9790f358d513dfbcc6", "is_secret": false, "is_verified": false, - "line_number": 3311, + "line_number": 3338, "type": "Secret Keyword", "verified_result": null }, @@ -826,7 +826,7 @@ "hashed_secret": "0c2d85bf9a9b1579b16f220a4ea8c3d62b2e24b1", "is_secret": false, "is_verified": false, - "line_number": 3352, + "line_number": 3379, "type": "Secret Keyword", "verified_result": null } @@ -4505,6 +4505,16 @@ "verified_result": null } ], + "website/docs/r/logs_router_tenant.html.markdown": [ + { + "hashed_secret": "d47dcacc720a39e236679ac3e311a0d58bb6519e", + "is_secret": false, + "is_verified": false, + "line_number": 78, + "type": "Secret Keyword", + "verified_result": null + } + ], "website/docs/r/metrics_router_route.html.markdown": [ { "hashed_secret": "d47dcacc720a39e236679ac3e311a0d58bb6519e", diff --git a/examples/ibm-logs-router/README.md b/examples/ibm-logs-router/README.md new file mode 100644 index 0000000000..51da09060a --- /dev/null +++ b/examples/ibm-logs-router/README.md @@ -0,0 +1,81 @@ +# Example for IBM Logs Router V1 + +This example illustrates how to use IBM LogsRouterV1 + +The following types of resources are supported: + +* logs_router_tenant + +## Usage + +To run this example, execute the following commands: + +```bash +$ terraform init +$ terraform plan +$ terraform apply +``` + +Run `terraform destroy` when you don't need these resources. + + +## IbmLogsRouterV1 resources + +logs_router_tenant resource: + +```hcl +resource "logs_router_tenant" "logs_router_tenant_instance" { + target_type = var.logs_router_tenant_target_type + target_host = var.logs_router_tenant_target_host + target_port = var.logs_router_tenant_target_port + target_instance_crn = var.logs_router_tenant_target_instance_crn +} +``` + +## IbmLogsRouterV1 data sources + +logs_router_tenant data source: + +```hcl +data "logs_router_tenant" "logs_router_tenant_instance" { + tenant_id = ibm_logs_router_tenant.logs_router_tenant_instance.id +} +``` + +## Assumptions + +1. TODO + +## Notes + +1. TODO + +## Requirements + +| Name | Version | +|------|---------| +| terraform | ~> 0.12 | + +## Providers + +| Name | Version | +|------|---------| +| ibm | 1.13.1 | + +## Inputs + +| Name | Description | Type | Required | +|------|-------------|------|---------| +| ibmcloud\_api\_key | IBM Cloud API key | `string` | true | +| target_type | Type of log-sink. | `string` | true | +| target_host | Host name of log-sink. | `string` | true | +| target_port | Network port of log sink. | `number` | true | +| target_instance_crn | Cloud resource name of the log-sink target instance. | `string` | true | +| tenant_id | The instance ID of the tenant. | `` | true | + +## Outputs + +| Name | Description | +|------|-------------| +| logs_router_tenant | logs_router_tenant object | +| logs_router_tenant | logs_router_tenant object | diff --git a/examples/ibm-logs-router/main.tf b/examples/ibm-logs-router/main.tf new file mode 100644 index 0000000000..1be39ee095 --- /dev/null +++ b/examples/ibm-logs-router/main.tf @@ -0,0 +1,17 @@ +provider "ibm" { + ibmcloud_api_key = var.ibmcloud_api_key +} + +// Provision logs_router_tenant resource instance +resource "ibm_logs_router_tenant" "logs_router_tenant_instance" { + target_type = var.logs_router_tenant_target_type + target_host = var.logs_router_tenant_target_host + target_port = var.logs_router_tenant_target_port + target_instance_crn = var.logs_router_tenant_target_instance_crn +} + +// Create logs_router_tenant data source +data "ibm_logs_router_tenant" "logs_router_tenant_instance" { + tenant_id = ibm_logs_router_tenant.logs_router_tenant_instance.id +} + diff --git a/examples/ibm-logs-router/outputs.tf b/examples/ibm-logs-router/outputs.tf new file mode 100644 index 0000000000..813aeb5bcb --- /dev/null +++ b/examples/ibm-logs-router/outputs.tf @@ -0,0 +1,6 @@ +// This output allows logs_router_tenant data to be referenced by other resources and the terraform CLI +// Modify this output if only certain data should be exposed +output "ibm_logs_router_tenant" { + value = ibm_logs_router_tenant.logs_router_tenant_instance + description = "logs_router_tenant resource instance" +} diff --git a/examples/ibm-logs-router/variables.tf b/examples/ibm-logs-router/variables.tf new file mode 100644 index 0000000000..34a9f372ff --- /dev/null +++ b/examples/ibm-logs-router/variables.tf @@ -0,0 +1,33 @@ +variable "ibmcloud_api_key" { + description = "IBM Cloud API key" + type = string +} + +// Resource arguments for logs_router_tenant +variable "logs_router_tenant_target_type" { + description = "Type of log-sink." + type = string + default = "logdna" +} +variable "logs_router_tenant_target_host" { + description = "Host name of log-sink." + type = string + default = "www.example.com" +} +variable "logs_router_tenant_target_port" { + description = "Network port of log sink." + type = number + default = 10 +} +variable "logs_router_tenant_target_instance_crn" { + description = "Cloud resource name of the log-sink target instance." + type = string + default = "crn:v1:bluemix:public:logdna:us-east:a/36ff82794a734d7580b90c97b0327d28:f08aea7c-dde9-4452-b552-225af4b51eaa::" +} + +// Data source arguments for logs_router_tenant +variable "logs_router_tenant_tenant_id" { + description = "The instance ID of the tenant." + type = string + default = "f3a466c9-c4db-4eee-95cc-ba82db58e2b5" +} diff --git a/examples/ibm-logs-router/versions.tf b/examples/ibm-logs-router/versions.tf new file mode 100644 index 0000000000..54c9d03e8d --- /dev/null +++ b/examples/ibm-logs-router/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.0" + required_providers { + ibm = { + source = "IBM-Cloud/ibm" + version = "1.52.0-beta0" + } + } +} diff --git a/go.mod b/go.mod index 3bb6d00084..bffd2441f8 100644 --- a/go.mod +++ b/go.mod @@ -23,6 +23,7 @@ require ( github.com/IBM/ibm-hpcs-tke-sdk v0.0.0-20211109141421-a4b61b05f7d1 github.com/IBM/ibm-hpcs-uko-sdk v0.0.20-beta github.com/IBM/keyprotect-go-client v0.12.2 + github.com/IBM/logs-router-go-sdk v1.0.0 github.com/IBM/networking-go-sdk v0.42.2 github.com/IBM/platform-services-go-sdk v0.54.0 github.com/IBM/project-go-sdk v0.1.1 diff --git a/go.sum b/go.sum index 2deeef865a..4477787f09 100644 --- a/go.sum +++ b/go.sum @@ -153,6 +153,8 @@ github.com/IBM/ibm-hpcs-uko-sdk v0.0.20-beta/go.mod h1:MLVNHMYoKsvovJZ4v1gQCpIYt github.com/IBM/keyprotect-go-client v0.5.1/go.mod h1:5TwDM/4FRJq1ZOlwQL1xFahLWQ3TveR88VmL1u3njyI= github.com/IBM/keyprotect-go-client v0.12.2 h1:Cjxcqin9Pl0xz3MnxdiVd4v/eIa79xL3hQpSbwOr/DQ= github.com/IBM/keyprotect-go-client v0.12.2/go.mod h1:yr8h2noNgU8vcbs+vhqoXp3Lmv73PI0zAc6VMgFvWwM= +github.com/IBM/logs-router-go-sdk v1.0.0 h1:cGBjf7wJye/WuzFljqN7yB8ToIxLIiffWaQGW9rSTcI= +github.com/IBM/logs-router-go-sdk v1.0.0/go.mod h1:FJpyZctp5DmRms/MtvRUuWBF/CAk76WJzAsJc4EIM/Y= github.com/IBM/networking-go-sdk v0.42.2 h1:caqjx4jyFHi10Vlf3skHvlL6K3YJRVstsmCBmvdyqkA= github.com/IBM/networking-go-sdk v0.42.2/go.mod h1:lTUZwtUkMANMnrLHFIgRhHrkBfwASY/Iho1fabaPHxo= github.com/IBM/platform-services-go-sdk v0.54.0 h1:WjHWm9ZAJvlq07E1WXXtEe+d/B0sazWD6cEWVT7EMLU= diff --git a/ibm/conns/config.go b/ibm/conns/config.go index ff89bd307f..88eb394709 100644 --- a/ibm/conns/config.go +++ b/ibm/conns/config.go @@ -29,6 +29,7 @@ import ( "github.com/IBM/go-sdk-core/v5/core" cosconfig "github.com/IBM/ibm-cos-sdk-go-config/resourceconfigurationv1" kp "github.com/IBM/keyprotect-go-client" + "github.com/IBM/logs-router-go-sdk/ibmlogsrouteropenapi30v0" cisalertsv1 "github.com/IBM/networking-go-sdk/alertsv1" cisoriginpull "github.com/IBM/networking-go-sdk/authenticatedoriginpullapiv1" cisbotanalyticsv1 "github.com/IBM/networking-go-sdk/botanalyticsv1" @@ -228,6 +229,7 @@ type ClientSession interface { ResourceManagementAPIv2() (managementv2.ResourceManagementAPIv2, error) ResourceControllerAPI() (controller.ResourceControllerAPI, error) ResourceControllerAPIV2() (controllerv2.ResourceControllerAPIV2, error) + IbmLogsRouterOpenApi30V0() (*ibmlogsrouteropenapi30v0.IbmLogsRouterOpenApi30V0, error) SoftLayerSession() *slsession.Session IBMPISession() (*ibmpisession.IBMPISession, error) UserManagementAPI() (usermanagementv2.UserManagementAPI, error) @@ -542,6 +544,10 @@ type clientSession struct { secretsManagerClient *secretsmanagerv2.SecretsManagerV2 secretsManagerClientErr error + // Logs Routing + ibmLogsRouterOpenApi30Client *ibmlogsrouteropenapi30v0.IbmLogsRouterOpenApi30V0 + ibmLogsRouterOpenApi30ClientErr error + // Schematics service options schematicsClient *schematicsv1.SchematicsV1 schematicsClientErr error @@ -1169,6 +1175,11 @@ func (session clientSession) MetricsRouterV3() (*metricsrouterv3.MetricsRouterV3 return session.metricsRouterClient, session.metricsRouterClientErr } +// Logs Router API +func (session clientSession) IbmLogsRouterOpenApi30V0() (*ibmlogsrouteropenapi30v0.IbmLogsRouterOpenApi30V0, error) { + return session.ibmLogsRouterOpenApi30Client, session.ibmLogsRouterOpenApi30ClientErr +} + func (session clientSession) ESschemaRegistrySession() (*schemaregistryv1.SchemaregistryV1, error) { return session.esSchemaRegistryClient, session.esSchemaRegistryErr } @@ -1296,6 +1307,7 @@ func (c *Config) ClientSession() (interface{}, error) { session.cdToolchainClientErr = errEmptyBluemixCredentials session.codeEngineClientErr = errEmptyBluemixCredentials session.projectClientErr = errEmptyBluemixCredentials + session.ibmLogsRouterOpenApi30ClientErr = errEmptyBluemixCredentials return session, nil } @@ -1678,6 +1690,22 @@ func (c *Config) ClientSession() (interface{}, error) { }) } + // LOGS ROUTER service + ibmLogsRouterOpenApi30ClientOptions := &ibmlogsrouteropenapi30v0.IbmLogsRouterOpenApi30V0Options{ + Authenticator: authenticator, + } + session.ibmLogsRouterOpenApi30Client, err = ibmlogsrouteropenapi30v0.NewIbmLogsRouterOpenApi30V0(ibmLogsRouterOpenApi30ClientOptions) + if err == nil { + // Enable retries for API calls + session.ibmLogsRouterOpenApi30Client.Service.EnableRetries(c.RetryCount, c.RetryDelay) + // Add custom header for analytics + session.ibmLogsRouterOpenApi30Client.SetDefaultHeaders(gohttp.Header{ + "X-Original-User-Agent": {fmt.Sprintf("terraform-provider-ibm/%s", version.Version)}, + }) + } else { + session.ibmLogsRouterOpenApi30ClientErr = fmt.Errorf("Error occurred while configuring IBM logs-router service: %q", err) + } + // ATRACKER Version 2 var atrackerClientV2URL string var atrackerURLV2Err error diff --git a/ibm/provider/provider.go b/ibm/provider/provider.go index 9a0e61277b..aa758ebf66 100644 --- a/ibm/provider/provider.go +++ b/ibm/provider/provider.go @@ -38,6 +38,7 @@ import ( "github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/iampolicy" "github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/kms" "github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/kubernetes" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/logsrouter" "github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/metricsrouter" "github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/power" "github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/project" @@ -743,6 +744,9 @@ func Provider() *schema.Provider { "ibm_metrics_router_targets": metricsrouter.DataSourceIBMMetricsRouterTargets(), "ibm_metrics_router_routes": metricsrouter.DataSourceIBMMetricsRouterRoutes(), + // Logs Router + "ibm_logs_router_tenant": logsrouter.DataSourceIbmLogsRouterTenant(), + // Security and Complaince Center(soon to be deprecated) "ibm_scc_account_location": scc.DataSourceIBMSccAccountLocation(), "ibm_scc_account_locations": scc.DataSourceIBMSccAccountLocations(), @@ -1276,6 +1280,9 @@ func Provider() *schema.Provider { "ibm_metrics_router_route": metricsrouter.ResourceIBMMetricsRouterRoute(), "ibm_metrics_router_settings": metricsrouter.ResourceIBMMetricsRouterSettings(), + // Logs Router + "ibm_logs_router_tenant": logsrouter.ResourceIbmLogsRouterTenant(), + // Security and Compliance Center(soon to be deprecated) "ibm_scc_account_settings": scc.ResourceIBMSccAccountSettings(), "ibm_scc_rule_attachment": scc.ResourceIBMSccRuleAttachment(), @@ -1540,6 +1547,7 @@ func Validator() validate.ValidatorDict { "ibm_metrics_router_target": metricsrouter.ResourceIBMMetricsRouterTargetValidator(), "ibm_metrics_router_route": metricsrouter.ResourceIBMMetricsRouterRouteValidator(), "ibm_metrics_router_settings": metricsrouter.ResourceIBMMetricsRouterSettingsValidator(), + "ibm_logs_router_tenant": logsrouter.ResourceIbmLogsRouterTenantValidator(), "ibm_satellite_endpoint": satellite.ResourceIBMSatelliteEndpointValidator(), "ibm_cbr_zone": contextbasedrestrictions.ResourceIBMCbrZoneValidator(), "ibm_cbr_rule": contextbasedrestrictions.ResourceIBMCbrRuleValidator(), diff --git a/ibm/service/logsrouter/README.md b/ibm/service/logsrouter/README.md new file mode 100644 index 0000000000..350106c42d --- /dev/null +++ b/ibm/service/logsrouter/README.md @@ -0,0 +1,11 @@ +# Terraform IBM Provider + +This area is primarily for IBM provider contributors and maintainers. For information on _using_ Terraform and the IBM provider, see the links below. + + +## Handy Links +* [Find out about contributing](../../../CONTRIBUTING.md) to the IBM provider! +* IBM Provider Docs: [Home](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs) +* IBM Provider Docs: [One of the resources](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/logs_router_tenant) +* IBM API Docs: [IBM API Docs for IBM Cloud Logs Router](https://test.cloud.ibm.com/apidocs/logs-router-service-api) +* IBM SDK: [IBM SDK for IBM Cloud Logs Router](https://github.com/IBM/logs-router-go-sdk) diff --git a/ibm/service/logsrouter/data_source_ibm_logs_router_tenant.go b/ibm/service/logsrouter/data_source_ibm_logs_router_tenant.go new file mode 100644 index 0000000000..db12580145 --- /dev/null +++ b/ibm/service/logsrouter/data_source_ibm_logs_router_tenant.go @@ -0,0 +1,118 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package logsrouter + +import ( + "context" + "fmt" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM/logs-router-go-sdk/ibmlogsrouteropenapi30v0" + + "github.com/IBM/go-sdk-core/v5/core" + "github.com/go-openapi/strfmt" +) + +func DataSourceIbmLogsRouterTenant() *schema.Resource { + return &schema.Resource{ + ReadContext: dataSourceIbmLogsRouterTenantRead, + + Schema: map[string]*schema.Schema{ + "tenant_id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + Description: "The instance ID of the tenant.", + }, + "account_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "The account ID the tenant belongs to.", + }, + "target_type": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Type of log-sink.", + }, + "target_host": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Host name of log-sink.", + }, + "target_port": &schema.Schema{ + Type: schema.TypeInt, + Computed: true, + Description: "Network port of log sink.", + }, + "target_instance_crn": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Cloud resource name of the log-sink target instance.", + }, + "created_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "Time stamp the tenant was originally created.", + }, + "updated_at": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Description: "time stamp the tenant was last updated.", + }, + }, + } +} + +func dataSourceIbmLogsRouterTenantRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + ibmLogsRouterOpenApi30Client, err := meta.(conns.ClientSession).IbmLogsRouterOpenApi30V0() + if err != nil { + return diag.FromErr(err) + } + + getTenantDetailOptions := &ibmlogsrouteropenapi30v0.GetTenantDetailOptions{} + + getTenantDetailOptions.SetTenantID(core.UUIDPtr(strfmt.UUID(d.Get("tenant_id").(string)))) + + tenantDetailsResponse, response, err := ibmLogsRouterOpenApi30Client.GetTenantDetailWithContext(context, getTenantDetailOptions) + if err != nil { + log.Printf("[DEBUG] GetTenantDetailWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("GetTenantDetailWithContext failed %s\n%s", err, response)) + } + + d.SetId(fmt.Sprintf("%s", *getTenantDetailOptions.TenantID)) + + if err = d.Set("account_id", tenantDetailsResponse.AccountID); err != nil { + return diag.FromErr(fmt.Errorf("Error setting account_id: %s", err)) + } + + if err = d.Set("target_type", tenantDetailsResponse.TargetType); err != nil { + return diag.FromErr(fmt.Errorf("Error setting target_type: %s", err)) + } + + if err = d.Set("target_host", tenantDetailsResponse.TargetHost); err != nil { + return diag.FromErr(fmt.Errorf("Error setting target_host: %s", err)) + } + + if err = d.Set("target_port", flex.IntValue(tenantDetailsResponse.TargetPort)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting target_port: %s", err)) + } + + if err = d.Set("target_instance_crn", tenantDetailsResponse.TargetInstanceCrn); err != nil { + return diag.FromErr(fmt.Errorf("Error setting target_instance_crn: %s", err)) + } + + if err = d.Set("created_at", tenantDetailsResponse.CreatedAt); err != nil { + return diag.FromErr(fmt.Errorf("Error setting created_at: %s", err)) + } + + if err = d.Set("updated_at", tenantDetailsResponse.UpdatedAt); err != nil { + return diag.FromErr(fmt.Errorf("Error setting updated_at: %s", err)) + } + + return nil +} diff --git a/ibm/service/logsrouter/data_source_ibm_logs_router_tenant_test.go b/ibm/service/logsrouter/data_source_ibm_logs_router_tenant_test.go new file mode 100644 index 0000000000..597acdbded --- /dev/null +++ b/ibm/service/logsrouter/data_source_ibm_logs_router_tenant_test.go @@ -0,0 +1,44 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package logsrouter_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" +) + +func TestAccIbmLogsRouterTenantDataSourceBasic(t *testing.T) { + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmLogsRouterTenantDataSourceConfigBasic(), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.ibm_logs_router_tenant.logs_router_tenant_instance", "id"), + resource.TestCheckResourceAttrSet("data.ibm_logs_router_tenant.logs_router_tenant_instance", "tenant_id"), + ), + }, + }, + }) +} + +func testAccCheckIbmLogsRouterTenantDataSourceConfigBasic() string { + return fmt.Sprintf(` + resource "ibm_logs_router_tenant" "logs_router_tenant_instance" { + target_type = "logdna" + target_host = "tf-target-host-01" + target_port = 42 + target_instance_crn = "crn:v1:bluemix:public:logdna:eu-de:a/3516b8fa0a174a71899f5affa4f18d78:3517d2ed-9429-af34-ad52-34278391cbca::" + access_credential = "test-credential" + } + data "ibm_logs_router_tenant" "logs_router_tenant_instance" { + tenant_id = ibm_logs_router_tenant.logs_router_tenant_instance.id + } + `) +} diff --git a/ibm/service/logsrouter/resource_ibm_logs_router_tenant.go b/ibm/service/logsrouter/resource_ibm_logs_router_tenant.go new file mode 100644 index 0000000000..02da4c81c0 --- /dev/null +++ b/ibm/service/logsrouter/resource_ibm_logs_router_tenant.go @@ -0,0 +1,266 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package logsrouter + +import ( + "context" + "fmt" + "log" + + "github.com/go-openapi/strfmt" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/validate" + "github.com/IBM/go-sdk-core/v5/core" + "github.com/IBM/logs-router-go-sdk/ibmlogsrouteropenapi30v0" +) + +func ResourceIbmLogsRouterTenant() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceIbmLogsRouterTenantCreate, + ReadContext: resourceIbmLogsRouterTenantRead, + UpdateContext: resourceIbmLogsRouterTenantUpdate, + DeleteContext: resourceIbmLogsRouterTenantDelete, + Importer: &schema.ResourceImporter{}, + + Schema: map[string]*schema.Schema{ + "target_type": { + Type: schema.TypeString, + Required: true, + ValidateFunc: validate.InvokeValidator("ibm_logs_router_tenant", "target_type"), + Description: "Type of log-sink.", + }, + "target_host": { + Type: schema.TypeString, + Required: true, + ValidateFunc: validate.InvokeValidator("ibm_logs_router_tenant", "target_host"), + Description: "Host name of log-sink.", + }, + "target_port": { + Type: schema.TypeInt, + Required: true, + Description: "Network port of log sink.", + }, + "target_instance_crn": { + Type: schema.TypeString, + Required: true, + ValidateFunc: validate.InvokeValidator("ibm_logs_router_tenant", "target_instance_crn"), + Description: "Cloud resource name of the log-sink target instance.", + }, + "access_credential": { + Type: schema.TypeString, + Required: true, + Sensitive: true, + ValidateFunc: validate.InvokeValidator("ibm_logs_router_tenant", "access_credential"), + Description: "Secret to connect to the log-sink", + }, + "account_id": { + Type: schema.TypeString, + Computed: true, + Description: "The account ID the tenant belongs to.", + }, + "created_at": { + Type: schema.TypeString, + Computed: true, + Description: "Time stamp the tenant was originally created.", + }, + "updated_at": { + Type: schema.TypeString, + Computed: true, + Description: "time stamp the tenant was last updated.", + }, + }, + } +} + +func ResourceIbmLogsRouterTenantValidator() *validate.ResourceValidator { + validateSchema := make([]validate.ValidateSchema, 0) + validateSchema = append(validateSchema, + validate.ValidateSchema{ + Identifier: "target_type", + ValidateFunctionIdentifier: validate.ValidateRegexpLen, + Type: validate.TypeString, + Required: true, + Regexp: `[a-z,A-Z,0-9,-]`, + MinValueLength: 1, + MaxValueLength: 32, + }, + validate.ValidateSchema{ + Identifier: "target_host", + ValidateFunctionIdentifier: validate.ValidateRegexpLen, + Type: validate.TypeString, + Required: true, + Regexp: `[a-z,A-Z,0-9,-,.]`, + MinValueLength: 1, + MaxValueLength: 256, + }, + validate.ValidateSchema{ + Identifier: "target_instance_crn", + ValidateFunctionIdentifier: validate.ValidateRegexpLen, + Type: validate.TypeString, + Required: true, + Regexp: `[a-z,A-Z,0-9,:,-]`, + MinValueLength: 1, + MaxValueLength: 256, + }, + validate.ValidateSchema{ + Identifier: "access_credential", + ValidateFunctionIdentifier: validate.ValidateRegexpLen, + Type: validate.TypeString, + Required: true, + Regexp: `[a-z,A-Z,0-9,-\\.;!?]`, + MinValueLength: 10, + MaxValueLength: 50, + }, + ) + + resourceValidator := validate.ResourceValidator{ResourceName: "ibm_logs_router_tenant", Schema: validateSchema} + return &resourceValidator +} + +func resourceIbmLogsRouterTenantCreate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + ibmLogsRouterOpenApi30Client, err := meta.(conns.ClientSession).IbmLogsRouterOpenApi30V0() + if err != nil { + return diag.FromErr(err) + } + + createTenantOptions := &ibmlogsrouteropenapi30v0.CreateTenantOptions{} + + createTenantOptions.SetTargetType(d.Get("target_type").(string)) + createTenantOptions.SetTargetHost(d.Get("target_host").(string)) + createTenantOptions.SetTargetPort(int64(d.Get("target_port").(int))) + createTenantOptions.SetAccessCredential(d.Get("access_credential").(string)) + createTenantOptions.SetTargetInstanceCrn(d.Get("target_instance_crn").(string)) + + tenantDetailsResponse, response, err := ibmLogsRouterOpenApi30Client.CreateTenantWithContext(context, createTenantOptions) + if err != nil { + log.Printf("[DEBUG] CreateTenantWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("CreateTenantWithContext failed %s\n%s", err, response)) + } + + d.SetId(tenantDetailsResponse.ID.String()) + + return resourceIbmLogsRouterTenantRead(context, d, meta) +} + +func resourceIbmLogsRouterTenantRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + ibmLogsRouterOpenApi30Client, err := meta.(conns.ClientSession).IbmLogsRouterOpenApi30V0() + if err != nil { + return diag.FromErr(err) + } + + getTenantDetailOptions := &ibmlogsrouteropenapi30v0.GetTenantDetailOptions{} + tenantId := strfmt.UUID(d.Id()) + getTenantDetailOptions.SetTenantID(&tenantId) + + tenantDetailsResponse, response, err := ibmLogsRouterOpenApi30Client.GetTenantDetailWithContext(context, getTenantDetailOptions) + if err != nil { + if response != nil && response.StatusCode == 404 { + d.SetId("") + return nil + } + log.Printf("[DEBUG] GetTenantDetailWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("GetTenantDetailWithContext failed %s\n%s", err, response)) + } + + if err = d.Set("target_type", tenantDetailsResponse.TargetType); err != nil { + return diag.FromErr(fmt.Errorf("Error setting target_type: %s", err)) + } + if err = d.Set("target_host", tenantDetailsResponse.TargetHost); err != nil { + return diag.FromErr(fmt.Errorf("Error setting target_host: %s", err)) + } + if err = d.Set("target_port", flex.IntValue(tenantDetailsResponse.TargetPort)); err != nil { + return diag.FromErr(fmt.Errorf("Error setting target_port: %s", err)) + } + if err = d.Set("target_instance_crn", tenantDetailsResponse.TargetInstanceCrn); err != nil { + return diag.FromErr(fmt.Errorf("Error setting target_instance_crn: %s", err)) + } + if !core.IsNil(tenantDetailsResponse.AccountID) { + if err = d.Set("account_id", tenantDetailsResponse.AccountID); err != nil { + return diag.FromErr(fmt.Errorf("Error setting account_id: %s", err)) + } + } + if !core.IsNil(tenantDetailsResponse.CreatedAt) { + if err = d.Set("created_at", tenantDetailsResponse.CreatedAt); err != nil { + return diag.FromErr(fmt.Errorf("Error setting created_at: %s", err)) + } + } + if !core.IsNil(tenantDetailsResponse.UpdatedAt) { + if err = d.Set("updated_at", tenantDetailsResponse.UpdatedAt); err != nil { + return diag.FromErr(fmt.Errorf("Error setting updated_at: %s", err)) + } + } + + return nil +} + +func resourceIbmLogsRouterTenantUpdate(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + ibmLogsRouterOpenApi30Client, err := meta.(conns.ClientSession).IbmLogsRouterOpenApi30V0() + if err != nil { + return diag.FromErr(err) + } + + updateTargetOptions := &ibmlogsrouteropenapi30v0.UpdateTargetOptions{} + tenantId := strfmt.UUID(d.Id()) + updateTargetOptions.SetTenantID(&tenantId) + + hasChange := false + + patchVals := &ibmlogsrouteropenapi30v0.TenantDetailsResponsePatch{} + if d.HasChange("target_host") { + newTargetHost := d.Get("target_host").(string) + patchVals.TargetHost = &newTargetHost + hasChange = true + } + if d.HasChange("target_port") { + newTargetPort := int64(d.Get("target_port").(int)) + patchVals.TargetPort = &newTargetPort + hasChange = true + } + if d.HasChange("access_credential") { + newAccessCredential := d.Get("access_credential").(string) + patchVals.AccessCredential = &newAccessCredential + hasChange = true + } + if d.HasChange("target_instance_crn") { + newTargetInstanceCrn := d.Get("target_instance_crn").(string) + patchVals.TargetInstanceCrn = &newTargetInstanceCrn + hasChange = true + } + + if hasChange { + updateTargetOptions.TenantDetailsResponsePatch, _ = patchVals.AsPatch() + _, response, err := ibmLogsRouterOpenApi30Client.UpdateTargetWithContext(context, updateTargetOptions) + if err != nil { + log.Printf("[DEBUG] UpdateTargetWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("UpdateTargetWithContext failed %s\n%s", err, response)) + } + } + + return resourceIbmLogsRouterTenantRead(context, d, meta) +} + +func resourceIbmLogsRouterTenantDelete(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + ibmLogsRouterOpenApi30Client, err := meta.(conns.ClientSession).IbmLogsRouterOpenApi30V0() + if err != nil { + return diag.FromErr(err) + } + + deleteTenantOptions := &ibmlogsrouteropenapi30v0.DeleteTenantOptions{} + tenantId := strfmt.UUID(d.Id()) + deleteTenantOptions.SetTenantID(&tenantId) + + _, response, err := ibmLogsRouterOpenApi30Client.DeleteTenantWithContext(context, deleteTenantOptions) + if err != nil { + log.Printf("[DEBUG] DeleteTenantWithContext failed %s\n%s", err, response) + return diag.FromErr(fmt.Errorf("DeleteTenantWithContext failed %s\n%s", err, response)) + } + + d.SetId("") + + return nil +} diff --git a/ibm/service/logsrouter/resource_ibm_logs_router_tenant_test.go b/ibm/service/logsrouter/resource_ibm_logs_router_tenant_test.go new file mode 100644 index 0000000000..a625776d49 --- /dev/null +++ b/ibm/service/logsrouter/resource_ibm_logs_router_tenant_test.go @@ -0,0 +1,128 @@ +// Copyright IBM Corp. 2023 All Rights Reserved. +// Licensed under the Mozilla Public License v2.0 + +package logsrouter_test + +import ( + "fmt" + "testing" + + "github.com/go-openapi/strfmt" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + + acc "github.com/IBM-Cloud/terraform-provider-ibm/ibm/acctest" + "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" + "github.com/IBM/logs-router-go-sdk/ibmlogsrouteropenapi30v0" +) + +func TestAccIbmLogsRouterTenantBasic(t *testing.T) { + var conf ibmlogsrouteropenapi30v0.TenantDetailsResponse + targetType := fmt.Sprintf("logdna") + targetHost := fmt.Sprintf("tf-target-host-%d", acctest.RandIntRange(10, 100)) + targetPort := fmt.Sprintf("%d", acctest.RandIntRange(10, 100)) + targetInstanceCrn := fmt.Sprintf("crn:v1:bluemix:public:logdna:eu-de:a/3516b8fa0a174a71899f5affa4f18d78:3517d2ed-9429-af34-ad52-34278391cbc8::") + targetTypeUpdate := fmt.Sprintf("logdna") + targetHostUpdate := fmt.Sprintf("tf-target-host-%d", acctest.RandIntRange(10, 100)) + targetPortUpdate := fmt.Sprintf("%d", acctest.RandIntRange(10, 100)) + targetInstanceCrnUpdate := fmt.Sprintf("crn:v1:bluemix:public:logdna:eu-de:a/3516b8fa0a174a71899f5affa4f18d78:3517d2ed-9429-af34-ad52-34278391cbc8::") + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acc.TestAccPreCheck(t) }, + Providers: acc.TestAccProviders, + CheckDestroy: testAccCheckIbmLogsRouterTenantDestroy, + Steps: []resource.TestStep{ + resource.TestStep{ + Config: testAccCheckIbmLogsRouterTenantConfigBasic(targetType, targetHost, targetPort, targetInstanceCrn), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckIbmLogsRouterTenantExists("ibm_logs_router_tenant.logs_router_tenant_instance", conf), + resource.TestCheckResourceAttr("ibm_logs_router_tenant.logs_router_tenant_instance", "target_type", targetType), + resource.TestCheckResourceAttr("ibm_logs_router_tenant.logs_router_tenant_instance", "target_host", targetHost), + resource.TestCheckResourceAttr("ibm_logs_router_tenant.logs_router_tenant_instance", "target_instance_crn", targetInstanceCrn), + ), + }, + resource.TestStep{ + Config: testAccCheckIbmLogsRouterTenantConfigBasic(targetTypeUpdate, targetHostUpdate, targetPortUpdate, targetInstanceCrnUpdate), + Check: resource.ComposeAggregateTestCheckFunc( + resource.TestCheckResourceAttr("ibm_logs_router_tenant.logs_router_tenant_instance", "target_type", targetTypeUpdate), + resource.TestCheckResourceAttr("ibm_logs_router_tenant.logs_router_tenant_instance", "target_host", targetHostUpdate), + resource.TestCheckResourceAttr("ibm_logs_router_tenant.logs_router_tenant_instance", "target_port", targetPortUpdate), + resource.TestCheckResourceAttr("ibm_logs_router_tenant.logs_router_tenant_instance", "target_instance_crn", targetInstanceCrnUpdate), + ), + }, + resource.TestStep{ + ResourceName: "ibm_logs_router_tenant.logs_router_tenant_instance", //"ibm_logs_router_tenant.logs_router_tenant", + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{"access_credential"}, + }, + }, + }) +} + +func testAccCheckIbmLogsRouterTenantConfigBasic(targetType string, targetHost string, targetPort string, targetInstanceCrn string) string { + return fmt.Sprintf(` + resource "ibm_logs_router_tenant" "logs_router_tenant_instance" { + target_type = "%s" + target_host = "%s" + target_port = %s + target_instance_crn = "%s" + access_credential = "test-credential" + } + `, targetType, targetHost, targetPort, targetInstanceCrn) +} + +func testAccCheckIbmLogsRouterTenantExists(n string, obj ibmlogsrouteropenapi30v0.TenantDetailsResponse) resource.TestCheckFunc { + + return func(s *terraform.State) error { + rs, ok := s.RootModule().Resources[n] + if !ok { + return fmt.Errorf("Not found: %s", n) + } + + ibmLogsRouterOpenApi30Client, err := acc.TestAccProvider.Meta().(conns.ClientSession).IbmLogsRouterOpenApi30V0() + if err != nil { + return err + } + + getTenantDetailOptions := &ibmlogsrouteropenapi30v0.GetTenantDetailOptions{} + tenantId := strfmt.UUID(rs.Primary.ID) + getTenantDetailOptions.SetTenantID(&tenantId) + + tenantDetailsResponse, _, err := ibmLogsRouterOpenApi30Client.GetTenantDetail(getTenantDetailOptions) + if err != nil { + return err + } + + obj = *tenantDetailsResponse + return nil + } +} + +func testAccCheckIbmLogsRouterTenantDestroy(s *terraform.State) error { + ibmLogsRouterOpenApi30Client, err := acc.TestAccProvider.Meta().(conns.ClientSession).IbmLogsRouterOpenApi30V0() + if err != nil { + return err + } + for _, rs := range s.RootModule().Resources { + if rs.Type != "ibm_logs_router_tenant" { + continue + } + + getTenantDetailOptions := &ibmlogsrouteropenapi30v0.GetTenantDetailOptions{} + tenantId := strfmt.UUID(rs.Primary.ID) + getTenantDetailOptions.SetTenantID(&tenantId) + + // Try to find the key + _, response, err := ibmLogsRouterOpenApi30Client.GetTenantDetail(getTenantDetailOptions) + + if err == nil { + return fmt.Errorf("logs_router_tenant still exists: %s", rs.Primary.ID) + } else if response.StatusCode != 404 { + return fmt.Errorf("Error checking for logs_router_tenant (%s) has been destroyed: %s", rs.Primary.ID, err) + } + } + + return nil +} diff --git a/website/allowed-subcategories.txt b/website/allowed-subcategories.txt index 1e97423139..7410d43146 100644 --- a/website/allowed-subcategories.txt +++ b/website/allowed-subcategories.txt @@ -25,6 +25,7 @@ Identity & Access Management (IAM) Internet services Key Management Service Kubernetes Service +Logs Router Metrics Router Object Storage Power Systems diff --git a/website/docs/d/logs_router_tenant.html.markdown b/website/docs/d/logs_router_tenant.html.markdown new file mode 100644 index 0000000000..0ff47b87b3 --- /dev/null +++ b/website/docs/d/logs_router_tenant.html.markdown @@ -0,0 +1,52 @@ +--- +layout: "ibm" +page_title: "IBM : ibm_logs_router_tenant" +description: |- + Get information about logs_router_tenant +subcategory: "Logs Router" +--- + +# ibm_logs_router_tenant + +Provides a read-only data source to retrieve information about a logs_router_tenant. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax. + +## Example Usage + +```hcl +data "ibm_logs_router_tenant" "logs_router_tenant" { + tenant_id = "f3a466c9-c4db-4eee-95cc-ba82db58e2b5" +} +``` + +## Argument Reference + +You can specify the following arguments for this data source. + +* `tenant_id` - (Required, Forces new resource, String) The instance ID of the tenant. + * Constraints: The maximum length is `36` characters. The minimum length is `36` characters. The value must match regular expression `/[A-F,0-9,-]/`. + +## Attribute Reference + +After your data source is created, you can read values from the following attributes. + +* `id` - The unique identifier of the logs_router_tenant. +* `account_id` - (String) The account ID the tenant belongs to. + * Constraints: The maximum length is `32` characters. The minimum length is `32` characters. The value must match regular expression `/[a-z,A-Z,0-9,-]/`. + +* `created_at` - (String) Time stamp the tenant was originally created. + * Constraints: The maximum length is `36` characters. The minimum length is `1` character. The value must match regular expression `/[0-9,:,.,-,T,Z]/`. + +* `target_host` - (String) Host name of log-sink. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/[a-z,A-Z,0-9,-,.]/`. + +* `target_instance_crn` - (String) Cloud resource name of the log-sink target instance. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/[a-z,A-Z,0-9,:,-]/`. + +* `target_port` - (Integer) Network port of log sink. + +* `target_type` - (String) Type of log-sink. + * Constraints: The maximum length is `32` characters. The minimum length is `1` character. The value must match regular expression `/[a-z,A-Z,0-9,-]/`. + +* `updated_at` - (String) time stamp the tenant was last updated. + * Constraints: The maximum length is `36` characters. The minimum length is `1` character. The value must match regular expression `/[0-9,:,.,-,T,Z]/`. + diff --git a/website/docs/r/logs_router_tenant.html.markdown b/website/docs/r/logs_router_tenant.html.markdown new file mode 100644 index 0000000000..0a193468d8 --- /dev/null +++ b/website/docs/r/logs_router_tenant.html.markdown @@ -0,0 +1,60 @@ +--- +layout: "ibm" +page_title: "IBM : ibm_logs_router_tenant" +description: |- + Manages logs_router_tenant. +subcategory: "Logs Router" +--- + +# ibm_logs_router_tenant + +Create, update, and delete logs_router_tenants with this resource. + +## Example Usage + +```hcl +resource "ibm_logs_router_tenant" "logs_router_tenant_instance" { + target_host = "www.example.com" + target_instance_crn = "crn:v1:bluemix:public:logdna:eu-de:a/3516b8fa0a174a71899f5affa4f18d78:3517d2ed-9429-af34-ad52-34278391cbc8::" + target_port = 10 + target_type = "logdna" +} +``` + +## Argument Reference + +You can specify the following arguments for this resource. + +* `target_host` - (Required, String) Host name of log-sink. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/[a-z,A-Z,0-9,-,.]/`. +* `target_instance_crn` - (Required, String) Cloud resource name of the log-sink target instance. + * Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/[a-z,A-Z,0-9,:,-]/`. +* `target_port` - (Required, Integer) Network port of log sink. +* `target_type` - (Required, String) Type of log-sink. + * Constraints: The maximum length is `32` characters. The minimum length is `1` character. The value must match regular expression `/[a-z,A-Z,0-9,-]/`. + +## Attribute Reference + +After your resource is created, you can read values from the listed arguments and the following attributes. + +* `id` - The unique identifier of the logs_router_tenant. +* `account_id` - (String) The account ID the tenant belongs to. + * Constraints: The maximum length is `32` characters. The minimum length is `32` characters. The value must match regular expression `/[a-z,A-Z,0-9,-]/`. +* `created_at` - (String) Time stamp the tenant was originally created. + * Constraints: The maximum length is `36` characters. The minimum length is `1` character. The value must match regular expression `/[0-9,:,.,-,T,Z]/`. +* `updated_at` - (String) time stamp the tenant was last updated. + * Constraints: The maximum length is `36` characters. The minimum length is `1` character. The value must match regular expression `/[0-9,:,.,-,T,Z]/`. + +## Import + +You can import the `ibm_logs_router_tenant` resource by using `id`. Unique ID of the created instance. + +# Syntax +
+$ terraform import ibm_logs_router_tenant.logs_router_tenant <id>
+
+ +# Example +``` +$ terraform import ibm_logs_router_tenant.logs_router_tenant aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa +```